Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
Pages: 1
#1 2011-01-24 19:26:59
- Kiersiege
- New Member
- Registered: 2011-01-24
- Posts: 4
Tag Error
So I’ve been trying to figure out a tag error I have on my page after installing TXP Afterglow.
Tag error on page:
Tag error: <txp:css n=“print” /> -> Textpattern Notice: n attribute is deprecated on line 63
textpattern/publish/taghandlers.php:63 trigger_error()
textpattern/publish.php:1169 css()
textpattern/publish.php:1091 processTags()
textpattern/lib/txplib_misc.php:1681 parse()
textpattern/publish/taghandlers.php:314 parse_form()
textpattern/publish.php:1169 output_form()
textpattern/publish.php:1091 processTags()
textpattern/publish.php:535 parse()
index.php:45 textpattern()
Here’s the error trace (or whatever you call it :P) from the view source.
<txp:output_form form=“sidebar” />
[SQL (0.0039842128753662): select Form from txp_form where name=‘sidebar’]
[Form: sidebar]
<txp:site_url />
<txp:site_url />
<txp:site_url />
<txp:site_url />
<txp:site_url />
<txp:site_url />
[ ~~~ secondpass ~~~ ]
I double checked and made sure I had input the sidebar code from the TXP Afterglow folder correctly and I had. I’m noobin it up here and I just can’t parse what I am doing wrong and why it doesn’t seem to like the sidebar form. Can anyone help me out?
Offline
Re: Tag Error
Hi:)
You need <txp:css name="print" />
. ‘n’ has been deprecated.
Yiannis
——————————
NeMe | hblack.art | EMAP | A Sea change | Toolkit of Care
I do my best editing after I click on the submit button.
Offline
#3 2011-01-24 20:02:28
- Kiersiege
- New Member
- Registered: 2011-01-24
- Posts: 4
Re: Tag Error
OK. Obviously I’m a complete idiot in this subject area, and I appreciate your help, but from my perspective you just repeated what the tag error said to begin with.
I don’t know what that means. What should I do with that?
Offline
#4 2011-01-24 20:07:05
- Kiersiege
- New Member
- Registered: 2011-01-24
- Posts: 4
Re: Tag Error
Wait, I realized I’m asking my question poorly. I gathered that I need to change that bit of text, but I can’t find it anywhere in the sidebar form code.
Is there a way to search textpattern for instances of the usage of the bad code?
Offline
Re: Tag Error
Kiersiege wrote:
Is there a way to search textpattern for instances of the usage of the bad code?
You might try installing smd_where_used and visiting the Extensions tab. You can search for txp:css n=
and it’ll tell you all the places you need to change.
The smd plugin menagerie — for when you need one more gribble of power from Textpattern. Bleeding-edge code available on GitHub.
Txp Builders – finely-crafted code, design and Txp
Offline
#6 2011-01-24 20:17:41
- Kiersiege
- New Member
- Registered: 2011-01-24
- Posts: 4
Re: Tag Error
You guys rock. smd where used worked like a charm. It was in my DTD Header form.
Thanks
Offline
#7 2011-01-24 20:20:56
- els
- Moderator
- From: The Netherlands
- Registered: 2004-06-06
- Posts: 7,458
Re: Tag Error
Some of the templates have been there long enough to contain some outdated code. I agree with you that the error message doesn’t tell a new user very much. If you encounter more of these, you can look up the tag in the Tag Reference (see link below in my signature). And Stef’s smd_where_used plugin is indeed the best tool to locate the culprits.
Offline
Pages: 1