Viewing 15 posts - 1 through 15 (of 42 total)
  • Author
    Posts
  • Andrew Winkler Friend
    #206250

    I’ve recently upgraded from JA University T3 to JA Teline V, and I’m super happy with the new template, it’s brilliant, it’s beautiful and it’s fast. However, one of a couple of problem I’ve got left is that the custom error pages no longer work. If you enter any non-existing URL, I just get the plain vanilla Joomla “controller missing” error page, instead of the cute custom Joomlart error page. Can you please help me with this?

    Ninja Lead Moderator
    #570279

    That error is not coming from joomla so it can only be coming from one of your extensions, you can see the problem from JomSocial here, you should ask about this problem to the extension developer, you will get better answers from them.

    Ninja Lead Moderator
    #735345

    That error is not coming from joomla so it can only be coming from one of your extensions, you can see the problem from JomSocial here, you should ask about this problem to the extension developer, you will get better answers from them.

    Andrew Winkler Friend
    #570378

    I don’t think my case has anything to do with the problem covered in that Jomsocial ticket which was about a conflict between Jomsocial and a superseded version of Kunena.

    Here’s the full thread:

    http://awesomescreenshot.com/08a4wka330

    So why would my site produce the standard Joomla ‘missing controller’ page instead of the sexy JA Teline V custom error page?

    Ninja Lead Moderator
    #570508

    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.

    Andrew Winkler Friend
    #570560

    I really like your nice error pages because they not only look nice but they were with any kind of error and give you a proper error message, such an SQL error. So I would prefer to get that work on my site.

    Ninja Lead Moderator
    #570642

    I checked on JA Teline V template and saw it’s working with 404 error page of joomla default, I have defined 404 error page here, you can try to apply it on your site

    Open templates/ja_teline_v/error.php file and replace all data in old file to new rule


    <?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 echo $this->error->getCode(); ?></div>

    <div class="error-message">
    <h2>SORRY!</h2>
    <p>
    <?php echo $this->error->getMessage(); ?><br />
    <?php echo JText::_('JERROR_LAYOUT_PLEASE_TRY_ONE_OF_THE_FOLLOWING_PAGES'); ?> <a href="<?php echo $this->baseurl; ?>/index.php" title="<?php echo JText::_('JERROR_LAYOUT_GO_TO_THE_HOME_PAGE'); ?>"><?php echo JText::_('JERROR_LAYOUT_HOME_PAGE'); ?></a>
    </p>
    </div>

    </div>
    </div>

    </body>
    </html>

    Ninja Lead Moderator
    #735705

    I checked on JA Teline V template and saw it’s working with 404 error page of joomla default, I have defined 404 error page here, you can try to apply it on your site

    Open templates/ja_teline_v/error.php file and replace all data in old file to new rule


    <?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 echo $this->error->getCode(); ?></div>

    <div class="error-message">
    <h2>SORRY!</h2>
    <p>
    <?php echo $this->error->getMessage(); ?><br />
    <?php echo JText::_('JERROR_LAYOUT_PLEASE_TRY_ONE_OF_THE_FOLLOWING_PAGES'); ?> <a href="<?php echo $this->baseurl; ?>/index.php" title="<?php echo JText::_('JERROR_LAYOUT_GO_TO_THE_HOME_PAGE'); ?>"><?php echo JText::_('JERROR_LAYOUT_HOME_PAGE'); ?></a>
    </p>
    </div>

    </div>
    </div>

    </body>
    </html>

    Andrew Winkler Friend
    #570833

    I have pasted it into my templates/ja_teline_v/error.php page and am now getting the standard HTML 404 error page. However that’s not what I was after. I wanted to get the nice custom error page with cool graphics that come with most of not all Joomlart templates. The last one I remember that was working had some owl there plus the error message. If the site returned a SQL error, it displayed that error text, which made debugging much easier for me. And of course it looked much better if the reader tried to open a page that doesnt’ exist.

    Andrew Winkler Friend
    #735895

    I have pasted it into my templates/ja_teline_v/error.php page and am now getting the standard HTML 404 error page. However that’s not what I was after. I wanted to get the nice custom error page with cool graphics that come with most of not all Joomlart templates. The last one I remember that was working had some owl there plus the error message. If the site returned a SQL error, it displayed that error text, which made debugging much easier for me. And of course it looked much better if the reader tried to open a page that doesnt’ exist.

    zorroh Friend
    #571160

    in near row 34 you find this

    <div class="error-code"><?php echo $this->error->getCode(); ?></div>

    Change it to

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

    Worked for me :-*

    I also made a menu link for 404 article so for me works also ‘Location: 404’

    <div class="error-code"><?php if (($this->error->getCode()) == '404') {
    header('Location: 404');
    exit;
    } ?></div>

    Andrew Winkler Friend
    #571178

    I have changed /templates/ja_teline_v/error.php accordingly but that still didnt’ work.

    http://awesomescreenshot.com/0124wxorf3

    I assume this might have something to do that there is no article with the ID 437. Am I right to assume that I need to create it? Probably a silly question.

    So I have created a new Joomla content error page with the article ID 404 (I changed the ID in the content table) and then changed the ID in the error.php to that article ID number as well.

    <?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>
    <meta http-equiv="content-type" content="text/html; charset=utf-8" />
    <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" />

    </head>
    <body class="page-error">
    <div class="error">
    <div id="outline">
    <div id="error-outline">
    <h1><?php echo $this->error->getCode(); ?></h1>

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

    <div id="errorboxbody">
    <?php echo JText::_('JERROR_LAYOUT_PLEASE_TRY_ONE_OF_THE_FOLLOWING_PAGES'); ?> <a href="<?php echo $this->baseurl; ?>/index.php" title="<?php echo JText::_('JERROR_LAYOUT_GO_TO_THE_HOME_PAGE'); ?>"><?php echo JText::_('JERROR_LAYOUT_HOME_PAGE'); ?></a>
    </div>

    </div>
    </div>
    </div>
    </body>
    </html>

    zorroh Friend
    #571212

    Ok. now i discover that… Dashed link dont work and without any dash it will work.

    This link dont work – http://kaev.net/t5/This-Link-Dosent-Exist
    and link is working – http://kaev.net/t5/ThisLinkDosentExist

    This is my error.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: 404');
    exit;
    } ?></div>

    <div class="error-message">

    </div>

    </div>
    </div>

    </body>
    </html>

    zorroh Friend
    #736260

    Ok. now i discover that… Dashed link dont work and without any dash it will work.

    This link dont work – http://kaev.net/t5/This-Link-Dosent-Exist
    and link is working – http://kaev.net/t5/ThisLinkDosentExist

    This is my error.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: 404');
    exit;
    } ?></div>

    <div class="error-message">

    </div>

    </div>
    </div>

    </body>
    </html>

    Andrew Winkler Friend
    #571440

    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

Viewing 15 posts - 1 through 15 (of 42 total)

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

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