Error on form submission

ontarget

Active Member
On form Submission and redirect to the list view I get:

Warning: count(): Parameter must be an array or an object that implements Countable in /home/xxxxxxxxx/1920.xxxxxxxxx.ie/components/com_fabrik/models/element.php on line 4332

Any ideas what would cause this?
Could it be a calculation on one of the elements for a row count in a list? (Element >List view Settings > Calculations)
 
That line number in current github doesn't match up with anything that could cause that warning, so I can't really tell you. The closest line which could cause that is to do with filters, getting the type of filter (basically checking to see if there is a range filter).

Can you either a) update to latest github and give me the line number again, or b) check your file and see if line 4332 is the count() in the getFilterType() function.

-- hugh
 
Hi Hugh - thanks for the reply

/components/com_fabrik/models/elements.php reads:


/**
* Get the filter type: the element filter_type property unless a ranged querystring is used
*
* @since 3.0.7
*
* @return string
*/
protected function getFilterType()
{
$element = $this->getElement();
$type = $element->filter_type;
$name = $this->getFullName(true, false);
$qsFilter = $this->app->input->get($name, array(), 'array');
$qsValues = FArrayHelper::getValue($qsFilter, 'value', array());

if (count($qsValues) > 1)
{
$type = $type === 'hidden' ? 'range-hidden' : 'range';
}

return $type;
}
 
Nope, that doesn't help me. I need to know where line number 4332 is.

Use something like Notepad++ to get line numbers, if you don't already have an editor that shows you.

-- hugh
 
We are in need of some funding.
More details.

Thank you.

Members online

Back
Top