• All of a sudden, I can’t edit one of my WP pages: http://rspace.org/membership/

    This page is full of php goodness (thanks to Exec PHP plugin) to display content according to user’s membership level (s2member plugin php constants and such).

    I get this error:
    Fatal error: Allowed memory size of 67108864 bytes exhausted (tried to allocate 8192 bytes) in /home6/rspaceor/public_html/wp-includes/functions.php on line 3720

    This is the line in question:

    // Pull only the first 8kiB of the file in.
    $file_data = fread( $fp, 8192 );

    If I try to edit that line to allow 10240kb for example, I get a new error:
    Fatal error: Allowed memory size of 67108864 bytes exhausted (tried to allocate 7680 bytes) in /home6/rspaceor/public_html/wp-includes/kses.php(415) : runtime-created function on line 1

    Anyone have any idea what gives?

Viewing 2 replies - 1 through 2 (of 2 total)
  • try one of these

    1. Try adding this line to your wp-config.php file:
    define('WP_MEMORY_LIMIT', '64M');
    
    2. 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)
    
    3. If you don't have access to PHP.ini try adding this to an .htaccess file:
    php_value memory_limit 64M
    Thread Starter pcwriter

    (@pcwriter)

    Thanks Samuel.

    My php.ini has been set to 64Mb for quite some time, but it didn’t occur to me to crank that higher. Setting it to 128Mb solved things. Thanks again.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Error functions.php on line 3720’ is closed to new replies.