[GH-ISSUE #576] Getting Error Cannot load configuration #413

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

Originally created by @khanakia on GitHub (Jun 17, 2021).
Original GitHub issue: https://github.com/prasathmani/tinyfilemanager/issues/576

I am getting error

Tiny File Manager
Error: Cannot load configuration

In order to fix the error i had include the global $CONFIG; in the top position. Please fix the issue in the source code also.

<?php
//Default Configuration
global $CONFIG;
$CONFIG = '{"lang":"en","error_reporting":false,"show_hidden":false,"hide_Cols":false,"calc_folder":false}';
Originally created by @khanakia on GitHub (Jun 17, 2021). Original GitHub issue: https://github.com/prasathmani/tinyfilemanager/issues/576 I am getting error ``` Tiny File Manager Error: Cannot load configuration ``` In order to fix the error i had include the `global $CONFIG;` in the top position. Please fix the issue in the source code also. ``` <?php //Default Configuration global $CONFIG; $CONFIG = '{"lang":"en","error_reporting":false,"show_hidden":false,"hide_Cols":false,"calc_folder":false}'; ```
Author
Owner

@dotola commented on GitHub (Jan 9, 2023):

@khanakia where i supposed add the code ?

<!-- gh-comment-id:1375662514 --> @dotola commented on GitHub (Jan 9, 2023): @khanakia where i supposed add the code ?
Author
Owner

@khanakia commented on GitHub (Jan 9, 2023):

@dotola I cannot remember but i believe you need to add this global $CONFIG;
in this file https://github.com/prasathmani/tinyfilemanager/blob/master/tinyfilemanager.php at the top of the file

<!-- gh-comment-id:1375752748 --> @khanakia commented on GitHub (Jan 9, 2023): @dotola I cannot remember but i believe you need to add this `global $CONFIG;` in this file https://github.com/prasathmani/tinyfilemanager/blob/master/tinyfilemanager.php at the top of the file
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#413
No description provided.