• Resolved buzdar1

    (@buzdar1)


    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 to see the link]

Viewing 2 replies - 1 through 2 (of 2 total)
  • Anonymous User 14808221

    (@anonymized-14808221)

    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

    (@buzdar1)

    @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.