1. Dayyal Dg.
  2. SportsOn
  3. Thursday, 12 October 2017
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/
Accepted Answer
Accepted Answer Pending Moderation
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>
  1. more than a month ago
  2. SportsOn
  3. # Permalink
Responses (5)
Accepted Answer Pending Moderation
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
  1. more than a month ago
  2. SportsOn
  3. # 1
Accepted Answer Pending Moderation
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.
  1. more than a month ago
  2. SportsOn
  3. # 2
Accepted Answer Pending Moderation
Have you tried solution 1 and/or 2 ?
--
Check/Scan your site to remove all 404 errors, and no problem.
  1. more than a month ago
  2. SportsOn
  3. # 3
Accepted Answer Pending Moderation
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
  1. more than a month ago
  2. SportsOn
  3. # 4


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.