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.
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.
Could you please check if the filters are only applied on the first page of results and never on the second and subsequent pages?
The filter is applied on all pages. We are using the GET method.
So I assume it’s safe to just suppress the warning. I will release the change in a few days, possibly this weekend.
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.