When using php-redis 5.3.1, get 500 error
See original GitHub issueAfter using pecl install redis
to update php-redis to version 5.3.1, a 500 error occurred when accessing the map. Also found in the error log of nginx
2020/08/24 15:29:50 [error] 7296#7296: *355458 FastCGI sent in stderr: "PHP message: Redis::set(): EXPIRE can't be < 1PHP message: [index.php:27] Base->run()" while reading response header from upstream, client: 162.158.7.131, server: map.waw-eve.com, request: "GET /api/Map/initData HTTP/1.1", upstream: "fastcgi://unix:/var/run/php/php7.3-fpm.sock:", host: "map.waw-eve.com", referrer: "https://map.waw-eve.com/map"
Issue Analytics
- State:
- Created 3 years ago
- Comments:13
Top Results From Across the Web
Please make sure the PHP Redis extension is installed ...
I have installed redis via pecl and added extension="redis.so" to my php.ini . I always got the error Please make sure Redis is...
Read more >Why does IIS PHP not recognize PhpRedis when it exists ...
php $redis = new Redis (); ?> This creates a "500 Internal Server Error" message. Upon inspecting PHP 7.4 x64's logs, despite being...
Read more >Resolve the 500 Internal Server Error for PHP 7.4 with IIS on ...
Recently upgrade my Wordpress 5.3.1 server to PHP 7.4 but I needed to resolve the 500 Internal Server Error for PHP 7.4 with...
Read more >Class 'Redis' not found
I have installed php-redis but am still getting the 'Class 'Redis' not found' error when trying to run any 'php artisan' command. There...
Read more >Releases - Local
PHP 7.4 and PHP 8.0 patch versions have been merged in the Local UI. ... to enable a Live Link on a site...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Downgraded to 5.2.1 for now.
Temporary fix:
pecl install redis-5.2.1
Thanks @Kaezon , I’m using Redis 6.2.5 with PHP 7.4 and been pulling my hair out for the past 2 days until I found that workaround!