The dede background is blank or blank after logon. After logging out, it is also a blank solution.

Source: Internet
Author: User
Tags ftp file parse error

I haven't written any blog posts recently, and I have been looking for a job. I just found a job. The first thing I want to do after I take over is to make a dede mobile site, which is a linux system. After the website is transferred, the entered address is blank and must be followed by login. php can log on, and clicking logout is also a blank page. Baidu has not found many of them. I will summarize the methods and publish them to you.

Solution 1:

Cause: include/common. inc. php, data/common. inc. php is modified and the BOM header is stored. This problem is generally found in utf8 encoding.

Method: Download the ftp file and use notepad ++ or dw to open it. Select UTF8 and save it without BOM header.

Solution 2

Cause: This is generally because the environment is PHP5.4, and session_register in dede is removed.

Method:

Find include/userlogin. class. the keepuser () function in php overwrites all @ session_register. Although I don't know what this @ means, comment out @ session_register ($ this-> keepUserIDTag, then change to if (! Isset ($ _ SESSION [$ this-> keepUserIDTag]) has 6. If (! Isset ($ _ SESSION [$ this-> keepUserIDTag]) // @ session_register ($ this-> keepUserIDTag ); $ _ SESSION [$ this-> keepUserIDTag] = $ this-> userID; if (! Isset ($ _ SESSION [$ this-> keepUserTypeTag]) // @ session_register ($ this-> keepUserTypeTag ); $ _ SESSION [$ this-> keepUserTypeTag] = $ this-> userType; if (! Isset ($ _ SESSION [$ this-> keepUserChannelTag]) // @ session_register ($ this-> keepUserChannelTag ); $ _ SESSION [$ this-> keepUserChannelTag] = $ this-> userChannel; if (! Isset ($ _ SESSION [$ this-> keepUserNameTag]) // @ session_register ($ this-> keepUserNameTag ); $ _ SESSION [$ this-> keepUserNameTag] = $ this-> userName; if (! Isset ($ _ SESSION [$ this-> keepUserPurviewTag]) // @ session_register ($ this-> keepUserPurviewTag ); $ _ SESSION [$ this-> keepUserPurviewTag] = $ this-> userPurview; if (! Isset ($ _ SESSION [$ this-> keepAdminStyleTag]) // @ session_register ($ this-> keepAdminStyleTag); $ _ SESSION [$ this-> keepAdminStyleTag] = $ adminstyle; then you can log on to the background.


Solution 3:

Find the include/common. inc. php file, open it, and find the program 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 go to the data \ config. 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.
The above is the original text, and my prompts are different. DEDE tells me that it is the run under plugins. an error occurred in the PHP file, so I checked the run on the remote server through FTP. the PHP file is gone, so run the local file. the PHP file is uploaded to solve the problem .)


Solution 4: In include/common. inc. php adds ob_start () at the beginning. If not, check php. if output_buffering is on enabled in ini or not, try to change it to on. Remember to restart apache (this method is used)

Solution 5: Check whether install_lock.txt exists in some dedexes. If it does not exist, create a new one.

The time was short, and there was no time to look at the source code. Many of Baidu's products were unreliable and misled many friends. This time I made a summary. Haha, I hope you can join us in group 252799167 for discussion.

This article is from the "Thunder" blog, please be sure to keep this source http://a3147972.blog.51cto.com/2366547/1272057

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.