Feature No Code Attached Yet
avatar janaf2002
janaf2002
20 Jun 2026

Is your feature request related to a problem? Please describe.
Yes. When a user/author is deleted in Joomla, their articles remain in the system, but the created_by ID becomes orphaned (or turns to 0). Currently, in Joomla 5, the batch processing tool no longer allows changing the author. If an administrator opens such an article, the author field is empty or invalid.

Describe the solution you'd like
It would be much more elegant and user-friendly if Joomla automatically detects that the current author ID is invalid/deleted when the article is being saved. In this case, Joomla should automatically fallback and assign the ID of the current logged-in user who is actively saving the article as the new author (created_by), instead of throwing an error or leaving it blank/broken.

Describe alternatives you've considered
Accessing phpMyAdmin to run manual SQL update queries or opening hundreds of articles manually to click save. Both methods are inefficient for regular users.

avatar janaf2002 janaf2002 - open - 20 Jun 2026
avatar joomla-cms-bot joomla-cms-bot - change - 20 Jun 2026
Labels Added: No Code Attached Yet
avatar joomla-cms-bot joomla-cms-bot - labeled - 20 Jun 2026
avatar richard67 richard67 - change - 8 Jul 2026
Labels Added: Feature
avatar richard67 richard67 - labeled - 8 Jul 2026
avatar Nikhil-sinhaa
Nikhil-sinhaa - comment - 24 Oct 2026

I was able to reproduce this issue with the following steps:

Go to Users > Manage > New and create a user (e.g., testauthor, group: Author). Save and close.
Go to Content > Articles > New, add a title and content, then switch to the Publishing tab and set Created By to the newly created user. Save and close.
Go to Users > Manage, select the test user and delete them.
Go to Content > Articles, open the article created in step 2, and click Save without changing anything.

screenshot after deleting user
Image

screenshot after deletion of user when i try to save it again it gives error

Image
avatar Nikhil-sinhaa
Nikhil-sinhaa - comment - 24 Oct 2026

I was able to reproduce this issue with the following steps:

Go to Users > Manage > New and create a user (e.g., testauthor, group: Author). Save and close.
Go to Content > Articles > New, add a title and content, then switch to the Publishing tab and set Created By to the newly created user. Save and close.
Go to Users > Manage, select the test user and delete them.
Go to Content > Articles, open the article created in step 2, and click Save without changing anything.

screenshot after deleting user

Image

screenshot after deletion of user when i try to save it again it gives error

Image
avatar Nikhil-sinhaa
Nikhil-sinhaa - comment - 24 Oct 2026

@janaf2002 i have alternative solution which we can implement here
Instead of dealing with orphaned articles later, we stop the problem from being created in the first place.
When you go to delete Test Author, before deleting, Joomla shows a popup saying:
"Test Author has written 3 articles. What should happen to those articles? Reassign to: [user picker]"
You pick a user, confirm, and Joomla reassigns all articles before deleting the user. Orphaned articles never exist.

and for the existing orphan article we can implement below idea
You open the orphaned article. Before the form even renders, the code checks the created_by field. It sees the author is deleted, so it already fills in the current user in the "Created By" field. You see it on screen before clicking Save. You can change it if you want, then save.
Problem gets fixed as soon as you open the article, not at save.

Add a Comment

Login with GitHub to post a comment