• Hi, I am trying to update to 3.8 and get the following:

    Parse error: syntax error, unexpected T_ENCAPSED_AND_WHITESPACE, expecting ‘)’ in /opt/www/torregrossam/web/www.euro-freelancers.eu/wp-admin/includes/update-core.php on line 927

    I checked wp-admin/includes/update-core.php but line 927 does not even exist!!!

    I have deactivated all plugins and retried but same result.

    Thoughts anyone?

Viewing 5 replies - 1 through 5 (of 5 total)
  • Moderator t-p

    (@t-p)

    You probably introduced a syntax error in editing wp-config.php.
    1. Download wp-config.php (if you don’t have shell access).
    2. Open it in a text editor.
    3. Check that the first line contains nothing but <?php, and that there is no text before it (not even whitespace).
    4. Check that the last line contains nothing but ?>, and that there is no text after it (not even whitespace).
    5. If your text editor saves as Unicode, make sure it adds no byte order mark (BOM). Most Unicode-enabled text editors do not inform the user whether it adds a BOM to files; if so, try using a different text editor.
    6. Save the file, upload it again if necessary, and reload the page in your browser.

    Thread Starter speed101

    (@speed101)

    Thank you Tara.

    My first line is: <?php

    My last line is: require_once(ABSPATH . ‘wp-settings.php’);

    So shall I add one final line with: ?>

    Moderator t-p

    (@t-p)

    What you have looks fine.

    So shall I add one final line with: ?>

    no.

    Have you tried:
    – deactivating ALL plugins temporarily to see if this resolves the problem. If this works, re-activate them individually (one-by-one) to find the problematic plugin(s). If you can’t get into your admin dashboard, try deactivating via FTP or SFTP or whatever file management application your host provides. If applicable, also remember to deactivate any plugins in the mu-plugins folder. The easiest way is to rename that folder to mu-plugins-old.
    – switching to the unedited default, core-bundled Theme (such as Twenty Twelve, Twenty Thirteen or Twenty Fourteen) for a moment using the WP dashboard to rule out any theme-specific issue. If you don’t have access to your admin area, you can switch to the default theme by renaming your current theme’s folder in wp-content/themes and adding “-old” to the end of the folder name using via FTP or SFTP or whatever file management application your host provides. Alternately, you can remove other themes except the default theme. That will force your site to use it.
    resetting the plugins folder by FTP or PhpMyAdmin. Sometimes, an apparently inactive plugin can still cause problems (because the hooks remain unless plugins completely removed or some plugins stick around in cached files. So by renaming the folder, you break them and force them inactive).
    – If the above troubleshooting steps fail to resolve the issue, try manually re-uploading all files and folders EXCEPT the wp-config.php file and the /wp-content/ directory from a fresh download of WordPress. Make sure that you delete the old copies of files & folder before uploading the new ones. Read the Manual Update directions first!

    Thread Starter speed101

    (@speed101)

    Thanks. I had to manually re-do the installation and it worked. Same thing happened for the last update, I had to re-do the installation manually. I wonder why this happens all the time (site crashes every time I attempt to click the button from the dashboard to update to the latest WP). Could it be because I am always using the same wp-config template (from an old installation) regardless of the update?

    Unlikely. Sounds more like an interrupted upgrade – possibly caused by a rather slow server at your end.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Parse error in trying to update to 3.8’ is closed to new replies.