Fatal error on details view
The problem happens when there is no marked section to display entries entries. So profile field is set to the input mode and Show Entries From option in the Entry View Field Settings tab have no selection, then when we open entry details page, there appear following error:
-
0 count(): Argument #1 ($value) must be of type Countable|array, null given
- Call stack
-
- 1 () JROOT/components/com_sobipro/lib/mlo/profile_helper.php:46
- 2 SPProfile::Entries() JROOT/components/com_sobipro/opt/fields/profile.php:851
- 3 SPField_Profile->EntryViewDetails() JROOT/components/com_sobipro/lib/plugins/interface.php:255
- 4 SPPlugins->trigger() JROOT/components/com_sobipro/lib/sobi.php:232
- 5 Sobi::Trigger() JROOT/components/com_sobipro/lib/views/entry.php:164
- 6 SPEntryView->details() JROOT/components/com_sobipro/lib/views/entry.php:49
- 7 SPEntryView->display() JROOT/components/com_sobipro/lib/ctrl/entry.php:828
- 8 SPEntryCtrl->details() JROOT/components/com_sobipro/lib/ctrl/entry.php:77
- 9 SPEntryCtrl->execute() JROOT/components/com_sobipro/lib/ctrl/sobipro.php:577
- 10 SobiProCtrl->execute() JROOT/components/com_sobipro/sobipro.php:55
- 11 require_once() JROOT/libraries/src/Dispatcher/LegacyComponentDispatcher.php:71
- 12 Joomla\CMS\Dispatcher\LegacyComponentDispatcher::Joomla\CMS\Dispatcher{closure}() JROOT/libraries/src/Dispatcher/LegacyComponentDispatcher.php:73
- 13 Joomla\CMS\Dispatcher\LegacyComponentDispatcher->dispatch() JROOT/libraries/src/Component/ComponentHelper.php:355
- 14 Joomla\CMS\Component\ComponentHelper::renderComponent() JROOT/libraries/src/Application/SiteApplication.php:200
- 15 Joomla\CMS\Application\SiteApplication->dispatch() JROOT/libraries/src/Application/SiteApplication.php:241
- 16 Joomla\CMS\Application\SiteApplication->doExecute() JROOT/libraries/src/Application/CMSApplication.php:294
- 17 Joomla\CMS\Application\CMSApplication->execute() JROOT/includes/app.php:61
- 18 require_once() JROOT/index.php:32