breaks woocommerce account page
-
Hi! I noticed that the ‘my account’ page on my website was broken — it gives the following message:
There has been a critical error on this website.
I copied everything to a staging site & deactivated all my plugins, then reactivated them one by one, & your plugin was the problem. I went back to my production site, deactivated slim seo, & once again, that solved the issue.
I really REALLY like slim seo & I don’t want to have to stop using it! So if you have any advice, or if there’s an update coming that’ll solve the problem, that would REALLY rock.
theme: Astra 4.6.5
wordpress: 6.4.3
woocommerce: 8.6.0
all of my plugins are up to date; if you need a list, I can get that for you, & if you need more information, just holler.thanks!
Kellan
-
Hi Kellan,
Can you please enable the debugging mode and send me the full error message?
Hi Tran! Here it is:
[17-Feb-2024 23:00:53 UTC] PHP Deprecated: explode(): Passing null to parameter #2 ($string) of type string is deprecated in /home/dh_kt324x/thevagabondtabby.com/tvt-staging/wp-content/plugins/woolentor-addons/woolentor-blocks/includes/helper-functions.php on line 278
[17-Feb-2024 23:01:15 UTC] PHP Deprecated: explode(): Passing null to parameter #2 ($string) of type string is deprecated in /home/dh_kt324x/thevagabondtabby.com/tvt-staging/wp-content/plugins/woolentor-addons/woolentor-blocks/includes/helper-functions.php on line 278
[17-Feb-2024 23:01:19 UTC] PHP Deprecated: explode(): Passing null to parameter #2 ($string) of type string is deprecated in /home/dh_kt324x/thevagabondtabby.com/tvt-staging/wp-content/plugins/woolentor-addons/woolentor-blocks/includes/helper-functions.php on line 278
[17-Feb-2024 23:01:33 UTC] PHP Deprecated: explode(): Passing null to parameter #2 ($string) of type string is deprecated in /home/dh_kt324x/thevagabondtabby.com/tvt-staging/wp-content/plugins/woolentor-addons/woolentor-blocks/includes/helper-functions.php on line 278
[17-Feb-2024 23:01:33 UTC] PHP Deprecated: explode(): Passing null to parameter #2 ($string) of type string is deprecated in /home/dh_kt324x/thevagabondtabby.com/tvt-staging/wp-content/plugins/woolentor-addons/woolentor-blocks/includes/helper-functions.php on line 278
[17-Feb-2024 23:01:33 UTC] PHP Deprecated: explode(): Passing null to parameter #2 ($string) of type string is deprecated in /home/dh_kt324x/thevagabondtabby.com/tvt-staging/wp-content/plugins/woolentor-addons/woolentor-blocks/includes/helper-functions.php on line 278
[17-Feb-2024 23:01:33 UTC] PHP Fatal error: Uncaught TypeError: SlimSEO\ImagesAlt::add_avatar_alt(): Argument #5 ($alt) must be of type string, null given, called in /home/dh_kt324x/thevagabondtabby.com/tvt-staging/wp-includes/class-wp-hook.php on line 326 and defined in /home/dh_kt324x/thevagabondtabby.com/tvt-staging/wp-content/plugins/slim-seo/src/ImagesAlt.php:43
Stack trace: 0 /home/dh_kt324x/thevagabondtabby.com/tvt-staging/wp-includes/class-wp-hook.php(326): SlimSEO\ImagesAlt->add_avatar_alt(‘<img alt=” src…’, ‘[email protected]…’, 60, ‘monsterid’, NULL) 1 /home/dh_kt324x/thevagabondtabby.com/tvt-staging/wp-includes/plugin.php(205): WP_Hook->apply_filters(‘<img alt=” src…’, Array) 2 /home/dh_kt324x/thevagabondtabby.com/tvt-staging/wp-includes/pluggable.php(3012): apply_filters(‘get_avatar’, ‘<img alt=” src…’, ‘[email protected]…’, 60, ‘monsterid’, NULL, Array) 3 /home/dh_kt324x/thevagabondtabby.com/tvt-staging/wp-content/plugins/astra-addon/addons/woocommerce/templates/navigation.php(34): get_avatar(‘[email protected]…’, ’60’, NULL, NULL, Array) 4 /home/dh_kt324x/thevagabondtabby.com/tvt-staging/wp-content/plugins/astra-addon/classes/class-astra-templates.php(40): include(‘/home/dh_kt324x…’) 5 /home/dh_kt324x/thevagabondtabby.com/tvt-staging/wp-content/plugins/astra-addon/addons/woocommerce/classes/class-astra-ext-woocommerce-markup.php(292): astra_addon_get_template(‘woocommerce/tem…’) 6 /home/dh_kt324x/thevagabondtabby.com/tvt-staging/wp-includes/class-wp-hook.php(324): ASTRA_Ext_WooCommerce_Markup->woocommerce_account_navigation(”) 7 /home/dh_kt324x/thevagabondtabby.com/tvt-staging/wp-includes/class-wp-hook.php(348): WP_Hook->apply_filters(”, Array) 8 /home/dh_kt324x/thevagabondtabby.com/tvt-staging/wp-includes/plugin.php(517): WP_Hook->do_action(Array) 9 /home/dh_kt324x/thevagabondtabby.com/tvt-staging/wp-content/plugins/woocommerce/templates/myaccount/my-account.php(25): do_action(‘woocommerce_acc…’) 10 /home/dh_kt324x/thevagabondtabby.com/tvt-staging/wp-content/plugins/woocommerce/includes/wc-core-functions.php(345): include(‘/home/dh_kt324x…’) 11 /home/dh_kt324x/thevagabondtabby.com/tvt-staging/wp-content/plugins/woocommerce/includes/shortcodes/class-wc-shortcode-my-account.php(123): wc_get_template(‘myaccount/my-ac…’, Array) 12 /home/dh_kt324x/thevagabondtabby.com/tvt-staging/wp-content/plugins/woocommerce/includes/shortcodes/class-wc-shortcode-my-account.php(72): WC_Shortcode_My_Account::my_account(”) 13 /home/dh_kt324x/thevagabondtabby.com/tvt-staging/wp-content/plugins/woocommerce/includes/class-wc-shortcodes.php(72): WC_Shortcode_My_Account::output(”) 14 /home/dh_kt324x/thevagabondtabby.com/tvt-staging/wp-content/plugins/woocommerce/includes/class-wc-shortcodes.php(115): WC_Shortcodes::shortcode_wrapper(Array, ”) 15 /home/dh_kt324x/thevagabondtabby.com/tvt-staging/wp-includes/shortcodes.php(433): WC_Shortcodes::my_account(”, ”, ‘woocommerce_my_…’) 16 [internal function]: do_shortcode_tag(Array) 17 /home/dh_kt324x/thevagabondtabby.com/tvt-staging/wp-includes/shortcodes.php(273): preg_replace_callback(‘/\[(\[?)(woocom…’, ‘do_shortcode_ta…’, ‘[woocommerce_my…’) 18 /home/dh_kt324x/thevagabondtabby.com/tvt-staging/wp-includes/class-wp-hook.php(324): do_shortcode(‘[woocommerce_my…’) 19 /home/dh_kt324x/thevagabondtabby.com/tvt-staging/wp-includes/plugin.php(205): WP_Hook->apply_filters(‘[woocommerce_my…’, Array) 20 /home/dh_kt324x/thevagabondtabby.com/tvt-staging/wp-includes/post-template.php(256): apply_filters(‘the_content’, ‘[woocommerce_my…’) 21 /home/dh_kt324x/thevagabondtabby.com/tvt-staging/wp-content/themes/astra/template-parts/single/content-header.php(33): the_content() 22 /home/dh_kt324x/thevagabondtabby.com/tvt-staging/wp-includes/template.php(792): require(‘/home/dh_kt324x…’) 23 /home/dh_kt324x/thevagabondtabby.com/tvt-staging/wp-includes/template.php(725): load_template(‘/home/dh_kt324x…’, false, Array) 24 /home/dh_kt324x/thevagabondtabby.com/tvt-staging/wp-includes/general-template.php(206): locate_template(Array, true, false, Array) 25 /home/dh_kt324x/thevagabondtabby.com/tvt-staging/wp-content/themes/astra/inc/template-parts.php(376): get_template_part(‘template-parts/…’) 26 /home/dh_kt324x/thevagabondtabby.com/tvt-staging/wp-includes/class-wp-hook.php(324): astra_entry_content_single_page_template(”) 27 /home/dh_kt324x/thevagabondtabby.com/tvt-staging/wp-includes/class-wp-hook.php(348): WP_Hook->apply_filters(”, Array) 28 /home/dh_kt324x/thevagabondtabby.com/tvt-staging/wp-includes/plugin.php(517): WP_Hook->do_action(Array) 29 /home/dh_kt324x/thevagabondtabby.com/tvt-staging/wp-content/themes/astra/inc/core/theme-hooks.php(452): do_action(‘astra_entry_con…’) 30 /home/dh_kt324x/thevagabondtabby.com/tvt-staging/wp-content/themes/astra/template-parts/content-page.php(26): astra_entry_content_single_page() 31 /home/dh_kt324x/thevagabondtabby.com/tvt-staging/wp-includes/template.php(792): require(‘/home/dh_kt324x…’) 32 /home/dh_kt324x/thevagabondtabby.com/tvt-staging/wp-includes/template.php(725): load_template(‘/home/dh_kt324x…’, false, Array) 33 /home/dh_kt324x/thevagabondtabby.com/tvt-staging/wp-includes/general-template.php(206): locate_template(Array, true, false, Array) 34 /home/dh_kt324x/thevagabondtabby.com/tvt-staging/wp-content/themes/astra/inc/class-astra-loop.php(111): get_template_part(‘template-parts/…’, ‘page’) 35 /home/dh_kt324x/thevagabondtabby.com/tvt-staging/wp-includes/class-wp-hook.php(324): Astra_Loop->template_parts_page(”) 36 /home/dh_kt324x/thevagabondtabby.com/tvt-staging/wp-includes/class-wp-hook.php(348): WP_Hook->apply_filters(”, Array) 37 /home/dh_kt324x/thevagabondtabby.com/tvt-staging/wp-includes/plugin.php(517): WP_Hook->do_action(Array) 38 /home/dh_kt324x/thevagabondtabby.com/tvt-staging/wp-content/themes/astra/inc/class-astra-loop.php(199): do_action(‘astra_page_temp…’) 39 /home/dh_kt324x/thevagabondtabby.com/tvt-staging/wp-content/themes/astra/inc/class-astra-loop.php(176): Astra_Loop->loop_markup(true) 40 /home/dh_kt324x/thevagabondtabby.com/tvt-staging/wp-includes/class-wp-hook.php(324): Astra_Loop->loop_markup_page(”) 41 /home/dh_kt324x/thevagabondtabby.com/tvt-staging/wp-includes/class-wp-hook.php(348): WP_Hook->apply_filters(”, Array) 42 /home/dh_kt324x/thevagabondtabby.com/tvt-staging/wp-includes/plugin.php(517): WP_Hook->do_action(Array) 43 /home/dh_kt324x/thevagabondtabby.com/tvt-staging/wp-content/themes/astra/inc/core/theme-hooks.php(267): do_action(‘astra_content_p…’) 44 /home/dh_kt324x/thevagabondtabby.com/tvt-staging/wp-content/themes/astra/page.php(32): astra_content_page_loop() 45 /home/dh_kt324x/thevagabondtabby.com/tvt-staging/wp-includes/template-loader.php(106): include(‘/home/dh_kt324x…’) 46 /home/dh_kt324x/thevagabondtabby.com/tvt-staging/wp-blog-header.php(19): require_once(‘/home/dh_kt324x…’) 47 /home/dh_kt324x/thevagabondtabby.com/tvt-staging/index.php(17): require(‘/home/dh_kt324x…’) 48 {main}thrown in /home/dh_kt324x/thevagabondtabby.com/tvt-staging/wp-content/plugins/slim-seo/src/ImagesAlt.php on line 43
Thank you!
Thanks for the error message.
This bug was caused by the “astra-addon” plugin, which calls the
get_avatar
function incorrectly by passing wrong params type. We’ve fixed this bug and will release a new version soon.Oh sweet, thank you! That was quick, you guys rock.
Have a good one!
- The topic ‘breaks woocommerce account page’ is closed to new replies.