Go Back   vb.org Archive > vBulletin 3 Discussion > vB3 General Discussions
  #1  
Old 09-01-2013, 06:56 PM
Simon Lloyd's Avatar
Simon Lloyd Simon Lloyd is offline
 
Join Date: Aug 2008
Location: Manchester
Posts: 3,481
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default Odd buddy list message

Hi all, I've got a strange one, I have a user who has tried to look at his buddy list but he doesn't have anyone on it, he sees this message
Quote:
print_standard_error(...)
is now redundant. Instead, use
standard_error(fetch_error(...))
I've searched plugins, phrases and templates but cannot find where this message is coming from, f it helps (and I doubt it) I have just moved from PHP 5.2.17 to PHP 5.3.x

If I know where this is coming from I can fix it but as far as i'm able to see it doesn't exist anywhere!???
Reply With Quote
  #2  
Old 09-01-2013, 07:10 PM
Amaury Amaury is offline
 
Join Date: Nov 2011
Location: Ellensburg, WA
Posts: 1,075
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I don't staff any vBulletin 3 forums, but was it an issue before the PHP upgrade?
Reply With Quote
  #3  
Old 09-01-2013, 07:20 PM
Simon Lloyd's Avatar
Simon Lloyd Simon Lloyd is offline
 
Join Date: Aug 2008
Location: Manchester
Posts: 3,481
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

No it wasn't, anyway, I've found the reason I get that rather than "you don't have any buddies" message, a plugin I coded which checked if the request was misc.php do=...etc had an IF{}ELSE{ in it where if the else was met it worked for all misc.php requests.

Now on to the problem, it seems that this:
PHP Code:
eval(print_standard_error('$vbphrase[no_perm_rep_post]')); 
Which works and always has is what's causing the error in that plugin, changing it for this:
PHP Code:
standard_error(fetch_error('$vbphrase[no_perm_rep_post]')); 
causes a fault???
Reply With Quote
  #4  
Old 09-01-2013, 10:33 PM
kh99 kh99 is offline
 
Join Date: Aug 2009
Location: Maine
Posts: 13,185
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Are you sure it's always worked? The function print_standard_error() seems to have been coded to print that error message since at least 3.6.2 (that's the oldest version I have code handy for). Maybe you've just never triggered that error before.
Reply With Quote
  #5  
Old 09-02-2013, 04:51 PM
Simon Lloyd's Avatar
Simon Lloyd Simon Lloyd is offline
 
Join Date: Aug 2008
Location: Manchester
Posts: 3,481
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Hi Kevin, you may be right about triggering the error however, now that i've changed the IF ELSE containment the print_standard_error works (or appears to) if i replace it with standard_error(fetch_error it gives errors??
Reply With Quote
  #6  
Old 09-02-2013, 05:42 PM
kh99 kh99 is offline
 
Join Date: Aug 2009
Location: Maine
Posts: 13,185
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Oh, I see what you meant. Well, I think you need to remove the single quotes from around the variable, like:
PHP Code:
standard_error(fetch_error($vbphrase['no_perm_rep_post'])); 

but I'm not sure if that's what was causing the fault.

ETA: actually I'm not sure if you need the call to fetch_error() in there since it looks like you're using a phrase that's already loaded.
Reply With Quote
  #7  
Old 09-02-2013, 05:46 PM
Simon Lloyd's Avatar
Simon Lloyd Simon Lloyd is offline
 
Join Date: Aug 2008
Location: Manchester
Posts: 3,481
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Ill give that a try later, thanks
Reply With Quote
  #8  
Old 09-02-2013, 07:54 PM
tbworld tbworld is offline
 
Join Date: Oct 2008
Posts: 2,126
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by kh99 View Post
Oh, I see what you meant. Well, I think you need to remove the single quotes from around the variable, like:
PHP Code:
standard_error(fetch_error($vbphrase['no_perm_rep_post'])); 
but I'm not sure if that's what was causing the fault.

ETA: actually I'm not sure if you need the call to fetch_error() in there since it looks like you're using a phrase that's already loaded.
I cannot see any reason for the single quotes either. I was going to post the same thing but of course @Kh99 has a more quicker-er and sharper-er mind then mine.
Reply With Quote
  #9  
Old 09-02-2013, 10:01 PM
kh99 kh99 is offline
 
Join Date: Aug 2009
Location: Maine
Posts: 13,185
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by tbworld View Post
I cannot see any reason for the single quotes either. I was going to post the same thing but of course @Kh99 has a more quicker-er and sharper-er mind then mine.
Yeah right. I just happened to get there first this time.
Reply With Quote
Reply

Thread Tools
Display Modes

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 11:21 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.04070 seconds
  • Memory Usage 2,241KB
  • Queries Executed 11 (?)
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
  • (4)bbcode_php
  • (3)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (9)post_thanks_box
  • (9)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (9)post_thanks_postbit_info
  • (9)postbit
  • (9)postbit_onlinestatus
  • (9)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_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
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete