Skip to content

New setup fails with Parse error: syntax error in setup/databases.inc.php line 111 #5

Description

@SjoerdBe

Parse error: syntax error, unexpected '' (T_ENCAPSED_AND_WHITESPACE), expecting '-' or identifier (T_STRING) or variable (T_VARIABLE) or number (T_NUM_STRING) in setup/databases.inc.php on line 111

This issue appears on the system of one of my clients (PHP 7.2.4)

The problem is that ENDDB; the way it is in this file now is not valid. In PHP, the heredoc closing identifier must be:

  • the only thing on that line (no indentation, spaces, or tabs)
  • followed immediately by a semicolon on the next line or at the end of the same line

Quickfix: Remove the spaces in the file by hand. Maybe updated in next version?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions