Closed rnehring closed 4 years ago
Hmm, is that only when fetching stats, but does the sites list get populated in the correct manner? Which controller version is this on?
It does populate the name of the site correctly, and it's when I try to do anything from the collections drop down... controller version 5.11.50
One thing you can do is to enable debug mode in the config file. This will generate debug info in the webserver error logs and in the browser console.
Version shouldn't be the issue, tested with that and also works with 5.12.22.
Have a close look at the webserver error log as well. There should be hints there.
This is the debug errror I'm getting:
[Wed Nov 13 11:37:21 2019] [error] [client 10.10.0.8] PHP Parse error: syntax error, unexpected '.', expecting ')' in /var/www/unifi/ajax/fetch_collection.php on line 141, referer: http://10.10.0.3/unifi/
I may have figured it out.... looks like my PHP is only 5.4, not 5.6...
Are you using a PHP version lower than 5.6?
That line uses a feature in PHP that is supported from 5.6 onwards: https://www.php.net/manual/en/functions.arguments.php#functions.variable-arg-list.new
Any chance there's a way to polyfill, or do I just need to upgrade?
Apparently we just missed each other;-)
Wouldn't know... I suggest you upgrade, 5.4 is roughly 6 years old.
Yea, that'd probably be best. Just don't have access to do it right now. Thanks for all your hard work and effort on this!
I've managed to install the browser, and it's connecting to my controller, but when I try to pull any stats I'm getting a 500 error from the fetch_collection.php in the Javascript console. Any ideas?