Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Admin Displaying Variable Names


beeg4

Recommended Posts

Posted

I have a site where I am moving the catalog from the "catalog" directory to the root. I have made the changes necessary in both configure.php files. However, when I go to the admin page I see the PHP variable definitions and not the values as defined in the language file. Also, I do not see the proper layout of the administration pages. Below is my admin configure.php settings. Anyone with ideas?

 

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

define('HTTP_CATALOG_SERVER', 'http://www.whitestickers.com');

define('HTTPS_CATALOG_SERVER', 'https://www.whitestickers.com');

define('ENABLE_SSL_CATALOG', 'true'); // secure webserver for catalog module

define('DIR_FS_DOCUMENT_ROOT', '/'); // where the pages are located on the server

define('DIR_WS_ADMIN', '/admin/'); // absolute path required

define('DIR_FS_ADMIN', '/admin'); // absolute pate required

define('DIR_WS_CATALOG', '/'); // absolute path required

define('DIR_FS_CATALOG', '/'); // 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/');

 

define('DB_SERVER', 'mysql75.secureserver.net'); // eg, localhost - should not be empty for productive servers

define('DB_SERVER_USERNAME', 'whitestickers');

define('DB_SERVER_PASSWORD', 'evangelio');

define('DB_DATABASE', 'whitestickers');

define('USE_PCONNECT', 'false'); // use persistent connections?

define('STORE_SESSIONS', '/tmp'); // leave empty '' for default handler or set to 'mysql'

Posted

This line:

 

define('DIR_FS_ADMIN', '/admin'); // absolute pate required

 

and this line:

 

define('DIR_FS_CATALOG', '/'); // absolute path required

 

need to be FULL server paths to your files, and the adminone also needs a trailing slash. When I say full server path, if you use an ftp programme, you will see when you browse to your admin directory a load of directories in the path to where you are in ftp, this is the path you need in this file!

 

Also, can a moderator PLEASE delete this persons database connection details, and BJ, for future reference, dont EVER put that information into the public domain, it really weakens your security - I would advise you change your sql password as a matter of urgency!

Posted

Thanks Tony, but no luck with the absolute paths. I must have been really tired last night when I posted the config, thanks for reminding me about the password.

 

I had to do some tinkering to find the absolute path as it is hidden from my view by the setup on the host system. In other words I had to get it to break in order to see the full path. I will have to get the host system to give me the correct path.

 

Again thanks for the help.

Posted

Ok, found one of the problems. I had to use the $DOCUMENT_ROOT variable to get things going. Everything works great if I leave the site in the "catalog" directory. When I move to root however I get the following for the admin screen:

 

 

E-Commerce Engine Copyright ? 2003 osCommerce

osCommerce provides no warranty and is redistributable under the GNU General Public License

 

Fatal error: Call to undefined function: tep_image() in /home/content/w/h/i/whitestickers/html/admin/includes/filenames.php on line 39

 

Now filenames.php is just a definition file and doesn't have a call to tep_image. Here is the new configuration data:

 

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

define('HTTP_CATALOG_SERVER', 'http://www.whitestickers.com');

define('HTTPS_CATALOG_SERVER', 'https://www.whitestickers.com');

define('ENABLE_SSL_CATALOG', 'true'); // secure webserver for catalog module

define('DIR_FS_DOCUMENT_ROOT', $DOCUMENT_ROOT); // where the pages are located on the server

define('DIR_WS_ADMIN', '/admin/'); // absolute path required

define('DIR_FS_ADMIN', DIR_FS_DOCUMENT_ROOT . DIR_WS_ADMIN); // absolute pate required

define('DIR_WS_CATALOG', '/'); // absolute path required

define('DIR_FS_CATALOG', $DOCUMENT_ROOT); // 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/');

 

Any ideas?

 

Thanks in advance

Archived

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

×
×
  • Create New...