Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

blank screen when trying to access admin


korsh

Recommended Posts

Hi everyone,

 

I have recently had my computer rebuilt and at the same time I upgraded my apache2triad version.

 

The set up I had made for working on a test site locally had been inadvertently removed so I have had to recreate it. I had backed up all the files and database but forgot to document how I worked out the local setup and I have been trying for the last few days to remember.

 

Everything has been pretty much reinstalled and functions well however when I try to access admin .

 

http://localhost/mydomain/mainwebsite_html/catalog/admin

 

I get a blank screen

 

I have tried reinstalling a couple of times and making all sorts of changes to the configure files to resolve this issue however I now feel I have become a bit lost.

 

I have sorted errors 1054 and 1046 but this one has me stumped.

 

Some advice here would be really appreciated - Korsh

 

 

My catalog files are located at C:\apache2triad\htdocs\mydomain\mainwebsite_html\catalog

 

And my configure.php files are:

 

C:\apache2triad\htdocs\mydomain\mainwebsite_html\catalog\includes\configure.php

 

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

 define('DIR_WS_DOWNLOAD_PUBLIC', 'pub/');
 define('DIR_FS_CATALOG', dirname($HTTP_SERVER_VARS['SCRIPT_FILENAME']));
 define('DIR_FS_DOWNLOAD', DIR_FS_CATALOG . 'download/');
 define('DIR_FS_DOWNLOAD_PUBLIC', DIR_FS_CATALOG . 'pub/');

// define our database connection
 define('DB_SERVER', 'localhost'); // eg, localhost - should not be empty for productive servers
 define('DB_SERVER_USERNAME', '******');
 define('DB_SERVER_PASSWORD', '*******');
 define('DB_DATABASE', ?*************?);
 define('USE_PCONNECT', 'true'); // use persistent connections?
 define('STORE_SESSIONS', 'mysql'); // leave empty '' for default handler or set to 'mysql'
?>

 

C:\apache2triad\htdocs\mydomain\mainwebsite_html\catalog\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 (c) 2002 osCommerce

 Released under the GNU General Public License
*/

// define our webserver variables
// FS = Filesystem (physical)
// WS = Webserver (virtual)
 define('HTTP_SERVER', ''); // eg, http://localhost or - https://localhost should not be NULL for productive servers
 define('HTTP_CATALOG_SERVER', 'http://localhost');
 define('HTTPS_CATALOG_SERVER', '');
 define('ENABLE_SSL_CATALOG', 'false'); // secure webserver for catalog module
 define('DIR_FS_DOCUMENT_ROOT', 'C:/apache2triad/htdocs/mydomain/mainwebsite_html/'); // 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', 'C:/apache2triad/htdocs/mydomain/mainwebsite_html/catalog/admin/');
 define('DIR_WS_CATALOG', '/catalog/');
 define('DIR_FS_CATALOG', 'C:/apache2triad/htdocs/mydomain/mainwebsite_html/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', 'localhost');
 define('DB_SERVER_USERNAME', '*****');
 define('DB_SERVER_PASSWORD', '*****');
 define('DB_DATABASE', '********');
 define('USE_PCONNECT', 'true');
 define('STORE_SESSIONS', 'mysql');
?>

Link to comment
Share on other sites

you misse done at the top:

 

define('HTTP_SERVER', '');

 

needs to be:

 

define('HTTP_SERVER', 'http://localhost');

 

if this is the only site, why not move everything up one level, then all you have to do is type in http://localhost for the catalog and http://localhost/admin for the admin section

 

Thanks Mibble,

 

By

move everything up one level
do you mean move the catalog folder and all the html files into the mydomain folder and delete the mainwebsite_html folder?

 

korsh

Link to comment
Share on other sites

you misse done at the top:

 

define('HTTP_SERVER', '');

 

needs to be:

 

define('HTTP_SERVER', 'http://localhost');

 

if this is the only site, why not move everything up one level, then all you have to do is type in http://localhost for the catalog and http://localhost/admin for the admin section

 

hello again,

 

unfortunately that didn't change the situation, I added the

define('HTTP_SERVER', 'http://localhost');

and I still get the blank screen.

 

korsh

Link to comment
Share on other sites

try changing this:

 

define('DIR_FS_DOCUMENT_ROOT', 'C:/apache2triad/htdocs/mydomain/mainwebsite_html/'); // where your pages are located on the server

 

to this:

 

define('DIR_FS_DOCUMENT_ROOT', 'C:/apache2triad/htdocs/mydomain/mainwebsite_html'); // where your pages are located on the server

 

Hi everyone,

 

I have recently had my computer rebuilt and at the same time I upgraded my apache2triad version.

 

The set up I had made for working on a test site locally had been inadvertently removed so I have had to recreate it. I had backed up all the files and database but forgot to document how I worked out the local setup and I have been trying for the last few days to remember.

 

Everything has been pretty much reinstalled and functions well however when I try to access admin .

 

http://localhost/mydomain/mainwebsite_html/catalog/admin

 

I get a blank screen

 

I have tried reinstalling a couple of times and making all sorts of changes to the configure files to resolve this issue however I now feel I have become a bit lost.

 

I have sorted errors 1054 and 1046 but this one has me stumped.

 

Some advice here would be really appreciated - Korsh

My catalog files are located at C:\apache2triad\htdocs\mydomain\mainwebsite_html\catalog

 

And my configure.php files are:

 

C:\apache2triad\htdocs\mydomain\mainwebsite_html\catalog\includes\configure.php

 

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

?define('DIR_WS_DOWNLOAD_PUBLIC', 'pub/');
?define('DIR_FS_CATALOG', dirname($HTTP_SERVER_VARS['SCRIPT_FILENAME']));
?define('DIR_FS_DOWNLOAD', DIR_FS_CATALOG . 'download/');
?define('DIR_FS_DOWNLOAD_PUBLIC', DIR_FS_CATALOG . 'pub/');

// define our database connection
?define('DB_SERVER', 'localhost'); // eg, localhost - should not be empty for productive servers
?define('DB_SERVER_USERNAME', '******');
?define('DB_SERVER_PASSWORD', '*******');
?define('DB_DATABASE', ?*************?);
?define('USE_PCONNECT', 'true'); // use persistent connections?
?define('STORE_SESSIONS', 'mysql'); // leave empty '' for default handler or set to 'mysql'
?>

 

C:\apache2triad\htdocs\mydomain\mainwebsite_html\catalog\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 (c) 2002 osCommerce

?Released under the GNU General Public License
*/

// define our webserver variables
// FS = Filesystem (physical)
// WS = Webserver (virtual)
?define('HTTP_SERVER', ''); // eg, http://localhost or - https://localhost should not be NULL for productive servers
?define('HTTP_CATALOG_SERVER', 'http://localhost');
?define('HTTPS_CATALOG_SERVER', '');
?define('ENABLE_SSL_CATALOG', 'false'); // secure webserver for catalog module
?define('DIR_FS_DOCUMENT_ROOT', 'C:/apache2triad/htdocs/mydomain/mainwebsite_html/'); // 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', 'C:/apache2triad/htdocs/mydomain/mainwebsite_html/catalog/admin/');
?define('DIR_WS_CATALOG', '/catalog/');
?define('DIR_FS_CATALOG', 'C:/apache2triad/htdocs/mydomain/mainwebsite_html/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', 'localhost');
?define('DB_SERVER_USERNAME', '*****');
?define('DB_SERVER_PASSWORD', '*****');
?define('DB_DATABASE', '********');
?define('USE_PCONNECT', 'true');
?define('STORE_SESSIONS', 'mysql');
?>

Link to comment
Share on other sites

try changing this:

 

define('DIR_FS_DOCUMENT_ROOT', 'C:/apache2triad/htdocs/mydomain/mainwebsite_html/'); // where your pages are located on the server

 

to this:

 

define('DIR_FS_DOCUMENT_ROOT', 'C:/apache2triad/htdocs/mydomain/mainwebsite_html'); // where your pages are located on the server

 

 

that didn't change it either.

 

Korsh

Link to comment
Share on other sites

I run locally in my PC, everything is fine, either the catalog or the admin. After I upload to the server (internet), the catalog is still fine, but the admin is not working. Blank page. Seems the path is correct, have no idea what to do fixing this.

Link to comment
Share on other sites

I run locally in my PC, everything is fine, either the catalog or the admin. After I upload to the server (internet), the catalog is still fine, but the admin is not working. Blank page. Seems the path is correct, have no idea what to do fixing this.

 

Stab in the dark: check your path settings with your isp - they're not always obvious - particularly on a shared server

Link to comment
Share on other sites

I run locally in my PC, everything is fine, either the catalog or the admin. After I upload to the server (internet), the catalog is still fine, but the admin is not working. Blank page. Seems the path is correct, have no idea what to do fixing this.

 

Hi zhen,

 

It seems we have the same problem but in different places. Admin on the website I am building is working just fine. I get the blank screen with my local testsite. Could you compare my configure.php files with your local site?

 

korsh

Link to comment
Share on other sites

I run osc offline on a PC and your config files look v similar to mine. 

 

You might find it easier to install easyphp which comes with mysql and apache and is easy to install and configure

 

Thanks noelc,

 

I will give it some thought uninstalling and reinstalling apache was to be my last resort. I did however check to see if apache was the problem and I don't think it is.

I put a phpinfo.php in the catalog and ran it through localhost and it showed up just fine.

 

korsh

Link to comment
Share on other sites

Hi zhen,

 

It seems we have the same problem but in different places. Admin on the website I am building is working just fine. I get the blank screen with my local testsite. Could you compare my configure.php files with your local site?

 

korsh

 

Korsh,

 

Here is my local admin/includes/configure.php

<?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://localhost'); // eg, http://localhost - should not be empty for productive servers
 define('HTTP_CATALOG_SERVER', 'http://localhost');
 define('HTTPS_CATALOG_SERVER', '');
 define('ENABLE_SSL_CATALOG', 'false'); // secure webserver for catalog module
 define('DIR_FS_DOCUMENT_ROOT', 'c:/appserv/www/kadoshopping/catalog/'); // where the pages are located on the server
 define('DIR_WS_ADMIN', '/kadoshopping/catalog/admin/'); // absolute path required
 define('DIR_FS_ADMIN', 'c:/appserv/www/kadoshopping/catalog/admin/'); // absolute pate required
 define('DIR_WS_CATALOG', '/kadoshopping/catalog/'); // absolute path required
 define('DIR_FS_CATALOG', 'c:/appserv/www/kadoshopping/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 our database connection
 define('DB_SERVER', 'localhost'); // eg, localhost - should not be empty for productive servers
 define('DB_SERVER_USERNAME', '*****');
 define('DB_SERVER_PASSWORD', '*****');
 define('DB_DATABASE', '*****');
 define('USE_PCONNECT', 'false'); // use persisstent connections?
 define('STORE_SESSIONS', 'mysql'); // leave empty '' for default handler or set to 'mysql'
?>

 

:huh: Hopefully it can help?

Link to comment
Share on other sites

Korsh,

 

Here is my local admin/includes/configure.php

<?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://localhost'); // eg, http://localhost - should not be empty for productive servers
?define('HTTP_CATALOG_SERVER', 'http://localhost');
?define('HTTPS_CATALOG_SERVER', '');
?define('ENABLE_SSL_CATALOG', 'false'); // secure webserver for catalog module
?define('DIR_FS_DOCUMENT_ROOT', 'c:/appserv/www/kadoshopping/catalog/'); // where the pages are located on the server
?define('DIR_WS_ADMIN', '/kadoshopping/catalog/admin/'); // absolute path required
?define('DIR_FS_ADMIN', 'c:/appserv/www/kadoshopping/catalog/admin/'); // absolute pate required
?define('DIR_WS_CATALOG', '/kadoshopping/catalog/'); // absolute path required
?define('DIR_FS_CATALOG', 'c:/appserv/www/kadoshopping/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 our database connection
?define('DB_SERVER', 'localhost'); // eg, localhost - should not be empty for productive servers
?define('DB_SERVER_USERNAME', '*****');
?define('DB_SERVER_PASSWORD', '*****');
?define('DB_DATABASE', '*****');
?define('USE_PCONNECT', 'false'); // use persisstent connections?
?define('STORE_SESSIONS', 'mysql'); // leave empty '' for default handler or set to 'mysql'
?>

 

:huh: Hopefully it can help?

 

 

Thanks zhen,

 

Mine is pretty much the same so I guess I can safely say the problem lies elsewhere - but where?

 

I even tried changing the name of the catalog folder and doing a fresh install and I still get the same situation.

 

korsh

Link to comment
Share on other sites

if your document root is like this:

 

define('DIR_FS_DOCUMENT_ROOT', 'c:/appserv/www/kadoshopping/catalog/'); // where the pages are located on the server

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

define('DIR_FS_ADMIN', 'c:/appserv/www/kadoshopping/catalog/admin/'); // absolute pate required

 

then things need to be:

 

 

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

 

define('DIR_FS_ADMIN', 'c:/appserv/www/kadoshopping/catalog/admin/'); // absolute pate required

 

Korsh,

 

Here is my local admin/includes/configure.php

<?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://localhost'); // eg, http://localhost - should not be empty for productive servers
?define('HTTP_CATALOG_SERVER', 'http://localhost');
?define('HTTPS_CATALOG_SERVER', '');
?define('ENABLE_SSL_CATALOG', 'false'); // secure webserver for catalog module
?define('DIR_FS_DOCUMENT_ROOT', 'c:/appserv/www/kadoshopping/catalog/'); // where the pages are located on the server
?define('DIR_WS_ADMIN', '/kadoshopping/catalog/admin/'); // absolute path required
?define('DIR_FS_ADMIN', 'c:/appserv/www/kadoshopping/catalog/admin/'); // absolute pate required
?define('DIR_WS_CATALOG', '/kadoshopping/catalog/'); // absolute path required
?define('DIR_FS_CATALOG', 'c:/appserv/www/kadoshopping/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 our database connection
?define('DB_SERVER', 'localhost'); // eg, localhost - should not be empty for productive servers
?define('DB_SERVER_USERNAME', '*****');
?define('DB_SERVER_PASSWORD', '*****');
?define('DB_DATABASE', '*****');
?define('USE_PCONNECT', 'false'); // use persisstent connections?
?define('STORE_SESSIONS', 'mysql'); // leave empty '' for default handler or set to 'mysql'
?>

 

:huh: Hopefully it can help?

Link to comment
Share on other sites

ZHEN - your web hosting company has their servers in the EV1 server centre, exactly the same as myself. Your config files are set up correctly. Whatever the problem is it's not those!

 

Vger

Link to comment
Share on other sites

if your document root is like this:

 

define('DIR_FS_DOCUMENT_ROOT', 'c:/appserv/www/kadoshopping/catalog/'); // where the pages are located on the server

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

define('DIR_FS_ADMIN', 'c:/appserv/www/kadoshopping/catalog/admin/'); // absolute pate required

 

then things need to be:

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

 

define('DIR_FS_ADMIN', 'c:/appserv/www/kadoshopping/catalog/admin/'); // absolute pate required

 

 

I'm having the same problem as everyone else, my catalog is viewable locally but my admin section is just a blank page. Here is my config file:

 

<?php

/*

osCommerce, Open Source E-Commerce Solutions

http://www.oscommerce.com

 

Copyright ? 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://localhost'); // eg, http://localhost - should not be empty for productive servers

define('HTTP_CATALOG_SERVER', 'http://localhost');

define('HTTPS_CATALOG_SERVER', '');

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

define('DIR_FS_DOCUMENT_ROOT', 'C:/apache2triad/htdocs/oscommerce/'); // where the pages are located on the server

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

define('DIR_FS_ADMIN', 'C:/apache2triad/htdocs/oscommerce/admin/'); // absolute pate required

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

define('DIR_FS_CATALOG', 'C:/apache2triad/htdocs/oscommerce/'); // 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/');

 

// Added for Templating

define('DIR_FS_CATALOG_MAINPAGE_MODULES', DIR_FS_CATALOG_MODULES . 'mainpage_modules/');

define('DIR_WS_TEMPLATES', DIR_WS_CATALOG . 'templates/');

define('DIR_FS_TEMPLATES', DIR_FS_CATALOG . 'templates/');

 

// define our database connection

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

define('DB_SERVER_USERNAME', 'xxxxx');

define('DB_SERVER_PASSWORD', 'xxxxxx');

define('DB_DATABASE', 'xxxxxx');

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

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

?>

Link to comment
Share on other sites

ZHEN - your web hosting company has their servers in the EV1 server centre, exactly the same as myself.  Your config files are set up correctly.  Whatever the problem is it's not those!

 

Vger

 

I'm afraid I bailed out - I reinstalled apache and and oscommerce and gradually copied back the php files. It was completely successful I now have my test site operational but I am no wiser as to what caused the problem. I guess sometimes it is quicker to just start again. Thanks to everyone who helped me sort out this problem.

 

korsh

Link to comment
Share on other sites

Found the solution.

 

Its actually an error in the code.

Go to /catalog/admin/includes/classes/sessions.php

look on line 33, it should look like:

 

var $cookie_path = substr(DIR_WS_ADMIN, 0, -1);

 

you have to add ' ' around the substr statement, like:

 

var $cookie_path = 'substr(DIR_WS_ADMIN, 0, -1)';

 

Then the admin page is not blank anymore

 

This has to be fixed in the code and next release,

can someone forward it to the right person so it gets done?

 

Cheers!!!

Link to comment
Share on other sites

Zhen,

 

Then it is a webserver issue, is it your own webserver?

Have you got access to the webserver logs?

Look in the logs, if it is apache, httpd-error.log, it should give you a clue to where the problem are!

 

Good luck!

 

Acidophilus,

 

I had changed the code but it's not working. My admin page is blank when viewed from the webserver but fine in my local computer.

 

zhen

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...