Upgrading from PHP 7.4 to 8.3

Get help with installation and running phpBB 3.3.x here. Please do not post bug reports, feature requests, or extension related questions here.
buksida
Registered User
Posts: 338
Joined: Thu Feb 04, 2010 9:11 am

Upgrading from PHP 7.4 to 8.3

Post by buksida »

We've just upgraded our forum to the latest version 3.3.11 from version 3.2.1 and all is working fine.

The hosting company has also upgraded our server OS and installed PHP 8.3 for us.

However, the board is currently running on PHP 7.4. When I try and switch it to version 8.0 or above I get a 500 server error.

Any ideas what I need to do to get the board running on the latest PHP version, or at least version 8.0?

Thx.
User avatar
SpIdErPiGgY
Registered User
Posts: 243
Joined: Sun May 02, 2021 2:11 pm
Location: Erpe-Mere, Aalst, BE
Name: Andy Dm

Re: Upgrading from PHP 7.4 to 8.3

Post by SpIdErPiGgY »

Look at the server error logs.
Also see that all extentions are up-to-date.
phpBB NL Extension translations, also on request.
--> Click Here: Myarea51secrets.com <--
User avatar
ssl
Registered User
Posts: 1869
Joined: Sat Feb 08, 2020 2:15 pm
Location: Le Lude, Pays de la Loire - France
Name: Fred Rimbert

Re: Upgrading from PHP 7.4 to 8.3

Post by ssl »

Very often in this PHP version upgrade configuration, error 500 comes from an outdated extension.
Sorry for my English ... I do my best!

phpBB: 3.3.12 | PHP: 8.3.7
[Kill spam on phpBB] - [Some French translation of extensions]
"Mistress, Mistress someone is bothering me in pm"
buksida
Registered User
Posts: 338
Joined: Thu Feb 04, 2010 9:11 am

Re: Upgrading from PHP 7.4 to 8.3

Post by buksida »

Ok, thanks, the phpBB error log in the ACP shows nothing recent.

The server error log in cPanel shows this which means very little to me ...

Code: Select all

[Sun Dec 17 18:21:00.209520 2023] [access_compat:error] [pid 964209:tid 23293671208704] [client 220.243.191.67:0] AH01797: client denied by server configuration: /home/forum/public_html/403.shtml
[Sun Dec 17 18:21:00.209362 2023] [access_compat:error] [pid 964209:tid 23293671208704] [client 220.243.191.67:0] AH01797: client denied by server configuration: /home/forum/public_html/download/file.php
buksida
Registered User
Posts: 338
Joined: Thu Feb 04, 2010 9:11 am

Re: Upgrading from PHP 7.4 to 8.3

Post by buksida »

I checked all extensions, one was not up to date and had no recent updates so disabled it and tried again - same problem, 500 server error. All other extensions are their latest versions.
User avatar
janus_zonstraal
Registered User
Posts: 6488
Joined: Sat Aug 30, 2014 1:30 pm

Re: Upgrading from PHP 7.4 to 8.3

Post by janus_zonstraal »

Try to disable all the extensions and test again.
Sorry! My English is bat ;) !!!
buksida
Registered User
Posts: 338
Joined: Thu Feb 04, 2010 9:11 am

Re: Upgrading from PHP 7.4 to 8.3

Post by buksida »

Ok, did that, eliminated them all but one called 'Recent Topics' which displays the latest active topics above the main forums.

Its really handy and don't think we can do without it so will have to remain on PHP 7.4 until we can find an alternative (unless you guys know of one).

Thanks again, good to know the root cause of it.
User avatar
janus_zonstraal
Registered User
Posts: 6488
Joined: Sat Aug 30, 2014 1:30 pm

Re: Upgrading from PHP 7.4 to 8.3

Post by janus_zonstraal »

Sorry! My English is bat ;) !!!
buksida
Registered User
Posts: 338
Joined: Thu Feb 04, 2010 9:11 am

Re: Upgrading from PHP 7.4 to 8.3

Post by buksida »

Struggling a bit with this.

I've tried to upgrade the recent topics extension but am getting nowhere.

I've disabled the old one, deleted the folder, uploaded the new one, but in the ACP extension list it still shows the old one. Cleared the cache and it makes no difference, all it shows is version 2.2.13 which isnt compatible with PHP 8. Switching PHP still crashes the site, even with the new files uploaded.

Any ideas?
User avatar
Mick
Support Team Member
Support Team Member
Posts: 26708
Joined: Fri Aug 29, 2008 9:49 am

Re: Upgrading from PHP 7.4 to 8.3

Post by Mick »

Did you delete the data after you disabled the extension? To receive extension support please visit our Extensions Database and post in the specific extension's designated support area. The link to the support area for each released extension is also available in the first post of each released extension listed in the [3.3.x] Extension Database Releases forum. For extensions still in development (not recommended for a live board) support is in that extension's topic in the Extensions in Development forum.
  • "The more connected we get the more alone we become" - Kyle Broflovski©
  • "The good news is hell is just the product of a morbid human imagination.
    The bad news is, whatever humans can imagine, they can usually create.
    " - Harmony Cobel©
🇬🇧
User avatar
warmweer
Jr. Extension Validator
Posts: 11472
Joined: Fri Jul 04, 2003 6:34 am
Location: Van Allen Bel ... gium

Re: Upgrading from PHP 7.4 to 8.3

Post by warmweer »

Also note:
Release highlights:3.3.11

Notable Improvements: Improved support for PHP 8.2: PHPBB3-17097 PHPBB3-17142
I wouldn't switch to PHP 8.3 as yet
Spelling is freeware, which means you can use it for free.
On the other hand, it is not open source, which means you cannot change it or publish it in a modified form.


Time flies like an arrow, but fruit flies like a banana.
User avatar
thecoalman
Community Team Member
Community Team Member
Posts: 6027
Joined: Wed Dec 22, 2004 3:52 am
Location: Pennsylvania, U.S.A.

Re: Upgrading from PHP 7.4 to 8.3

Post by thecoalman »

As far as the original error goes try deleting the .htaccess file in the files directory. Upload the one from the download package.

If you are still in the same boat download the current .htaccess file in the main directory as backup and delete it from the server. Upload the one from the download package.
“Results! Why, man, I have gotten a lot of results! I have found several thousand things that won’t work.”

Attributed - Thomas Edison
plassmdn
Registered User
Posts: 1
Joined: Wed Dec 20, 2023 2:58 pm

Re: Upgrading from PHP 7.4 to 8.3

Post by plassmdn »

Have you tried checking for php.ini depreciated settings that have been removed by 8.x?

I ran into a 500 error when upgrading from 7.4.33 to 8.3.0 and I had one setting, "track_errors" set to "On".

Try removing the setting or set it to "Off" and it might start to work for you.

It was removed in 8.0
https://www.php.net/manual/en/errorfunc ... ration.php

If that doesn't work, try temporarily disabling all PHP.ini settings and see if the 500 error goes away and track down the rogue setting from there.

Hope that helps!
User avatar
robboZ
Registered User
Posts: 27
Joined: Fri May 07, 2010 7:53 am

Re: Upgrading from PHP 7.4 to 8.3

Post by robboZ »

Just for the record.
My installation of phpBB (now 3.3.11) runs rock solid on php 8.2 since 7.2023.
Now, just out of curiosity, I bumped php version to 8.3 and everything seems to work quite stable.
And I use 'Recent Topics' extension (v 2.2.15), so this should not be a problem.
User avatar
ssl
Registered User
Posts: 1869
Joined: Sat Feb 08, 2020 2:15 pm
Location: Le Lude, Pays de la Loire - France
Name: Fred Rimbert

Re: Upgrading from PHP 7.4 to 8.3

Post by ssl »

The only problem encountered when testing phpBB 3.3.11 and PHP 8.3.3 is a blank page when trying to modify the user account settings in the UCP

Then not all extensions support version 8 of PHP
Sorry for my English ... I do my best!

phpBB: 3.3.12 | PHP: 8.3.7
[Kill spam on phpBB] - [Some French translation of extensions]
"Mistress, Mistress someone is bothering me in pm"

Return to “[3.3.x] Support Forum”