Fli
04-27-2014, 11:37 AM
Hello,
please anyone can help there? the pages ina dmin area shows blank:
108
:-(
How to turn on PHP error reporting?
Add this after <?php into wp-config.php file:
/*** 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:
[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:
echo self::$this->_help_sidebar;
by:
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
please anyone can help there? the pages ina dmin area shows blank:
108
:-(
How to turn on PHP error reporting?
Add this after <?php into wp-config.php file:
/*** 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:
[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:
echo self::$this->_help_sidebar;
by:
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