Support » Everything else WordPress » White page and log fatal error

  • Hello,

    I manage the http://sophiemagnaud.com/ site under wordpress which no longer works (blank page on firefox, and error 500 according to google chrome), and I have not made any modification for several months.
    I have tried a lot of things, but nothing works, suddenly I call for help! 🙂

    WordPress version: 5 at least (but I no longer have access to the back office!)
    PHP Version: 7.0
    OVH datacentre: Gravelines 1 (not Strasbourg!)

    —————
    1-In http://sophiemagnaud.com/ I have this message:

    Fatal error: Class ‘WP_REST_Posts_Controller’ not found in /home/sophiemagn/www/wp-includes/rest-api/endpoints/class-wp-rest-attachments-controller.php on line 17

    Fatal error: Uncaught Error: Call to undefined function esc_attr() in /home/sophiemagn/www/wp-includes/general-template.php:3951 Stack trace: #0 /home/sophiemagn/www/wp-includes/functions.php(3411): get_language_attributes() #1 /home/sophiemagn/www/wp-includes/functions.php(3352): _default_wp_die_handler(‘<div class=”wp-…’, ‘WordPress &rsaq…’, Array) #2 /home/sophiemagn/www/wp-includes/class-wp-fatal-error-handler.php(228): wp_die(Object(WP_Error), ”, Array) #3 /home/sophiemagn/www/wp-includes/class-wp-fatal-error-handler.php(147): WP_Fatal_Error_Handler->display_default_error_template(Array, false) #4 /home/sophiemagn/www/wp-includes/class-wp-fatal-error-handler.php(52): WP_Fatal_Error_Handler->display_error_template(Array, false) #5 [internal function]: WP_Fatal_Error_Handler->handle() #6 {main} thrown in /home/sophiemagn/www/wp-includes/general-template.php on line 3951

    and line 17 of /home/sophiemagn/www/wp-includes/rest-api/endpoints/class-wp-rest-attachments-controller.php I have this:
    class WP_REST_Attachments_Controller extends WP_REST_Posts_Controller {

    —————
    2- In wp-content/debug.log I have this:

    [30-Apr-2021 09:02:34 UTC] PHP Fatal error: Class ‘WP_REST_Posts_Controller’ not found in /home/sophiemagn/www/wp-includes/rest-api/endpoints/class-wp-rest-attachments-controller.php on line 17
    [30-Apr-2021 09:02:34 UTC] PHP Fatal error: Uncaught Error: Call to undefined function esc_attr() in /home/sophiemagn/www/wp-includes/general-template.php:3951
    Stack trace:
    #0 /home/sophiemagn/www/wp-includes/functions.php(3411): get_language_attributes()
    #1 /home/sophiemagn/www/wp-includes/functions.php(3352): _default_wp_die_handler(‘<div class=”wp-…’, ‘WordPress &rsaq…’, Array)
    #2 /home/sophiemagn/www/wp-includes/class-wp-fatal-error-handler.php(228): wp_die(Object(WP_Error), ”, Array)
    #3 /home/sophiemagn/www/wp-includes/class-wp-fatal-error-handler.php(147): WP_Fatal_Error_Handler->display_default_error_template(Array, false)
    #4 /home/sophiemagn/www/wp-includes/class-wp-fatal-error-handler.php(52): WP_Fatal_Error_Handler->display_error_template(Array, false)
    #5 [internal function]: WP_Fatal_Error_Handler->handle()
    #6 {main}
    thrown in /home/sophiemagn/www/wp-includes/general-template.php on line 3951
    [30-Apr-2021 09:02:35 UTC] PHP Fatal error: Class ‘WP_REST_Posts_Controller’ not found in /home/sophiemagn/www/wp-includes/rest-api/endpoints/class-wp-rest-attachments-controller.php on line 17
    [30-Apr-2021 09:02:35 UTC] PHP Fatal error: Uncaught Error: Call to undefined function esc_attr() in /home/sophiemagn/www/wp-includes/general-template.php:3951
    Stack trace:
    #0 /home/sophiemagn/www/wp-includes/functions.php(3411): get_language_attributes()
    #1 /home/sophiemagn/www/wp-includes/functions.php(3352): _default_wp_die_handler(‘<div class=”wp-…’, ‘WordPress &rsaq…’, Array)
    #2 /home/sophiemagn/www/wp-includes/class-wp-fatal-error-handler.php(228): wp_die(Object(WP_Error), ”, Array)
    #3 /home/sophiemagn/www/wp-includes/class-wp-fatal-error-handler.php(147): WP_Fatal_Error_Handler->display_default_error_template(Array, false)
    #4 /home/sophiemagn/www/wp-includes/class-wp-fatal-error-handler.php(52): WP_Fatal_Error_Handler->display_error_template(Array, false)
    #5 [internal function]: WP_Fatal_Error_Handler->handle()
    #6 {main}
    thrown in /home/sophiemagn/www/wp-includes/general-template.php on line 3951
    [30-Apr-2021 09:02:36 UTC] PHP Fatal error: Class ‘WP_REST_Posts_Controller’ not found in /home/sophiemagn/www/wp-includes/rest-api/endpoints/class-wp-rest-attachments-controller.php on line 17
    [30-Apr-2021 09:02:36 UTC] PHP Fatal error: Uncaught Error: Call to undefined function esc_attr() in /home/sophiemagn/www/wp-includes/general-template.php:3951
    Stack trace:
    #0 /home/sophiemagn/www/wp-includes/functions.php(3411): get_language_attributes()
    #1 /home/sophiemagn/www/wp-includes/functions.php(3352): _default_wp_die_handler(‘<div class=”wp-…’, ‘WordPress &rsaq…’, Array)
    #2 /home/sophiemagn/www/wp-includes/class-wp-fatal-error-handler.php(228): wp_die(Object(WP_Error), ”, Array)
    #3 /home/sophiemagn/www/wp-includes/class-wp-fatal-error-handler.php(147): WP_Fatal_Error_Handler->display_default_error_template(Array, false)
    #4 /home/sophiemagn/www/wp-includes/class-wp-fatal-error-handler.php(52): WP_Fatal_Error_Handler->display_error_template(Array, false)
    #5 [internal function]: WP_Fatal_Error_Handler->handle()
    #6 {main}
    thrown in /home/sophiemagn/www/wp-includes/general-template.php on line 3951
    [30-Apr-2021 09:02:52 UTC] PHP Fatal error: Class ‘WP_REST_Posts_Controller’ not found in /home/sophiemagn/www/wp-includes/rest-api/endpoints/class-wp-rest-attachments-controller.php on line 17
    [30-Apr-2021 09:02:52 UTC] PHP Fatal error: Uncaught Error: Call to undefined function esc_attr() in /home/sophiemagn/www/wp-includes/general-template.php:3951
    Stack trace:
    #0 /home/sophiemagn/www/wp-includes/functions.php(3411): get_language_attributes()
    #1 /home/sophiemagn/www/wp-includes/functions.php(3352): _default_wp_die_handler(‘<div class=”wp-…’, ‘WordPress &rsaq…’, Array)
    #2 /home/sophiemagn/www/wp-includes/class-wp-fatal-error-handler.php(228): wp_die(Object(WP_Error), ”, Array)
    #3 /home/sophiemagn/www/wp-includes/class-wp-fatal-error-handler.php(147): WP_Fatal_Error_Handler->display_default_error_template(Array, false)
    #4 /home/sophiemagn/www/wp-includes/class-wp-fatal-error-handler.php(52): WP_Fatal_Error_Handler->display_error_template(Array, false)
    #5 [internal function]: WP_Fatal_Error_Handler->handle()
    #6 {main}
    thrown in /home/sophiemagn/www/wp-includes/general-template.php on line 3951
    [30-Apr-2021 09:02:54 UTC] PHP Fatal error: Class ‘WP_REST_Posts_Controller’ not found in /home/sophiemagn/www/wp-includes/rest-api/endpoints/class-wp-rest-attachments-controller.php on line 17
    [30-Apr-2021 09:02:54 UTC] PHP Fatal error: Uncaught Error: Call to undefined function esc_attr() in /home/sophiemagn/www/wp-includes/general-template.php:3951
    Stack trace:
    #0 /home/sophiemagn/www/wp-includes/functions.php(3411): get_language_attributes()
    #1 /home/sophiemagn/www/wp-includes/functions.php(3352): _default_wp_die_handler(‘<div class=”wp-…’, ‘WordPress &rsaq…’, Array)
    #2 /home/sophiemagn/www/wp-includes/class-wp-fatal-error-handler.php(228): wp_die(Object(WP_Error), ”, Array)
    #3 /home/sophiemagn/www/wp-includes/class-wp-fatal-error-handler.php(147): WP_Fatal_Error_Handler->display_default_error_template(Array, false)
    #4 /home/sophiemagn/www/wp-includes/class-wp-fatal-error-handler.php(52): WP_Fatal_Error_Handler->display_error_template(Array, false)
    #5 [internal function]: WP_Fatal_Error_Handler->handle()
    #6 {main}
    thrown in /home/sophiemagn/www/wp-includes/general-template.php on line 3951

    —————
    For information :

    1- I tried, but without any success, to:
    – rename the .htaccess to .htaccess_bak, see if it was bugged
    – deactivate all plugins and themes used from FTP (by renaming them with _old)
    – restore a backup of -14 days
    – restore database backup

    2- I notice that:
    – Disk space at OVJH was full: 986.11 MB / 1000 MB ??? Which seems very strange to me because this site is only ten pages long with very few images and media. I deleted via ftp some larger files like old backups and deleted the entire backupwordpress folder from OVH FTP> Ok space is no longer full
    – in the stats: on March 13 I had a number of visits multiplied by around 5

    Could you please help me, because I do not understand the failure?

    Thanks in advance !
    Fred griot

    The page I need help with: [log in to see the link]

Viewing 5 replies - 1 through 5 (of 5 total)
  • If you have FTP access, you can restore access to the site’s administrative panel. Then, if the admin panel works, just update WordPress. This can help in some cases.
    If not, then a specialist needs to work with your files, find the problem and fix it. This can take anywhere from two hours to a whole day.

    Thread Starter fgriot

    (@fgriot)

    Thanks a lot !
    But how do you restore access to the site’s administrative panel whitg the FTP access ?
    I am looking for but is there a better solution for the situation that we have here ?

    Thanks !!

    It’s hard to advise you without seeing the files. Check for the file /wp-includes/rest-api/endpoints/class-wp-rest-posts-controller.php. But it is better to re-download it from the fresh WordPress distribution of the same version. See it in the file /wp-includes/version.php.

    If this doesn’t help, change everything except the wp-content folder and the file wp-config.php. But be sure to make a backup before that.

    If even this doesn’t help, change the theme via phpmyadmin or FTP.

    You can try the last paragraph first.

    Thread Starter fgriot

    (@fgriot)

    Thanks a lot.
    I will try it.

    Have a nice day !

    Thread Starter fgriot

    (@fgriot)

    EUREKA

    it works !
    I manage 6 or 7 worpress sites but this one really gave me a problem that I did not understand!
    Big big thank you to you !!

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