-
AuthorPosts
-
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 369what about this ??
Thanks for helping
olivierNovember 26, 2013 at 4:42 am #193258Hey apparence!
Can you please give us a link to the website? Do you have any other plugins installed?
Cheers!
IsmaelNovember 26, 2013 at 11:57 am #193363This reply has been marked as private.November 26, 2013 at 3:32 pm #193452Hey!
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.
Cheers!
PeterNovember 26, 2013 at 4:54 pm #193499This reply has been marked as private.November 26, 2013 at 4:56 pm #193500This reply has been marked as private.November 27, 2013 at 4:55 pm #193914Hey!
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.
Regards,
PeterNovember 27, 2013 at 6:04 pm #193947This reply has been marked as private.November 29, 2013 at 11:04 am #194672Hey!
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.
Cheers!
PeterNovember 29, 2013 at 1:20 pm #194721This reply has been marked as private. -
AuthorPosts
- The topic ‘Probleme with plugin Premium SEO Pack’ is closed to new replies.