Go Back   vb.org Archive > vBulletin 3 Discussion > vB3 Programming Discussions
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools Display Modes
  #1  
Old 05-17-2006, 12:53 AM
Olli460 Olli460 is offline
 
Join Date: Jan 2005
Posts: 68
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default Global fatal error.

Im trying to edit the usertool.php to enable some options but I dunno how to remove the global to enable it. If I dont edit it at all I get this:Fatal error: Call to undefined function: globalize() How do I get rid of global with the operation still working? Ive tried deleting the whole line with global but only to make the page show up but not function properly. I dont know what I should be doing in order to fix this so any help would be appreciated, thanks.
Reply With Quote
  #2  
Old 05-17-2006, 03:49 AM
Paul M's Avatar
Paul M Paul M is offline
 
Join Date: Sep 2004
Location: Nottingham, UK
Posts: 23,748
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I think you need to be more specific about what you are doing - what does "remove the global to enable it" mean ? what "options" are you referring to ? - and what version of vb is this ?
Reply With Quote
  #3  
Old 05-17-2006, 04:40 AM
Olli460 Olli460 is offline
 
Join Date: Jan 2005
Posts: 68
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Im using vbulletin 3.5.4 and when Im altering the usertools php. When I say remove the global, I meant the globalize part of the script say under search ip address. When I do this then I can access the page without the error stating itself BUT whenever I try to look up someones name or whatever, it doesnt follow through. I dont know what the undefined function is so that really confuses me on how to fix this. If im still being a little vague, tell me and Ill try to elaborate even more. Thanks.
Reply With Quote
  #4  
Old 05-17-2006, 03:40 PM
Delphiprogrammi Delphiprogrammi is offline
 
Join Date: Feb 2004
Location: Landen(Belgium)
Posts: 1,335
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Olli460
Im trying to edit the usertool.php to enable some options but I dunno how to remove the global to enable it. If I dont edit it at all I get this:Fatal error: Call to undefined function: globalize() How do I get rid of global with the operation still working? Ive tried deleting the whole line with global but only to make the page show up but not function properly. I dont know what I should be doing in order to fix this so any help would be appreciated, thanks.
globalize() doesn't exist in 3.5.x it's been replaced by the Vb_Input_CLeaner class

PHP Code:
$vbulletin->input->clean_array_gpc();
$vbulletin->input_clean_gpc(); 
are used in 3.5.x instead of globalize()
Reply With Quote
  #5  
Old 05-18-2006, 04:07 AM
Olli460 Olli460 is offline
 
Join Date: Jan 2005
Posts: 68
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

So do I use that code to replace the globalize? Like wherever there is globalize, I use one of those? How do I know which one to use for where?
Reply With Quote
  #6  
Old 05-18-2006, 04:09 AM
Guest190829
Guest
 
Posts: n/a
Default

Is what you are trying to edit custom code? If so, post the segment here and we will help convert it for you to 3.5. If it's not custom code, then you can just upload the new file found in your 3.5.4 package. Globalize() is used in the 3.0.x series of vBulletin, so it shouldn't be in any of your files.
Reply With Quote
  #7  
Old 05-18-2006, 04:45 AM
Olli460 Olli460 is offline
 
Join Date: Jan 2005
Posts: 68
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I think it stayed when it was upgraded from 3.0.6 to 3.5.4 Its the usertools located in the MODCp and when I tried giving some extra functions to the Mod CP I kept getting this error when I was testing it out. It is kinda odd that it would still be there after the upgrade though.
Reply With Quote
  #8  
Old 05-18-2006, 05:14 AM
Guest190829
Guest
 
Posts: n/a
Default

Reuploading the new 3.5.4 file should fix the solution, if you don't have any custom code in there that you need ported.
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 01:59 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.04361 seconds
  • Memory Usage 2,221KB
  • 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
  • (1)bbcode_php
  • (1)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (8)post_thanks_box
  • (8)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (8)post_thanks_postbit_info
  • (8)postbit
  • (6)postbit_onlinestatus
  • (8)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
  • 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