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.