Welcome, Guest. Please Login or Register.
August 30, 2025, 09:17:06 AM
Home Help Search Log in Register
News: If you are still using YaBB SE, please consider upgrading to SMF as soon as possible.

YaBB SE Community  |  English User Help  |  English Help  |  This is what happens with PHP 4.2.0..... « previous next »
Pages: [1] Reply Ignore Print
Author Topic: This is what happens with PHP 4.2.0.....  (Read 325 times)
Greg Robson
Training to be like Joseph
YaBB SE Developer
YaBB God
*****
Posts: 1459


Hello!

ICQ - 81390136 WWW
This is what happens with PHP 4.2.0.....
« on: May 03, 2002, 10:48:19 AM »
Reply with quote

Had a support request today that was identified as being a problem caused by PHP 4.2.0

When 4.2.0 is installed with register_globals set to off you can only access the board index - no matter what you click that is the page that you will get.

To confirm make a file called info.php with the following contents...
<?phpphpinfo();?>

and upload it to your server and run it. The version number is given in the web page heading - if you scroll down you will find the register_global setting, if this is off then your board will not work until we have come up with a fix.

Hope this helps :)
Greg
Logged

You can't have everything... where would you put it? -- Steve Wright
Jeff Lewis
Global Moderator
YaBB God
*****
Posts: 10149


I'm a llama!

WWW
Re:This is what happens with PHP 4.2.0.....
« Reply #1 on: May 03, 2002, 12:10:00 PM »
Reply with quote

Like I have said in the developers area...if someone wants to add:

ini_set ("register_globals",1);

to the index.php file, see if that works.
Logged

Coyote
YaBB God
*****
Posts: 702


I love YaBB SE!

Re:This is what happens with PHP 4.2.0.....
« Reply #2 on: May 03, 2002, 01:44:12 PM »
Reply with quote

Hi I posted a support request on my hosts forum and a kind soul by the name of Jason posted this - Iwondered if it will help?

I'll try jeffs fix tonight.

Thanks Greg/Jeff

*********************************************
Here's a quick fix for everyone having trouble with register_globals being off> register_globals, for those who don't know, is a PHP configuration setting that allows you to use form, environment, and cookie names as variable names within PHP. With register_globals off you need to specify these variables as follows:

$HTTP_POST_VARS["foo"] (as opposed to just $foo),
$HTTP_GET_VARS["bar"],
$HTTP_COOKIE_VARS["session"],
$HTTP_SERVER_VARS["HTTP_REFERRER"],
etc.

If you want to quickly enable register_globals for your site, add the following line to your .htaccess file:

php_flag register_globals on

That will override the system settings and should get your scripts working again. Good luck.

--Jason

__________________
Jason Pitoniak
Interbrite Communications
http://www.interbrite.com
******************************************
Logged

To the world - you are just one person, but to one person you are the world!
Jeff Lewis
Global Moderator
YaBB God
*****
Posts: 10149


I'm a llama!

WWW
Re:This is what happens with PHP 4.2.0.....
« Reply #3 on: May 03, 2002, 02:04:09 PM »
Reply with quote

Yep, try what I suggested and see if it works...would be easiest quick fix.
Logged

daedalu318
Noobie
*
Posts: 3


I'm a llama!

Re:This is what happens with PHP 4.2.0.....
« Reply #4 on: May 03, 2002, 03:29:58 PM »
Reply with quote

Hey guys,
     I'm running a server with PHP4.2 installed and ran into this problem.  Since I admin the server and it is a private server I just went in and enabled the register_globals in the php.ini and I can click between pages with no problem.  The only problem I have now is the fact that yabbse won't write a cookie for the username and password.  I do get the expirtime cookie though.  Of course without the user and pass cookies I can not stay logged in and hence can't do anything with the board.  Any ideas...oh and I also have Apache 2.x on the machine.  Any help would be great.

Thanks,
Daedalus
Logged
Coyote
YaBB God
*****
Posts: 702


I love YaBB SE!

Re:This is what happens with PHP 4.2.0.....
« Reply #5 on: May 03, 2002, 04:34:43 PM »
Reply with quote

Hi,

My host changed the register globals to 'on' before I changed anything and it seems to be working ok now :)

Hey daedalu,

I understand that PHP 4.2.0 and Apache 2 has problems and 'experimental' - maybe step down to Apache/1.3.23

Apart from that I cant help Im afraid :(

Good luck
Tony
Logged

To the world - you are just one person, but to one person you are the world!
Pages: [1] Reply Ignore Print 
YaBB SE Community  |  English User Help  |  English Help  |  This is what happens with PHP 4.2.0..... « previous - next »
 


Powered by MySQL Powered by PHP YaBB SE Community | Powered by YaBB SE
© 2001-2003, YaBB SE Dev Team. All Rights Reserved.
SMF 2.1.4 © 2023, Simple Machines
Valid XHTML 1.0! Valid CSS

Page created in 0.012 seconds with 17 queries.