Language Change PR-6.3-dev Pending

User tests: Successful: Unsuccessful:

avatar coolcat-creations
coolcat-creations
12 Oct 2026

Pull Request resolves an issue I discovered today, when trying to understand who deleted a folder .

  • I read the Generative AI policy and my contribution is either not created with the help of AI or is compatible with the policy and GNU/GPL 2 or later.
  • I created this PR with the help of AI but the changes are minimal and logical, I checked and reviewed the solution and I tested it successfully on my local installation, I also ran the codestyle fixer just in case

Summary of Changes

Deleting a file via the Media Manager wrote an action log entry with an empty title because ApiModel delete() never set the name property on the object passed to the onContentBeforeDelete/onContentAfterDelete events. Deleting a folder (with its contents) logged nothing at all because com_media.folder was never registered in action_log_config.

  • Set object->name in ApiModel::delete() so the deleted item's name is available to listeners, matching createFile/createFolder/ updateFile.
  • Register com_media.folder as a loggable content type (new media_folder type) in the install seed data and via an upgrade SQL script for existing sites.
  • Add the PLG_ACTIONLOG_JOOMLA_TYPE_MEDIA_FOLDER language string.

Name of the Deleted File is now in the user action log
Folders are logged now too (have not been logged before)

Testing Instructions

Install the prebuild package and enable user action log if not activated yet
Delete a file and check the user action log if the filename is mentioned
Delete a folder and check if the folder is mentioned.

Actual result BEFORE applying this Pull Request

User action log logs that something was deleted but not what
User action log did not log folder deletetions

Expected result AFTER applying this Pull Request

User action log logs which file was deleted
User action log logs folder deletetions and name

Link to documentations

Please select:

  • Documentation link for guide.joomla.org:

  • No documentation changes for guide.joomla.org needed

  • Pull Request link for manual.joomla.org:

  • No documentation changes for manual.joomla.org needed

avatar coolcat-creations coolcat-creations - open - 12 Oct 2026
avatar coolcat-creations coolcat-creations - change - 12 Oct 2026
Status New ⇒ Pending
avatar joomla-cms-bot joomla-cms-bot - change - 12 Oct 2026
Category ⇒ SQL Administration com_admin Postgresql com_media Language & Strings Installation
avatar tecpromotion tecpromotion - change - 12 Oct 2026
Title
…
Log media file and folder deletions in the user action log
[6.3] [AI] Log media file and folder deletions in the user action log
avatar tecpromotion tecpromotion - edited - 12 Oct 2026
avatar tecpromotion tecpromotion - change - 12 Oct 2026
The description was changed
avatar tecpromotion tecpromotion - edited - 12 Oct 2026
avatar tecpromotion tecpromotion - test_item - 12 Oct 2026 - Tested successfully
avatar tecpromotion
tecpromotion - comment - 12 Oct 2026

I have tested this item ✅ successfully on 9081c2b

The name of a deleted file is in the log, and folder deletions are logged.

Verification

Media Manager, User Actions Log:

Action Before With PR
Delete a file "User admin deleted the media" (empty title) ✅ "User admin deleted the media ui-file.png"
Delete a file in a subfolder empty title ✅ "… deleted the media deep.png"
Delete an empty folder no entry ✅ "User admin deleted the media folder empty-folder"
Delete a folder with a file and a subfolder no entry ✅ "User admin deleted the media folder after-folder" (one entry)
Create a folder no entry "User admin added new media folder after-folder"
Create / upload a file logged with name ✅ unchanged

File and folder deleted once through the Media Manager toolbar and once through the same request sent directly; same entries.

Also checked:

  • New installation: row 24 media_folder / com_media.folder is there.
  • Update SQL on an existing site (row removed first): first run inserts 1 row, second run 0. Statement runs on MariaDB 10.4 and 11.8, MySQL 8.0.46 and PostgreSQL 12.
  • PLG_ACTIONLOG_JOOMLA_TYPE_MEDIA_FOLDER resolves in the log ("media folder").
  • phpcs and php -l on ApiModel.php: clean.

Notes

  • Creating a folder is now logged as well, because createFolder() already sends the com_media.folder event. That fits, but the description only mentions deletions.
  • The entry holds the name only, not the path: deep.png deleted from after-folder/sub is logged as "deep.png". The "added" entries link to the folder, the "deleted" ones have no path at all. Could be a follow-up.
    This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/48612.
avatar tecpromotion
tecpromotion - comment - 12 Oct 2026

I have tested this item ✅ successfully on 9081c2b

The name of a deleted file is in the log, and folder deletions are logged.

Verification

Media Manager, User Actions Log:

Action Before With PR
Delete a file "User admin deleted the media" (empty title) ✅ "User admin deleted the media ui-file.png"
Delete a file in a subfolder empty title ✅ "… deleted the media deep.png"
Delete an empty folder no entry ✅ "User admin deleted the media folder empty-folder"
Delete a folder with a file and a subfolder no entry ✅ "User admin deleted the media folder after-folder" (one entry)
Create a folder no entry "User admin added new media folder after-folder"
Create / upload a file logged with name ✅ unchanged

File and folder deleted once through the Media Manager toolbar and once through the same request sent directly; same entries.

Also checked:

  • New installation: row 24 media_folder / com_media.folder is there.
  • Update SQL on an existing site (row removed first): first run inserts 1 row, second run 0. Statement runs on MariaDB 10.4 and 11.8, MySQL 8.0.46 and PostgreSQL 12.
  • PLG_ACTIONLOG_JOOMLA_TYPE_MEDIA_FOLDER resolves in the log ("media folder").
  • phpcs and php -l on ApiModel.php: clean.

Notes

  • Creating a folder is now logged as well, because createFolder() already sends the com_media.folder event. That fits, but the description only mentions deletions.
  • The entry holds the name only, not the path: deep.png deleted from after-folder/sub is logged as "deep.png". The "added" entries link to the folder, the "deleted" ones have no path at all. Could be a follow-up.
    This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/48612.
avatar brianteeman
brianteeman - comment - 12 Oct 2026

shouldnt it log the path and not just the filename - you might have a file with the same name in multiple folders and for a log to be useful you should know which of those files was deleted

avatar coolcat-creations coolcat-creations - change - 17 Oct 2026
Labels Added: Language Change PR-6.3-dev
avatar coolcat-creations
coolcat-creations - comment - 17 Oct 2026

@tecpromotion @brianteeman I added the path :)

avatar brianteeman
brianteeman - comment - 17 Oct 2026

thanks

avatar exlemor exlemor - test_item - 29 Oct 2026 - Tested unsuccessfully
avatar exlemor
exlemor - comment - 29 Oct 2026

I have tested this item 🔴 unsuccessfully on 4f85116

I tested this unsuccessfully sadly.

While the Latest Actions log does indeed now log the file name :D, it did NOT log the folder deletion step (I deleted 2 different folders: test and headers (after deleing all of the images in the headers folder as shown below)).

Latest Actions
Action Date
User exlemor performed a check in to table #__modules Less than a minute ago.
User exlemor deleted the media /headers/blue-flower.jpg Less than a minute ago.
User exlemor deleted the media /headers/maple.jpg One minute ago.
User exlemor deleted the media /headers/walden-pond.jpg One minute ago.
User exlemor deleted the media /headers/raindrops.jpg One minute ago.


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

avatar exlemor
exlemor - comment - 29 Oct 2026

I have tested this item 🔴 unsuccessfully on 4f85116

I tested this unsuccessfully sadly.

While the Latest Actions log does indeed now log the file name :D, it did NOT log the folder deletion step (I deleted 2 different folders: test and headers (after deleing all of the images in the headers folder as shown below)).

Latest Actions
Action Date
User exlemor performed a check in to table #__modules Less than a minute ago.
User exlemor deleted the media /headers/blue-flower.jpg Less than a minute ago.
User exlemor deleted the media /headers/maple.jpg One minute ago.
User exlemor deleted the media /headers/walden-pond.jpg One minute ago.
User exlemor deleted the media /headers/raindrops.jpg One minute ago.


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

avatar exlemor
exlemor - comment - 29 Oct 2026

I have tested this item 🔴 unsuccessfully on 4f85116

I tested this unsuccessfully sadly.

While the Latest Actions log does indeed now log the file name :D, it did NOT log the folder deletion step (I deleted 2 different folders: test and headers (after deleing all of the images in the headers folder as shown below) but no entry showing between performed a check and deleted the media where I placed the xxxx ).

Latest Actions
Action Date
User exlemor performed a check in to table #__modules Less than a minute ago.
xxxx
User exlemor deleted the media /headers/blue-flower.jpg Less than a minute ago.
User exlemor deleted the media /headers/maple.jpg One minute ago.
User exlemor deleted the media /headers/walden-pond.jpg One minute ago.
User exlemor deleted the media /headers/raindrops.jpg One minute ago.


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

avatar HLeithner HLeithner - change - 11 Nov 2026
Title
…
[6.3] [AI] Log media file and folder deletions in the user action log
[6.3][AI] Log media file and folder deletions in the user action log
avatar HLeithner HLeithner - edited - 11 Nov 2026

Add a Comment

Login with GitHub to post a comment