Title: Minor error when updating plugin
Last modified: December 8, 2020

---

# Minor error when updating plugin

 *  [Simon Kane](https://wordpress.org/support/users/simonkane/)
 * (@simonkane)
 * [5 years, 8 months ago](https://wordpress.org/support/topic/minor-error-when-updating-plugin/)
 * When updating to Woocommerce 4.8.0, the following error was thrown (and trapped
   by the update dashboard).
 * However, the error is persistent, and required an external deactivation of the
   Sucuri Scanner (Version 1.8.24) plugin. Woo remained down until manually reactivated
   after deactivating Sucuri. Sucuri appears to have reactivated OK after that, 
   tho.
 * Fatal error: Uncaught Error: Call to undefined function wp_get_current_user()
   in /home/wmt72b3qleip/public_html/rwmcnair/wp-content/plugins/sucuri-scanner/
   src/mail.lib.php:172 Stack trace: #0 /home/wmt72b3qleip/public_html/rwmcnair/
   wp-content/plugins/sucuri-scanner/src/mail.lib.php(85): SucuriScanMail::prettifyMail(‘
   Plugin Deactiva…’, ‘Plugin deactiva…’, Array) #1 /home/wmt72b3qleip/public_html/
   rwmcnair/wp-content/plugins/sucuri-scanner/src/event.lib.php(639): SucuriScanMail::
   sendMail(‘rwmcnair@simonk…’, ‘Plugin Deactiva…’, ‘Plugin deactiva…’, Array) #
   2 /home/wmt72b3qleip/public_html/rwmcnair/wp-content/plugins/sucuri-scanner/src/
   hook.lib.php(428): SucuriScanEvent::notifyEvent(‘plugin_deactiva…’, ‘Plugin deactiva…’)#
   3 /home/wmt72b3qleip/public_html/rwmcnair/wp-content/plugins/sucuri-scanner/src/
   hook.lib.php(440): SucuriScanHook::hookPluginChanges(‘deactivated’, ‘woo-address-
   boo…’, false) #4 /home/wmt72b3qleip/public_html/rwmcnair/wp-includes/class-wp-
   hook.php(287): SucuriScanHook::hookPluginDeactivate(‘wo in /home/wmt72b3qleip/
   public_html/rwmcnair/wp-content/plugins/sucuri-scanner/src/mail.lib.php on line
   172
 * There has been a critical error on your website. Please check your site admin
   email inbox for instructions.
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fminor-error-when-updating-plugin%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

The topic ‘Minor error when updating plugin’ is closed to new replies.

 * ![](https://ps.w.org/sucuri-scanner/assets/icon-256x256.png?rev=2875755)
 * [Sucuri Security - Auditing, Malware Scanner and Security Hardening](https://wordpress.org/plugins/sucuri-scanner/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/sucuri-scanner/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/sucuri-scanner/)
 * [Active Topics](https://wordpress.org/support/plugin/sucuri-scanner/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/sucuri-scanner/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/sucuri-scanner/reviews/)

 * 0 replies
 * 1 participant
 * Last reply from: [Simon Kane](https://wordpress.org/support/users/simonkane/)
 * Last activity: [5 years, 8 months ago](https://wordpress.org/support/topic/minor-error-when-updating-plugin/)
 * Status: not resolved