Viewing 13 posts - 1 through 13 (of 13 total)
  • Author
    Posts
  • #1410426

    Hi Kriesi,
    I’m using the advanced editor for woocommerce products but it no longer shows me the prices of the variations when they are selected.
    The WP version is Version 6.2.2, child theme 5.5, PHP 8.0.28.

    I leave you the woocommerce log, can you help me?

    2023-06-12T14:44:08+00:00 CRITICAL Uncaught TypeError: preg_match(): Argument #2 ($subject) must be of type string, array given in /home/dsomluxl/public_html/wp-includes/formatting.php:1596
    Stack trace:
    #0 /home/dsomluxl/public_html/wp-includes/formatting.php(1596): preg_match('/[\\x80-\\xff]/', Array)
    #1 /home/dsomluxl/public_html/wp-includes/formatting.php(2208): remove_accents(Array)
    #2 /home/dsomluxl/public_html/wp-content/plugins/woocommerce/includes/wc-template-functions.php(3158): sanitize_title(Array)
    #3 /home/dsomluxl/public_html/wp-content/plugins/woocommerce/templates/single-product/add-to-cart/variable.php(45): wc_dropdown_variation_attribute_options(Array)
    #4 /home/dsomluxl/public_html/wp-content/plugins/woocommerce/includes/wc-core-functions.php(345): include('/home/dsomluxl/...')
    #5 /home/dsomluxl/public_html/wp-content/plugins/woocommerce/includes/wc-template-functions.php(1748): wc_get_template('single-product/...', Array)
    #6 /home/dsomluxl/public_html/wp-content/themes/psicologanicolettacarta/config-templatebuilder/avia-shortcodes/product_snippets/product_snippet_button.php(177): woocommerce_variable_add_to_cart()
    #7 /home/dsomluxl/public_html/wp-content/themes/psicologanicolettacarta/config-templatebuilder/avia-template-builder/php/class-shortcode-template.php(1181): avia_sc_produc_button->shortcode_handler(Array, '', 'av_product_butt...', Array)
    #8 /home/dsomluxl/public_html/wp-includes/shortcodes.php(355): aviaShortcodeTemplate->shortcode_handler_prepare(Array, '', 'av_product_butt...')
    #9 [internal function]: do_shortcode_tag(Array)
    #10 /home/dsomluxl/public_html/wp-includes/shortcodes.php(227): preg_replace_callback('/\\[(\\[?)(av_pro...', 'do_shortcode_ta...', '[av_textblock t...')
    #11 /home/dsomluxl/public_html/wp-content/themes/psicologanicolettacarta/config-templatebuilder/avia-template-builder/php/class-shortcode-helper.php(580): do_shortcode('[av_textblock t...')
    #12 /home/dsomluxl/public_html/wp-content/themes/psicologanicolettacarta/config-templatebuilder/avia-shortcodes/columns/columns.php(1937): ShortcodeHelper::avia_apply_autop('<p>[av_textbloc...')
    #13 /home/dsomluxl/public_html/wp-content/themes/psicologanicolettacarta/config-templatebuilder/avia-template-builder/php/class-shortcode-template.php(1181): avia_sc_columns->shortcode_handler(Array, '\n[av_textblock ...', 'av_one_half', Array)
    #14 /home/dsomluxl/public_html/wp-includes/shortcodes.php(355): aviaShortcodeTemplate->shortcode_handler_prepare(Array, '\n[av_textblock ...', 'av_one_half')
    #15 [internal function]: do_shortcode_tag(Array)
    #16 /home/dsomluxl/public_html/wp-includes/shortcodes.php(227): preg_replace_callback('/\\[(\\[?)(av_one...', 'do_shortcode_ta...', '\n[av_one_half f...')
    #17 /home/dsomluxl/public_html/wp-content/themes/psicologanicolettacarta/config-templatebuilder/avia-template-builder/php/class-shortcode-helper.php(559): do_shortcode('\n[av_one_half f...')
    #18 /home/dsomluxl/public_html/wp-content/themes/psicologanicolettacarta/config-templatebuilder/avia-shortcodes/section/section.php(1349): ShortcodeHelper::avia_remove_autop('\n[av_one_half f...', true)
    #19 /home/dsomluxl/public_html/wp-content/themes/psicologanicolettacarta/config-templatebuilder/avia-template-builder/php/class-shortcode-template.php(1181): avia_sc_section->shortcode_handler(Array, '\n[av_one_half f...', 'av_section', Array)
    #20 /home/dsomluxl/public_html/wp-includes/shortcodes.php(355): aviaShortcodeTemplate->shortcode_handler_prepare(Array, '\n[av_one_half f...', 'av_section')
    #21 [internal function]: do_shortcode_tag(Array)
    #22 /home/dsomluxl/public_html/wp-includes/shortcodes.php(227): preg_replace_callback('/\\[(\\[?)(av_but...', 'do_shortcode_ta...', '[av_section min...')
    #23 /home/dsomluxl/public_html/wp-includes/class-wp-hook.php(308): do_shortcode('[av_section min...')
    #24 /home/dsomluxl/public_html/wp-includes/plugin.php(205): WP_Hook->apply_filters('[av_section min...', Array)
    #25 /home/dsomluxl/public_html/wp-content/plugins/wordpress-seo/src/builders/indexable-link-builder.php(115): apply_filters('the_content', '[av_section min...')
    #26 /home/dsomluxl/public_html/wp-content/plugins/wordpress-seo/src/integrations/watchers/indexable-post-watcher.php(207): Yoast\WP\SEO\Builders\Indexable_Link_Builder->build(Object(Yoast\WP\SEO\Models\Indexable), '[av_section min...')
    #27 /home/dsomluxl/public_html/wp-includes/class-wp-hook.php(310): Yoast\WP\SEO\Integrations\Watchers\Indexable_Post_Watcher->build_indexable(363)
    #28 /home/dsomluxl/public_html/wp-includes/class-wp-hook.php(332): WP_Hook->apply_filters(NULL, Array)
    #29 /home/dsomluxl/public_html/wp-includes/plugin.php(517): WP_Hook->do_action(Array)
    #30 /home/dsomluxl/public_html/wp-includes/post.php(4726): do_action('wp_insert_post', 363, Object(WP_Post), true)
    #31 /home/dsomluxl/public_html/wp-includes/post.php(4817): wp_insert_post(Array, false, true)
    #32 /home/dsomluxl/public_html/wp-admin/includes/post.php(439): wp_update_post(Array)
    #33 /home/dsomluxl/public_html/wp-admin/post.php(227): edit_post()
    #34 {main}
      thrown in /home/dsomluxl/public_html/wp-includes/formatting.php alla riga 1596
    
    2023-06-12T14:51:10+00:00 CRITICAL Uncaught TypeError: preg_match(): Argument #2 ($subject) must be of type string, array given in /home/dsomluxl/public_html/wp-includes/formatting.php:1596
    Stack trace:
    #0 /home/dsomluxl/public_html/wp-includes/formatting.php(1596): preg_match('/[\\x80-\\xff]/', Array)
    #1 /home/dsomluxl/public_html/wp-includes/formatting.php(2208): remove_accents(Array)
    #2 /home/dsomluxl/public_html/wp-content/plugins/woocommerce/includes/wc-template-functions.php(3158): sanitize_title(Array)
    #3 /home/dsomluxl/public_html/wp-content/plugins/woocommerce/templates/single-product/add-to-cart/variable.php(45): wc_dropdown_variation_attribute_options(Array)
    #4 /home/dsomluxl/public_html/wp-content/plugins/woocommerce/includes/wc-core-functions.php(345): include('/home/dsomluxl/...')
    #5 /home/dsomluxl/public_html/wp-content/plugins/woocommerce/includes/wc-template-functions.php(1748): wc_get_template('single-product/...', Array)
    #6 /home/dsomluxl/public_html/wp-content/themes/psicologanicolettacarta/config-templatebuilder/avia-shortcodes/product_snippets/product_snippet_button.php(177): woocommerce_variable_add_to_cart()
    #7 /home/dsomluxl/public_html/wp-content/themes/psicologanicolettacarta/config-templatebuilder/avia-template-builder/php/class-shortcode-template.php(1181): avia_sc_produc_button->shortcode_handler(Array, '', 'av_product_butt...', Array)
    #8 /home/dsomluxl/public_html/wp-includes/shortcodes.php(355): aviaShortcodeTemplate->shortcode_handler_prepare(Array, '', 'av_product_butt...')
    #9 [internal function]: do_shortcode_tag(Array)
    #10 /home/dsomluxl/public_html/wp-includes/shortcodes.php(227): preg_replace_callback('/\\[(\\[?)(av_pro...', 'do_shortcode_ta...', '[av_textblock t...')
    #11 /home/dsomluxl/public_html/wp-content/themes/psicologanicolettacarta/config-templatebuilder/avia-template-builder/php/class-shortcode-helper.php(580): do_shortcode('[av_textblock t...')
    #12 /home/dsomluxl/public_html/wp-content/themes/psicologanicolettacarta/config-templatebuilder/avia-shortcodes/columns/columns.php(1937): ShortcodeHelper::avia_apply_autop('<p>[av_textbloc...')
    #13 /home/dsomluxl/public_html/wp-content/themes/psicologanicolettacarta/config-templatebuilder/avia-template-builder/php/class-shortcode-template.php(1181): avia_sc_columns->shortcode_handler(Array, '\n[av_textblock ...', 'av_one_half', Array)
    #14 /home/dsomluxl/public_html/wp-includes/shortcodes.php(355): aviaShortcodeTemplate->shortcode_handler_prepare(Array, '\n[av_textblock ...', 'av_one_half')
    #15 [internal function]: do_shortcode_tag(Array)
    #16 /home/dsomluxl/public_html/wp-includes/shortcodes.php(227): preg_replace_callback('/\\[(\\[?)(av_one...', 'do_shortcode_ta...', '\n[av_one_half f...')
    #17 /home/dsomluxl/public_html/wp-content/themes/psicologanicolettacarta/config-templatebuilder/avia-template-builder/php/class-shortcode-helper.php(559): do_shortcode('\n[av_one_half f...')
    #18 /home/dsomluxl/public_html/wp-content/themes/psicologanicolettacarta/config-templatebuilder/avia-shortcodes/section/section.php(1349): ShortcodeHelper::avia_remove_autop('\n[av_one_half f...', true)
    #19 /home/dsomluxl/public_html/wp-content/themes/psicologanicolettacarta/config-templatebuilder/avia-template-builder/php/class-shortcode-template.php(1181): avia_sc_section->shortcode_handler(Array, '\n[av_one_half f...', 'av_section', Array)
    #20 /home/dsomluxl/public_html/wp-includes/shortcodes.php(355): aviaShortcodeTemplate->shortcode_handler_prepare(Array, '\n[av_one_half f...', 'av_section')
    #21 [internal function]: do_shortcode_tag(Array)
    #22 /home/dsomluxl/public_html/wp-includes/shortcodes.php(227): preg_replace_callback('/\\[(\\[?)(av_but...', 'do_shortcode_ta...', '[av_section min...')
    #23 /home/dsomluxl/public_html/wp-includes/class-wp-hook.php(308): do_shortcode('[av_section min...')
    #24 /home/dsomluxl/public_html/wp-includes/plugin.php(205): WP_Hook->apply_filters('[av_section min...', Array)
    #25 /home/dsomluxl/public_html/wp-content/plugins/wordpress-seo/src/builders/indexable-link-builder.php(115): apply_filters('the_content', '[av_section min...')
    #26 /home/dsomluxl/public_html/wp-content/plugins/wordpress-seo/src/integrations/watchers/indexable-post-watcher.php(207): Yoast\WP\SEO\Builders\Indexable_Link_Builder->build(Object(Yoast\WP\SEO\Models\Indexable), '[av_section min...')
    #27 /home/dsomluxl/public_html/wp-includes/class-wp-hook.php(310): Yoast\WP\SEO\Integrations\Watchers\Indexable_Post_Watcher->build_indexable(363)
    #28 /home/dsomluxl/public_html/wp-includes/class-wp-hook.php(332): WP_Hook->apply_filters(NULL, Array)
    #29 /home/dsomluxl/public_html/wp-includes/plugin.php(517): WP_Hook->do_action(Array)
    #30 /home/dsomluxl/public_html/wp-includes/post.php(4726): do_action('wp_insert_post', 363, Object(WP_Post), true)
    #31 /home/dsomluxl/public_html/wp-includes/post.php(4817): wp_insert_post(Array, false, true)
    #32 /home/dsomluxl/public_html/wp-admin/includes/post.php(439): wp_update_post(Array)
    #33 /home/dsomluxl/public_html/wp-admin/post.php(227): edit_post()
    #34 {main}
      thrown in /home/dsomluxl/public_html/wp-includes/formatting.php alla riga 1596
    
    #1410479

    I created a staging area and activated another theme, the prices of the variations are showing correctly. So there is a conflict with enfold.

    #1410683

    HI! can you help me it’s urgent

    #1410791

    Hi,
    Thanks for your patience, please update the theme to v5.6.2 and try disabling your plugin except woocommerce core, if this doesn’t help then please include an admin login in the Private Content area so we can investigate.
    Also please include a link to the example product that the variations are not showing the prices.
    As I understand you have built the product with the ALB using the product elements, correct?

    Best regards,
    Mike

    #1410906
    This reply has been marked as private.
    #1410962

    Hi,
    Glad to hear that updating has solved the issue. The warnings in the backend console should be ignored as they are from the WordPress blocks.min.js Block Validation script tring to validate a page that is not using any “blocks” and is using the ALB elements which are not “blocks” and will not validate.
    Unless there is anything else we can assist with on this issue, shall we close this then?

    Best regards,
    Mike

    #1411051
    This reply has been marked as private.
    #1411060

    Hi,
    Yes, this is not a concern, unless there is anything else we can help with on this issue, shall we close this then?

    Best regards,
    Mike

    #1411072
    This reply has been marked as private.
    #1411089

    Hi,
    This seems to be an conflict with the Yoast plugin as it crashes when variations are saved and using the ALB purchase button, I disabled the plugin and updated your variation so it will show on the frontend and then enable the Yoast plugin again. So now it is working.
    If you make more products try to follow these steps, this issue has already been reported to the Dev Team and I added your thread the report, either I or the Dev Team will reply when a solution is found. Thank you for your patience.

    Best regards,
    Mike

    #1411181
    This reply has been marked as private.
    #1411191

    Hi,
    The link above is for other Mods and the Dev Team, it links to the reported issue on Github that the Dev Team is reviewing, that is why you can’t see it.
    Either I or the Dev Team will reply when a solution is found. Thank you for your patience.

    Best regards,
    Mike

    #1411475

    Hi,
    The Dev Team has added a fix for the variation product purchase button error with yoast when updating, I added a link to it below for you to test with, I’m not sure if it made the v5.6.3 update on Theme Forest. Thank you for your patience

    Best regards,
    Mike

Viewing 13 posts - 1 through 13 (of 13 total)
  • You must be logged in to reply to this topic.