Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

PHP Warning: Module 'redis' already loaded in Unknown on line 0 #178

Open
dandrikop opened this issue Sep 30, 2020 · 1 comment
Open

PHP Warning: Module 'redis' already loaded in Unknown on line 0 #178

dandrikop opened this issue Sep 30, 2020 · 1 comment

Comments

@dandrikop
Copy link

Hello,

I'm using a Redis instance for Sessions and a separate Redis instance for Cache on Magento 1.9.4.5 with PHP 7.2. Upon every HTTP request, I see the below line at the file error_log:

PHP Warning: Module 'redis' already loaded in Unknown on line 0

I don't know which of the two modules Cm_RedisSession or Cm_Cache_Backend_Redis is responsible for that.

I believe that this warning occurs below ISP has installed Redis module for PHP (see attached screenshot from phpinfo). This line fills up my log file. Is there any way to suppress this warning in the Cm_RedisSession or Cm_Cache_Backend_Redis modules, or the only solution is to remove Redis module from PHP?

Capture

@colinmollenhour
Copy link
Owner

The PHP code just checks to see if a class is defined, there is no loading. So I suspect your webhost's config has the module included twice somehow (e.g. extension=redis.so exists both in php.ini and also in conf.d/redis.ini)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants