Cannot upgrade plugins automatically

Discussion in 'WordPress' started by swappy_18, Sep 2, 2009.

  1. #1
    Whenever I try to upgrade plugins manually I get this following error
    "Fatal error: Allowed memory size of 33554432 bytes exhausted (tried to allocate 314310 bytes) in /home/public_html/wp-includes/http.php on line 1324"

    Also I can see some errors on my desktop
    [​IMG]

    Any help will be appreciated...
     
    swappy_18, Sep 2, 2009 IP
  2. dynashox

    dynashox Premium Member Staff

    Messages:
    8,662
    Likes Received:
    563
    Best Answers:
    3
    Trophy Points:
    335
    #2
    This error is because of Wordpress exceeding it’s predetermined memory limit. All you need to do is change the memory limit from “32M” to “64M" in wp-settings.php file.

    Change :

    if ( !defined('WP_MEMORY_LIMIT') )
    	define('WP_MEMORY_LIMIT', '32M');
    PHP:
    to :

    if ( !defined('WP_MEMORY_LIMIT') )
    	define('WP_MEMORY_LIMIT', '64M');
    PHP:
    - Dynashox -
     
    dynashox, Sep 2, 2009 IP
  3. theapparatus

    theapparatus Peon

    Messages:
    2,925
    Likes Received:
    119
    Best Answers:
    0
    Trophy Points:
    0
    #3
    Try that first but you may have to get your host to increase the limit. Some hosts apply restrictions on what endusers can adjust for php settings.
     
    theapparatus, Sep 2, 2009 IP
  4. swappy_18

    swappy_18 Peon

    Messages:
    220
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    0
    #4
    My host restricts it to 32mb...any other to fix this prob?
     
    swappy_18, Sep 2, 2009 IP
  5. theapparatus

    theapparatus Peon

    Messages:
    2,925
    Likes Received:
    119
    Best Answers:
    0
    Trophy Points:
    0
    #5
    Update the plugin manually then. You may want to consider a new host as as Wordpress (and other CMSes as well) grows, you're going to need more memory soon anyway.
     
    theapparatus, Sep 2, 2009 IP
  6. ads2help

    ads2help Peon

    Messages:
    2,142
    Likes Received:
    67
    Best Answers:
    1
    Trophy Points:
    0
    #6
    Maybe you should switch to other host then.

    Switching between host is easy nowadays, most hosting provider have free switching service.
     
    ads2help, Sep 2, 2009 IP
  7. swappy_18

    swappy_18 Peon

    Messages:
    220
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    0
    #7
    But how can I understand which plugin is consuming more memory...?
     
    swappy_18, Sep 2, 2009 IP
  8. theapparatus

    theapparatus Peon

    Messages:
    2,925
    Likes Received:
    119
    Best Answers:
    0
    Trophy Points:
    0
    #8
    Well you can remove all of the plugins and replace them one at a time. To be honest though, that's rather time consuming and a pain.

    I really see this as a customer service issue though. 32 megs assigned to php scripts is rather low with todays scripts. For example, I couldn't run a decent sized Gallery install with php set to 32 megs.

    +1 for a new host. Make sure you ask about the php memory limit before signing up with a new host. You can use that as a test to see how responsive their support is.
     
    theapparatus, Sep 3, 2009 IP
  9. kumarsaran

    kumarsaran Peon

    Messages:
    145
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #9
    Ask your host to increase the limit. Get in to your control panel and see by yourself.
     
    kumarsaran, Sep 4, 2009 IP
  10. theapparatus

    theapparatus Peon

    Messages:
    2,925
    Likes Received:
    119
    Best Answers:
    0
    Trophy Points:
    0
    #10
    I believe the poster has stated that they have asked the host and the response was no, no increase was possible.
     
    theapparatus, Sep 4, 2009 IP