Fatal Error when creating new site

Every time I try to create a new site using LocalWP Version 8.3.2+6660, I always encounter this fatal error.

Has anyone encountered the same error/bug?

Thanks for this report, @kaizen. I have not been able to reproduce it so far with any version of MySQL.

If you delete Local’s downloaded services to force it to install them again, does that fix things for you? You can try this:

  1. Stop your sites and close Local if it’s running.

  2. In the Finder, choose Go → Go to Folder.

  3. Enter ~/Library/Application Support/Local/lightning-services/ and press enter.

  4. In the Finder window that opens, delete all folders with a mysql- prefix.

  5. Launch Local. When starting existing sites or new ones, it will redownload MySQL versions you deleted that did not ship with Local.

I checked the folder you mentioned and I was able to see those files.

But still I can’t create site on PHP8 below.

I was able to fix the issue by creating a site using PHP8 and then downgrading it to PHP7.4 and I think it forces the LocalWP to reinstall all the PHP dependencies on PHP8 and below.

Now I can create WP site using PHP7 :slight_smile:

1 Like

Thanks, @kaizen, and glad you were able to solve this!

Out of interest, when you followed my steps originally, did you delete the mysql or php folders? Or just check they were there?