question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

When using php-redis 5.3.1, get 500 error

See original GitHub issue

After 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:open
  • Created 3 years ago
  • Comments:13

github_iconTop GitHub Comments

2reactions
xremcommented, Aug 24, 2020

Downgraded to 5.2.1 for now.

Temporary fix: pecl install redis-5.2.1

1reaction
beelitzscommented, Sep 22, 2021

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!

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found