In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-04-09 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)06/02 Report--
Editor to share with you after the installation of dedecms background login interface display blank solution, I believe that most people do not understand, so share this article for your reference, I hope you will learn a lot after reading this article, let's go to know it!
Php version: 5.4.4
Everything went smoothly until you logged in to the background and a blank page was displayed after filling in the username and password page. The solution:
Find include/userlogin.class.php, where there is a keepuser () function, which registers a session variable with session_register, but this function has been removed from php5.4. See the official website:
If you use this version of php, you will definitely make an error, but we can modify the following code:
Comment out @ session_register ($this- > keepUserIDTag); and change to
If (! isset ($_ SESSION [$this- > keepUserIDTag]))
There are six of them, all of which are changed to the following:
1 if (! isset ($SESSION [$this- > keepUserIDTag]) 2 / / @ session_register ($this- > keepUserIDTag); 3 $_ SESSION [$this- > keepUserIDTag] = $this- > userID; 4 5 if (! isset ($_ SESSION [$this- > keepUserTypeTag])) 6 / / @ session_register ($this- > keepUserTypeTag); 7 $_ SESSION [$this- > keepUserTypeTag] = $this- > userType; 8 9 if (! isset ($SESSION [$this- > keepUserChannelTag]) 10 / @ session_register ($this- > keepUserChannelTag) 11 $_ SESSION [$this- > keepUserChannelTag] = $this- > userChannel;12 13 if (! isset ($_ SESSION [$this- > keepUserNameTag]) 14 / / @ session_register ($this- > keepUserNameTag); 15 $_ SESSION [$this- > keepUserNameTag] = $this- > userName;16 17 if (! isset ($_ SESSION [$this- > keepUserPurviewTag]) 18 / / @ session_register ($this- > keepUserPurviewTag); 19 $_ SESSION [$this- > keepUserPurviewTag] = $this- > userPurview;20 21 if (! isset ($_ SESSION [$this- > keepAdminStyleTag])) 22 / @ keepAdminStyleTag ($session_register > session_register) 23 $_ SESSION [$this- > keepAdminStyleTag] = $adminstyle
Log in to the background again and you can jump to the management page normally.
PS: about this login background blank problem for a long time, has been unable to find a solution, because not familiar with PHP, the Internet is generally said to be the problem of data/common.inc.php file coding, the encoding to be changed to no BOM format file to save, unexpectedly did not say it is the problem of php5.4, the most important thing is that Weaving Dream official website unexpectedly did not make an explanation, and some people on the official website forum also put forward this question but there is no answer, depressed! But now it's finally solved.
The above is all the contents of this article entitled "the solution to the blank login interface after installing dedecms". Thank you for reading! I believe we all have a certain understanding, hope to share the content to help you, if you want to learn more knowledge, welcome to follow the industry information channel!
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.