• I am getting allowed memory exhausted error (on front-end) after I tried to display more than 40 posts on my site. I tried WordPress standard loop as well as wp custom query. Site works fine on my local machine, this problem appears on shared hosting. I uploaded my site to another shared hosting (other hosting provider) it worked fine too.

    I tried to increase PHP memory to 128 and/or 256 but it didn’t work. (PHP Info file still says that max allowed memory is 32). So if I’m right problem is the shared hosting and hosting provider? any suggestions?

Viewing 4 replies - 1 through 4 (of 4 total)
  • Moderator t-p

    (@t-p)

    I tried to increase PHP memory to 128 and/or 256 but it didn’t work. (PHP Info file still says that max allowed memory is 32).

    How did you try increasing the memory in your shared hosting?

    Thread Starter Ts.Kalandadze

    (@tskalandadze)

    I followed this instructions:

    1. Try adding this line to your wp-config.php file:
    define(‘WP_MEMORY_LIMIT’, ’64M’);

    2. If you have access to your PHP.ini file, change the line in PHP.ini
    If your line shows 32M try 64M:
    memory_limit = 64M ; Maximum amount of memory a script may consume (64MB)

    My hosting provider told me to create php.ini in wp-admin directory.

    Moderator t-p

    (@t-p)

    PHP Info file still says that max allowed memory is 32

    please contact your hosting provider and tell them that “max allowed memory is 32”.

    We have no access to your server. So best is to sort it out with your provider.

    Hello!

    Some hosting providers don’t allow you to change those values, at least not on shared hosting plans. It happened to me on a well-known hosting company. They changed the values themselves, but the changes didn’t take place. After further investigations, they found out that they actually don’t allow higher values like that on shared hosting plans :).

    You should try and contact them and sort this out.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Allowed Memory Exhausted Error After More Than 40 Posts’ is closed to new replies.