RTC b/c break PR-6.0-dev Pending

User tests: Successful: Unsuccessful:

avatar laoneo
laoneo
19 Feb 2025

Summary of Changes

Change the object in the media manager for the events from object to stdClass.

Testing Instructions

  • Upload a file
  • Upload the same file again and replace it
  • Create a folder
  • Delete the new folder
  • Delete the new file

Actual result BEFORE applying this Pull Request

All works.

Expected result AFTER applying this Pull Request

All works.

Link to documentations

Please select:

  • Documentation link for docs.joomla.org:

  • No documentation changes for docs.joomla.org needed

  • Pull Request link for manual.joomla.org: joomla/Manual#395

  • No documentation changes for manual.joomla.org needed

avatar laoneo laoneo - open - 19 Feb 2025
avatar laoneo laoneo - change - 19 Feb 2025
Status New Pending
avatar joomla-cms-bot joomla-cms-bot - change - 19 Feb 2025
Category Administration com_media Front End Plugins
avatar laoneo laoneo - change - 19 Feb 2025
The description was changed
avatar laoneo laoneo - edited - 19 Feb 2025
avatar Tejashrimajage Tejashrimajage - test_item - 22 Feb 2025 - Tested unsuccessfully
avatar Tejashrimajage
Tejashrimajage - comment - 22 Feb 2025

I have tested this item 🔴 unsuccessfully on 51644be

Before apply patch If and uplaod same image it replaces original one. But after applying patch getting error
MediaHelper::getContentTypeLink(): Argument #3 ($mediaObject) must be of type Joomla\CMS\Object\CMSObject, stdClass given, called in /var/www/ttpl-rt-215-php81.local/public/joomlatest/administrator/components/com_actionlogs/src/Helper/ActionlogsHelper.php on line 254


This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/44945.
avatar laoneo
laoneo - comment - 22 Feb 2025

Are you on Joomla 6? Because the file /administrator/components/com_media/helpers/media.php should accept \stdClass and not CMSObject

avatar laoneo laoneo - change - 22 Feb 2025
Labels Added: PR-6.0-dev
avatar exlemor exlemor - test_item - 22 Feb 2025 - Tested successfully
avatar exlemor
exlemor - comment - 22 Feb 2025

I have tested this item ✅ successfully on 06c6e04

I have successfully tested this PR :) (was on 6.0.0-alpha1-dev+pr.44735 and it worked great)


This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/44945.

avatar QuyTon
QuyTon - comment - 23 Feb 2025

Warning after deleting a file:

PHP Warning: Undefined property: stdClass::$id in \plugins\system\schemaorg\src\Extension\Schemaorg.php on line 545

avatar laoneo
laoneo - comment - 23 Feb 2025

See #44989

avatar QuyTon QuyTon - test_item - 26 Feb 2025 - Tested successfully
avatar QuyTon
QuyTon - comment - 26 Feb 2025

I have tested this item ✅ successfully on 06c6e04


This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/44945.

avatar QuyTon QuyTon - change - 26 Feb 2025
Status Pending Ready to Commit
avatar QuyTon
QuyTon - comment - 26 Feb 2025

RTC


This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/44945.

avatar laoneo laoneo - change - 27 Feb 2025
Labels Added: RTC
avatar HLeithner
HLeithner - comment - 27 Feb 2025

This is a hard b/c break, in the discussion yesterday we came up with a solution use the compact plugin.

avatar laoneo
laoneo - comment - 27 Feb 2025

Discused this today in the maintainer chat and there is no reliable and easy to maintain solution to this issue. So this change is absolute ok.

avatar Bodge-IT Bodge-IT - change - 9 Mar 2025
Labels Added: b/c break
avatar joomla-cms-bot joomla-cms-bot - change - 17 Mar 2025
Category Administration com_media Front End Plugins Administration com_media
avatar Bodge-IT Bodge-IT - close - 17 Mar 2025
avatar Bodge-IT Bodge-IT - merge - 17 Mar 2025
avatar Bodge-IT Bodge-IT - change - 17 Mar 2025
Status Ready to Commit Fixed in Code Base
Closed_Date 0000-00-00 00:00:00 2025-03-17 19:57:08
Closed_By Bodge-IT
avatar Bodge-IT
Bodge-IT - comment - 17 Mar 2025

Thanks @laoneo and testers

avatar laoneo
laoneo - comment - 18 Mar 2025

Thanks and don't forget the docu

avatar HLeithner
HLeithner - comment - 31 Mar 2025

Discused this today in the maintainer chat and there is no reliable and easy to maintain solution to this issue. So this change is absolute ok.

here is your solution #45216

Add a Comment

Login with GitHub to post a comment