fbpx

Astroid 2.4 Landed with Joomla 4 Compatibility Download Now

Welcome, Guest
Username: Password: Remember me

TOPIC: How to enable JD Builder Page 404 page

How to enable JD Builder Page 404 page 1 month 2 weeks ago #23574

  • srtdesigns
  • srtdesigns's Avatar
  • Offline
  • Senior Member
  • Posts: 46
  • Karma: 0
I have created a JD Builder Pro 404 page. I have created a hidden Page 404 menu which will launch the JD 404 page. In the past you edited the error.php file to make it active. I am not sure how to do this with your template file. Please advise, many thanks.
The administrator has disabled public write access.

How to enable JD Builder Page 404 page 1 month 2 weeks ago #23583

  • admin
  • admin's Avatar
  • Offline
  • Administrator
  • Posts: 4033
  • Thank you received: 592
  • Karma: 104
srtdesigns wrote:
I have created a JD Builder Pro 404 page. I have created a hidden Page 404 menu which will launch the JD 404 page. In the past you edited the error.php file to make it active. I am not sure how to do this with your template file. Please advise, many thanks.

Hi, You are looking for point #4 from this documentation.
docs.joomla.org/Archived:Creating_a_Custom_404_Error/en

Specefically, the first 4 lines of the error.php should read:
<?php
if (($this->error->getCode()) == '404') {
header('Location: YOURSITE.com/404pageurl');
exit;
}

Hope this helps!
Thank You,
If you like our support and products, tweet us at joomdev and let the world know about it.
The administrator has disabled public write access.

How to enable JD Builder Page 404 page 1 month 2 weeks ago #23584

  • srtdesigns
  • srtdesigns's Avatar
  • Offline
  • Senior Member
  • Posts: 46
  • Karma: 0
Hi, This does help but I was already aware of this. The problem I have is your error.php file does not look like this so I am not sure where to enter anything.
Attachments:
The administrator has disabled public write access.

How to enable JD Builder Page 404 page 1 month 2 weeks ago #23585

  • admin
  • admin's Avatar
  • Offline
  • Administrator
  • Posts: 4033
  • Thank you received: 592
  • Karma: 104
srtdesigns wrote:
Hi, This does help but I was already aware of this. The problem I have is your error.php file does not look like this so I am not sure where to enter anything.

It doesn't matter what the existing file looks like. Just add the above code right after the <?php tag and make sure <?php is not duplicated.
Since the last line reads exit(); www.php.net/manual/en/function.exit.php the exit function doesn't process the proceeding code so the rest of the file contents do not matter.

Thanks,
Chetan
Thank You,
If you like our support and products, tweet us at joomdev and let the world know about it.
The administrator has disabled public write access.
Moderators: chandandeep
Time to create page: 0.295 seconds