Title: Fatal PHP error when changing admin email
Last modified: August 5, 2022

---

# Fatal PHP error when changing admin email

 *  [Rob Migchels](https://wordpress.org/support/users/dhrrob/)
 * (@dhrrob)
 * [3 years, 9 months ago](https://wordpress.org/support/topic/fatal-php-error-when-changing-admin-email/)
 * Heya,
 * When changing the admin email address in wp-admin/options-general.php, the plugin
   creates a fatal error in PHP 7.4. I’ve solved my issue by disabling the plugin
   temporarily, but figured I should probably report it :).
 *     ```
       [05-Aug-2022 07:28:59 UTC] PHP Fatal error:  Uncaught Error: Call to a member function getEmail() on null in /home/example/webapps/site-example/wp-content/plugins/post-smtp/Postman/Postman-Mail/PostmanMessage.php:168
       Stack trace:
       #0 /home/example/webapps/site-example/wp-content/plugins/post-smtp/Postman/PostmanWpMail.php(203): PostmanMessage->applyFilters()
       #1 /home/example/webapps/site-example/wp-content/plugins/post-smtp/Postman/PostmanWpMail.php(60): PostmanWpMail->sendMessage()
       #2 /home/example/webapps/site-example/wp-content/plugins/post-smtp/Postman/PostmanWpMailBinder.php(121): PostmanWpMail->send()
       #3 /home/example/webapps/site-example/wp-includes/class-wp-recovery-mode-email-service.php(234): wp_mail()
       #4 /home/example/webapps/site-example/wp-includes/class-wp-recovery-mode-email-service.php(61): WP_Recovery_Mode_Email_Service->send_recovery_mode_email()
       #5 /home/example/webapps/site-example/wp-includes/class-wp-recovery-mode.php(184): WP_Recovery_Mode_Email_Service->maybe_se in /home/example/webapps/site-example/wp-content/plugins/post-smtp/Postman/Postman-Mail/PostmanMessage.php on line 168
       ```
   

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

 *  Plugin Support [M Haseeb](https://wordpress.org/support/users/haseeb0001/)
 * (@haseeb0001)
 * [3 years, 9 months ago](https://wordpress.org/support/topic/fatal-php-error-when-changing-admin-email/#post-15891222)
 * [@dhrrob](https://wordpress.org/support/users/dhrrob/) Hi,
 * Hope you are doing good.
 * Can you provide me a POST SMTP Diagnostic test report so then I can test this
   issue on my staging website? (You can find the report in POST SMTP Dashboard)
 * Thanks
 *  Thread Starter [Rob Migchels](https://wordpress.org/support/users/dhrrob/)
 * (@dhrrob)
 * [3 years, 9 months ago](https://wordpress.org/support/topic/fatal-php-error-when-changing-admin-email/#post-15919339)
 * [@haseeb0001](https://wordpress.org/support/users/haseeb0001/) Hey!
 * I’m afraid the Post SMTP dashboard itself is causing a fatal error. Because of
   this I am unable to see the diagnostic test report.
 *     ```
       Fatal error: Uncaught ValueError: Unknown format specifier "w" in /home/example/webapps/site-example/wp-content/plugins/post-smtp/freemius/templates/connect.php:221 
       Stack trace: 
       #0 /home/example/webapps/site-example/wp-content/plugins/post-smtp/freemius/templates/connect.php(221): sprintf() 
       #1 /home/example/webapps/site-example/wp-content/plugins/post-smtp/freemius/includes/fs-core-functions.php(57): require('...') 
       #2 /home/example/webapps/site-example/wp-content/plugins/post-smtp/freemius/includes/class-freemius.php(22509): fs_get_template() 
       #3 /home/example/webapps/site-example/wp-includes/class-wp-hook.php(307): Freemius->_connect_page_render() 
       #4 /home/example/webapps/site-example/wp-includes/class-wp-hook.php(331): WP_Hook->apply_filters() 
       #5 /home/example/webapps/site-example/wp-includes/plugin.php(476): WP_Hook->do_action() 
       #6 /home/example/webapps/site-example/wp-admin/admin.php(259): do_action() 
       #7 {main} thrown in /home/example/webapps/site-example/wp-content/plugins/post-smtp/freemius/templates/connect.php on line 221
       ```
   
    -  This reply was modified 3 years, 9 months ago by [Rob Migchels](https://wordpress.org/support/users/dhrrob/).
 *  Plugin Support [M Haseeb](https://wordpress.org/support/users/haseeb0001/)
 * (@haseeb0001)
 * [3 years, 9 months ago](https://wordpress.org/support/topic/fatal-php-error-when-changing-admin-email/#post-15920487)
 * [@dhrrob](https://wordpress.org/support/users/dhrrob/) Hi,
 * We have fixed freemius issues in our beta version.
 * Download this [Version 2.1.4 RC 2](https://downloads.wordpress.org/plugin/post-smtp.2.1.4-rc.2.zip)
   and then test and let me know.
 * Thanks

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

The topic ‘Fatal PHP error when changing admin email’ is closed to new replies.

 * ![](https://ps.w.org/post-smtp/assets/icon-128x128.gif?rev=3209655)
 * [Post SMTP – Complete Email Deliverability and SMTP Solution with Email Logs, Alerts, Backup SMTP & Mobile App](https://wordpress.org/plugins/post-smtp/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/post-smtp/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/post-smtp/)
 * [Active Topics](https://wordpress.org/support/plugin/post-smtp/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/post-smtp/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/post-smtp/reviews/)

 * 3 replies
 * 2 participants
 * Last reply from: [M Haseeb](https://wordpress.org/support/users/haseeb0001/)
 * Last activity: [3 years, 9 months ago](https://wordpress.org/support/topic/fatal-php-error-when-changing-admin-email/#post-15920487)
 * Status: not resolved