WordPress.org

Forums

Problems with my php.ini and memory (5 posts)

  1. erodleir
    Member
    Posted 5 years ago #

    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...)

  2. bittup
    Member
    Posted 5 years ago #

    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.

  3. erodleir
    Member
    Posted 5 years ago #

    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...

  4. ABCDiamond
    Member
    Posted 5 years ago #

    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 ?

  5. KathleenH
    Member
    Posted 4 years ago #

    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: http://wiki.lunarpages.com/Create_php.ini

    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.

Topic Closed

This topic has been closed to new replies.

About this Topic