[resolved] upgrade.php Parse Error after manually copying WP files (3.7.1) (3 posts)

  1. neoikon
    Posted 1 year ago #

    I am trying to manually upgrade my WP from 3.6.1 to 3.7.1. I've followed the steps... de-activated all plugins, copied all files, etc.

    When I go to /wp-admin/upgrade.php in order to upgrade the database, I get this error:

    Parse error: syntax error, unexpected T_PRIVATE in <PATH>\wp-admin\includes\screen.php on line 154

    The site comes up (thankfully), but I cannot access the admin site (thus, I can't reactivate my security plugins!)

    Please help!

  2. neoikon
    Posted 1 year ago #


    I commented out this line in /wp-admin/includes/admin.php
    require_once(ABSPATH . 'wp-admin/includes/screen.php');

    screen.php is the page that was giving the error above.

    After doing this, I got the correct "update database" dialog, which succeeded! (maybe a bad thing, because now it's harder to revert)

    I uncommented out that line after the database was updated.

    Now I get this error:

    Fatal error: Call to undefined function set_current_screen() in <path>\wp-admin\admin.php on line 181

  3. neoikon
    Posted 1 year ago #


    Ha, so apparently there were some files corrupted when copied over via http://FTP... just random, big chunks of code missing from the the middle of files.

    Yeah, that could cause problems...

    So, I set the DB version back to v3.6.1, re-copied over the entire /wp-admin folder, re-updated the DB, and now all is well!

    I used this link to set the DB version back:

    Mental note, after copying files, perform a "sync" to identify any problems of file sizes not matching local to remote.

Topic Closed

This topic has been closed to new replies.

About this Topic