HI, I created a small wp site. I quit out of local. The next time I started local I had the error message across the top " Missing Mailpit v1.12. Dont worry well reinstallit next time you start your site." I cannot open the wp site. I get an oh oh error screen shot attached. I have uninstalled local, shut down pc and tried again with fresh installation. I created a simple one page wp site and encountered the same error. I switched off antivirus and still the same problem. Any advice on what to do to solve the problem. Thanks
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.
It looks like Local canât start Mailpit (the service that captures WordPress email for you) because a file Local needs is missing:
file does not exist: %%userDataPath%%\\lightning-services\\mailpit-1.12.1+0\\lib\\main.js"
Local normally copies these files for you when it first starts. You mention that youâre using antivirus software, but that youâve disabled it. Itâs worth checking:
That you restarted Local after disabling antivirus software. (Local only writes the above file when it first launches.)
That thereâs no other security software running that might prevent Local from writing files. For example, hereâs how to configure software like Kapersky Total Security to allow Local to run unrestricted. Changes you make will require a restart of Local.
If that doesnât help, you can try forcing Local to recreate the Mailpit service files like this:
Stop any running sites.
Quit Local.
Open the Windows File Explorer.
Browse to This PC â [your hard drive] â Users â [your username] â AppData â Roaming â Local â lightning-services.
Delete the folder named âmailpit-1.12.1+0â.
Make sure antivirus or security software is either disabled or allowing Local to run unrestricted.
Start Local.
Local should recreate the folder named âmailpit-1.12.1+0â at This PC â [your hard drive] â Users â [your username] â AppData â Roaming â Local â lightning-services.
You should then be able to start your site.
If you donât see that mailpit-1.12.1+0 folder after starting Local, it can mean something prevented Local from writing to the directory. It would be worth checking if you have anything else installed that could do this.
In my case, the sites seem to run fine but when I click Open Mailpit in Local nothing happens. I get the âMissing Mailpitâ error every time I boot up Local. If I dismiss the alert and restart the site (without restarting Local), I donât get the error again but Mailpit still doesnât work.
I donât have any antivirus or security software. [feels suddenly very exposed ] And I tried to delete the folder you mentioned but couldnât find any folders with âmailpitâ in the name.
This started happening recently right after I installed the Apple Silicon version. Previously had the Intel version on the same machine.
Please could you try the steps in this post for macOS, @diegovogel?
This started happening recently right after I installed the Apple Silicon version. Previously had the Intel version on the same machine.
The steps above will swap the Intel version of Mailpit for the Apple Silicon version. (Local currently doesnât do that automatically if you switch between macOS architectures, which at least explains the message youâre seeing. Sorry for the confusion!)