Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
Re: Deprecated?
Correct
Offline
Re: Deprecated?
I don’t know if this is possible but would the notice be able to display the tag it is having a problem with? I ask this because if you have a particularly complex page, maybe pulling in half a dozen form templates, it could be like looking for a needle in a haystack if you don’t know what you are searching for.
Stuart
In a Time of Universal Deceit
Telling the Truth is Revolutionary.
Offline
Re: Deprecated?
That’s possible and a good idea.
Offline
Re: Deprecated?
Excellent. So will you be able to get it in before 4.0.6?
Stuart
In a Time of Universal Deceit
Telling the Truth is Revolutionary.
Offline
Re: Deprecated?
Um… I checked again how it currently works. I think it’s clear enough ;)
tag_error <txp:sitename/> -> Textpattern Notice: deprecated_tag on line 990
Offline
Re: Deprecated?
Is that the line number of the page then?
Stuart
In a Time of Universal Deceit
Telling the Truth is Revolutionary.
Offline
Re: Deprecated?
I suspect it’s the number in the PHP script.
Offline
Re: Deprecated?
I don’t recall it displaying like that you know. Let me put the error back and see.
Stuart
In a Time of Universal Deceit
Telling the Truth is Revolutionary.
Offline
Re: Deprecated?
No I didn’t think so. It displays like so:-
Notice: tag is deprecated in /home/thebombs/public_html/textpattern/publish.php on line 990
Stuart
In a Time of Universal Deceit
Telling the Truth is Revolutionary.
Offline
Re: Deprecated?
Line numbers in errors are hard to alter since it points to where to code broke and not what made it brake. I went ape on it when doing my searchplugin since it outputted errors that was created by it in subroutines.
BUT, with a lot of code digging and the use of many dmp();s I found’em. I’ve actually saved a special version of the plugin that’s just littered with var dumps just to remind me of the mayhem =D.
Oh, and don’t forget the die();s.
Plugins: ob1_advanced_search 1.032b, ob1_search_score 1.0, ob1_pagination 2.5, ob1_title 4.1, ob1_modified 2.1
“Let your plans be dark and as impenetratable as night, and when you move, fall like a thunderbolt.”
— Sun Tzu
Offline
Re: Deprecated?
Is it just the error page that omits the tag name in the notice or does that also happen if you use something like <txp:sitename /> in the default template for the frontpage?
Offline
Re: Deprecated?
The notice doesn’t show on any other page except the error page. My site is in “live” mode though so maybe that has something to do with it?? Let me go try something.
Last edited by thebombsite (2007-09-24 19:43:44)
Stuart
In a Time of Universal Deceit
Telling the Truth is Revolutionary.
Offline