VirtueMart Forum

VirtueMart 2 + 3 + 4 => Virtuemart Development and bug reports => Topic started by: lsk on May 12, 2018, 15:36:07 PM

Title: PHP Warning: count():
Post by: lsk on May 12, 2018, 15:36:07 PM
Joomla 3.8.7 + VM 3.2.14 + php 7.2

PHP Warning:  count(): Parameter must be an array or an object that implements Countable in site/administrator/components/com_virtuemart/helpers/vmpagination.php on line 192

One mistake.  How to fix the problem?
Title: Re: PHP Warning: count():
Post by: Studio 42 on May 12, 2018, 17:05:14 PM
Disable PHP error reporting in Joomla config and wait for the fix.
Title: Re: PHP Warning: count():
Post by: Milbo on May 24, 2018, 09:22:09 AM
change the line from

if(count( $sequenceArray>1 )) {


to

if(count( $sequenceArray)>1 ) {
Title: Re: PHP Warning: count():
Post by: Solucionesvigo on April 11, 2019, 13:11:52 PM
Este error sigue en la version actual, si estuviera el proyecto en github o similar podríamos corregirlo y tu simplemente aceptarlo.
Un saludo

Virtuemart es rey de los ecomerce de Joomla  :-)

This error continues in the current version, if the project was in github or similar we could correct it and you simply accept it.
a greeting

Virtuemart is king of the Joomla ecomerce :-)
Title: Re: PHP Warning: count():
Post by: jenkinhill on April 11, 2019, 13:37:57 PM
The error is not present in latest available version - VM3.4.5.10040  ( http://dev.virtuemart.net/projects/virtuemart/files )
Title: Re: PHP Warning: count():
Post by: Solucionesvigo on April 11, 2019, 23:19:43 PM
Gracias..

Yo es que vi en la versión que descargo aquí. https://virtuemart.net/download (https://virtuemart.net/download)

Thank you .. I was that I saw in the version that you download here  https://virtuemart.net/download (https://virtuemart.net/download)