Title: sudden parse error occuring&#8230;
Last modified: August 19, 2016

---

# sudden parse error occuring…

 *  Resolved [jvox](https://wordpress.org/support/users/jvox/)
 * (@jvox)
 * [18 years, 5 months ago](https://wordpress.org/support/topic/sudden-parse-error-occuring/)
 * 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)

 *  [theapparatus](https://wordpress.org/support/users/theapparatus/)
 * (@theapparatus)
 * [18 years, 5 months ago](https://wordpress.org/support/topic/sudden-parse-error-occuring/#post-669664)
 * Where within your blog is this occuring?
 * Care to post a link to it?
 *  [moshu](https://wordpress.org/support/users/moshu/)
 * (@moshu)
 * [18 years, 5 months ago](https://wordpress.org/support/topic/sudden-parse-error-occuring/#post-669665)
 * 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](https://wordpress.org/support/users/jvox/)
 * (@jvox)
 * [18 years, 5 months ago](https://wordpress.org/support/topic/sudden-parse-error-occuring/#post-669672)
 * 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.
 *  [moshu](https://wordpress.org/support/users/moshu/)
 * (@moshu)
 * [18 years, 5 months ago](https://wordpress.org/support/topic/sudden-parse-error-occuring/#post-669674)
 * Try to upload a fresh copy of the wp-includes/functions.php file.
 *  Thread Starter [jvox](https://wordpress.org/support/users/jvox/)
 * (@jvox)
 * [18 years, 5 months ago](https://wordpress.org/support/topic/sudden-parse-error-occuring/#post-669690)
 * 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.

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 5 replies
 * 3 participants
 * Last reply from: [jvox](https://wordpress.org/support/users/jvox/)
 * Last activity: [18 years, 5 months ago](https://wordpress.org/support/topic/sudden-parse-error-occuring/#post-669690)
 * Status: resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
