Search
Other Sourcerer questions
Forum

Sourcerer functionality breaking on error.php template

Michael Hermary's Avatar Michael Hermary
Hello,

I am using the error.php template file in my custom template to display error messages (404, etc.). I have used Cassiopeia's error.php as reference and have copied in most of the code from my template's index.php. Most of the core Joomla code is working, but Sourcerer is not working in a footer module that displays a copyright date and the website's sitename using PHP.
{source}
<p>&copy; <?php echo date('Y') . '&nbsp;' . htmlspecialchars( $app->get( 'sitename' ), ENT_QUOTES, 'UTF-8' ); ?></p>
{/source}
This code is working on all other pages within Joomla. When I view it on the error.php template, the code is out put like the following:
{source}
© get( 'sitename' ), ENT_QUOTES, 'UTF-8' ); ?>
{/source}
This code is included in the HTML After custom field made available by AMM.

The plugin has this setting Enable other areas enabled with Allow PHP tags set to Yes.

Articles Anywhere in a different footer module is working.

Does Sourcerer not work on error.php templates?

Cheers,
Peter van Westen's Avatar Peter van Westen ADMIN
You cannot use Joomla plugin tags in the error.php.
Please post a rating at the Joomla! Extensions Directory
Michael Hermary's Avatar Michael Hermary
Hello Peter,

Thanks for clarifying.

Cheers,
You can only post on the extension support forum if you have an active subscription and you log in

Buy a Pro subscription