EricWebsite
Member
Hi,
I came across some messages:
1) in the backend
on all lists - Deprecated: Creation of dynamic property Joomla\CMS\Form\Form::$model is deprecated in ..../administrator/components/com_fabrik/models/list.php on line 127
on list plugins tab: same, on line 158
after adding a plugin: same on line 45, 288, 353
2) in the frontend
similar warnings
calc element: if I put the following in:
I get an error in a red box :
"An error has occurred with a eval'd field - please inform the web-site owner. Debug: Eval exception : location_calc (id 178): reFormatFormJoins() : use Joomla\CMS\Factory;$db = Factory::getContainer()->get('DatabaseDriver');$query = $db->getQuery(true); : Since joomla/database 2.2.0: The parameter $new is deprecated and will be removed in 4.0, use Joomla\Database\DatabaseDriver::createQuery() instead."
But the page is still loaded.
If I try the suggested code:
I get a real error:
"Non-static method Joomla\Database\DatabaseDriver::createQuery() cannot be called statically"
System details:
Fabrik 4.1 git date 06-04
PHP 8.2.20
Joomla 5.1.1
Debug enabled
I came across some messages:
1) in the backend
on all lists - Deprecated: Creation of dynamic property Joomla\CMS\Form\Form::$model is deprecated in ..../administrator/components/com_fabrik/models/list.php on line 127
on list plugins tab: same, on line 158
after adding a plugin: same on line 45, 288, 353
2) in the frontend
similar warnings
calc element: if I put the following in:
Code:
use Joomla\CMS\Factory;
$db = Factory::getContainer()->get('DatabaseDriver');
$query = $db->getQuery(true);
"An error has occurred with a eval'd field - please inform the web-site owner. Debug: Eval exception : location_calc (id 178): reFormatFormJoins() : use Joomla\CMS\Factory;$db = Factory::getContainer()->get('DatabaseDriver');$query = $db->getQuery(true); : Since joomla/database 2.2.0: The parameter $new is deprecated and will be removed in 4.0, use Joomla\Database\DatabaseDriver::createQuery() instead."
But the page is still loaded.
If I try the suggested code:
Code:
$query = Joomla\Database\DatabaseDriver::createQuery();
"Non-static method Joomla\Database\DatabaseDriver::createQuery() cannot be called statically"
System details:
Fabrik 4.1 git date 06-04
PHP 8.2.20
Joomla 5.1.1
Debug enabled