User tests: Successful: Unsuccessful:
When saving an option on cli, then are undefined property warnings thrown on error reporting maximum. This happens only when Joomla is installed through cli with the php installation/joomla.php
command.
Execut cli/joomla.php config:set debug=1
on the console within the joomla root folder.
The following four warnings are displayed:
Warning: Undefined array key "cors" in /var/www/html/Projects/cms5/administrator/components/com_config/src/Model/ApplicationModel.php on line 748
Warning: Undefined array key "cors_allow_origin" in /var/www/html/Projects/cms5/administrator/components/com_config/src/Model/ApplicationModel.php on line 749
Warning: Undefined array key "cors_allow_headers" in /var/www/html/Projects/cms5/administrator/components/com_config/src/Model/ApplicationModel.php on line 750
Warning: Undefined array key "cors_allow_methods" in /var/www/html/Projects/cms5/administrator/components/com_config/src/Model/ApplicationModel.php on line 751
No warnings.
Please select:
Documentation link for docs.joomla.org:
No documentation changes for docs.joomla.org needed
Pull Request link for manual.joomla.org:
No documentation changes for manual.joomla.org needed
Status | New | ⇒ | Pending |
Category | ⇒ | Administration com_config |
Labels |
Added:
PR-5.3-dev
|
I have tested this item ✅ successfully on edf6bc8
Status | Pending | ⇒ | Ready to Commit |
RTC
Status | Ready to Commit | ⇒ | Fixed in Code Base |
Closed_Date | 0000-00-00 00:00:00 | ⇒ | 2025-03-14 11:08:12 |
Closed_By | ⇒ | bembelimen | |
Labels |
Added:
RTC
|
Thx
I have tested this item ✅ successfully on edf6bc8
Before applying this PR and if the four
cors*
-entries are deleted fromconfiguration.php
file, the four deprecation warnings are shown. After applying this PR no deprecation warnings are shown anymore and enabling/disablingDebug System
continues to work with Joomla Command Line Interface.This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/45103.