In Windows 8, dede (Zhimeng) is logged into the background blank

Source: Internet
Author: User
Tags parse error php file blank page


In the root directory, locate the/include/userlogin. class. php file in the path, find the keepuser () function in it, and rewrite all @ session_register in it.

You will see this code in it:

<? Php
@ Session_register ($ this-> keepUserIDTag );
$ _ SESSION [$ this-> keepUserIDTag] = $ this-> userID;
 
@ Session_register ($ this-> keepUserTypeTag );
$ _ SESSION [$ this-> keepUserTypeTag] = $ this-> userType;
 
@ Session_register ($ this-> keepUserChannelTag );
$ _ SESSION [$ this-> keepUserChannelTag] = $ this-> userChannel;
 
@ Session_register ($ this-> keepUserNameTag );
$ _ SESSION [$ this-> keepUserNameTag] = $ this-> userName;
 
@ Session_register ($ this-> keepUserPurviewTag );
$ _ SESSION [$ this-> keepUserPurviewTag] = $ this-> userPurview;
 
@ Session_register ($ this-> keepAdminStyleTag );
$ _ SESSION [$ this-> keepAdminStyleTag] = $ adminstyle;

 


All right, let's change them:

The code is as follows: Copy code

If (! Isset ($ _ SESSION [$ this-> keepUserIDTag])
$ _ SESSION [$ this-> keepUserIDTag] = $ this-> userID;
 
If (! Isset ($ _ SESSION [$ this-> keepUserTypeTag])
$ _ SESSION [$ this-> keepUserTypeTag] = $ this-> userType;
 
If (! Isset ($ _ SESSION [$ this-> keepUserChannelTag])
$ _ SESSION [$ this-> keepUserChannelTag] = $ this-> userChannel;
 
If (! Isset ($ _ SESSION [$ this-> keepUserNameTag])
$ _ SESSION [$ this-> keepUserNameTag] = $ this-> userName;
 
If (! Isset ($ _ SESSION [$ this-> keepUserPurviewTag])
$ _ SESSION [$ this-> keepUserPurviewTag] = $ this-> userPurview;
 
If (! Isset ($ _ SESSION [$ this-> keepAdminStyleTag])
$ _ SESSION [$ this-> keepAdminStyleTag] = $ adminstyle;

Another possibility is that you can use notepad to change the database password to a blank page in the background. Using Notepad and Dreamweaver to modify the surface cannot be seen differently (see the figure ). Actually, this is not the case !!! The solution is also simple: you just need to use Dreamweaver to open the data/common. inc. php initially installed in DEDE and change the host name and database account password to the same space.


Attach another solution


Find the include/common. inc. Php file, open it, and find the program code:

The code is as follows: Copy code

// Error_reporting (E_ALL );

Error_reporting (E_ALL | ~ E_NOTICE );

Replace:

Error_reporting (E_ALL );

// Error_reporting (E_ALL | ~ E_NOTICE );

This step is very important, because it will tell you why the prompt information becomes blank, save it, and enter the management background again. At this time, you will find a prompt in the background. The original text prompt is:

Parse error: parse error in D:/wwwroot/pcpps/Web/data/config. cache. inc. php on line 44 was found, and the above was changed back first, and then we analyzed it from the error prompt.

From this, we can now find data/config in the root directory of the website. cache. inc. php on line 44 has a problem, and then I will back up the data/config. cache. inc. the problem is solved after php re-uploads full coverage. this eliminates the issue of blank background login for dede.

Related Article

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.