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

Open
opened 2026-02-28 00:40:15 +03:00 by kerem · 2 comments
Owner

Originally created by @qhgh on GitHub (Nov 4, 2019).
Original GitHub issue: https://github.com/telephone/LookingGlass/issues/52

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.

Originally created by @qhgh on GitHub (Nov 4, 2019). Original GitHub issue: https://github.com/telephone/LookingGlass/issues/52 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.
Author
Owner

@qhgh commented on GitHub (Nov 4, 2019):

Switch to PHP 5.3 and it works :)

<!-- gh-comment-id:549422322 --> @qhgh commented on GitHub (Nov 4, 2019): Switch to PHP 5.3 and it works :)
Author
Owner

@NetiSHTer22 commented on GitHub (Feb 10, 2024):

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.

<!-- gh-comment-id:1937075455 --> @NetiSHTer22 commented on GitHub (Feb 10, 2024): 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.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/LookingGlass#36
No description provided.