Title: PHP Call to undefined function
Last modified: April 16, 2020

---

# PHP Call to undefined function

 *  Resolved [dennisdbn](https://wordpress.org/support/users/dennisdbn/)
 * (@dennisdbn)
 * [6 years, 1 month ago](https://wordpress.org/support/topic/php-call-to-undefined-function/)
 * 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/draycottnurseries.co.uk/httpdocs/wp-content/plugins/limit-orders/src/OrderLimiter.php:295
       Stack trace:
       #0 /var/www/vhosts/draycottnurseries.co.uk/httpdocs/wp-includes/class-wp-hook.php(287): Nexcess\LimitOrders\OrderLimiter->customer_notice(Object(WP))
       #1 /var/www/vhosts/draycottnurseries.co.uk/httpdocs/wp-includes/class-wp-hook.php(311): WP_Hook->apply_filters(NULL, Array)
       #2 /var/www/vhosts/draycottnurseries.co.uk/httpdocs/wp-includes/plugin.php(544): WP_Hook->do_action(Array)
       #3 /var/www/vhosts/draycottnurseries.co.uk/httpdocs/wp-includes/class-wp.php(748): do_action_ref_array('wp', Array)
       #4 /var/www/vhosts/draycottnurseries.co.uk/httpdocs/wp-includes/functions.php(1274): WP->main(Array)
       #5 /var/www/vhosts/draycottnurseries.co.uk/httpdocs/wp-admin/includes/post.php(1190): wp(Array)
       #6 /var/www/vhosts/draycottnurseries.co.uk/httpdocs/wp-admin/includes/class-wp-posts-list-table.php(147): wp_edit_posts_query()
       # in /var/www/vhosts/draycottnurseries.co.uk/httpdocs/wp-content/plugins/limit-orders/src/OrderLimiter.php on line 295
       ```
   
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fphp-call-to-undefined-function%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

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

 *  Plugin Contributor [Steve Grunwell](https://wordpress.org/support/users/stevegrunwell/)
 * (@stevegrunwell)
 * [6 years, 1 month ago](https://wordpress.org/support/topic/php-call-to-undefined-function/#post-12684269)
 * Hey [@dennisdbn](https://wordpress.org/support/users/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](https://wordpress.org/support/users/stevegrunwell/)
 * (@stevegrunwell)
 * [6 years, 1 month ago](https://wordpress.org/support/topic/php-call-to-undefined-function/#post-12684678)
 * [@dennisdbn](https://wordpress.org/support/users/dennisdbn/) We just tagged version
   1.1.1 of the plugin, so that should be available momentarily via WordPress.org.
 * Thank you again for bringing this to our attention!
 *  Thread Starter [dennisdbn](https://wordpress.org/support/users/dennisdbn/)
 * (@dennisdbn)
 * [6 years, 1 month ago](https://wordpress.org/support/topic/php-call-to-undefined-function/#post-12685110)
 * Hi Steve,
    I just spotted there was a new version. Tried it and it is looking
   good. Thank you for your speedy response.
 *  [dunsterd](https://wordpress.org/support/users/dunsterd/)
 * (@dunsterd)
 * [6 years, 1 month ago](https://wordpress.org/support/topic/php-call-to-undefined-function/#post-12721686)
 * hello,
    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 Contributor [Brian Watson](https://wordpress.org/support/users/bswatson/)
 * (@bswatson)
 * [6 years, 1 month ago](https://wordpress.org/support/topic/php-call-to-undefined-function/#post-12721913)
 * [@dunsterd](https://wordpress.org/support/users/dunsterd/) –
 * 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.
 *  [dunsterd](https://wordpress.org/support/users/dunsterd/)
 * (@dunsterd)
 * [6 years, 1 month ago](https://wordpress.org/support/topic/php-call-to-undefined-function/#post-12721918)
 * ok no problem, thnx, i made it by coding to functions.php
    -  This reply was modified 6 years, 1 month ago by [dunsterd](https://wordpress.org/support/users/dunsterd/).

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

The topic ‘PHP Call to undefined function’ is closed to new replies.

 * ![](https://ps.w.org/limit-orders/assets/icon.svg?rev=2817939)
 * [Limit Orders for WooCommerce](https://wordpress.org/plugins/limit-orders/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/limit-orders/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/limit-orders/)
 * [Active Topics](https://wordpress.org/support/plugin/limit-orders/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/limit-orders/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/limit-orders/reviews/)

 * 6 replies
 * 4 participants
 * Last reply from: [dunsterd](https://wordpress.org/support/users/dunsterd/)
 * Last activity: [6 years, 1 month ago](https://wordpress.org/support/topic/php-call-to-undefined-function/#post-12721918)
 * Status: resolved