PDA

View Full Version : PHP Code Question #2


Hostboard
12-16-2019, 08:14 PM
Running Digital Point Sphinx under PHP 7.1.33 and while I am suppressing errors for the end users I am trying to clean up all the relevant code. Came across this when searching... Any ideas for a fix? It's well beyond my pay grade...


PHP Warning: Declaration of VW_Search_SearchController::process_keywords_filte rs($user, $criteria) should be compatible with DPSphinxSearch_CoreSearchController::process_keywo rds_filters($user, $criteria, $allow_ip_search = false) in ..../packages/vw/search/searchcontroller.php on line 0

shka
12-17-2019, 10:15 AM
Functions from derived classes should be compatible with parent class.

So VW_Search_SearchController:: process_keywords_filters should have same params list.

Check in VW_Search_SearchController:: process_keywords_filters if there is variable $allow_ip_search used. If not you can change to VW_Search_SearchController::
process_keywords_filters($user, $criteria, $allow_ip_search = false) without a problem (it is an unused param, not nice, but possible).

webmastersun
12-20-2019, 11:49 PM
Try to change different PHP versions and see if this error can happen again?
If yes then it is a conflict between your host and DB Sphinx

Hostboard
12-26-2019, 09:31 PM
Try to change different PHP versions and see if this error can happen again?
If yes then it is a conflict between your host and DB Sphinx

I am on a private dedicated server that I control. Currently running PHP 7.1.33 and should be moving to PHP 7.3 hopefully the 1st quarter of 2020. Rolling back PHP is none negotiable. We are pushing forward and re-coding as needed.