Change "administrator" folder in "/includes/defines.php" and "/administrator/includes/defines.php" to "admin"
rename "administrator" folder to "admin"
Everything working
Fields not getting loaded due to wrong path
Joomla 5.x
Fix paths in the "prepareForm" function in administrator/components/com_fields/src/Helper/FieldsHelper.php lines 430 and 431.
$fieldset->setAttribute('addfieldpath', '/administrator/components/' . $component . '/models/fields');
$fieldset->setAttribute('addrulepath', '/administrator/components/' . $component . '/models/rules');
$fieldset->setAttribute('addfieldpath', str_replace(JPATH_ROOT, '', JPATH_ADMINISTRATOR) . '/components/' . $component . '/models/fields');
$fieldset->setAttribute('addrulepath', str_replace(JPATH_ROOT, '', JPATH_ADMINISTRATOR) . '/components/' . $component . '/models/rules');
Related to issue #44980
Labels |
Added:
No Code Attached Yet
|
As for the Joomle core, this should be it. I'm using it with changed administrator folder - and this is 2 out 2 that is making problems. The other bug i reported is fixed.
The folder is in defines.php as are all other path constants - so I wouldn't agree that it has never been supported.
Joomla 3 did a good job with no problem, this bugs were introduced with J4.
As for the Joomle core, this should be it. I'm using it with changed administrator folder - and this is 2 out 2 that is making problems. The other bug i reported is fixed.
check the code - i can assure you that there are many other areas
Status | New | ⇒ | Closed |
Closed_Date | 0000-00-00 00:00:00 | ⇒ | 2025-04-11 01:27:30 |
Closed_By | ⇒ | exlemor |
there are lots of places where the code will be broken by changing the name of the admin folder. to the best of my knowledge it has never been supported for the administrator folder to be renamed