Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Blank page! Need to clear the cookies to re-enter the website. Otherwise, blank page all the time.


kazaafhin

Recommended Posts

Dear frens here,

 

i afraid i posted wrong to thread v3.x just now. In fact mine using v2.2 but is ok.. plz see my problem..

 

I'm working on a website with OScommerce. It is installed at our own server on Windows 2000 standard version.

The server is installed with Apache2Triad.

 

The weird problem comes from the Cookies or the session, i suspect.

 

I can get into index.php, the page display correctly, but when i clicked on any of the links, it will be loaded into a Blank Page.

I can't get into the index.php anymore, neither all the pages i can't get in.

Then i cleared the Cookies, i can go index.php correctly, but when i clicked link again, it goes Blank Page again.

 

 

 

Here is my includes/configure.php

 

<?php

define('HTTP_SERVER', 'http://www.mysite.com.my');

define('HTTPS_SERVER', '');

 

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

define('HTTPS_CATALOG_SERVER', '');

define('DIR_FS_DOCUMENT_ROOT', '/myusername/');

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

define('DIR_FS_ADMIN', '/myusername/admin/');

define('DIR_WS_CATALOG', '/');

 

define('ENABLE_SSL', false);

define('HTTP_COOKIE_DOMAIN', '/');

define('HTTPS_COOKIE_DOMAIN', '');

define('HTTP_COOKIE_PATH', '/');

define('HTTPS_COOKIE_PATH', '/');

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

define('DIR_FS_DOWNLOAD', DIR_FS_CATALOG . 'download/');

define('DIR_FS_DOWNLOAD_PUBLIC', DIR_FS_CATALOG . 'pub/');

 

//define('SESSION_FORCE_COOKIE_USE', FALSE);

 

define('DB_SERVER', 'localhost');

define('DB_SERVER_USERNAME', 'myDBusername');

define('DB_SERVER_PASSWORD', 'myDBpasswd');

define('DB_DATABASE', 'myDB');

define('USE_PCONNECT', 'false');

define('STORE_SESSIONS', 'mysql');

?>

 

any help would appreciate. Thanks

Link to comment
Share on other sites

I can get into index.php, the page display correctly, but when i clicked on any of the links, it will be loaded into a Blank Page.

I can't get into the index.php anymore, neither all the pages i can't get in.

Then i cleared the Cookies, i can go index.php correctly, but when i clicked link again, it goes Blank Page again.

There is an error and your webserver is configured not to show the error to the browser (good security). Instead I assume the error is logged somewhere and you can access that through some panel of your hosting provider.

 

Here is my includes/configure.php

 

define('DIR_FS_DOCUMENT_ROOT', '/myusername/');

Actually, it is the configure.php of the admin side. FileServer document root is supposed to be a bit longer than just your user user name. On a Mac (for a shop in the catalog directory) it is something like:

  define('DIR_FS_DOCUMENT_ROOT', '/Library/WebServer/Documents/catalog/');

Link to comment
Share on other sites

i've checked my session table in the database, it comes out two sessions when i visit the index.php, like below:

 

sesskey: c98a76dbe35ff42fd9fbd8ce980f0b25

Expiry: 1245552309

Value: cart|O:12:"shoppingCart":4:{s:8:"contents";a:0:{}s:5:"total";i:0;s:6:"weight";i:0;s:12:"content_type";b:0;}language|s:7:"english";languages_id|s:1:"1";currency|s:3:"&RM";navigation|O:17:"navigationHistory":2:{s:4:"path";a:1:{i:0;a:4:{s:4:"page";s:9:"index.php";s:4:"mode";s:6:"NONSSL";s:3:"get";a:0:{}s:4:"post";a:0:{}}}s:8:"snapshot";a:0:{}}sendto|N;

 

sesskey: 8cd57c5431d4c0dad12efecdf5ec5b6a

Expiry: 1245552309

Value: cart|O:12:"shoppingCart":4:{s:8:"contents";a:0:{}s:5:"total";i:0;s:6:"weight";i:0;s:12:"content_type";b:0;}language|s:7:"english";languages_id|s:1:"1";currency|s:3:"&RM";navigation|O:17:"navigationHistory":2:{s:4:"path";a:1:{i:0;a:4:{s:4:"page";s:17:"menu_items.js.php";s:4:"mode";s:6:"NONSSL";s:3:"get";a:0:{}s:4:"post";a:0:{}}}s:8:"snapshot";a:0:{}}

 

The osCsid in my links is the first one, which is c98a76dbe35ff42fd9fbd8ce980f0b25,

but when i clicked this links, my page goes blank.

i suspect here is the problem ?

 

 

I tried on another hosting, visited the index.php, the session table shows this only:

 

a46c115a584a661edea60f07562cf97e 1245551341 cart|O:12:"shoppingCart":4:{s:8:"contents";a:0:{}s:5:"total";i:0;s:6:"weight";i:0;s:12:"content_type";b:0;}language|s:7:"english";languages_id|s:1:"1";currency|s:3:"&RM";navigation|O:17:"navigationHistory":2:{s:4:"path";a:1:{i:0;a:4:{s:4:"page";s:9:"index.php";s:4:"mode";s:6:"NONSSL";s:3:"get";a:0:{}s:4:"post";a:0:{}}}s:8:"snapshot";a:0:{}}sendto|N;

 

c9f42043e9954614b370a98cbfac3f1c 1245551341 cart|N;language|s:7:"english";languages_id|s:1:"1";currency|s:3:"&RM";navigation|N;

 

the osCsid is the first one as well, a46c115a584a661edea60f07562cf97e but the links works correctly, no blank page at all.

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...