Support » Fixing WordPress » Problems with my php.ini and memory

  • I have problems with my WP because some plugins not have enoght memory (like lazyest gallery). The same problem I have in the dashboard. The messege is “Fatal error: Allowed memory size of 33554432 bytes exhausted (tried to allocate 122880 bytes) in /home3/iaafadu/public_html/wp-includes/class-simplepie.php on line 3735”.
    So I make this to change my memory from 32M to 64M:

    I change my wp-config adding this line
    define(‘WP_MEMORY_LIMIT’, ’64M’);

    Then I change my wp-settings.php in this line
    if ( !defined(‘WP_MEMORY_LIMIT’) )
    define(‘WP_MEMORY_LIMIT’, ’64M’);

    Then I put in muy public_html a txt file called php.ini with this line
    memory_limit = 64M

    BUT NOTHING CHANGES!!! My memory still have 33554432 bytes (32M)
    I don´t know what´s wrong… I don´t if I have to change something more…
    Anybody can help me? (and sorry for my english…)

Viewing 4 replies - 1 through 4 (of 4 total)
  • You need to contact your host to increase the memory. These things are controlled by your host. Simply changing the memory in your php.ini won’t work.

    Thanks bittp…
    I contact my host and they told me to make that (to put my php.ini in public_html) but… you can see, the problem continue…

    I got exactly the same error on a new WP Install that I did today, but none of my other install have that problem.

    I did the `/** Database memory size */
    define (‘WP_MEMORY_LIMIT’, ‘64M’);` fix on my sites, and that normally fixes it.

    However, while typing this, I logged out and back in again, and it fixed it. Have you tried actually logging out ?

    This was exactly my problem too! I was getting very jealous of everyone who changed one or two lines of code and were victorious. My host gave me the same reply as erodleir, and when I tried it and it didn’t work they said they could have a look at it for me for $85! Fortunately I found a simple (no cost) solution here:

    In brief, create the php.ini file with the increased memory limit details in it (as above), then tell your .htaccess file where to find your php.ini file. Add this line to .htaccess:

    suPHP_ConfigPath /home/USERNAME/public_html

    Replace USERNAME with your own details (mine is my CPanel username). It seems the php.ini has to go in the same place you installed WordPress, so in my case this was public_html.

    I’d be interested to know if this works for anyone else, or if I’m an anomoly.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Problems with my php.ini and memory’ is closed to new replies.