• Resolved bof1946

    (@bof1946)


    After updating wp-mail-smtp to 2.0.0 I got the following critical error. I’ve had to downgrade to 1.9.0 to get the site back up.

    Error Details
    =============
    An error of type E_ERROR was caused in line 223 of the file /home/aylesbu1/public_html/developer/wp-content/plugins/wp-mail-smtp/src/Admin/Area.php. Error message: Uncaught Error: Call to undefined method WPMailSMTP\Core::is_white_labeled() in /home/aylesbu1/public_html/developer/wp-content/plugins/wp-mail-smtp/src/Admin/Area.php:223
    Stack trace:
    #0 /home/aylesbu1/public_html/developer/wp-includes/class-wp-hook.php(288): WPMailSMTP\Admin\Area->add_admin_options_page(”)
    #1 /home/aylesbu1/public_html/developer/wp-includes/class-wp-hook.php(312): WP_Hook->apply_filters(NULL, Array)
    #2 /home/aylesbu1/public_html/developer/wp-includes/plugin.php(478): WP_Hook->do_action(Array)
    #3 /home/aylesbu1/public_html/developer/wp-admin/includes/menu.php(155): do_action(‘admin_menu’, ”)
    #4 /home/aylesbu1/public_html/developer/wp-admin/menu.php(326): require_once(‘/home/aylesbu1/…’)
    #5 /home/aylesbu1/public_html/developer/wp-admin/admin.php(153): require(‘/home/aylesbu1/…’)
    #6 /home/aylesbu1/public_html/developer/wp-admin/update-core.php(10): require_once(‘/home/aylesbu1/…’)
    #7 {main}
    thrown

    The page I need help with: [log in to see the link]

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author Gregor Capuder

    (@capuderg)

    Hi @bof1946,

    Are you using any form of caching? Like opcache, maybe PHP 7.4 preloading?

    I’ve just validated our plugin code and the files and the function in question are there. I’ve also performed an update on my test site and there were no errors.

    After you update the plugin to 2.0.0, could you please try to clear your opcache or any other form of server cache that would serve old PHP code. Also, try deactivating and activating the plugin after the update.

    Have a nice day!

    Thread Starter bof1946

    (@bof1946)

    I’m baffled, because I’ve just upgraded the plugin again and this time it’s worked OK!

    For the record the site doesn’t use any sort of caching, unless there’s something set up by the web host that I don’t know about. It’s running PHP 7.3.17 and it’s upgraded to WordPress 5.4.1 overnight.

    I can only assume the upgrade didn’t complete properly the first time. Sorry for the false alarm.

    John

    Plugin Author Gregor Capuder

    (@capuderg)

    Hi John,

    Thanks for letting us know.

    I’m glad this issue is resolved for you.

    Have a nice day!

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Critical Error in version 2.0.0’ is closed to new replies.