Fatal error: Allowed memory size of 10485760 bytes exhausted (2 posts)

  1. adrianarvunescu
    Posted 6 years ago #

    Fatal error: Allowed memory size of 10485760 bytes exhausted (tried to allocate 77824 bytes) in /home/www/free/trei.ro/adi.trei.ro/wp-admin/includes/template.php on line 2573

    I get that when I try to install, and run /wp-admin/install.php
    What should I do?

  2. Brian
    Posted 6 years ago #

    The maximum memory allowed for PHP scripts appears to be 10 MB. This is usually set by your server administrator.

    You can increase the limit if your web host allows it (Warning: This may be in violation of your web host's TOS. Please refer to it for PHP script memory limit).

    The best amount of WordPress is 64 MB.

    If you have access to your php.ini file, open it and search for the line: memory_limit. If it doesn't exist, create it and if it exists, modify the line to:

    memory_limit = 64M.

    If you don't have php.ini access, you can add the following line to your wp-config.php file right after the beginning <?php:


    As I mentioned, some hosts may suspend your account for doing this as you are using more resources than you are allowed to, so I recommend you contact your host about this.

    From the fatal error you mentioned, it looks like your limit is 10 MB currently.

Topic Closed

This topic has been closed to new replies.

About this Topic


No tags yet.