Forums

[resolved] sudden parse error occuring... (6 posts)

  1. jvox
    Member
    Posted 4 years ago #

    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?

  2. theapparatus
    Member
    Posted 4 years ago #

    Where within your blog is this occuring?

    Care to post a link to it?

  3. moshu
    Member
    Posted 4 years ago #

    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???

  4. jvox
    Member
    Posted 4 years ago #

    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.

  5. moshu
    Member
    Posted 4 years ago #

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

  6. jvox
    Member
    Posted 4 years ago #

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

Topic Closed

This topic has been closed to new replies.

About this Topic