PHP version on Local

What issue or error are you experiencing?

After a site is created in Local it defaults to PHP 8.1.9 and there is no error in a plugin. but if I change PHP version to 8.2, it has error. Even if I change PHP back to 8.1.9 the error is still there. Is it possible for Local to be set to PHP ver. 8.2.8 on the initial pull from a site from WP Engine to Local so that I can see if it’s a problem with Local or PHP 8.2 with MySQL 8.0? No error on WP Engine site in PHP 8.2 but it’s on MySQL 5.7

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.

Hi @michael_CCofSF

The Preferred/Default environment settings in Local right now are still for PHP 8.1.9. So when you’re using the Local Connect workflow, if you select to Create a new Site Local automatically sets it to the Preferred values. Eventually, we will probably have those updated to PHP 8.2 but for now if you want your pulled site to use PHP 8.2 you’ll need to take a couple extra steps. What you can do is spin up a new site in Local first, using the Custom method and selecting PHP 8.2.8. Then you’ll pull your WPE site directly into that install instead of selecting Create a new Site. If you go that route the PHP 8.2.8 version will remain.

Regarding the error message, what error message are you getting when you change to PHP 8.2?

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

That worked! Thanks!

1 Like

This topic was automatically closed 36 hours after the last reply. New replies are no longer allowed.