Forums

First install - first problem! Parse error in update.php - what next? (3 posts)

  1. davenewt
    Member
    Posted 3 years ago #

    Just downloaded v2.6 after hearing so many great things... I'm developing a site for someone. Have set up SQL tables etc, created the initial config file as per instructions. But when I go to run the setup script, I get:

    Parse error: syntax error, unexpected $end in ......../wp-admin/includes/update.php on line 152

    Can someone please advise what I should do? I have tried re-uploading the directory. Should I download an earlier version from somewhere, or is there a simple fix, or something I stupidly overlooked? (apologies if this is the case)

    Thanks in advance.

    David.

  2. davenewt
    Member
    Posted 3 years ago #

    Ok, well, I saw what I think is an error in the code there:

    if ( strpos($plugin, '/') && $this_plugin_dir != $plugins_dir )

    Should have been

    if ( strpos($plugin, '/') && ( $this_plugin_dir != $plugins_dir )

    Yes?

    But then I got an error about an unexpected T_VARIABLE on line 154.

    Long story short, I commented out lines 152 to 155, and now I see the welcome screen. So I'll see if I'm OK from here on in.

    Hope I didn't skip something ultra-important. Looks harmless enough from here!

    D.

  3. Scott H
    Member
    Posted 3 years ago #

    Interesting, not sure why that line would cause the error. Your fix actually introduces a syntax error as it introduces an ( which isn't closed.

    That file is concerned with updating plugins automatically. If you don't have any plugins or always manually update them, you should be fine.

Topic Closed

This topic has been closed to new replies.

About this Topic