jemproject / JEM-Project

JEM - an Event Manager for Joomla
https://www.joomlaeventmanager.net
GNU General Public License v3.0
25 stars 37 forks source link

JEM4.2 on J5: error when saving css in css manager #1708

Closed jojo12 closed 5 months ago

jojo12 commented 6 months ago

I get following notification:

Joomla\CMS\Event\Model\SaveEvent::onSetSubject(): Argument #1 ($value) must be of type object, array given, called in /home/httpd/vhosts/mysite.ch/libraries/src/Event/AbstractEvent.php on line 225

() JROOT/libraries/src/Event/Model/SaveEvent.php:42  
2 Joomla\CMS\Event\Model\SaveEvent->onSetSubject() JROOT/libraries/src/Event/AbstractEvent.php:225
3 Joomla\CMS\Event\AbstractEvent->setArgument() JROOT/libraries/src/Event/AbstractEvent.php:115
4 Joomla\CMS\Event\AbstractEvent->__construct() JROOT/libraries/src/Event/AbstractImmutableEvent.php:51
5 Joomla\CMS\Event\AbstractImmutableEvent->__construct() JROOT/libraries/src/Event/Model/ModelEvent.php:55
6 Joomla\CMS\Event\Model\ModelEvent->__construct() JROOT/libraries/src/Application/EventAware.php:106
7 Joomla\CMS\Application\WebApplication->triggerEvent() JROOT/administrator/components/com_jem/models/source.php:179
8 JemModelSource->save() JROOT/administrator/components/com_jem/controllers/source.php:203
9 JemControllerSource->save() JROOT/libraries/src/MVC/Controller/BaseController.php:730
10 Joomla\CMS\MVC\Controller\BaseController->execute() JROOT/administrator/components/com_jem/jem.php:54
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:361
14 Joomla\CMS\Component\ComponentHelper::renderComponent() JROOT/libraries/src/Application/AdministratorApplication.php:150
15 Joomla\CMS\Application\AdministratorApplication->dispatch() JROOT/libraries/src/Application/AdministratorApplication.php:195
16 Joomla\CMS\Application\AdministratorApplication->doExecute() JROOT/libraries/src/Application/CMSApplication.php:306
17 Joomla\CMS\Application\CMSApplication->execute() JROOT/administrator/includes/app.php:58
18 require_once() JROOT/administrator/index.php:32
mckillo commented 6 months ago

I can't simulate this ussue, for me, it works, save the change of css file from CSS Manager. Do you have more info about the case? File modificated? is custom file? Content of this file? PHP version? Joomla version 5.0.3?

jojo12 commented 6 months ago

I must say, that the css I tried to change is in a subdomain, the main domain is with wordpress. and the file is calendar-responsive.css.

mckillo commented 6 months ago

PHP version?

jojo12 commented 6 months ago

PHP 8.1.27

jojo12 commented 6 months ago

There is a new post in the forum which says the same on: Joomla: 5.0.3 and JEM: 4.2.0

jojo12 commented 5 months ago

in my case this is the solution! (I had no access to ftp, so it was difficult to view into it. I succeeded finally with phoca commander. I changed and now there is no error. I hope, this is for others too.

mckillo commented 5 months ago

This issue already was fixed. See https://github.com/jemproject/JEM-Project/commit/4d8fe1ad3d5c009b82421180c65dde566a9174c5 for next 4.2.1 More info: Fix J5: css-Manager error when saving https://github.com/jemproject/JEM-Project/issues/1677 This patch was the first after JEM v.4.2.0... in the new v.4.2.1 will be included.