After DedeCMS V5.7 is installed, a blank space is displayed on the background. Solution:

Source: Internet
Author: User
Tags blank page

Cause analysis

Session_register, php5.4 removed this function. If you continue using this function, an error will occur.
If (! Change isset ($ _ SESSION [$ this-> keepUserTypeTag]) to this method.

Solution:

Find the userlogin. class. Php file in the include folder and delete all the files with session_register.

@ Session_register

Function keepUser ()
{
If ($ this-> userID! = "& $ This-> userType! = ")
{
Global $ admincachefile, $ adminstyle;
If (empty ($ adminstyle) $ adminstyle = 'dedecms ';

The code is as follows: Copy code

$ _ SESSION [$ this-> keepAdminStyleTag] = $ adminstyle;

PutCookie ('deuserid', $ this-> userID, 3600*24 ,'/');
PutCookie ('delogintime', time (), 3600*24 ,'/');

$ This-> ReWriteAdminChannel ();

Return 1;
}
Else {.... Omitted below

Blank page after successful login in DedeCMS-V5.7 background

After repeated troubleshooting, the following summary is obtained:

In fact, the problem is relatively simple. After the log level is reduced, error_reporting (E_ALL );

We can see that there is an output before the header. Why? When php include and require are used, if the file encoding is inconsistent, the page will be blank, which is the problem, I used eclipse to convert all program codes into UTF8 (previously UTF8 + BOM). After conversion, I found include/comm. inc. php encoding or UTF8 + BOM, so editplus is forced to convert to UTF8, the problem is solved. In fact, the main problem is that the include/comm. inc. php file encoding can be converted to UTF8.

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.