[GH-ISSUE #173] PHP Warning: count() #124

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

Originally created by @ghost on GitHub (May 13, 2019).
Original GitHub issue: https://github.com/prasathmani/tinyfilemanager/issues/173

Platform
Ubuntu 18.04 LTS
PHP: 7

message

PHP Warning: count(): Parameter must be an array or an object that implements Countable in /.../tinyfilemanager.php on line 629

Originally created by @ghost on GitHub (May 13, 2019). Original GitHub issue: https://github.com/prasathmani/tinyfilemanager/issues/173 **Platform** Ubuntu 18.04 LTS PHP: 7 **message** > PHP Warning: count(): Parameter must be an array or an object that implements Countable in /.../tinyfilemanager.php on line 629
kerem 2026-03-02 15:55:59 +03:00
Author
Owner

@prasathmani commented on GitHub (May 13, 2019):

@Kevin-at-Navigram, When did you getting this warning

<!-- gh-comment-id:491762721 --> @prasathmani commented on GitHub (May 13, 2019): @Kevin-at-Navigram, When did you getting this warning
Author
Owner

@ghost commented on GitHub (May 13, 2019):

I was using the preview functionality to look at a text file.
MIME-type: text/plain
Charset: utf-8

<!-- gh-comment-id:491764047 --> @ghost commented on GitHub (May 13, 2019): I was using the preview functionality to look at a text file. MIME-type: text/plain Charset: utf-8
Author
Owner

@prasathmani commented on GitHub (May 13, 2019):

quick fix done, check now @Kevin-at-Navigram

<!-- gh-comment-id:491767555 --> @prasathmani commented on GitHub (May 13, 2019): quick fix done, check now @Kevin-at-Navigram
Author
Owner

@ghost commented on GitHub (May 13, 2019):

Confirmed. Warning gone.

Next question, does this break some functionality?

<!-- gh-comment-id:491779967 --> @ghost commented on GitHub (May 13, 2019): Confirmed. Warning gone. Next question, does this break some functionality?
Author
Owner

@prasathmani commented on GitHub (May 13, 2019):

No, definitely not.

<!-- gh-comment-id:491857010 --> @prasathmani commented on GitHub (May 13, 2019): No, definitely not.
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#124
No description provided.