Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

catalog works /admin give blank page


rmueller1958

Recommended Posts

<_<

 

I am baffled.....

 

recently setup osC22 on hosted site.. set up the database. ran through the install, and the catalog works great... I just can't administer it.. I've checked and rechecked my configure.php files.. When I load the admin/index.php it pulls up a blank page..

 

I've verified permissions on directories and files per the INSTALLATION and Readme files..

 

If anyone has any ideas I'd appreciate feedback..

 

my site is catalog.farms-usa.com

 

the admin link is setup with standard configuration as payments are cash/check/mo or paypal..

 

below is my admin/includes/configure.php

 

Thanks in advance..

 

Rex Mueller - webmaster

Farms USA

Omaha, NE

 

 

 

 

############## admin/includes/configure.php ###################

<?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 © 2002 osCommerce

 

Released under the GNU General Public License

*/

 

// define our webserver variables

// FS = Filesystem (physical)

// WS = Webserver (virtual)

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

define('HTTP_CATALOG_SERVER', 'http://catalog.farms-usa.com');

define('HTTPS_CATALOG_SERVER', 'https://catalog.farms-usa.com');

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

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

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

define('DB_SERVER', mysql');

define('DB_SERVER_USERNAME', 'XXXXXXX');

define('DB_SERVER_PASSWORD', 'XXXXXXXX');

define('DB_DATABASE', 'osCommerce');

define('USE_PCONNECT', 'false');

define('STORE_SESSIONS', '');

?>

Link to comment
Share on other sites

These should be corrct:

 

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/');

Link to comment
Share on other sites

Just did a standard installation on Win 2000 server. The directory structure is exactly as recommended:

 

inetpub

----wwwroot

--------catalog

------------admin

------------install

 

Installation went well (except that it could not locate the oscommerce.sql file, but this was easily corrected).

 

catalog works fine, but admin returns a blank page for any of the php files under the admin directory.

Link to comment
Share on other sites

If that is the case, I had that problem starting out as well. Try running the .sql file again, it sorted it out for me.

 

another problem may be in the sub-domain catalog.domain.com I havent seen many people do this, so that might be where the admin is misreading it, not sure though

Link to comment
Share on other sites

OK, solved on my side - the problem appeared when I reinstalled to use a new CVS with the same database. I am developing a Brazilian Portuguese version, configured the system to run in ptbr as default, and forgot to create the folders for "PTBR" in the "languages" folder under admin.

 

The system was expecting the ptbr files and could not find them, so it quit.

 

rgds

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...