Critical error when customizing Astra theme v4.5.2
-
Upon upgrading my Astra theme to version 4.5.2, when I go to WP-Admin -> Appearance -> Customize, I encountered the following error:
WordPress version 6.4.2 Active theme: Astra (version 4.5.2) Current plugin: (version ) PHP version 8.3.0 Error Details ============= An error of type E_ERROR was caused in line 38 of the file /var/www/html/wp-content/themes/astra/inc/customizer/configurations/builder/header/class-astra-customizer-woo-cart-configs.php. Error message: Uncaught Error: Call to undefined function astra_header_woo_cart_configuration() in /var/www/html/wp-content/themes/astra/inc/customizer/configurations/builder/header/class-astra-customizer-woo-cart-configs.php:38 Stack trace: #0 /var/www/html/wp-includes/class-wp-hook.php(324): Astra_Customizer_Woo_Cart_Configs->register_configuration(Array, Object(WP_Customize_Manager)) #1 /var/www/html/wp-includes/plugin.php(205): WP_Hook->apply_filters(Array, Array) #2 /var/www/html/wp-content/themes/astra/inc/customizer/class-astra-customizer.php(1133): apply_filters('astra_customize...', Array, Object(WP_Customize_Manager)) #3 /var/www/html/wp-content/themes/astra/inc/customizer/class-astra-customizer.php(940): Astra_Customizer->get_customizer_configurations() #4 /var/www/html/wp-includes/class-wp-hook.php(324): Astra_Customizer->prepare_group_configs(Object(WP_Customize_Manager)) #5 /var/www/html/wp-includes/class-wp-hook.php(348): WP_Hook->apply_filters(NULL, Array) #6 /var/www/html/wp-includes/plugin.php(517): WP_Hook->do_action(Array) #7 /var/www/html/wp-includes/class-wp-customize-manager.php(942): do_action('customize_regis...', Object(WP_Customize_Manager)) #8 /var/www/html/wp-includes/class-wp-hook.php(324): WP_Customize_Manager->wp_loaded('') #9 /var/www/html/wp-includes/class-wp-hook.php(348): WP_Hook->apply_filters(NULL, Array) #10 /var/www/html/wp-includes/plugin.php(517): WP_Hook->do_action(Array) #11 /var/www/html/wp-settings.php(665): do_action('wp_loaded') #12 /var/www/html/wp-config.php(133): require_once('/var/www/html/w...') #13 /var/www/html/wp-load.php(50): require_once('/var/www/html/w...') #14 /var/www/html/wp-admin/admin.php(34): require_once('/var/www/html/w...') #15 /var/www/html/wp-admin/customize.php(13): require_once('/var/www/html/w...') #16 {main}
From what I could tell, the
astra_header_woo_cart_configuration
function was simply not loaded before it was invoked in this code path. My only course was to downgrade to 4.4.1 (prior to recent WooCommerce-related theme changes), which does not exhibit this problem.This issue was separately reported by another user in https://www.ads-software.com/support/topic/wpadmin-application-customize-there-has-been-a-critical-error-on-this-website/.
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘Critical error when customizing Astra theme v4.5.2’ is closed to new replies.