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

  • Resolved dennisdbn

    (@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/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 to see the link]

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

    (@stevegrunwell)

    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 Author Steve Grunwell

    (@stevegrunwell)

    @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

    (@dennisdbn)

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

    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 Author Brian Watson

    (@bswatson)

    @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.

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

    • This reply was modified 1 year, 4 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.