RTC bug PR-5.4-dev Pending

User tests: Successful: Unsuccessful:

avatar laoneo
laoneo
9 Mar 2026

Pull Request resolves #42981.

  • 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.

Summary of Changes

When a component don't have update SQL scripts, then the following warning is displayed in the database maintenance view:
Warning: Attempt to read property "schemapath" on null in /administrator/components/com_installer/src/Model/DatabaseModel.php on line 180

Testing Instructions

  • Install a component without a update tag in the manifest (or use DPCalendar Free from here)
  • Open /administrator/index.php?option=com_installer&view=database

Actual result BEFORE applying this Pull Request

Warning is displayed.

Expected result AFTER applying this Pull Request

No warning is displayed.

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 laoneo laoneo - open - 9 Mar 2026
avatar laoneo laoneo - change - 9 Mar 2026
Status New Pending
avatar joomla-cms-bot joomla-cms-bot - change - 9 Mar 2026
Category Administration com_installer
avatar boldc
boldc - comment - 9 Mar 2026

I tested the fix and it successfully resolved my Warning: Attempt to read property "schemapath" on null issue

avatar muhme
muhme - comment - 9 Mar 2026

Thank you @boldc for testing. Could you also mark your successful test in Joomla Issue Tracker? That would be great, as we need two human tests as one precondition to merge a PR.

avatar boldc boldc - test_item - 9 Mar 2026 - Tested successfully
avatar boldc
boldc - comment - 9 Mar 2026

I have tested this item ✅ successfully on 5e17b7f

changing line 179 of DatabaseModel.php with the recommended code resolved this issue for me


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

avatar exlemor
exlemor - comment - 9 Mar 2026

@laoneo - I can't replicate the BEFORE condition. I installed DP Calendar 10.7.0 and no warning - not even a listing on the page /administrator/index.php?option=com_installer&view=database, so I uninstalled that and thought maybe I need to use an older version, so I installed v10.3.2 and still no warning BUT there was a line on the /administrator/index.php?option=com_installer&view=database page:

DPCalendar Component to organize events. | Administrator | Component | No Problems | 10.3.0 | ‎10.3.2 | N/A | 277

Sorry, couldn't replicate the BEFORE condition.

Joomla 5.4.4 Nightly, PHP 8.5.3

I consequently tried updating from 10.3.2 to 10.7.0 where it said I needed to upgrade to 10.6.0, which I did, then updated to 10.7.0 when I did that, the line in /administrator/index.php?option=com_installer&view=database page disappeared again.

avatar laoneo
laoneo - comment - 10 Mar 2026

Die you set error reporting to maximum in your Joomla configuration?

avatar exlemor
exlemor - comment - 10 Mar 2026

Hi @laoneo, OK, so I re-tested with Error Reporting on Maximum. With v10.3.2, no warning messages. I then installed 10.6.0 still no warning messages, then I upgraded to 10.7.0 and now I get 2 warning messages:

Warning: Attempt to read property "schemapath" on null in /home/lights/public_html/_j543/administrator/components/com_installer/src/Model/DatabaseModel.php on line 180

Warning: Trying to access array offset on null in /home/lights/public_html/_j543/administrator/components/com_installer/src/Model/DatabaseModel.php on line 180

and when I go to the Joomla Patch Tester, I also get:

Deprecated: ArrayIterator::__construct(): Using an object as a backing array for ArrayIterator is deprecated, as it allows violating class constraints and invariants in /home/lights/public_html/_j543/libraries/vendor/joomla/registry/src/Registry.php on line 256

which I understand is unrelated ).

Applying the Patch, makes BOTH messages at /administrator/index.php?option=com_installer&view=database disappear :)

As long as it is OK that there is a 2nd warning message and that it disappears, I can validate the test successful.

avatar laoneo
laoneo - comment - 10 Mar 2026

The patch tester issue is not related to this fix. So you can mark the test as successful. For the future, I would always test with error reporting maximum.

avatar muhme
muhme - comment - 10 Mar 2026

Deprecated: ArrayIterator::__construct(): Using an object as a backing array for ArrayIterator is deprecated, as it allows violating class constraints and invariants in /home/lights/public_html/_j543/libraries/vendor/joomla/registry/src/Registry.php on line 256

An Patch Tester issue has already been created for this at joomla-extensions/patchtester#393

avatar exlemor exlemor - test_item - 10 Mar 2026 - Tested successfully
avatar exlemor
exlemor - comment - 10 Mar 2026

I have tested this item ✅ successfully on 5e17b7f

I was able to successfully thanks @laoneo for the help.


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

avatar richard67 richard67 - change - 10 Mar 2026
Status Pending Ready to Commit
Labels Added: bug PR-5.4-dev
avatar richard67
richard67 - comment - 10 Mar 2026

RTC


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

avatar muhme
muhme - comment - 10 Mar 2026

✅ Final test before merge using JBT

  • Seen the two warnings before
    • Note: it was needed to install DPCalendar-Free version 10.6.0 first and 10.7.0 second
  • Applied PR with Patch Tester
    • No more warnings in Maintenance:Database
    • Tested that the database update still works with the PR
      • Created simplest component, installed sqltest-1.0.zip and checked table is created with 2 columns
      • Updated with sqltest-1.1.zip and checked third column is added
avatar muhme muhme - change - 10 Mar 2026
Status Ready to Commit Fixed in Code Base
Closed_Date 0000-00-00 00:00:00 2026-03-10 19:00:57
Closed_By muhme
Labels Added: RTC
avatar muhme muhme - close - 10 Mar 2026
avatar muhme muhme - merge - 10 Mar 2026
avatar muhme
muhme - comment - 10 Mar 2026

Thank you @laoneo for your contribution. Thank you @boldc and @exlemor for testing.

Add a Comment

Login with GitHub to post a comment