vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB4 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=251)
-   -   Problem When Posting Thread (https://vborg.vbsupport.ru/showthread.php?t=319423)

Mr basil 07-10-2015 12:50 PM

Problem When Posting Thread
 
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?

kh99 07-10-2015 01:19 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).

Mr basil 07-10-2015 02:04 PM

Quote:

Originally Posted by kh99 (Post 2549845)
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"

kh99 07-10-2015 07:12 PM

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

kh99 07-11-2015 10:18 AM

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:
Code:

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

Quote:

Originally Posted by kh99 (Post 2549928)
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:
Code:

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:

Code:

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

Code:

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

To replace it with this code

Code:

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


kh99 07-11-2015 12:27 PM

Quote:

Originally Posted by Mr basil (Post 2549939)
Here the original line:

Code:

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:
Code:

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:

Code:

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:

Code:

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

kh99 07-11-2015 01:23 PM

Quote:

Originally Posted by Skyrider (Post 2549944)
I just checked those 2 files on vBulletin 4.2.3. Both are:

Code:

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:

Code:

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?


All times are GMT. The time now is 07:25 PM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01069 seconds
  • Memory Usage 1,749KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (11)bbcode_code_printable
  • (4)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete