Title: PHP Error
Last modified: November 28, 2024

---

# PHP Error

 *  [confusedneedhelp](https://wordpress.org/support/users/confusedneedhelp/)
 * (@confusedneedhelp)
 * [1 year, 5 months ago](https://wordpress.org/support/topic/php-error-673/)
 * Hi,
 * I am getting this error several times a day. I have version 3.2.3 installed.
 * PHP Fatal error: Uncaught Error: Cannot use object of type WP_Error as array 
   in /home/customer/www/xxxxxxxxx.com/public_html/wp-content/plugins/transmail/
   transMail.php:1337
 * I had many problems with the old version of your plugin with error handling. 
   This seems to be an issue again here. It is causing the entire php function to
   break if an email does not get sent. I can’t have this happening.
 * Thanks for your quick reply and a quick fix.

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

 *  Thread Starter [confusedneedhelp](https://wordpress.org/support/users/confusedneedhelp/)
 * (@confusedneedhelp)
 * [1 year, 5 months ago](https://wordpress.org/support/topic/php-error-673/#post-18167249)
 * At line 1310 the same command is written as:
 * `if(!is_wp_error( $responseSending )) {
   update_option('transmail_test_mail_case',
   $responseSending['body'], false);}
 * I have updated 1337 as the same as a temp fix. Hopefully this will solve the 
   problem.
 *  Plugin Author [Zoho Mail](https://wordpress.org/support/users/zmintegration/)
 * (@zmintegration)
 * [1 year, 5 months ago](https://wordpress.org/support/topic/php-error-673/#post-18173035)
 * Hello there, 
   We are sorry to hear that you are facing this issue. Our backend
   team is working on this and will be fixed in our upcoming update (within this
   week tentatively). Kindly bear with us till then. Regards,Zoho ZeptoMail team.
 *  Thread Starter [confusedneedhelp](https://wordpress.org/support/users/confusedneedhelp/)
 * (@confusedneedhelp)
 * [1 year, 4 months ago](https://wordpress.org/support/topic/php-error-673/#post-18227453)
 * Hi,
 * I have updated to the latest version 3.2.4 and this error has still not been 
   fixed. It is incredible how long your developers take to address these issues.
 * I will continue using my original fix and hope that one day in 2025 this is officially
   fixed.
 *  Thread Starter [confusedneedhelp](https://wordpress.org/support/users/confusedneedhelp/)
 * (@confusedneedhelp)
 * [1 year, 4 months ago](https://wordpress.org/support/topic/php-error-673/#post-18247193)
 * Hi,
 * I see the latest update 3.2.5 incorporates the fix I mentioned earlier. However,
   it will still produce an error. I had to make further changes which I did not
   document here but it seems your team didn’t bother to check this.
 * I am not going to tell you what to do but I will say that with the current code
   there will still be an error based on line 1346 if $responseSending is a WP_error
   it will not work. $responseSending[‘body’] will not exist.
 * Please check the code and kindly remark this topic as unresolved.
 * Thanks,
 *  Thread Starter [confusedneedhelp](https://wordpress.org/support/users/confusedneedhelp/)
 * (@confusedneedhelp)
 * [1 year, 3 months ago](https://wordpress.org/support/topic/php-error-673/#post-18262937)
 * Hi again,
 * The problem still exists. The line 1346
 * `if($responseSending['body'] != '') {`
 * will produce an error if $responseSending is a WP_Error. The result is that you
   will get a PHP Fatal error and the rest of the code will not process. Most importantly
   the insert_failed_email function will not run and so the email is lost forever.
   Your server was down for hours last night and many emails were not sent and I
   had no way to know which ones had failed.
 * Happy to give this another week and then I will look for a more professional 
   option.
 * Thanks

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

The topic ‘PHP Error’ is closed to new replies.

 * ![](https://ps.w.org/transmail/assets/icon-256x256.png?rev=2372126)
 * [Zoho ZeptoMail](https://wordpress.org/plugins/transmail/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/transmail/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/transmail/)
 * [Active Topics](https://wordpress.org/support/plugin/transmail/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/transmail/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/transmail/reviews/)

 * 5 replies
 * 2 participants
 * Last reply from: [confusedneedhelp](https://wordpress.org/support/users/confusedneedhelp/)
 * Last activity: [1 year, 3 months ago](https://wordpress.org/support/topic/php-error-673/#post-18262937)
 * Status: not resolved