Thread Starter
demzuk
(@demzuk)
Would welcome any ideas around this one. It is an intermittent error, though from what I have read in other posts, seems to be exhibiting similar behaviour.
Under certain circumstances, I see a Critical Error (like said) though this is caused by a call into implode on line 171 in wp-content/plugins/email-log/include/util/helper.php
If the email fails (for whatever reason, though two reasons have been a socket connection failed or a network unreachable error) it sends an object into $may_be_array (well, it sends an array, though the first element is an object).
So a failed call into implode (in stringify) would have a $may_be_array and the first value [0] is
(
[0] => Array
(
[0] => PostmanEmailAddress Object
(
[name:PostmanEmailAddress:private] =>
[email:PostmanEmailAddress:private] => [email protected]
)
)
)
If it succeeds (or all is good) then a successful call into implode is:
[01-Feb-2021 15:09:33 UTC] Array
(
[From] => Array
(
[0] => From: “Wibble World” <[email protected]>
)
[Content-type] => Array
(
[0] => Content-type: text/html; charset=UTF-8
)
)
So, what causes a Postman object to be sent into Stringify and how could it be handled so that it didnt fail on the implode call ?
Thanks for advice,
Phil.
Tim
(@tneville)
Hi Phil,
Sorry for the delay in responding. Can you confirm:
- Post SMTP version?
- Are you running any Post SMTP extensions (Office 365 API, Amazon SES, Better Email Logger) etc?
If you can also paste your Post SMTP diagnostics log, I will ask @yehudah, the developer, to take a look when he can.
Thank you.
Kind Regards,
Tim
Thread Starter
demzuk
(@demzuk)
Hi Tim,
NP with the delays and thanks for coming back.
The version is the latest (updated on Saturday) and no not running any other Post SMTP extensions (I think). Is there somewhere I could send the diagnostic logs rather than paste them here ?
Apologies for being tricky though thanks for understanding.
Phil.
Tim
(@tneville)
Hi Phil,
I understand. Please send them to the developer (https://postmansmtp.com/contact/) and I will ask @yehudah to forward it onto me.
Please let me know when sent.
Kind Regards,
Tim
Thread Starter
demzuk
(@demzuk)
Hi Tim,
Those have now been sent in.
Kind regards
Phil.