View Full Version : Problem When Posting Thread
Mr basil
07-10-2015, 12:50 PM
I get this errors when I create new thread in the forum also when I open any thread
https://vborg.vbsupport.ru/external/2015/07/24.png
Any solutions?
You have a plugin that is using a deprecated function, so it's causing a warning. Are you running vb4.2.3?
You could turn off the display of messages in the php ini file, if you have access to that. To be honest I'm not quite sure what's going on with warnings right now. vb4.2.2 had a way to turn them all off, but I think with vb4.2.3 you're back to using the php setting to turn them off.
The other way, of course, would be to figure out which plugin it is and fix it, or ask for a fix in the mod thread. (Just to be clear, it's not actually 'broken', if you can stop the message from appearing it should work fine, so maybe fix is the wrong word to use).
Mr basil
07-10-2015, 02:04 PM
You have a plugin that is using a deprecated function, so it's causing a warning. Are you running vb4.2.3?
You could turn off the display of messages in the php ini file, if you have access to that. To be honest I'm not quite sure what's going on with warnings right now. vb4.2.2 had a way to turn them all off, but I think with vb4.2.3 you're back to using the php setting to turn them off.
The other way, of course, would be to figure out which plugin it is and fix it, or ask for a fix in the mod thread. (Just to be clear, it's not actually 'broken', if you can stop the message from appearing it should work fine, so maybe fix is the wrong word to use).
I am running 4.2.2 patch 4, also found out which plugin causing this, thanks for your advice.
Btw it's plugin I downloaded from vb.org called "product-hidelinksfromguest.xml"
Oh, BTW, I just happened to notice that under the "Plugin/Hook System" section in the settings, there's an option to turn off display of messages, specifically for plugins that are generating waarnings. But as it says in the description, it would be better to fix the issue if possible.
Mr basil
07-11-2015, 09:33 AM
Hey I have another error, I've tried to disable all the plugins but it's still there, it's when I click in "new usergroup messages" it give me these errors.
https://vborg.vbsupport.ru/external/2015/07/21.png
Yeah, that's a minor issue with that version. You can fix it by editing the code in packages/vbforum/item, in socialgroupmessage.php and socialgroupdiscussion.php. In both cases you want to find this:
protected function getLoadQuery($required_query = null, $force_rebuild = false)
and add the '= null' (in red above).
If you have php 5.4 or later you could also upgrade to vb4.2.3 (but of course there's always a little risk with upgrading).
Mr basil
07-11-2015, 12:14 PM
Yeah, that's a minor issue with that version. You can fix it by editing the code in packages/vbforum/item, in socialgroupmessage.php and socialgroupdiscussion.php. In both cases you want to find this:
protected function getLoadQuery($required_query = null, $force_rebuild = false)
and add the '= null' (in red above).
If you have php 5.4 or later you could also upgrade to vb4.2.3 (but of course there's always a little risk with upgrading).
Here the original line:
protected function getLoadQuery($required_query = self::QUERY_BASIC, $force_rebuild = false)
I tried to replace it with your code but it give same error
http://prntscr.com/7rfzmv
EDIT:
I found a fix for this issue in google
So in class_core.php locate lines 5683-5685
case E_NOTICE:
// Just ignore these completely //
break;
To replace it with this code
case E_NOTICE:
case E_STRICT;
case E_DEPRECATED;
// Just ignore these completely //
break;
Here the original line:
protected function getLoadQuery($required_query = self::QUERY_BASIC, $force_rebuild = false)
That's strange. In my vb4.2.2PL4 files, those lines looked like this:
protected function getLoadQuery($required_query, $force_rebuild = false)
but in any case you found a fix, and that one will take care of any other warnings that you might have.
Skyrider
07-11-2015, 01:20 PM
I just checked those 2 files on vBulletin 4.2.3. Both are:
protected function getLoadQuery($required_query = self::QUERY_BASIC, $force_rebuild = false)
It appears the latest version has changed it a bit as I checked my backup files (4.2.2 Patch level 2), it's like this:
protected function getLoadQuery($required_query, $force_rebuild = false)
I just checked those 2 files on vBulletin 4.2.3. Both are:
protected function getLoadQuery($required_query = self::QUERY_BASIC, $force_rebuild = false)
It appears the latest version has changed it a bit as I checked my backup files (4.2.2 Patch level 2), it's like this:
protected function getLoadQuery($required_query, $force_rebuild = false)
OK, then maybe Mr. Basil has upgraded to 4.2.3 (it says 4.2.2pl4 in a previous post). And if that's true, is that warning still present in vb4.2.3?
Mr basil
07-11-2015, 09:01 PM
OK, then maybe Mr. Basil has upgraded to 4.2.3 (it says 4.2.2pl4 in a previous post). And if that's true, is that warning still present in vb4.2.3?
I didn't upgrade to 4.2.3, my vBulletin version is 4.2.2 patch level 4, you can check "http://forum.klimax.lt/"
Also why would I upgrade to 4.2.3 when it doesn't have any plugins/styles/etc
I didn't upgrade to 4.2.3, my vBulletin version is 4.2.2 patch level 4, you can check "http://forum.klimax.lt/"
Well, the version that the web site reports in the footer doesn't necessarily match the version of every file. But if you say you didn't upgrade, I believe you. I was just trying to figure out why your files seem to be different than the vb4.2.2pl4 distribution, but it doesn't matter now.
Also why would I upgrade to 4.2.3 when it doesn't have any plugins/styles/etc
Most everything that was compatible with vb4.2.2 will work with 4.2.3, but since a lot of people are upgrading php at the same time, that has caused some issues with plugins.
vBulletin® v3.8.12 by vBS, Copyright ©2000-2025, vBulletin Solutions Inc.