Kovacs Peter
Hi
I got the same meassege with Joomla 5.1.1, PHP 8.3 on uploading an image to media. It uploads the image, but doesn't refresh the list. I can see the image after manual refresh.
This was the POST url
/administrator/index.php?option=com_media&task=api.files&format=json&mediatypes=0,1,2,3&path=local-images%3A%2Fbanners
And this was the response
error: true
code: 0
message: Cannot use object of type Joomla\CMS\Object\CMSObject as array
trace:
#0 ..../libraries/src/Plugin/CMSPlugin.php(289): PlgSystemRegularLabs->onContentAfterSave()
#1 ..../libraries/vendor/joomla/event/src/Dispatcher.php(454): Joomla\CMS\Plugin\CMSPlugin->Joomla\CMS\Plugin\{closure}()
#2 ..../libraries/src/Application/EventAware.php(111): Joomla\Event\Dispatcher->dispatch()
#3 ..../administrator/components/com_media/src/Model/ApiModel.php(258): Joomla\CMS\Application\WebApplication->triggerEvent()
#4 ..../administrator/components/com_media/src/Controller/ApiController.php(205): Joomla\Component\Media\Administrator\Model\ApiModel->createFile()
#5 ..../administrator/components/com_media/src/Controller/ApiController.php(70): Joomla\Component\Media\Administrator\Controller\ApiController->postFiles()
#6 ..../libraries/src/Dispatcher/ComponentDispatcher.php(143): Joomla\Component\Media\Administrator\Controller\ApiController->execute()
#7 ..../libraries/src/Component/ComponentHelper.php(361): Joomla\CMS\Dispatcher\ComponentDispatcher->dispatch()
#8 ..../libraries/src/Application/AdministratorApplication.php(150): Joomla\CMS\Component\ComponentHelper::renderComponent()
#9 ..../libraries/src/Application/AdministratorApplication.php(195): Joomla\CMS\Application\AdministratorApplication->dispatch()
#10 ..../libraries/src/Application/CMSApplication.php(306): Joomla\CMS\Application\AdministratorApplication->doExecute()
#11 ..../administrator/includes/app.php(58): Joomla\CMS\Application\CMSApplication->execute()
#12 ..../administrator/index.php(32): require_once('...')
#13 {main}
We use Cache Cleaner, Sourcerer and Extension Manager