Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2022-07-21 03:10:51

peterj
Member
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>

Offline

#2 2022-07-21 09:34:16

phiw13
Plugin Author
From: Japan
Registered: 2004-02-27
Posts: 2,700
Website

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 ?

Offline

#3 2022-07-21 10:59:00

etc
Developer
Registered: 2010-11-11
Posts: 4,665
Website GitHub

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.

Offline

Board footer

Powered by FluxBB