Solved: Visualization fullcalendar - create event fails

Status
Not open for further replies.

fstorch

Member
Environment:
J! 4.3.3
Fabrik Delta
PHP 8.1

List has a start timestamp and an end timstamp.
To avoid cluttering, I show separate entries for them:
upload_2023-7-29_15-21-57.png

When using double-click or +Add Button, the popup fails to load:
upload_2023-7-29_15-23-24.png

Fabrik Log shows:
2023-07-29T13:16:53+00:00 CRITICAL 217.245.123.58 error Uncaught Throwable of type Error thrown with message "Call to a member function getType() on null". Stack trace: #0 [ROOT]/libraries/src/MVC/Controller/BaseController.php(678): FabrikControllerVisualizationfullcalendar->chooseAddEvent()
#1 [ROOT]/components/com_fabrik/fabrik.php(200): Joomla\CMS\MVC\Controller\BaseController->execute('chooseaddevent')
#2 [ROOT]/libraries/src/Dispatcher/LegacyComponentDispatcher.php(71): require_once('/is/htdocs/wp10...')
#3 [ROOT]/libraries/src/Dispatcher/LegacyComponentDispatcher.php(73): Joomla\CMS\Dispatcher\LegacyComponentDispatcher::Joomla\CMS\Dispatcher\{closure}('/is/htdocs/wp10...')
#4 [ROOT]/libraries/src/Component/ComponentHelper.php(361): Joomla\CMS\Dispatcher\LegacyComponentDispatcher->dispatch()
#5 [ROOT]/libraries/src/Application/SiteApplication.php(208): Joomla\CMS\Component\ComponentHelper::renderComponent('com_fabrik')
#6 [ROOT]/libraries/src/Application/SiteApplication.php(249): Joomla\CMS\Application\SiteApplication->dispatch()
#7 [ROOT]/libraries/src/Application/CMSApplication.php(293): Joomla\CMS\Application\SiteApplication->doExecute()
#8 [ROOT]/includes/app.php(61): Joomla\CMS\Application\CMSApplication->execute()
#9 [ROOT]/index.php(32): require_once('/is/htdocs/wp10...')
#10 {main}


Didn't fail when only one event is shown.
Sample Site: http://jtest.conacare.de/index.php/events/visualization/1

Regards ... Franz
 
In plugins\fabrik_visualization\fullcalendar\controllers\fullcalendar.php
change line 65 to
$view = $this->getView('fullcalendar', 'partial');//hardcode, $this->doc->getType()); not existing in J!4

I'm not sure if this will cover all cases (e.g. content plugin, I didn't test)
 
Status
Not open for further replies.
We are in need of some funding.
More details.

Thank you.

Members online

Back
Top