[GH-ISSUE #40] PHP Warnings #27

Closed
opened 2026-03-02 15:55:06 +03:00 by kerem · 7 comments
Owner

Originally created by @TigersWay on GitHub (Apr 20, 2018).
Original GitHub issue: https://github.com/prasathmani/tinyfilemanager/issues/40

I get:

  • Warning: is_file(): open_basedir restriction in effect...." at line 669,
  • and "Warning: is_dir(): open_basedir restriction in effect...." at line 671.
    But nothing I can change on my shared hoster side.

A basic error_reporting(0) seems to be working, but probably not helping an embedded version.
Any better idea?

        if (is_file($new_path)) {
            $files[] = $file;
        } elseif (is_dir($new_path) && $file != '.' && $file != '..' && !in_array($file, $GLOBALS['exclude_folders'])) {
            $folders[] = $file;
        }
Originally created by @TigersWay on GitHub (Apr 20, 2018). Original GitHub issue: https://github.com/prasathmani/tinyfilemanager/issues/40 I get: - `Warning: is_file(): open_basedir restriction in effect`...." at line 669, - and "`Warning: is_dir(): open_basedir restriction in effect`...." at line 671. But nothing I can change on my shared hoster side. A basic error_reporting(0) seems to be working, but probably not helping an embedded version. Any better idea? ``` if (is_file($new_path)) { $files[] = $file; } elseif (is_dir($new_path) && $file != '.' && $file != '..' && !in_array($file, $GLOBALS['exclude_folders'])) { $folders[] = $file; } ```
kerem 2026-03-02 15:55:06 +03:00
  • closed this issue
  • added the
    bug
    label
Author
Owner

@TigersWay commented on GitHub (Jul 9, 2018):

Nothing? Not even a comment? That's still a real bug.

<!-- gh-comment-id:403508157 --> @TigersWay commented on GitHub (Jul 9, 2018): Nothing? Not even a comment? That's still a real bug.
Author
Owner

@Igreky commented on GitHub (Aug 1, 2018):

I also have this problem

<!-- gh-comment-id:409518270 --> @Igreky commented on GitHub (Aug 1, 2018): I also have this problem
Author
Owner

@TigersWay commented on GitHub (Aug 6, 2018):

@Igreky Anything specific/particular on your hosting or environment?
Mine is a french hoster kinda "old" :-(

<!-- gh-comment-id:410575807 --> @TigersWay commented on GitHub (Aug 6, 2018): @Igreky Anything specific/particular on your hosting or environment? Mine is a french hoster kinda "old" :-(
Author
Owner

@TigersWay commented on GitHub (Oct 19, 2018):

Just tried the master branch and love everything :-)

But still had to add the basic error_reporting(0) at the top of the file to make it usable.

<!-- gh-comment-id:431262674 --> @TigersWay commented on GitHub (Oct 19, 2018): Just tried the master branch and love everything :-) But still had to add the basic `error_reporting(0)` at the top of the file to make it usable.
Author
Owner

@prasathmani commented on GitHub (Oct 19, 2018):

@TigersWay which version of PHP your using. bcz i'm not getting any error and my error reporting is on.

<!-- gh-comment-id:431264278 --> @prasathmani commented on GitHub (Oct 19, 2018): @TigersWay which version of PHP your using. bcz i'm not getting any error and my error reporting is on.
Author
Owner

@TigersWay commented on GitHub (Oct 19, 2018):

it's working nearly everywhere, so I don't really think the fault is yours.

it gives me the 2 warnings on a french webhoster called "Free.fr" running php 5.6.34

(They are known to "play" with php functions)

<!-- gh-comment-id:431264955 --> @TigersWay commented on GitHub (Oct 19, 2018): it's working nearly everywhere, so I don't really think the fault is yours. it gives me the 2 warnings on a french webhoster called "Free.fr" running php 5.6.34 (They are known to "play" with php functions)
Author
Owner

@prasathmani commented on GitHub (Oct 19, 2018):

Okay. Thanks for update.

<!-- gh-comment-id:431266000 --> @prasathmani commented on GitHub (Oct 19, 2018): Okay. Thanks for update.
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#27
No description provided.