rhubarbgroup / redis-cache

A persistent object cache backend for WordPress powered by Redis. Supports Predis, PhpRedis, Relay, replication, sentinels, clustering and WP-CLI.
https://wordpress.org/plugins/redis-cache/
GNU General Public License v3.0
425 stars 148 forks source link

Failure to activate the plugin and delete it from WordPress #524

Closed mohammadr3z closed 3 months ago

mohammadr3z commented 3 months ago

Description

Hello, When activating the Pro version plugin, the following error is given and then the plugin is deleted from WordPress:

Actual Behavior

Fatal error: Uncaught Error: Failed opening required '/wp-content/plugins/object-cache-pro/src/Diagnostics/Diagnostic.php' (include_path='.:/opt/plesk/php/8.2/share/pear')
in /wp-content/plugins/object-cache-pro/bootstrap.php on line 7

Call stack:

{closure}()
wp-content/plugins/object-cache-pro/src/Diagnostics/Diagnostics.php:805
RedisCachePro\Diagnostics\Diagnostics::status()
wp-content/plugins/object-cache-pro/src/Diagnostics/Diagnostics.php:175
RedisCachePro\Diagnostics\Diagnostics::gatherGeneral()
wp-content/plugins/object-cache-pro/src/Diagnostics/Diagnostics.php:156
RedisCachePro\Diagnostics\Diagnostics::__construct()
wp-content/plugins/object-cache-pro/src/Plugin.php:166
RedisCachePro\Plugin::diagnostics()
wp-content/plugins/object-cache-pro/src/Extensions/QueryMonitor/ObjectCacheCollector.php:73
RedisCachePro\E\Q\ObjectCacheCollector::process()
wp-content/plugins/query-monitor/classes/Collectors.php:84
QM_Collectors::process()
wp-content/plugins/query-monitor/classes/Dispatcher.php:108
QM_Dispatcher::get_outputters()
wp-content/plugins/query-monitor/dispatchers/Redirect.php:39
QM_Dispatcher_Redirect::filter_wp_redirect()
wp-includes/class-wp-hook.php:324
WP_Hook::apply_filters()
wp-includes/plugin.php:205
apply_filters()
wp-includes/pluggable.php:1396
wp_redirect()
wp-includes/pluggable.php:1545
wp_safe_redirect()
wp-content/plugins/object-cache-pro/src/Plugin/Settings.php:340
RedisCachePro\Plugin::maybeRedirectToSettings()
wp-includes/class-wp-hook.php:324
WP_Hook::apply_filters()
wp-includes/class-wp-hook.php:348
WP_Hook::do_action()
wp-includes/plugin.php:517
do_action()
wp-admin/admin.php:175
require_once()
wp-admin/plugins.php:10

Environment

tillkruss commented 3 months ago

Hey @mohammadr3z please send an email to support [at] object cache [dot] pro.