ECSHOP white screen problems!

Source: Internet
Author: User
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.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.