PHP Fatal error: Access to undeclared static property: WP_Screen: in screen.php on line 706

Home Forums BulletProof Security Pro PHP Fatal error: Access to undeclared static property: WP_Screen: in screen.php on line 706

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #16997
    AITpro Admin
    Keymaster

    [Forum Topic was manually split into this new Topic]

    I have 2 sites up to date on WP and BPS Pro (except the latest BPS Pro version), but 3 other sites which haven’t been updated for a year.  The Dashboard and most functions show a white screen, but I can access BPS functions.

    Off for 3 days but will have to try and fix/re-install when I get back.

    One of the affected is the top level on my host, so I assume the .htaccess settings affect the domains below that? (was never sure of that one).  I will probably dump all 3 sites, but I need to clean up things next week certainly.

    ______________________

    Since the current version of WordPress is several years old on all 3 sites, as are the plugins, and I would prefer to start again with a current theme (Twenty Fourteen instead of Twenty Twelve) I trust it’s ok. Otherwise I might need to do this a couple of times to get it right.
    ______________________

    What happens when I try to load the outdated WP sites is that the dashboard only partially loads. I get the sidebar and then the right side is blank. It happens on Chrome, Firefox and IE8 but only on 3 sites, not on the 2 ones that have been updated.

    From the BPS screens I can view the PHP Error Log which shows some strange activity. I am not sure whether this is due to things failing because something out of date no longer works, or to something getting hacked. I can’t get into any export or settings pages.

    There are several PHP files that have a later date than the rest (13 December 2011) but I can’t see an obvious error. They were all locked down by BPS Pro, so it’s possible an auto-restore might have corrupted something even.

    I am thinking the best thing might be to do a complete re-install using the existing database, to ensure the WP files are all valid, but I am sure this will be potentially full of problems.

    Since I can’t access the functions I need, a complete re-install followed by BPS PRO addition, then the install of the necessary other plugins would be likely the best option. I will make sure I have backups of the media.

    Is there a link to a process for re-installing WP using an existing database, or a recommendation on the best steps to take?

    The PHP Error Log is as follows, in case this shows something that hints at an intrusion:

    [BPS Pro htaccess Protected Secure PHP Error Log]
    
    [03-Jun-2014 04:54:32 UTC] WordPress database error MySQL server has gone away for query SELECT t.*, tt.* FROM wp_terms AS t INNER JOIN wp_term_taxonomy AS tt ON t.term_id = tt.term_id WHERE tt.taxonomy = 'post_tag' AND t.slug = 'high-seas-adventure' LIMIT 1 made by require, wp, WP->main, WP->query_posts, WP_Query->query, WP_Query->get_posts, get_term_by
    [03-Jun-2014 04:54:32 UTC] WordPress database error MySQL server has gone away for query SELECT SQL_CALC_FOUND_ROWS wp_posts.* FROM wp_posts WHERE 1=1 AND 0 = 1 AND wp_posts.post_type = 'post' AND (wp_posts.post_status = 'publish') GROUP BY wp_posts.ID ORDER BY wp_posts.post_date DESC LIMIT 0, 10 made by require, wp, WP->main, WP->query_posts, WP_Query->query, WP_Query->get_posts
    [03-Jun-2014 04:54:32 UTC] WordPress database error MySQL server has gone away for query SELECT FOUND_ROWS() made by require, wp, WP->main, WP->query_posts, WP_Query->query, WP_Query->get_posts
    [03-Jun-2014 04:54:32 UTC] WordPress database error MySQL server has gone away for query SELECT t.*, tt.* FROM wp_terms AS t INNER JOIN wp_term_taxonomy AS tt ON t.term_id = tt.term_id WHERE tt.taxonomy = 'post_tag' AND t.slug = 'high-seas-adventure' LIMIT 1 made by require, wp, WP->main, WP->handle_404, WP_Query->get_queried_object, get_term_by
    [03-Jun-2014 04:54:32 UTC] WordPress database error MySQL server has gone away for query SELECT option_value FROM wp_options WHERE option_name = 'twentyeleven_theme_options' LIMIT 1 made by require, require_once, include, get_header, locate_template, load_template, require_once, wp_head, do_action, call_user_func_array, wp_enqueue_scripts, do_action, call_user_func_array, twentyeleven_enqueue_color_scheme, twentyeleven_get_theme_options, get_option
    [03-Jun-2014 04:54:32 UTC] WordPress database error MySQL server has gone away for query SELECT DISTINCT post_author FROM wp_posts WHERE post_type = 'post' AND post_status = 'publish' LIMIT 2 made by require, require_once, include, get_header, locate_template, load_template, require_once, body_class, get_body_class, apply_filters, call_user_func_array, twentyeleven_body_classes, is_multi_author
    [03-Jun-2014 04:54:32 UTC] WordPress database error MySQL server has gone away for query SELECT * FROM wp_posts WHERE (post_type = 'page' AND post_status = 'publish') ORDER BY menu_order,wp_posts.post_title ASC made by require, require_once, include, get_header, locate_template, load_template, require_once, wp_nav_menu, call_user_func, wp_page_menu, wp_list_pages, get_pages
    [03-Jun-2014 04:54:32 UTC] WordPress database error MySQL server has gone away for query SELECT wp_posts.* FROM wp_posts WHERE 1=1 AND wp_posts.post_type = 'post' AND (wp_posts.post_status = 'publish') ORDER BY wp_posts.post_date DESC LIMIT 0, 10 made by require, require_once, include, the_widget, WP_Widget_Recent_Posts->widget, WP_Query->__construct, WP_Query->query, WP_Query->get_posts
    [03-Jun-2014 04:54:32 UTC] WordPress database error MySQL server has gone away for query SELECT t.*, tt.* FROM wp_terms AS t INNER JOIN wp_term_taxonomy AS tt ON t.term_id = tt.term_id WHERE tt.taxonomy IN ('category') ORDER BY tt.count DESC made by require, require_once, include, wp_list_categories, get_categories, get_terms
    [03-Jun-2014 04:54:32 UTC] WordPress database error MySQL server has gone away for query SELECT YEAR(post_date) AS 
    year
    , MONTH(post_date) AS 
    month
    , count(ID) as posts FROM wp_posts WHERE post_type = 'post' AND post_status = 'publish' GROUP BY YEAR(post_date), MONTH(post_date) ORDER BY post_date DESC made by require, require_once, include, the_widget, WP_Widget_Archives->widget, wp_get_archives
    [03-Jun-2014 04:54:32 UTC] WordPress database error MySQL server has gone away for query SELECT t.*, tt.* FROM wp_terms AS t INNER JOIN wp_term_taxonomy AS tt ON t.term_id = tt.term_id WHERE tt.taxonomy IN ('post_tag') AND tt.count > 0 ORDER BY tt.count DESC LIMIT 45 made by require, require_once, include, the_widget, WP_Widget_Tag_Cloud->widget, wp_tag_cloud, get_terms
    [03-Jun-2014 04:54:32 UTC] WordPress database error MySQL server has gone away for query UPDATE 
    wp_options
     SET 
    option_value
     = '1401771272' WHERE 
    option_name
     = 'aktt_doing_tweet_download' made by shutdown_action_hook, do_action, call_user_func_array, aktt_update_tweets, update_option
    [03-Jun-2014 04:54:32 UTC] WordPress database error MySQL server has gone away for query UPDATE 
    wp_options
     SET 
    option_value
     = '0' WHERE 
    option_name
     = 'aktt_doing_tweet_download' made by shutdown_action_hook, do_action, call_user_func_array, aktt_update_tweets, update_option
    [13-Jul-2014 21:54:22 UTC] PHP Warning: shell_exec(): Unable to execute 'hash zip 2>&1' in /home4/poddys/public_html/wp-content/plugins/backupwordpress/hm-backup/hm-backup.php on line 724
    [13-Jul-2014 21:54:26 UTC] PHP Warning: shell_exec(): Unable to execute 'hash mysqldump 2>&1' in /home4/poddys/public_html/wp-content/plugins/backupwordpress/hm-backup/hm-backup.php on line 695
    [13-Jul-2014 21:54:28 UTC] PHP Warning: shell_exec(): Unable to execute 'hash mysqldump 2>&1' in /home4/poddys/public_html/wp-content/plugins/backupwordpress/hm-backup/hm-backup.php on line 695
    [14-Jul-2014 06:31:05 UTC] PHP Warning: shell_exec(): Unable to execute 'hash mysqldump 2>&1' in /home4/poddys/public_html/wp-content/plugins/backupwordpress/hm-backup/hm-backup.php on line 695
    [25-Jul-2014 01:20:01 UTC] PHP Warning: shell_exec(): Unable to execute 'hash zip 2>&1' in /home4/poddys/public_html/wp-content/plugins/backupwordpress/hm-backup/hm-backup.php on line 724
    [25-Jul-2014 01:20:04 UTC] PHP Warning: shell_exec(): Unable to execute 'hash mysqldump 2>&1' in /home4/poddys/public_html/wp-content/plugins/backupwordpress/hm-backup/hm-backup.php on line 695
    [25-Jul-2014 01:20:05 UTC] PHP Warning: shell_exec(): Unable to execute 'hash mysqldump 2>&1' in /home4/poddys/public_html/wp-content/plugins/backupwordpress/hm-backup/hm-backup.php on line 695
    [15-Aug-2014 07:29:04 UTC] PHP Fatal error: Access to undeclared static property: WP_Screen::$this in /home4/poddys/public_html/wp-admin/includes/screen.php on line 706
    [15-Aug-2014 07:29:17 UTC] PHP Fatal error: Access to undeclared static property: WP_Screen::$this in /home4/poddys/public_html/wp-admin/includes/screen.php on line 706
    [15-Aug-2014 07:29:26 UTC] PHP Fatal error: Access to undeclared static property: WP_Screen::$this in /home4/poddys/public_html/wp-admin/includes/screen.php on line 706
    [15-Aug-2014 07:37:18 UTC] PHP Fatal error: Access to undeclared static property: WP_Screen::$this in /home4/poddys/public_html/wp-admin/includes/screen.php on line 706
    [15-Aug-2014 07:37:19 UTC] PHP Warning: copy(/home4/poddys/public_html/.htaccess): failed to open stream: Permission denied in /home4/poddys/public_html/wp-content/plugins/bulletproof-security/includes/functions.php on line 3611
    [15-Aug-2014 07:41:35 UTC] PHP Fatal error: Access to undeclared static property: WP_Screen::$this in /home4/poddys/public_html/wp-admin/includes/screen.php on line 706
    [17-Aug-2014 19:31:54 UTC] PHP Fatal error: Access to undeclared static property: WP_Screen::$this in /home4/poddys/public_html/wp-admin/includes/screen.php on line 706
    [17-Aug-2014 19:35:53 UTC] PHP Fatal error: Access to undeclared static property: WP_Screen::$this in /home4/poddys/public_html/wp-admin/includes/screen.php on line 706
    [17-Aug-2014 19:36:35 UTC] PHP Fatal error: Access to undeclared static property: WP_Screen::$this in /home4/poddys/public_html/wp-admin/includes/screen.php on line 706
    [17-Aug-2014 19:36:39 UTC] PHP Fatal error: Access to undeclared static property: WP_Screen::$this in /home4/poddys/public_html/wp-admin/includes/screen.php on line 706
    [17-Aug-2014 19:43:54 UTC] PHP Fatal error: Access to undeclared static property: WP_Screen::$this in /home4/poddys/public_html/wp-admin/includes/screen.php on line 706
    

    Thanks for any help you can give.

    #17002
    AITpro Admin
    Keymaster

    Note:  Additional replies in this Forum topic were combined/condensed or removed to make the focus of this topic more clear.  The full scope of this issue is that 3 WordPress sites were several years old and instead of trying to upgrade these sites it would be much smarter and probably quicker just to backup the databases for these 3 sites, install new WordPress sites and databases and import the database backups into the new sites.

    I deleted your older php error log entries that were from last year and just kept everything from June 2014 to now, but obviously those issues have been happening intermittently for a year or so.

    Regarding the php errors:

    This is a generic php error that indicates your Server hiccupped/lost connection briefly and is very common/normal on all websites.

    WordPress database error MySQL server has gone away for query SELECT

    The backupwordpress plugin was unable to run the shell_exec() function to perform whatever task it was trying to perform. This is just a minor issue in the backupwordpress plugin, which you can contact the plugin author about for a “fix”.

    PHP Warning: shell_exec(): Unable to execute 'hash zip 2>&1' in /home4/poddys/public_html/wp-content/plugins/backupwordpress/hm-backup/hm-backup.php

    Disregard this php error. This was fixed many BPS Pro versions ago.

    PHP Warning: copy(/home4/poddys/public_html/.htaccess): failed to open stream: Permission denied in /home4/poddys/public_html/wp-content/plugins/bulletproof-security/includes/functions.php on line 3611

    This is the reason you are not able to view your Dashboard correctly. This is a Fatal Error meaning /wp-includes/includes/screen.php is unable to load your WordPress Dashboard correctly.

    PHP Fatal error: Access to undeclared static property: WP_Screen::$this in /home4/poddys/public_html/wp-admin/includes/screen.php on line 706

    ________________________

    Do a selective DB Backup for all of these extremely old sites and only backup these Database tables below.  Delete the old databases and all files for these very old sites.  Then install the sites brand new with new databases.  Then import your selective database backups into each site’s new database.

    By doing a selective DB Backup you can restore/import these DB tables only and not any of the other old WordPress database tables.  These database tables below contain all of your content that you created:  Posts, Pages, Comments, Links, User Accounts.  Also save your old /uploads folder for these sites if you have images that you uploaded to these sites so that you can upload your image folders/files to the new sites and will not have to recreate/upload new image files via the WordPress Media uploader.  Also make a list of all the plugins you have installed on each of these old sites before you delete them.

    wp_commentmeta
    wp_comments
    wp_links
    wp_postmeta
    wp_posts
    wp_terms
    wp_term_relationships
    wp_term_taxonomy
    wp_usermeta
    wp_users

Viewing 2 posts - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.