Title: Get error while Enable Email Logging
Last modified: January 10, 2019

---

# Get error while Enable Email Logging

 *  [rovingwind](https://wordpress.org/support/users/rovingwind/)
 * (@rovingwind)
 * [7 years, 5 months ago](https://wordpress.org/support/topic/get-error-while-enable-email-logging/)
 * I’ve installed Post SMTP for serveral months and enable Email logging.
    The Post
   SMTP has delievered 19500 emails before. But these day when I try to open Email
   Log page, I got blank page and error 500 Internal Server Error. I try to send
   testing mail it shows “Ajax error”, but I still recive the testing mail. Contact
   form 7 can get mail 1, but mail 2 not working.
 * The error_log show as below:
    PHP Fatal error: Allowed memory size of 536870912
   bytes exhausted (tried to allocate 40960 bytes) in /var/www/html/wp-includes/
   wp-db.php on line 1924, referer: [https://mywebsite/wp-admin/admin.php?page=postman](https://mywebsite/wp-admin/admin.php?page=postman)
 * I try to add memory but not working.
    After I disable the Email Logging. Everything
   works fine. How to solve this problem?

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

 *  [shinerweb](https://wordpress.org/support/users/shinerweb/)
 * (@shinerweb)
 * [7 years, 5 months ago](https://wordpress.org/support/topic/get-error-while-enable-email-logging/#post-11075105)
 * What version of PHP are you using ?
 *  Thread Starter [rovingwind](https://wordpress.org/support/users/rovingwind/)
 * (@rovingwind)
 * [7 years, 5 months ago](https://wordpress.org/support/topic/get-error-while-enable-email-logging/#post-11075941)
 * PHP version 7.0.30
 *  [yehudah](https://wordpress.org/support/users/yehudah/)
 * (@yehudah)
 * [7 years, 4 months ago](https://wordpress.org/support/topic/get-error-while-enable-email-logging/#post-11083423)
 * You hit your hosting memory limit by allowing to much of email log entries.
    
   Each time post smtp will try to log it will crash because of this limit. if you
   are a technical person try to delete the entries from phpmyadmin, the entries
   are stores as custom post type.
 *  Thread Starter [rovingwind](https://wordpress.org/support/users/rovingwind/)
 * (@rovingwind)
 * [7 years, 4 months ago](https://wordpress.org/support/topic/get-error-while-enable-email-logging/#post-11089464)
 * [@yehudah](https://wordpress.org/support/users/yehudah/)
 * Did you mean I have to delete some mail log in database?
    But I have to keep 
   all mail log for other application. Why can’t I solve it by adding php memory
   if it is cause by memory limit? I already tried to add the memory to 512M in 
   php.ini, but it still show “PHP Fatal error: Allowed memory size of 536870912
   bytes exhausted (tried to allocate xxxxxx bytes) “
 *  [yehudah](https://wordpress.org/support/users/yehudah/)
 * (@yehudah)
 * [7 years, 4 months ago](https://wordpress.org/support/topic/get-error-while-enable-email-logging/#post-11090003)
 * You can access the email log menu?
 * You can’t add memory in the php.ini if your hosting provider don’t allow it.
   
   If you can edit the file it doesn’t mean it actually happen.
 *  Thread Starter [rovingwind](https://wordpress.org/support/users/rovingwind/)
 * (@rovingwind)
 * [7 years, 4 months ago](https://wordpress.org/support/topic/get-error-while-enable-email-logging/#post-11093661)
 * [@yehudah](https://wordpress.org/support/users/yehudah/)
 * I can’t access the email log menu, it only shows blankpage and error 500.
    So
   delete the old mail log in database is the only way to solve it?
 *  [yehudah](https://wordpress.org/support/users/yehudah/)
 * (@yehudah)
 * [7 years, 4 months ago](https://wordpress.org/support/topic/get-error-while-enable-email-logging/#post-11094105)
 * Every error you see come from the limitation on your hosting.
 * You need to delete on the db, and limit the entries to something your hosting
   can hold, I suggest 250.

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

The topic ‘Get error while Enable Email Logging’ 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/)

 * 7 replies
 * 3 participants
 * Last reply from: [yehudah](https://wordpress.org/support/users/yehudah/)
 * Last activity: [7 years, 4 months ago](https://wordpress.org/support/topic/get-error-while-enable-email-logging/#post-11094105)
 * Status: not resolved