It is estimated that many will encounter the situation that the login is blank after entering the account password in the dream background. What should we do if the dream background login is blank?
You can check whether it is php5.4 from the space provider. If it is php5.4, this may be the reason. Of course, to avoid this problem, you can use a space compatible with php5.3 or 5.2. Again, Linux is the best choice for dream space.
The method is simple. Add the following code at the end of include/helpers/util.helper.php in the root directory of the website
function fix_session_register(){
    function session_register(){
        $args = func_get_args();
        foreach ($args as $key){
            $_SESSION[$key]=$GLOBALS[$key];
        }
    }
    function session_is_registered($key){
        return isset($_SESSION[$key]);
    }
    function session_unregister($key){
        unset($_SESSION[$key]);
    }
}
if (!function_exists('session_register')) fix_session_register();
In this way, we can perfectly solve the problem of the blank background of logging in to dream weaving in PHP 5.4. more Dream weaving template Please choose us to dream.

Post reply

Can't comment until