? Failure

User tests: Successful: Unsuccessful:

avatar boomsya
boomsya
5 Nov 2015

Many components using format=raw in URI and component have some errors (like errors in SQL) they have see only this:
Fatal error: Call to undefined method JDocumentRaw::isHtml5()

but with some modification I see page 1057 with rendered page error.php from template

avatar boomsya boomsya - open - 5 Nov 2015
avatar boomsya boomsya - change - 5 Nov 2015
Status New Pending
avatar joomla-cms-bot joomla-cms-bot - change - 5 Nov 2015
Labels Added: ?
avatar zero-24 zero-24 - change - 7 Nov 2015
Category Libraries
avatar wojsmol wojsmol - reference | 48a3ade - 21 Nov 15
avatar wojsmol
wojsmol - comment - 21 Nov 2015
avatar Fedik
Fedik - comment - 21 Nov 2015

hm, as I remember JDocumentRaw does not meant to have the header, and so does not use JDocumentRendererHead itself, it just for render the "raw" component output ...
no idea how you ended up there, you sure that you do things correct?

upd. Perhaps you need tmpl=component instead of format=raw

avatar Bakual
Bakual - comment - 21 Nov 2015

A component using raw output ideally shouldn't ever get redirected to the error.php page. That means your output is broken anyway since a HTML page is served instead of a raw output (which may be anything else).
So it looks more like an error in your component where you should catch that error and give a proper error response in the format you need.

However if you want to server a HTML page, then Fedik is right in that you shouldn't use format=raw but instead tmpl=component which is supposed to only return the component output (without any modules).

avatar roland-d roland-d - change - 31 Jul 2016
Status Pending Closed
Closed_Date 0000-00-00 00:00:00 2016-07-31 21:48:29
Closed_By roland-d
avatar roland-d roland-d - close - 31 Jul 2016
avatar roland-d
roland-d - comment - 31 Jul 2016

@boomsya I am closing this PR as it seems to be a coding error in a component If you want to pursue this further, feel free to re-open the pull request.


This comment was created with the J!Tracker Application at issues.joomla.org/joomla-cms/8286.

Add a Comment

Login with GitHub to post a comment