joomla / joomla-cms

Home of the Joomla! Content Management System
https://www.joomla.org
GNU General Public License v2.0
4.71k stars 3.64k forks source link

array_key_exists(): Argument #2 ($array) must be of type array, null given #38641

Closed hmed95 closed 1 year ago

hmed95 commented 1 year ago

Steps to reproduce the issue

When i edit a menu item and try to save it.

Expected result

Actual result

System information (as much as possible)

php 8 & 8.1 with php 7.4 its ok.

Additional comments

ReLater commented 1 year ago

Do you get more informations in the message? Like file and line number?

ReLater commented 1 year ago

Which Joomla version ?

hmed95 commented 1 year ago

Hi, i am on j 4.1.5. i dont see any file information, just this message. its only showing with php 8 & 8.1 for me

ReLater commented 1 year ago

Could you please check this issue: https://github.com/joomla/joomla-cms/issues/37269

Especially: https://github.com/joomla/joomla-cms/issues/37269#issuecomment-1067274984

hmed95 commented 1 year ago

Cool got it !

`

An error has occurred.

0 array_key_exists(): Argument #2 ($array) must be of type array, null given
Call stack -- # | Function | Location 1 | () | JROOT/plugins/content/pingomatic/pingomatic.php:412 2 | plgContentPingomatic->onContentAfterSave() | JROOT/libraries/src/Plugin/CMSPlugin.php:285 3 | Joomla\CMS\Plugin\CMSPlugin->Joomla\CMS\Plugin\{closure}() | JROOT/libraries/vendor/joomla/event/src/Dispatcher.php:486 4 | Joomla\Event\Dispatcher->dispatch() | JROOT/libraries/src/Application/EventAware.php:111 5 | Joomla\CMS\Application\WebApplication->triggerEvent() | JROOT/administrator/components/com_menus/src/Model/ItemModel.php:1571 6 | Joomla\Component\Menus\Administrator\Model\ItemModel->save() | JROOT/administrator/components/com_menus/src/Controller/ItemController.php:434 7 | Joomla\Component\Menus\Administrator\Controller\ItemController->save() | JROOT/libraries/src/MVC/Controller/BaseController.php:735 8 | Joomla\CMS\MVC\Controller\BaseController->execute() | JROOT/libraries/src/Dispatcher/ComponentDispatcher.php:146 9 | Joomla\CMS\Dispatcher\ComponentDispatcher->dispatch() | JROOT/libraries/src/Component/ComponentHelper.php:389 10 | Joomla\CMS\Component\ComponentHelper::renderComponent() | JROOT/libraries/src/Application/AdministratorApplication.php:143 11 | Joomla\CMS\Application\AdministratorApplication->dispatch() | JROOT/libraries/src/Application/AdministratorApplication.php:186 12 | Joomla\CMS\Application\AdministratorApplication->doExecute() | JROOT/libraries/src/Application/CMSApplication.php:278 13 | Joomla\CMS\Application\CMSApplication->execute() | JROOT/administrator/includes/app.php:63

`

chmst commented 1 year ago

Thanks for the information. Please contact the developer of your plugin pingomatic or check if there is a newer version of it, compatible to php 8.1. Closing this as it is not joomla core.