I am trying to require the Simple HTML DOM Parser code snippet in a Joomla 3.0 content article using the Sourcerer Plugin, but instead the entire page fails to display with HTTP Error 500.
@InfiniteCustomer said:
I am trying to require the Simple HTML DOM Parser code snippet in a Joomla 3.0 content article using the Sourcerer Plugin, but instead the entire page fails to display with HTTP Error 500.
I suspect that JPATH_ROOT is a constant which is set to the main folder of your website. If you do require JPATH_ROOT, it will try to load whatever file is at the variable JPATH_ROOT. If you do require "JPATH_ROOT", it will try to look for a file specifically called JPATH_ROOT.
Edit: heh, even the syntax highlighting in the forum know it’s different.