Tagged: avia builder, error, woocommerce, Yoast
-
AuthorPosts
-
December 14, 2017 at 2:26 pm #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 71Please let me know how to handle this.
Kind regards,
ThomasDecember 14, 2017 at 5:38 pm #888992Hey 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,
VictoriaDecember 14, 2017 at 5:45 pm #888997Php 7.1.12
December 14, 2017 at 6:52 pm #889035Hi Thomas,
Can you try php 7.0, there happen to be some issues with php7.1.
Best regards,
VictoriaDecember 14, 2017 at 8:20 pm #889080Changed to 7.0 now
Dont see any differenceDecember 15, 2017 at 12:37 am #889150Hi,
Have you attempted to disable all other active plugins and seeing of the issue continues?
Best regards,
Jordan ShannonDecember 19, 2017 at 1:37 pm #890472Hi Jordan,
I currently setup a staging copy and will do some research there.
December 19, 2017 at 2:22 pm #890504After 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
December 19, 2017 at 2:49 pm #890511Removing 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
December 19, 2017 at 3:22 pm #890530This reply has been marked as private.December 19, 2017 at 3:31 pm #890534This reply has been marked as private.December 19, 2017 at 3:33 pm #890537reading 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 :)
December 20, 2017 at 12:14 am #890638Hi,
Just to confirm, you were able to track this issue to Yoast SEO?
Best regards,
Jordan ShannonDecember 20, 2017 at 12:16 am #890640Yes, 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.
December 20, 2017 at 12:19 am #890641Hi,
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 ShannonDecember 20, 2017 at 12:22 am #890642Sure, I understand. Just asking for help on the issue that I am experiencing. Feel free to not answer!
December 20, 2017 at 3:52 pm #890815 -
AuthorPosts
- You must be logged in to reply to this topic.