![]() |
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? |
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 |
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?
|
1 Attachment(s)
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: Code:
[date] |
Thanks.
|
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: Code:
case E_NOTICE: |
Don't do the above, just do this.
Open your includes/config.php file and below <?php add the following. PHP Code:
PHP Code:
-------------------------- |
All times are GMT. The time now is 12:16 AM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|