Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2007-03-14 10:36:46

zero
Member
From: Lancashire
Registered: 2004-04-19
Posts: 1,470
Website

Can I log errors?

Is there a way I can log errors – ie, log what causes the error_default page to trigger? I would like to know what people are typing in to cause the errors.

I thought of creating a section and article just for errors, and then redirecting to it from error_default, but as Sencer said elsewhere, “If you redirect every 404 error, that means you are not sending a 404 HTTP error to the client. but a 30x response. While people usually won’t care, bots or search-engines will.”

I also thought of putting a hit stats thingie on the error_default page, but what is the address of the error_default page that a stat counter would use?

If I create error_404, error_xxx type pages, wouldn’t I have the same problem?


BB6 Band My band
Gud One My blog

Offline

#2 2007-03-14 19:10:01

zero
Member
From: Lancashire
Registered: 2004-04-19
Posts: 1,470
Website

Re: Can I log errors?

I think I solved it! I put some code from http://tracksy.com/ on the error_default page and tracksy found it and reported the url I typed in that led to the error.


BB6 Band My band
Gud One My blog

Offline

#3 2007-03-14 19:27:11

els
Moderator
From: The Netherlands
Registered: 2004-06-06
Posts: 7,458

Re: Can I log errors?

I’m using SlimStat for my stats, and that also records urls that lead to error pages. But of course, using a stat counter only for the error pages will give you a much better overview.

Offline

#4 2007-03-15 19:32:15

zero
Member
From: Lancashire
Registered: 2004-04-19
Posts: 1,470
Website

Re: Can I log errors?

I tried Slimstat once. I didn’t realise it showed errors too. But I prefer just to use TXP’s very handy logs. I don’t really need screen resolution, platform etc, although Tracksy shows these as well. So the stat counter on the error page suits me fine, and has already made me realise I deleted a page which has led to errors, so I can do something about it now :-)


BB6 Band My band
Gud One My blog

Offline

Board footer

Powered by FluxBB