phpbb 3.3 not run in PHP 7.2.27

Get help with installation and running phpBB 3.3.x here. Please do not post bug reports, feature requests, or extension related questions here.
lendy
Registered User
Posts: 4
Joined: Sun Feb 02, 2020 2:29 pm

phpbb 3.3 not run in PHP 7.2.27

Post by lendy »

Fatal error: Cannot use 'null' as class name as it is reserved in /phpbb/cache/driver/null.php on line 19

User avatar
stevemaury
Support Team Member
Support Team Member
Posts: 51355
Joined: Thu Nov 02, 2006 12:21 am
Location: The U.P.
Name: Steve
Contact:

Re: phpbb 3.3 not run in PHP 7.2.27

Post by stevemaury »

php 7.2.x is compatible with phpBB 3.3.0. We need more information. Please fill out the Support Request Template and post it back here to enable us to assist you better.

There is no phpBB file named null.php in that directory (or any other, I hope).
For REALLY good and VERY inexpensive hosting CLICK HERE

I can stop all your spam. I can upgrade or update your Board. PM or email me. (Paid support)

lendy
Registered User
Posts: 4
Joined: Sun Feb 02, 2020 2:29 pm

Re: phpbb 3.3 not run in PHP 7.2.27

Post by lendy »

phpbb 3.2.7 also can't run with PHP 7.2.27 , same error.

lendy
Registered User
Posts: 4
Joined: Sun Feb 02, 2020 2:29 pm

Re: phpbb 3.3 not run in PHP 7.2.27

Post by lendy »

can't update php 3.2.7 to phpBB 3.3.0
in php 7.2.27

User avatar
Noxwizard
Support Team Leader
Support Team Leader
Posts: 10383
Joined: Mon Jun 27, 2005 8:41 pm
Location: Texas, USA
Name: Patrick Webster
Contact:

Re: phpbb 3.3 not run in PHP 7.2.27

Post by Noxwizard »

As Steve has said, that file does not exist in phpBB 3.2 or 3.3. It exists only in phpBB 3.1.x. If the file is there, that means you have a mix of files from different versions. The instructions for updating can be found here: https://www.phpbb.com/support/docs/en/3 ... upgrade32/
[Support Template] - [Read Before Posting] - [phpBB Knowledge Base]
Do not contact me for private support, please share the question in our forums.

lendy
Registered User
Posts: 4
Joined: Sun Feb 02, 2020 2:29 pm

Re: phpbb 3.3 not run in PHP 7.2.27

Post by lendy »

ok

1.update php to 7.2.x
2.edit config.php
add $acm_type = 'phpbb\\cache\\driver\\file';
if not use null,will error.
3.update to 3.3.0

User avatar
AlexandrBu
Registered User
Posts: 26
Joined: Tue Jan 02, 2018 6:31 am

Re: phpbb 3.3 not run in PHP 7.2.27

Post by AlexandrBu »

for me update worked on

PHP 7.2.22 (cli) (built: Aug 28 2019 08:55:04) ( NTS )
Copyright (c) 1997-2018 The PHP Group
Zend Engine v3.2.0, Copyright (c) 1998-2018 Zend Technologie

some ext does not work

User avatar
stevemaury
Support Team Member
Support Team Member
Posts: 51355
Joined: Thu Nov 02, 2006 12:21 am
Location: The U.P.
Name: Steve
Contact:

Re: phpbb 3.3 not run in PHP 7.2.27

Post by stevemaury »

You do not have to have a working phpBB board of the version you are updating/upgrading from. You replace the files of the old version with those of the new version and update the database.

Therefore, you only need a php version compatible with the new version.
For REALLY good and VERY inexpensive hosting CLICK HERE

I can stop all your spam. I can upgrade or update your Board. PM or email me. (Paid support)

User avatar
HiFiKabin
Community Team Member
Community Team Member
Posts: 4663
Joined: Wed May 14, 2014 9:10 am
Location: Swearing at the PC, UK
Name: James
Contact:

Re: phpbb 3.3 not run in PHP 7.2.27

Post by HiFiKabin »

Off topic posts split off.

Community Team Member

NeedToKnow
Registered User
Posts: 49
Joined: Fri Jul 26, 2019 7:05 am

Re: phpbb 3.3 not run in PHP 7.2.27

Post by NeedToKnow »

In order to upgrade to phpbb 3.3 I will have to update php too. So the question is, if php 7.2 is causing issues should I stick with php 7.1? Or to put it another way, will phpbb require higher than 7.1.3+ at any time in the short to medium term future. Thanks.

User avatar
stevemaury
Support Team Member
Support Team Member
Posts: 51355
Joined: Thu Nov 02, 2006 12:21 am
Location: The U.P.
Name: Steve
Contact:

Re: phpbb 3.3 not run in PHP 7.2.27

Post by stevemaury »

php 7.2 does not cause issues. You should use 7.3 with phpBB 3.3.x if available.
For REALLY good and VERY inexpensive hosting CLICK HERE

I can stop all your spam. I can upgrade or update your Board. PM or email me. (Paid support)

tbehrens
Registered User
Posts: 7
Joined: Tue Jun 19, 2018 1:45 pm

Re: phpbb 3.3 not run in PHP 7.2.27

Post by tbehrens »

Right-on with "replace files and update DB", that seems like the sanest way to go.

Just putting this here for consideration - the phpBB 3.2 EOM and Ubuntu 20.04 LTS release date are within weeks of each other. One could, assuming an Ubuntu phpBB install:

- Wait until at least April 23rd, when Ubuntu 20.04 LTS goes live. More conservative folk will add an extra 2 weeks.
- Put forum into maintenance. It'll be down for a while, possibly hours.
- Snapshot the instance. Just in case things go horribly, terribly wrong and you need to be back to where you were. Also, for "method 2" with minimal downtime.
- Optional method 2: Spin up a new instance from snapshot. Do all upgrade work there. Bring forum back out of maintenance. Profitably, you may want to set DNS TTL to 1 minute, one day before all this maintenance.
- zip or tar forum files; dump the DB into a file.
- Upgrade the base OS and applications. This will break a phpBB 3.2 forum because PHP. Use this as a house cleaning exercise - I at least intend to. PHP to 7.4 or 7.3, depending on which ultimately ships with 20.04 (I assume 7.4); if still on MySQL 5.7, consider MariaDB or PostgreSQL; give apache2 and let's encrypt / acme a good scrubbing.
- If DB software changed, you may need to bring the dump in - check to see the DB works and can be connected to via username/pw used for phpBB
- And upgrade to phpBB 3.3.x with "fresh files / update DB" method. config.php might need a touch depending on how much changed for the DB.
- Come out of forum maintenance, test
- Optional method 2: Forum back into maintenance, one last DB dump, bring that into the new 3.3 instance, upgrade DB again, swing DNS over, power down 3.2 instance. Watch for a day or so, if everything is fine (or good enough), kill 3.2 instance to save hosting $.

Of course it's also possible to stick to 18.04/mySQL 5.7/PHP 7.2. 18.04 will still be supported when 22.04 rolls around. Personally, I like being on the "current" LTS - 2 years between OS upgrades is fine, I don't need it to be 4 years. Your preferences may be quite different.

User avatar
Lumpy Burgertushie
Registered User
Posts: 67760
Joined: Mon May 02, 2005 3:11 am
Contact:

Re: phpbb 3.3 not run in PHP 7.2.27

Post by Lumpy Burgertushie »

whew!!! I am tired out just reading that.

robert
I'm baaaaaccckkkk. still doing work on donation basis. PM your needs.

Premium phpBB 3.3 Styles by PlanetStyles.net

If nobody is in the forest, does a tree really fall?

NeedToKnow
Registered User
Posts: 49
Joined: Fri Jul 26, 2019 7:05 am

Re: phpbb 3.3 not run in PHP 7.2.27

Post by NeedToKnow »

stevemaury & tbehrens. I figure the more fore-thought goes into this, the better the odds coming out. Thanks for taking the time to write all that up.

User avatar
72degrees
Registered User
Posts: 57
Joined: Wed Jan 29, 2020 12:43 pm
Location: UK
Contact:

Re: phpbb 3.3 not run in PHP 7.2.27

Post by 72degrees »

NeedToKnow wrote:
Thu Feb 06, 2020 12:20 am
stevemaury & tbehrens. I figure the more fore-thought goes into this, the better the odds coming out. Thanks for taking the time to write all that up.
Seconded.
'And what is good, Phaedrus, And what is not good—Need we ask anyone to tell us these things?'

Post Reply

Return to “[3.3.x] Support Forum”