vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   Member Archives (https://vborg.vbsupport.ru/forumdisplay.php?f=202)
-   -   Fatal error: Cannot redeclare stripslashesarray() in (https://vborg.vbsupport.ru/showthread.php?t=44100)

L-Mane 09-29-2002 09:25 PM

Fatal error: Cannot redeclare stripslashesarray() in
 
Fatal error: Cannot redeclare stripslashesarray() in D:\web_public\site\forum\global.php on line 31

Here got the area where the error is at

// get rid of slashes in get / post / cookie data
function stripslashesarray (&$arr) {
while (list($key,$val)=each($arr)) {
if ($key!="templatesused" and $key!="argc" and $key!="argv") {
if (is_string($val) AND (strtoupper($key)!=$key OR ("".intval($key)=="$key"))) {
$arr["$key"] = stripslashes($val);
} else if (is_array($val) AND ($key == 'HTTP_POST_VARS' OR $key == 'HTTP_GET_VARS' OR strtoupper($key)!=$key)) {
$arr["$key"] = stripslashesarray($val);
}
}
}

How can I fix this here problem?

g-force2k2 09-30-2002 12:59 AM

im not sure... but you can try changing this line

$arr["$key"] = stripslashesarray($val);

to this

$arr["$key"] = stripslashes($val);

because on the first instance you're defining that function... and in the function you're trying to call a function that you're defining... hope that makes some sense... regards...

g-force2k2

L-Mane 10-02-2002 08:36 PM

Now I get this error

Fatal error: Cannot redeclare stripslashesarray() in D:\site\site\site\global.php on line 31
Query: UPDATE session SET lastactivity=1033594518,location='/site/member.php' WHERE sessionhash='4312483c78e4ee44ff4012ebf1b1a507' Time before: 0.00029599666595459 Time after: 0.071889042854309
--------------------------------------------------------------------------------
Query: UPDATE user SET lastactivity=1033594518,inforum='0' WHERE userid='1' Time before: 0.072347044944763 Time after: 0.66364800930023

Scott MacVicar 10-04-2002 03:20 PM

you've included global.php twice by the sounds of it


All times are GMT. The time now is 08:04 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.00998 seconds
  • Memory Usage 1,710KB
  • 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)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (4)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