Hello,
please anyone can help there? the pages ina dmin area shows blank:
:-(
How to turn on PHP error reporting?
Add this after <?php into wp-config.php file:
Code:
/*** This will log all errors notices and warnings to a file called debug.log in
* wp-content (if Apache does not have write permission, you may need to create
* the file first and set the appropriate permissions (i.e. use 666) )
*/
define(‘WP_DEBUG’, true);
define(‘WP_DEBUG_LOG’, true);
define(‘WP_DEBUG_DISPLAY’, false);
@ini_set(‘display_errors’,0);
Then reload erroneous wordpress page and check wp-content/debug.log file
mine returned errors:
Code:
[27-Apr-2014 10:24:22 UTC] PHP Fatal error: Access to undeclared static property: WP_Screen::$this in /home/*/public_html/_sub/mysite.info/wp-admin/includes/screen.php on line 706
When added "Access to undeclared static property: WP_Screen::$this in" into Google it returned a fix:
Replace:
Code:
echo self::$this->_help_sidebar;
by:
Code:
echo $this->_help_sidebar;
in wp-admin/includes/screen.php
Then blank screen admin area errors should be fixed. Turn off error reporting in wp-config.php
Bookmarks