User tests: Successful: Unsuccessful:
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
Status | New | ⇒ | Pending |
Labels |
Added:
?
|
Category | ⇒ | Libraries |
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
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).
Status | Pending | ⇒ | Closed |
Closed_Date | 0000-00-00 00:00:00 | ⇒ | 2016-07-31 21:48:29 |
Closed_By | ⇒ | roland-d |
@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.
@boomsya see boomsya#1