Title: PHP error
Last modified: August 29, 2021

---

# PHP error

 *  Resolved [maximbelenkii](https://wordpress.org/support/users/maximbelenkii/)
 * (@maximbelenkii)
 * [4 years, 9 months ago](https://wordpress.org/support/topic/php-error-481/)
 * 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](https://wordpress.org/support/users/maximbelenkii/)
 * (@maximbelenkii)
 * [4 years, 9 months ago](https://wordpress.org/support/topic/php-error-481/#post-14815536)
 * 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](https://wordpress.org/support/users/mrebabi/)
 * (@mrebabi)
 * [4 years, 6 months ago](https://wordpress.org/support/topic/php-error-481/#post-15052767)
 * 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.

 * ![](https://ps.w.org/new-order-notification-for-woocommerce/assets/icon-128x128.
   png?rev=2106517)
 * [New Order Notification for WooCommerce](https://wordpress.org/plugins/new-order-notification-for-woocommerce/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/new-order-notification-for-woocommerce/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/new-order-notification-for-woocommerce/)
 * [Active Topics](https://wordpress.org/support/plugin/new-order-notification-for-woocommerce/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/new-order-notification-for-woocommerce/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/new-order-notification-for-woocommerce/reviews/)

 * 2 replies
 * 2 participants
 * Last reply from: [Eyup Gulsen](https://wordpress.org/support/users/mrebabi/)
 * Last activity: [4 years, 6 months ago](https://wordpress.org/support/topic/php-error-481/#post-15052767)
 * Status: resolved