• Resolved magicoders

    (@patopaiar)


    As title states. When a URl contains wp-json, eg domain.com/page-slug/wp-json there is a fatal error on /includes/class-wc-order-limit-rule.php on line 1690 because the URL WooCommerce thinks it’s a REST request but WordPress doesn’t.

    If you can simple add a check to

    if ( function_exists( 'WC' ) ) {

    to

    if ( function_exists( 'WC' ) && WC()->cart ) {

    that would solve the fatal error, and we can continue updating your plugin normally.

    It would be great if you could update your core plugin with this small change.

    Thank you!

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Support brucewayne25

    (@brucewayne25)

    The issue seems to be related to the WooCommerce Order Limit plugin. Please double check that with the plugin’s author.

    Thread Starter magicoders

    (@patopaiar)

    Arghh, my apologies. We also have Limit Login Attempts in the site, and I clicked on the wrong link when searching for “Limit”.

Viewing 2 replies - 1 through 2 (of 2 total)

You must be logged in to reply to this topic.