test
Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • ciccio83 Friend
    #166282

    First of all, congratulations for this great forum!!!
    I’ve a problem. I’m using a personalized 404 page. When a user found a page that doesn’t exist, the page work correctly but i’ve a series of strange messages at the top and at the bottom of the page…you can check these messages directly clicking here http://www.focusvoltaico.com/en/contacts.html . Please, give me some help! Thank you.

    chavan Friend
    #401313

    Hi ciccio83

    You should add & ~ E_NOTICE in error_reporting in php.ini. You can read more in http://php.net/error-reporting

    murphyisar Friend
    #411885

    Looks like ciccio83’s page is still 404’d. I have a similar issue but have no php.ini file, only .htaccess? Would this be a file I create myself? kissing

    n6rej Friend
    #411921

    no your host would. Might turn off .htaccess and then in configuration.php turn off SEF and url rewrite. see how that works.

    shazib111 Friend
    #417477

    Actually you loose your site viewers to the dreaded 404 error pages, to correct it just redirect them to you home page. Below i will show how can you do it i.e., if someone enter wrong address of your site they will be sent to your homepage instead of 404 page..
    Follow below steps:-
    1) Copy the file templates/system/error.php to your default template location templates/<template-name>/error.php using either your hosts file manager or with a FTP client such as FileZilla.

    2) Open error.php for edit

    Change this original code near the top of the file

    // no direct access
    defined( '_JEXEC' ) or die( 'Restricted access' );
    ?>

    To this (add the stuff in red). Don’t forget to change <your-url> to your web site name!

    // no direct access
    defined( '_JEXEC' ) or die( 'Restricted access' );
    if (($this->error->code) == '404') {
    echo file_get_contents('http://www.<your-url>.com');
    } else {
    ?>

    Finally at the very bottom of the file add the following

    <?php } ?>

    You are done.

    n6rej Friend
    #417592

    for 1.5 use http://extensions.joomla.org/extensions/site-management/url-redirection/14676 for 1.6+ redirect is already included.
    http://docs.joomla.org/Creating_a_Custom_404_Error_Page will tell you how to create the custom error page.

    My initial response was an assumption that the error was happening improperly perhaps to sef issues.

Viewing 6 posts - 1 through 6 (of 6 total)

This topic contains 6 replies, has 5 voices, and was last updated by  n6rej 13 years, 1 month ago.

We moved to new unified forum. Please post all new support queries in our New Forum