• timjrye

    (@timjrye)


    Hi,

    I get the following error when I activate the plugin (version 4.0.10):

    Fatal error: Allowed memory size of 134217728 bytes exhausted (tried to allocate 13655637 bytes) in …/public_html/wp-content/plugins/better-wp-security/modules/free/backup/class-itsec-backup.php on line 148

    I get a white screen (other than the error message) and can’t view my site, log in or anything else until I deactivate the plugin (by renaming the directory).

    Having looked at the source code I think it is because I have a large database, but surely the backup module should be able to cope with any size of database?

    Please let me know how I can fix the problem ASAP!

    Thanks.

    https://wordpress.org/plugins/better-wp-security/

Viewing 3 replies - 1 through 3 (of 3 total)
  • You could try increasing memory allocated to your PHP inside your wp-config.php and try running it again. It might not be plugin issue.

    http://codex.wordpress.org/Editing_wp-config.php#Increasing_memory_allocated_to_PHP

    define( 'WP_MEMORY_LIMIT', '64M' );

    If you find out what your php.ini limit is set to you can increase WP limit to that and see if that helps. You can use a simple function to check your PHP settings.

    Create info.php and put this in there.

    <?php phpinfo(); ?>

    And view it in your browser: domain.com/info.php and look for memory limit value.

    Hope that helps, since developer support been lacking pretty bad last few days.

    Thread Starter timjrye

    (@timjrye)

    Running phpinfo() shows that the memory limit is already 128M. I have increased it to 256M and the plugin now works fine.

    Is there any negative effect of setting the memory limit so high?

    When on shared hosting, you’re sharing memory with all other websites. That’s why your phpinfo shows 128M, that’s set by your hosting company and some allow you to increase it using custom php.ini. WP memory limit allows WP to use that amount of memory, I believe that your memory will peak at 128 since that’s the php.ini limit, even if you set 256M for WP.

    If you have a very active site with thousands of visitors, you might be using up a lot of memory and depending on your hosting company they might limit your resource usage if you’re using up too much resources like memory or CPU. How they respond varies from company to company.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Memory Error for Database Backup’ is closed to new replies.