Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
Pages: 1
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
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
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
Pages: 1