Go Back   vb.org Archive > vBulletin 4 Discussion > vB4 General Discussions
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools Display Modes
  #1  
Old 07-10-2015, 12:50 PM
Mr basil Mr basil is offline
 
Join Date: Jul 2011
Posts: 51
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default Problem When Posting Thread

I get this errors when I create new thread in the forum also when I open any thread


Any solutions?
Reply With Quote
  #2  
Old 07-10-2015, 01:19 PM
kh99 kh99 is offline
 
Join Date: Aug 2009
Location: Maine
Posts: 13,185
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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).
Reply With Quote
  #3  
Old 07-10-2015, 02:04 PM
Mr basil Mr basil is offline
 
Join Date: Jul 2011
Posts: 51
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by kh99 View Post
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"
Reply With Quote
  #4  
Old 07-10-2015, 07:12 PM
kh99 kh99 is offline
 
Join Date: Aug 2009
Location: Maine
Posts: 13,185
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
  #5  
Old 07-11-2015, 09:33 AM
Mr basil Mr basil is offline
 
Join Date: Jul 2011
Posts: 51
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.

Reply With Quote
  #6  
Old 07-11-2015, 10:18 AM
kh99 kh99 is offline
 
Join Date: Aug 2009
Location: Maine
Posts: 13,185
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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).
Reply With Quote
  #7  
Old 07-11-2015, 12:14 PM
Mr basil Mr basil is offline
 
Join Date: Jul 2011
Posts: 51
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by kh99 View Post
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;
Reply With Quote
2 благодарности(ей) от:
kh99, MarkFL
  #8  
Old 07-11-2015, 12:27 PM
kh99 kh99 is offline
 
Join Date: Aug 2009
Location: Maine
Posts: 13,185
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Mr basil View Post
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.
Reply With Quote
  #9  
Old 07-11-2015, 01:20 PM
Skyrider Skyrider is offline
 
Join Date: Feb 2006
Location: Netherlands
Posts: 1,392
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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)
Reply With Quote
  #10  
Old 07-11-2015, 01:23 PM
kh99 kh99 is offline
 
Join Date: Aug 2009
Location: Maine
Posts: 13,185
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Skyrider View Post
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?
Reply With Quote
Reply


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

Forum Jump


All times are GMT. The time now is 10:55 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
  • Page Generation 0.04077 seconds
  • Memory Usage 2,271KB
  • Queries Executed 13 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (1)ad_showthread_firstpost
  • (1)ad_showthread_firstpost_sig
  • (1)ad_showthread_firstpost_start
  • (11)bbcode_code
  • (4)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (10)post_thanks_box
  • (2)post_thanks_box_bit
  • (10)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (1)post_thanks_postbit
  • (10)post_thanks_postbit_info
  • (10)postbit
  • (10)postbit_onlinestatus
  • (10)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.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/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_postinfo_query
  • fetch_postinfo
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • fetch_musername
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • post_thanks_function_fetch_thanks_bit_start
  • post_thanks_function_show_thanks_date_start
  • post_thanks_function_show_thanks_date_end
  • post_thanks_function_fetch_thanks_bit_end
  • post_thanks_function_fetch_post_thanks_template_start
  • post_thanks_function_fetch_post_thanks_template_end
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete