jDownloads Support Forum

Older Versions => jDownloads 3.2 (Support ended) => Bugs => Topic started by: Analyst on 05.03.2018 23:01:19

Title: Warning: count(): Parameter must be an array or an object that implements Counta
Post by: Analyst on 05.03.2018 23:01:19
Hallo,
nach dem Update auf jdownloads V3.2.58 erhalte ich folgende Fehlermeldung: Warning: count(): Parameter must be an array or an object that implements Countable in \xampp\htdocs\cms\components\com_jdownloads\models\categories.php on line 164

Joomla 3.8.5
PHP 7.2.1
Mysql MySQLi 5.5.5-10.1.30-MariaDB
Title: Re: Warning: count(): Parameter must be an array or an object that implements Counta
Post by: Arno on 06.03.2018 11:37:35
Hallo,
die genannte Datei hat sich seit über zwei Jahren nicht verändert, auch nicht beim letzten Update.
Welche Datenstruktur hast du denn bei den Kategorien? Also die Anzahl von Haupt- und Unterkategorien? Ansonsten schick mir doch bitte einen Zugang oder Link via PM.
Title: Re: Warning: count(): Parameter must be an array or an object that implements Counta
Post by: Analyst on 18.03.2018 08:45:11
Hallo,
ich habe 16 Kategorien konfiguriert. Ich denke das PHP7 dieUrsache ist. 
Title: Re: Warning: count(): Parameter must be an array or an object that implements Counta
Post by: Arno on 18.03.2018 09:53:43
Ja scheint ein Problem mit PHP 7.2 zu sein. Ich werde die Woche mal v7.2 installieren und dann testen.
Title: Re: Warning: count(): Parameter must be an array or an object that implements Counta
Post by: Arno on 18.03.2018 10:56:05
Bitte kopiere die entpackte Datei unten über das Original in: /components/com_jdownloads/models und poste dann hier dann Ergebnis. Danke.

Natürlich kann man die Warnung auch einfach unterdrücken. Siehe pic.

[gelöscht durch Administrator]
Title: Re: Warning: count(): Parameter must be an array or an object that implements Counta
Post by: Analyst on 19.03.2018 00:16:05
Hallo,
die Fehlermeldung erscheint nicht mehr.

Was war das Problem ?
Gruß
Title: Re: Warning: count(): Parameter must be an array or an object that implements Counta
Post by: Arno on 19.03.2018 09:49:25
Änderungen in PHP 7.2.