Register Members List Search Today's Posts Mark Forums Read

Reply
 
Thread Tools
  #1  
Old 13 Aug 2014, 15:02
nerbert nerbert is offline
 
Join Date: May 2008
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 261

Warning: Declaration of vBForum_Item_SocialGroupDiscussion::getLoadQuery() should be compatible with vB_Model::getLoadQuery($required_query = '', $force_rebuild = false) in ..../packages/vbforum/item/socialgroupdiscussion.php on line 337
There's an old thread on this from a year ago http://www.vbulletin.org/forum/showt...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 481

packages/vbforum/item/socialgroupdiscussion.php line 129

packages/vbforum/item/socialgroupmessage.php line 113
In the last two files I changed the first line to read


Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.


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?

Does my fix mess anything up ?

Last edited by nerbert; 13 Aug 2014 at 15:23.
Reply With Quote
  #2  
Old 13 Aug 2014, 15:10
ForceHSS's Avatar
ForceHSS ForceHSS is offline
 
Join Date: Apr 2008
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
http://www.vbulletin.org/forum/showthread.php?t=307008
If you want send me the first 3 files above and I can edit them for you
Reply With Quote
  #3  
Old 13 Aug 2014, 18:27
nerbert nerbert is offline
 
Join Date: May 2008
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?
Reply With Quote
  #4  
Old 13 Aug 2014, 18:30
ForceHSS's Avatar
ForceHSS ForceHSS is offline
 
Join Date: Apr 2008

Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

Needs to be this code for both files

For class_core.php starting at line 5688 stopping at line 5692


Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

You might also need to add the date to the bottom of your php.ini file something like this

Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

You will find the correct info in your admincp/Maintenance/View PHP Info
Attached Images
File Type: png date.png (10.4 KB, 40 views)

Last edited by ForceHSS; 13 Aug 2014 at 18:46.
Reply With Quote
  #5  
Old 13 Aug 2014, 21:33
nerbert nerbert is offline
 
Join Date: May 2008
Thanks.
Reply With Quote
  #6  
Old 14 Feb 2015, 11:14
stog stog is offline
 
Join Date: Dec 2013
confused are you saying we need to change line 1

from
Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

to
Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

in the 2 item files

-----

ok found answer in another thread
1. - Edit the files "socialgroupmessage.php" and "socialgroupdiscussion.php" found in "packages/vbforum/item/"

2. - The original function reads:

protected function getLoadQuery($required_query, $force_rebuild = false)

3. - Change the function to this:

protected function getLoadQuery($required_query = self::QUERY_BASIC, $force_rebuild = false)
i have also replaced lines 5688 through to 5692 inclusive of the class_core.php file with the code

Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

this replaced

Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.


Last edited by stog; 14 Feb 2015 at 11:45.
Reply With Quote
  #7  
Old 14 Feb 2015, 11:18
ozzy47's Avatar
ozzy47 ozzy47 is offline
 
Join Date: Jul 2009
Real name: Chris
Don't do the above, just do this.

Open your includes/config.php file and below <?php add the following.


Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

So it looks like this:

Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

Use a editor like notepad++ to edit any files, don't use Notepad or Wordpad.
--------------------------
__________________
You can get access to my 180 mods for vB 3.6 - 4.x at The Admin Zone as well as the professional support you are used to. New vBulletin Spider Definitions, vBulletin Spiders List Hits 1000 Spiders! ​ OzzModz down. Site has had a data breach, checking how the intrusion happened. Change your PW if you use the same one on my site and others.
Reply With Quote
Reply

Similar Threads
Thread Thread Starter Forum Replies Last Post
Integration with vBulletin Google/Adsense Site Search Integrated into Advanced Search Page markbolyard vBulletin 3.6 Template Modifications 19 21 Sep 2010 15:16
Advanced Search (search by exact date range) why-not vBulletin 3.0 Full Releases 11 24 Mar 2008 02:43
Boolean Search as Default in Advanced Search Options Neutral Singh vBulletin 3.5 Template Modifications 6 12 Apr 2006 06:01
Advanced Search (search by exact date range) why-not vBulletin 3.0 Beta Releases 0 17 Jan 2005 22:50



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


New To Site? Need Help?

All times are GMT. The time now is 02:35.

Layout Options | Width: Wide Color: