Suddenly my computer powered off. then I want to try opening localwp but it is not opening. I want to try to run as an administrator but still not open. How can I open this? I have too many files in it. Help me, please
nickc
August 21, 2024, 1:27pm
2
Sorry to hear this, @razaizim . This could happen if Local’s data files became corrupt due to the sudden power-off.
If you’re on Windows you could try this:
I worked with @Scots via DM to solve this. Both their sites.json and sites-organization.json files were corrupt.
If Local will not start and you see lines such as %%userDataPath%%\\sites.json: Unexpected token… is not valid JSON in your Local logs, I’m documenting here how we got Local to start again and restore missing sites:
Quit Local if it’s running.
Open the Windows File Explorer.
Make sure you have enabled “show hidden items ”.
Browse to This PC → [your hard drive] → Users → [your userna…
If you’re on macOS you can try these steps instead:
Sorry that you ran into this, @marcaureleg .
You could try this on macOS (Windows users reading this when Local doesn’t launch should try these steps instead ):
Quit Local if it’s running.
Open the Finder.
Choose Go → Go to Folder… from the Finder menu.
Paste ~/Library/Application Support/Local and press Enter.
Rename the sites-organization.json file to sites-organization-old.json and sites.json to sites-old.json.
Start Local.
If Local then starts it will not show any sites, but don’t panic — …
nickc
August 22, 2024, 9:45am
3
Replying to Local ne se lance plus - #8 by razaizim .
still not opening. i rename the two files and try to open, but still have this same issue.
Please can you share you Local logs?
A big part of troubleshooting errors, on any website or application, is the log file. This file contains a record of actions or errors that have occurred when a process is done. When reaching out for…