Helping you Build Your Own Social Network!

Faster, better and easier!

Error functions.php (WP) on line 3720

(4 posts) (2 voices)

  1. I posted this in the forums at wp.org but thought I'd give a shout out to all the friendly & savvy folks in this neighborhood too :-)

    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?

    PS - I've got to get to work now, so I'll check back this afternoon (EST)
    Thanks to anyone who takes a shot!

    Posted 1 year ago #
  2. Hi Patrick,
    Try to increase the memory limit in php.ini
    set this directive "memory_limit" to 128 MB if possible or above and it will solve the issue.

    Posted 1 year ago #
  3. Hi Brajesh,

    Limit has been set at 64Mb for quite some time (strange it should bug up only now), but that's what I was thinking at lunch. I'm at work right now, so I'll try when I get home. I'll let you know.

    :-)

    Posted 1 year ago #
  4. Yay! That did it.

    I guess the page was riding the limit of 64Mb and somehow just topped out... by itself.

    Posted 1 year ago #

Reply

You must log in to post.