Problem with element using calc plugin

bclayton

New Member
I have an element that was created in Fabrik 3 and worked to number the rows in a list so that I could see the number of rows within a certain time frame.
The element used the calc plugin. Here is the code used in the element:

$posta = JRequest::get( 'post' );
$list_id = $posta['listid'];
$start = (INT) $posta['limitstart'.$list_id];
$db =& JFactory::getDBO();
$myQuery = "SET @RowNo = if(@RowNo,@RowNo,".$start.")";
$db->setQuery($myQuery);
$db->query();
$myQuery = "SELECT @RowNo:=@RowNo+1";
$db->setQuery($myQuery);
$kount=$db->loadResult();
return $kount;

In Joomla 4.2.8 and Fabrik 4 Gamma2, php 8.1 the list fails to load and I get this error:

0 Class "JRequest" not found

What changes do I need to make?

Thanks for the help and for the great work of the developers!
 
Last edited:
We are in need of some funding.
More details.

Thank you.

Members online

Back
Top