After updating the PHP version of my site from within local to PHP v7.4.1 via Local, I get a 502 Bad Gateway Error when trying to visit the local site in a browser. Also, the “WordPress Version” line for the site within Local just shows the three loading dots and never shows the WordPress version. Thinking this may be part of the issue.
The only way to resolve was by reverting back to PHP v7.3.5.
Which version of Local is being used? v5.9.7+5156
What Operating System (OS) and OS version is being used? Mac OS Big Sur
Attach the Local Log. See this Community Forum post for instructions on how to do so:
This is similar to what I came across.
I already had a site using PHP v7.4.1 and after upgrading Local, I started getting 502 errors. Downgrading the PHP to v7.3.5 fixed the issue for me.
I also tried creating a new site with PHP v7.4.1 and received an error that Local was unable to install WordPress. Downgrading the PHP to v7.3.5 fixed this issue as well.
I had the same problem, but with an additional Local error.
I managed to fix, by cloning the site with the new PHP version, then deleting the offending site. Worked like a charm.
I can’t get any site to run on 7.4.1, but I get a 503 Service Unavailable error instead of the 502. Switching to 7.3.5 ‘solves’ it. This occurs wether I change an existing site or start new.
I got same error on php 7.4.1 and 8.0.0
This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.