-
AuthorPosts
-
Andrew Winkler Friend
Andrew Winkler
- Join date:
- September 2014
- Posts:
- 725
- Downloads:
- 206
- Uploads:
- 31
- Thanks:
- 291
- Thanked:
- 34 times in 2 posts
May 22, 2015 at 1:34 am #736488Still 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:
max_santiago Friendmax_santiago
- Join date:
- January 2013
- Posts:
- 216
- Downloads:
- 49
- Uploads:
- 58
- Thanks:
- 120
- Thanked:
- 8 times in 3 posts
May 25, 2015 at 4:36 pm #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.
1 user says Thank You to max_santiago for this useful post
max_santiago Friendmax_santiago
- Join date:
- January 2013
- Posts:
- 216
- Downloads:
- 49
- Uploads:
- 58
- Thanks:
- 120
- Thanked:
- 8 times in 3 posts
May 25, 2015 at 4:36 pm #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.
1 user says Thank You to max_santiago for this useful post
Ninja Lead ModeratorNinja Lead
- Join date:
- November 2014
- Posts:
- 16064
- Downloads:
- 310
- Uploads:
- 2864
- Thanks:
- 341
- Thanked:
- 3854 times in 3563 posts
May 26, 2015 at 11:27 am #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 aboveAndrew Winkler FriendAndrew Winkler
- Join date:
- September 2014
- Posts:
- 725
- Downloads:
- 206
- Uploads:
- 31
- Thanks:
- 291
- Thanked:
- 34 times in 2 posts
May 28, 2015 at 7:58 pm #572190Still 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 Friendmax_santiago
- Join date:
- January 2013
- Posts:
- 216
- Downloads:
- 49
- Uploads:
- 58
- Thanks:
- 120
- Thanked:
- 8 times in 3 posts
May 29, 2015 at 3:32 am #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 Friendmax_santiago
- Join date:
- January 2013
- Posts:
- 216
- Downloads:
- 49
- Uploads:
- 58
- Thanks:
- 120
- Thanked:
- 8 times in 3 posts
May 29, 2015 at 3:32 am #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 ModeratorNinja Lead
- Join date:
- November 2014
- Posts:
- 16064
- Downloads:
- 310
- Uploads:
- 2864
- Thanks:
- 341
- Thanked:
- 3854 times in 3563 posts
May 29, 2015 at 10:30 am #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 hereNinja Lead ModeratorNinja Lead
- Join date:
- November 2014
- Posts:
- 16064
- Downloads:
- 310
- Uploads:
- 2864
- Thanks:
- 341
- Thanked:
- 3854 times in 3563 posts
May 29, 2015 at 10:30 am #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 heremax_santiago Friendmax_santiago
- Join date:
- January 2013
- Posts:
- 216
- Downloads:
- 49
- Uploads:
- 58
- Thanks:
- 120
- Thanked:
- 8 times in 3 posts
May 29, 2015 at 1:58 pm #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.
max_santiago Friendmax_santiago
- Join date:
- January 2013
- Posts:
- 216
- Downloads:
- 49
- Uploads:
- 58
- Thanks:
- 120
- Thanked:
- 8 times in 3 posts
Ninja Lead ModeratorNinja Lead
- Join date:
- November 2014
- Posts:
- 16064
- Downloads:
- 310
- Uploads:
- 2864
- Thanks:
- 341
- Thanked:
- 3854 times in 3563 posts
May 29, 2015 at 10:29 pm #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 FriendAndrew Winkler
- Join date:
- September 2014
- Posts:
- 725
- Downloads:
- 206
- Uploads:
- 31
- Thanks:
- 291
- Thanked:
- 34 times in 2 posts
June 2, 2015 at 7:25 pm #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 FriendAndrew Winkler
- Join date:
- September 2014
- Posts:
- 725
- Downloads:
- 206
- Uploads:
- 31
- Thanks:
- 291
- Thanked:
- 34 times in 2 posts
June 2, 2015 at 7:25 pm #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 ModeratorNinja Lead
- Join date:
- November 2014
- Posts:
- 16064
- Downloads:
- 310
- Uploads:
- 2864
- Thanks:
- 341
- Thanked:
- 3854 times in 3563 posts
June 3, 2015 at 11:46 am #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
AuthorPostsThis topic contains 42 replies, has 5 voices, and was last updated by Andrew Winkler 9 years, 5 months ago.
We moved to new unified forum. Please post all new support queries in our New Forum
Jump to forum