What would cause WordPress admin screen to be blank, except for nav bar?

前端 未结 3 697
有刺的猬
有刺的猬 2020-12-23 01:59

So I\'ve read through all the similar questions and can\'t find a solution here. Basically the user-facing site looks fine and is functioning properly. The WP Admin, howev

相关标签:
3条回答
  • 2020-12-23 02:55

    Indeed this worked for me too, changing to

    <?php echo $this->_help_sidebar; ?>
    

    I believe it is a matter of the php version we use

    Check here to understantd self:: functionality :

    http://www.diffen.com/difference/self_(PHP)_vs_this_(PHP)

    0 讨论(0)
  • 2020-12-23 03:00

    FYI, I had the exact same problem, and this solution worked for me. ie: change:

    echo self::$this->_help_sidebar;
    

    to

    echo $this->_help_sidebar;
    
    0 讨论(0)
  • 2020-12-23 03:05

    Ok.. found it.

    This was the offending code, and it was in wp-admin\includes\screen.php on line 706:

    <?php echo self::$this->_help_sidebar; ?>
    

    It should be:

    <?php echo $this->_help_sidebar; ?>
    

    Have no idea why this suddenly decided to go bad. And frankly I'm not sure I'll ever find out.

    But wanted to help others if possible.

    Take care everyone.. and thanks...

    0 讨论(0)
提交回复
热议问题