Warning and Fatal Error - Help restoring website

What issue or error are you experiencing?

When I try to either open my local site or open wp admin for it, it launches with a warning and a fatal error.

Please someone help me get my website back. I really put a lot of work into it and I don’t want to start all over.

Can someone please help me? Please let me know if any other information or screenshots are needed.

Below is what happens when I try to “Open Site” or “WP Admin” from Local:

Warning : require_once(/Users/jessicobowman/Local Sites/bowman/app/public/wp-includes/blocks/latest-comments.php): Failed to open stream: No such file or directory in /Users/jessicobowman/Local Sites/bowman/app/public/wp-includes/blocks/require-dynamic-blocks.php on line 30

Fatal error : Uncaught Error: Failed opening required ‘/Users/jessicobowman/Local Sites/bowman/app/public/wp-includes/blocks/latest-comments.php’ (include_path=‘.:/usr/share/php:/www/wp-content/pear’) in /Users/jessicobowman/Local Sites/bowman/app/public/wp-includes/blocks/require-dynamic-blocks.php:30 Stack trace: #0 /Users/jessicobowman/Local Sites/bowman/app/public/wp-includes/blocks/index.php(13): require() #1 /Users/jessicobowman/Local Sites/bowman/app/public/wp-settings.php(364): require(‘/Users/jessicob…’) #2 /Users/jessicobowman/Local Sites/bowman/app/public/wp-config.php(103): require_once(‘/Users/jessicob…’) #3 /Users/jessicobowman/Local Sites/bowman/app/public/wp-load.php(50): require_once(‘/Users/jessicob…’) #4 /Users/jessicobowman/Local Sites/bowman/app/public/wp-admin/admin.php(34): require_once(‘/Users/jessicob…’) #5 /Users/jessicobowman/Local Sites/bowman/app/public/wp-admin/index.php(10): require_once(‘/Users/jessicob…’) #6 {main} thrown in /Users/jessicobowman/Local Sites/bowman/app/public/wp-includes/blocks/require-dynamic-blocks.php on line 30

There has been a critical error on this website.

Learn more about troubleshooting WordPress.
local-lightning.log (154.8 KB)

local-lightning-verbose.log (468.4 KB)


What steps can be taken to replicate the issue? Feel free to include screenshots, videos, etc



System Details

  • Local Version: Version 9.2.0+6762

  • Operating System (OS) and OS version: MacBook Pro, Apple M1 chip and macOS Sequoia Version 15.0.1 (24A348)


Local Logs

Attach your Local Logs here (Help Doc - Retrieving Local’s Log)


Security Reminder
Local does a pretty good job of scrubbing private info from the logs and the errors it produces, however there’s always the possibility that something private can come through. Because these are public forums, always review the screenshots you are sharing to make sure there isn’t private info like passwords being displayed.

Hi, @JessicoBowman. It looks like your WP install is corrupt and missing some core files (I don’t see a latest-comments.php in your screenshots, only a latest-comments folder). This could happen after a failed WordPress upgrade attempt.

You could try this:

  1. Take a backup of your sites folder. (This lives at ~/Local Sites on macOS, which you can find in the Finder from /Users/[your.username]/Local Sites.)

  2. In Local, click your site, then click “site shell” just below the site name to open a terminal.

  3. Enter this command to redownload WordPress 6.6.2, which is the version of WordPress Local shows your site is using (important to copy the full command):

    wp core download --version=6.6.2 --skip-content --skip-plugins --skip-themes  --force
    

    This should replace any missing core files and delete any unneeded ones.

    If this doesn’t work because you see the same fatal errors, you could try downloading WordPress and replacing the missing files manually, being careful not to overwrite the wp-content folder that contains your custom themes and plugins.

  4. Try starting and visiting your site.

3 Likes

Nick, you fixed my website!! I am so very appreciative for your help — words can’t even express just how grateful I am.

2 Likes

Great to hear, @JessicoBowman, thanks for letting us know!

1 Like