Title: Uncaught error
Last modified: February 3, 2020

---

# Uncaught error

 *  [waltervds](https://wordpress.org/support/users/waltervds/)
 * (@waltervds)
 * [6 years, 4 months ago](https://wordpress.org/support/topic/uncaught-error-13/)
 * Hi,
 * I get following error every time I have a blocked page alert:
 * Een fout van het type E_ERROR werd veroorzaakt op regelnummer 1084 van het bestand/
   public_html/wp-content/plugins/wp-crowdfunding/includes/woocommerce/Woocommerce.
   php. Foutmelding: Uncaught Error: Call to a member function empty_cart() on null
   in /public_html/wp-content/plugins/wp-crowdfunding/includes/woocommerce/Woocommerce.
   php:1084
    Stack trace: #0 /public_html/wp-includes/class-wp-hook.php(288): WPCF\
   woocommerce\Woocommerce->wc_empty_cart(”) #1 /public_html/wp-includes/class-wp-
   hook.php(312): WP_Hook->apply_filters(false, Array) #2 /public_html/wp-includes/
   plugin.php(478): WP_Hook->do_action(Array) #3 /public_html/wp-includes/pluggable.
   php(581): do_action(‘wp_logout’) #4 /public_html/wp-content/plugins/better-wp-
   security/core/lockout.php(801): wp_logout() #5 /public_html/wp-content/plugins/
   better-wp-security/core/lockout.php(150): ITSEC_Lockout->execute_lock(Object(
   iThemesSecurity\Lib\Lockout\Execute_Lock\Host_Context)) #6 /public_html/wp-includes/
   class-wp-hook.php(288): ITSEC_Lockout->check_for_host_lockouts(”) #7 /public_html/
   wp-includes/class-wp-
 * any idea or advise how to handle this?
    thanks!
 * PS I removed the adres for security reasons

Viewing 1 replies (of 1 total)

 *  [nlpro](https://wordpress.org/support/users/nlpro/)
 * (@nlpro)
 * [6 years, 4 months ago](https://wordpress.org/support/topic/uncaught-error-13/#post-12393652)
 * Waarschijnlijk een bug. Probeer de volgende regel (#800) in het better-wp-security/
   core/lockout.php bestand eens aan te passen:
 * `if ( is_object( $current_user ) && isset( $current_user->ID ) ) {`
 * naar:
 * `if ( is_object( $current_user ) && ! empty( $current_user->ID ) ) {`
 * To prevent any confusion, I’m not iThemes.
 * (This post set my post count to #500 on wordpress.org forums !)

Viewing 1 replies (of 1 total)

The topic ‘Uncaught error’ is closed to new replies.

 * ![](https://ps.w.org/better-wp-security/assets/icon.svg?rev=3529351)
 * [Kadence Security – Password, Two Factor Authentication, and Brute Force Protection](https://wordpress.org/plugins/better-wp-security/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/better-wp-security/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/better-wp-security/)
 * [Active Topics](https://wordpress.org/support/plugin/better-wp-security/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/better-wp-security/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/better-wp-security/reviews/)

 * 1 reply
 * 2 participants
 * Last reply from: [nlpro](https://wordpress.org/support/users/nlpro/)
 * Last activity: [6 years, 4 months ago](https://wordpress.org/support/topic/uncaught-error-13/#post-12393652)
 * Status: not resolved