Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Buttons Not Loading


DnJ

Recommended Posts

All the buttons on my site won't load. I know it is a problem with my configure.php files but have tried altering them but to no avail

 

If anyone has any suggestions would be greatly appreciated.

 

public_html

<?php
/*
osCommerce, Open Source E-Commerce Solutions
http://www.oscommerce.com

Copyright (c) 2003 osCommerce

Released under the GNU General Public License
*/

// Define the webserver and path parameters
// * DIR_FS_* = Filesystem directories (local/physical)
// * DIR_WS_* = Webserver directories (virtual/URL)
define('HTTP_SERVER', 'http://www.naughtypleasuresclub.com'); // eg, http://localhost - should not be empty for productive servers
define('HTTPS_SERVER', ''); // eg, https://localhost - should not be empty for productive servers
define('ENABLE_SSL', false); // secure webserver for checkout procedure?
define('HTTP_COOKIE_DOMAIN', 'http://www.naughtypleasuresclub.com/');
define('HTTPS_COOKIE_DOMAIN', '');
define('HTTP_COOKIE_PATH', 'http://www.naughtypleasuresclub.com/');
define('HTTPS_COOKIE_PATH', '');
define('DIR_WS_HTTP_CATALOG', '/');
define('DIR_WS_HTTPS_CATALOG', '');
define('DIR_WS_IMAGES', 'images/');
define('DIR_WS_ICONS', DIR_WS_IMAGES . 'icons/');
define('DIR_WS_INCLUDES', 'includes/');
define('DIR_WS_BOXES', DIR_WS_INCLUDES . 'boxes/');
define('DIR_WS_FUNCTIONS', DIR_WS_INCLUDES . 'functions/');
define('DIR_WS_CLASSES', DIR_WS_INCLUDES . 'classes/');
define('DIR_WS_MODULES', DIR_WS_INCLUDES . 'modules/');
define('DIR_WS_LANGUAGES', DIR_WS_INCLUDES . 'languages/');

define('DIR_WS_DOWNLOAD_PUBLIC', 'pub/');
define('DIR_FS_CATALOG', '/');
define('DIR_FS_DOWNLOAD', DIR_FS_CATALOG . 'download/');
define('DIR_FS_DOWNLOAD_PUBLIC', DIR_FS_CATALOG . 'pub/');

 

 

Admin

<?php
/*
osCommerce, Open Source E-Commerce Solutions
http://www.oscommerce.com

Copyright (c) 2003 osCommerce

Released under the GNU General Public License
*/

// Define the webserver and path parameters
// * DIR_FS_* = Filesystem directories (local/physical)
// * DIR_WS_* = Webserver directories (virtual/URL)
define('HTTP_SERVER', 'http://www.naughtypleasuresclub.com'); // eg, http://localhost - should not be empty for productive servers
define('HTTP_CATALOG_SERVER', 'http://www.naughtypleasuresclub.com');
define('HTTPS_CATALOG_SERVER', '');
define('ENABLE_SSL_CATALOG', 'false'); // secure webserver for catalog module
define('DIR_FS_DOCUMENT_ROOT', '/'); // where the pages are located on the server
define('DIR_WS_ADMIN', 'http://www.naughtypleasuresclub.com/admin/'); // absolute path required
define('DIR_FS_ADMIN', 'http://www.naughtypleasuresclub.com/admin/'); // absolute pate required
define('DIR_WS_CATALOG', 'http://www.naughtypleasuresclub.com/'); // absolute path required
define('DIR_FS_CATALOG', 'http://www.naughtypleasuresclub.com/'); // absolute path required
define('DIR_WS_IMAGES', 'images/');
define('DIR_WS_ICONS', DIR_WS_IMAGES . 'icons/');
define('DIR_WS_CATALOG_IMAGES', DIR_WS_CATALOG . 'images/');
define('DIR_WS_INCLUDES', 'includes/');
define('DIR_WS_BOXES', DIR_WS_INCLUDES . 'boxes/');
define('DIR_WS_FUNCTIONS', DIR_WS_INCLUDES . 'functions/');
define('DIR_WS_CLASSES', DIR_WS_INCLUDES . 'classes/');
define('DIR_WS_MODULES', DIR_WS_INCLUDES . 'modules/');
define('DIR_WS_LANGUAGES', DIR_WS_INCLUDES . 'languages/');
define('DIR_WS_CATALOG_LANGUAGES', DIR_WS_CATALOG . 'includes/languages/');
define('DIR_FS_CATALOG_LANGUAGES', DIR_FS_CATALOG . 'includes/languages/');
define('DIR_FS_CATALOG_IMAGES', DIR_FS_CATALOG . 'images/');
define('DIR_FS_CATALOG_MODULES', DIR_FS_CATALOG . 'includes/modules/');
define('DIR_FS_BACKUP', DIR_FS_ADMIN . 'backups/');

 

|public_html|

                      |

                      |..........admin

                      |

                      |..........images

                      |

                      |..........includes

"One Of Life's Greatest Pleasures Is Doing What Others Say You Can't"

Link to comment
Share on other sites

They seem to be in the right directories so I am asuming that your configure.php files are correct. If you uploaded them try uploading them again in binary format instead of ASCII. PHP files are ASCII, gifs and pics are binary.

 

HTH

 

Peter

Link to comment
Share on other sites

Thanks Java,

 

Did re-upload some in binary just forgot the buttons.

 

And also my admin configure.php was also wrong.

 

Double linking...

"One Of Life's Greatest Pleasures Is Doing What Others Say You Can't"

Link to comment
Share on other sites

I can't get my buttons to load on my localhost and I can't figure out why. New Install.

I don't understand where the directory is listed->. tep_image_button('button_reviews.gif', IMAGE_BUTTON_REVIEWS) .

Here is the config file:

define('HTTP_SERVER', 'http://localhost'); // eg, http://localhost - should not be empty for productive servers

define('HTTPS_SERVER', ''); // eg, https://localhost - should not be empty for productive servers

define('ENABLE_SSL', false); // secure webserver for checkout procedure?

define('HTTP_COOKIE_DOMAIN', 'localhost');

define('HTTPS_COOKIE_DOMAIN', '');

define('HTTP_COOKIE_PATH', '/catalog/');

define('HTTPS_COOKIE_PATH', '');

define('DIR_WS_HTTP_CATALOG', '/catalog/');

define('DIR_WS_HTTPS_CATALOG', '');

define('DIR_WS_IMAGES', 'images/');

define('DIR_WS_ICONS', DIR_WS_IMAGES . 'icons/');

define('DIR_WS_INCLUDES', 'includes/');

define('DIR_WS_BOXES', DIR_WS_INCLUDES . 'boxes/');

define('DIR_WS_FUNCTIONS', DIR_WS_INCLUDES . 'functions/');

define('DIR_WS_CLASSES', DIR_WS_INCLUDES . 'classes/');

define('DIR_WS_MODULES', DIR_WS_INCLUDES . 'modules/');

define('DIR_WS_LANGUAGES', DIR_WS_INCLUDES . 'languages/');

 

Thank you

Link to comment
Share on other sites

Doug

 

I thought that I had corrected your configure.php files for you yet you are posting your old configure.php files which are way off.

No longer giving free advice. Please place deposit in meter slot provided.  Individual: [=] SME: [==] Corporation: [===]
If deposit does not fit one of the slots provided then you are asking too much! :P

Is your Osc dated try Phoenix  raising oscommerce from the ashes.

Link to comment
Share on other sites

I can't get my buttons to load on my localhost and I can't figure out why. New Install.

I don't understand where the directory is listed->. tep_image_button('button_reviews.gif', IMAGE_BUTTON_REVIEWS) .

The problem is probably your DIR_FS_CATALOG define - below is an example from my local installation:

 

  define('DIR_FS_CATALOG', 'c:/foxserv/www/catalog/');

 

Matti

Link to comment
Share on other sites

Hi Matti,

Thank you for the quick reponse. I found where the buttons are, I can't figure out how to get the code to work.

 

Do I adjust any code here:

<?php echo '<a href="' . tep_href_link(FILENAME_PRODUCT_REVIEWS, tep_get_all_get_params()) . '">' . tep_image_button('button_reviews.gif', IMAGE_BUTTON_REVIEWS) . '</a>'

 

If the directory is: catalog/includes/languages/english/images/buttons

and this did not work:

define('DIR_FS_CATALOG', 'c:/phpdev/www/catalog/includes/languages/english/images/buttons/');

It was originally define('DIR_FS_CATALOG', 'c:/phpdev/www/catalog/');--->which did not work.

What am I not understanding?

 

Thanks for your help.

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...