Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2009-09-23 01:14:12

mlarino
Member
Registered: 2007-06-29
Posts: 367

How do I read Debuging

I never used the Debuging option before, and I guess is about time to understand what this is all about…

I can read in mine this:

Error de etiqueta <txp:comment_permlink> ->  Textpattern Notice: Las etiquetas de comentario no se pueden usar fuera del contexto de un comentario  on line 2182
Error de etiqueta <txp:comment_permlink> ->  Warning: extract() [function.extract]: First argument should be an array  on line 1873


What does all this mean?

Last edited by mlarino (2009-09-23 01:15:54)

Offline

#2 2009-09-23 01:25:51

jsoo
Plugin Author
From: NC, USA
Registered: 2004-11-15
Posts: 1,793
Website

Re: How do I read Debuging

The second line means the comment_permlink tag has been invoked out of comment context, i.e. there is no current comment for it to process. The first error comes from the assert_comment() function, which is a comment context check. So it’s telling you the same thing.


Code is topiary

Offline

#3 2009-09-23 02:16:36

mlarino
Member
Registered: 2007-06-29
Posts: 367

Re: How do I read Debuging

is the debbugin spot on,because i am using that tag in the right place

Offline

#4 2009-09-23 15:46:29

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

Re: How do I read Debuging

mlarino wrote:

because i am using that tag in the right place

Which is where?

Offline

#5 2009-09-23 15:49:40

mlarino
Member
Registered: 2007-06-29
Posts: 367

Re: How do I read Debuging

In the default form

<div class="entry">
   <div class="date">
      <p>
         <span class="month">
            <txp:posted format="%b" />
         </span>
         <span class="day">
<txp:zem_ir fontdir="textpattern/fonts/" font="santyfuente.ttf"  depth="24" padding="3" backgroundcolor="#f4ce34" fontsize="14" wraptag="h2" > <txp:posted format="%d" /></txp:zem_ir>
         </span>
      </p>
   </div>
   <div class="info">
<txp:permlink>
<txp:zem_ir fontdir="textpattern/fonts/" font="santyfuente.ttf"  depth="24" padding="3" backgroundcolor="#ffffff" fontsize="20" wraptag="h2" color="2A6FA8" ><txp:title /></txp:zem_ir>
</txp:permlink>
</div>
<div class="clear"></div>
</div>
<div class="post">
<txp:body />
</div>
<div class="bubble">
<txp:comment_permlink>
<txp:zem_ir fontdir="textpattern/fonts/" font="santyfuente.ttf"  depth="24" padding="3" backgroundcolor="#ffffff" fontsize="12" color="2A6FA8">Comments [<txp:comments_count />]</txp:zem_ir>
</txp:comment_permlink>
</div>

Last edited by mlarino (2009-09-23 15:50:20)

Offline

#6 2009-09-23 15:56:40

MattD
Plugin Author
From: Monterey, California
Registered: 2008-03-21
Posts: 1,254
Website

Re: How do I read Debuging

comment_permlink is a link to an actual comment.

I use the following to achieve what I think you are using it for

<a href="<txp:permlink />#comments">Link to Comments</a>

My Plugins

Piwik Dashboard, Google Analytics Dashboard, Minibar, Article Image Colorpicker, Admin Datepicker, Admin Google Map, Admin Colorpicker

Offline

#7 2009-09-23 16:11:39

mlarino
Member
Registered: 2007-06-29
Posts: 367

Re: How do I read Debuging

oh!
I always used comment_permlink there

I will give txp:permlink a try.
I guess it does the same thing, just like clicking on the article title, but with an anchor to comments…

Thanks!!

Offline

#8 2009-09-23 16:52:36

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

Re: How do I read Debuging

comment_permlink should be used in a comment form, not in an article form as far as I know.

Offline

#9 2009-09-23 17:11:47

jsoo
Plugin Author
From: NC, USA
Registered: 2004-11-15
Posts: 1,793
Website

Re: How do I read Debuging

mlarino wrote:

oh!
I always used comment_permlink there

And always (by your own admission) avoided Debugging mode, so you didn’t see these error messages. I always keep my local/development version of a website in Debugging mode.


Code is topiary

Offline

Board footer

Powered by FluxBB