Welcome, Guest
Username: Password: Remember me

TOPIC: 0 count(): Argument #1 ($value) must be of type Co

0 count(): Argument #1 ($value) must be of type Co 16 Dec 2021 19:49 #15900

  • thierry
  • thierry's Avatar
  • Offline
  • Senior Member
  • Posts: 52
  • Thank you received: 2
  • Karma: -3
Good evening,

I have an issue with my two components that were working pretty well on your sand box.
I have same message displayed for both of them : 0 count(): Argument #1 ($value) must be of type Countable|array, null given

My configuration is :
PHP exécuté sur Linux webdb02.lwspanel.com 5.9.0-0.bpo.5-amd64 #1 SMP Debian 5.9.15-1~bpo10+1 (2020-12-31) x86_64
Type de la base de données mysql
Version de la base de données 5.5.5-10.3.31-MariaDB-0+deb10u1
Interclassement de la base de données utf8_general_ci
Collation de la connexion à la base de données utf8mb4_general_ci
Version de PHP 8.0.13
Serveur web Apache/2.4.25 (Debian)
Serveur web pour interface PHP fpm-fcgi
Version de Joomla Joomla! 3.10.3 Stable [ Daraja ] 21-October-2021 06:44 GMT
Version de la plateforme Joomla! Joomla Platform 13.1.0 Stable [ Curiosity ] 24-Apr-2013 00:00 GMT

My question is : you (j-cook) are making components for Joomla 3.9 aren't you ?
So is there any incompatibility with Jommla 3.10.3 ?

Do I hqve qny chance to make my component under Joomla 3.10 within your system ?

All the website was down due to he installation of J-cook component, Thank you for your advises.

Regards
The administrator has disabled public write access.

0 count(): Argument #1 ($value) must be of type Co 17 Dec 2021 05:53 #15901

  • thierry
  • thierry's Avatar
  • Offline
  • Senior Member
  • Posts: 52
  • Thank you received: 2
  • Karma: -3
Hi every body,

I change the PHP on LWS server. Now I am using PHP 7.4.26.
I still have a Warning: count(): Parameter must be an array or an object that implements Countable in /htdocs/libraries/jdom/dom.php on line 384.

I have no knowledge on PHP. Is somebody can help me to solve this issue ?

Thank you very much. Regards
The administrator has disabled public write access.

0 count(): Argument #1 ($value) must be of type Co 07 Jan 2022 19:09 #15908

  • Nicolas
  • Nicolas's Avatar
  • Offline
  • Premium Member
  • Posts: 83
  • Thank you received: 12
  • Karma: 6
Bonjour Thierry

Il n'y a pas d'incompatibilités sur Joomla 3.10 qui est une passerelle pour Joomla 4 les versions 3X et 4 fonctionnent donc en même temps (a quelques exceptions) Les composants J3.9 fonctionnent donc correctement.
Les deux messages que je vois sont des incompatibilités avec tes version de php je suppose.
Perso, je tourne en 7.4.9 et je n'ai pas de message d'erreur
The administrator has disabled public write access.

0 count(): Argument #1 ($value) must be of type Co 24 Mar 2022 02:09 #15928

  • organicwebs
  • organicwebs's Avatar
  • Offline
  • Premium Member
  • Chris
  • Posts: 133
  • Thank you received: 21
  • Karma: 4
Some of JCook's code is not compatible with PHP8. A few tweaks to the code are required.

Visit this post to see a collection of bug fixes about this error.
j-cook.pro/index.php/support/19-new-tick...hp-8-compatibitility
Just call me Chris :)
Last Edit: 24 Mar 2022 03:05 by organicwebs.
The administrator has disabled public write access.
Time to create page: 0.084 seconds

Get Started