Summary of Changes
Add the $_type = "html" before get renderer class to make sure no error "Unable to load renderer class" if url request the return format != html Testing Instructions
I got the error when developing a plugin for calling from com_ajax
Please add more information to your issue. Without test instructions and/or any description we will close this issue within 4 weeks. Thanks. This is an automated message from the J!Tracker Application.
Not a good fix. If you've instantiated a JDocument object in a non-HTML format, you're doing a massive change to the internals here by changing that variable (imagine if you will a JDocumentJson object that you've now set the internal type to HTML).
The correct action in all plugins that interact with output in any form is to check the environment and change the behavior based on that. If a plugin functionality relies on HTML output, this needs to be checked because the same behavior may cause issues with a JSON or XML document object (for example).
Please add more information to your issue. Without test instructions and/or any description we will close this issue within 4 weeks. Thanks.
This is an automated message from the J!Tracker Application.