An error has occurred. 0 count(): Argument #1 ($value) must be of type Countable

Started by anex, July 14, 2024, 18:05:54 PM

Previous topic - Next topic

anex

Hello boys and girls. I have the following issue when I am trying to access my Vm shop. The installation is new.

Please be so kind to help :)

Margriet

Me too. Fresh install Joomla 5.1.2, PHP 8.2, VM 4.2.12
And in this thread problem is mentionned as well.

sohopros

We also see this error in VM ver. VirtueMart 4.2.12 11014 PHP 8.1.29 - recently updated. The error is here on the individual shopper screen: administrator/index.php?option=com_virtuemart&view=user&task=edit&virtuemart_user_id[]=5001

An error has occurred.

    0 count(): Argument #1 ($value) must be of type Countable|array, null given

Please help!

Jumbo!

Quote from: sohopros on July 26, 2024, 15:55:37 PMWe also see this error in VM ver. VirtueMart 4.2.12 11014 PHP 8.1.29 - recently updated. The error is here on the individual shopper screen: administrator/index.php?option=com_virtuemart&view=user&task=edit&virtuemart_user_id[]=5001

An error has occurred.

    0 count(): Argument #1 ($value) must be of type Countable|array, null given

Please help!

The solution is here: https://forum.virtuemart.net/index.php?topic=152013.0.

sohopros

Thanks Jumbo! We'll give that a try. Kind of amazing that we have to hack 3 core files to get the software to work, but I suppose that is "Brand Virtuemart". And now it will be un-updatable, or do you think this fix will be in the next release?

Jumbo!

Quote from: sohopros on July 26, 2024, 21:25:32 PMThanks Jumbo! We'll give that a try. Kind of amazing that we have to hack 3 core files to get the software to work, but I suppose that is "Brand Virtuemart". And now it will be un-updatable, or do you think this fix will be in the next release?

I believe my guess is as good as yours.

Milbo

sohopros
that was fixed in my local core one day later afte report and of course fixed in vm4.2.14, which was released a week after the release of vm4.2.12.

So members had this problem just a week and most members did not notice it, actually
Should I fix your bug, please support the VirtueMart project and become a member
______________________________________
Extensions approved by the core team: http://extensions.virtuemart.net/

Trond

I have the same problem now, on 4.3.4  It happens on some product pages, but not all, and only on child products. If I delete the child product and create a new one, the customers can order the child product a couple of times, then the error comes back, and I have to delete/create again. Is there a permanent fix that will work even after a new update?

Trond

Sorry, my mistake. That was the Joomla version. My Virtuemart version is 4.2.12. I will wait for the 4.2.14 to get available