The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
Warning Messages in Advanced Search vB 422
Using vB 4.2.2 in PHP 5.4.30
I recently upgraded to vB 422 and started getting these messages above the Advanced Search page (search.php) Warning: Declaration of vBForum_Item_SocialGroupMessage::getLoadQuery() should be compatible with vB_Model::getLoadQuery($required_query = '', $force_rebuild = false) in ..../packages/vbforum/item/socialgroupmessage.php on line 261There's an old thread on this from a year ago https://vborg.vbsupport.ru/showthrea...hlight=warning but I thought I would discuss a better fix than tinkering with error reporting There are three files with the method getLoadQuery() vb/model.php, line 481In the last two files I changed the first line to read Code:
protected function getLoadQuery($required_query = '', $force_rebuild = false) This makes the line in the last two files identical to the first. That got rid of the warning messages but I don't use socal group messages or discussions so I don't know if these changes are messing anything up. So, two questions: Is anyone else getting these warnings? |
#2
|
|||
|
|||
There are many posts on this and many fixes have been also posted there are other files that need to be edited for 4.2.2
packages\vbforum\item socialgroupmessage.php socialgroupdiscussion.php includes class_core.php clientscript\yui\uploader\assets uploader https://vborg.vbsupport.ru/showthread.php?t=307008 If you want send me the first 3 files above and I can edit them for you |
#3
|
|||
|
|||
I would prefer editing instructions so I can record what I've done. Are my edits to the first two files the same as yours?
|
#4
|
|||
|
|||
Code:
protected function getLoadQuery($required_query = self::QUERY_BASIC, $force_rebuild = false) For class_core.php starting at line 5688 stopping at line 5692 Code:
case E_NOTICE: case E_STRICT: case E_DEPRECATED: // Just ignore these completely // break; Code:
[date] ; Defines the default timezone used by the date functions ; http://php.net/date.timezone date.timezone = "America/Chicago" ; http://php.net/date.default-latitude date.default_latitude = 31.7667 ; http://php.net/date.default-longitude date.default_longitude = 35.2333 ; http://php.net/date.sunrise-zenith ;date.sunrise_zenith = 90.583333 ; http://php.net/date.sunset-zenith ;date.sunset_zenith = 90.583333 |
#5
|
|||
|
|||
Thanks.
|
#6
|
|||
|
|||
confused are you saying we need to change line 1
from Code:
<?php if (!defined('VB_ENTRY')) die('Access denied.'); Code:
protected function getLoadQuery($required_query = self::QUERY_BASIC, $force_rebuild = false) ----- ok found answer in another thread Quote:
Code:
case E_NOTICE: case E_STRICT: case E_DEPRECATED: // Just ignore these completely // break; Code:
case E_NOTICE: // Just ignore these completely // break; case E_WARNING: |
#7
|
||||
|
||||
Don't do the above, just do this.
Open your includes/config.php file and below <?php add the following. PHP Code:
PHP Code:
-------------------------- |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|