Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2007-07-10 23:37:21

Zanza
Plugin Author
Registered: 2005-08-18
Posts: 699
Website

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

#3 2007-07-11 11:31:32

Zanza
Plugin Author
Registered: 2005-08-18
Posts: 699
Website

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

#5 2007-07-12 15:01:58

Zanza
Plugin Author
Registered: 2005-08-18
Posts: 699
Website

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

#6 2007-07-12 15:55:27

Sencer
Archived Developer
From: cgn, de
Registered: 2004-03-23
Posts: 1,803
Website

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

#7 2007-07-12 16:34:32

Zanza
Plugin Author
Registered: 2005-08-18
Posts: 699
Website

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

#8 2007-07-12 17:17:26

Sencer
Archived Developer
From: cgn, de
Registered: 2004-03-23
Posts: 1,803
Website

Re: error_article_context on error page

<txp:request_uri />

<txp:page_url />

Last edited by Sencer (2007-07-12 17:22:01)

Offline

#9 2007-07-12 17:35:06

Zanza
Plugin Author
Registered: 2005-08-18
Posts: 699
Website

Re: error_article_context on error page

…and that works again! Thanks very much!

Z

Offline

Board footer

Powered by FluxBB