Title: Parse error: wp-admin/includes/post.php on line 1842
Last modified: August 20, 2016

---

# Parse error: wp-admin/includes/post.php on line 1842

 *  [LCD-NYC](https://wordpress.org/support/users/lcd-nyc/)
 * (@lcd-nyc)
 * [14 years, 7 months ago](https://wordpress.org/support/topic/parse-error-wp-adminincludespostphp-on-line-1842/)
 * I copied my wp site from a sub-directory to the root folder. It works fine EXCEPT
   for the fact that I can’t login to the backend. This has become a major pain.
 * When i go to wp-login.php and enter my credentials, I get this error message:
   
   Parse error: syntax error, unexpected $end in /home/content/b/x/w/bxwebdesigner/
   html/wp-admin/includes/post.php on line 1842
 * Does anyone know the solution to this Major Problem?
    Thanks in advance for any
   help.
 * I’m using wp version 3.2.1

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

 *  [Christi Nickerson](https://wordpress.org/support/users/christini/)
 * (@christini)
 * [14 years, 7 months ago](https://wordpress.org/support/topic/parse-error-wp-adminincludespostphp-on-line-1842/#post-2354158)
 * Hello LCD-NYC,
 * Did you update the WordPress address and Site address as outlined here:
 * [http://codex.wordpress.org/Moving_WordPress](http://codex.wordpress.org/Moving_WordPress)
 * Another possibility is the index.php file in wp-admin was somehow corrupted during
   the copying. I would recommend re-copying that particular index file or loading
   a fresh copy of that file from a fresh WordPress download just to make sure you
   have a clean copy of the index file.
 * Hope this helps!
 *  Thread Starter [LCD-NYC](https://wordpress.org/support/users/lcd-nyc/)
 * (@lcd-nyc)
 * [14 years, 7 months ago](https://wordpress.org/support/topic/parse-error-wp-adminincludespostphp-on-line-1842/#post-2354160)
 * Yes, I did update the WordPress address and Site address as outlined in:
    [http://codex.wordpress.org/Moving_WordPress](http://codex.wordpress.org/Moving_WordPress)
 * I also disabled the permalink before moving the files, by changing it to default.
 * I just re-copied the index.php file to the wp-admin folder as you suggested, 
   no luck. I even uploaded a fresh copy, still no luck.
 *  Moderator [keesiemeijer](https://wordpress.org/support/users/keesiemeijer/)
 * (@keesiemeijer)
 * [14 years, 7 months ago](https://wordpress.org/support/topic/parse-error-wp-adminincludespostphp-on-line-1842/#post-2354172)
 * If you’re not sure you changed the urls correctly:
    [http://codex.wordpress.org/Changing_The_Site_URL#Edit_functions.php](http://codex.wordpress.org/Changing_The_Site_URL#Edit_functions.php)
   try changing the urls to your new url with the functions.php method by using 
   [FTP](http://codex.wordpress.org/FTP_Clients) or whatever file management application
   your host provides. Then check if you can login.
 * otherwise try:
    – switching to the default theme by renaming your current theme’s
   folder in wp-content/themes using [FTP](http://codex.wordpress.org/FTP_Clients)
   or whatever file management application your host provides.
 * – [resetting the plugins folder](http://codex.wordpress.org/FAQ_Troubleshooting#How_to_deactivate_all_plugins_when_not_able_to_access_the_administrative_menus.3F)
   by using [FTP](http://codex.wordpress.org/FTP_Clients) or whatever file management
   application your host provides. Sometimes, an apparently inactive plugin can 
   still cause problems.
 * – re-uploading all files & folders – except the **wp-content folder** from a **
   fresh** download of WordPress. by using [FTP](http://codex.wordpress.org/FTP_Clients)
   or whatever file management application your host provides.
 * – renaming or deleting the [.htaccess](http://codex.wordpress.org/Using_Permalinks#Where.27s_my_.htaccess_file.3F)
   file by using [FTP](http://codex.wordpress.org/FTP_Clients) or whatever file 
   management application your host provides. If you delete it make a backup first.
 *  [Christi Nickerson](https://wordpress.org/support/users/christini/)
 * (@christini)
 * [14 years, 7 months ago](https://wordpress.org/support/topic/parse-error-wp-adminincludespostphp-on-line-1842/#post-2354178)
 * Hello again LCD-NYC,
 * I’m sorry I didn’t notice this earlier. Try uploading a fresh post.php file to
   your wp-admin/includes folder since that seems to be the file causing the issue
   based off of the error message you are seeing:
 * > Parse error: syntax error, unexpected $end in /home/content/b/x/w/bxwebdesigner/
   > html/wp-admin/includes/post.php on line 1842
 * Let me know how it turns out.
 *  Thread Starter [LCD-NYC](https://wordpress.org/support/users/lcd-nyc/)
 * (@lcd-nyc)
 * [14 years, 7 months ago](https://wordpress.org/support/topic/parse-error-wp-adminincludespostphp-on-line-1842/#post-2354184)
 * Hi ChristiNi,
 * You are a Life-Saver lol. I uploaded a fresh post.php to wp-admin/includes folder
   and it’s now working. Apparently the post.php file got corrupted somehow from
   the move. I guess i was so busy thinking of other possible reasons that I didn’t
   try that 1st. I’ve been a programmer for over 20 years and totally over-thunked
   it lol. Thanks again.
 *  [Christi Nickerson](https://wordpress.org/support/users/christini/)
 * (@christini)
 * [14 years, 7 months ago](https://wordpress.org/support/topic/parse-error-wp-adminincludespostphp-on-line-1842/#post-2354207)
 * You’re welcome LCD-NYC,
 * Happy to help!

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

The topic ‘Parse error: wp-admin/includes/post.php on line 1842’ is closed to new
replies.

## Tags

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

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 6 replies
 * 3 participants
 * Last reply from: [Christi Nickerson](https://wordpress.org/support/users/christini/)
 * Last activity: [14 years, 7 months ago](https://wordpress.org/support/topic/parse-error-wp-adminincludespostphp-on-line-1842/#post-2354207)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
