Viewing 12 posts - 1 through 12 (of 12 total)
  • Author
    Posts
  • jeffhoneyager Friend
    #1070298

    Where 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 Moderator
    #1070362

    Hi
    You can find it in the template folder /error.php file
    and error.css file is used for its style.

    Regards

    jeffhoneyager Friend
    #1070511

    Okay … 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 Moderator
    #1070787

    Hello

    Please refer to this tutorial to create your custom 404 page.

    Regards

    jeffhoneyager Friend
    #1070962

    According 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 Moderator
    #1071130

    Hi
    You have to create your article for 404 page and then point this article via below code

    if (($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 Friend
    #1071350

    No Joy. Made the change you suggested, checked it 3 times. Now I get:

    Error displaying the error page


    1. edited-error-php-file-not-working
    Pankaj Sharma Moderator
    #1071478

    Hi
    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 Friend
    #1071575
    This reply has been marked as private.
    Pankaj Sharma Moderator
    #1071588

    Hi
    I found you have not added the code is its not working,
    I added it and its working fine.

    Regards

    jeffhoneyager Friend
    #1071593

    I 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 Moderator
    #1071752

    Hi
    I applied the changes on your site directly, kindly check the error page is now your article.
    Regards

Viewing 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