What issue or error are you experiencing?
Uh-oh! Unable to start site.
TypeError: _registeredServices[serviceName] [latestServiceVersion] is not a constructor
at LightningServicesService.getLatestVersion (/Applications/Local.app/ Contents/Resources/app.asar/main/sites/LightningServicesService.js:364:16) at get nginxPath (/Applications/Local.app/Contents/Resources/app.asar/main/ router/RouterService.js:182:40)
at RouterService. (/Applications/Local.app/Contents/ Resources/app.asar/main/router/RouterService.js:98:31)
at Generator.next ()
at fulfilled (/Applications/Local.app/Contents/Resources/app.asar/main/ router/RouterService.js:28:58)
What steps can be taken to replicate the issue? Feel free to include screenshots, videos, etc
I want to start by saying that I was roughly 1 click away from having everything figured out… and then everything bit the dust.
I have a simple sandbox site that is a fresh install of Wordpress; a couple plugins installed and maybe 1 revision made to the default sample page. The site is nothing is crazy.
I started by downloading the latest version of LocalWP and was able to successfully load my site. Everything was looking good! I open my site and I notice that I have to enable SSL. I went down a little SSL rabbit hole because not only do you need to trust the cert in the app, but you also have to open Keychain Access and allow the cert to be trusted there as well. I did not know this right away…
After some non-successful attempts to locate the cert, I deleted my site. It wasn’t until after I deleted my site that I found out that the cert is located under the “system” keychains tab. I was looking high and low inside “Local keychains”. Since I had just deleted my project from LocalWP, I deleted the cert I found. I figured Local would regenerate a new one. I also noticed a couple old certs from when this machine was owned by my paste employer (it is fully mine now after the company closed). However, after deleting these certs I began to encounter a strange error whenever I reload my zip file to create a new site:
I have tried EVERYTHING in order to address this error:
- Restarted computer
- Reinstalled LocalWP
- Installed an older version of LocalWP
- Upgraded to latest version from the old version
- Attempted to create projects using different names
- Killed all instanced of Local via command line
- Using different variations of Php/Apache/MySQL combinations
Below are screenshots of the error modals I an getting:
The site seems to load successfully, but then this error fires saying that it cannot start the site. It then deletes the files it just finished installing.
I can confirm that my system firewall has been turned off during this process and that there are no other firewall applications installed on my machine (to my knowledge at least)
System Details
-
Local Version:
9.2.4+6788 -
Operating System (OS) and OS version:
MacBook Pro
Apple M2
14.4.1
Local Logs
Attach your Local Logs here (Help Doc - Retrieving Local’s Log)
local-logs.zip (46.5 KB)
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.