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

Parse error: syntax error, unexpected '[' in Grapher.php #55

Closed
d-zalewski opened this issue May 23, 2017 · 4 comments
Closed

Parse error: syntax error, unexpected '[' in Grapher.php #55

d-zalewski opened this issue May 23, 2017 · 4 comments
Labels

Comments

@d-zalewski
Copy link

Just tried latest checkout with icingaweb2 2.4.1 and grafana 4.3.1

Parse error: syntax error, unexpected '[' in /usr/share/icingaweb2/modules/grafana/library/Grafana/ProvidedHook/Grapher.php on line 156

My grafana module config:

[grafana]
host = "10.10.0.100/grafana"
protocol = "http"
defaultdashboard = "icinga2-default"
defaultdashboardstore = "db"
datasource = "influxdb"
accessmode = "direct"
directrefresh = "no"
height = "280"
width = "640"
enableLink = "yes"
usepublic = "no"
@Mikesch-mp
Copy link
Owner

Please post your module version and your php version.

@d-zalewski
Copy link
Author

root@ams-nms0 grafana]# grep Version module.info
Version: 1.1.5
[root@ams-nms0 grafana]# rpm -q php
php-5.3.3-49.el6.x86_64

@Mikesch-mp
Copy link
Owner

Mikesch-mp commented May 23, 2017

Yepp its your PHP Version. Really out of support already :) But i changed the code so it should work now also with PHP 5.3. But better consider to update thaat very soon. Please pull again and test if it working now.

Regards,

Carsten

@d-zalewski
Copy link
Author

Yeah its standard php version from centos 6.x . Just upgrade to latest 5.6.x and problems solved

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

No branches or pull requests

3 participants