Tiny Tiny RSS: Community

[RESOLVED] PHP Parse error: syntax error, unexpected 'DB_PORT' (T_STRING), expecting ',' or ')' Password issues or Blank Page


#1

PLEASE READ THIS BEFORE POSTING: Read before posting / reporting bugs

Describe the problem you’re having:

PHP Parse error: syntax error, unexpected 'DB_PORT' (T_STRING), expecting ',' or ')' in /var/www/html/tt-rss/config.php on line 11

If possible include steps to reproduce the problem:

Setup config.php with a password that includes the special characters * or /

tt-rss version (including git commit id):

Commit ID: c30f5e1811

Platform (i.e. Linux distro, PHP, PostgreSQL, etc) versions:

Ubuntu 16.04.3 4.4.0-62-generic
PHP 7.0.22-0ubuntu0.16.04.1 (cli) ( NTS )
psql (9.5.10)

Please provide any additional information below:

Simply providing a topic that people can search for since it took me the better part of 2 days to resolve this issue with no information on PHP website or these forums about it.

Long Story short, after some testing I found that if you have a password with the special characters of either * or / in your config.php PHP will interpret them and you will receive the above error in your Apache2 logs or you will simply get a blank page after running the install.

Single Quotes did not affect the password either way.

I also have verified that the characters {}_ and - all are fine in the password. No issues arose from those. I have not validated any other special characters, yet.


#2

probably could’ve used single quotes around the value


#3

Was in single quotes.