Work at SourceForge, help us to make it a better place! We have an immediate need for a Support Technician in our San Francisco or Denver office.

Close

error on searchlog

Help
Chris
2013-01-12
2013-05-29
  • Chris
    Chris
    2013-01-12

    When I submit a search in PHPGedView, this error shows:
    ERROR 8: Undefined variable: SEARCHLOG_CREATE
    0 Error occurred on line 360 of file authentication.php in function AddToSearchLog
    1 called from line 396 of file search_ctrl.php in function GeneralSearch
    ……
    and more lines like that.

    What can cause this error?
    - can it be an unwritable file?
    - where is the log stored anyway?
    - can I just turn of the logging of searches?

    thank you,
              Chris Stegeman

     
  • Gerry Kroll
    Gerry Kroll
    2013-01-13

    Line 344 and 345 of "includes/authentication.php" should be this:

    function AddToSearchLog($LogString, $allgeds) {
        global $INDEX_DIRECTORY;
    

    Change line 345 to:

        global $INDEX_DIRECTORY, $SEARCHLOG_CREATE;
    

    Note:
    My copy of authentication.php is different, so I'm basing the line numbers on where the error occurred. 

    Please let me know whether this fixes your problem.