Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

PHP or server problem? Can't find the answer anywhere


skazz

Recommended Posts

Posted

Hi, I have a minor very large error with a store. It seems the admin section can't find any subdirectories (Error: Catalog images directory does not exist: catalog/images/). Same with backup and modules. If I enter the info through PHPmyadmin, the catalog shows the images just fine. I've tried to match all corresponding info in the admin config file to the catalog config file, but the data still disappears in the database every time I visit a module page in the admin. The modules worked fine before enabling ssl, but disabling it doesn't seem to help. Any more ideas on where to poke around? I'm willing to try anything.

Posted

I would post your admin configure.php here (remove sensitive db info)

 

Tom

Posted
I would post your admin configure.php here (remove sensitive db info)

 

Tom

 

Good advice. Here's the concise version:

 

define('HTTP_SERVER', 'http://www.notliveyet.com'); // eg, http://localhost or - https://localhost should not be NULL for productive servers

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

define('HTTPS_CATALOG_SERVER', 'https://ssl.catalog.com/~myusername/');

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

define('DIR_FS_DOCUMENT_ROOT', $DOCUMENT_ROOT); // where your pages are located on the server. if $DOCUMENT_ROOT doesnt suit you, replace with your local path. (eg, /usr/local/apache/htdocs)

define('DIR_WS_ADMIN', 'catalog/admin/');

define('DIR_FS_ADMIN', DIR_FS_DOCUMENT_ROOT . DIR_WS_ADMIN);

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

define('DIR_FS_CATALOG', DIR_FS_DOCUMENT_ROOT . DIR_WS_CATALOG);

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

define('DIR_WS_CATALOG_IMAGES', DIR_WS_CATALOG . 'images/');

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

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

define('DIR_FS_CATALOG_IMAGES', DIR_FS_CATALOG . 'images/');

define('DIR_FS_CATALOG_MODULES', DIR_FS_CATALOG . 'includes/modules/');

 

// define our database connection

define('DB_SERVER', 'mysql.webhero.com');

define('USE_PCONNECT', 'false');

define('STORE_SESSIONS', 'mysql');

Posted

Sorry to bump this up, but it's getting urgent and I still can't find any help anywhere. Are there any ideas out there I could try?

Posted

Are you running your admin side under SSL, in other words do you go to https://www.whatever.com/index.php and then all the pages from there are SSL?

 

You say everything worked before SSL, it looks like you are using a shared SSL. If this is the case you will probably need to make sure all your admin files are in the shared SSL directory as well. When you enabled SSL you set the HTTPS_CATALOG_SERVER setting which for some reason or another gets read sometimes even if SSL is disabled. Try setting the HTTPS_CATALOG_SERVER back to your normal url (http://www.whatever.com) and setting SSL to false. See what happens. If that fixes the problem then you need to copy files to the shared SSL directory.

Posted

You're right, it's using shared SSL. It's all the same directory though, & the admin folder is even inside the catalog one (not the most secure thing, I know). Anyway, it seems I can't do anything for a while since I accidentally tried to log in wrong earlier, but I'll try what you mentioned as soon as I get a chance. Thanks

Posted

Okay, I made all the changes suggested & successfully disabled ssl. I don't believe SSL was running in the admin anyway, but neither the catalog nor the admin are using it now. Still, the admin won't find any modules. Is there at least a temporary workaround to make some modules appear?

Posted

okay now i am really confused :)

 

In looking at the configure.php file you posted above, that is your admin/includes/configure.php file. You should have a similar, but different, catalog/includes/configure.php file. Next the configure.php you posted above is also missing a large chunk of it. The top half (minus the database info at the bottom) should look something like this for your admin/includes/configure.php. You will see you are missing a bunch of stuff. It looks like when you installed the SSL you somehow hacked up the files or put the wrong ones out there. Also, how are you making changes to your files? Make sure you are using a text or PHP editor and uploading via FTP. Don't use the file manager included with osCommerce.

 

  define('HTTP_SERVER', ''); // eg, http://localhost or - https://localhost should not be NULL for productive servers
 define('HTTP_CATALOG_SERVER', '');
 define('HTTPS_CATALOG_SERVER', '');
 define('ENABLE_SSL_CATALOG', 'false'); // secure webserver for catalog module
 define('DIR_FS_DOCUMENT_ROOT', $DOCUMENT_ROOT); // where your pages are located on the server. if $DOCUMENT_ROOT doesnt suit you, replace with your local path. (eg, /usr/local/apache/htdocs)
 define('DIR_WS_ADMIN', '/admin/');
 define('DIR_FS_ADMIN', DIR_FS_DOCUMENT_ROOT . DIR_WS_ADMIN);
 define('DIR_WS_CATALOG', '/catalog/');
 define('DIR_FS_CATALOG', DIR_FS_DOCUMENT_ROOT . DIR_WS_CATALOG);
 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/');

Posted

Sorry for the confusion. I was trying to cut things down for simplicity. Here's the full admin/includes/configure.php. Also, I'm making changes in wordpad/notepad & uploading them via ftp. The built-in file-manager is at least as broken as the rest of this :)

 

<?php
/*
 $Id: configure.php,v 1.14 2003/02/21 16:55:24 dgw_ Exp $

 osCommerce, Open Source E-Commerce Solutions
 http://www.oscommerce.com

 Copyright (c) 2002 osCommerce

 Released under the GNU General Public License
*/

// define our webserver variables
// FS = Filesystem (physical)
// WS = Webserver (virtual)
 define('HTTP_SERVER', 'http://www.siteisn'tliveyet.com/'); // eg, http://localhost or - https://localhost should not be NULL for productive servers
 define('HTTP_CATALOG_SERVER', 'http://www.siteisn'tliveyet.com/');
 define('HTTPS_CATALOG_SERVER', 'http://www.siteisn'tliveyet.com/');
 define('ENABLE_SSL_CATALOG', 'false'); // secure webserver for catalog module
 define('DIR_FS_DOCUMENT_ROOT', $DOCUMENT_ROOT); // where your pages are located on the server. if $DOCUMENT_ROOT doesnt suit you, replace with your local path. (eg, /usr/local/apache/htdocs)
 define('DIR_WS_ADMIN', 'catalog/admin/');
 define('DIR_FS_ADMIN', DIR_FS_DOCUMENT_ROOT . DIR_WS_ADMIN);
 define('DIR_WS_CATALOG', 'catalog/');
 define('DIR_FS_CATALOG', DIR_FS_DOCUMENT_ROOT . DIR_WS_CATALOG);
 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 our database connection
sensitive-database-info
 define('USE_PCONNECT', 'false');
 define('STORE_SESSIONS', 'mysql');
?>

Archived

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

×
×
  • Create New...