• Resolved arosendaal

    (@arosendaal)


    Hi,

    I did some research so I know a bit about the problem I am going to describe: on our staging server we are testing the migration to PHP 8.4. There is a problem with sending messages, that is mentioned in other threads for the Post SMTP plug in as well. We are currently using version 3.3.0, the lastest version of the plugin. PHP 8.4, and WP 6.4.6.

    Warning text:

    Deprecated: PostmanEmailLogService::writeFailureLog(): Implicitly marking parameter $message as nullable is deprecated, the explicit nullable type must be used instead in /home/www/site/wp-content/plugins/post-smtp/Postman/Postman-Email-Log/PostmanEmailLogService.php on line 129

    Looking at the change log, I thought this issue had been dealt with. Is there something I can do myself? Posting messages is used in a plugin we developed ourself, but I assume the solution lies within the POST SMTP plugin?

    Thanks,

    André

    The page I need help with: [log in to see the link]

Viewing 10 replies - 1 through 10 (of 10 total)
  • Thread Starter arosendaal

    (@arosendaal)

    Updating to WP 6.8.2 did not make any difference btw.

    Plugin Support M Aqib Khan

    (@aqibkhan9)

    Hello @arosendaal ,

    I hope this message finds you well.

    Thank you for reaching out to our Support team. I’m truly sorry to hear that you’ve encountered an issue.

    I’ve forwarded the deprecated warning to our technical team for further analysis. If they require any additional information, I will follow up with you accordingly.

    In the meantime, could you please confirm which email service provider you are currently using with Post SMTP?

    Warm regards,
    Support Team – WP Experts

    Thread Starter arosendaal

    (@arosendaal)

    Hi,

    We are using Gmail.

    I also tried to send a test mail via the plugin Dashboard, that works without getting warnings. BTW sending messages itself works, it’s just the warnings that are problematic.

    Regards,

    André

    Thread Starter arosendaal

    (@arosendaal)

    Actually, the complete error message is:

    Deprecated: PostmanEmailLogService::writeFailureLog(): Implicitly marking parameter $message as nullable is deprecated, the explicit nullable type must be used instead in /home/www/site/wp-content/plugins/post-smtp/Postman/Postman-Email-Log/PostmanEmailLogService.php on line 129

    Deprecated: PostmanEmailLogService::writeToEmailLog(): Implicitly marking parameter $message as nullable is deprecated, the explicit nullable type must be used instead in /home/www/site/wp-content/plugins/post-smtp/Postman/Postman-Email-Log/PostmanEmailLogService.php on line 177

    Deprecated: PostmanEmailLogService::createLog(): Implicitly marking parameter $message as nullable is deprecated, the explicit nullable type must be used instead in /home/www/site/wp-content/plugins/post-smtp/Postman/Postman-Email-Log/PostmanEmailLogService.php on line 326

    Deprecated: str_getcsv(): the $escape parameter must be provided as its default value will change in /home/www/site/wp-content/plugins/post-smtp/Postman/Postman-Mail/PostmanEmailAddress.php on line 81

    Deprecated: Postman_Zend_Validate_Hostname::setIpValidator(): Implicitly marking parameter $ipValidator as nullable is deprecated, the explicit nullable type must be used instead in /home/www/site/wp-content/plugins/post-smtp/Postman/Postman-Mail/Zend-1.12.10/Validate/Hostname.php on line 1974

    Deprecated: Postman_Zend_Exception::__construct(): Implicitly marking parameter $previous as nullable is deprecated, the explicit nullable type must be used instead in /home/www/site/wp-content/plugins/post-smtp/Postman/Postman-Mail/Zend-1.12.10/Exception.php on line 43

    Deprecated: Postman_Zend_Mail_Transport_Sendmail::_handleMailErrors(): Implicitly marking parameter $errcontext as nullable is deprecated, the explicit nullable type must be used instead in /home/www/site/wp-content/plugins/post-smtp/Postman/Postman-Mail/Zend-1.12.10/Mail/Transport/Sendmail.php on line 214

    Deprecated: Postman_Zend_Validate_EmailAddress::setHostnameValidator(): Implicitly marking parameter $hostnameValidator as nullable is deprecated, the explicit nullable type must be used instead in /home/www/site/wp-content/plugins/post-smtp/Postman/Postman-Mail/Zend-1.12.10/Validate/EmailAddress.php on line 246

    Deprecated: str_getcsv(): the $escape parameter must be provided as its default value will change in /home/www/site/wp-content/plugins/post-smtp/Postman/Postman-Mail/PostmanEmailAddress.php on line 81

    Plugin Support M Aqib Khan

    (@aqibkhan9)

    Hello @arosendaal ,

    I appreciate your patience and cooperation as we worked to resolve the issue.

    I’m pleased to inform you that our technical team has successfully addressed the problem.

    Kindly download and install the provided beta version, and let us know your feedback once you’ve had a chance to test it. Your input is valuable to us.

    Download Beta

    Looking forward to hearing from you!

    Warm regards,
    Support Team – WP Experts

    Thread Starter arosendaal

    (@arosendaal)

    Hi,

    Thank you for the beta version, which I just tested. It has the same issues, although there are slight differences. I installed the beta version which identified itzelf as version 3.2.0, which surprised me, since I already had version 3.3.0 installed. I have copied the warnings below. Since I noticed that there is also a version 3.4.0. released, I also installed that version. Again, similar warnings, see attached file. (As you can see, there is a difference at the end where two lines that are output after each message are printed. Indeed, the plugin that sends mail sends two messages.)

    It may be useful to inform you that, though I said we are using Gmail, I noticed that the “Transport Type” I have chosen when I first set up Post SMPTP is “Other SMTP”, not the GMail API. But as I already said before, mailing itself is not a problem, messages are sent. For your convenience, I have also teste the GMAil API. The results are the same.

    I don’t mind doing some testing to help you further. But for the moment, I am using a different SMPTP mailer that does not have these issues.

    Kind regards,

    André

    Version 3.2.0 (the beta you sent):

    Deprecated: PostmanEmailLogService::writeFailureLog(): Optional parameter $message declared before required parameter $statusMessage is implicitly treated as a required parameter in /home/www/site/wp-content/plugins/post-smtp/Postman/Postman-Email-Log/PostmanEmailLogService.php on line 129

    Deprecated: PostmanEmailLogService::createLog(): Optional parameter $message declared before required parameter $transport is implicitly treated as a required parameter in /home/www/site/wp-content/plugins/post-smtp/Postman/Postman-Email-Log/PostmanEmailLogService.php on line 326

    Deprecated: Postman_Zend_Validate_Hostname::setIpValidator(): Implicitly marking parameter $ipValidator as nullable is deprecated, the explicit nullable type must be used instead in /home/www/site/wp-content/plugins/post-smtp/Postman/Postman-Mail/Zend-1.12.10/Validate/Hostname.php on line 1974

    Deprecated: Postman_Zend_Exception::__construct(): Implicitly marking parameter $previous as nullable is deprecated, the explicit nullable type must be used instead in /home/www/site/wp-content/plugins/post-smtp/Postman/Postman-Mail/Zend-1.12.10/Exception.php on line 43

    Deprecated: Postman_Zend_Mail_Transport_Sendmail::_handleMailErrors(): Implicitly marking parameter $errcontext as nullable is deprecated, the explicit nullable type must be used instead in /home/www/site/wp-content/plugins/post-smtp/Postman/Postman-Mail/Zend-1.12.10/Mail/Transport/Sendmail.php on line 214

    Deprecated: Postman_Zend_Validate_EmailAddress::setHostnameValidator(): Implicitly marking parameter $hostnameValidator as nullable is deprecated, the explicit nullable type must be used instead in /home/www/site/wp-content/plugins/post-smtp/Postman/Postman-Mail/Zend-1.12.10/Validate/EmailAddress.php on line 246
    Your message has been successfully sent to the author.You have also received a confirmation email.

    Version 3.4.0.

    Deprecated: PostmanEmailLogService::writeToEmailLog(): Implicitly marking parameter $message as nullable is deprecated, the explicit nullable type must be used instead in /home/www/site/wp-content/plugins/post-smtp/Postman/Postman-Email-Log/PostmanEmailLogService.php on line 177

    Deprecated: str_getcsv(): the $escape parameter must be provided as its default value will change in /home/www/site/wp-content/plugins/post-smtp/Postman/Postman-Mail/PostmanEmailAddress.php on line 81

    Deprecated: Postman_Zend_Validate_Hostname::setIpValidator(): Implicitly marking parameter $ipValidator as nullable is deprecated, the explicit nullable type must be used instead in /home/www/site/wp-content/plugins/post-smtp/Postman/Postman-Mail/Zend-1.12.10/Validate/Hostname.php on line 1974

    Deprecated: Postman_Zend_Exception::__construct(): Implicitly marking parameter $previous as nullable is deprecated, the explicit nullable type must be used instead in /home/www/site/wp-content/plugins/post-smtp/Postman/Postman-Mail/Zend-1.12.10/Exception.php on line 43

    Deprecated: Postman_Zend_Mail_Transport_Sendmail::_handleMailErrors(): Implicitly marking parameter $errcontext as nullable is deprecated, the explicit nullable type must be used instead in /home/www/site/wp-content/plugins/post-smtp/Postman/Postman-Mail/Zend-1.12.10/Mail/Transport/Sendmail.php on line 214

    Deprecated: Postman_Zend_Validate_EmailAddress::setHostnameValidator(): Implicitly marking parameter $hostnameValidator as nullable is deprecated, the explicit nullable type must be used instead in /home/www/site/wp-content/plugins/post-smtp/Postman/Postman-Mail/Zend-1.12.10/Validate/EmailAddress.php on line 246
    Your message has been successfully sent to the author.
    Deprecated: str_getcsv(): the $escape parameter must be provided as its default value will change in /home/www/site/wp-content/plugins/post-smtp/Postman/Postman-Mail/PostmanEmailAddress.php on line 81
    You have also received a confirmation email.

    Plugin Support M Aqib Khan

    (@aqibkhan9)

    Hey @arosendaal

    I am concerned that you are still experiencing issues with the beta. The reason for the older version is that the fix was applied to a version prior to the one currently live.

    I have already requested our technical team to look into this, and we will be releasing the fix after it has successfully passed testing.

    Warm regards,
    Support Team – WP Experts

    Plugin Support M Aqib Khan

    (@aqibkhan9)

    Hey @arosendaal

    I hope you are doing well.

    I am writing to share an updated beta addressing the issues you highlighted earlier. Kindly test this beta on your end and share your feedback with me.

    Your outcome and feedback would be greatly appreciated.

    Warm regards,
    Support Team – WP Experts

    Thread Starter arosendaal

    (@arosendaal)

    Hi,

    Thanks for the new beta. Unfortunately, this is not an improvement. When I send a message via our plugin, I get a 500 internal server error. I then tried to send a test mail. No test mail was sent, and also the 60 seconds waiting time that Post SMTP mentions on the Send test Mail page is ignored (the roatating icon stays onscreen forever).

    I then had a look at the setings. It looks like I need to Grant permission with Google again (I uploaded the new version of Post SMTP via ftp). However, I can’t gve the permissins Google says:

    Access blocked: This app’s request is invalid

    You can’t sign in because this app sent an invalid request. You can try again later, or contact the developer about this issue. Learn more about this error

    If you are a developer of this app, see error details.

    Error 400: redirect_uri_mismatch

    Thread Starter arosendaal

    (@arosendaal)

    Just a small update: I did receive the test mail!

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

The topic ‘PHP 8.4 and “Deprecated” warning’ is closed to new replies.