ontarget
Active Member
Just upgraded to F4Gamma
I'm now getting the following error on the site with system debug turned on:
I know we can ignore the deprecated stuff...
An error has occurred with a eval'd field - please inform the web-site owner. Debug: Caught exception on eval of userid: Joomla\CMS\Factory::getUser() is deprecated. Load the user from the dependency injection container or via Joomla\CMS\Factory::getApplication()->getIdentity().
An error has occurred with a eval'd field - please inform the web-site owner. Debug: Caught exception on eval of full_name: Joomla\CMS\Factory::getUser() is deprecated. Load the user from the dependency injection container or via Joomla\CMS\Factory::getApplication()->getIdentity().
An error has occurred with a eval'd field - please inform the web-site owner. Debug: Caught exception on eval of email: Joomla\CMS\Factory::getUser() is deprecated. Load the user from the dependency injection container or via Joomla\CMS\Factory::getApplication()->getIdentity().
An error has occurred with a eval'd field - please inform the web-site owner. Debug: Caught exception on eval of TCN: Joomla\CMS\Factory::getUser() is deprecated. Load the user from the dependency injection container or via Joomla\CMS\Factory::getApplication()->getIdentity().
I have a 2 calc elements with the following:
Date Calc / convert
cleanup spaces in iban
When they are published the following error shows:
I tried to cast the variable to string with e.g
but the same error remains...
I'm now getting the following error on the site with system debug turned on:
I know we can ignore the deprecated stuff...
An error has occurred with a eval'd field - please inform the web-site owner. Debug: Caught exception on eval of userid: Joomla\CMS\Factory::getUser() is deprecated. Load the user from the dependency injection container or via Joomla\CMS\Factory::getApplication()->getIdentity().
An error has occurred with a eval'd field - please inform the web-site owner. Debug: Caught exception on eval of full_name: Joomla\CMS\Factory::getUser() is deprecated. Load the user from the dependency injection container or via Joomla\CMS\Factory::getApplication()->getIdentity().
An error has occurred with a eval'd field - please inform the web-site owner. Debug: Caught exception on eval of email: Joomla\CMS\Factory::getUser() is deprecated. Load the user from the dependency injection container or via Joomla\CMS\Factory::getApplication()->getIdentity().
An error has occurred with a eval'd field - please inform the web-site owner. Debug: Caught exception on eval of TCN: Joomla\CMS\Factory::getUser() is deprecated. Load the user from the dependency injection container or via Joomla\CMS\Factory::getApplication()->getIdentity().
I have a 2 calc elements with the following:
Date Calc / convert
PHP:
//This controls the jdate element validation
$date = strtotime('01-09-2021');
return date('d-m-Y',$date);
cleanup spaces in iban
PHP:
$iban = '{aaa_my_profile___iban_raw}';
$newiban = str_replace(' ', '', $iban);
return $newiban;
When they are published the following error shows:
An error has occurred.
0 explode(): Argument #2 ($string) must be of type string, array given
Call stack
# Function Location
1 () JROOT/plugins/fabrik_element/calc/calc.php:412
2 explode() JROOT/plugins/fabrik_element/calc/calc.php:412
3 PlgFabrik_ElementCalc->elementJavascript() JROOT/components/com_fabrik/views/form/view.base.php:711
4 FabrikViewFormBase->_addJavascript() JROOT/components/com_fabrik/views/form/view.base.php:189
5 FabrikViewFormBase->display() JROOT/components/com_fabrik/views/form/view.html.php:39
6 FabrikViewForm->display() JROOT/administrator/components/com_fabrik/controllers/form.php:84
7 FabrikAdminControllerForm->view() JROOT/libraries/src/MVC/Controller/BaseController.php:672
8 Joomla\CMS\MVC\Controller\BaseController->execute() JROOT/administrator/components/com_fabrik/fabrik.php:104
9 require_once() JROOT/libraries/src/Dispatcher/LegacyComponentDispatcher.php:71
10 Joomla\CMS\Dispatcher\LegacyComponentDispatcher::Joomla\CMS\Dispatcher\{closure}() JROOT/libraries/src/Dispatcher/LegacyComponentDispatcher.php:73
11 Joomla\CMS\Dispatcher\LegacyComponentDispatcher->dispatch() JROOT/libraries/src/Component/ComponentHelper.php:355
12 Joomla\CMS\Component\ComponentHelper::renderComponent() JROOT/libraries/src/Application/AdministratorApplication.php:143
13 Joomla\CMS\Application\AdministratorApplication->dispatch() JROOT/libraries/src/Application/AdministratorApplication.php:186
14 Joomla\CMS\Application\AdministratorApplication->doExecute() JROOT/libraries/src/Application/CMSApplication.php:294
15 Joomla\CMS\Application\CMSApplication->execute() JROOT/administrator/includes/app.php:61
16 require_once() JROOT/administrator/index.php:32
I tried to cast the variable to string with e.g
PHP:
return strval($newiban);