• 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

    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)
  • What version of PHP are you using ?

    Thread Starter rovingwind

    (@rovingwind)

    PHP version 7.0.30

    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

    (@rovingwind)

    @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) “

    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

    (@rovingwind)

    @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?

    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.