Latest update broke PHP 7.4.1

Issue Summary

Just updated to v5.9.2+5056 for Mac. WordPress Version shows a loading icon and sites won’t load ( 502 Bad Gateway )

I then downloaded a fresh copy of the app & installed it, but still no joy.

After creating a fresh site and confirming that I can open it in the browser, I noticed it was running PHP 7.3.5, and my other sites were using PHP 7.4.1. I changed the new site to 7.4.1 and it stopped working. So I rolled back PHP on the old sites and they started working again.

Note that I also upgraded to Big Sur earlier today. Possibly related?

Troubleshooting Questions

  • Does this happen for all sites in Local, or just one in particular?

All sites.

  • Are you able to create a new, plain WordPress site in Local and access it in a Browser?

Yes.

Replication

Describe the steps that others can take to replicate this issue. If you have screenshots that can help clarify what is happening, please include them!

System Details

  • Which version of Local is being used?

5.9.2+5056

  • What Operating System (OS) and OS version is being used?

macOS Big Sur

3 Likes

Hi @seezee,

Yes, this seems to be a bug since updating to macOS Big Sur. The current/only solution that is working as you stated is to revert any sites from 7.4.1 to 7.3.5.

I’m assuming on the next release of Local WP they will hopefully have this resolved so sites can run 7.4.1 again.

I am planning on exporting my sites now that they are working with 7.3.5 and will try to import them with 7.4.1 active to see if that works.

Will update if I have success.

Thank you.

Can confirm the issue. Sites on PHP 7.4.1 instantly fail with a 503.

This is the log from starting one of the affected sites:

{"thread":"main","class":"","message":"Compiling service configs...","level":"info","timestamp":"2020-11-15T10:13:47.038Z"}
{"thread":"main","class":"Process","process":"phpFpm","level":"warn","message":"dyld: Symbol not found: _udat_patternCharToDateFormatField","timestamp":"2020-11-15T10:13:47.171Z"}
{"thread":"main","class":"Process","process":"phpFpm","level":"warn","message":"  Referenced from: /System/Library/Frameworks/CoreFoundation.framework/Versions/A/CoreFoundation","timestamp":"2020-11-15T10:13:47.172Z"}
{"thread":"main","class":"Process","process":"phpFpm","level":"warn","message":"  Expected in: %%userDataPath%%/lightning-services/php-7.4.1+10/bin/darwin/sbin/../dylibs/libicucore.A.dylib","timestamp":"2020-11-15T10:13:47.172Z"}
{"thread":"main","class":"Process","process":"phpFpm","level":"warn","message":" in /System/Library/Frameworks/CoreFoundation.framework/Versions/A/CoreFoundation","timestamp":"2020-11-15T10:13:47.172Z"}
{"thread":"main","class":"Process","process":"nginx","pid":28774,"level":"info","message":"Killing process","timestamp":"2020-11-15T10:13:47.234Z"}
{"thread":"main","class":"Process","process":"phpFpm","level":"warn","message":"dyld: Symbol not found: _udat_patternCharToDateFormatField","timestamp":"2020-11-15T10:13:47.700Z"}
{"thread":"main","class":"Process","process":"phpFpm","level":"warn","message":"  Referenced from: /System/Library/Frameworks/CoreFoundation.framework/Versions/A/CoreFoundation","timestamp":"2020-11-15T10:13:47.700Z"}
{"thread":"main","class":"Process","process":"phpFpm","level":"warn","message":"  Expected in: %%userDataPath%%/lightning-services/php-7.4.1+10/bin/darwin/sbin/../dylibs/libicucore.A.dylib","timestamp":"2020-11-15T10:13:47.701Z"}
{"thread":"main","class":"Process","process":"phpFpm","level":"warn","message":" in /System/Library/Frameworks/CoreFoundation.framework/Versions/A/CoreFoundation","timestamp":"2020-11-15T10:13:47.701Z"}
{"thread":"main","class":"Process","process":"mysql","level":"warn","message":"2020-11-15T10:13:47.292746Z 0 [System] [MY-010116] [Server] %%resourcesPath%%/lightning-services/mysql-8.0.16+5/bin/darwin/bin/mysqld (mysqld 8.0.16) starting as process 30759","timestamp":"2020-11-15T10:13:48.112Z"}
{"thread":"main","class":"Process","process":"mysql","level":"warn","message":"2020-11-15T10:13:47.296679Z 0 [Warning] [MY-013243] [Server] --character-set-server: The character set UTF8MB3 is deprecated and will be removed in a future release. Please consider using UTF8MB4 instead.","timestamp":"2020-11-15T10:13:48.112Z"}
{"thread":"main","class":"Process","process":"mysql","level":"warn","message":"2020-11-15T10:13:47.297861Z 0 [Warning] [MY-010159] [Server] Setting lower_case_table_names=2 because file system for %%site.runData%%/mysql/data/ is case insensitive","timestamp":"2020-11-15T10:13:48.112Z"}
{"thread":"main","class":"Process","process":"mysql","level":"warn","message":"2020-11-15T10:13:48.081937Z 0 [Warning] [MY-010068] [Server] CA certificate ca.pem is self signed.","timestamp":"2020-11-15T10:13:48.113Z"}
{"thread":"main","class":"Process","process":"mysql","level":"warn","message":"2020-11-15T10:13:48.112020Z 0 [System] [MY-010931] [Server] %%resourcesPath%%/lightning-services/mysql-8.0.16+5/bin/darwin/bin/mysqld: ready for connections. Version: '8.0.16'  socket: '%%site.runData%%/mysql/mysqld.sock'  port: 10008  MySQL Community Server - GPL.","timestamp":"2020-11-15T10:13:48.113Z"}
{"thread":"main","class":"Process","process":"phpFpm","level":"warn","message":"dyld: Symbol not found: _udat_patternCharToDateFormatField","timestamp":"2020-11-15T10:13:48.228Z"}
{"thread":"main","class":"Process","process":"phpFpm","level":"warn","message":"  Referenced from: /System/Library/Frameworks/CoreFoundation.framework/Versions/A/CoreFoundation","timestamp":"2020-11-15T10:13:48.229Z"}
{"thread":"main","class":"Process","process":"phpFpm","level":"warn","message":"  Expected in: %%userDataPath%%/lightning-services/php-7.4.1+10/bin/darwin/sbin/../dylibs/libicucore.A.dylib","timestamp":"2020-11-15T10:13:48.230Z"}
{"thread":"main","class":"Process","process":"phpFpm","level":"warn","message":" in /System/Library/Frameworks/CoreFoundation.framework/Versions/A/CoreFoundation","timestamp":"2020-11-15T10:13:48.231Z"}
{"thread":"main","class":"Process","process":"phpFpm","level":"warn","message":"dyld: Symbol not found: _udat_patternCharToDateFormatField","timestamp":"2020-11-15T10:13:48.751Z"}
{"thread":"main","class":"Process","process":"phpFpm","level":"warn","message":"  Referenced from: /System/Library/Frameworks/CoreFoundation.framework/Versions/A/CoreFoundation","timestamp":"2020-11-15T10:13:48.751Z"}
{"thread":"main","class":"Process","process":"phpFpm","level":"warn","message":"  Expected in: %%userDataPath%%/lightning-services/php-7.4.1+10/bin/darwin/sbin/../dylibs/libicucore.A.dylib","timestamp":"2020-11-15T10:13:48.751Z"}
{"thread":"main","class":"Process","process":"phpFpm","level":"warn","message":" in /System/Library/Frameworks/CoreFoundation.framework/Versions/A/CoreFoundation","timestamp":"2020-11-15T10:13:48.752Z"}

Googling some of the errors shows that they are indeed connected to Big Sur and some have already been discussed in this forum, e.g. macOS 11 Big Sur Beta compatibility.

Same here. Changed to PHP 7.3.5 and everything’s working fine now. Hope it gets fixed soon.

I’ve tested my idea of exporting and importing set to version 7.4.1 and it still doesn’t work.

I am currently using a 2019 MacBook Pro running Big Sur. I am running both Local 5.9.2+5056 and Local Beta 5.9.2+local-beta-5015.

I am able to open, run, and create new WordPress sites in PHP 7.4.1 without issue.

Have you tried re-installing PHP?

2 Likes

Hi @afragen,

This is definitely the fix. The following worked fine for me.

  1. Deleted the PHP 7.4.1 folder from the lightning-services folder
  2. Booted up Local
  3. Selected the site I wanted, PHP 7.4.1 and applied (downloaded the new version of PHP and everything works)

Thanks for sharing this!

2 Likes

This :point_up_2::point_up_2::point_up_2::point_up_2::point_up_2::point_up_2::point_up_2:

1 Like

Thank you !

1 Like

That worked, thanks @matthewfarlymn!

1 Like

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

PHP 7.4.1 is not working on Big Sur. Error 502.

Hey @andremacola Welcome to the Local Community Forums!

I’ve moved your reply to this thread since it sounds like this is the issue that you are encountering. Can you see if the solution fixes things for you?