Page 1 of 1

[SOLVED] Problem with search module

Posted: Fri May 08, 2009 12:40 pm
by martinG
Hi there,

I'm running cmsms 1.5.2 and have version 1.5.4 of Search module installed.
I can't get the search module to work properly. When I press the submit-button I get a 404.
I did a search for the problem in the forum and found a reference which suggested me to make 2 changes in:
/lib/classes/module_support/modform.inc.php
(changes in function __curPageURL to $_SERVER["PHP_SELF"] at two places)

My default template which includes the search tag looks like this:

Code: Select all

       
<div id="content">                  
                  <div id="rightdiv">                     
                        <div class="submitbox">
                              <form id="form2" action="action">
                                    <table>
                                          <tr>
                                                <td> </td>
                                                <td style="width: 100px;">{search}</td>
                                          </tr>
                                    </table>
                              </form>
                        </div>
I have reindexed all content and the search module search-template looks like this:

Code: Select all

{$startform}

    <label for="{$search_actionid}searchinput">{$searchprompt}</label>: <input type="text" id="{$search_actionid}searchinput" name="{$search_actionid}searchinput" size="20" maxlength="50" value="{$searchtext}" {$hogan}/><input name="submit" value="{$submittext}" type="submit" />
{if isset($hidden)}{$hidden}{/if}

{$endform}
Where shall I look next for hunting down this problem? The action URL seems empty, but where do configure this?
I'm using the mdblue template and as you might expect I'm a newbie using this cms.

Thanks in advance, Martin

[SOLVED] Re: Problem with search module

Posted: Sun May 10, 2009 6:47 pm
by martinG
I found out that in some way two -tags had been entered in the default template.
I guess I must have done this, though I have no memory of doing so whatsoever. In most cases I don't drink beer when I doing development of the site. That could be the cause.

Now everything is working perfect.

Conclusion, check the produced HTML-code for duplicate -tags if you have problem with the search module.
Or RTFM. Or don't drink while coding.

/ M