I’m reaching out because the WordPress sites I was working on in Local have suddenly disappeared from the application. I didn’t delete them, and I’m not sure what caused this issue.
Fortunately, I still have all the site files saved on my computer, including the app, conf, and logs folders for each project. I’d like to know how I can restore these sites back into Local or troubleshoot what might have caused them to vanish.
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.
Thank you for reporting this, @AlexandreBeust. It sounds like your files are still in your Local Sites folder, but they are no longer listed in Local? This could happen if Local’s sites.json was corrupted due to a disk write issue or power failure.
Please could you share your OS and your Local logs so that we can look into this?
To restore the sites back into Local, you can zip up each site folder and drag it into Local, following the steps here:
Hi Nickc! Thank you very much for your quick answer! Yes, the problem was caused due to a power failure, and yes, the files are still in my local sites folder, but not listed in local (as you mentioned). Ive tried import back the sites by zipping the entire folder and dragging back to the local app, but no success… It returns a message saying “Unexpected token ‘x’ is not valid JSON. Will try the steps on the link you have provided and will come back here with the results
Nickc! Thank you so much! I did not import all my websits yet, just made a test with one, and at leas I was able to access the wp-admin! Still loooking to see if I lost anything, but so far everything is working as It should be! Thank you so much for the quick reply, as well as for the detail answer! I will come back here again in case i find any issues, but so far everything seems to be working great!