Support » Plugin: Limit Orders for WooCommerce » PHP Call to undefined function

  • Resolved dennisdbn


    This is a great plugin. Perfect for our client who has a limitation on what they can deliver per day.
    Unfortunately, I’ve found a PHP error. Call to undefined function Nexcess\LimitOrders\wc_has_notice()
    This seems to happen when the limit for orders has been reached and I go to the backend products page.
    I have updated everything to the latest versions. Using PHP 7.2.29.
    Here is the full traceback:

    [16-Apr-2020 09:51:37 UTC] PHP Fatal error:  Uncaught Error: Call to undefined function Nexcess\LimitOrders\wc_has_notice() in /var/www/vhosts/
    Stack trace:
    #0 /var/www/vhosts/ Nexcess\LimitOrders\OrderLimiter->customer_notice(Object(WP))
    #1 /var/www/vhosts/ WP_Hook->apply_filters(NULL, Array)
    #2 /var/www/vhosts/ WP_Hook->do_action(Array)
    #3 /var/www/vhosts/ do_action_ref_array('wp', Array)
    #4 /var/www/vhosts/ WP->main(Array)
    #5 /var/www/vhosts/ wp(Array)
    #6 /var/www/vhosts/ wp_edit_posts_query()
    # in /var/www/vhosts/ on line 295

    The page I need help with: [log in to see the link]

Viewing 6 replies - 1 through 6 (of 6 total)
  • Plugin Contributor Steve Grunwell


    Hey @dennisdbn, thanks for reaching out.

    I just tested it out locally and confirm what you’re seeing; I’ll work on getting a patch out ASAP. Thank you for bringing this to our attention!

    Plugin Contributor Steve Grunwell


    @dennisdbn We just tagged version 1.1.1 of the plugin, so that should be available momentarily via

    Thank you again for bringing this to our attention!

    Thread Starter dennisdbn


    Hi Steve,
    I just spotted there was a new version. Tried it and it is looking good.
    Thank you for your speedy response.

    is it possible to get a version for php 5.6 ? i just need the functionality to limit max number of orders per day.

    Plugin Author Brian Watson



    At the moment, we’ve written it with support for the latest version of WooCommerce (4.0). WooCommerce has not supported PHP 5.6 since version 3.9, so we likely won’t be going back to implement compatibility with that version.

    ok no problem, thnx, i made it by coding to functions.php

    • This reply was modified 2 years, 9 months ago by dunsterd.
Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘PHP Call to undefined function’ is closed to new replies.