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

    Hi Support,

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

    Error:
    [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,
    Thomas

    #888992

    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,
    Victoria

    #888997

    Php 7.1.12

    #889035

    Hi Thomas,

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

    Best regards,
    Victoria

    #889080

    Changed to 7.0 now
    Dont see any difference

    #889150

    Hi,

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

    Best regards,
    Jordan Shannon

    #890472

    Hi Jordan,

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

    #890504

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

    Gonna try this fix:

    add_action('init','avia_remove_yoast_filter');
    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

    #890511

    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!

    Thomas

    #890530
    This reply has been marked as private.
    #890534
    This reply has been marked as private.
    #890537

    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:
    $product->product_type;

    to this:
    $product->get_type();

    I am pretty lost :)

    #890638

    Hi,

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

    Best regards,
    Jordan Shannon

    #890640

    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.

    #890641

    Hi,

    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

    #890642

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

    #890815

    Hi borkent,

    Can you try reinstalling WooCommerce?

    Best regards,
    Victoria

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