PDA

View Full Version : Error help


Peter Cook
01-24-2014, 03:46 PM
Hello all

When clicking on advanced search, I am getting the following error messages.

Warning: Declaration of vBForum_Item_SocialGroupMessage::getLoadQuery() should be compatible with that of vB_Model::getLoadQuery() in ..../packages/vbforum/item/socialgroupmessage.php on line 261

Warning: Declaration of vBForum_Item_SocialGroupDiscussion::getLoadQuery() should be compatible with that of vB_Model::getLoadQuery() in ..../packages/vbforum/item/socialgroupdiscussion.php on line 337

I have not made any modifications so I hope someone can shed light on this.
Thanks

RichieBoy67
01-24-2014, 03:49 PM
In includes/class_core.php locate lines 5683-5685


case E_NOTICE:
// Just ignore these completely //
break;

Then
Add this


case E_NOTICE:
case E_STRICT;
case E_DEPRECATED;
// Just ignore these completely //
break;
case E_STRICT;
case E_DEPRECATED; //
Just ignore these completely //
break;

Max Taxable
01-24-2014, 03:50 PM
Possible your host upgraded PHP version.

RichieBoy67
01-24-2014, 03:54 PM
Those are not errors but warning messages. Just use the code above to ignore them.

Max Taxable
01-24-2014, 03:58 PM
I have fixed this before by getting rid of the ampersands in the lines warned about.

RichieBoy67
01-24-2014, 04:03 PM
There are a few ways to do it. I have encountered these warnings after many upgrades to 4.2. Pretty common issue but not a big deal. A 1 minute fix.

Geez Max, I went to like your post but it says I have to like someone else first. :up: Too many likes from me already I guess.:D

BTW - There is an entire post to this on Vbulletin

http://www.vbulletin.com/forum/forum/vbulletin-4/vbulletin-4-questions-problems-and-troubleshooting/4000233-warning-declaration-of-vbforum_item_socialgroupmessage

Peter Cook
01-24-2014, 04:08 PM
In includes/class_core.php locate lines 5683-5685


case E_NOTICE:
// Just ignore these completely //
break;

Then
Add this


case E_NOTICE:
case E_STRICT;
case E_DEPRECATED;
// Just ignore these completely //
break;
case E_STRICT;
case E_DEPRECATED; //
Just ignore these completely //
break;

As a note Richie I found these lines at 5688 -5690. I will try these now.

Thanks

--------------- Added 1390583538 at 1390583538 ---------------

I added these lines into the file, saved and tested! Internal server error! Removed lines, all ok.

--------------- Added 1390583919 at 1390583919 ---------------

Just added them before the message works! Thanks again :)

RichieBoy67
01-24-2014, 04:24 PM
Glad to help. :)

Haponing
01-25-2014, 03:16 AM
Thanks for this, but I can't seem to find includes/class_core.php. Is this in the Style Variable Editor?

ozzy47
01-25-2014, 03:19 AM
No it is a php file that you loaded through FTP to your server when you installed vBulletin.

Haponing
01-25-2014, 03:27 AM
I see. I'll have this done in our test server by our IT guy. Thanks a lot!