Resolved by author
Resolved in: Enfold 5.3.1.1
Overview of the issue
Updating to Enfold 5.3 theme with WPML under a PHP 8.0 server leads to the following error:
Fatal error: Uncaught InvalidArgumentException: Trying to read non existing property in class avia_superobject: wpml in …/wp-content/themes/enfold/framework/php/base-classes/class-object-properties.php:33 Stack trace: #0 …/wp-content/themes/enfold/config-wpml/class-avia-wpml.php(1178): aviaFramework\base\\object_properties->__get(‘wpml’) #1 …/wp-content/themes/enfold/config-wpml/config.php(578): avia_WPML->wpml_get_options(‘maintenance_mod…’) #2 …/wp-includes/class-wp-hook.php(308): avia_wpml_get_special_pages_ids(Array, ‘pre_get_posts_f…’) #3 …/wp-includes/plugin.php(205): WP_Hook->apply_filters(Array, Array) #4 …/wp-content/themes/enfold/includes/class-avia-custom-pages.php(530): apply_filters(‘avf_get_special…’, Array, ‘pre_get_posts_f…’) #5 …/wp-includes/class-wp-hook.php(308): Avia_Custom_Pages->handler_hide_special_pages(Object(WP_Query) in …/wp-content/themes/enfold/framework/php/base-classes/class-object-properties.php on line 33
Workaround
Our developers and the Kriesi team (the makers of Enfold) are already aware of this situation. In the meantime, please follow the workaround provided by the Enfold theme team.
Be sure to make a full backup of your site before proceeding.