Author |
Message |
ttyR2 Board Member
Joined: 03 Jul 2013
Posts: 6
|
Posted: Wed Jul 03, 2013 2:34 pm Post subject: PHPBB2 and PHP5 issue |
|
|
Our messageboard http://www.jdcrawlers.com/messageboard/index.php is hosted with 1&1. They are requiring everyone to migrate to mysql5 and php5.x by mid August.
With their help, I was able to get the database migrated from mysql4 to 5. Almost all of the messagboard worked fine in php5.x as well (php5.3, I believe), except for new user registration. When clicking the link for that, I get a completely blank page. Everything else seems to work fine including the administrator control panel, so I'm loathe to convert everything to PHPBB3 because I did quite a few modifications.
A note from one of the web programmers at work:
"On line 833 of includes/usercp_register.php is a long array and it’s giving a fatal error. I tried uploading an .htaccess file with ‘php_value register_long_arrays On’ but it didn’t like the file. If you can set any php variables under admin functions, you might try adding that line."
I can't really ask her to help much because she's busy. With the above info, can any of you point me in the right direction on how to fix this issue? I used to dabble in php a bit, but certainly wouldn't call myself a programmer.
1&1 let me set php back to version 4 so registration is working right now. |
|
Back to top |
|
|
Salvatos Board Member
Joined: 19 Feb 2009
Posts: 449 Location: Québec
|
|
Back to top |
|
|
ttyR2 Board Member
Joined: 03 Jul 2013
Posts: 6
|
Posted: Sun Jul 07, 2013 8:01 pm Post subject: Re: PHPBB2 and PHP5 issue |
|
|
After creating a php.ini file with that info in it and uploading that to /includes, the registration page seems to still be working after switching to PHP5.2 at 1&1. Thanks for the help! |
|
Back to top |
|
|
lumpy burgertushie Board Member
Joined: 18 Nov 2008
Posts: 266
|
Posted: Sun Jul 07, 2013 10:41 pm Post subject: Re: PHPBB2 and PHP5 issue |
|
|
I am surprised that it helped at all. that file should really be in your server root, not in the includes folder.
robert |
|
Back to top |
|
|
Salvatos Board Member
Joined: 19 Feb 2009
Posts: 449 Location: Québec
|
Posted: Mon Jul 08, 2013 1:01 pm Post subject: Re: PHPBB2 and PHP5 issue |
|
|
Well that page is specific to /includes, but I'd be surprised if you don't run into the same problem with other pages, so indeed the root would be the best place for it. |
|
Back to top |
|
|
StarWolf3000 Board Member
Joined: 10 Jun 2010
Posts: 175 Location: Germany
|
Posted: Wed Jul 10, 2013 8:58 am Post subject: Re: PHPBB2 and PHP5 issue |
|
|
Instead of putting the file in /includes you should at least move it to the forums root to not get in trouble with some MODs you maybe install in the future. Also I don't understand why phpBB2 requires register_long_arrays set to On/True/1. The forums code automatically checks if the HTTP_*_VARS are already set by PHP and if they are not the forum will create them automatically to keep older MODs running:
/common.php:
Code: | // PHP5 with register_long_arrays off?
if (@phpversion() >= '5.0.0' && (!@ini_get('register_long_arrays') || @ini_get('register_long_arrays') == '0' || strtolower(@ini_get('register_long_arrays')) == 'off'))
{
$HTTP_POST_VARS = $_POST;
$HTTP_GET_VARS = $_GET;
$HTTP_SERVER_VARS = $_SERVER;
$HTTP_COOKIE_VARS = $_COOKIE;
$HTTP_ENV_VARS = $_ENV;
$HTTP_POST_FILES = $_FILES;
// _SESSION is the only superglobal which is conditionally set
if (isset($_SESSION))
{
$HTTP_SESSION_VARS = $_SESSION;
}
} |
|
|
Back to top |
|
|
lumpy burgertushie Board Member
Joined: 18 Nov 2008
Posts: 266
|
Posted: Wed Jul 10, 2013 10:53 am Post subject: Re: PHPBB2 and PHP5 issue |
|
|
from what I remember there was no real problems with phpbb2 and php5 back when it first came out anyway.
robert |
|
Back to top |
|
|
Dog Cow Board Member
Joined: 18 Nov 2008
Posts: 378
|
Posted: Mon Jul 15, 2013 6:23 pm Post subject: Re: PHPBB2 and PHP5 issue |
|
|
lumpy burgertushie wrote: | from what I remember there was no real problems with phpbb2 and php5 back when it first came out anyway.
robert |
Some incompatible MODs with admin panel pages weren't compatible with PHP5, and so would cause the ACP to fail to load. _________________ Moof!
Lincoln's Tomb, Oak Ridge Cemetery, Springfield IL • Mac 512K Blog • Mac GUI |
|
Back to top |
|
|
|