When I do a search I get the contents of the front page. I've tried a number of searches.
The only difference is the breadcrumb disappears, but the listings are as front page. 75% of the site has been indexed, with cron set up from the web host 'webcron'. Reports from them are successful jobs.

Also, my 4.6 test site on my home computer returns no results and does the same thing.
I can see there is no error in the logs.

Any ideas of how to proceed with checks?
You can test it on m site at:

http://www.mightyzero.com/press/

Comments

Steven’s picture

The built-in search form in your theme is incorrect. Try copying one from one of the standard themes.

Using the correct URL works:
http://www.mightyzero.com/press/search

--
If you have a problem, please search before posting a question.

chueewowee’s picture

Thanks so much for taking the trouble Steve. I based the theme on Blix, and I suppose I must have alterded the search form, unless Bix had iit wrong, in page.tpl.php. I'll check both soloutions

-----------------------------------------------------
"It's never too late to have a happy childhood."
http://mightyzero.com/press

chueewowee’s picture

I found the search function doesn't work in non-standard themes like Blix and
Manji, but does in standard themes like bluemarine and friendselectric.

How can continue to work with on the non-standard theme I started on , but incorporate a working search function?

I checked page.tpl.php in Blix and in Manji, and they seem to have similar but not identical search function code as in the standard themes. I can see this is not a phptemplate/xtemplate issue.

I can't show the code here as posting won't allow it.

Cheers.
-----------------------------------------------------
"It's never too late to have a happy childhood."

amagab’s picture

I need help with this too. Anyone got a solution? I run the Blix theme but whenever I enter something in the search box it takes me to the default search page.

???

lennart’s picture

You can find the correct code in the page.tpl.php of for example FriendsElectric

I wanted to write here what part needs to be replaced with what, but everytime i try to submit, my submission is cancelled eventhough I use the
code tags.

Best regards,
Lennart

Best regards,
Lennart

chueewowee’s picture

Ok thanks. I understand that, and even guessed it. But now phptemplate causes a break, so I can't use it! ...since installing Tiger OS X. Something to do with the included PHp4 I guess.

-----------------------------------------------------
"It's never too late to have a happy childhood."

chueewowee’s picture

Thanks Lennart, it's good. Just need to put in a relevant div class in my css to position it well.

-----------------------------------------------------
"It's never too late to have a happy childhood."

kzeng’s picture

Open the page.pl.php

Inside

,

find the following codes. It might be slightly different in different themes.

<input class="form-text" type="text" size="15" value="" name="keys" alt="input keywords" />

change name="keys" into name="edit[keys]", then you are done. Your search box will word properly.
--------------------------
http://www.kzeng.info

deliot’s picture

Thanks very much for this fix! Worked great on my Pushbutton PHP theme using the phptemplate engine :-)

eva’s picture

thank you very much for the fix!

in part, i wrote this comment so that the fix might be more easily found by the title. i've spent a couple of months off and on trying to find a fix. i figured i couldn't have been the only one with this problem...but nothing was coming up.

thanks again...
eva