6
votes

Wordpress is installed in one site that I am working on. Suddenly in the admin panel i cant see any of the pan pages. I can click on the left side menu but nothing displays and there are no errors when i turn wordpress debug mode on.

I have searched around but I can not find a solution to my problem. any ideas on how to debug this or what could be the issue?

enter image description here

3
Is there any error printed on server logs? - Oscar Pérez
Have you done some inspects with chromes inspect element, or had a look the the source code to see if the content is being generated? - The Humble Rat
nothing in the error_log.log - Jonathan Thurft
@TheHumbleRat there is something being generated but dont know what it is. what i found by investigating that was an error hidden in the markup Fatal error: Access to undeclared static property: WP_Screen::$this in /var/www/vhosts/lonocreative.com/httpdocs/blog/wp-admin/includes/screen.php on line 706 but dont know what it means. its on the following variable self::$this->_help_sidebar - Jonathan Thurft
This basically means you are trying to access a variable that does not exist. I would suggest you back up your site and database before doing anything. Then remove the plugin files one by one. If this does not solve the issue then you may have to do a restore with a fresh Wordpress install. But this is more than likely an outdated plugin causing an issue. Have you updated anything recently. - The Humble Rat

3 Answers

8
votes

There is a bug in WordPress 3.3.1 causing the issue. It may affect other versions as well.

To solve the issue you can update WordPress to the current stable release and do integration testing afterwards. Or you can do a quick bug fix.

To fix the bug:

  1. Open file blog/wp-admin/includes/screen.php in your favorite text editor.
  2. On line 706 find the following PHP statement: <?php echo self::$this->_help_sidebar; ?>
  3. Replace it with the statement: <?php echo $this->_help_sidebar; ?>
  4. Save your changes.

Hope it helps you.

Link info: https://wordpress.stackexchange.com/questions/127427/how-to-fix-empty-dashboard-issue-in-wordpress

2
votes

To fix the bug:

  • Open file blog/wp-admin/includes/screen.php in your favorite text editor.
  • On line 706 find the following PHP statement: <?php echo self::$this->_help_sidebar; ?>
  • Replace it with the statement:<?php echo $this->_help_sidebar; ?>
  • Save your changes.

Hope it helps you.

0
votes

Try adding define('SCRIPT_DEBUG', true); to the bottom of your wp-config.php file (just before the require_once line).