Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 Today 01:46:23

bici
Member
From: vancouver
Registered: 2004-02-24
Posts: 2,277
Website Mastodon

Search Error

Where is this coming from…. I have never had this issue on any of my sites.

Tag error: <txp:search_result_count /> ->  Textpattern Notice: Tag is deprecated Issue detected while parsing form None on page default
textpattern/publish/taghandlers.php:3553 trigger_error()
txp_deprecate()
textpattern/vendors/Textpattern/Tag/Registry.php:161 call_user_func()
textpattern/lib/txplib_publish.php:559 Textpattern\Tag\Registry->processAttr()
textpattern/lib/txplib_publish.php:429 processTags()
textpattern/publish/taghandlers.php:2541 parse()
if_items_count()
textpattern/vendors/Textpattern/Tag/Registry.php:140 call_user_func()
textpattern/lib/txplib_publish.php:540 Textpattern\Tag\Registry->process()
textpattern/lib/txplib_publish.php:429 processTags()

Edited: I am on a basic plain installation running 4.9.1 .

Last edited by bici (Today 01:49:59)


…. texted postive

Offline

#2 Today 02:35:35

phiw13
Plugin Author
From: South-Western Japan
Registered: 2004-02-27
Posts: 3,670
Website

Re: Search Error

Guess the site you are seeing this is in debug mode (Admin panel > Preferences > Site). In that case it is much more talkative at notifying you of problems, and potential issues.

Textpattern is then kindly telling you that indeed, the <txp:search_result_count /> is deprecated. It has been replaced by <txp:items_count /> which does the same thing, but is broader in scope: it counts the number of articles or images, or … And it has the same syntax and attributes.

You can safely replace the <txp:search_result_count /> and <txp:if_search_result_count /> in your template with <txp:items_count /> and <txp:if_items_count />.


Where is that emoji for a solar powered submarine when you need it ?
Sand space – admin theme for Textpattern
phiw13 on Codeberg

Offline

#3 Today 03:03:10

bici
Member
From: vancouver
Registered: 2004-02-24
Posts: 2,277
Website Mastodon

Re: Search Error

By the way in spite of the error message I do end up with results being returned . BUT why would I get an ERROR on a brand new installation of Txp?


…. texted postive

Offline

#4 Today 07:32:34

Bloke
Developer
From: Leeds, UK
Registered: 2006-01-29
Posts: 12,499
Website GitHub

Re: Search Error

Maybe the default theme still uses the deprecated tag. I thought we’d swapped that tag out. I’ll check.

Either way, it’s not an error. It’s a warning in debug mode only.


The smd plugin menagerie — for when you need one more gribble of power from Textpattern. Bleeding-edge code available on GitHub.

Hire Txp Builders – finely-crafted code, design and Txp

Offline

Board footer

Powered by FluxBB