vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB4 Programming Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=252)
-   -   PHP Code Question #2 (https://vborg.vbsupport.ru/showthread.php?t=327714)

Hostboard 12-16-2019 08:14 PM

PHP Code Question #2
 
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...

Code:

PHP Warning: Declaration of VW_Search_SearchController::process_keywords_filters($user, $criteria) should be compatible with DPSphinxSearch_CoreSearchController::process_keywords_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
Code:

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

Quote:

Originally Posted by webmastersun (Post 2601528)
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.


All times are GMT. The time now is 05:40 PM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01048 seconds
  • Memory Usage 1,714KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (2)bbcode_code_printable
  • (1)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (4)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete