Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
#1 2022-07-21 03:10:51
- peterj
- Member
- From: Melbourne, Australia
- Registered: 2005-06-02
- Posts: 99
Newer / Older tag error on upgrade to 4.8.8
I’m just updating an older site which has some sections basically acting as single pages, so not using txp:article to output a list.
After an upgrade from 4.8.2 to 4.8.8 I saw this:
Tag error: <txp:newer rel="prev"><txp:text item="newer" /></txp:newer> -> Textpattern Warning: secondpass < 2 while parsing form None on page default_1
Resolved, sort of, by finding the pesky sections and excluding them.
<txp:if_section name="authors,contact,books" not>
<txp:evaluate test="newer,older">
<nav class="paginator" aria-label="<txp:text item="page_nav" />">
<txp:newer rel="prev">
<txp:text item="newer" />
</txp:newer>
<txp:older rel="next">
<txp:text item="older" />
</txp:older>
</nav>
</txp:evaluate>
</txp:if_section>
Offline
Re: Newer / Older tag error on upgrade to 4.8.8
I think on the road between 4.8.2 and 4.8.8 some loose ends got tightened with prev
/ next
, or may be it was a necessity for PHP 4.8.1 support. The actual result is that warning
you get on pages/sections that actually have nothing to paginate.
Ran into a very similar error (warning) yesterday when being overly zealous while cleaning up some code (the result of my cleaning: no output… and then that warning).
Where is that emoji for a solar powered submarine when you need it ?
Sand space – admin theme for Textpattern
Offline
Re: Newer / Older tag error on upgrade to 4.8.8
This warning has been added to help with setting up some new facilities, but you can safely ignore it in your case.
Online
Re: Newer / Older tag error on upgrade to 4.8.8
So I get the same error … but why?
And why are some sections pesky and cause while parsing form None
Not really sure about how to repair this.
Cheers! -f
Offline
Re: Newer / Older tag error on upgrade to 4.8.8
This probably means that your page template contains <txp:newer|older />
tags, but no <txp:article />
tag needed for their functioning. There is nothing really wrong with this, but you can try to <txp:hide />
the offending block.
We can remove this warning, but then debugging such cases will be more difficult.
Online
Re: Newer / Older tag error on upgrade to 4.8.8
Okay, thanx, I’ll go check that!
Offline