• 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)
  • Hello LCD-NYC,

    Did you update the WordPress address and Site address as outlined here:

    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

    (@lcd-nyc)

    Yes, I did update the WordPress address and Site address as outlined in:
    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

    (@keesiemeijer)

    If you’re not sure you changed the urls correctly:
    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 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 or whatever file management application your host provides.

    resetting the plugins folder by using FTP 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 or whatever file management application your host provides.

    – renaming or deleting the .htaccess file by using FTP or whatever file management application your host provides. If you delete it make a backup first.

    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

    (@lcd-nyc)

    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.

    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.