Author Topic: PHP Warning: count():  (Read 205 times)

lsk

  • Beginner
  • *
  • Posts: 32
PHP Warning: count():
« 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?

Studio 42

  • Contributing Developer
  • Sr. Member
  • *
  • Posts: 3241
  • Joomla & Virtuemart addon developper
    • Studio 42 - Virtuemart & Joomla extentions
  • VirtueMart Version: 2.6 & 3.0.x.y
Re: PHP Warning: count():
« Reply #1 on: May 12, 2018, 17:05:14 pm »
Disable PHP error reporting in Joomla config and wait for the fix.

Milbo

  • Virtuemart Projectleader
  • Administrator
  • Super Hero
  • *
  • Posts: 9607
  • VM3.2 Cached and Optimized
    • VM3 Extensions
  • VirtueMart Version: VirtueMart 3 on joomla 3
Re: PHP Warning: count():
« Reply #2 on: May 24, 2018, 09:22:09 am »
change the line from
Code: [Select]
if(count( $sequenceArray>1 )) {

to
Code: [Select]
if(count( $sequenceArray)>1 ) {
I should fix your bug, please support the VirtueMart project and become a member
______________________________________
Extensions approved by the core team: http://extensions.virtuemart.net/