Error: When I will open WP Admin

What issue or error are you experiencing?

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:

  • Operating System (OS) and OS version:


Local Logs

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


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.

Hey @MikkelFeilberg!

Is this a new, blank site or a something that was working previously?

Could you provide some more details to help us take a further look?

  • What is your MacOS version?

  • What version of Local are you on?

  • Please attach a copy of your Local Logs

Keep us posted and we’d be happy to help further!

Hey Nick.

My MacOS er Sequoia 15.6.1
I was on Local 9.2.7+6877
Now I have downgraded to 9.05+6706 and still I get this error when I try to start WP Admin:
”TypeError: Cannot convert undefined or null to object

at Function.entries ()

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

at Generator.next ()

at /Applications/Local.app/Contents/Resources/app.asar/main/sites/PortsService.js:1:330

at new Promise ()

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

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

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

at Generator.next ()

at n (/Applications/Local.app/Contents/Resources/app.asar/main/sites/SiteProcessManagerService.js:1:132)”

local-lightning.log (246.4 KB)

Please can you upgrade to 9.2.7 again and try the suggestion posted here?

[quote=“Local v9.2.7 Fails on Intel Mac — “Missing Mailpit” & Architecture Detection Error, post:3, topic:51269”]
rm mailpit-1.24.1+0.zip
[/quote]
I really sadly and frustrated was on my way to Kinsta, but now I feel hope. Hope about I don’t have to run these commands every day - Thank you very much - Your solution worked - at least for now.

Thanks, @MikkelFeilberg, I’m glad that helped!

You shouldn’t have to keep running that command now that you have mailpit.

The next release of macOS Intel Local will bundle it again. This was an error that affected the Intel macOS build of 9.2.7 only. I’m sorry for the error, we’re reviewing our build process now.