Title: Errors during upgrade
Last modified: May 20, 2020

---

# Errors during upgrade

 *  Resolved [Eric Sprangers](https://wordpress.org/support/users/esprange/)
 * (@esprange)
 * [6 years ago](https://wordpress.org/support/topic/errors-during-upgrade/)
 * I did the upgrade today from version 1.9 to 2.0.1 and found the following errors
   in the log.
    Running on PHP 7.3. The dashboard was unavailable after the upgrade
   but accessible after starting a new session. I did send a test message (via Mailgun)
   and that worked ok. So would below errors only be an issue during the upgrade
   process or might it be that there is more to fix ?
 * [20-May-2020 10:22:33 UTC] PHP Warning: Use of undefined constant WPMS_PLUGIN_FILE–
   assumed ‘WPMS_PLUGIN_FILE’ (this will throw an Error in a future version of PHP)
   in xxx/plugins/wp-mail-smtp/src/Admin/Area.php on line 60
    [20-May-2020 10:22:
   33 UTC] PHP Fatal error: Uncaught Error: Call to undefined method WPMailSMTP\
   Core::is_white_labeled() in xxx/plugins/wp-mail-smtp/src/Admin/Area.php:223 Stack
   trace: #0 /xxx/wp-includes/class-wp-hook.php(287): WPMailSMTP\Admin\Area->add_admin_options_page(”)#
   1 /xxx/wp-includes/class-wp-hook.php(311): WP_Hook->apply_filters(NULL, Array)#
   2 /xxx/wp-includes/plugin.php(478): WP_Hook->do_action(Array) #3 /xxx/includes/
   menu.php(155): do_action(‘admin_menu’, ”) #4 /xxx/wp-admin/menu.php(326): require_once(‘/
   home/kleistad/…’) #5 /xxx/wp-admin/admin.php(153): require(‘/home/kleistad/…’)#
   6 /xxx/wp-admin/post.php(12): require_once(‘/home/kleistad/…’) #7 {main} in /
   xxx/wp-content/plugins/wp-mail-smtp/src/Admin/Area.php on line 223
 * [20-May-2020 10:22:42 UTC] PHP Fatal error: Uncaught Error: Call to undefined
   method WPMailSMTP\Core::is_white_labeled() in /xxx/wp/wp-content/plugins/wp-mail-
   smtp/src/Admin/Area.php:223
    Stack trace: #0 /xxx/wp-includes/class-wp-hook.php(
   287): WPMailSMTP\Admin\Area->add_admin_options_page(”) #1 /xxx/wp-includes/class-
   wp-hook.php(311): WP_Hook->apply_filters(NULL, Array) #2 /xxx/wp/wp-includes/
   plugin.php(478): WP_Hook->do_action(Array) #3 /xxx/wp-admin/includes/menu.php(
   155): do_action(‘admin_menu’, ”) #4 /xxx/wp-admin/menu.php(326): require_once(‘/
   home/kleistad/…’) #5 /xxx/wp-admin/admin.php(153): require(‘/home/kleistad/…’)#
   6 {main} thrown in /xxx/wp/wp-content/plugins/wp-mail-smtp/src/Admin/Area.php
   on line 223

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

 *  Plugin Author [Gregor Capuder](https://wordpress.org/support/users/capuderg/)
 * (@capuderg)
 * [6 years ago](https://wordpress.org/support/topic/errors-during-upgrade/#post-12863784)
 * Hi,
 * it looks like some of the PHP files didn’t refresh right after the update was
   performed. Do you maybe use OPcache with some WP plugin or maybe the OPcache 
   is enabled on your server?
 * This might be causing the issue. Clearing the cache should resolve all those 
   issues since the files, classes and methods mentioned in your error logs are 
   present in the plugin.
 * Anyway, this should be a one-time thing after the plugin update and should not
   repeat after the cache is cleared and the updated PHP files are loaded properly.
 * Take care!
 *  Thread Starter [Eric Sprangers](https://wordpress.org/support/users/esprange/)
 * (@esprange)
 * [6 years ago](https://wordpress.org/support/topic/errors-during-upgrade/#post-12864694)
 * Gregor,
 * No, we don’t use OPcache or any other caching plugin. I will monitor the next
   days if I see any additional errors. If not, it’s history.
 * KR,
    Eric
    -  This reply was modified 6 years ago by [Eric Sprangers](https://wordpress.org/support/users/esprange/).

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

The topic ‘Errors during upgrade’ is closed to new replies.

 * ![](https://ps.w.org/wp-mail-smtp/assets/icon-256x256.png?rev=1755440)
 * [WP Mail SMTP by WPForms - The Most Popular SMTP and Email Log Plugin](https://wordpress.org/plugins/wp-mail-smtp/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/wp-mail-smtp/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/wp-mail-smtp/)
 * [Active Topics](https://wordpress.org/support/plugin/wp-mail-smtp/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wp-mail-smtp/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wp-mail-smtp/reviews/)

 * 2 replies
 * 2 participants
 * Last reply from: [Eric Sprangers](https://wordpress.org/support/users/esprange/)
 * Last activity: [6 years ago](https://wordpress.org/support/topic/errors-during-upgrade/#post-12864694)
 * Status: resolved