Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
Pages: 1
#1 2007-01-04 00:31:16
- vegancheesesteak
- New Member
- From: Philadelphia, PA
- Registered: 2007-01-04
- Posts: 3
How to turn off Textpattern notices
I am using Textpattern 4.0.4 and my production mode is set to ‘Live’, but Textpattern is still writing error notices on my 404 pages.
For Example:
Notice: error_article_context in /home/fluid/html/jsync/textpattern/lib/txplib_misc.php on line 1821
Is there anyway to turn this off? So just my default error page will show?
Offline
Re: How to turn off Textpattern notices
That’s not a 404 error. That error is being caused by the fact that you have article tags in a non-article situation.
Offline
#3 2007-01-04 02:30:13
- vegancheesesteak
- New Member
- From: Philadelphia, PA
- Registered: 2007-01-04
- Posts: 3
Re: How to turn off Textpattern notices
Ok. I’m not sure how to remedy it then. The tags for pages in the section look like this:
<txp:output_form form="abouthdr" />
<txp:output_form form="breadcrumb" />
<txp:article allowoverride="0" form="pagetext" limit="1" pgonly="0" searchall="0" searchsticky="0" sort="Section asc" status="4" />
<txp:article_custom allowoverride="0" category="homepage" excerpted="y" form="callout_findtalent" limit="1" pgonly="0" section="find-talent" sort="Section asc" status="4" />
<txp:article_custom allowoverride="0" category="homepage" excerpted="y" form="callout_hotjobs" limit="1" pgonly="0" section="hot-jobs" sort="Section asc" status="4" />
<txp:output_form form="aboutftr" />
Do i need to move the article tags elsewhere?
Thanks.
Offline
Re: How to turn off Textpattern notices
Since it’s a 404 error, there are no articles, so either remove the <txp:article />
references in your template, or replace them with <txp:article_custom />
, if you want them to show up. Error pages should be simple, so maybe refine to the header and footer (provided there are no <txp:article />
calls in them) and an error message:
<txp:output_form form="abouthdr" />
<h1>Error</h1>
<p>Sorry, the page could not be found. </p>
<txp:output_form form="aboutftr" />
Offline
#5 2007-01-04 08:37:10
- vegancheesesteak
- New Member
- From: Philadelphia, PA
- Registered: 2007-01-04
- Posts: 3
Re: How to turn off Textpattern notices
My error_default page now looks like this:
<txp:output_form form="errorhdr" />
<txp:output_form form="errortext" />
<txp:output_form form="genericftr" />
All of the forms are set to misc not article. None of the forms contain article tags.
The errortext form contains this:
<div id="textwide">
<h3><txp:error_status /></h3>
<txp:error_message />
<p><txp:link_to_home>< Back to Home.</txp:link_to_home></p>
</div>
I’m still getting “Notice: error_article_context in C:\Documents and Settings\Nick\My Documents\Work\JSync\DEV_SITE\htdocs\textpattern\lib\txplib_misc.php on line 1821” on my error pages.
Did I miss something?
Thanks for the help and quick replies. They are greatly appreciated.
Offline
#6 2007-01-04 19:39:26
- Mary
- Sock Enthusiast
- Registered: 2004-06-27
- Posts: 6,236
Re: How to turn off Textpattern notices
There was a strange bug regarding error messages and live mode, but that should be fixed in svn.
However, built-in error pages (such as error_default) do not do a check for an article tag. You must be talking about something else.
If you are trying to create a custom page for 404 errors, here is how you do it:
- Make sure you have a page named “error_default” and that it contains the default contents.
- Copy “error_default” to a new page called “error_404” and customize it to your hearts content.
Offline
Pages: 1