• Resolved Branimir Grbesic

    (@bgwebnorth)


    Hi, we’ve noticed PHP Fatal error when system tries sending out email from WP 2FA using Post SMTP, specifically email template “Your user on {site} has been locked”. Any other email template by WP 2FA is sent out just fine. Here’s a stack trace:

    [21-Feb-2025 12:32:27 UTC] PHP Fatal error: Uncaught Error: Call to a member function getFromEmailAddress() on null in /var/www/vhosts/site.com/httpdocs/wp-content/plugins/post-smtp/Postman/PostmanWpMail.php:166
    Stack trace:
    #0 /var/www/vhosts/site.com/httpdocs/wp-content/plugins/post-smtp/Postman/PostmanWpMail.php(149): PostmanWpMail->createNewMessage()
    #1 /var/www/vhosts/site.com/httpdocs/wp-content/plugins/post-smtp/Postman/PostmanWpMail.php(50): PostmanWpMail->processWpMailCall()
    #2 /var/www/vhosts/site.com/httpdocs/wp-content/plugins/post-smtp/Postman/PostmanWpMailBinder.php(149): PostmanWpMail->send()
    #3 /var/www/vhosts/site.com/httpdocs/wp-content/plugins/wp-2fa/includes/classes/Admin/class-settings-page.php(418): wp_mail()
    #4 /var/www/vhosts/site.com/httpdocs/wp-content/plugins/wp-2fa/includes/classes/Admin/Helpers/class-user-helper.php(1304): WP2FA\Admin\Settings_Page::send_email()
    #5 /var/www/vhosts/site.com/httpdocs/wp-content/plugins/wp-2fa/includes/classes/Admin/Helpers/class-user-helper.php(1398): WP2FA\Admin\Helpers\User_Helper::send_expired_grace_email()
    #6 /var/www/vhosts/site.com/httpdocs/wp-content/plugins/wp-2fa/includes/classes/Admin/Helpers/class-user-helper.php(2060): WP2FA\Admin\Helpers\User_Helper::lock_user_account_if_needed()
    #7 /var/www/vhosts/site.com/httpdocs/wp-content/plugins/wp-2fa/includes/classes/Admin/Helpers/class-user-helper.php(2167): WP2FA\Admin\Helpers\User_Helper::update_meta_if_necessary()
    #8 /var/www/vhosts/site.com/httpdocs/wp-content/plugins/wp-2fa/includes/classes/Admin/Helpers/class-user-helper.php(878): WP2FA\Admin\Helpers\User_Helper::set_proper_user()
    #9 /var/www/vhosts/site.com/httpdocs/wp-content/plugins/wp-2fa/includes/classes/Admin/Controllers/class-settings.php(252): WP2FA\Admin\Helpers\User_Helper::get_user_role()
    #10 /var/www/vhosts/site.com/httpdocs/wp-content/plugins/wp-2fa/includes/classes/Admin/Methods/class-email.php(89): WP2FA\Admin\Controllers\Settings::get_role_or_default_setting()
    #11 /var/www/vhosts/site.com/httpdocs/wp-includes/class-wp-hook.php(324): WP2FA\Methods\Email::WP2FA\Methods\{closure}()
    #12 /var/www/vhosts/site.com/httpdocs/wp-includes/plugin.php(205): WP_Hook->apply_filters()
    #13 /var/www/vhosts/site.com/httpdocs/wp-content/plugins/wp-2fa/includes/classes/Admin/Controllers/class-methods.php(60): apply_filters()
    #14 /var/www/vhosts/site.com/httpdocs/wp-content/plugins/wp-2fa/includes/classes/Admin/class-user-notices.php(43): WP2FA\Admin\Controllers\Methods::get_available_2fa_methods()
    #15 /var/www/vhosts/site.com/httpdocs/wp-content/plugins/wp-2fa/includes/classes/class-wp2fa.php(232): WP2FA\Admin\User_Notices::init()
    #16 /var/www/vhosts/site.com/httpdocs/wp-includes/class-wp-hook.php(324): WP2FA\WP2FA::init()
    #17 /var/www/vhosts/site.com/httpdocs/wp-includes/class-wp-hook.php(348): WP_Hook->apply_filters()
    #18 /var/www/vhosts/site.com/httpdocs/wp-includes/plugin.php(517): WP_Hook->do_action()
    #19 /var/www/vhosts/site.com/httpdocs/wp-settings.php(559): do_action()
    #20 /var/www/vhosts/site.com/httpdocs/wp-config.php(143): require_once('/var/www/vhosts...')
    #21 /var/www/vhosts/site.com/httpdocs/wp-load.php(50): require_once('/var/www/vhosts...')
    #22 /var/www/vhosts/site.com/httpdocs/wp-admin/admin.php(34): require_once('/var/www/vhosts...')
    #23 /var/www/vhosts/site.com/httpdocs/wp-admin/index.php(10): require_once('/var/www/vhosts...')
    #24 {main}
    thrown in /var/www/vhosts/site.com/httpdocs/wp-content/plugins/post-smtp/Postman/PostmanWpMail.php on line 166

    Please let us know if we can help with any additional details.

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Support M Aqib Khan

    (@aqibkhan9)

    Hello

    We hope this message finds you well.

    Thank you for reaching out to our Support team. We are saddened and concerned that you have to face this issue. I tried to reproduce it on my end but failed with the mentioned template. To assist you more effectively, could you please share your diagnostic test report as this will help us to reproduce the same environment as yours.

    We appreciate your cooperation and look forward to resolving this matter promptly.

    Warm regards,
    Support Team – WP Experts

    Plugin Support M Aqib Khan

    (@aqibkhan9)

    Hello @bgwebnorth ,

    We hope this message finds you well.

    We are reaching out to follow up on our previous communication, as we haven’t received a response from you. We hope everything is going smoothly on your end.

    Please do not hesitate to contact us if you have any questions or concerns. We are here to assist you.

    Warm regards,
    Support Team – WP Experts

    Plugin Support M Aqib Khan

    (@aqibkhan9)

    Hello @bgwebnorth ,

    We hope you are doing well.

    We are marking this thread as resolved due to inactivity. If you encounter any further issues, please feel free to open a new thread.

    Have a great day!

    Thanks and regards,
    Support Team – WP Experts

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

The topic ‘Fatal error on specific email template’ is closed to new replies.