?
avatar inverser-pro
inverser-pro
2 May 2016

?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!

avatar inverser-pro inverser-pro - open - 2 May 2016
avatar inverser-pro inverser-pro - change - 2 May 2016
The description was changed
avatar inverser-pro inverser-pro - change - 2 May 2016
The description was changed
avatar inverser-pro inverser-pro - change - 2 May 2016
The description was changed
avatar brianteeman
brianteeman - comment - 2 May 2016

Please use the forum for support. Http://forum.Joomla.org

avatar brianteeman brianteeman - change - 2 May 2016
Status New Closed
Closed_Date 0000-00-00 00:00:00 2016-05-02 20:49:36
Closed_By brianteeman
avatar brianteeman brianteeman - close - 2 May 2016
avatar inverser-pro inverser-pro - close - 2 May 2016
avatar brianteeman brianteeman - close - 2 May 2016
avatar inverser-pro inverser-pro - change - 2 May 2016
The description was changed
avatar mbabker
mbabker - comment - 2 May 2016

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.

avatar mbabker mbabker - change - 2 May 2016
Status Closed New
Closed_Date 2016-05-02 20:49:36
Closed_By brianteeman
avatar mbabker mbabker - reopen - 2 May 2016
avatar mbabker mbabker - reopen - 2 May 2016
avatar Bakual
Bakual - comment - 2 May 2016

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.

avatar brianteeman
brianteeman - comment - 2 May 2016

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/

avatar mbabker
mbabker - comment - 2 May 2016

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.

avatar Bakual
Bakual - comment - 3 May 2016

I went and added a fallback in JDocumentHtml where the current fallback to the system template already exists. I think it makes most sense there.
See #10210

avatar Bakual
Bakual - comment - 3 May 2016

Closing as we have a PR.

avatar Bakual Bakual - change - 3 May 2016
Status New Closed
Closed_Date 0000-00-00 00:00:00 2016-05-03 06:47:21
Closed_By Bakual
avatar Bakual Bakual - close - 3 May 2016

Add a Comment

Login with GitHub to post a comment