Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
After enabling the module for the first time, the following is shown on the page:
Warning: md5() expects parameter 1 to be string, array given in Redis_Client::getGlobalPrefix() (line 75 of /var/aegir/platforms/panopoly-7.x-1.30/sites/{SITE}/modules/redis/lib/Redis/Client.php).
Is this perhaps a PHP 5.5 incompatibility?
Comment | File | Size | Author |
---|---|---|---|
#4 | i2684303-4.patch | 669 bytes | attiks |
Comments
Comment #2
NWOM CreditAttribution: NWOM commentedI think I may have found the culprit, but can't say for sure. I have an aegir environment with the database being Mysql. However, in addition to the drupal database, I have another database connection which is configured in the local.settings.php. Is it possible that it isn't expecting an array?
As a workaround I changed Line 71 in /lib/Redis/Client.php from:
if (isset($GLOBALS['db_url'])) {
to
if (!isset($GLOBALS['db_url'])) {
Comment #3
pounardIf I remember correctly, you are not the first experiencing that, it's due to the fact that your global $databases array might not have a 'default' set or is incomplete.
Comment #4
attiks CreditAttribution: attiks at Attiks commentedRan into the same problem today, patch checks if it is a string
Comment #5
pounardPatch applied and commited, thanks!
There will be a release today.
Comment #7
NWOM CreditAttribution: NWOM commentedOh awesome. Thanks guys! I'll have to give the newest dev a shot then.