Home » Forum
  • If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.


No announcement yet.

getting error - 'Notice: Undefined variable'

  • Filter
  • Time
  • Show
Clear All
new posts

  • getting error - 'Notice: Undefined variable'

    i thought i read in a previous thread that this was fixed in 1008 (i have 1009 installed).

    i can generate the following error when searching:

    Notice: Undefined variable: Highlighting in C:\wamp\www\search.php on line 788

    Notice: Undefined variable: UseWildCards in C:\wamp\www\search.php on line 788

    if i search for "eyes in field" i get the above error. if i search for "eyes field" i get no error. if i search for "eyes in the field" i get the above lines twice.

    line 788 in search.php reads:

    " if ($Highlighting == 1 || $UseWildCards[$sw] == 1)"

    what am i missing?

  • #2
    This is a different bug to the previous one. It'll be fixed for the next build (V6.0 build 1010).

    E_NOTICES is generally disabled on most PHP installations (as noted in PHP documentation, it does not always point out errors, and can sometimes be triggered by intentional code). Nonetheless, we've enabled this on our test machine so hopefully we'll catch more of these notices in the future, so we can prevent them.
    Wrensoft Web Software
    Sydney, Australia
    Zoom Search Engine