Wordpress memory siz erroe

Discussion in 'WordPress' started by pakitonline, Nov 15, 2013.

  1. #1
    Hi friends
    i have problem in my WordPress website when i want to login with site.com/wp-admin i receive this error plz help me how to solve this problem because i can not have old backup of the site.


    ERROR

    Fatal error
    : Allowed memory size of 33554432 bytes exhausted (tried to allocate 1966080 bytes) in /home/khanial/public_html/wp-includes/wp-db.php on line 1031

    Thanks

    Hafeez Baig
     
    pakitonline, Nov 15, 2013 IP
  2. competent123

    competent123 Notable Member

    Messages:
    1,752
    Likes Received:
    71
    Best Answers:
    6
    Trophy Points:
    255
    #2
    Increasing memory allocated to PHP
    Also released with Version 2.5, the WP_MEMORY_LIMIT option allows you to specify the maximum amount of memory that can be consumed by PHP. This setting may be necessary in the event you receive a message such as "Allowed memory size of xxxxxx bytes exhausted".

    This setting increases PHP Memory only for WordPress, not other applications. By default, WordPress will attempt to increase memory allocated to PHP to 40MB (code is at beginning of wp-settings.php), so the setting in wp-config.php should reflect something higher than 40MB.

    WordPress will automatically check if PHP has been allocated less memory than the entered value before utilizing this function. For example, if PHP has been allocated 64MB, there is no need to set this value to 64M as WordPress will automatically use all 64MB if need be.

    Please note, this setting may not work if your host does not allow for increasing the PHP memory limit--in that event, contact your host to increase the PHP memory limit. Also, note that many hosts set the PHP limit at 8MB.

    Increase PHP Memory to 64MB

    Increase PHP Memory to 96MB

    When in the administration area, the memory can be increased or decreased from the WP_MEMORY_LIMIT by defining WP_MAX_MEMORY_LIMIT.

     
    competent123, Nov 15, 2013 IP
  3. Devtard

    Devtard Notable Member

    Messages:
    850
    Likes Received:
    133
    Best Answers:
    4
    Trophy Points:
    220
    #3
    You can deactivate resource-intensive plugins by renaming their folders via a FTP client, that might help.
     
    Devtard, Nov 15, 2013 IP
  4. pakitonline

    pakitonline Member

    Messages:
    48
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    26
    #4
     
    pakitonline, Nov 15, 2013 IP
  5. pakitonline

    pakitonline Member

    Messages:
    48
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    26
    #5
    Thanks

    competent123
     
    pakitonline, Nov 15, 2013 IP