Title: ajax error
Last modified: October 7, 2021

---

# ajax error

 *  [Chris Maltby](https://wordpress.org/support/users/chrismaltby/)
 * (@chrismaltby)
 * [4 years, 7 months ago](https://wordpress.org/support/topic/ajax-error-58/)
 * Post SMTP reports “ajax error” after sending the message. Also when attempting
   to view the message log, though the message is being stored in the WP database
   correctly.
 * The error report breaks a submission form that sends success emails to both the
   submitter and the recipient. The send “failure” on the submitter email prevents
   the subsequent actions from being taken, including the recipient email.
 * Started happening on or after October 3.

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

 *  Thread Starter [Chris Maltby](https://wordpress.org/support/users/chrismaltby/)
 * (@chrismaltby)
 * [4 years, 7 months ago](https://wordpress.org/support/topic/ajax-error-58/#post-14948102)
 * The php error log reports:
    PHP Fatal error: Allowed memory size of 1610612736
   bytes exhausted (tried to allocate 2982344 bytes) in …/wp-includes/wp-db.php 
   on line 2022
 *  Thread Starter [Chris Maltby](https://wordpress.org/support/users/chrismaltby/)
 * (@chrismaltby)
 * [4 years, 7 months ago](https://wordpress.org/support/topic/ajax-error-58/#post-14948157)
 * I performed the following SQL delete of the postman message logs:
 * DELETE wp_posts, wp_postmeta FROM wp_posts INNER JOIN wp_postmeta ON wp_posts.
   ID = wp_postmeta.post_id WHERE wp_posts.post_type = ‘postman_sent_mail’;
 * It deleted 4817 rows and now it seems to be working again. Looks like the log
   cleanup task is not running or working.

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

The topic ‘ajax error’ is closed to new replies.

 * ![](https://ps.w.org/post-smtp/assets/icon-128x128.gif?rev=3209655)
 * [Post SMTP – Complete Email Deliverability and SMTP Solution with Email Logs, Alerts, Backup SMTP & Mobile App](https://wordpress.org/plugins/post-smtp/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/post-smtp/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/post-smtp/)
 * [Active Topics](https://wordpress.org/support/plugin/post-smtp/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/post-smtp/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/post-smtp/reviews/)

## Tags

 * [ajax](https://wordpress.org/support/topic-tag/ajax/)

 * 2 replies
 * 1 participant
 * Last reply from: [Chris Maltby](https://wordpress.org/support/users/chrismaltby/)
 * Last activity: [4 years, 7 months ago](https://wordpress.org/support/topic/ajax-error-58/#post-14948157)
 * Status: not resolved