Textpattern CMS support forum
- From: Melbourne, Australia
- Registered: 2005-06-02
- Posts: 89
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>
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 ?