[ic] mv_check problem

Gerlits András gerlits@neotek.hu
23 Feb 2001 05:56:00 -0000


Below is a part of the header of my page. The idea is to let the user 
select the table to search, and at the same time define the search-fields. 
The strange thing is that all of the mv_check functions work, except for 
events. I have checked and double-checked (even triple:)) all the fields, 
they are there, and are all available from other pages. I get this error in 
the catalog error.log, when I try to run a search on the events table:

213.197.71.122 VrP8sEjX:213.197.71.122 - [23/February/2001:04:54:25 +0100] 
ceeaf /ceeaf.cgi/search.html search error: Search strings must be at least 
1 characters.
> You had no search string specified.
> 
213.197.71.122 VrP8sEjX:213.197.71.122 - [23/February/2001:04:54:25 +0100] 
ceeaf /ceeaf.cgi/search.html search error: Limit subroutine creation: bad 
limit creation code in coordinated search, probably search group without 
search specification. at /usr/lib/interchange/lib/Vend/Search.pm line 689.
>  

I couldn't see any difference between the events variable, and the others 
(which all function properly). I tried changing the name events (in case 
it's a reversed word, but it yielded no results). It seems, that 
interchange for some reason, won't find the [set events][/set] segment.

[set events]
mv_search_file=events
mv_search_page=esemenyek
mv_searchfield=tit_hu
mv_searchfield=desc_hu
mv_searchfield=url
mv_searchfield=display
mv_searchspec=yes
[/set]

[set links]
mv_search_file=links
mv_search_page=linkek
mv_searchfield=desc_hu
mv_searchfield=url
mv_searchfield=display
mv_searchspec=yes
[/set]

[set galleries]
mv_search_file=galleries
mv_search_page=galeriak
mv_searchfield=gallery
mv_searchfield=desc_hu
mv_searchfield=address
mv_searchfield=display
mv_searchspec=yes
[/set]

[set photos]
mv_search_file=photos
mv_search_page=fotok
mv_searchfield=desc_hu
mv_searchfield=display
mv_searchspec=yes
[/set]

[set news]
mv_search_file=news
mv_search_page=sajto
mv_searchfield=tit_hu
mv_searchfield=desc_hu
mv_searchfield=url
mv_searchfield=display
mv_searchspec=yes
[/set]

[set sponsors]
mv_search_file=sponsors
mv_search_page=tamogatok
mv_searchfield=tit_hu
mv_searchfield=desc_hu
mv_searchfield=url
mv_searchfield=display
mv_searchspec=yes
[/set]

[set products]
mv_search_file=products
mv_search_page=eredmenyek
mv_searchfield=tit_en
mv_searchfield=tit_hu
mv_searchfield=desc_hu
mv_searchfield=artist
mv_searchfield=display
mv_searchspec=yes
[/set]

  <FORM ACTION="[area search]" METHOD=POST>
  <INPUT TYPE="hidden" NAME="mv_check" VALUE="category.value">
  <INPUT TYPE="hidden" NAME="mv_coordinate" value="yes">
  <INPUT TYPE="hidden" NAME="mv_substring_match" value="yes">
  <INPUT TYPE="hidden" NAME="mv_searchtype" value="db">
  <INPUT TYPE="hidden" NAME="mv_return_all" value="no">


  <table border="0" width="20%">
    <tr>
      <td width="100%" colspan="3">
        <p align="center">keresendo szo</p>
        <p align="center"><input type="text" name="mv_searchspec" 
size="10"></p>
      </td>
    </tr>
    <tr>
      <td width="100%" colspan="3">
        <p align="center">talalatok szama</p>
        <p align="center"><select size="1" name="mv_matchlimit">
          <option value="5">5</option>
          <option value="10">10</option>
          <option value="25">25</option>
          <option value="">mind</option>
        </select>
      </td>
    </tr>
    <tr>
      <td width="100%" colspan="3">
        <p align="center">&nbsp;rendezesi szempont</p>
        <p align="center"><select size="1" name="mv_sort_field">
          <option value="tit_hu">megnevezes</option>
          <option value="desc_hu">leiras</option>
          <option value="time">datum</option>
        </select></p>
      </td>
    </tr>
    <tr>
      <td width="100%" colspan="3">
        <p align="center">kategoria
        <p align="center"><select size="1" name="category" 
Onchange="mv_check.value=category.value">
          <option value="events">esemenyek</option>
          <option value="news">sajto</option>
          <option value="links">linkek</option>
          <option value="galleries">galeriak</option>
          <option value="photos">fotok</option>
          <option value="products">alkotasok</option>
        </select>
      </td>
    </tr>
    <tr>
      <td width="10%"></td>
      <td width="18%">
        <p align="left">
        <input type="submit" NAME="mv_click" value="OK" 
onClick="this.form.submit()"></td>
      <td width="72%"></td>
    </tr>
  </table>
</form>


Thanks in advance.
Gerlits Andras