• Resolved aholub

    (@aholub)


    An attempt to run https://…/blog/wp-admin/install.php fails with the error:

    Parse error: syntax error, unexpected ‘{‘ in /nfs/…/blog/wp-includes/functions.php on line 2872

    I checked the file, and it seems complete, so this is not a partial-download or truncation issue (5278 lines are present, and the file ends with a legitimate close brace terminating mysql_to_rfc3339(...). Also, the brace nesting in the function that contains line 2872 seems correct.

    The PHP version is: PHP 5.2.17 (cli) (built: Apr 1 2016 09:14:22)

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

    (@t-p)

    The PHP version is: PHP 5.2.17

    Please review: https://ww.wp.xz.cn/about/requirements/

    @tara – 5.2.17 is greater than 5.2.4… _requirements_ are different from the recommendations 😉

    @aholub – if you have a you have a problem in /wp-includes, the first thing to do is reinstall WordPress Core. Odds are though that the unbalance brace may be elsewhere.

    How did you install WordPress? Have you checked wp-config for syntax errors?

    Thread Starter aholub

    (@aholub)

    I’ve resolved it. Apache was using a different PHP version than the one that was available on the command line. Fixed it in httpd.conf. Thanks, everybody, for your help.

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘Installation fails with syntax error on line 2872 (wp-includes/function.php)’ is closed to new replies.