• Resolved Nayeem-Ul-Islam Nipun

    (@nayeem-ul-islam-nipun)


    Hello there,
    I am working on a woocommerce site. I installed Video Thumbnail plugin for generate the featured image from youtube video link. This is such a good plugin. But the problem is when i use Woocommerce product category shortcode ([product_category category="category-slug"]) in a post and click Publish or Update the following error shows up –

    Fatal error: Call to undefined function woocommerce_product_loop_start() in ../plugins/woocommerce/includes/class-wc-shortcodes.php on line 175

    But if i deactivate the Video Thumbnail plugin no error occurs.

    Is there any solution to fix this error? I don’t want to deactivate or delete the Video Thumbnail plugin.

    Thanks in advance.

    https://wordpress.org/plugins/video-thumbnails/

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Author Sutherland Boswell

    (@sutherlandboswell)

    I consider this to be a bug in WooCommerce, so I’ve reported the issue to them and hope to work it out.

    If you’re interested in a semi-technical explanation: Video Thumbnails has to make sure shortcodes get converted before it searches a post for videos. When it does this while you’re saving a post, WooCommerce doesn’t think it needs to include all of its functions because it isn’t being displayed in your site’s theme.

    Thread Starter Nayeem-Ul-Islam Nipun

    (@nayeem-ul-islam-nipun)

    Hello Sutherland Boswell,
    Many many thanks for your reply. This issue makes me crazy. I am waiting for the fixing. How long should it take to fix?

    Plugin Author Sutherland Boswell

    (@sutherlandboswell)

    I believe they have a fix ready for their next update.

    Thread Starter Nayeem-Ul-Islam Nipun

    (@nayeem-ul-islam-nipun)

    Yeah….
    But i am going down here. My client is very disappointed about this.
    I don’t know what should i do???

    Plugin Author Sutherland Boswell

    (@sutherlandboswell)

    I can’t release an update for them, but I can tell you the change that will be included. In the woocommerce.php file, change this:

    public function include_template_functions() {
    		if ( $this->is_request( 'frontend' ) ) {
    			include_once( 'includes/wc-template-functions.php' );
    		}
    	}

    to this:

    public function include_template_functions() {
    		include_once( 'includes/wc-template-functions.php' );
    	}
Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Conflict with Woocommerce product category shortcode’ is closed to new replies.