Forums

Unable to add new plugins due to fatal error class-pclzip.php on line 1524 (2 posts)

  1. wp2010natis
    Member
    Posted 1 year ago #

    Hello all,

    I am unable to add/upload new plugins from the wp admin contro panel of my website.
    http://www.antonioalcocer.com

    I am getting always the following error message:
    Fatal error: Out of memory (allocated 32243712) (tried to allocate 77824 bytes) in /homepages/8/d315650598/htdocs/wordpress/wp-admin/includes/class-pclzip.php on line 1524

    How do I solve the problem?
    Thank you very mucho for your help and suport,
    Best regards,
    Antonio

  2. James
    Happiness Engineer
    Posted 1 year ago #

    Here are four ways to increase PHP's memory allocation:

    1. If you have access to your PHP.ini file, change the line in PHP.ini
    If your line shows 32M try 64M:
    memory_limit = 64M ; Maximum amount of memory a script may consume (64MB)
    
    2. If you don't have access to PHP.ini try adding this to a .htaccess file:
    php_value memory_limit 64M
    
    3. Try adding this line to your wp-config.php file:
    Increasing memory allocated to PHP
    define('WP_MEMORY_LIMIT', '64M');
    
    4. Talk to your host.

Topic Closed

This topic has been closed to new replies.

About this Topic