telephone / LookingGlass

A user-friendly PHP Looking Glass
MIT License
1.25k stars 345 forks source link

PHP Fatal error: Uncaught Error: Function name must be a string in /var/www/html/ajax.php on line 44 #52

Open qhgh opened 5 years ago

qhgh commented 5 years ago

Hi there,

Just tried to install this on a fresh CentOS 7.6 server with Apache + PHP 7.1

The GUI loads fine, however, the 'Run Test' button does nothing and the Apache error log shows:

Example: 8.8.8.8 > PING > Run Test ;

[Mon Nov 04 10:32:32.835920 2019] [php7:notice] [pid 8707] [client x.x.x.x:64865] PHP Notice:  Array to string conversion in /var/www/html/ajax.php on line 44, referer: http://x.x.x.x/
[Mon Nov 04 10:32:32.836287 2019] [php7:notice] [pid 8707] [client x.x.x.x:64865] PHP Notice:  Undefined property: Telephone\\LookingGlass::$Array in /var/www/html/ajax.php on line 44, referer: http://x.x.x.x/
[Mon Nov 04 10:32:32.836519 2019] [php7:error] [pid 8707] [client x.x.x.x:64865] PHP Fatal error:  Uncaught Error: Function name must be a string in /var/www/html/ajax.php:44\nStack trace:\n#0 {main}\n  thrown in /var/www/html/ajax.php on line 44, referer: http://x.x.x.x/

Could anyone offer any advice on this please?

Thanks!

C.

qhgh commented 5 years ago

Switch to PHP 5.3 and it works :)

NetiSHTer22 commented 9 months ago

I have the same problems, but i cannot install php 5.3 with command apt install php5.3 . Please, help this.. Fyi, i used Ubuntu 20.04 Server with apache2.