• 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

    (@confusedneedhelp)

    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

    (@zmintegration)

    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

    (@confusedneedhelp)

    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

    (@confusedneedhelp)

    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

    (@confusedneedhelp)

    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)
  • You must be logged in to reply to this topic.