• Resolved Josh Kohlbach

    (@jkohlbach)


    Hi guys,

    Just wanted to let you know if a potential conflict with WooCommerce 2.2 I just narrowed down to your plugin.

    When using a WooCommerce shortcode on a page like the following:
    [product_categories columns=”3″]

    And even when just saving/building the index on the the Relevanssi settings page.

    We are seeing this error:
    Fatal error: Call to undefined function woocommerce_product_loop_start() in /wordpress/wp-content/plugins/woocommerce/includes/class-wc-shortcodes.php on line 271

    If I disable Relevanssi, problem goes away.

    Can you comment on this?

    Thanks,
    Josh

    https://www.ads-software.com/plugins/relevanssi/

Viewing 13 replies - 1 through 13 (of 13 total)
  • Plugin Author Mikko Saari

    (@msaari)

    If you disable shortcode extension in Relevanssi settings, does the problem go away?

    Thread Starter Josh Kohlbach

    (@jkohlbach)

    Hi thanks for the reply Mikko,

    Yes that appears to solve the issues. Might be something to follow up though, would be great to keep this content indexed.

    Cheers,
    Josh

    Plugin Author Mikko Saari

    (@msaari)

    Well, if the shortcode is not working with Relevanssi, there are two solutions: WooCommerce developers fix the shortcode so that it works with Relevanssi (unlikely) or the shortcode is disabled in Relevanssi.

    In lib/indexing.php, there’s a bunch of remove_shortcode() calls with different shortcodes mentioned. You can add

    remove_shortcode('product_categories');

    after the others. Then you should be able to enable other shortcodes.

    Thread Starter Josh Kohlbach

    (@jkohlbach)

    Thanks Mikko,

    Will you add this to the next version?

    Cheers for the workaround.

    Josh

    Plugin Author Mikko Saari

    (@msaari)

    Yes, this will be included in the next version.

    Hi Mikko Saari,

    I encountered similar problem. This happened after I upgraded to WooCommerce 2.2.6. When I tried to save post that have [recent_products], I got this error message:
    Fatal error: Call to undefined function woocommerce_product_loop_start() in ..\wp-content\plugins\woocommerce\includes\class-wc-shortcodes.php on line 327

    I tried your suggestion to add remove_shortcode() to lib/indexing.php. Adding this:
    remove_shortcode('recent_products');
    and the problem goes away.

    Please consider to include that to the next version as well.

    Cheers ??

    Plugin Author Mikko Saari

    (@msaari)

    Thanks, I’ll add this to the next version.

    +1

    Once save index option, erase index and rebuild the index:

    Fatal error: Call to a member function is_visible() on a non-object in /homex/xxxxx/public_html/xxx/themes/xxxx/woocommerce/content-product.php on line 34

    Similar issue:
    Fatal error: Call to undefined function woocommerce_product_loop_start() in /homex/xxxxxx/public_html/xxx/woocommerce/includes/class-wc-shortcodes.php on line 327

    Will try the above issue for temporary.

    Look forward next version release.

    Both above solution not for me.

    Disable Expand shortcodes in post content solved the issue.

    Any workaround?

    Thanks

    Plugin Author Mikko Saari

    (@msaari)

    The problem is some other shortcode, then. If you can figure out which shortcode it is, adding it with the remove_shortcode() like above will fix the problem.

    Noted & Thank.

    Tried to removed few but not success. Still checking which shortcode cause issues.

    Hi,

    I had an issue with building the index. Fatal Error in line 352 / Woocommerce. I switched off shortcode extension. With 11000 posts and some hundreds of topic Relevanssi was never able to find things I knew were in the forum for sure. Then I changed amount of documents to 5000, which overloaded my browser.

    Uninstalled…

Viewing 13 replies - 1 through 13 (of 13 total)
  • The topic ‘Conflict with WooCommerce’ is closed to new replies.