Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
Pages: 1
#1 2006-02-23 01:49:39
- brentd
- New Member
- Registered: 2006-02-16
- Posts: 8
Error in search page
Warning: extract(): First argument should be an array in /home/drasticthoug-com/www/textpattern/publish/taghandlers.php on line 983
Keeps coming up on my search page.
www.33fortyfive.com
Thanks
Offline
#2 2006-02-23 02:16:15
- Mary
- Sock Enthusiast
- Registered: 2004-06-27
- Posts: 6,236
Re: Error in search page
Sounds like you have a comment_permlink tag where there shouldn’t be one. Can’t know for certain without seeing the contents of your page.
Offline
#3 2006-02-23 04:22:20
- Mary
- Sock Enthusiast
- Registered: 2004-06-27
- Posts: 6,236
Re: Error in search page
brentd emailed me a copy of his page:
<txp:article />
<txp:search_result_title />
<txp:search_result_excerpt />
<txp:search_result_url />
<txp:search_result_date />
Okay, that’s why. :) Try this out.
Page:
<txp:if_search>
<dl>
<txp:article form="search_results" />
</dl>
</txp:if_search>
search_results:
<dt><a href="<txp:search_result_url />"><txp:search_result_title /></a></dt>
<dd><txp:search_result_date /></dd>
<dd><txp:search_result_excerpt /></dd>
Offline
#4 2006-02-23 04:53:21
- brentd
- New Member
- Registered: 2006-02-16
- Posts: 8
Re: Error in search page
THANKS HEAPS!
That works perfectly.
So where do you look up all this info? I have done a fair bit of php programming but I cannot seem to find many textpattern resources.
Oh and any chance you know how to fix my commenting system?
Offline
#5 2006-02-23 05:34:14
- Mary
- Sock Enthusiast
- Registered: 2004-06-27
- Posts: 6,236
Re: Error in search page
You want to look through the tags file, /textpattern/publish/taghandlers.php. Basically, every tag corresponds to a function. i.e: <txp:site_url />
is powered by site_url()
. The only tags not in that file are the article and article_custom tags, they are in /textpattern/publish.php.
As far as alternative resources go:
- Always start from the default contents of the Textpattern forms when you can, as they usually contain the working essentials.
- Then look in the manual’s tag references.
- Then check the dev weblog and the FAQ.
- Then search the forum. Use Google to search the forum if you don’t get any relevant results.
- Then finally, of course, ask. :)
I replied to your comment-related thread.
Offline
Pages: 1