• We see a lot of “undefined array key “HTTP_REFERER” in” in our error log. Just a php warnings but should be a quick fix for you to just wrap $_SERVER in an?isset?or?!emmpty or something in bps-search.php on line 42.

Viewing 6 replies - 1 through 6 (of 6 total)
  • Plugin Author Andrea Tarantini

    (@dontdream)

    Hi hemligg,

    Thank you for your report!

    Does your server use a different key instead of HTTP_REFERER? Without the value of $_SERVER['HTTP_REFERER'] BP Profile Search doesn’t work during AJAX requests, because the code can’t tell which page the AJAX request is coming from.

    Thread Starter hemligg

    (@hemligg)

    Well I don’t know why it doesn’t work. I just noticed that the error_log is full of the same warning about this line of code.

    We are running a Buddyboss installation on a Litespeed server on an ubuntu instance at AWS. I don’t know if our server use a different key than HTTP_REFERER.

    I haven’t noticed that the searches doesn’t work besides maybe occasionally that the filter isn’t applied although it should but when that has happened I just reload and it works again.

    Plugin Author Andrea Tarantini

    (@dontdream)

    Could you please check if the filters are only applied on the first page of results and never on the second and subsequent pages?

    Thread Starter hemligg

    (@hemligg)

    The filter is applied on all pages. We are using the GET method.

    Plugin Author Andrea Tarantini

    (@dontdream)

    So I assume it’s safe to just suppress the warning. I will release the change in a few days, possibly this weekend.

    Plugin Author Andrea Tarantini

    (@dontdream)

    Hi hemligg,

    I just released a hotfix, to get it you should delete your copy of BP Profile Search and reinstall it.

    Please let me know if this removes the PHP warnings in your log.

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘undefined array key “HTTP_REFERER” in…’ is closed to new replies.