ECSHOP white screen problems! Online, etc! I tested it with echo (& quot; test & quot;); exit; and found that the code below in the init. php file will not be executed. PHPcodeif (! Defined (INIT_NO_USERS) {* initialize session * include (root_path.20.descls_sess ECSHOP white screen problem! Online, etc!
I used echo ("test"); exit; to test and found that
The following code in the init. php file will not be executed.
PHP code
If (! Defined ('init _ NO_USERS ') {/* initialize session */include (ROOT_PATH. 'regiondes/cls_session.php '); $ sess = new cls_session ($ db, $ ecs-> table ('Session '), $ ecs-> table ('Sessions _ data'); echo ("test"); exit; define ('sess _ id ', $ sess-> get_session_id ());}
Put it in this directory and you will not execute it.
------ Solution --------------------
1. your code is incomplete. the constant INIT_NO_USERS may have been defined before
2. pay attention to the code used to save the file after modification. ecshop must be UTF-8 encoded. if you save the file as gbk, a "white screen" may appear"
------ Solution --------------------
Determine whether the $ sess object is correct
Go to get_session_id (); troubleshoot
------ Solution --------------------
Echo ("test"); exit;
After you EXIT all the code below, the code will not be executed.
Define ('sess _ id', $ SESS-> get_session_id ());
This sentence is useless.
------ Solution --------------------
Add a print statement before this if statement.