Mailing List Archive

Ticket #13324: count(): Parameter must be an array or an object that implements Countable!!
#13324: count(): Parameter must be an array or an object that implements
Countable!!
--------------------------------------+--------------------------
Reporter: zarthan | Owner: (none)
Type: Bug Report - General | Status: new
Priority: minor | Milestone: needs_triage
Component: MythTV - General | Version: v29.1
Severity: low | Keywords: Mythweb
Ticket locked: 0 |
--------------------------------------+--------------------------
This error shows up when creating a new schedule in Mythweb.

Warning at /usr/share/mythtv/bindings/php/MythBackend.php, line 194:
!!NoTrans: count(): Parameter must be an array or an object that
implements Countable!!

From searching it may be related to PHP 7.2
I am running Xubuntu 18.04.1

--
Ticket URL: <https://code.mythtv.org/trac/ticket/13324>
MythTV <http://www.mythtv.org>
MythTV Media Center
Re: Ticket #13324: count(): Parameter must be an array or an object that implements Countable!! [ In reply to ]
#13324: count(): Parameter must be an array or an object that implements
Countable!!
----------------------------------+------------------------------
Reporter: zarthan | Owner: (none)
Type: Bug Report - General | Status: new
Priority: minor | Milestone: needs_triage
Component: MythTV - General | Version: v29.1
Severity: low | Resolution:
Keywords: Mythweb | Ticket locked: 0
----------------------------------+------------------------------
Changes (by zarthan):

* Attachment "version.txt" added.


--
Ticket URL: <https://code.mythtv.org/trac/ticket/13324>
MythTV <http://www.mythtv.org>
MythTV Media Center
Re: Ticket #13324: count(): Parameter must be an array or an object that implements Countable!! [ In reply to ]
#13324: count(): Parameter must be an array or an object that implements
Countable!!
----------------------------------+------------------------------
Reporter: zarthan | Owner: (none)
Type: Bug Report - General | Status: new
Priority: minor | Milestone: needs_triage
Component: MythTV - General | Version: v29.1
Severity: low | Resolution:
Keywords: Mythweb | Ticket locked: 0
----------------------------------+------------------------------

Comment (by zarthan):

A post by daraden suggested a fix which I tried. It seems to make the
error go away.
https://forum.mythtv.org/viewtopic.php?p=13823#p13823

--
Ticket URL: <https://code.mythtv.org/trac/ticket/13324#comment:1>
MythTV <http://www.mythtv.org>
MythTV Media Center
Re: Ticket #13324: count(): Parameter must be an array or an object that implements Countable!! [ In reply to ]
#13324: count(): Parameter must be an array or an object that implements
Countable!!
----------------------------------+------------------------------
Reporter: zarthan | Owner: (none)
Type: Bug Report - General | Status: new
Priority: minor | Milestone: needs_triage
Component: MythTV - General | Version: v29.1
Severity: low | Resolution:
Keywords: Mythweb | Ticket locked: 0
----------------------------------+------------------------------

Comment (by jr3us):

Note that this error in the title occurs elsewhere in the Mythweb code. An
example below is:

Warning at /usr/share/mythtv/mythweb/modules/tv/tmpl/default/detail.php,
line 845:
!!NoTrans: count(): Parameter must be an array or an object that
implements Countable!!


I did a search through detail.php and there are 3 additional count
references that could have the same above problem.

I will add this comment to the forum post as well.

--
Ticket URL: <https://code.mythtv.org/trac/ticket/13324#comment:2>
MythTV <http://www.mythtv.org>
MythTV Media Center
Re: Ticket #13324: count(): Parameter must be an array or an object that implements Countable!! [ In reply to ]
#13324: count(): Parameter must be an array or an object that implements
Countable!!
----------------------------------+------------------------------
Reporter: zarthan | Owner: (none)
Type: Bug Report - General | Status: closed
Priority: minor | Milestone: needs_triage
Component: MythTV - General | Version: v29.1
Severity: low | Resolution: Duplicate
Keywords: Mythweb | Ticket locked: 0
----------------------------------+------------------------------
Changes (by Stuart Auchterlonie):

* status: new => closed
* resolution: => Duplicate


Comment:

Duplicate of #13406

--
Ticket URL: <https://code.mythtv.org/trac/ticket/13324#comment:3>
MythTV <http://www.mythtv.org>
MythTV Media Center
Re: Ticket #13324: count(): Parameter must be an array or an object that implements Countable!! [ In reply to ]
#13324: count(): Parameter must be an array or an object that implements
Countable!!
----------------------------------+---------------------------
Reporter: zarthan | Owner: (none)
Type: Bug Report - General | Status: closed
Priority: minor | Milestone: 29.2
Component: MythTV - General | Version: v29.1
Severity: low | Resolution: Duplicate
Keywords: Mythweb | Ticket locked: 0
----------------------------------+---------------------------
Changes (by Stuart Auchterlonie):

* milestone: needs_triage => 29.2


--
Ticket URL: <https://code.mythtv.org/trac/ticket/13324#comment:4>
MythTV <http://www.mythtv.org>
MythTV Media Center
Re: Ticket #13324: count(): Parameter must be an array or an object that implements Countable!! [ In reply to ]
#13324: count(): Parameter must be an array or an object that implements
Countable!!
----------------------------------+-------------------------------------
Reporter: zarthan | Owner: Stuart Auchterlonie
Type: Bug Report - General | Status: closed
Priority: minor | Milestone: 29.2
Component: MythTV - General | Version: v29.1
Severity: low | Resolution: Duplicate
Keywords: Mythweb | Ticket locked: 0
----------------------------------+-------------------------------------
Changes (by Stuart Auchterlonie):

* owner: (none) => Stuart Auchterlonie


--
Ticket URL: <https://code.mythtv.org/trac/ticket/13324#comment:5>
MythTV <http://www.mythtv.org>
MythTV Media Center