phpBB2Refugees.com Logo
Not affiliated with or endorsed by the phpBB Group

Register •  Login 

Continue the legacy...

Welcome to all phpBB2 Refugees!Wave Smilie

This site is intended to continue support for the legacy 2.x line of the phpBB2 bulletin board package. If you are a fan of phpBB2, please, by all means register, post, and help us out by offering your suggestions. We are primarily a community and support network. Our secondary goal is to provide a phpBB2 MOD Author and Styles area.

PHPBB2 and PHP5 issue


 
Search this topic... | Search General Support... | Search Box
Register or Login to Post    Index » General Support  Previous TopicPrint TopicNext Topic
Author Message
ttyR2
Board Member



Joined: 03 Jul 2013

Posts: 6



PostPosted: Wed Jul 03, 2013 6: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: 430
Location: Québec


flag
PostPosted: Thu Jul 04, 2013 12:42 am 
Post subject: Re: PHPBB2 and PHP5 issue

You should be able to create a php.ini file with this option:
Code:
php_value register_long_arrays 1


Source and context: http://www.electrictoolbox.com/php-register-long-arrays/
Back to top
ttyR2
Board Member



Joined: 03 Jul 2013

Posts: 6



PostPosted: Mon Jul 08, 2013 12:01 am 
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: 19 Nov 2008

Posts: 224


flag
PostPosted: Mon Jul 08, 2013 2:41 am 
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: 430
Location: Québec


flag
PostPosted: Mon Jul 08, 2013 5: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: 103
Location: Germany


flag
PostPosted: Wed Jul 10, 2013 12:58 pm 
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: 19 Nov 2008

Posts: 224


flag
PostPosted: Wed Jul 10, 2013 2:53 pm 
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


flag
PostPosted: Mon Jul 15, 2013 10: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 ILMac 512K BlogMac GUI
Back to top
Display posts from previous:   
Register or Login to Post    Index » General Support  Previous TopicPrint TopicNext Topic
Page 1 of 1 All times are GMT
 
Jump to:  

Index • About • FAQ • Rules • Privacy • Search •  Register •  Login 
Not affiliated with or endorsed by the phpBB Group
Powered by phpBB2 © phpBB Group
Generated in 0.0275 seconds using 15 queries. (SQL 0.0023 Parse 0.0009 Other 0.0243)
phpBB Customizations by the phpBBDoctor.com
Template Design by DeLFlo and MomentsOfLight.com Moments of Light Logo