• Hi guys

    I have this error on my site

    Fatal error: Out of memory (allocated 3932160) (tried to allocate 1792 bytes) in 
    
    /home/...../public_html/wp-includes/link-template.php on line 760
    
     Fatal error: Out of memory (allocated 4980736) (tried to allocate 7168 bytes) in 
    
    /home/...../public_html/wp-includes/comment.php on line 1252
    
     Fatal error: Out of memory (allocated 9961472) (tried to allocate 12849 bytes) in 
    
    /home/...../public_html/wp-includes/pomo/streams.php on line 134
    
     Fatal error: Out of memory (allocated 7077888) (tried to allocate 28672 bytes) in 
    
    /home/...../public_html/wp-includes/class-http.php on line 1456
    
     Fatal error: Out of memory (allocated 1310720) (tried to allocate 20 bytes) in 
    
    /home/...../public_html/wp-includes/plugin.php on line 81

    I remove all the plugins and theme, but the problem persists and i Edit the file wp-

    config and add define(‘WP_MEMORY_LIMIT’, ‘256M’);
    and i clean the database using wp-optimize and menual on the phpmyadmin

    what the problem ??

Viewing 1 replies (of 1 total)
  • Moderator James Huff

    (@macmanx)

    That wp-config option was deprecated a while back, WordPress now automatically tries to use as much memory as it needs within the limits of PHP’s memory allocation.

    Here are three ways to increase PHP’s memory allocation:

    1. If you can edit or override the system php.ini file, increase the memory limit. For example, memory_limit = 256M

    2. If you cannot edit or override the system php.ini file, add php_value memory_limit 256M to your .htaccess file.

    3. If neither of these work, it’s time to ask your hosting provider to temporarily increase PHP’s memory allocation on your account. Keep in mind that most decent hosting providers allocate 32 MB to PHP under each account, and most decent hosting providers allow users to temporarily increase the memory allocation. If your hosting provider won’t accommodate you, perhaps it’s time to find a new hosting provider.

    (in the above examples, the limit is set to 256MB)

Viewing 1 replies (of 1 total)
  • The topic ‘Fatal error: Out of memory’ is closed to new replies.