Wordpress Tips  

How to increase php wordpress memory limit

Add your comment


  1. kobizeit
    April 14, 2010
    11:58 am

    Thanks, your solution 3 worked for me.


  2. Andy
    April 14, 2010
    12:46 pm

    Hello kobizeit,

    I’m glad to hear it helped your wordpress enjoying more memory.

    Andy

  3. I actually got some info here, See here How to increase wordpress memory limit, I tried number #3, very helpful. Thank you.


  4. Eyl
    July 6, 2010
    3:43 am

    thanks, my meory limit is changed to 64MB but the fatal error still appear. im using wordpress 3.0 with mystique theme.


  5. Andy
    July 10, 2010
    4:35 pm

    WordPress Works well with 32MB. yours is great memory. problem can be from incompatible plugins with theme.Try deactivating all plugins


  6. Carlo
    August 14, 2010
    1:34 pm

    Great post bro!
    My compliments.
    A blank page also indicate to increase your php memory limit, right?

    Cheers


  7. Andy
    August 18, 2010
    8:46 am

    Yes Carlo! blank page also indicate to increase your php memory limit.


  8. Todd
    March 31, 2011
    7:12 pm

    Hi Andy,

    I am using WordPress 3.05 and have my memory set to 128M which seems to be more than enough. I also change the permissions of the wtc7uploads folder to 777 to make it writable to anyone, but the contact form 7 plugin will not work. Each time try to upload an image of more than 1mb to through a form on our website, I keep getting that exhausted error. I’ve been trying all the things you mentioned above but no luck. Do you have any ideas what it can be that is causing this exhausted issue. Thank so much.


  9. Andy
    April 9, 2011
    9:09 am

    Hello Todd,

    It might be limit of your php ini max file upload size. Try to increase upload size in your php.ini

    For example, Here are two ways to increase the limit on uploaded files to 20 MB:

    *1) Add the below to the relevant php.ini file (recommended, if you have access). Note that for some hosts this is a system-wide setting. However, for hosts running PHP as a CGI script with suexec (for example) you may be able to put these directives in a php.ini file in your domain root directory.
    o upload_max_filesize = 20M
    o post_max_size = 20M
    *2) OR add the below to your .htaccess file in your Drupal root directory.
    o php_value upload_max_filesize 20M
    o php_value post_max_size 20M

    I hope it Helped.
    Andy


  10. Yan
    June 14, 2011
    2:55 am

    It’s worked for me…
    Thanks a lot, but can you tell me about where I can find my php.ini? I mean the location of the file….


  11. Valentin
    July 27, 2011
    3:07 pm

    In the last Version of TPC Memory usage, you can see a new parameter. WP Memory. In my case Look image below. Yo can apreciate that my WP Memory is 32 MB and PHP is 64 MB.

    Can I increase the 32 Mb of WP Memory?

    http://screencast.com/t/EUALK8EKgY


  12. Andy
    July 27, 2011
    3:15 pm

    @Valentin
    Try adding this line to top of your wp-config.php file:
    define('WP_MEMORY_LIMIT', '64M');


  13. awwab
    September 13, 2011
    10:34 am

    Thanks its worked


  14. Steven Myers
    October 2, 2011
    3:52 pm

    THANK YOU SO MUCH! I was having issues with the pages becoming blank after saving the changes, emptying cache and etc in the admin panel.

    Adding the: define(‘WP_MEMORY_LIMIT’, ’64M’); (To the wp-config.php right above: define(‘DB_NAME’, ‘dbname’); worked perfectly!


  15. Boyuancy
    November 6, 2011
    12:45 pm

    Yes Valentin is right you have to add a “define” before the “(‘WP_MEMORY_LIMIT’, ’64M’)”

    revolutionyz.com


  16. Sajan Abbas
    December 21, 2011
    12:30 pm

    Thnx it works 4 mine wordpress


  17. lalit
    May 7, 2014
    12:07 pm

    thanks for asking to not add the wp_memory limit to bottom

    one little mistake is the varaibles arent enclosed in single quotes , so i got blank page after this update to wp-config file.

    please edit it,ideally it should be
    define(‘WP_MEMORY_LIMIT’, ’64M’);


  18. Ptutorial
    February 18, 2015
    6:09 am

    Thanks for got this idea….

RSS feed for comments on this post. TrackBack URL

Add your comment.





( DoFollow )

XHTML: You can use these tags: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>

Home | Themes | Plugins | Download | Forum | Freelance | Resume | Projects | Service | Contact | About
© Copyright 2015 Hecode.com