1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Increase Wordpress Memory?

Discussion in 'Blogging' started by xxf8xx, Dec 8, 2009.

  1. xxf8xx

    xxf8xx Supreme Member

    Joined:
    Nov 30, 2009
    Messages:
    1,321
    Likes Received:
    596
    Occupation:
    IM
    Hey guys I searched but couldn't find an answer here. I tried adding Syncontent to my plugins and when I tried to activate it I got a fatal error saying that my Wordpress memory has been exhausted. Is there anyway to increase it?

    Thx
     
  2. mgs

    mgs Regular Member

    Joined:
    Apr 7, 2007
    Messages:
    219
    Likes Received:
    170
    Occupation:
    Professional Web Developer, Internet Marketing, SE
    Location:
    Land of Dreams
    Just go to wp-setting.php using your cpanel file manger in your blog root, find this line :

    Code:
    define('WP_MEMORY_LIMIT', '32M');
    and replace 32 with 64 .. .
     
  3. xxf8xx

    xxf8xx Supreme Member

    Joined:
    Nov 30, 2009
    Messages:
    1,321
    Likes Received:
    596
    Occupation:
    IM
    thanks!

    EDIT: Ok, so I did what you told me to do. But I still get this error:

    Fatal error: Allowed memory size of 33554432 bytes exhausted (tried to allocate 7 bytes) in .../SynDB.php on line 42033
     
    Last edited: Dec 8, 2009
  4. surferket

    surferket Junior Member

    Joined:
    Dec 5, 2008
    Messages:
    179
    Likes Received:
    116
    Look for it in your php.ini
    This file is usually in your root where you have setup your WP.

    Change to the following by doing a Ctrl+F:
    memory_limit = 64M
    upload_max_filesize = 20M
    post_max_size = 20M
     
  5. xxf8xx

    xxf8xx Supreme Member

    Joined:
    Nov 30, 2009
    Messages:
    1,321
    Likes Received:
    596
    Occupation:
    IM
    alright apparently it just didn't save the first time I edited it. Thanks guys.
     
  6. mgs

    mgs Regular Member

    Joined:
    Apr 7, 2007
    Messages:
    219
    Likes Received:
    170
    Occupation:
    Professional Web Developer, Internet Marketing, SE
    Location:
    Land of Dreams
    Yep that's it :), it depend to your hosting/server memory limit but if you face any problems like that again just increase it to 80, 128 .. .