pantheon-systems / wp-redis

WordPress Object Cache using Redis.
https://wordpress.org/plugins/wp-redis/
GNU General Public License v2.0
226 stars 68 forks source link

When `$wp_object_cache->is_redis_connected` is `false` there is a fatal error for `$missing_redis_message` #377

Closed timnolte closed 1 year ago

timnolte commented 1 year ago

Undefined property: WP_Object_Cache::$missing_redis_message in [/var/www/html/web/wp-content/plugins/wp-redis/wp-redis.php ]

   if ( ! defined( 'WP_REDIS_OBJECT_CACHE' ) || ! WP_REDIS_OBJECT_CACHE ) { 
       return new WP_Error( 'wp-redis', 'WP Redis object-cache.php file is missing from the wp-content/ directory.' );
   } 
   if ( ! $wp_object_cache->is_redis_connected ) { 
       return new WP_Error( 'wp-redis', $wp_object_cache->missing_redis_message );
   } 
jspellman814 commented 1 year ago

Thanks for this report! We are tracking internally as BUGS-5623.

rwagner00 commented 1 year ago

Quick question -- is the Redis module enabled on the site in question?

timnolte commented 1 year ago

Yes

scottbuscemi commented 1 year ago

@timnolte We pushed an update based off of this, thank you!