Viewing 10 posts - 1 through 10 (of 10 total)
  • Author
    Posts
  • #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
    olivier

    #193258

    Hey apparence!

    Can you please give us a link to the website? Do you have any other plugins installed?

    Cheers!
    Ismael

    #193363
    This reply has been marked as private.
    #193452

    Hey!

    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!
    Peter

    #193499
    This reply has been marked as private.
    #193500
    This reply has been marked as private.
    #193914

    Hey!

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

    #193947
    This reply has been marked as private.
    #194672

    Hey!

    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!
    Peter

    #194721
    This reply has been marked as private.
Viewing 10 posts - 1 through 10 (of 10 total)
  • The topic ‘Probleme with plugin Premium SEO Pack’ is closed to new replies.