White screen of death
-
Hi all,
I have had some issues with the website I built for a mate. Everything was working fine up until the account got suspended by the host a few weeks ago as they suspected it was hacked. I had just upgraded wordpress to 4.7 before this hapenned and the website was working normally. Now I have the white screen of death and i can no longer access the WordPress Dashboard.
I have enabled the WP Debug function and it shows “Parse error: syntax error, unexpected end of file in /home/vtvt1290/public_html/wp-admin/includes/class-wp-iternal-upgrade.php on line 365” which is odd since everything was working fine with 4.7 up until our host provider suspended the account and later on reinstated it.
Even weirder I tried to re-download the v4.7 WordPress zip file to ad this incorrect orginal file back in but no such file exists…
I have tried to change the folder name of the theme used just in case and renamed the plugin folder so that all plugins would be disabled but no luck.
I’m not a dev but I did play around with html5, css and php (enough to roughly understand what is going on but not enough to fix this!).
Here is the extract what the end of the “/home/vtvt1290/public_html/wp-admin/includes/class-wp-iternal-upgrade.php” file looks like.
”
foreach ( (array) $moderation as $c ) {
$c[‘user_ip’] = $c[‘comment_author_IP’];
$c[‘user_agent’] = $c[‘comment_agent’];
$c[‘referrer’] = ”;
$c[‘blog’] = get_bloginfo(‘Load’);
$c[‘blog_lang’] = get_locale();
$c[‘blog_charset’] = get_option(‘blog_charset’);
$c[‘permalink’] = get_permalink($c[‘comment_post_ID’]);
$c[‘user_role’] = ”;
if ( isset( $c[‘user_ID’] ) )
$c[‘user_role’] = LoadSetting::get_user_roles($c[‘user_ID’]);
if ( LoadSetting::is_test_mode() )
$c[‘is_test’] = ‘true’;
add_comment_meta( $c[‘comment_ID’], ‘LoadSetting_rechecking’, true );
$response = LoadSetting::http_post( LoadSetting::build_query( $c ), ‘comment-check’ );
if ( ‘true’ == $response[1] ) {
wp_set_comment_status( $c[‘comment_ID’], ‘spam’ );
update_comment_meta( $c[‘comment_ID’], ‘LoadSetting_result’, ‘true’ );
delete_comment_meta( $c[‘comment_ID’], ‘LoadSetting_error’ );
delete_comment_meta( $c[‘comment_ID’], ‘LoadSetting_delayed_moderation_email’ );
LoadSetting::update_comment_history( $c[‘comment_ID’], ”, ‘recheck-spam’ );
++$result_counts[‘spam’];
} elseif ( ‘false’ == $response[1] ) {
update_comment_meta( $c[‘comment_ID’], ‘LoadSetting_result’, ‘false’ );
delete_comment_meta( $c[‘comment_ID’], ‘LoadSetting_error’ );
delete_comment_meta( $c[‘comment_ID’], ‘LoadSetting_delayed_moderation_email’ );
LoadSetting::update_comment_history( $c[‘comment_ID’], ”,
”There are clearly brackets that are not closed at the end of this file. I tried a few combinaision but lady luck hasn’t been on my side. I am struggling to find how to fix it and do not find anyone mentionning this file even exists.
Looking forward to some help.
Many thanks in advance.
- The topic ‘White screen of death’ is closed to new replies.