Forum Replies Created
-
AuthorPosts
-
November 22, 2024 at 3:57 pm in reply to: Errors Appear When Updating WordPress to 6.7 and 6.7.1 #1471950
Hi Rikard, we did not find a solution. Instead we had WordPress downgraded back to 6.6.2.
Hello Mike,
I understand the confusion of the PHP code now. I had pinpointed the WPML plugin as the cause of the issues when updating the theme as the site crashes when updating the theme or deactivating the plugin. The support staff member I spoke to from WPMUdev likely thought I wanted to just remove the flags from the site when I wanted to be able to remove the entire plugin to further test if it was the issue.
As for updating the theme, I just attempted to update Enfold manually and there was another critical error on the site. The token was just rechecked and validated. The update to 6.0.6 is sitting in the Updates page, waiting.
I’ve updated the staging site so it is accessible now. Credentials are below.
Guenni, the code was given from WPMUdev support. Here it is in the correct format:
About the error that you are getting, the log is showing the following:
PHP Fatal error: Uncaught Error: Class "avia_WPML" not found in /var/web/staging/public_html/wp-content/themes/AMPwp/functions.php:38
…
Also, to give you further info, this is the specific part of the code on the child theme functions.php causing issues:function avia_remove_main_menu_flags(){ global $avia_WPML; add_filter( 'wp_nav_menu_items', [ new avia_WPML, 'handler_append_lang_flags' ], 9999, 2 ); remove_filter( 'wp_nav_menu_items', [ 'avia_WPML', 'handler_append_lang_flags' ], 9998, 2 ); remove_filter( 'avf_fallback_menu_items', [ 'avia_WPML', 'handler_append_lang_flags' ], 9998, 2 ); remove_action( 'avia_meta_header', 'avia_wpml_language_switch', 10 ); remove_action( 'ava_main_header_sidebar', 'avia_wpml_language_switch', 10 ); } add_action('init','avia_remove_main_menu_flags', 9999);
I’m not trying to remove the flags from the site. I’m trying to update the theme without everything crashing.
- This reply was modified 3 weeks, 6 days ago by clintrichardson24.
That worked, thank you!
-
AuthorPosts