Login to download the latest version of Mint and your favorite Pepper, purchase additional licenses, or post in the Forum. Don't have an account? Create one!

In Partnership with Media Temple

Mint Forum

Local Searches not functioning

I use WordPress and the Local Searches pepper hasn’t picked up any search in 4 days and the ones it does pick up show a link to the /wp-admin/ area of WP.

I’ve got the Path set to “/” and the Query set to “s”.

haze
Minted
Posted on Jan 29, '07 at 11:51 am

Can’t get this going either. I’m trying to make it work with the nice search plugin for wordpress http://txfx.net/code/wordpress/nice-search

” This is a really simple plugin that redirects your WordPress searches (?s=search-term) to the pretty-looking URI version: /search/search-term, and also converts spaces (%20) to plus symbols. “

I will say I don’t have that plugin installed.

Alan Edwardes
Third-Party Pepper Developer
Posted on Jan 29, '07 at 02:33 pm

I can’t get mine working with my WordPress blog either. My path is set to ‘/’ and the query ‘s’.

Weird…

I’ve got the same problem with WordPress.

I’ve set the path to “/” and the query to “s” and am not getting any results tracked at all. tabletopgamingnews.com/mint

Try clearing your cache and then force refreshing the Mint main page. That solved the problem for me

It might be a display issue

Cache isn’t the problem on my end.

haze
Minted
Posted on Jan 31, '07 at 02:56 pm

Has anyone figured this out? I can’t get it to work using a default wordpress 2.11 installation with “/” and “s” or with the nice search plugin as described above.

Shaun Inman
Mint/Pepper Developer
Posted on Jan 31, '07 at 04:03 pm

Local Searches will not work with the Nice Search plugin. Does the new version of Wordpress POST the search instead of GET?

The search terms need to appear as part of the query string in the url or Local Searches can’t access them (which is why it won’t work with Nice Search) or search forms that use POST instead of GET.

I’m not using the Nice Search plugin…but the copy of WP I’ve been using for a while uses POST instead of GET.

Shaun Inman
Mint/Pepper Developer
Posted on Jan 31, '07 at 04:59 pm

Local Searches has never worked with search forms that POST. That’s probably the issue. I’m using Wordpress 2.0.4 on a private blog and it uses GET by default.

Hi,

I upgraded to Mint 2 on my Textpattern site with no problem, and Local Searches were working fine for a few days (Txp search uses GET). But now they don’t pick up anything — see my “search page”:http://jamesmuspratt.com/archive/ (yep, I’m checked from browsers that aren’t logged into Mint).

The only tinkering I’ve done lately is to follow Ramaman’s instructions for getting Birdfeeder to work with Textpattern. But I wouldn’t think that would affect Local Searches.

I do have Path set to /search/ and Query set to q. Reinstalling Mint and the Pepper didn’t solve the problem, and I can see that the Local Searches column is there in MySQL.

Any ideas? Many thanks!

Sorry, second link should be the search page.

Seems to be working again, but sometimes with a delay — very weird. Anyway, nevermind for now.

Local searches work fine in Wordpress 2 if I put the path as “/index.php”

why do the instructions say “(Don’t include index.*)”? Does this break something?

After all, the wordpress search form submits to index.php by default.

[form id=”searchform” method=”get” action=”http://www.domain.com/index.php”]

Hey, I’m back again. Local searches is broken for me: apparently if I upload an of update the pepper, it will work for a few days, but then stop logging any searches. It doesn’t seem to be affected by either “Ignore my visits” or “Allow others to view mint.”

This is using Textpattern, with /search/ and q in the appropriate fields in the prefs. Any thoughts? Thanks!

My search page and Mint

My local search doesn’t work, either. Never has. My path is set to /blog/search and my query delimiter to q

The class.php script is in the right place. The permissions are set to 644, same as all my other Peppers.

Any suggestions?

Example Search

Shaun Inman
Mint/Pepper Developer
Posted on Mar 07, '08 at 05:10 pm

James, I don’t see any indication of why this might be happening. Had you made any changes to your templates before the Pepper stopped behaving (perhaps removing the Mint JavaScript include from the search template)?

Andrew, the Mint JavaScript include must be in the <head> of your document. Other than that everything else looks good.

You must be logged in to reply. Login above or create an account