• Fabrik V4.4.1 is now available.

    This version corrects the Admin issue introduced by V4.4. V4.4.1 is available through the Joomla Updater or for download through your My Downloads area of our website.

    Turns out a code change intended for our 5.0dev branch inadvertantly got pushed to the 4.x branch (by me, duh!). The javascript structure in 5.0 will change considerably and part of that change took effect with the inadvertant code change.

    We have reverted the code change and released 4.4.1. V4.4 has been retracted.

    Sorry for any inconvenience.

  • A new version of Full Calendar is now available.

    See the details here

Fabrik4 Gamma j4.2.8 error

Status
Not open for further replies.

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
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);
but the same error remains...
 
Status
Not open for further replies.

Members online

No members online now.
Back
Top