Title: Parse error
Last modified: August 19, 2016

---

# Parse error

 *  [TiffanyNeill](https://wordpress.org/support/users/tiffanyneill/)
 * (@tiffanyneill)
 * [15 years, 6 months ago](https://wordpress.org/support/topic/parse-error-77/)
 * I was trying to manually upgrade to the latest version of WordPress and now I
   can’t get in to my blog at all (located [here](http://segnoseven.com/blog)). 
   All I get is this message:
 * **Parse error**: syntax error, unexpected T_STRING, expecting ‘(‘ in **D:\Hosting\
   5230522\html\blog\wp-config.php</strong on line ****77**
 * Help! I’m on a Mac and I can open up the wp-config.php file in Dashcode, and 
   I guess line 77 is the problem; but I’m not sure what I’m supposed to fix. Someone
   please tell me what to do!

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

 *  [Alex and Anthony](https://wordpress.org/support/users/alexandanthony/)
 * (@alexandanthony)
 * [15 years, 6 months ago](https://wordpress.org/support/topic/parse-error-77/#post-1813512)
 * please **backup your wordpress install and database before doing any of this**
   
   go download the latest version of wordpress and copy the wp-config-sample.php
   onto your website via ftp or how you usually do it, then open your wp-config.
   php in some notepad like program and copy all of your database info onto the 
   new wp-config-sample.php database info and save it then delete wp-config.php 
   and rename wp-config-sample.php to wp-config.php. I can do this for you if you’d
   like.
 *  Thread Starter [TiffanyNeill](https://wordpress.org/support/users/tiffanyneill/)
 * (@tiffanyneill)
 * [15 years, 6 months ago](https://wordpress.org/support/topic/parse-error-77/#post-1813514)
 * Hi Alex and Anthony,
 * I backed up the original version of my blog prior to the upgrade. And did the
   wp-config.php update. I was able to get my blog to show up again by restoring
   the original version, and now it’s showing a bunch of code at the top. The code
   looks like this:
 * users’) ) return true; } return false; } ?> or closed * [@param](https://wordpress.org/support/users/param/)
   int $post_id Post ID * [@return](https://wordpress.org/support/users/return/)
   bool $open */ function _close_comments_for_old_post( $open, $post_id ) { if (!
   $open ) return $open; if ( !get_option(‘close_comments_for_old_posts’) ) return
   $open; $days_old = (int) get_option(‘close_comments_days_old’); if ( !$days_old)
   return $open; $post = get_post($post_id); if ( time() – strtotime( $post->post_date_gmt)
   > ( $days_old * 24 * 60 * 60 ) ) return false; return $open; } ?> “; } add_action(‘
   admin_head’, ‘dolly_css’); ?>
 * –
 * How do I make that code up top go away?
 * PS Thanks for responding and offering to fix the code for me!

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

The topic ‘Parse error’ is closed to new replies.

## Tags

 * [installation error](https://wordpress.org/support/topic-tag/installation-error/)
 * [parse-error](https://wordpress.org/support/topic-tag/parse-error/)

 * In: [Installing WordPress](https://wordpress.org/support/forum/installation/)
 * 2 replies
 * 2 participants
 * Last reply from: [TiffanyNeill](https://wordpress.org/support/users/tiffanyneill/)
 * Last activity: [15 years, 6 months ago](https://wordpress.org/support/topic/parse-error-77/#post-1813514)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
