require_once(JPATH_LIBRARIES.'/joomla/document/html/renderer/head.php');
$header_contents = ‘’; if(!class_exists(‘JDocumentRendererHead’)) { $head = JPATH_LIBRARIES . ‘/joomla/document/html/renderer/head.php’; if(file_exists($head)) { require_once($head); } }
Great thank you Toufiq, i had the same problem and that's ok now !
<?php /** * @package Joomla.Site * @subpackage Template.system * * @copyright Copyright (C) 2005 - 2017 Open Source Matters, Inc. All rights reserved. * @license GNU General Public License version 2 or later; see LICENSE.txt */ defined('_JEXEC') or die; /** @var JDocumentError $this */ if (($this->error->getCode()) == '404') { header('Location: /404'); exit; } ?>
made changes to error.php now looks like the screenshot file in the archive
Please publish modules in sidebar position.