Skip to content
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

FastCGI-stderr: PHP Parse error: syntax error, unexpected 'const' (T_CONST), expecting variable (T_VARIABLE) in /var/www/html/admin/scripts/pi-hole/php/database.php on line 285 #2340

Closed
emilioramirez opened this issue Sep 8, 2022 · 2 comments · Fixed by #2342

Comments

@emilioramirez
Copy link

emilioramirez commented Sep 8, 2022

Versions

  • Pi-hole: v5.12 (Latest: v5.12)
  • AdminLTE: v5.14.2 (Latest: v5.14.2)
  • FTL: v5.16.3 (Latest: v5.17)

Platform

  • OS and version: Raspbian GNU/Linux 9 (stretch)
  • Platform: Raspberry Pi 2B

Expected behavior

The web interface loading the data (graphs, tables, etc) properly.

Actual behavior / bug

The web interface stop working properly, the sidebar works and render but the data does not load, for example, the dashboard or setting page does not load.

Steps to reproduce

Steps to reproduce the behavior:

  1. Go to '...'
  2. Click on '....'
  3. Scroll down to '....'
  4. See error

Debug Token

Screenshots

If applicable, add screenshots to help explain your problem.
screenshot

Additional context

_This happend after i run pihole -up today.

@rdwebdesign
Copy link
Member

Looks like this happens only if PHP version < 7.1.

@yubiuser
Copy link
Member

Fix released with https://discourse.pi-hole.net/t/pi-hole-ftl-v5-18-web-v5-15-and-core-v5-12-1-released/57894

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

Successfully merging a pull request may close this issue.

3 participants