Install a child template without any media files.
Why? In real world unlikely, but when developing/testing!
Goto template admin page
.../administrator/index.php?option=com_templates&view=templates/...
Normal behaviour.
Get unexpected error message.
The template folder is not writable. Some features may not work.
PHP 8.2
Discovered when testing pull request:
Labels |
Removed:
?
|
Labels |
Added:
No Code Attached Yet
|
Why? In real world unlikely, but when developing/testing!
Because the file manager for the templates WILL NOT allow users to create the media root folder for a template, it expects the folder to exist upon installation! The limitation comes from the outdated file manager. Also the only way Joomla exposes the creation of a child template is through the toolbar button, and there the media folder is created by default. So, the point is if you try to create child templates your way, better check the existing code in the templateModel and follow the same steps
The error message is completely correct. Without the media folder things will not work as expected
Agree - see 'real world' comment above.
so why open an issue?
as I wrote there it is rediculous to think it is a good idea that if you write bad code that will not work that you are never told that it is bad code that will not work, Take a break, enjoy the sunshine and think about it.
Status | New | ⇒ | Closed |
Closed_Date | 0000-00-00 00:00:00 | ⇒ | 2023-05-27 14:35:46 |
Closed_By | ⇒ | alikon |
Easy to fix, but if the media folder does not exist should it automatically create it?
This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/40666.