yea im getting the same issue except it works fine for 9.3 but starts deactivating plugins in 9.3.1
in fact it seems to be happening on 9.3 too fine on 9.2.6
update: so having downgraded back to 9.2.6 its happening too – im super confused now, is there something special you need to do when updating/downgrading
-
This reply was modified 8 years, 5 months ago by
steveokk.
-
This reply was modified 8 years, 5 months ago by
steveokk.
-
This reply was modified 8 years, 5 months ago by
steveokk.
I’ve released version 9.3.3. It prevents the recreate_plugin_order function from saving the active_plugins array if there are less plugins in it than when it was called. That will prevent it from deactivating plugins if that is what is causing it. I also added a filter call that removes the active_plugins filters before any code from the active plugins is called to prevent them from getting a bad active_plugins array and saving it. Which could also deactivate plugins inadvertently.
Thank you for the update but still fatal errors each time i trye to activate plugin – and then i need to deactivate/re-activate all plugins to get site back up.
But this time i could find the error in my log:
[05-Dec-2017 08:52:22 UTC] PHP Fatal error: Cannot redeclare is_order_received_page() (previously declared in /wp-content/plugins/woocommerce/includes/wc-conditional-functions.php:196) in /wp-content/plugins/woocommerce-gateway-klarna/woocommerce-gateway-klarna.php on line 435
[05-Dec-2017 08:52:22 UTC] PHP Notice: WC_Log_Handler_File::get_log_file_path was called incorrectly. Denne metoden bør ikke kalles før plugins_loaded. Backtrace: WooCommerce->log_errors, WC_Logger->critical, WC_Logger->log, WC_Log_Handler_File->handle, WC_Log_Handler_File->add, WC_Log_Handler_File->should_rotate, WC_Log_Handler_File::get_log_file_path, wc_doing_it_wrong Please see Debugging in WordPress for more information. (This message was added in version 3.0.) in /wp-includes/functions.php on line 4146
[05-Dec-2017 08:52:22 UTC] PHP Notice: WC_Log_Handler_File::get_log_file_path was called incorrectly. Denne metoden bør ikke kalles før plugins_loaded. Backtrace: WooCommerce->log_errors, WC_Logger->critical, WC_Logger->log, WC_Log_Handler_File->handle, WC_Log_Handler_File->add, WC_Log_Handler_File->open, WC_Log_Handler_File::get_log_file_path, wc_doing_it_wrong Please see Debugging in WordPress for more information. (This message was added in version 3.0.) in /wp-includes/functions.php on line 4146
Thanks
Rune
You need to change the load order of the plugins. The Klarna Gateway plugin doesn’t check to see if the is_order_received_page function is already declared and then tries to redeclare it. If you set that plugin to load before Woocommerce it will stop throwing that error.
Thanks a lot – that did the trick 🙂
Brgds
Rune