mirror of
https://github.com/telephone/LookingGlass.git
synced 2026-04-24 23:46:02 +03:00
[GH-ISSUE #46] run commands (mtr, ping , traceroute) not working #32
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#32
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 @dkraklan on GitHub (Jan 11, 2018).
Original GitHub issue: https://github.com/telephone/LookingGlass/issues/46
hello,
I've installed LookingGlass and installation went smooth, however when ever I input an IP and click run test it says loading for a half a second then goes back to run test and never provides any results.
I found an old issue suggesting to change to php 5.4 which i did. I've also tried php 7. I'm not sure what I'm missing any help would be greatly appreciated.
@ghost commented on GitHub (Jan 21, 2018):
Refer to:
https://github.com/telephone/LookingGlass/issues/44#issuecomment-333401402
Edit ajax.php and replace:
$output = $lg->$_GET['cmd']($_GET['host']);with
$output = $lg->{$_GET['cmd']}$_GET['host']);This works on all new PHP builds for me.
@dkraklan commented on GitHub (Jan 23, 2018):
Thank you! Are you able to explain what adding the curly braces does ?
@andrew867 commented on GitHub (Apr 4, 2018):
http://php.net/manual/en/migration70.incompatible.php
Changes to the handling of indirect variables, properties, and methods
Indirect access to variables, properties, and methods will now be evaluated strictly in left-to-right order, as opposed to the previous mix of special cases.
@maxigentr commented on GitHub (Sep 18, 2019):
You have to correct the 44th line as follows.
$output = $lg->{$_GET['cmd']}($_GET['host']);@damianharouff commented on GitHub (Jul 17, 2020):
Putting this here for my future self, and likely for other people: if mtr returns an empty box, but ping, traceroute, etc work, it's likely because mtr is suid:
chmod u-s /usr/sbin/mtr fixed it.
@kgrahul commented on GitHub (Sep 27, 2021):
I replaced that line but doesnt work
@umiseaz commented on GitHub (Aug 29, 2024):
Working on Ubuntu 20.04 and php7.4.3
@herzadigital commented on GitHub (Jan 19, 2025):
I still have problem with this... I have changed the line44 on ajax.php, but seems still not working...
@jackson01010101 commented on GitHub (Aug 26, 2025):
This is the correct one. Thanks a lot.