RTC bug PR-6.0-dev Pending

User tests: Successful: Unsuccessful:

avatar sathwikre
sathwikre
18 Feb 2026

Fixes PHP warnings caused by accessing properties on a null article item
when opening the Page Break modal in Joomla 6.

The Page Break modal can be opened without a loaded article item, which
caused warnings for id and checked_out in the article HtmlView.

Fixes #46901

Votes

# of Users Experiencing Issue
1/1
Average Importance Score
3.00

avatar sathwikre sathwikre - open - 18 Feb 2026
avatar sathwikre sathwikre - change - 18 Feb 2026
Status New Pending
avatar joomla-cms-bot joomla-cms-bot - change - 18 Feb 2026
Category Administration com_content Front End com_banners
avatar sathwikre sathwikre - change - 18 Feb 2026
Labels Added: PR-5.4-dev
avatar joomla-cms-bot joomla-cms-bot - change - 18 Feb 2026
Category Administration com_content Front End com_banners Administration com_content
avatar muhme
muhme - comment - 18 Feb 2026

@sathwikre Should this PR be rebased to 6.0-dev?

avatar sathwikre
sathwikre - comment - 18 Feb 2026

Thanks for checking πŸ‘
Yes, this fix is primarily for Joomla 6. I can rebase and retarget the PR to 6.0-dev if that’s preferred.

avatar mariantanase mariantanase - test_item - 18 Feb 2026 - Tested successfully
avatar mariantanase
mariantanase - comment - 18 Feb 2026

I have tested this item βœ… successfully on 69a0e27

Confirmed the fix for Joomla 6.1.0 beta 1


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

avatar sathwikre
sathwikre - comment - 18 Feb 2026

Thanks for testing and confirming πŸ‘

avatar richard67 richard67 - change - 18 Feb 2026
Labels Added: bug PR-6.0-dev
Removed: PR-5.4-dev
avatar richard67
richard67 - comment - 18 Feb 2026

@sathwikre As the fixed issue is specific for 6.x and does not happen in 5.4, I've allowed myself to rebase your PR to 6.1-dev and fix the conflict caused by changes made in the 6.0-dev branch in past at the same place. Please check if the changed file on GitHub shows what you expect.

@mariantanase Please test again, preferably on 6.0 and not 6.1, and submit the test result again. Thanks in advance.

avatar mariantanase mariantanase - test_item - 18 Feb 2026 - Tested successfully
avatar mariantanase
mariantanase - comment - 18 Feb 2026

I have tested this item βœ… successfully on d1c714c

Confirmed that the fix works as expected on Joomla 6.0.3 as well.


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

avatar sathwikre
sathwikre - comment - 18 Feb 2026

@sathwikre As the fixed issue is specific for 6.x and does not happen in 5.4, I've allowed myself to rebase your PR to 6.1-dev and fix the conflict caused by changes made in the 6.0-dev branch in past at the same place. Please check if the changed file on GitHub shows what you expect.

@mariantanase Please test again, preferably on 6.0 and not 6.1, and submit the test result again. Thanks in advance.
Thanks for rebasing and resolving the conflict πŸ‘
I’ve reviewed the updated file and it looks correct to me.

avatar sathwikre
sathwikre - comment - 18 Feb 2026

Thanks for rebasing and resolving the conflict πŸ‘
I’ve reviewed the updated file and it looks correct to me.

avatar OctavianC OctavianC - test_item - 19 Feb 2026 - Tested successfully
avatar OctavianC
OctavianC - comment - 19 Feb 2026

I have tested this item βœ… successfully on d1c714c

No more warnings after applying the fix on 6.0.3


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

avatar richard67 richard67 - change - 19 Feb 2026
Status Pending Ready to Commit
avatar richard67
richard67 - comment - 19 Feb 2026

RTC


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

avatar basn63
basn63 - comment - 19 Feb 2026

I have tested this item βœ… successfully
It works too #46920


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

avatar joomdonation
joomdonation - comment - 23 Feb 2026

The fix here does not look good, It makes our code ugly. I would say all you need to do is add this simple code to the beginning of addToolbar method and the issues should be sorted:

if ($this->getLayout() === 'pagebreak') {
	return;
}
avatar richard67 richard67 - change - 23 Feb 2026
Status Ready to Commit Pending
Build 5.4-dev 6.0-dev
avatar richard67
richard67 - comment - 23 Feb 2026

Back to pending due to requested changes. See previous comment.


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

avatar richard67
richard67 - comment - 23 Feb 2026

@sathwikre Could you change your PR according to @joomdonation 's comment above? If you have questions let us know. Thanks in advance.

avatar sathwikre sathwikre - change - 23 Feb 2026
Labels Added: Updates Requested
avatar sathwikre
sathwikre - comment - 23 Feb 2026

Thanks for the suggestion πŸ‘
I’ve updated the PR to skip toolbar creation for the pagebreak layout by returning early in addToolbar().
Please let me know if this looks good now.

avatar richard67
richard67 - comment - 23 Feb 2026

Thanks for the suggestion πŸ‘ I’ve updated the PR to skip toolbar creation for the pagebreak layout by returning early in addToolbar(). Please let me know if this looks good now.

@sathwikre I think that's not what @joomdonation meant. He meant that his suggestion should be the only code change compared to the original code, and all your other changes should be reverted, but your PR still shows other changes besides that, compared to the original code.

@joomdonation Please confirm or correct me.

avatar joomdonation
joomdonation - comment - 24 Feb 2026

@joomdonation Please confirm or correct me.

Yes, that's correct. As of right now, the PR contains unnecessary changes and these changes should be reverted. The only changes needed to solve the issue is #46908 (comment) . @sathwikre Could you please check ?

avatar sathwikre
sathwikre - comment - 24 Feb 2026

Thanks for the clarification πŸ‘
I’ve reverted all unrelated changes and kept only the early return in addToolbar() for the pagebreak layout.
Please let me know if this looks correct now.

avatar richard67
richard67 - comment - 24 Feb 2026

Thanks for the clarification πŸ‘ I’ve reverted all unrelated changes and kept only the early return in addToolbar() for the pagebreak layout. Please let me know if this looks correct now.

@sathwikre No, you also remove code, see my previous comment.

avatar sathwikre
sathwikre - comment - 24 Feb 2026

Sorry for the confusion β€” that was my mistake.
I initially removed that check while trying to simplify the flow, but I understand now that it is still required in initializeView() and should not have been touched.
I’ve restored the original code there and kept only the early return in addToolbar() for the pagebreak layout, which is the actual fix needed for this issue.
Thanks for catching this.

avatar richard67
richard67 - comment - 24 Feb 2026

@mariantanase @OctavianC @basn63 Could you test this PR again with the latest changes? Thanks in advance.

avatar mariantanase mariantanase - test_item - 24 Feb 2026 - Tested successfully
avatar mariantanase
mariantanase - comment - 24 Feb 2026

I have tested this item βœ… successfully on abf155b


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

avatar muhme muhme - test_item - 13 Mar 2026 - Tested successfully
avatar muhme
muhme - comment - 13 Mar 2026

I have tested this item βœ… successfully on abf155b

Tested with JBT

  • Seen Warning before
  • Applied PR with Patch Tester
    • no more warning
    • no Joomla logs

This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/46908.
avatar muhme muhme - change - 13 Mar 2026
Status Pending Ready to Commit
avatar muhme
muhme - comment - 13 Mar 2026

RTC


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

avatar Bodge-IT Bodge-IT - change - 19 Mar 2026
Labels Added: RTC
Removed: Updates Requested
avatar Bodge-IT Bodge-IT - change - 19 Mar 2026
Status Ready to Commit Fixed in Code Base
Closed_Date 0000-00-00 00:00:00 2026-03-19 07:44:03
Closed_By Bodge-IT
avatar Bodge-IT Bodge-IT - close - 19 Mar 2026
avatar Bodge-IT Bodge-IT - merge - 19 Mar 2026
avatar Bodge-IT
Bodge-IT - comment - 19 Mar 2026

Thanks @sathwikre for the fix and to contributors and testers

Add a Comment

Login with GitHub to post a comment