If you have troubles since the update to WordPress 4.5 please read this post before opening a new thread.
November 25, 2013 at 4:55 pm #192979
i’ve got this error :
Call to a member function visibility_meta_query() on a non-object in /homepages/35/d245348307/htdocs/cartes-voeux-2014/wp-content/themes/enfold/config-templatebuilder/avia-shortcodes/productslider.php on line 369
what about this ??
Thanks for helping
olivierNovember 26, 2013 at 4:42 am #193258
Can you please give us a link to the website? Do you have any other plugins installed?
IsmaelNovember 26, 2013 at 11:57 am #193363November 26, 2013 at 3:32 pm #193452
It seems like the SEO plugin tries to execute the product slider shortcode before the WooCommerce class is available. The visibility_meta_query() function is a member of the WC_Query class (defined in /wp-content/plugins/woocommerce/classes/class-wc-query.php ) and without this class our product slider shortcode won’t work. You need to contact the plugin author and ask him how to make sure that the seo plugin loads after the woocommerce plugin is ready. Alternatively you can try: http://wordpress.org/plugins/wordpress-seo/ which works with Enfold out of the box.
PeterNovember 26, 2013 at 4:54 pm #193499November 26, 2013 at 4:56 pm #193500November 27, 2013 at 4:55 pm #193914
Just a quick note – the issue IS NOT directly related to the avia slider script or shortcode (“this look for me as a bug from slider.”) but the content of the slider causes the issue. Our slider can display every type of content (text, images, etc.) and in this case our slider uses the WooCommerce query class to fetch the product data. For me it’s more a plugin conflict issue between Woocommerce and the SEO plugin because our theme can’t create the product slider without the woocommerce code (I hope this make sense) and the SEO plugin can’t execute the product slider code because it tries to load the shortcodes before the woocommerce code is initialized. Too bad Yoast SEO doesn’t work for you – obviously it triggers the do_shortcode() function with another hook which loads after the woocommerce code is ready.
PeterNovember 27, 2013 at 6:04 pm #193947November 29, 2013 at 11:04 am #194672
I found a workaround on your server. We’ll include another workaround in the next theme update which checks if the WC_Query exists before the shortcode is executed. If not we’ll just return an empty string. This workaround should also make the product slider shortcode compatible with the premium seo pack.
PeterNovember 29, 2013 at 1:20 pm #194721
The topic ‘Probleme with plugin Premium SEO Pack’ is closed to new replies.