• Resolved jvox

    (@jvox)


    My blog was working without issue this morning, then suddenly began serving up this error:

    Parse error: parse error, unexpected T_VARIABLE in /hsphere/local/home/blog/wp-includes/functions.php on line 48

    Lines 45 through 48 of functions.php are as follows:

    function current_time($type, $gmt = 0) {
    switch ($type) {
    case ‘mysql’:
    if ( $gmt ) $d = gmdate(‘Y-í-d H:i:s’);

    Ideas?

Viewing 5 replies - 1 through 5 (of 5 total)
  • Where within your blog is this occuring?

    Care to post a link to it?

    In my files the line #48 looks like this:

    if ( $gmt ) $d = gmdate('Y-m-d H:i:s');

    Did you ever edit WP core files???

    Thread Starter jvox

    (@jvox)

    No, I haven’t edited anything…blog was working fine this morning, then all the sudden gone.

    This is occuring at the root of the blog.

    Try to upload a fresh copy of the wp-includes/functions.php file.

    Thread Starter jvox

    (@jvox)

    That worked, thanks. Why/how would my functions.php file have gotten corrupt? I haven’t modified anything since the 2.3.1 upgrade.

Viewing 5 replies - 1 through 5 (of 5 total)

The topic ‘sudden parse error occuring…’ is closed to new replies.