Unable to use authentication #4
Replies: 1 comment 2 replies
-
Read the FAQ. |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
The following are my wp-config.php settings.
I use Redis on localhost.
define( 'WP_REDIS_DATABASE', 3 ); define( 'WP_REDIS_PREFIX', 'NyTFl' ); define( 'WP_REDIS_PASSWORD', [ 'testuser', '123123' ]); define( 'WP_REDIS_CLIENT', 'predis' ); define( 'WP_REDIS_SHARDS', false );
I've configured SHARED to false because for some reason in object-cache.php you only consider the password inside this loop:
foreach ( [ 'WP_REDIS_SERVERS', 'WP_REDIS_SHARDS', 'WP_REDIS_CLUSTER' ] as $constant ) { if ( defined( $constant ) ) { ...
and while I don't understand why, it is the only trick that allows me to use the auth feature.
However, I get this error:
Warning: strlen() expects parameter 1 to be string, array given in /var/www/sites/mysite/wp-content/plugins/redis-cache/dependencies/predis/predis/src/Connection/Factory.php on line 167
Fatal error: Uncaught Predis\Connection\ConnectionException:
SELECT
failed: NOAUTH Authentication required. [tcp://127.0.0.1:6379] in /var/www/sites/mysite/wp-content/plugins/redis-cache/dependencies/predis/predis/src/Connection/AbstractConnection.php:131Any idea how to connect?
Beta Was this translation helpful? Give feedback.
All reactions