Skip to content

PHP parse error in config.php #1313

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
aimfireready opened this issue Apr 23, 2025 · 1 comment
Open

PHP parse error in config.php #1313

aimfireready opened this issue Apr 23, 2025 · 1 comment

Comments

@aimfireready
Copy link

Hello, I just installed TFM on Yunohost and uploaded a few files to test it out.

When I went to load the page again a few minutes later, it won't load at all and returns HTTP ERROR 500.

/var/log/nginx/files.DOMAIN.com-error.log shows:
PHP message: PHP Parse error: syntax error, unexpected identifier "is" in /var/www/tinyfilemanager/config.php on line 5" while reading response header from upstream...

Env:

  • YunoHost v. 12.0.14 (stable)
  • TinyFileManager v. 2.6~ynh1

Please advise.

@smalos
Copy link
Contributor

smalos commented Apr 23, 2025

Try removing the comment block:

/*
#################################################################################################################
This is an OPTIONAL configuration file. rename this file into config.php to use this configuration
The role of this file is to make updating of "tinyfilemanager.php" easier.
So you can:
-Feel free to remove completely this file and configure "tinyfilemanager.php" as a single file application.
or
-Put inside this file all the static configuration you want and forgot to configure "tinyfilemanager.php".
#################################################################################################################
*/

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants