mirror of
https://github.com/telephone/LookingGlass.git
synced 2026-04-24 23:46:02 +03:00
[GH-ISSUE #44] Fatal error: Uncaught Error: Function name must be a string in /ajax.php:44 #28
Labels
No labels
enhancement
enhancement
enhancement
pull-request
v1
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/LookingGlass#28
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @Smir on GitHub (Aug 15, 2017).
Original GitHub issue: https://github.com/telephone/LookingGlass/issues/44
Just installed and can't ping, traceroute or anything to do with that area.
Fatal error: Uncaught Error: Function name must be a string in /ajax.php:44 Stack trace: #0 {main} thrown in /ajax.php on line 44Line 44 of ajax.php reads;
$output = $lg->$_GET['cmd']($_GET['host']);Regards
@Volodya1234 commented on GitHub (Aug 16, 2017):
I will do this string for case:
@Smir commented on GitHub (Aug 16, 2017):
Whats this for??
@Volodya1234 commented on GitHub (Aug 28, 2017):
This is fix.
Not all people are programmers and sometimes come to the github to find a solution to the problem and nothing more. I wrote a simple solution to this problem.
@Smir commented on GitHub (Aug 28, 2017):
I have no idea what you posted?
do you mean overwrite line44 with what you posted?
@Volodya1234 commented on GitHub (Aug 28, 2017):
Yes. It is necessary to rewrite this function in line44 to the code that I wrote above.
@Pulseeey commented on GitHub (Aug 30, 2017):
I just rewrote it to this, PHP 7 likes it now.
$output = $lg->{$_GET['cmd']}$_GET['host']);@InsaneSplash commented on GitHub (Oct 1, 2017):
$output = $lg->{$_GET['cmd']}($_GET['host']);
There is a missing ( in @Volodya1234 's code
@yavg commented on GitHub (Jan 26, 2021):
after i change $output = $lg->$_GET'cmd';
to $output = $lg->{$_GET['cmd']}($_GET['host']);
my lg is work now.
@herzadigital commented on GitHub (Jan 19, 2025):
Can you explain where to put this precisely?