PDA

View Full Version : This code isn't working on my server - WHY?


Hellcat
02-10-2006, 01:00 AM
Hi!

I have this snippet of code: $vbulletin->input->clean_array_gpc('p', array( "countdownuserfield" => TYPE_STR,
"cdsettings" => TYPE_ARRAY ));

$cdsettings = $vbulletin->GPC["cdsettings"];
$cdprofilefield = $vbulletin->GPC["countdownuserfield"];
It runns fine on my local test vB, on a 1:1 copy of my live board made on my laptop and for many other people that installed my hack using this code.

BUT:
On my own live server this code does: NOTHING!
The two var's are supposed to get filled with the contents of the GPC stuff, but on my live server they are not....

WHY?
Anyone got a clue?

PHP version on my server is 4.3.1-52, my local testsetup runns 4.4.0

If it's a problem with the PHP version?
Unfortunately I am not able to upgrade the PHP on my server ATM.... Is there a workaround?

I also tried turning SaveMode off - didn't help either.

Sinistra
02-10-2006, 01:26 AM
you might want to refer to a support ticket on www.vbulletin.com or post on the boad there.

Hellcat
02-10-2006, 01:33 AM
Well.... I think it's rather a PHP issue than a vBulletin problem :-/

XanTrax
02-10-2006, 01:59 AM
Check your PHP versions since your running a higher version locally. I dont see why 4.3 wouldnt run it and 4.4 would but hey, its worth a shot....