1. Shopin
  2. Monday, 02 October 2017
Hello.
Website: https://bft.com.kz/
Joomla 3.8 Page Builder 2.5.4
Page 404 has ceased to work, gives error messages.
https://bft.com.kz/component/404/? Itemid=488

Thanks.
Accepted Answer
Hi,

Find out this code from error.php file


require_once(JPATH_LIBRARIES.'/joomla/document/html/renderer/head.php');


And replace with this file

$header_contents = ‘’;
if(!class_exists(‘JDocumentRendererHead’)) {
$head = JPATH_LIBRARIES . ‘/joomla/document/html/renderer/head.php’;
if(file_exists($head)) {
require_once($head);
}
}


-Thanks
  1. more than a month ago
  2. Shopin
  3. # Permalink
Responses (8)
  1. more than a month ago
  2. Shopin
  3. # 1
The help is very necessary
  1. more than a month ago
  2. Shopin
  3. # 2
Great thank you Toufiq, i had the same problem and that's ok now !
:D
  1. more than a month ago
  2. Shopin
  3. # 3
Great thank you Toufiq, i had the same problem and that's ok now !
:D


Hi, You are most welcome & Thanks
  1. more than a month ago
  2. Shopin
  3. # 4
made changes to error.php
now looks like the screenshot
file in the archive
Attachments (2)
  1. more than a month ago
  2. Shopin
  3. # 5
Take a look at this solution for 404 pages. https://www.joomshaper.com/forums/custom-404-page#reply-96416.
On my sites works fine.
Attention. In the code, which is proposed by the author is missing a closing bracket at the end of "?>".

The code should be like this.

<?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;
}
?>
  1. more than a month ago
  2. Shopin
  3. # 6
made changes to error.php
now looks like the screenshot
file in the archive


Hi, Please create the new forum post.Please don't reply another user post. Thanks
  1. more than a month ago
  2. Shopin
  3. # 7


There are no replies made for this post yet.
Be one of the first to reply to this post!


This forum is archived

This forum has been archived. Please use JoomShaper official support system.