Title: WP-hook error
Last modified: May 7, 2020

---

# WP-hook error

 *  [googleman23](https://wordpress.org/support/users/googleman23/)
 * (@googleman23)
 * [6 years ago](https://wordpress.org/support/topic/wp-hook-error/)
 * This error only shows up when i install plugins or update them. The site works,
   but I want this to go away.
 * Warning: call_user_func_array() expects parameter 1 to be a valid callback, function‘
   wp_upe_upgrade_completed’ not found or invalid function name in /public_html/
   wp-includes/class-wp-hook.php on line 287

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

 *  [Joy](https://wordpress.org/support/users/joyously/)
 * (@joyously)
 * [6 years ago](https://wordpress.org/support/topic/wp-hook-error/#post-12799191)
 * First, it is not recommended to have WP_DEBUG on for production sites. If it 
   were off, you wouldn’t see this.
 * Second, it seems that there is code that added a hook for a non-existent function
   called `wp_upe_upgrade_completed`. When I search for that in wpdirectory.net,
   I find a few plugins that have a function called that (which they shouldn’t since
   it starts with wp). This doesn’t account for plugins that are not in the repository,
   though.
    So, if the plugin is not active, then the function doesn’t exist. But
   it also wouldn’t add itself to that hook, so there must be something that is 
   adding it even if not active. Since three of the ones I found were add-ons for
   Woocommerce, perhaps it is happening while one or the one is updated?
 *  Thread Starter [googleman23](https://wordpress.org/support/users/googleman23/)
 * (@googleman23)
 * [6 years ago](https://wordpress.org/support/topic/wp-hook-error/#post-12799213)
 * Could I just delete line 287 and it would go away? Or just turn debug off. Debug
   is in php.ini?
 *  [Joy](https://wordpress.org/support/users/joyously/)
 * (@joyously)
 * [6 years ago](https://wordpress.org/support/topic/wp-hook-error/#post-12799654)
 * > Could I just delete line 287 and it would go away?
 * No, that would cause a LOT of problems, not to mention it would be changing core
   WordPress which you shouldn’t do. Technically, the warning would go away, but
   WordPress wouldn’t work at all.
 * > Or just turn debug off
 * Yes, you should turn it off, but you should also fix it, because it will continue
   to happen, only it won’t tell you it’s happening.
 * The debug variable is not in php.ini. It’s in wp-config.php. Read about it : 
   [https://codex.wordpress.org/Editing_wp-config.php#Debug](https://codex.wordpress.org/Editing_wp-config.php#Debug)
 * You should install [Health Chec](https://wordpress.org/plugins/health-check/)
   k plugin and use the Troubleshoot mode to disable plugins **for your user only**,
   to isolate which one is causing the problem.

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

The topic ‘WP-hook error’ is closed to new replies.

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 3 replies
 * 2 participants
 * Last reply from: [Joy](https://wordpress.org/support/users/joyously/)
 * Last activity: [6 years ago](https://wordpress.org/support/topic/wp-hook-error/#post-12799654)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
