-
AuthorPosts
-
jeffhoneyager Friend
jeffhoneyager
- Join date:
- September 2008
- Posts:
- 30
- Downloads:
- 98
- Uploads:
- 7
- Thanked:
- 1 times in 1 posts
October 26, 2017 at 12:36 pm #1070298Where do I change the 404 page?
After 45 minutes on the site and in the backend I can’t find it and can’t search….
Thanks for the update – I thought it would be extremely simple to find….
I see an article with a 404 in it and it read:
Each JA Joomla Template has its own matching 404 page. Below is the screenshot of 404 page style.But I can’t find it in the Manage Templates ??? What am I missing?
- This topic was modified 7 years, 1 month ago by jeffhoneyager. Reason: clarification
Pankaj Sharma ModeratorPankaj Sharma
- Join date:
- February 2015
- Posts:
- 24589
- Downloads:
- 144
- Uploads:
- 202
- Thanks:
- 127
- Thanked:
- 4196 times in 4019 posts
October 27, 2017 at 12:51 am #1070362Hi
You can find it in the template folder /error.php file
and error.css file is used for its style.Regards
jeffhoneyager Friendjeffhoneyager
- Join date:
- September 2008
- Posts:
- 30
- Downloads:
- 98
- Uploads:
- 7
- Thanked:
- 1 times in 1 posts
October 27, 2017 at 12:02 pm #1070511Okay … I see the file. Now what?
…seems like a natural to create a tool within the template manager to aid us…
I see php code, not html code.
What/Where do I make a change and "point" to an article.
It would make sense to use the template and display an informative, well formatted article that displays within the look of the site and not blast a lame 404 page… in my opinion.
So, what should I do now?
Thanks for your help.
Pankaj Sharma ModeratorPankaj Sharma
- Join date:
- February 2015
- Posts:
- 24589
- Downloads:
- 144
- Uploads:
- 202
- Thanks:
- 127
- Thanked:
- 4196 times in 4019 posts
jeffhoneyager Friendjeffhoneyager
- Join date:
- September 2008
- Posts:
- 30
- Downloads:
- 98
- Uploads:
- 7
- Thanked:
- 1 times in 1 posts
October 30, 2017 at 11:46 am #1070962According to the documentation in the link provided, it reads,
Edit the error.php file as follows, adding the code below immediately under the ‘restricted access’ line:
In the error.php file, I did a search for "restricted" – there was nothing found.
Now what?
Pankaj Sharma ModeratorPankaj Sharma
- Join date:
- February 2015
- Posts:
- 24589
- Downloads:
- 144
- Uploads:
- 202
- Thanks:
- 127
- Thanked:
- 4196 times in 4019 posts
October 31, 2017 at 1:56 am #1071130Hi
You have to create your article for 404 page and then point this article via below codeif (($this->error->getCode()) == '404') { header('Location: /index.php?option=com_content&view=article&id=1'); exit; }
Place the code in error.php file http://prntscr.com/h463f8
Now it will open the article page when there is 404.Regards
jeffhoneyager Friendjeffhoneyager
- Join date:
- September 2008
- Posts:
- 30
- Downloads:
- 98
- Uploads:
- 7
- Thanked:
- 1 times in 1 posts
October 31, 2017 at 12:17 pm #1071350No Joy. Made the change you suggested, checked it 3 times. Now I get:
Error displaying the error page
Pankaj Sharma ModeratorPankaj Sharma
- Join date:
- February 2015
- Posts:
- 24589
- Downloads:
- 144
- Uploads:
- 202
- Thanks:
- 127
- Thanked:
- 4196 times in 4019 posts
November 1, 2017 at 2:32 am #1071478Hi
Kindly share a temp super user details of site in private reply and the article id that you want to point on 404 page.Regards
jeffhoneyager Friendjeffhoneyager
- Join date:
- September 2008
- Posts:
- 30
- Downloads:
- 98
- Uploads:
- 7
- Thanked:
- 1 times in 1 posts
November 1, 2017 at 9:30 am #1071575This reply has been marked as private.Pankaj Sharma ModeratorPankaj Sharma
- Join date:
- February 2015
- Posts:
- 24589
- Downloads:
- 144
- Uploads:
- 202
- Thanks:
- 127
- Thanked:
- 4196 times in 4019 posts
November 1, 2017 at 10:06 am #1071588Hi
I found you have not added the code is its not working,
I added it and its working fine.Regards
jeffhoneyager Friendjeffhoneyager
- Join date:
- September 2008
- Posts:
- 30
- Downloads:
- 98
- Uploads:
- 7
- Thanked:
- 1 times in 1 posts
November 1, 2017 at 10:24 am #1071593I did add the code – it didn’t work – so I removed it.
Take a look at the attachment in a previous post. That is what was change – and did not work.
Pankaj Sharma ModeratorPankaj Sharma
- Join date:
- February 2015
- Posts:
- 24589
- Downloads:
- 144
- Uploads:
- 202
- Thanks:
- 127
- Thanked:
- 4196 times in 4019 posts
November 2, 2017 at 1:43 am #1071752Hi
I applied the changes on your site directly, kindly check the error page is now your article.
RegardsAuthorPostsViewing 12 posts - 1 through 12 (of 12 total)This topic contains 11 replies, has 2 voices, and was last updated by Pankaj Sharma 7 years ago.
We moved to new unified forum. Please post all new support queries in our New Forum
Edit 404 Page
Viewing 12 posts - 1 through 12 (of 12 total)