• Resolved Westlake

    (@westlake)


    I am unable to access my website including wp-admin, getting this error message:

    Warning: require(/home/skate094/public_html/westlakemedia.ca/wp-includes/canonical.php): failed to open stream: No such file or directory in /home/skate094/public_html/westlakemedia.ca/wp-settings.php on line 205

    Fatal error: require(): Failed opening required ‘/home/skate094/public_html/westlakemedia.ca/wp-includes/canonical.php’ (include_path=’.:/usr/lib/php:/usr/local/lib/php’) in /home/skate094/public_html/westlakemedia.ca/wp-settings.php on line 205

    I’ve made several attempts to “fix” wp-settings with no success.

    Your expertise in resolving this will be very much appreciated!

Viewing 4 replies - 1 through 4 (of 4 total)
  • Hi

    Seems to be some wordpress core files is missing. Please reupload the wp-includes folder and its files.

    (Please use correct wordpress version files)

    (Pleas keep a backup of both files and database)

    Regards
    Sumith Suku

    Try re-uploading all files & folders – except the root wp-config.php & .htaccess files and the wp-content folder – from a fresh download of WordPress. Make sure that you delete the old copies of files & folders before uploading the new ones.

    Your site’s content is all stored in your database – with the exception of uploaded media files stored in the wp-content folder. So as long as you avoid that folder, you will be fine. All you are doing is uploading a fresh set of WordPress core files.

    Thread Starter Westlake

    (@westlake)

    I’ve just discovered the problem or a similar problem exists on other WP sites I maintain (total of 3 now). I’m not sure if this is related to a WP upgrade? Here are the URLs and error messages:

    Westlakemedia.ca
    https://westlakemedia.ca/

    Warning: require(/home/skate094/public_html/westlakemedia.ca/wp-includes/class-wp-hook.php): failed to open stream: No such file or directory in /home/skate094/public_html/westlakemedia.ca/wp-includes/plugin.php on line 25

    Fatal error: require(): Failed opening required ‘/home/skate094/public_html/westlakemedia.ca/wp-includes/class-wp-hook.php’ (include_path=’.:/usr/lib/php:/usr/local/lib/php’) in /home/skate094/public_html/westlakemedia.ca/wp-includes/plugin.php on line 25

    Junior Golf Foundation of Gull Lake
    https://juniorgolffoundationofgulllake.ca/

    Warning: require_once(/home/skate094/public_html/juniorgolffoundationofgulllake.ca/wp-includes/random_compat/random_bytes_dev_urandom.php): failed to open stream: No such file or directory in /home/skate094/public_html/juniorgolffoundationofgulllake.ca/wp-includes/random_compat/random.php on line 116

    Fatal error: require_once(): Failed opening required ‘/home/skate094/public_html/juniorgolffoundationofgulllake.ca/wp-includes/random_compat/random_bytes_dev_urandom.php’ (include_path=’.:/usr/lib/php:/usr/local/lib/php’) in /home/skate094/public_html/juniorgolffoundationofgulllake.ca/wp-includes/random_compat/random.php on line 116

    Cabin check
    https://cabincheck.ca/

    Warning: include(/home/skate094/public_html/cabincheck.ca/wp-content/plugins/wordfence/lib/wfIPWhitelist.php): failed to open stream: No such file or directory in /home/skate094/public_html/cabincheck.ca/wp-content/plugins/wordfence/waf/bootstrap.php on line 167

    Warning: include(): Failed opening ‘/home/skate094/public_html/cabincheck.ca/wp-content/plugins/wordfence/lib/wfIPWhitelist.php’ for inclusion (include_path=’.:/usr/lib/php:/usr/local/lib/php’) in /home/skate094/public_html/cabincheck.ca/wp-content/plugins/wordfence/waf/bootstrap.php on line 167

    Warning: Invalid argument supplied for foreach() in /home/skate094/public_html/cabincheck.ca/wp-content/plugins/wordfence/waf/bootstrap.php on line 170

    Warning: include(/home/skate094/public_html/cabincheck.ca/wp-content/plugins/wordfence/lib/wfIPWhitelist.php): failed to open stream: No such file or directory in /home/skate094/public_html/cabincheck.ca/wp-content/plugins/wordfence/waf/wfWAFIPBlocksController.php on line 412

    Warning: include(): Failed opening ‘/home/skate094/public_html/cabincheck.ca/wp-content/plugins/wordfence/lib/wfIPWhitelist.php’ for inclusion (include_path=’.:/usr/lib/php:/usr/local/lib/php’) in /home/skate094/public_html/cabincheck.ca/wp-content/plugins/wordfence/waf/wfWAFIPBlocksController.php on line 412

    Warning: Invalid argument supplied for foreach() in /home/skate094/public_html/cabincheck.ca/wp-content/plugins/wordfence/waf/wfWAFIPBlocksController.php on line 413

    Warning: require(/home/skate094/public_html/cabincheck.ca/wp-includes/class-wp-error.php): failed to open stream: No such file or directory in /home/skate094/public_html/cabincheck.ca/wp-settings.php on line 106

    Fatal error: require(): Failed opening required ‘/home/skate094/public_html/cabincheck.ca/wp-includes/class-wp-error.php’ (include_path=’.:/usr/lib/php:/usr/local/lib/php’) in /home/skate094/public_html/cabincheck.ca/wp-settings.php on line 106

    • This reply was modified 7 years, 5 months ago by Westlake.
    Thread Starter Westlake

    (@westlake)

    Applying a solution from the responses above, I have resolved this issue. The process I used was:

    1. Using my web host File Manager, I deleted the wp-admin and wp-incudes folders, and the last plugin that I added as I thought it could be causing a conflict (wp-content/plugins; delete respective folder)

    2. Download a complete copy of wordpress from www.ads-software.com

    3. Using an FTP Client (I used ForkLift on my Mac), I uploaded new copies of wp-admin and wp-includes

    4. Visited the site and logged in to confirm the site worked. I was 3/3 for affected sites

    • This reply was modified 7 years, 5 months ago by Westlake. Reason: Fixed typos
Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Error in wp-settings preventing site access’ is closed to new replies.