PHP error when trying to disable jetpack modules
-
Hi, I run the latest of WordPress and Woocommerce. When I go to the Jetpack dashboard, scroll to the bottom and click Modules, I can activate or deactivate modules.
Whatever module I try to deactivate, I get a critical error.
Looking at the php error log, I see the stack trace below. It is the log() function which tries to do “$log = array_slice( Jetpack_Options::get_option( ‘log’, array() ), -199, 199 );” but get_option(‘log’) apparently gives boolean false.
PHP Fatal error: Uncaught TypeError: array_slice(): Argument #1 ($array) must be of type array, bool given in /home/xxx/public_html/wp-content/plugins/jetpack/class.jetpack.php:3086
Stack trace:
#0 /home/xxx/public_html/wp-content/plugins/jetpack/class.jetpack.php(3086): array_slice(false, -199, 199)
#1 /home/xxx/public_html/wp-content/plugins/jetpack/class.jetpack.php(4014): Jetpack::log(‘deactivate’, ‘stats’)
#2 /home/xxx/public_html/wp-content/plugins/jetpack/_inc/lib/admin-pages/class.jetpack-admin-page.php(171): Jetpack->admin_page_load()
#3 /home/xxx/public_html/wp-includes/class-wp-hook.php(307): Jetpack_Admin_Page->admin_page_load(”)
#4 /home/xxx/public_html/wp-includes/class-wp-hook.php(331): WP_Hook->apply_filters(NULL, Array)
#5 /home/xxx/public_html/wp-includes/plugin.php(476): WP_Hook->do_action(Array)
#6 /home/xxx/public_html/wp-admin/admin.php(237): do_action(‘load-toplevel_p…’)
#7 {main}
thrown in /home/xxx/public_html/wp-content/plugins/jetpack/class.jetpack.php on line 3086
The topic ‘PHP error when trying to disable jetpack modules’ is closed to new replies.