Title: Syntax error unexpected ending in post.php
Last modified: May 2, 2021

---

# Syntax error unexpected ending in post.php

 *  Resolved [buzdar1](https://wordpress.org/support/users/buzdar1/)
 * (@buzdar1)
 * [5 years, 1 month ago](https://wordpress.org/support/topic/syntax-error-unexpected-ending-in-post-php/)
 * Parse error: syntax error, unexpected ‘}’, expecting end of file in /home/Website/
   public_html/wp-admin/includes/post.php on line 1422
    How can I solve this issue?
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fsyntax-error-unexpected-ending-in-post-php%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

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

 *  Anonymous User 14808221
 * (@anonymized-14808221)
 * [5 years, 1 month ago](https://wordpress.org/support/topic/syntax-error-unexpected-ending-in-post-php/#post-14389805)
 * I would say the file was unintentionally edited or else corrupted, because this
   issue doesn’t happen in any to me known install and the file is a core WordPress
   file that should never be edited. The error you see means that somewhere before
   the closing `}` there is (for example) a missing `;` in the code, and that is
   simply not possible if the file is original and not edited (otherwise, all WordPress
   installs would have this error).
 * If you can access your WordPress Admin > Dashboard > Updates, then try to click
   the “Reinstall WordPress” button there. This will re-install WordPress without
   changing the database or the Content of your site and could resolve the issue.
 * If you cannot access the Admin area, try to download a fresh copy of WordPress
   and get the relevant file from the downloaded folder, then upload that file to
   your server at the precise same location replacing the existing one.
    So you 
   would get the file `wp-admin/includes/post.php` from the freshly downloaded WordPress
   and upload it to your server, at the same place, replacing the existing `wp-admin/
   includes/post.php`
 * That would ensure the file is original and hence should resolve the error.
 * Perform a backup before you proceed so you can safely “go back” in case anything
   goes wrong at all.
 * Let us know it this resolves the issue!
 *  Thread Starter [buzdar1](https://wordpress.org/support/users/buzdar1/)
 * (@buzdar1)
 * [5 years, 1 month ago](https://wordpress.org/support/topic/syntax-error-unexpected-ending-in-post-php/#post-14393570)
 * @bedas Thanks.
    Problem solved

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

The topic ‘Syntax error unexpected ending in post.php’ is closed to new replies.

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 2 replies
 * 2 participants
 * Last reply from: [buzdar1](https://wordpress.org/support/users/buzdar1/)
 * Last activity: [5 years, 1 month ago](https://wordpress.org/support/topic/syntax-error-unexpected-ending-in-post-php/#post-14393570)
 * Status: resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
