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.

Upgrade for PHP 7.x

Goto page Previous  1, 2, 3, 4, 5, 6
 
Search this topic... | Search phpBB2 Discussion... | Search Box
Register or Login to Post    Index » phpBB2 Discussion  Previous TopicPrint TopicNext Topic
Author Message
Vendethiel
Board Member



Joined: 26 Oct 2014

Posts: 174



PostPosted: Thu Jan 30, 2020 5:47 pm 
Post subject: Re: Upgrade for PHP 7.x

It's probably better to do that replacement before adding that function icon_smile.gif.
_________________
Developer on EzArena, the ADR premod.
Developer on Icy Phoenix, the phpBB hybrid cms.
Developer on IntegraMOD, the full-featured premod.
Help me archive premods on github! (fixed for recent PHPs).
Back to top
vlad77
Board Member



Joined: 31 May 2015

Posts: 117


flag
PostPosted: Sat Feb 29, 2020 6:22 pm 
Post subject: Re: Upgrade for PHP 7.x

There is an unpleasant change when upgrading to new php versions. See https://www.php.net/manual/en/migration54.incompatible.php
Quote:
Call-time pass by reference has been removed.
Description of the problem for one case http://www.phpbb2refugees.com/viewtopic.php?p=8320#8320

This means that you need to look in all &$ files, and if this is not a function definition of function foo(&$var), but its call to foo(&$a); then delete & and, if necessary, transfer it to the definition. Which is very laborious. Another way is to test the forum, which is not much easier, and does not guarantee that all function calls that are not working correctly are detected.

Regex search with negation helped. The regular expression to search for ^(?!.*function ).*&\$.*$ Searches for strings with &$ if there is no function in the string. That is, it finds &$ except for cases of defining functions.

Use an editor that supports bulk regular expression searches. I used a Far Manager and plugin to it RESearch.

In Russian, this is called a "life hack".
Back to top
Syd Lexia
Board Member



Joined: 19 Feb 2020

Posts: 17



PostPosted: Wed Mar 25, 2020 8:02 pm 
Post subject: Re: Upgrade for PHP 7.x

Hello. I run a website for fun and I am trying to get my forums to work on PHP 7.x. I make zero money off the site and pay the hosting fees out of my own pocket.

I had a thread here: http://www.phpbb2refugees.com/viewtopic.php?t=2557

But people stopped paying attention to it.

I have ZERO coding experience and people keep directing me to this thread as a source of how to fix my forums. This thread is very long and hard to follow and far too technical to be of any help to me.

My main problem right now is that posts show up as blank. I can see that people have fixed this, but I am unable to understand how to fix it. Is there anyone willing to give me simple, idiotproof step-by-step instructions on how to get my code working?

I can upload the entirety of the code minus the config file if necessary.

Alternatively, is there someone I could pay like $100 USD to just fix this for me? My forums have been down for over a month and it's really making me sad.
Back to top
lumpy burgertushie
Board Member



Joined: 19 Nov 2008

Posts: 242


flag
PostPosted: Thu Mar 26, 2020 6:15 am 
Post subject: Re: Upgrade for PHP 7.x

is there some particular reason that you do not want to upgrade to phpbb3?

that would be the easiest and quickest thing for you to do.

getting phpbb2 to work with php 7+ is a pretty major bit of code editing etc. as you have found.


coverting phpbb2 to phpbb3.3 is pretty straight forward and unless your board is huge should not take very long to do.

it can also be done offline if you wish.
it also does not touch your phpbb2 installation but creates a new phpbb3 board and converts the database leaving the old database intact.


robert
Back to top
Syd Lexia
Board Member



Joined: 19 Feb 2020

Posts: 17



PostPosted: Fri Mar 27, 2020 7:42 pm 
Post subject: Re: Upgrade for PHP 7.x

I like the aesthetic of my current board and I will never be able to get PHPbb 3 to look exactly like PHPbb 2. I tried an upgrade once years ago and I wasn't happy with how the new installation looked, so we aborted it. I'd rather just pay someone to fix my current installation.
Back to top
Display posts from previous:   
Register or Login to Post    Index » phpBB2 Discussion  Previous TopicPrint TopicNext Topic
Page 6 of 6 All times are GMT
Goto page Previous  1, 2, 3, 4, 5, 6
 
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.0250 seconds using 15 queries. (SQL 0.0022 Parse 0.0008 Other 0.0220)
phpBB Customizations by the phpBBDoctor.com
Template Design by DeLFlo and MomentsOfLight.com Moments of Light Logo