Home CMS Tutorial DEDECMS What should I do if the background login interface is blank after installing dedecms?

What should I do if the background login interface is blank after installing dedecms?

Jan 29, 2021 pm 02:02 PM
dedecms Backstage

What should I do if the background login interface is blank after installing dedecms?

Foreword:

(Learning video sharing: Introduction to Programming)

php version: 5.4.4

What should I do if the background login interface is blank after installing dedecms?

Everything went smoothly during the installation. When logging in to the backend, a blank page was displayed after filling in the username and password. Solution:

Find include/userlogin.class .php, which contains a keepuser() function, which uses session_register to register a session variable. However, this function has been removed in php5.4. See the official website introduction:

What should I do if the background login interface is blank after installing dedecms?

If you use this php version, there will definitely be an error, but we can modify the code:

Comment out @session_register($this->keepUserIDTag); and then change it to
if ( !isset($_SESSION[$this->keepUserIDTag]))

There are six in total, all 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 //@session_register($this->keepAdminStyleTag);
23 $_SESSION[$this->keepAdminStyleTag] = $adminstyle;
Copy after login

Re-enter the background and log in, you can jump to the normal Manage the page.

PS: I have been struggling with this problem of blank login background for a long time, but I still can’t find a solution because I am not familiar with PHP. It is generally said on the Internet that it is a problem with the encoding of the data/common.inc.php file. , the encoding needs to be changed to a BOM-free format file to save, but it is not said to be a problem with php5.4. The most important thing is that the official website of DreamWeaver has not explained it, and some people have asked this question on the official website forum but there is no answer. It is frustrating. ! But now it's finally solved.

Related recommendations: dedecms tutorial

The above is the detailed content of What should I do if the background login interface is blank after installing dedecms?. For more information, please follow other related articles on the PHP Chinese website!

Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn

Hot AI Tools

Undresser.AI Undress

Undresser.AI Undress

AI-powered app for creating realistic nude photos

AI Clothes Remover

AI Clothes Remover

Online AI tool for removing clothes from photos.

Undress AI Tool

Undress AI Tool

Undress images for free

Clothoff.io

Clothoff.io

AI clothes remover

Video Face Swap

Video Face Swap

Swap faces in any video effortlessly with our completely free AI face swap tool!

Hot Tools

Notepad++7.3.1

Notepad++7.3.1

Easy-to-use and free code editor

SublimeText3 Chinese version

SublimeText3 Chinese version

Chinese version, very easy to use

Zend Studio 13.0.1

Zend Studio 13.0.1

Powerful PHP integrated development environment

Dreamweaver CS6

Dreamweaver CS6

Visual web development tools

SublimeText3 Mac version

SublimeText3 Mac version

God-level code editing software (SublimeText3)

Discuz background login problem solution revealed Discuz background login problem solution revealed Mar 03, 2024 am 08:57 AM

The solution to the Discuz background login problem is revealed. Specific code examples are needed. With the rapid development of the Internet, website construction has become more and more common, and Discuz, as a commonly used forum website building system, has been favored by many webmasters. However, precisely because of its powerful functions, sometimes we encounter some problems when using Discuz, such as background login problems. Today, we will reveal the solution to the Discuz background login problem and provide specific code examples. We hope to help those in need.

Are you worried about WordPress backend garbled code? Try these solutions Are you worried about WordPress backend garbled code? Try these solutions Mar 05, 2024 pm 09:27 PM

Are you worried about WordPress backend garbled code? Try these solutions, specific code examples are required. With the widespread application of WordPress in website construction, many users may encounter the problem of garbled code in the WordPress backend. This kind of problem will cause the background management interface to display garbled characters, causing great trouble to users. This article will introduce some common solutions to help users solve the trouble of garbled characters in the WordPress backend. Modify the wp-config.php file and open wp-config.

Discuz background account login exception, how to deal with it? Discuz background account login exception, how to deal with it? Mar 09, 2024 pm 05:51 PM

Title: Discuz background account login exception, how to deal with it? When you use the backend management of the Discuz forum system, you may sometimes encounter abnormal account login. This could be due to a variety of reasons, including a wrong password, account being blocked, network connection issues, etc. When encountering this situation, we need to solve the problem through simple troubleshooting and processing. Check whether the account number and password are correct: First, confirm whether the account number and password you entered are correct. When logging in, make sure the capitalization is correct and the password is

Discuz background login failed? Teach you how to solve it easily! Discuz background login failed? Teach you how to solve it easily! Mar 02, 2024 pm 06:03 PM

Discuz background login failed? Teach you how to solve it easily! As Discuz, as a popular forum platform, is widely used in website construction and management, sometimes you will encounter backend login failures, which is troubling. Today we will discuss the issues that may cause Discuz backend login failure, provide some solutions, and attach specific code examples. I hope this article can help webmasters and developers who encounter similar problems. 1. Troubleshooting is to solve the problem of Discuz background login failure.

How to smoothly switch between different applications under Linux system How to smoothly switch between different applications under Linux system Feb 19, 2024 pm 03:00 PM

Switching between different applications is achieved through the front and back switching of processes. Background: After Linux starts a program, it switches to the background for execution and wants to continue operating in Linux. In Linux, you can use the following methods to start and exit a program in the background, but still keep its process running: 1. Linux starts a program to execute in the background 1. Use nohup and &: $nohupyour_program& Use the nohup command to make The program ignores the hang-up signal (SIGHUP) so that the program continues to run even if you exit the terminal. The & symbol causes the program to run in the background. 2. Use ctrl+Z: If you have started the program in the foreground, you can use ct

ThinkPHP6 backend management system development: realizing backend functions ThinkPHP6 backend management system development: realizing backend functions Aug 27, 2023 am 11:55 AM

ThinkPHP6 backend management system development: Implementing backend functions Introduction: With the continuous development of Internet technology and market demand, more and more enterprises and organizations need an efficient, safe, and flexible backend management system to manage business data and conduct operational management. This article will use the ThinkPHP6 framework to demonstrate through examples how to develop a simple but practical backend management system, including basic functions such as permission control, data addition, deletion, modification and query. Environment preparation Before starting, we need to install PHP, MySQL, Com

Where is the imperial cms resource network template? Where is the imperial cms resource network template? Apr 17, 2024 am 10:00 AM

Empire CMS template download location: Official template download: https://www.phome.net/template/ Third-party template website: https://www.dedecms.com/diy/https://www.0978.com.cn /https://www.jiaocheng.com/Installation method: Download template Unzip template Upload template Select template

How to correctly use nohup for background task processing How to correctly use nohup for background task processing Mar 26, 2024 am 09:39 AM

How to correctly use nohup for background task processing In daily work, we often need to perform some time-consuming tasks, such as file copying, data processing, etc. In order not to affect our work efficiency and ensure that tasks can run stably in the background, we can use the nohup command to start these tasks. This article will introduce how to correctly use nohup for background task processing. What is nohup command? nohup is a command in Unix and Unix-like operating systems that is used to run commands or scripts in the background.

See all articles