Zen Cart Logo
Forums / General Questions / Blank Admin Page!

Blank Admin Page!

Locked

Views: 1,222

Results 1 to 4 of 4
This thread is locked. New replies are disabled.
22 Jul 2007, 9:02 PM
#1
chandler55 avatar

chandler55

New Zenner

Join Date:
Jul 2007
Posts:
2
Plugin Contributions:
0

Blank Admin Page!

Hey all, I'm a zencart newbie and I've been struggeling with this problem for a few days. I've moved a cart from the root folder to a new subfolder and reconfigured the includes/configure.php & admin/includes/configure.php files. The store is working but the admin login page is blank. It was working in it's old location so I'm guessing this is some sore of path issue. I've don all sorts of trial and error but I can't seem to find my mistake. I'd really appreciate any help. Here's my admin/incliudes/configure.php:

define('HTTP_SERVER', 'http://www.bittersweetsny.com/cart');
// Secure webserver: eg, https://localhost - should not be empty for productive servers
define('HTTPS_SERVER', 'https://bittersweetsny.hostasaurus.com/cart');
// secure webserver for checkout procedure?
define('HTTP_CATALOG_SERVER', 'http://www.bittersweetsny.com/httpdocs/cart');
define('HTTPS_CATALOG_SERVER', 'https://bittersweetsny.hostasaurus.com/cart');

// secure webserver for catalog module and/or admin areas?
define('ENABLE_SSL_CATALOG', 'true');
define('ENABLE_SSL_ADMIN', 'true');

// NOTE: be sure to leave the trailing '/' at the end of these lines if you make changes!
// * DIR_WS_* = Webserver directories (virtual/URL)
// these paths are relative to top of your webspace ... (ie: under the public_html or httpdocs folder)
define('DIR_WS_ADMIN', 'bsadmin/');
define('DIR_WS_CATALOG', '/');
define('DIR_WS_HTTPS_ADMIN', 'bsadmin/');
define('DIR_WS_HTTPS_CATALOG', '/');

define('DIR_WS_IMAGES', '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_DOWNLOAD_PUBLIC', DIR_WS_CATALOG . 'pub/');
define('DIR_WS_BLOCKS', DIR_WS_INCLUDES . 'blocks/');
define('DIR_WS_TEMPLATES', DIR_WS_INCLUDES . 'templates/');

define('DIR_WS_PHPBB', '/');

// * DIR_FS_* = Filesystem directories (local/physical)
//the following path is a COMPLETE path to your Zen Cart files. eg: /var/www/vhost/accountname/public_html/store/
define('DIR_FS_CATALOG', '/var/www/vhosts/bittersweetsny.com/httpdocs/cart/');

define('DIR_FS_DOWNLOAD', DIR_FS_CATALOG . 'download/');
define('DIR_FS_DOWNLOAD_PUBLIC', DIR_FS_CATALOG . 'pub/');
define('DIR_WS_UPLOADS', DIR_WS_IMAGES . 'uploads/');
define('DIR_FS_UPLOADS', DIR_FS_CATALOG . DIR_WS_UPLOADS);
define('DIR_FS_EMAIL_TEMPLATES', DIR_FS_CATALOG . 'email/');

// define our database connection
define('DB_TYPE', 'mysql');
define('DB_PREFIX', 'BSNY_');
define('DB_SERVER', 'localhost'); // eg, localhost - should not be empty
define('DB_SERVER_USERNAME', '');
define('DB_SERVER_PASSWORD', '');
define('DB_DATABASE', '');
define('USE_PCONNECT', 'false'); // use persistent connections?
define('STORE_SESSIONS', 'db'); // leave empty '' for default handler or set to 'db'

// The next 2 "defines" are for SQL cache support.
// For SQL_CACHE_METHOD, you can select from: none, database, or file
// If you choose "file", then you need to set the DIR_FS_SQL_CACHE to a directory where your apache
// or webserver user has write privileges (chmod 666 or 777). We recommend using the "cache" folder inside the Zen Cart folder
// ie: /path/to/your/webspace/public_html/zen/cache -- leave no trailing slash
define('SQL_CACHE_METHOD', 'none');
define('DIR_FS_SQL_CACHE', '/var/www/vhosts/bittersweetsny.com/httpdocs/cart/cache/');

?>

22 Jul 2007, 10:17 PM
#2
stevenb avatar

stevenb

New Zenner

Join Date:
Mar 2007
Posts:
57
Plugin Contributions:
0

Re: Blank Admin Page!

I took a peek at mine (also in a directory called catalog). I think I may see at least some of your problem. Compare this code from mine to yours.

// NOTE: be sure to leave the trailing '/' at the end of these lines if you make changes!
// * DIR_WS_* = Webserver directories (virtual/URL)
  // these paths are relative to top of your webspace ... (ie: under the public_html or httpdocs folder)
  define('DIR_WS_ADMIN', '/catalog/admin/');
  define('DIR_WS_CATALOG', '/catalog/');
  define('DIR_WS_HTTPS_ADMIN', '/catalog/admin/');
  define('DIR_WS_HTTPS_CATALOG', '/catalog/');

Hope it helps.

PS: you might also take a look at this faq.

Steve

23 Jul 2007, 6:46 AM
#3
chandler55 avatar

chandler55

New Zenner

Join Date:
Jul 2007
Posts:
2
Plugin Contributions:
0

Re: Blank Admin Page!

Thanks Steven, I appreciate the code but I tried out some changes and still no luck. I'm really stumped.

23 Jul 2007, 4:37 PM
#4
ajeh avatar

ajeh

Oba-san

Join Date:
Sep 2003
Location:
Ohio
Posts:
62,757
Plugin Contributions:
1

Re: Blank Admin Page!

Start with fixing these settings:

define('HTTP_SERVER', 'http://www.bittersweetsny.com/cart');
// Secure webserver: eg, https://localhost - should not be empty for productive servers
define('HTTPS_SERVER', 'https://bittersweetsny.hostasaurus.com/cart');
// secure webserver for checkout procedure?
define('HTTP_CATALOG_SERVER', 'http://www.bittersweetsny.com/httpdocs/cart');
define('HTTPS_CATALOG_SERVER', 'https://bittersweetsny.hostasaurus.com/cart');

define('HTTP_SERVER', 'http://www.bittersweetsny.com');
// Secure webserver: eg, https://localhost - should not be empty for productive servers
define('HTTPS_SERVER', 'https://bittersweetsny.hostasaurus.com');
// secure webserver for checkout procedure?
define('HTTP_CATALOG_SERVER', 'http://www.bittersweetsny.com');
define('HTTPS_CATALOG_SERVER', 'https://bittersweetsny.hostasaurus.com');

Then if your shop is in the directory /cart you need to use:

define('DIR_WS_ADMIN', '/cart/bsadmin/');
define('DIR_WS_CATALOG', '/cart/');
define('DIR_WS_HTTPS_ADMIN', '/cart/bsadmin/');
define('DIR_WS_HTTPS_CATALOG', '/cart/');