iThemes Security (formerly Better WP Security)
Fatal error: out of memory is caused by scheduled backup of db in this plugin (5 posts)

  1. PavelCZ1982
    Posted 2 years ago #

    Hi guys,

    I spent quite a lot of time in finding where is the problem with Fatal error: out of memory. The problem is not in settings of memory limit in htacces or wp-config and even increasing of memory does not solve this problem! The problem is in code of this plugin. It is causing random crashes of site when you have got allowed option for scheduled backup of db.

    I hope that developers will do something about it asap, cause this is quite tricky situation.



  2. Placeholder
    Posted 2 years ago #

    Thank you so much for posting this! I've been going crazy the last few weeks trying to track this down. Turning scheduled backup off now ...

  3. joe.toomey
    Posted 2 years ago #

    I posted a comment about this in a different thread. One could argue about whether or not this is a bug, and you may be able to address the issue by determining what table is the one crashing your backup. In my case, it was the wp_redirection_logs table, which was polluted by the Redirection plugin with nearly 100,000 log entries that I did not need. I found that someone had configured the Redirection plugin to keep the log entries forever, and once I removed these old entries (and configured a reasonable expiration for log entries moving forward), the problem disappeared.

    Having said all that, I do hope that this issue is address by the iTheme developers, but I don't think it's reasonable to assume that the entire DB contents will fit in memory. Here's my more detailed comment on this: http://wordpress.org/support/topic/memory-limit-reached-error?replies=5#post-5766559

  4. PavelCZ1982
    Posted 2 years ago #

    Assuming that you are right, how is it possible that other backup plugin does work ? It is obvious problem of iTheme Security. At least they should handle memory leaks. The plugin should not do backup or inform user about memory problems and do not let site crash...

  5. joe.toomey
    Posted 2 years ago #

    Other backup plugins can easily work by writing out to the backup file periodically instead of holding the entire backup file contents in memory and then writing it out at the end of the backup process.

    iThemes Security plugin could do this as well, and it wouldn't be too hard to do. That's just not how it's done currently. I'm hopeful they'll notice these comments in the forum and make this change.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic


No tags yet.