Support » Fixing WordPress » PHP Fatal error: /load.php on line 716

  • Ghost_Android

    (@ghost_android)


    Good evening
    I hope this finds you well…
    I’ve tried logging into my website and was greeted with this error message:
    “There has been a critical error on this website. Learn more about troubleshooting WordPress”. I’ve subsequently contacted my host and they’ve provided me with the following:

    The issue with your site is a problem with the code:
    
    [Tue Jul 05 13:14:08.278456 2022] [php7:warn] [pid 63638] [client 213.152.162.99:50546] PHP Warning:  require_once(/var/www/heddacoconsulting.co.za/www/html/wp-includes/cache.php): failed to open stream: No such file or directory in /var/www/heddacoconsulting.co.za/www/html/wp-includes/load.php on line 716
    
    [Tue Jul 05 13:14:08.279210 2022] [php7:error] [pid 63638] [client 213.152.162.99:50546] PHP Fatal error:  require_once(): Failed opening required '/var/www/heddacoconsulting.co.za/www/html/wp-includes/cache.php' (include_path='.:/usr/share/pear:/usr/share/php') in /var/www/heddacoconsulting.co.za/www/html/wp-includes/load.php on line 716
    
     
    
    The error message shows which line of code, in which file is as fault

    I have downloaded the text file and this is what line 716 is about

    require_once ABSPATH . WPINC . ‘/cache.php’;

    Please assist if possible because I have no clue what needs to be done.

    Regards

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

Viewing 15 replies - 1 through 15 (of 18 total)
  • threadi

    (@threadi)

    Apparently this file is missing from your installation, although it belongs to WordPress. It’s hard to say why she’s gone. You could solve this by downloading the WordPress ZIP package suitable for the WordPress version you are currently using from https://wordpress.org/download/releases/, unpacking it locally and then the wp-includes folder via FTP to your hosting – so that you overwrite the already existing folder there. Your hoster can probably also help you upload the files.

    Thread Starter Ghost_Android

    (@ghost_android)

    Good morning

    Thank you for your response, greatly appreciated.
    However, The file it not missing, there is something wrong with the code string.
    — require_once ABSPATH . WPINC . ‘/cache.php’;–
    This is the code string that seems to create the error.

    Secondly, if i had to change the wp-includes folder, how is that going to affect my website?

    Awaiting your response

    Regards

    No, the path is set correctly. Compare the two path specifications:

    /var/www/heddacoconsulting.co.za/www/html/wp-includes/cache.php
    /var/www/heddacoconsulting.co.za/www/html/wp-includes/load.php

    Both files are also in the wordpress ZIP package in the same directory. So it must be the case in your installation as well.

    Moving the wp-includes directory would mean that the website is not accessible at all.

    Thread Starter Ghost_Android

    (@ghost_android)

    Are you saying I should just replace the old folder with the new one?

    Yes, that’s what I wrote above:

    so that you overwrite the already existing folder there.

    Thread Starter Ghost_Android

    (@ghost_android)

    Thank You…

    Thread Starter Ghost_Android

    (@ghost_android)

    Good evening

    I have replaced the wp-includes folder but I’m still experiencing the same error message.

    There has been a critical error on this website.

    Learn more about troubleshooting WordPress.

    Now I’m not so sure anymore

    Regards

    Now this could also have another cause. What does the error.log say about this?

    And if it is the same message, check if you really got the right folder.

    Thread Starter Ghost_Android

    (@ghost_android)

    Should I get the error log from the Host?

    If you don’t have access to it yourself, ask your host’s support about it.

    Thread Starter Ghost_Android

    (@ghost_android)

    I can’t upload this file, how should I get this here?

    Thread Starter Ghost_Android

    (@ghost_android)

    Good morning

    here is the last lines in the error log:

    [Thu Jul 07 21:14:47.899815 2022] [php7:warn] [pid 54605] [client 128.1.40.249:29734] PHP Warning:  require_once(/var/www/heddacoconsulting.co.za/www/html/wp-includes/cache.php): failed to open stream: No such file or directory in /var/www/heddacoconsulting.co.za/www/html/wp-includes/load.php on line 716
    [Thu Jul 07 21:14:47.899873 2022] [php7:error] [pid 54605] [client 128.1.40.249:29734] PHP Fatal error:  require_once(): Failed opening required '/var/www/heddacoconsulting.co.za/www/html/wp-includes/cache.php' (include_path='.:/usr/share/pear:/usr/share/php') in /var/www/heddacoconsulting.co.za/www/html/wp-includes/load.php on line 716

    I think it is the exact same issue before I’ve replaced the entire folder

    Regards

    Yes, is the same. It’s a mystery to me why it happens, this is starting to blow up the forum. I would recommend you to find someone who can help you directly with your project. You could find someone like that here: https://jobs.wordpress.net

    Thread Starter Ghost_Android

    (@ghost_android)

    I understand and I’m absolutely grateful for your assistance. BTW, I got it sorted.

    Thank you

    Hello @ghost_android,

    Did you solve it?

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