• 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

Error when creating new thumbs element

Status
Not open for further replies.

MikaelKjaerulff

New Member
Joomla: 4.2.8 Stable
PHP: 8.2.3
Fabrik: 4.0gamma2

After installing the gamma2 upgrade on top of beta4, I get an error when trying to create a new element:

An error has occurred.
0 syntax error, unexpected token "private", expecting end of file

I did not get any errors during upgrade.
I can select any old element from the list and edit/save it.

Stacktrace from J! System Debug:

error - Uncaught Throwable of type ParseError thrown with message "syntax error, unexpected token "private", expecting end of file". Stack trace:
#0 [ROOT]/libraries/src/Extension/ExtensionManagerTrait.php(157): Joomla\CMS\Application\CMSApplication->loadPluginFromFilesystem('thumbs', 'fabrik_element')
#1 [ROOT]/libraries/src/Extension/ExtensionManagerTrait.php(96): Joomla\CMS\Application\CMSApplication->loadExtension('Joomla\\CMS\\Exte...', 'thumbs:fabrik_e...', '/var/www/nsdgk....')
#2 [ROOT]/libraries/src/Plugin/PluginHelper.php(221): Joomla\CMS\Application\CMSApplication->bootPlugin('thumbs', 'fabrik_element')
#3 [ROOT]/libraries/src/Plugin/PluginHelper.php(181): Joomla\CMS\Plugin\PluginHelper::import(Object(stdClass), true, Object(Joomla\Event\Dispatcher))
#4 [ROOT]/administrator/components/com_fabrik/models/element.php(334): Joomla\CMS\Plugin\PluginHelper::importPlugin('fabrik_element', NULL)
#5 [ROOT]/administrator/components/com_fabrik/views/element/view.html.php(88): FabrikAdminModelElement->getPluginHTML()
#6 [ROOT]/libraries/src/MVC/Controller/BaseController.php(639): FabrikAdminViewElement->display()
#7 [ROOT]/administrator/components/com_fabrik/controller.php(42): Joomla\CMS\MVC\Controller\BaseController->display()
#8 [ROOT]/libraries/src/MVC/Controller/BaseController.php(672): FabrikAdminController->display()
#9 [ROOT]/administrator/components/com_fabrik/fabrik.php(104): Joomla\CMS\MVC\Controller\BaseController->execute('home.display')
#10 [ROOT]/libraries/src/Dispatcher/LegacyComponentDispatcher.php(71): require_once('/var/www/nsdgk....')
#11 [ROOT]/libraries/src/Dispatcher/LegacyComponentDispatcher.php(73): Joomla\CMS\Dispatcher\LegacyComponentDispatcher::Joomla\CMS\Dispatcher\{closure}('/var/www/nsdgk....')
#12 [ROOT]/libraries/src/Component/ComponentHelper.php(355): Joomla\CMS\Dispatcher\LegacyComponentDispatcher->dispatch()
#13 [ROOT]/libraries/src/Application/AdministratorApplication.php(143): Joomla\CMS\Component\ComponentHelper::renderComponent('com_fabrik')
#14 [ROOT]/libraries/src/Application/AdministratorApplication.php(186): Joomla\CMS\Application\AdministratorApplication->dispatch()
#15 [ROOT]/libraries/src/Application/CMSApplication.php(294): Joomla\CMS\Application\AdministratorApplication->doExecute()
#16 [ROOT]/administrator/includes/app.php(61): Joomla\CMS\Application\CMSApplication->execute()
#17 [ROOT]/administrator/index.php(32): require_once('/var/www/nsdgk....')
#18 {main}
 
Last edited:
I guess that I should have included the "Call stack" instead of the stack trace.

# Function Location
1 () JROOT/plugins/fabrik_element/thumbs/thumbs.php:425
2 Joomla\CMS\Application\CMSApplication->loadPluginFromFilesystem() JROOT/libraries/src/Extension/ExtensionManagerTrait.php:157
3 Joomla\CMS\Application\CMSApplication->loadExtension() JROOT/libraries/src/Extension/ExtensionManagerTrait.php:96
4 Joomla\CMS\Application\CMSApplication->bootPlugin() JROOT/libraries/src/Plugin/PluginHelper.php:221
5 Joomla\CMS\Plugin\PluginHelper::import() JROOT/libraries/src/Plugin/PluginHelper.php:181
6 Joomla\CMS\Plugin\PluginHelper::importPlugin() JROOT/administrator/components/com_fabrik/models/element.php:334
7 FabrikAdminModelElement->getPluginHTML() JROOT/administrator/components/com_fabrik/views/element/view.html.php:88
...

I took a look at plugins/fabrik_element/thumbs/thumbs.php and it looks fine to me. Correct, at line 425 is starts a new function "private function deleteThumb($listId, $formId, $rowId, $thumb)" but there is no clue why it was expecting EOF.
 
Status
Not open for further replies.
Back
Top