critical error after activate
-
i have a hetztner Server with redis on socket.
support means i nead ?/run/redis_devbwc/redis.sock
after i have change in the config.php todefine('WP_REDIS_PATH','/run/redis_devbwc/redis.sock'); define('WP_REDIS_SCHEME', 'unix');
i can activate the redis
after activate, i become a critcal error from worpress
Status: Nicht aktiviert Client: Drop-in: Not installed Disabled: No PhpRedis: 5.3.6 Relay: Not loaded Predis: 2.1.2 Credis: Not loaded PHP Version: 8.1.25 Plugin Version: 2.5.0 Redis Version: Unknown Multisite: No Metrics: Disabled Metrics recorded: 0 Filesystem: Writable WP_REDIS_SCHEME: "unix" WP_REDIS_PATH: "/run/redis_devbwc/redis.sock" WP_REDIS_PLUGIN_PATH: "/usr/www/users/devbwc/wp-content/plugins/redis-cache" Drop-ins: [ "advanced-cache.php v by ", "Query Monitor Database Class (Drop-in) v3.15.0 by John Blackbourn" ]
The page I need help with: [log in to see the link]
-
Can you post the full error stack from your PHP error logs?
Fatal error: Uncaught Error: Call to undefined function get_template_directory() in /usr/www/users/devbwc/wp-includes/l10n.php:1306 Stack trace: #0 /usr/www/users/devbwc/wp-includes/l10n.php(1331): _load_textdomain_just_in_time() #1 /usr/www/users/devbwc/wp-includes/l10n.php(185): get_translations_for_domain() #2 /usr/www/users/devbwc/wp-includes/l10n.php(297): translate() #3 /usr/www/users/devbwc/wp-content/object-cache.php(2914): __() #4 /usr/www/users/devbwc/wp-content/object-cache.php(2886): WP_Object_Cache->show_error_and_die() #5 /usr/www/users/devbwc/wp-content/object-cache.php(566): WP_Object_Cache->handle_exception() #6 /usr/www/users/devbwc/wp-content/object-cache.php(256): WP_Object_Cache->__construct() #7 /usr/www/users/devbwc/wp-includes/load.php(856): wp_cache_init() #8 /usr/www/users/devbwc/wp-settings.php(131): wp_start_object_cache() #9 /usr/www/users/devbwc/wp-config.php(101): require_once(‘/usr/www/users/…’) #10 /usr/www/users/devbwc/wp-load.php(50): require_once(‘/usr/www/users/…’) #11 /usr/www/users/devbwc/wp-blog-header.php(13): require_once(‘/usr/www/users/…’) #12 /usr/www/users/devbwc/index.php(17): require(‘/usr/www/users/…’) #13 {main} thrown in /usr/www/users/devbwc/wp-includes/l10n.php on line 1306
Es gab einen kritischen Fehler auf deiner Website.
Please delete the
wp-content/object-cache.php
file and then go toSettings > Redis
and post what you see there.Status: Nicht aktiviert Client: Drop-in: Not installed Disabled: No PhpRedis: 5.3.6 Relay: Not loaded Predis: 2.1.2 Credis: Not loaded PHP Version: 8.1.25 Plugin Version: 2.5.0 Redis Version: Unknown Multisite: No Metrics: Disabled Metrics recorded: 0 Filesystem: Writable WP_REDIS_SCHEME: “unix” WP_REDIS_PATH: “/run/redis_devbwc/redis.sock” WP_REDIS_PLUGIN_PATH: “/usr/www/users/devbwc/wp-content/plugins/redis-cache” Drop-ins: [ “advanced-cache.php v by “, “Query Monitor Database Class (Drop-in) v3.15.0 by John Blackbourn” ]
Hi Nicolas,
Under “Overview” it should say “Status, Dateisystem, Redis”. What do you see next to Redis?
We use php8.1
Status:
Nicht aktiviert
Dateisystem:?Beschreibbar
Redis:?ErreichbarRedis Configuration on Hetzner Managed Server
https://cloud.hosting4you.biz/index.php/s/ND9aXj5JWSPFKy7Screenshots:
https://cloud.hosting4you.biz/index.php/s/SPiGuv74ASwK7cZ
https://cloud.hosting4you.biz/index.php/s/4ErDGy9CW1EFw9D
https://cloud.hosting4you.biz/index.php/s/0xFlStWtwlSuvp2This is very strange. It seems that a Redis error occurs, but it can’t be displayed because translations can’t be loaded.
Would you mind posting your full error logs, or alternatively: Can you add a
redis-error.php
file to yourwp-content
directory with this content?<?php var_dump($exception); exit;
And try activating it again?
directly after activate
object(RedisException)#9 (7) { ["message":protected]=> string(18) "Connection refused" ["string":"Exception":private]=> string(855) "RedisException: Connection refused in /usr/www/users/devbwc/wp-content/object-cache.php:724 Stack trace: #0 /usr/www/users/devbwc/wp-content/object-cache.php(724): Redis->connect() #1 /usr/www/users/devbwc/wp-content/object-cache.php(536): WP_Object_Cache->connect_using_phpredis() #2 /usr/www/users/devbwc/wp-content/object-cache.php(256): WP_Object_Cache->__construct() #3 /usr/www/users/devbwc/wp-includes/load.php(856): wp_cache_init() #4 /usr/www/users/devbwc/wp-settings.php(131): wp_start_object_cache() #5 /usr/www/users/devbwc/wp-config.php(101): require_once('/usr/www/users/...') #6 /usr/www/users/devbwc/wp-load.php(50): require_once('/usr/www/users/...') #7 /usr/www/users/devbwc/wp-admin/admin.php(34): require_once('/usr/www/users/...') #8 /usr/www/users/devbwc/wp-admin/options-general.php(10): require_once('/usr/www/users/...') #9 {main}" ["code":protected]=> int(0) ["file":protected]=> string(49) "/usr/www/users/devbwc/wp-content/object-cache.php" ["line":protected]=> int(724) ["trace":"Exception":private]=> array(9) { [0]=> array(5) { ["file"]=> string(49) "/usr/www/users/devbwc/wp-content/object-cache.php" ["line"]=> int(724) ["function"]=> string(7) "connect" ["class"]=> string(5) "Redis" ["type"]=> string(2) "->" } [1]=> array(5) { ["file"]=> string(49) "/usr/www/users/devbwc/wp-content/object-cache.php" ["line"]=> int(536) ["function"]=> string(22) "connect_using_phpredis" ["class"]=> string(15) "WP_Object_Cache" ["type"]=> string(2) "->" } [2]=> array(5) { ["file"]=> string(49) "/usr/www/users/devbwc/wp-content/object-cache.php" ["line"]=> int(256) ["function"]=> string(11) "__construct" ["class"]=> string(15) "WP_Object_Cache" ["type"]=> string(2) "->" } [3]=> array(3) { ["file"]=> string(42) "/usr/www/users/devbwc/wp-includes/load.php" ["line"]=> int(856) ["function"]=> string(13) "wp_cache_init" } [4]=> array(3) { ["file"]=> string(37) "/usr/www/users/devbwc/wp-settings.php" ["line"]=> int(131) ["function"]=> string(21) "wp_start_object_cache" } [5]=> array(4) { ["file"]=> string(35) "/usr/www/users/devbwc/wp-config.php" ["line"]=> int(101) ["args"]=> array(1) { [0]=> string(37) "/usr/www/users/devbwc/wp-settings.php" } ["function"]=> string(12) "require_once" } [6]=> array(4) { ["file"]=> string(33) "/usr/www/users/devbwc/wp-load.php" ["line"]=> int(50) ["args"]=> array(1) { [0]=> string(35) "/usr/www/users/devbwc/wp-config.php" } ["function"]=> string(12) "require_once" } [7]=> array(4) { ["file"]=> string(40) "/usr/www/users/devbwc/wp-admin/admin.php" ["line"]=> int(34) ["args"]=> array(1) { [0]=> string(33) "/usr/www/users/devbwc/wp-load.php" } ["function"]=> string(12) "require_once" } [8]=> array(4) { ["file"]=> string(50) "/usr/www/users/devbwc/wp-admin/options-general.php" ["line"]=> int(10) ["args"]=> array(1) { [0]=> string(40) "/usr/www/users/devbwc/wp-admin/admin.php" } ["function"]=> string(12) "require_once" } } ["previous":"Exception":private]=> NULL }
in redix-error.php i have the content
<?php var_dump($exception); exit;
This is odd.
Connection refused
would mean the server isn’t reachable, but it is.Can you try setting:
define('WP_REDIS_CLIENT', 'predis')
;i deleted the file object-cache.php on wp-content
than i edit the wp-config
logged in into the backend and active redisAfter i become this output.
object(RedisException)#9 (7) { ["message":protected]=> string(18) "Connection refused" ["string":"Exception":private]=> string(855) "RedisException: Connection refused in /usr/www/users/devbwc/wp-content/object-cache.php:724 Stack trace: #0 /usr/www/users/devbwc/wp-content/object-cache.php(724): Redis->connect() #1 /usr/www/users/devbwc/wp-content/object-cache.php(536): WP_Object_Cache->connect_using_phpredis() #2 /usr/www/users/devbwc/wp-content/object-cache.php(256): WP_Object_Cache->__construct() #3 /usr/www/users/devbwc/wp-includes/load.php(856): wp_cache_init() #4 /usr/www/users/devbwc/wp-settings.php(131): wp_start_object_cache() #5 /usr/www/users/devbwc/wp-config.php(101): require_once('/usr/www/users/...') #6 /usr/www/users/devbwc/wp-load.php(50): require_once('/usr/www/users/...') #7 /usr/www/users/devbwc/wp-admin/admin.php(34): require_once('/usr/www/users/...') #8 /usr/www/users/devbwc/wp-admin/options-general.php(10): require_once('/usr/www/users/...') #9 {main}" ["code":protected]=> int(0) ["file":protected]=> string(49) "/usr/www/users/devbwc/wp-content/object-cache.php" ["line":protected]=> int(724) ["trace":"Exception":private]=> array(9) { [0]=> array(5) { ["file"]=> string(49) "/usr/www/users/devbwc/wp-content/object-cache.php" ["line"]=> int(724) ["function"]=> string(7) "connect" ["class"]=> string(5) "Redis" ["type"]=> string(2) "->" } [1]=> array(5) { ["file"]=> string(49) "/usr/www/users/devbwc/wp-content/object-cache.php" ["line"]=> int(536) ["function"]=> string(22) "connect_using_phpredis" ["class"]=> string(15) "WP_Object_Cache" ["type"]=> string(2) "->" } [2]=> array(5) { ["file"]=> string(49) "/usr/www/users/devbwc/wp-content/object-cache.php" ["line"]=> int(256) ["function"]=> string(11) "__construct" ["class"]=> string(15) "WP_Object_Cache" ["type"]=> string(2) "->" } [3]=> array(3) { ["file"]=> string(42) "/usr/www/users/devbwc/wp-includes/load.php" ["line"]=> int(856) ["function"]=> string(13) "wp_cache_init" } [4]=> array(3) { ["file"]=> string(37) "/usr/www/users/devbwc/wp-settings.php" ["line"]=> int(131) ["function"]=> string(21) "wp_start_object_cache" } [5]=> array(4) { ["file"]=> string(35) "/usr/www/users/devbwc/wp-config.php" ["line"]=> int(101) ["args"]=> array(1) { [0]=> string(37) "/usr/www/users/devbwc/wp-settings.php" } ["function"]=> string(12) "require_once" } [6]=> array(4) { ["file"]=> string(33) "/usr/www/users/devbwc/wp-load.php" ["line"]=> int(50) ["args"]=> array(1) { [0]=> string(35) "/usr/www/users/devbwc/wp-config.php" } ["function"]=> string(12) "require_once" } [7]=> array(4) { ["file"]=> string(40) "/usr/www/users/devbwc/wp-admin/admin.php" ["line"]=> int(34) ["args"]=> array(1) { [0]=> string(33) "/usr/www/users/devbwc/wp-load.php" } ["function"]=> string(12) "require_once" } [8]=> array(4) { ["file"]=> string(50) "/usr/www/users/devbwc/wp-admin/options-general.php" ["line"]=> int(10) ["args"]=> array(1) { [0]=> string(40) "/usr/www/users/devbwc/wp-admin/admin.php" } ["function"]=> string(12) "require_once" } } ["previous":"Exception":private]=> NULL }
then i delete the object-cache.php and redis-error.php and activate the redis
now i become an critical error with this error
Fatal error: Uncaught Error: Call to undefined function get_template_directory() in /usr/www/users/devbwc/wp-includes/l10n.php:1306 Stack trace: #0 /usr/www/users/devbwc/wp-includes/l10n.php(1331): _load_textdomain_just_in_time() #1 /usr/www/users/devbwc/wp-includes/l10n.php(185): get_translations_for_domain() #2 /usr/www/users/devbwc/wp-includes/l10n.php(297): translate() #3 /usr/www/users/devbwc/wp-content/object-cache.php(2914): __() #4 /usr/www/users/devbwc/wp-content/object-cache.php(2886): WP_Object_Cache->show_error_and_die() #5 /usr/www/users/devbwc/wp-content/object-cache.php(566): WP_Object_Cache->handle_exception() #6 /usr/www/users/devbwc/wp-content/object-cache.php(256): WP_Object_Cache->__construct() #7 /usr/www/users/devbwc/wp-includes/load.php(856): wp_cache_init() #8 /usr/www/users/devbwc/wp-settings.php(131): wp_start_object_cache() #9 /usr/www/users/devbwc/wp-config.php(101): require_once('/usr/www/users/...') #10 /usr/www/users/devbwc/wp-load.php(50): require_once('/usr/www/users/...') #11 /usr/www/users/devbwc/wp-admin/admin.php(34): require_once('/usr/www/users/...') #12 /usr/www/users/devbwc/wp-admin/options-general.php(10): require_once('/usr/www/users/...') #13 {main} thrown in?/usr/www/users/devbwc/wp-includes/l10n.php?on line?1306
Can you reach out to
support [at] objectcache [DOT] pro
. Our developers need to chime in here.what you mean? I can create a WordPress and a FTP Login
If you are comfortable with that, that would be idea. You can email the credentials to
support [at] objectcache [DOT] pro
i’ve sent a mail to [email protected]
Your
WP_REDIS_*
constants are defined too late, you need to move them to the top of thewp-config.php
file.
- The topic ‘critical error after activate’ is closed to new replies.