Vanilla 1 is no longer supported or maintained. If you need a copy, you can get it here.
HackerOne users: Testing against this community violates our program's Terms of Service and will result in your bounty being denied.

Bug in user search?

edited September 2006 in Vanilla 1.0 Help
Hello,

I recently upgraded to Vanilla 1.0.1 and all seems to work well, with one exception: searching for users leads to an error message.

>> example search

The error message says: "Notice: Undefined variable: Switch in /www/htdocs/danielde/gerontologie/themes/search_results_users.php on line 5". But there were no theme files in the Vanilla update package, so the bug must be somewhere else, but where? Can anybody help?

Thanks
Daniel

Comments

  • MarkMark Vanilla Staff
    I've seen this one pop up a couple of times, it's really wierd. The variable *is* declared, but it's declared in a different file before the template file is included. I'm not really sure why it does that.

    The easy fix is to go into that file and declare the variable right before line 5 with something like:

    $Switch = '0';
  • Great, works well! Thanks alot.

    Daniel
This discussion has been closed.