Errors after an update suggested by Windows

Hello, I updated Windows, which suggested that I free up space by deleting ‘unnecessary’ files. I hadn’t yet made a local backup of the site… Since then, this site on Local no longer works, but the others under development with the same configuration work perfectly. It looks like the update deleted files, but I don’t really understand. Can anyone help me identify the problems so that I can fix them? Thank you.

( ! ) Warning: require(C:\Users\lucie\Local Sites\SITE\app\public/wp-includes/deprecated.php):
Failed to open stream: No such file or directory in C:\Users\lucie\Local Sites\SITE\app\public\wpsettings.php on line 239

( ! ) Fatal error: Uncaught Error: Failed opening required ‘C:\Users\lucie\Local
Sites\SITE\app\public/wp-includes/deprecated.php’ (include_path=‘.:/usr/share/php:/www/wpcontent/pear’) in C:\Users\lucie\Local Sites\SITE\app\public\wp-settings.php on line 239

( ! ) Error: Failed opening required ‘C:\Users\lucie\Local Sites\SITE\app\public/wp-includes/
deprecated.php’ (include_path=‘.:/usr/share/php:/www/wp-content/pear’) in C:\Users\lucie\Local
Sites\SITE\app\public\wp-settings.php on line 239

( ! ) Fatal error: Uncaught Error: Call to a member function set() on null in C:\Users\lucie\Local
Sites\SITE\app\public\wp-includes\l10n.php on line 857

( ! ) Error: Call to a member function set() on null in C:\Users\lucie\Local
Sites\SITE\app\public\wp-includes\l10n.php on line 857


System Details

Windows 11 famille 24H2
Webserver Nginx
PHP version 8.2.27
Database MySQL 8.0.35
Wordpress version 6.8.3


Hey @Lucie , welcome to the Local community!

You’re right that those errors hint at missing files.

Depending on how many files were deleted during the upgrade, you probably can get things working again if you can get the database dump along with the wp-content folder for your site.

To get the DB dump, I think you should be able to stop the site, which should export the database to the app/sql/local.sql file within the site.

From there, you should be able to copy that sql file along with the wp-content folder to your desktop, and then create a zip which can be used to import into a new site in Local. More details about this process can be found in this help doc:

Let me know how that goes or if you have any more questions!

Hey Ben,
thanks for your answer. Here is what I’ve done this evening (unfortunately without success) :
I’ve made an export of the website and created a new Local Site on Local.
I import the .zip and the sql database.
It’s look better because I now have the “502 request error page”.
I’ve tried to change the port in the site.conf file (fastcgi_pass 127.0.0.1:10016 and change it in :100017) but it don’t work neither and the error page is then as the same as initial (the one with missing files). So I deleted the site.conf file.
In the log error file I still have the initials same errors.
I tried a last thing with Command (PID) but without success. I’m still searching…

Summary

This text will be hidden

In general, I would try to not edit the site.conf file as Local doesn’t read that file directly and instead generates it from the Local Sites/<sitename>/conf/nginx/site.conf.hbs file.

Also the 502 request error is interesting because it hints that for some reason, nginx isn’t able to get a response from “upstream.” In the case of Local and these WordPress sites, “upstream” can mean either PHP, or what PHP is waiting on, which would be the Database.

I’d recommend re-trying to import the site, and if you get a 502 error, look at the site error logs to get an idea for why a response isn’t being returned.