Summer Sale! All accounts are 50% off this week.

clickfwd's avatar

Valet 502 error with php 8.0

Hi,

I've seen similar errors and recommendations to add some buffer config lines to the nginx conf file. I tried that without success.

This is the error I am seeing:

2020/11/30 09:49:34 [crit] 69850#0: *1 connect() to unix:/Users/xyz/.config/valet/valet.sock failed (2: No such file or directory) while connecting to upstream, client: 127.0.0.1, server: , request: "GET /wp-admin/ HTTP/1.1", upstream: "fastcgi://unix:/Users/xyz/.config/valet/valet.sock:", host: "wordpress-demo.test", referrer: "http://wordpress-demo.test/wp-login.php"

With PHP 7.4 everything works fine. As soon as I switch to PHP 8 I get this error after the first page load. I tried removing and reinstalling valet, and upgrading composer and brew to no avail.

Does anyone have other ideas to troubleshoot or fix this issue?

0 likes
1 reply
clickfwd's avatar

Nevermind. It turns out a 3rd party plugin was causing the issue, but there's nothing in the logs that allows identifiying the actual error.

Please or to participate in this conversation.