Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
Pages: 1
error_article_context on error page
I’m still using 4.0.4, and I’m getting an “error_article_context” on the error (404) page!
I haven’t modified the error page template. So I can’t guess why is this error jumping out.
Any idea?
Z
Offline
#2 2007-07-11 02:39:42
- Mary
- Sock Enthusiast
- Registered: 2004-06-27
- Posts: 6,236
Re: error_article_context on error page
Tag trace please.
Offline
Re: error_article_context on error page
On the error page I get no tag trace.
I get a lot of it on the non-error pages, though… should I post it here?
Z-
Last edited by Zanza (2007-07-11 11:32:03)
Offline
#4 2007-07-12 02:27:28
- Mary
- Sock Enthusiast
- Registered: 2004-06-27
- Posts: 6,236
Re: error_article_context on error page
Hmm, yeah. Real helpful, isn’t it?
Okay, post here the entire contents of your error_default page (or your error_404 page, if you made one).
Offline
Re: error_article_context on error page
So, we love sarcasm. Sort of.
btw, this is the code(s). Blabla is used for masking.
<br />
<b>Notice</b>: error_article_context in <b>/var/www/vhosts/bla.bla.bla.bla/httpdocs/textpattern/lib/txplib_misc.php</b> on line <b>1821</b><br />
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="it" lang="it">
<head>
<meta http-equiv="content-type" content="text/html; charset=utf-8" />
<title>blablabla.it: 404 Not Found</title>
<style type="text/css">
<!--
#content
{
margin-left: 155px;
margin-right: 155px;
padding-top: 30px;
text-align: center;
}
h1,h2,h3,h4,h5,h6
{
font-weight: normal;
font-family: Georgia, Times, Serif;
}
p
{
font-family: Verdana, "Lucida Grande", Tahoma, Helvetica;
font-size: 0.9em;
line-height: 1.6em;
}
a img
{
border: none;
}
-->
</style>
</head>
<body>
<div id="content">
<h1>blablabla.it: 404 Not Found</h1>
<p>404 - La pagina richiesta non è stata trovata.</p>
<p><a rel="home" href="http://www.blabla.it/">http://www.blabla.it/</a></p>
<p><a href="http://textpattern.com/"><img src="http://www.blabla.it/textpattern/txp_img/txp_slug105x45.gif" /></a></p>
</div>
<script src="blabla..." type="text/javascript" charset="utf-8"></script>
<script src="blabla.js" type="text/javascript">
</script>
</script>
</body>
</html>
And this is the template:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="it" lang="it">
<head>
<meta http-equiv="content-type" content="text/html; charset=utf-8" />
<title><txp:sitename />: <txp:error_status /></title>
<style type="text/css">
<!--
#content
{
margin-left: 155px;
margin-right: 155px;
padding-top: 30px;
text-align: center;
}
h1,h2,h3,h4,h5,h6
{
font-weight: normal;
font-family: Georgia, Times, Serif;
}
p
{
font-family: Verdana, "Lucida Grande", Tahoma, Helvetica;
font-size: 0.9em;
line-height: 1.6em;
}
a img
{
border: none;
}
-->
</style>
</head>
<body>
<div id="content">
<h1><txp:sitename />: <txp:error_status /></h1>
<p><txp:error_message /></p>
<p><txp:link_to_home><txp:site_url /></txp:link_to_home></p>
<p><a href="http://textpattern.com/"><txp:img src="textpattern/txp_img/txp_slug105x45.gif" /></a></p>
</div>
<script src="http://feeds.feedburner.com/~s/blabla?i=<txp:permlink />" type="text/javascript" charset="utf-8"></script>
<script src="http://www.google-analytics.com/urchin.js" type="text/javascript">
</script>
<script type="text/javascript">
_uacct = "UA-blabla";
urchinTracker();
</script>
</body>
</html>
Offline
Re: error_article_context on error page
<txp:permlink /> is only to be used in the article-context, i.e., inside an article form.
Offline
Re: error_article_context on error page
…and that works! Thanks!
For statistical purpose, is there a way to pass the actual url of the page that caused the error to the script, so that analytics can register also 404 calls?
Z-
Offline
Re: error_article_context on error page
<txp:request_uri />
<txp:page_url />
Last edited by Sencer (2007-07-12 17:22:01)
Offline
Re: error_article_context on error page
…and that works again! Thanks very much!
Z
Offline
Pages: 1