Uh-oh! Unable to start site. macos m4

Cannot restart new sites after i’ve shut them down. Old sites work fine, but not new ones. I just tried changing the php and webserver from ngnx to apache and it fixed one site but not another.

have recently switched to M4 Mac so has also switched from x86 to arm version of local WP.

If a site’s throwing the following error, i can duplicate it and start it up. but if i shut it down and then restart it, i get the following error.

I get the following error
TypeError: Cannot convert undefined or null to object

at Object.entries ()

at PortsService. (/Applications/Local.app/Contents/Resources/app.asar/main/sites/PortsService.js:107:62)

at Generator.next ()

at /Applications/Local.app/Contents/Resources/app.asar/main/sites/PortsService.js:8:71

at new Promise ()

at __awaiter (/Applications/Local.app/Contents/Resources/app.asar/main/sites/PortsService.js:4:12)

at PortsService.checkAndReplaceUnavailablePorts (/Applications/Local.app/Contents/Resources/app.asar/main/sites/PortsService.js:101:16)

at SiteProcessManagerService. (/Applications/Local.app/Contents/Resources/app.asar/main/sites/SiteProcessManagerService.js:272:57)

at Generator.next ()

at fulfilled (/Applications/Local.app/Contents/Resources/app.asar/main/sites/SiteProcessManagerService.js:5:58)


What steps can be taken to replicate the issue? Feel free to include screenshots, videos, etc


System Details

  • Local Version:
    9.2.5+6810
  • Operating System (OS) and OS version:
    MacOS Sequoia 15.5

Local Logs

Attach your Local Logs here (Help Doc - Retrieving Local’s Log)

{“class”:“SiteProcessManagerService”,“level”:“error”,“message”:“Unable to start site.”,“stack”:“TypeError: Cannot convert undefined or null to object\n at Object.entries ()\n at PortsService. (%%appPath%%/main/sites/PortsService.js:107:62)\n at Generator.next ()\n at %%appPath%%/main/sites/PortsService.js:8:71\n at new Promise ()\n at __awaiter (%%appPath%%/main/sites/PortsService.js:4:12)\n at PortsService.checkAndReplaceUnavailablePorts (%%appPath%%/main/sites/PortsService.js:101:16)\n at SiteProcessManagerService. (%%appPath%%/main/sites/SiteProcessManagerService.js:272:57)\n at Generator.next ()\n at fulfilled (%%appPath%%/main/sites/SiteProcessManagerService.js:5:58)”,“thread”:“main”,“timestamp”:“2025-07-04T03:09:33.031Z”}

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.

Have you tried restarting your machine since upgrading?

We had another report of this here solved by restarting:

1 Like

Hi Nickc,
I have. restarted twice yesterday morning. Oh do you mean after I switched them from ngnix to apache? I’ve deleted the site that wouldn’t work after the change and the site that worked after the switch is continuing to work this morning. Not sure if its related but some sites are continuing to say Missing Mailpit v1.12

@Steve_Impact Glad you got this working for that site. It sounds like this may relate to your switch from Intel to Apple Silicon.

For the missing Mailpit issue, you can try this fix (you should only have to do it once, not per site):