vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 Programming Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=15)
-   -   Global fatal error. (https://vborg.vbsupport.ru/showthread.php?t=115830)

Olli460 05-17-2006 12:53 AM

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.

Paul M 05-17-2006 03:49 AM

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 ?

Olli460 05-17-2006 04:40 AM

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.

Delphiprogrammi 05-17-2006 03:40 PM

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()

Olli460 05-18-2006 04:07 AM

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?

Guest190829 05-18-2006 04:09 AM

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.

Olli460 05-18-2006 04:45 AM

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.

Guest190829 05-18-2006 05:14 AM

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.


All times are GMT. The time now is 01:42 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.01175 seconds
  • Memory Usage 1,727KB
  • 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
  • (1)bbcode_php_printable
  • (1)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (8)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
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete