[GH-ISSUE #205] Bug Hide Perms/Owner columns #146

Closed
opened 2026-03-02 15:56:11 +03:00 by kerem · 4 comments
Owner

Originally created by @weado on GitHub (Aug 9, 2019).
Original GitHub issue: https://github.com/prasathmani/tinyfilemanager/issues/205

Debian Buster PHP 7

When I put on true the "Hide Perms/Owner columns" button, the colums don't hide.

Thank you this file manager, it's very nice to work with it.

Originally created by @weado on GitHub (Aug 9, 2019). Original GitHub issue: https://github.com/prasathmani/tinyfilemanager/issues/205 `Debian Buster PHP 7` When I put on true the "Hide Perms/Owner columns" button, the colums don't hide. Thank you this file manager, it's very nice to work with it.
kerem closed this issue 2026-03-02 15:56:11 +03:00
Author
Owner

@weado commented on GitHub (Aug 9, 2019):

Works fine when you put 'true' in the first line of php file. My www-data user is owner of all file in the folder.

<!-- gh-comment-id:519904375 --> @weado commented on GitHub (Aug 9, 2019): Works fine when you put 'true' in the first line of php file. My www-data user is owner of all file in the folder.
Author
Owner

@prasathmani commented on GitHub (Aug 9, 2019):

@weado check your file write permission, tinyfilemanager required write permission to update the settings

<!-- gh-comment-id:519909236 --> @prasathmani commented on GitHub (Aug 9, 2019): @weado check your file write permission, tinyfilemanager required write permission to update the settings
Author
Owner

@EV-soft commented on GitHub (Aug 9, 2019):

Another possible cause:

  function save()
    {
        global $root_path;  // default: $root_path = $_SERVER['DOCUMENT_ROOT'];
        $fm_file = $root_path.$_SERVER["PHP_SELF"];
        $var_name = '$CONFIG';
        ....

If user has edited $root_path so it is not $_SERVER['DOCUMENT_ROOT'] save will fail
A better solution:

  function save()
    {
        $fm_file = __FILE__;   // Independent of user set root_path
        $var_name = '$CONFIG';
        ....
<!-- gh-comment-id:519942053 --> @EV-soft commented on GitHub (Aug 9, 2019): Another possible cause: ``` function save() { global $root_path; // default: $root_path = $_SERVER['DOCUMENT_ROOT']; $fm_file = $root_path.$_SERVER["PHP_SELF"]; $var_name = '$CONFIG'; .... ``` If user has edited $root_path so it is not $_SERVER['DOCUMENT_ROOT'] save will fail A better solution: ``` function save() { $fm_file = __FILE__; // Independent of user set root_path $var_name = '$CONFIG'; .... ```
Author
Owner

@prasathmani commented on GitHub (Sep 17, 2019):

hope it works for you

<!-- gh-comment-id:532069813 --> @prasathmani commented on GitHub (Sep 17, 2019): hope it works for you
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/tinyfilemanager#146
No description provided.