Unable to Add New Websites on Latest Version of WP Local

I am experiencing an issue with the latest version of WP Local. After installing the latest update, I am unable to add any new websites. Every time I try to add a site, it fails to allow me to proceed.

Steps Taken:

  1. Installed the latest version of WP Local.
  2. Attempted to add a new website.
  3. Reinstalled WP Local to troubleshoot.
  4. Encountered the same issue after reinstallation.

Despite reinstalling WP Local, the problem persists. I would like to know what might be causing this issue and how I can resolve it.

Wp Local stuck here. I have uploaded the screenshot

Hi @usama.qt

If you’re on Windows 10 can you check if you’re logged in as admin?

Do you have any antivirus, security, or firewall applications that could be blocking Local?

I have been using WP Local for the past 2-3 months, but I didn’t face this issue before. After the recent update, I am encountering this issue.

Also I am not using any antivirus or any firewall

Hi @usama.qt –

Can provide the Local Logs? You can get a zip of those logs by clicking the “Download Local Log” button from the “Support” tab of Local. See this help doc for more information:

here is the local log file :
local-lightning.log (126.6 KB)

I’m seeing this error in your logs:

"error","message":"Unable to start site.","stack":"Error: ENOSPC: no space left on device

Can you check your available disk space to see if that’s an issue? Are you using any external hardware?

yes initially it was space issue but now I have removed data from that drive and now 20GB is available still I am not able to add a single website. Also I am not using any external hardware.

In order to refresh here and start with a clean slate could you give the below troubleshooting steps a try?

  • Export any sites that you have on Local and save them to a folder somewhere on your computer: Backup a Local Site - Local

  • Fully uninstall Local from your computer: Uninstall Local - Local

  • Install the latest version of Local on this link: Releases - Local

  • Once installed, please restart the computer.

  • When the computer is restarted and turned on, close any applications that automatically run in the background (AntiVirus, Firewall, and other Developer applications included).

  • Check and see if the issue still persists. If so, please provide us with an updated log: Retrieve Local’s Log File - Local

After following all the the provided instructions and guidelines and closing all the background application I am still not been able to add sites in local wp.

Here is the latest log file of wp local

local-lightning.log (133.1 KB)

This line seems to be significant:

{"level":"warn","message":"Unable to import site.","stack":"SyntaxError: %%userDataPath%%\\sites-organization.json: Unexpected end of JSON input\n    at JSON.parse (<anonymous>)\n    at Object.readFileSync (%%appPath%%\\node_modules\\jsonfile\\index.js:63:17)\n    at UserData.get (%%appPath%%\\main\\app\\UserData.js:1:1674)\n    at SitesOrganizationService._getSitesOrganizationData (%%appPath%%\\main\\sites\\SitesOrganizationService.js:1:2210)\n    at SitesOrganizationService._getDefaultSiteGroupsData (%%appPath%%\\main\\sites\\SitesOrganizationService.js:1:638)\n    at SitesOrganizationService._getSiteGroupsData (%%appPath%%\\main\\sites\\SitesOrganizationService.js:1:1589)\n    at SitesOrganizationService.moveSitesToGroup (%%appPath%%\\main\\sites\\SitesOrganizationService.js:67:4196)\n    at ImporterGeneric.<anonymous> (%%appPath%%\\main\\importer\\Importer.js:1:4192)\n    at Generator.next (<anonymous>)\n    at %%appPath%%\\main\\importer\\Importer.js:1:1047","timestamp":"2024-07-29T16:15:44.752Z"}

I think what might have happened is that when the drive ran out of space, one of the configuration files became corrupted.

Can you try:

  1. Close local
  2. Open the Local configuration folder at %AppData%\Roaming\Local
  3. Delete the sites-organization.json file
  4. Start Local and try adding another site

Deleting that file will mean that any sites that were organized into groups will no longer be organized in groups, but given that the file seems to be corrupted, it’s probably ok to remove it.

2 Likes

Thank you now its working fine after deleting the sites-organization.json file @ben.turner @Nick-B
Again thank you so much for the support

2 Likes

This topic was automatically closed 36 hours after the last reply. New replies are no longer allowed.