?tmpl=
If we add ?tmpl= Joomla in the address line of> 1.5, we get the white page
Example:
http://joomla-site.org/?tmpl= > blank page!
You can substitute anything at the end of
http://joomla-site.org/?tmpl=scgsgfg > blank page!
Status | New | ⇒ | Closed |
Closed_Date | 0000-00-00 00:00:00 | ⇒ | 2016-05-02 20:49:36 |
Closed_By | ⇒ | brianteeman |
It's a bug. https://www.joomla.org/?tmpl=
does it too.
The code in the app classes rendering the document needs an additional sanity check against an empty tmpl
query parameter.
Status | Closed | ⇒ | New |
Closed_Date | 2016-05-02 20:49:36 | ⇒ | |
Closed_By | brianteeman | ⇒ |
It's not strictly an empty one. It's just an invalid one. Try "test" or "foo" or anything where there is no template file for it. If the file is missing, it will create that blank page.
It's not really an error as no error or warning is shown (not like blank pages usually would indicate).
So the options would be to show a Joomla error page "file not found" or just silently fall back to the regular index.php file.
Not sure what makes more sense.
https://docs.joomla.org/Priority
Hardly a Priority 2 issue
On 2 May 2016 at 22:18, Thomas Hunziker notifications@github.com wrote:
It's not strictly an empty one. It's just an invalid one. Try "test" or
"foo" or anything where there is no template file for it. If the file is
missing, it will create that blank page.
It's not really an error as no error or warning is shown (not like blank
pages usually would indicate).So the options would be to show a Joomla error page "file not found" or
just silently fall back to the regular index.php file.
Not sure what makes more sense.—
You are receiving this because you modified the open/close state.
Reply to this email directly or view it on GitHub
#10207 (comment)
Brian Teeman
Co-founder Joomla! and OpenSourceMatters Inc.
http://brian.teeman.net/
So the options would be to show a Joomla error page "file not found" or just silently fall back to the regular index.php file.
JDocumentHtml already falls back on the system template if it can't find the file, so that part's somewhat OK (but it doesn't account for if the file doesn't exist in the system template too). Another part of the issue is JDocumentHtml::render() shouldn't be getting called to begin with while the file data is empty (start at https://github.com/joomla/joomla-cms/blob/staging/libraries/cms/application/site.php#L706 and trace it forward). JApplicationCms should be ensuring it defaults to index.php
no matter what.
Closing as we have a PR.
Status | New | ⇒ | Closed |
Closed_Date | 0000-00-00 00:00:00 | ⇒ | 2016-05-03 06:47:21 |
Closed_By | ⇒ | Bakual |
Please use the forum for support. Http://forum.Joomla.org