Page 1 of 2
Upgraded to 1.2 & Search still not working right
Posted: Sun Oct 21, 2007 1:34 am
by Crafty
I had been getting an error when I used the search function; while it did generate the correct results, it was listing an error on the screen as well on top of all the normal content.
I had hoped by upgrading it would go away - no such luck.
I get this error the first time the search function is used by a site visitor (after that, everything works fine):
Warning: Parameter searchinput is not known... dropped in /home/plt103/public_html/thecraftytipster.com/lib/misc.functions.php on line 1281
I know there was a previous thread with a similar error message. I had tried those ideas with the old version to no avail and am looking for something new to try.
Please help, search was the main reason I wanted to use a CMS instead of hand coding for this site.
If I can't get a solution to fix the search issue, is there at least a way to block the error message from appearing on top of the rest of the content?
Re: Upgraded to 1.2 & Search still not working right
Posted: Sun Oct 21, 2007 1:39 pm
by reneh
I don't see any "searchinput" parameter in my search...
Are you sure you have not made any error in your Search Template?
The original Search Template looks like this:
{$startform}
{$label}: {$inputbox}{$hidden}
{$endform}
Re: Upgraded to 1.2 & Search still not working right
Posted: Mon Oct 22, 2007 9:18 pm
by Crafty
reneh wrote:
I don't see any "searchinput" parameter in my search...
Are you sure you have not made any error in your Search Template?
The original Search Template looks like this:
{$startform}
{$label}: {$inputbox}{$hidden}
{$endform}
I haven't touched the search template.
I thought all I had to do was put {search} and it did the rest for me. My template looked different from yours so I changed it - no luck. When I said return to default it set it back to what mine had originally
{$startform}
{$label}: {$inputbox}
{if isset($hidden)}{$hidden}{/if}
{$endform}
Any other ideas? Anyone?
Re: Upgraded to 1.2 & Search still not working right
Posted: Wed Oct 24, 2007 6:24 pm
by Crafty
Doesn't anyone have any ideas? Search capability was such a major component of my site's plan - to not have it would be a real blow.
Please, anyone?
Re: Upgraded to 1.2 & Search still not working right
Posted: Wed Oct 24, 2007 6:35 pm
by calguy1000
Looks like you have an upgrade issue. I know what would cause this error message, and I checked the code to Search and the appropriate SetParameterType line is in the code.
In the file Search.module.php in the function SetParameters there is this line:
Code: Select all
$this->SetParameterType('searchinput',CLEAN_STRING);
Re: Upgraded to 1.2 & Search still not working right
Posted: Wed Oct 24, 2007 8:31 pm
by Crafty
I'm sorry, I don't understand what you are trying to tell me. Is part of your answer missing?
My Search.module.php has that exact line in the SetParameters function.
function SetParameters()
{
// This module does not restrict unknown parameters
// due to the wildcard/regular expression matching stuff of the
// passthru_* parameters.
$this->RestrictUnknownParams();
$this->CreateParameter('inline','false',$this->Lang('param_inline'));
$this->SetParameterType('inline',CLEAN_STRING);
$this->CreateParameter('passthru_*','null',$this->Lang('param_passthru'));
$this->SetParameterType(CLEAN_REGEXP.'/passthru_.*/',CLEAN_STRING);
$this->CreateParameter('modules','null',$this->Lang('param_modules'));
$this->SetParameterType('modules',CLEAN_STRING);
$this->CreateParameter('resultpage', 'null', $this->Lang('param_resultpage'));
$this->SetParameterType('resultpage',CLEAN_STRING);
$this->CreateParameter('searchtext','null',$this->Lang('param_searchtext'));
$this->SetParameterType('searchtext',CLEAN_STRING);
$this->SetParameterType('searchinput',CLEAN_STRING);
$this->CreateParameter('submit',$this->Lang('searchsubmit'),
$this->Lang('param_submit'));
$this->SetParameterType('submit',CLEAN_STRING);
$this->SetParameterType('origreturnid',CLEAN_INT);
}
Thank you for trying to help me with this.
Re: Upgraded to 1.2 & Search still not working right
Posted: Thu Oct 25, 2007 1:07 pm
by alby
Crafty wrote:
I'm sorry, I don't understand what you are trying to tell me. Is part of your answer missing?
My Search.module.php has that exact line in the SetParameters function.
Have you other modules with form?
Try with a very CLEAN template with search tag only:
Code: Select all
<__html>
<head>
{metadata}
</head>
</__body>
{search}<p></p>{content}
<__body>
</__html>
Alby
Re: Upgraded to 1.2 & Search still not working right
Posted: Thu Oct 25, 2007 3:25 pm
by Crafty
I don't have any other modules with forms.
Are you saying create a template and page that only has search on it? If so, I tried that and the search doesn't return anything it just refreshes the search and submit boxes.
Re: Upgraded to 1.2 & Search still not working right
Posted: Thu Oct 25, 2007 4:04 pm
by alby
Crafty wrote:
I don't have any other modules with forms.
Are you saying create a template and page that only has search on it? If so, I tried that and the search doesn't return anything it just refreshes the search and submit boxes.
Yes, I forgot content tag in my example
Alby
Re: Upgraded to 1.2 & Search still not working right
Posted: Thu Oct 25, 2007 7:19 pm
by Crafty
Ahh, that works better.
This doesn't create the warning error and appears to work perfectly. So, I guess that means my installation is working right but something in my template or stylesheet is fouling things up?
I'm using the Andreas03Lft template. Any suggestions on what is causing this and what I need to fix?
Re: Upgraded to 1.2 & Search still not working right
Posted: Thu Oct 25, 2007 8:30 pm
by Dr.CSS
Got Link?
I believe that was one I did...
Re: Upgraded to 1.2 & Search still not working right
Posted: Fri Oct 26, 2007 5:00 am
by Crafty
Sure, it's
http://www.thecraftytipster.com
I'd appreciate any suggestions as Google has already indexed the site and even began sending me a tiny bit of traffic. When you want a site indexed fast it takes forever, when you want it to hide in the shadows a little while it seems to get indexed quickly. lol
Re: Upgraded to 1.2 & Search still not working right
Posted: Mon Oct 29, 2007 3:29 pm
by Crafty
Any chance you've looked into this yet?
Re: Upgraded to 1.2 & Search still not working right
Posted: Mon Oct 29, 2007 3:40 pm
by Dr.CSS
No problem with the HTML or CSS, maybe the goggle adsence is throwing it altho I don't see the ad...
Re: Upgraded to 1.2 & Search still not working right
Posted: Mon Oct 29, 2007 7:39 pm
by Crafty
It was doing this before I added the advertising.
I played around a bit moving the search box around the template.
It works fine in the main body of the page.
It works fine if put before the menu in the sidebar.
It breaks when placed below the menu in the sidebar (before and after ads) and in the News section.
Seems to be somehow related to the fly-out menu. I could put it somewhere else, but it seems to make the most sense to put search under the menu.
