We’re with you. JoomShaper is offering a 20% Discount on all plans due to the impact of COVID-19.

Support Online : Mon - Fri / 10am - 6pm (GMT +6)

Your Time: Our Time:

Custom 404 Page Not Working

Featured Lock Resolved Issue
Hello, I have updated Joomla to the latest version, after updating, the custom 404 page is not working, its showing the blank white page. My website url: https://www.bioscience.pk/

6 Answers

Dayyal Dg.

More than a month ago #Permalink
Have you tried solution 1 and/or 2 ?
--
Check/Scan your site to remove all 404 errors, and no problem.
I have deleted the default codes from /templates/shaper_sportson/error.php and added the below codes to redirect 404 error to the homepage.


<html>
<head>
<title>Error 404</title>
<meta http-equiv="refresh" content="2; URL=https://www.bioscience.pk/">
<meta name="keywords" content="automatic redirection">
</head>
<body>
You will redirected to the homepage, if your browser doesn't
automatically go there within a few seconds,
you may want to go to
<a href="https://www.bioscience.pk/">BioScience.pk</a> manually.
</body>
</html>

Paul Frankowski - Staff

More than a month ago #Permalink
Hi,
until template update, you have two options:
1) Delete that file : error.php from template folder, so Joomla will use default
2) Override that file (error.php) which file taken from fresh, raw Helix II template

Dayyal Dg.

More than a month ago #Permalink
Hi,
until template update, you have two options:
1) Delete that file : error.php from template folder, so Joomla will use default
2) Override that file (error.php) which file taken from fresh, raw Helix II template
How long I need to wait for template update.

Paul Frankowski - Staff

More than a month ago #Permalink
Have you tried solution 1 and/or 2 ?
--
Check/Scan your site to remove all 404 errors, and no problem.

Pavel

More than a month ago #Permalink
Create page 404 if you do not have one. Paste the following code into error.php.

<?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;
}
?>


Paste in this code a relative link to your page 404.

http://dl3.joxi.net/drive/2017/10/13/0008/0401/545169/69/82387872d9.png


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

124

Templates

330636

Community Users

Newsletter

Don’t miss any updates of our new templates and extensions and all the astonishing offers we bring for you.
We never spam

Joomla! ® name is used under a limited license from Open Source Matters in the United States and other countries. JoomShaper.com is not affiliated with or endorsed by Open Source Matters or the Joomla! Project.

Connect Us