wpexpertsio / Post-SMTP

Next generation SMTP mailer plugin for WordPress. Trusted by over 300,000 sites by WPExperts.io
https://wordpress.org/plugins/post-smtp/
55 stars 28 forks source link

Ajax Error #70

Open mattish91 opened 1 year ago

mattish91 commented 1 year ago

Hi! On our webshop we get "Ajax Error" with no description or any error logs indicating whats wrong. I had to rollback to version 2.1.10 in order to fix it, i also tried to update php from 7.4 to 8.0 and 8.1 with no better luck (stayed on 8.0 for now). Is there any way i can check even more what issues i run in to.

The server is running Nginx 2.2, PHP 8.0 and either log file shows any errors, i also tried WP_DEBUG but error log is empty there as well after sending test email that receives Ajax Error.

smusmanobjects commented 1 year ago

Hi,

I hope you're doing well, thanks for reporting the issue.

Prove us your Diagnostic Log.

You may find right here: image

Thanks

Bonsai-Scale commented 1 year ago

I have the same issue. Here is my log from the diagnostic test.

Mailer: postsmtp HostName: pittsburghbonsai.org cURL Version: 7.84.0 OpenSSL Version: OpenSSL/1.1.1p OS: Linux nyc100.hawkhost.com 3.10.0-962.3.2.lve1.5.70.el7.x86_64 #1 SMP Mon May 30 08:45:55 UTC 2022 x86_64 PHP: Linux 7.4.33 C PHP Dependencies: iconv=Yes, spl_autoload=Yes, openssl=Yes, sockets=Yes, allow_url_fopen=Yes, mcrypt=No, zlib_encode=Yes WordPress: 6.1.1 en_US UTF-8 WordPress Theme: Pittsburgh Bonsai Society Website WordPress Plugins: Advanced Custom Fields, Cartpauj Register Captcha, Classic Editor, Confirm User Registration, Decent Comments, Disable Search, LiteSpeed Cache, Mailster - Email Newsletter Plugin for WordPress, Meta Tag Manager, Post SMTP, Really Simple Breadcrumb, Really Simple Gallery Widget, Regenerate Thumbnails Advanced, Resize Image After Upload, Responsive Lightbox & Gallery, Simple Google Sitemap XML, Simple Page Ordering, Titan Framework, User Avatar, WP Cerber Security, Anti-spam & Malware Scan, wp-comment-master, WP EasyCart, WP Social AutoConnect WordPress wp_mail Owner: /home/vyzedcom/vhost/pittsburghbonsai/public_html/wp-content/plugins/post-smtp/Postman/PostmanWpMailBinder.php WordPress wp_mail Filter(s): wp_staticize_emoji_for_email, PostsmtpMailer->get_mail_args Postman: 2.4 Postman Sender Domain (Envelope|Message): gmail.com | gmail.com Postman Prevent Message Sender Override (Email|Name): No | No Postman Active Transport: Gmail API (https:oauth2://www.googleapis.com:443) Postman Active Transport Status (Ready|Connected): Yes | Yes Postman Deliveries (Success|Fail): 3669 | 25 Postman Email Log (Enabled|Limit|Transcript Size): Yes | 1000 | 128

Bonsai-Scale commented 1 year ago

I don't know if this is relevant, but the "connectivity test" shows failure for googleapis, even though mail sent via google does actually get through.

Screen Shot 2023-02-21 at 1 47 02 PM
Bonsai-Scale commented 1 year ago

Rolling back to earlier versions did not help me. I tried 2.4, 2.1.10, 2.0.27, 2.0. The same error happens on all of them.

Bonsai-Scale commented 1 year ago

When I reverted back to 2.4, I initially got a different error when I try to send a test email. It is not the Ajax Error, with a generic message, but instead is an ajax error with this message. But later I started getting the generic message again.

> An unexpected error occurred:
> 
> <!DOCTYPE html>
> <html style="height:100%">
> <head>
> <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no" />
> <title> 503 Service Unavailable
> </title></head>
> <body style="color: #444; margin:0;font: normal 14px/20px Arial, Helvetica, sans-serif; height:100%; background-color: #fff;">
> <div style="height:auto; min-height:100%; ">     <div style="text-align: center; width:800px; margin-left: -400px; position:absolute; top: 30%; left:50%;">
>         <h1 style="margin:0; font-size:150px; line-height:150px; font-weight:bold;">503</h1>
> <h2 style="margin-top:20px;font-size: 30px;">Service Unavailable
> </h2>
> <p>The server is temporarily busy, try again later!</p>
> </div></div></body></html>
> 
Bonsai-Scale commented 1 year ago

I went through the connection wizard again, and checked my GMail API OAuth credentials. I now get a different result from the connectivity test. The Gmail smtp servers show "service available" now, whereas earlier they did not.

Screen Shot 2023-02-21 at 2 45 00 PM