I get the following error when I want to edit a category in the backend :
Here is what is between line 190 and 199 of the "AssociationExtensionHelper" file:
If I comment on the "if" for the test, this solves the problem.
My problem is that it's the Joomla framework and I can't go hardcoding a solution. So how can I fix this officially ? Or do you have another explanation/solution ?
Joomla 4.4.3
Thanks in advance for your help
Code:
An error has occurred.0 array_key_exists(): Argument #2 ($array) must be of type array, null givenCall stack#FunctionLocation1()JROOT/libraries/src/Association/AssociationExtensionHelper.php:1942Joomla\CMS\Association\AssociationExtensionHelper->getTypeTitle()JROOT/administrator/components/com_associations/src/Helper/AssociationsHelper.php:4093Joomla\Component\Associations\Administrator\Helper\AssociationsHelper::getSupportedExtension()JROOT/administrator/components/com_associations/src/Helper/AssociationsHelper.php:3484Joomla\Component\Associations\Administrator\Helper\AssociationsHelper::getSupportedExtensions()JROOT/administrator/components/com_associations/src/Helper/AssociationsHelper.php:1295Joomla\Component\Associations\Administrator\Helper\AssociationsHelper::hasSupport()JROOT/administrator/components/com_categories/src/View/Category/HtmlView.php:2446Joomla\Component\Categories\Administrator\View\Category\HtmlView->addToolbar()JROOT/administrator/components/com_categories/src/View/Category/HtmlView.php:1217Joomla\Component\Categories\Administrator\View\Category\HtmlView->display()JROOT/administrator/components/com_categories/src/Controller/DisplayController.php:1118Joomla\Component\Categories\Administrator\Controller\DisplayController->display()JROOT/libraries/src/MVC/Controller/BaseController.php:6939Joomla\CMS\MVC\Controller\BaseController->execute()JROOT/libraries/src/Dispatcher/ComponentDispatcher.php:14310Joomla\CMS\Dispatcher\ComponentDispatcher->dispatch()JROOT/libraries/src/Component/ComponentHelper.php:36111Joomla\CMS\Component\ComponentHelper::renderComponent()JROOT/libraries/src/Application/AdministratorApplication.php:14312Joomla\CMS\Application\AdministratorApplication->dispatch()JROOT/libraries/src/Application/AdministratorApplication.php:18613Joomla\CMS\Application\AdministratorApplication->doExecute()JROOT/libraries/src/Application/CMSApplication.php:29314Joomla\CMS\Application\CMSApplication->execute()JROOT/administrator/includes/app.php:6115require_once()JROOT/administrator/index.php:32
Here is what is between line 190 and 199 of the "AssociationExtensionHelper" file:
Code:
public function getTypeTitle($typeName){ $type = $this->getType($typeName); if (!\array_key_exists('title', $type)) { return ''; } return $type['title'];}
If I comment on the "if" for the test, this solves the problem.
My problem is that it's the Joomla framework and I can't go hardcoding a solution. So how can I fix this officially ? Or do you have another explanation/solution ?
Joomla 4.4.3
Thanks in advance for your help
Statistics: Posted by yann112 — Mon Apr 01, 2024 5:35 am