test
Viewing 15 posts - 16 through 30 (of 42 total)
  • Author
    Posts
  • Andrew Winkler Friend
    #736488

    Still doesn’t work.

    If I enter this non-existing link:

    http:/therebel.is/trythisone

    I get that:

    http://awesomescreenshot.com/0914x5xy76

    If I enter this also non-existing:

    http:/therebel.is/news/trythisone

    I get that:

    http://awesomescreenshot.com/0624x5y3af

    What I really would like to get is one of Joomla Art’s funky error pages, like the one with the wise old owl, telling me the exact error number and message or at least something like this page:

    http://awesomescreenshot.com/0b14x5z6ef

    max_santiago Friend
    #571655

    <em>@Ninja Lead 473274 wrote:</em><blockquote>or you can try to work with 404 error page, when your site gets 404 error page and it will be redirected to 404 error page.

    You can check out the documentation here for how to work with it.</blockquote>

    Hallo Ninja, about your linked article we should have this:

    **********************************************************************
    if (($this->error->getCode()) == ‘404’) {
    header(‘Location: /index.php?option=com_content&view=article&id=75’);
    exit;
    }
    **********************************************************************

    but in our Teline V error page we have:

    **********************************************************************
    if (!isset($this->error)) {
    $this->error = JError::raiseWarning(404, JText::_(‘JERROR_ALERTNOAUTHOR’));
    $this->debug = false;
    }
    **********************************************************************

    I think in that article it describes about non-Joomlart solutions… is it true?!

    My problem is to find where put ‘menu url to “404 page” article’

    Thanks!

    M.

    max_santiago Friend
    #736701

    <em>@Ninja Lead 473274 wrote:</em><blockquote>or you can try to work with 404 error page, when your site gets 404 error page and it will be redirected to 404 error page.

    You can check out the documentation here for how to work with it.</blockquote>

    Hallo Ninja, about your linked article we should have this:

    **********************************************************************
    if (($this->error->getCode()) == ‘404’) {
    header(‘Location: /index.php?option=com_content&view=article&id=75’);
    exit;
    }
    **********************************************************************

    but in our Teline V error page we have:

    **********************************************************************
    if (!isset($this->error)) {
    $this->error = JError::raiseWarning(404, JText::_(‘JERROR_ALERTNOAUTHOR’));
    $this->debug = false;
    }
    **********************************************************************

    I think in that article it describes about non-Joomlart solutions… is it true?!

    My problem is to find where put ‘menu url to “404 page” article’

    Thanks!

    M.

    Ninja Lead Moderator
    #571740

    <blockquote>
    if (($this->error->getCode()) == ‘404’) {
    header(‘Location: /index.php?option=com_content&view=article&id=75’);
    exit;
    }
    </blockquote>
    @max_santiago: You can create new article with the info to notify error page and change the url as marked in red above

    Andrew Winkler Friend
    #572190

    Still not working. Still getting this:

    http://awesomescreenshot.com/06d4xriob8

    instead of someone more sexy like that:

    http://awesomescreenshot.com/06c4xrj9f4

    or at least something like this here:

    http://awesomescreenshot.com/09e4xrjsce

    This is my error.php page at the moment

    [PHP]<?php
    /**
    * @package Joomla.Site
    * @copyright Copyright (C) 2005 – 2012 Open Source Matters, Inc. All rights reserved.
    * @license GNU General Public License version 2 or later; see LICENSE.txt
    */

    defined(‘_JEXEC’) or die;
    if (!isset($this->error)) {
    $this->error = JError::raiseWarning(404, JText::_(‘JERROR_ALERTNOAUTHOR’));
    $this->debug = false;
    }
    //get language and direction
    $doc = JFactory::getDocument();
    $this->language = $doc->language;
    $this->direction = $doc->direction;
    $theme = JFactory::getApplication()->getTemplate(true)->params->get(‘theme’, ”);
    ?>
    <!DOCTYPE html PUBLIC “-//W3C//DTD XHTML 1.0 Transitional//EN” “http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd”>
    <html xmlns=”http://www.w3.org/1999/xhtml” xml:lang=”<?php echo $this->language; ?>” lang=”<?php echo $this->language; ?>” dir=”<?php echo $this->direction; ?>”>
    <head>
    <title><?php echo $this->error->getCode(); ?> – <?php echo $this->title; ?></title>
    <link rel=”stylesheet” href=”<?php echo $this->baseurl ?>/templates/<?php echo $this->template ?>/css/error.css” type=”text/css” />
    <?php if($theme && is_file(T3_TEMPLATE_PATH . ‘/css/themes/’ . $theme . ‘/error.css’)):?>
    <link rel=”stylesheet” href=”<?php echo $this->baseurl ?>/templates/<?php echo $this->template ?>/css/themes/<?php echo $theme ?>/error.css” type=”text/css” />
    <?php endif; ?>
    <link href=’http://fonts.googleapis.com/css?family=Handlee’ rel=’stylesheet’ type=’text/css’>
    </head>

    <body class=”page-error”>
    <div class=”error-page-wrap”>
    <div class=”inner”>

    <div class=”error-code”><?php if (($this->error->getCode()) == ‘404’) {
    header(‘Location: /index.php?option=com_content&view=article&id=404’);
    exit;
    } ?></div>

    <div class=”error-message”>

    </div>

    </div>
    </div>

    </body>
    </html>[/PHP]

    max_santiago Friend
    #572255

    <em>@Ninja Lead 474958 wrote:</em><blockquote>@max_santiago: You can create new article with the info to notify error page and change the url as marked in red above</blockquote>

    Ninja thanks but please, I wrote that….

    I have this code:

    if (!isset($this->error)) {
    $this->error = JError::raiseWarning(404, JText::_(‘JERROR_ALERTNOAUTHOR’));
    $this->debug = false;
    }

    not that you say!
    Where I have to insert my url error-article?!

    🙂

    M:

    max_santiago Friend
    #737292

    <em>@Ninja Lead 474958 wrote:</em><blockquote>@max_santiago: You can create new article with the info to notify error page and change the url as marked in red above</blockquote>

    Ninja thanks but please, I wrote that….

    I have this code:

    if (!isset($this->error)) {
    $this->error = JError::raiseWarning(404, JText::_(‘JERROR_ALERTNOAUTHOR’));
    $this->debug = false;
    }

    not that you say!
    Where I have to insert my url error-article?!

    🙂

    M:

    Ninja Lead Moderator
    #572277

    <em>@max_santiago 475592 wrote:</em><blockquote>Ninja thanks but please, I wrote that….

    I have this code:

    if (!isset($this->error)) {
    $this->error = JError::raiseWarning(404, JText::_(‘JERROR_ALERTNOAUTHOR’));
    $this->debug = false;
    }

    not that you say!
    Where I have to insert my url error-article?!

    🙂

    M:</blockquote>
    @max_santiago: You can follow steps here

    Ninja Lead Moderator
    #737314

    <em>@max_santiago 475592 wrote:</em><blockquote>Ninja thanks but please, I wrote that….

    I have this code:

    if (!isset($this->error)) {
    $this->error = JError::raiseWarning(404, JText::_(‘JERROR_ALERTNOAUTHOR’));
    $this->debug = false;
    }

    not that you say!
    Where I have to insert my url error-article?!

    🙂

    M:</blockquote>
    @max_santiago: You can follow steps here

    max_santiago Friend
    #572304

    <em>@Ninja Lead 475622 wrote:</em><blockquote>@max_santiago: You can follow steps here</blockquote>

    Uhm Ninja, I saw your link, but – I softly repeat 🙂 – code of error-page of TELINE V template is a “little different”… (see image) :((

    M.


    1. error-page
    max_santiago Friend
    #737341

    <em>@Ninja Lead 475622 wrote:</em><blockquote>@max_santiago: You can follow steps here</blockquote>

    Uhm Ninja, I saw your link, but – I softly repeat 🙂 – code of error-page of TELINE V template is a “little different”… (see image) :((

    M.

    Ninja Lead Moderator
    #572356

    <em>@max_santiago 475656 wrote:</em><blockquote>Uhm Ninja, I saw your link, but – I softly repeat 🙂 – code of error-page of TELINE V template is a “little different”… (see image) :((

    M.</blockquote>

    Yes, my posted here is customize with error.php on Teline V, I just re-checked my customize above and saw it works fine on Teline V.

    Andrew Winkler Friend
    #572644

    <blockquote>Yes, my posted here is customize with error.php on Teline V, I just re-checked my customize above and saw it works fine on Teline V.
    </blockquote>
    There are many posts with code in that thread. Do you mind add the correct one to this thread to save us the trouble of guessing (and trial&error) the correct one? Thank you.

    Andrew Winkler Friend
    #737680

    <blockquote>Yes, my posted here is customize with error.php on Teline V, I just re-checked my customize above and saw it works fine on Teline V.
    </blockquote>
    There are many posts with code in that thread. Do you mind add the correct one to this thread to save us the trouble of guessing (and trial&error) the correct one? Thank you.

    Ninja Lead Moderator
    #572720

    <em>@andrewwinkler 476145 wrote:</em><blockquote>There are many posts with code in that thread. Do you mind add the correct one to this thread to save us the trouble of guessing (and trial&error) the correct one? Thank you.</blockquote>

    I made the 404 error page you can get it and follow the steps below

    + Download and extract my attached file

    + Copy error.css file into templates/ja_teline_v/css/ folder and error.php file into templates/ja_teline_v/ folder

    and you should get results as shown in the screenshot below


    1. Screen-Shot-2015-06-03-at-11.46.55
    1. error.zip
Viewing 15 posts - 16 through 30 (of 42 total)

This topic contains 42 replies, has 5 voices, and was last updated by  Andrew Winkler 9 years, 6 months ago.

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