• Resolved Falcon

    (@kaofoxy)


    A php fatal error occurs…

    how to reproduce this erorr?
    1, on settings, change type to ‘Gmail API’
    2, Send test mail. you will see an Ajax error below.

    Ajax Error
    An unexpected error occurred:
    
    <p>There has been a critical error on this website.</p><p>Learn more about troubleshooting WordPress.</p>

    solution is following.

    • This topic was modified 3 years, 1 month ago by Falcon.
Viewing 10 replies - 1 through 10 (of 10 total)
  • Thread Starter Falcon

    (@kaofoxy)

    solution is here,
    open the file in plugin folder,
    Postman\Postman-Mail\google-api-client\vendor\google\apiclient\src\Google\Service\Resource.php

    to line 291, chang that line to below,

    $requestUrl .= '?' . implode('&',$queryVars);

    seems you use an old version of google-api-client, this bug had been fixed in new version.

    • This reply was modified 3 years, 1 month ago by Falcon.
    • This reply was modified 3 years, 1 month ago by Falcon.
    • This reply was modified 3 years, 1 month ago by Falcon.
    Thread Starter Falcon

    (@kaofoxy)

    I try to commit this change to your repo, but access denied.

    Thread Starter Falcon

    (@kaofoxy)

    for some security reasons, some host provider block the SMTP ports, like 25, 465, 587, so you can use GMAIL API to deliver mails. but if you change type to ‘Gmail API’ it may cause an ajax error on current version.

    e dev

    (@efishinsea)

    This fixed my site as well, so thanks!

    I still get “Service Available : No” for all Google API tests, but mail sends ok now.

    Not sure why this just started happening when it’s been working fine for years. I guess your assessment of the ‘old google-api-client’ was it. Hopefully the author fixes this soon.

    A.Tariq

    (@arsalantariq)

    Hi All,

    Hope you all are doing good.

    We are working on this issue, We will fix this and release our updated version soon.

    @kaofoxy thank you for solving this.

    Thanks

    Hi @efishinsea @kaofoxy

    We have released the beta version, which includes the fix of this issue, it would be great if you download this version and let us know how it’s working for you.

    You can download Beta Version from here.

    Looking forward to your response.

    Thanks

    I tried the beta plugin and it didn’t work on my site. I was using Google API. When using recommended port 587 no issues.

    • This reply was modified 2 years, 6 months ago by Zlatan.
    Plugin Support M Haseeb

    (@haseeb0001)

    @fzlatan Please share Post SMTP diagnostic test report.

    Thanks

    @haseeb0001 I am fine with using the recommended port 587. It’s working so I have to move on to other debugging. Thank you for being very responsive and helping out. The support forum helped me a lot.

    Plugin Support M Haseeb

    (@haseeb0001)

    @fzlatan Thanks,

    We would appreciate you give us a kind and honest review.

Viewing 10 replies - 1 through 10 (of 10 total)
  • The topic ‘Fixing the ‘Ajax Error’’ is closed to new replies.