Viewing 17 posts - 1 through 17 (of 17 total)
  • Author
  • #888888

    Hi Support,

    I am experiencing a fatal error on saving a product when using the avia layout builder.

    [14-Dec-2017 12:23:32 UTC] PHP Fatal error: Uncaught Error: Call to undefined function wc_clear_notices() in /home/squalan0/public_html/wp-content/themes/enfold/config-templatebuilder/avia-shortcodes/product_snippet_button.php:71
    Stack trace:
    #0 /home/squalan0/public_html/wp-content/themes/enfold/config-templatebuilder/avia-template-builder/php/shortcode-template.class.php(313): avia_sc_produc_button->shortcode_handler(”, ”, ‘av_product_butt…’, Array)
    #1 /home/squalan0/public_html/wp-includes/shortcodes.php(345): aviaShortcodeTemplate->shortcode_handler_prepare(”, ”, ‘av_product_butt…’)
    #2 [internal function]: do_shortcode_tag(Array)
    #3 /home/squalan0/public_html/wp-includes/shortcodes.php(223): preg_replace_callback(‘/\\[(\\[?)(av_ima…’, ‘do_shortcode_ta…’, ‘<p>[av_image sr…’)
    #4 /home/squalan0/public_html/wp-content/themes/enfold/config-templatebuilder/avia-template-builder/php/shortcode-helper.class.php(343): do_shortcode(‘<p>[av_image sr…’)
    #5 /home/squalan0/public_html/wp-content/themes/enfold/config-templatebuilder/avia-shortcodes in /home/squalan0/public_html/wp-content/themes/enfold/config-templatebuilder/avia-shortcodes/product_snippet_button.php on line 71

    Please let me know how to handle this.

    Kind regards,


    Hey Thomas,

    Which version of php are you running? Can you give us temporary admin access to your website in the private content box below, so that we can have a closer look?

    Best regards,


    Php 7.1.12


    Hi Thomas,

    Can you try php 7.0, there happen to be some issues with php7.1.

    Best regards,


    Changed to 7.0 now
    Dont see any difference



    Have you attempted to disable all other active plugins and seeing of the issue continues?

    Best regards,
    Jordan Shannon


    Hi Jordan,

    I currently setup a staging copy and will do some research there.


    After allot of disabling and enabling I pinnend the problem down to YOAST SEO.

    Gonna try this fix:

    function avia_remove_yoast_filter()
        remove_filter('wpseo_pre_analysis_post_content','avia_wpseo_pre_analysis_post_content_fix', 10, 1);
        remove_filter('wpseo_video_index_content','avia_wpseo_video_content_fix', 10, 2);

    Will report back


    Removing Yoast SEO REMOVES the error.
    However we need Yoast.

    I have tried latest version of yoast with latest wordpress and latest woocommerce. with and without the fix above.
    Still I get 500 error when saving a product.

    I have setup a staging site and will provide credentials in private.
    Any help appreciated!


    This reply has been marked as private.
    This reply has been marked as private.

    reading on the internet it has something to do with:

    The product_type property is deprecated. Use get_type() to get internal type.

    So you need to change this:

    to this:

    I am pretty lost :)



    Just to confirm, you were able to track this issue to Yoast SEO?

    Best regards,
    Jordan Shannon


    Yes, basically when I remove YOAST from my plugins the error doesnt occur.
    Secondly, if I remove Relevanssi from my plugins it doesnt occur either.

    go ahead and disable them on the staging site, you will see.



    The issue with that is, is Enfold does not guarantee compatibility with every combination of every single plugin. As such, this may not be something that can be address here in the forums, but may require input from the devs to fix in a later update.

    Best regards,
    Jordan Shannon


    Sure, I understand. Just asking for help on the issue that I am experiencing. Feel free to not answer!


    Hi borkent,

    Can you try reinstalling WooCommerce?

    Best regards,

Viewing 17 posts - 1 through 17 (of 17 total)

You must be logged in to reply to this topic.