• Resolved maximbelenkii

    (@maximbelenkii)


    Hi!
    An error occurred in the admin panel

    Fatal error: Uncaught Error: Call to a member function get_items() on bool in /var/www/u1196275/data/www/gold-hs.ru/wp-content/plugins/new-order-notification-for-woocommerce/new-order-notification-admin.php:170 Stack trace: #0 /var/www/u1196275/data/www/gold-hs.ru/wp-includes/class-wp-hook.php(303): new_order_notification_menu('') #1 /var/www/u1196275/data/www/gold-hs.ru/wp-includes/class-wp-hook.php(327): WP_Hook->apply_filters('', Array) #2 /var/www/u1196275/data/www/gold-hs.ru/wp-includes/plugin.php(470): WP_Hook->do_action(Array) #3 /var/www/u1196275/data/www/gold-hs.ru/wp-admin/admin.php(259): do_action('toplevel_page_n...') #4 {main} thrown in /var/www/u1196275/data/www/gold-hs.ru/wp-content/plugins/new-order-notification-for-woocommerce/new-order-notification-admin.php on line 170

    I reset the settings, reinstalled the plugin – the error remains. Thank you for your help.

    PHP version 7.4.0
    Plugin 1.4.0.
    The error occurred suddenly

Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter maximbelenkii

    (@maximbelenkii)

    After the new order arrived, the problem disappeared. However, it is unclear why it suddenly appeared, without any special changes on the site hosting

    Plugin Author Eyup Gulsen

    (@mrebabi)

    Hello,

    I am sorry for replying so late. It is not related with your hosting, but about with orders you have. The reasons could be,

    1 – You do not have any orders, but plugin tries to get items from your last order so the error occurs
    2 – You have an order without any items, so plugin stucks and shows this error

    I will check this line and fix the problem by eliminating side effects.

    Thanks for informing about this. Best regards.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘PHP error’ is closed to new replies.