PDA

View Full Version : Passing variables through URL not working after phpBB upgrade


EmXtrix
03-24-2005, 05:30 PM
I upgraded my forums to phpBB 2.0.13 and now the following page is not working properly:

http://www.pcsynapse.com/reviews.php

If you click on a link, it will reload the page with a "verify" variable that, if set, is supposed to load different content onto the page. The actualy reviews.php has not changed since yesterday, only the phpBB files... I tried posting this issue on phpBB forums but they deleted my post for some reason.

All thoughts and suggestions welcome.

iDxMan
03-25-2005, 12:17 AM
Does the code rely on register globals being on? Check to make sure you're using the superglobals. ($_GET, $_POST, etc..)

-r

EmXtrix
03-25-2005, 12:58 AM
I don't believe it depends on these, unless this is something I have to set through phpBB. If so please explain.

iDxMan
03-25-2005, 02:06 AM
Well, for example if you pass some data to the script like : foo.php?action=this

..then your script relies on the $action variable, it wont work unless register_globals is turned on in your php.ini ..

Otherwise you'll need to use something like $_GET['action'] (or $_POST['action']) instead.

-r

SnakEyez
03-26-2005, 08:55 PM
phpBB to this date cannot run on ANY PHP version after 4. This is because phpBB needs register_long_arrays on and after php4 this has been disabled. The reason for this is that phpBB still uses $HTTP_GET_VARS[] and not the new arrays that you mentioned like $_GET.

Also I did go to that link you showed and I was recieving no errors at all. If you are still having problems could you please be a little more specific as to what exactly is wrong.