Title: PHP Warning and PHP Fatal error
Last modified: August 22, 2024

---

# PHP Warning and PHP Fatal error

 *  Resolved [fujitsuka2024](https://wordpress.org/support/users/fujitsuka2024/)
 * (@fujitsuka2024)
 * [1 year, 9 months ago](https://wordpress.org/support/topic/php-warning-and-php-fatal-error/)
 * This topic is similar to the issue([https://wordpress.org/support/topic/warning-trying-to-access-array-offset-on-value-of-type-null-2/](https://wordpress.org/support/topic/warning-trying-to-access-array-offset-on-value-of-type-null-2/)),
   the wp-cerber plugin has a function that detects suspicious access and sends 
   a lockout notification email. However, when this function is triggered, the following
   errors occur:
   `PHP Warning: Trying to access array offset on value of type null
   in /wp-content/plugins/post-smtp/Postman/Postman-Mail/PostmanTransportRegistry.
   php on line 107PHP Fatal error: Uncaught Error: Call to a member function getFromEmailAddress()
   on null in /wp-content/plugins/post-smtp/Postman/PostmanWpMail.php:166The version
   of the post-smtp plugin is 2.9.8.Sending emails via the post-smtp plugin works
   without any issues. Additionally, when using a different SMTP plugin, there are
   no errors in the wp-cerber lockout notification emails. This suggests that the
   error occurs due to the combination of wp-cerber and post-smtp plugins.Is there
   any solution to the above issue?

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

 *  Plugin Support [M Aqib Khan](https://wordpress.org/support/users/aqibkhan9/)
 * (@aqibkhan9)
 * [1 year, 9 months ago](https://wordpress.org/support/topic/php-warning-and-php-fatal-error/#post-17968645)
 * Hello [@fujitsuka2024](https://wordpress.org/support/users/fujitsuka2024/)
 * Hope you are doing fine.
 * Thank you so much for reaching out. Could you please share if you have entered
   email address in the “From Address” field?
 * You can access “From Address” by going to Settings> Message tab or refer [screenshot ](https://drive.google.com/file/d/1BI9GnBydHeBPoPCgghWUg8NT32zy1xDH/view?usp=sharing).
 * Looking forward to assist you.
 * Thanks and regards,
   Support Team – WP Experts
 *  Thread Starter [fujitsuka2024](https://wordpress.org/support/users/fujitsuka2024/)
 * (@fujitsuka2024)
 * [1 year, 9 months ago](https://wordpress.org/support/topic/php-warning-and-php-fatal-error/#post-17968823)
 * Thank you for reply.
 * The specified field already has an email address entered. In that state, the 
   above error occurs.
   Looking at the code where the error occurs,$transports = 
   $this->getTransports();seems to become null.When sending emails other than the
   wp-cerber lockout email, the above does not become null. Could you think of any
   reasons why it sometimes becomes null and sometimes does not?
 *  Plugin Support [M Aqib Khan](https://wordpress.org/support/users/aqibkhan9/)
 * (@aqibkhan9)
 * [1 year, 9 months ago](https://wordpress.org/support/topic/php-warning-and-php-fatal-error/#post-17968887)
 * Hello [@fujitsuka2024](https://wordpress.org/support/users/fujitsuka2024/)
 * Thanks for the prompt response. Could you please share Diagnostic test report
   with us.
 * We are working to replicate the scenario on our end to debug the cause.
 *  Thread Starter [fujitsuka2024](https://wordpress.org/support/users/fujitsuka2024/)
 * (@fujitsuka2024)
 * [1 year, 9 months ago](https://wordpress.org/support/topic/php-warning-and-php-fatal-error/#post-17968908)
 * Here are the test results.
 * > Mailer: postsmtp
   > HostName: test-spcURL Version: 7.68.0OpenSSL Version: OpenSSL/
   > 1.0.2uOS: Darwin MBP 23.1.0 Darwin Kernel Version 23.1.0: Mon Oct 9 21:27:24
   > PDT 2023; root:xnu-10002.41.9~6/RELEASE_ARM64_T6000 arm64PHP: Darwin 8.1.13
   > CPHP Dependencies: iconv=Yes, spl_autoload=Yes, openssl=Yes, sockets=Yes, allow_url_fopen
   > =Yes, mcrypt=No, zlib_encode=YesWordPress: 6.5.5 ja UTF-8WordPress Theme: test-
   > spWordPress Plugins: Query Monitor, Post SMTP, AddQuicktag, Advanced Custom
   > Fields PRO, Breadcrumb NavXT, Classic Editor, Custom Post Type UI, Yoast Duplicate
   > Post, Intuitive Custom Post Order, SVG Support, Advanced Editor Tools, WordPress
   > Importer, WP All Export Pro, WP All Import Pro, WP Cerber Security, Anti-spam&
   > Malware Scan, WP Multibyte Patch, WP All Import – ACF Add-OnWordPress wp_mail
   > Owner: /wp-content/plugins/post-smtp/Postman/PostmanWpMailBinder.phpWordPress
   > wp_mail Filter(s): wp_staticize_emoji_for_email, PostsmtpMailer->get_mail_argsPostman:
   > 2.9.8Postman Sender Domain (Envelope|Message): test-sp.jp | test-sp.jpPostman
   > Prevent Message Sender Override (Email|Name): Yes | YesPostman Active Transport:
   > Default (smtp:none:none://localhost:25)Postman Active Transport Status (Ready
   > |Connected): No | NoPostman Deliveries (Success|Fail): 104 | 0
 *  Plugin Support [M Aqib Khan](https://wordpress.org/support/users/aqibkhan9/)
 * (@aqibkhan9)
 * [1 year, 9 months ago](https://wordpress.org/support/topic/php-warning-and-php-fatal-error/#post-17969080)
 * Hello [@fujitsuka2024](https://wordpress.org/support/users/fujitsuka2024/)
 * We tried to replicate the issue on our end the and it is working. You can view
   the [screenshot](https://drive.google.com/file/d/1gCaUJEp1kMDj3mRd5bie1oElROcDcKzR/view?usp=sharing)
   as well. However, we suspect the issue to be site specific.
 * We would recommend you to open a [support ticket](https://objectsws.atlassian.net/servicedesk/customer/portal/16)
   with us.
 * We look forward to assisting you further.
 * Thanks and regards,
   Support Team – WP Experts
 *  Thread Starter [fujitsuka2024](https://wordpress.org/support/users/fujitsuka2024/)
 * (@fujitsuka2024)
 * [1 year, 9 months ago](https://wordpress.org/support/topic/php-warning-and-php-fatal-error/#post-17969101)
 * [@aqibkhan9](https://wordpress.org/support/users/aqibkhan9/)
 * Thank you for confirming.
   Could you specifically explain me how you conducted
   the tests?Did you simply click “Click to send test” in the Lockout notification?
   Or did you actually perform suspicious activities multiple times to trigger the
   lockout notification?The error actually occurs not with the test send, but with
   the lockout notification that is triggered in real situations.
 *  Plugin Support [M Aqib Khan](https://wordpress.org/support/users/aqibkhan9/)
 * (@aqibkhan9)
 * [1 year, 9 months ago](https://wordpress.org/support/topic/php-warning-and-php-fatal-error/#post-17969179)
 * [@fujitsuka2024](https://wordpress.org/support/users/fujitsuka2024/) Thank you
   for your inquiry.
 * We conducted tests by clicking “Click to send test” in the Lockout notification.
   Additionally, we attempted to trigger a lockout by repeatedly logging in with
   incorrect credentials. However, the lockout notification was not triggered in
   our case, possibly due to limitations of the free version of [WP Cerber](https://wordpress.org/plugins/wp-cerber/)
   that we’re currently using.
 *  Thread Starter [fujitsuka2024](https://wordpress.org/support/users/fujitsuka2024/)
 * (@fujitsuka2024)
 * [1 year, 9 months ago](https://wordpress.org/support/topic/php-warning-and-php-fatal-error/#post-17974805)
 * [@aqibkhan9](https://wordpress.org/support/users/aqibkhan9/)
 * Thank you for your reply.
 * The lockout can be triggered by setting the wp-cerber lockout fields as follows:
    - Limit on the allowed number of alerts = 0
    - Lockout notification (send notification if the number of active lockouts above)
      = 0
 * Then,
   try repeatedly requesting [https://example.com/info.php](https://example.com/info.php)(
   a non-existent PHP file). This should trigger the lockout.Could you please confirm
   this?
 *  Plugin Support [M Aqib Khan](https://wordpress.org/support/users/aqibkhan9/)
 * (@aqibkhan9)
 * [1 year, 9 months ago](https://wordpress.org/support/topic/php-warning-and-php-fatal-error/#post-17975218)
 * Hello [@fujitsuka2024](https://wordpress.org/support/users/fujitsuka2024/) ,
 * Thank you for your detailed explanation regarding the lockout scenario with WP
   Cerber.
 * We have tried to reproduce the issue as guided. Unfortunately, despite our efforts,
   we were unable to achieve the lockout.
 * Regrettably, WordPress closed WP Cerber due to security concerns, so we are unable
   to provide further support for this plugin. We recommend considering an alternative
   security plugin that is actively maintained.
 * We are marking this thread as resolved. Should you encounter any issues or need
   assistance with another plugin, please don’t hesitate to open a new thread with
   us.
 * Thank you for your understanding & cooperation.
 * Thanks and regards,
   Support Team – WP Experts

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

The topic ‘PHP Warning and PHP Fatal error’ 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/)

 * 9 replies
 * 2 participants
 * Last reply from: [M Aqib Khan](https://wordpress.org/support/users/aqibkhan9/)
 * Last activity: [1 year, 9 months ago](https://wordpress.org/support/topic/php-warning-and-php-fatal-error/#post-17975218)
 * Status: resolved