Upgrade problems 3.0 -> 3.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.
desau_13
Registered User
Posts: 4
Joined: Fri Jul 05, 2024 3:48 pm

Upgrade problems 3.0 -> 3.3

Post by desau_13 »

Hi everyone,

Rebuilding a server from CentOS 7 to Rocky Linux. This took PHP 5.4 to PHP 8.0, so I'm taking the opportunity to upgrade PHP to latest 3.3 release.

I've followed the upgrade instructions for 3.0 to 3.3, put the files in place, ran the CLI upgrader to upgrade the database. Other than complaining about the avatar type column being an integer (and the installer trying to put a string into it) - everything else went fine. For the user and group tables, I just manually changed the column types to VARCHAR(255), based on what I see as the current schema.

After the upgrade, and removing the install folder, I'm getting a ton of PHP errors when I load PHPBB, and "This board has no forums.".

Here are the PHP errors I'm seeing:

Code: Select all

[phpBB Debug] PHP Warning: in file [ROOT]/phpbb/session.php on line 646: Trying to access array offset on value of type bool
[phpBB Debug] PHP Warning: in file [ROOT]/phpbb/session.php on line 648: Trying to access array offset on value of type bool
[phpBB Debug] PHP Warning: in file [ROOT]/phpbb/session.php on line 656: Undefined array key "user_id"
[phpBB Debug] PHP Warning: in file [ROOT]/phpbb/session.php on line 1337: Undefined array key "user_type"
[phpBB Debug] PHP Warning: in file [ROOT]/phpbb/session.php on line 665: Undefined array key "user_type"
[phpBB Debug] PHP Warning: in file [ROOT]/phpbb/auth/auth.php on line 65: Undefined array key "user_permissions"
[phpBB Debug] PHP Warning: in file [ROOT]/phpbb/auth/auth.php on line 424: Undefined array key "user_type"
[phpBB Debug] PHP Warning: in file [ROOT]/phpbb/user.php on line 129: Undefined array key "user_lang"
[phpBB Debug] PHP Warning: in file [ROOT]/phpbb/user.php on line 130: Undefined array key "user_dateformat"
[phpBB Debug] PHP Warning: in file [ROOT]/phpbb/user.php on line 131: Undefined array key "user_timezone"
[phpBB Debug] PHP Warning: in file [ROOT]/phpbb/user.php on line 663: Undefined array key "user_timezone"
[phpBB Debug] PHP Warning: in file [ROOT]/phpbb/user.php on line 427: Undefined array key "user_allow_viewonline"
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 3884: Undefined array key "user_new_privmsg"
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 3962: Undefined array key "user_type"
[phpBB Debug] PHP Warning: in file [ROOT]/phpbb/notification/method/board.php on line 147: Undefined array key "user_type"
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 3707: Undefined array key "avatar"
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 3708: Undefined array key "avatar_width"
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 3709: Undefined array key "avatar_height"
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 3714: Undefined array key "avatar_type"
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 4014: Undefined array key "username"
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 4014: Undefined array key "user_colour"
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 4015: Undefined array key "username"
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 4015: Undefined array key "user_colour"
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 4023: Undefined array key "user_new_privmsg"
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 4024: Undefined array key "user_unread_privmsg"
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 4025: Undefined array key "user_new"
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 4048: Undefined array key "username"
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 4048: Undefined array key "user_colour"
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 4062: Undefined array key "user_perm_from"
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 4072: Undefined array key "username"
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 4175: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3060)
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 4175: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3060)
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 4175: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3060)
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 4175: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3060)
Anything obvious I'm missing?
User avatar
thecoalman
Community Team Member
Community Team Member
Posts: 6028
Joined: Wed Dec 22, 2004 3:52 am
Location: Pennsylvania, U.S.A.

Re: Upgrade problems 3.0 -> 3.3

Post by thecoalman »

Did you use these directions? The STK can fix many DB issues.

https://www.phpbb.com/support/docs/en/3 ... /upgrade3/

Upgrade to 3.0.14 before using it. Older versions of phpBB can be found here:
https://download.phpbb.com/pub/release/

You can use older version of XAMPP locally which will have php 5.4.x for operations on phpBB 3.0.X

https://sourceforge.net/projects/xampp/files/
“Results! Why, man, I have gotten a lot of results! I have found several thousand things that won’t work.”

Attributed - Thomas Edison
desau_13
Registered User
Posts: 4
Joined: Fri Jul 05, 2024 3:48 pm

Re: Upgrade problems 3.0 -> 3.3

Post by desau_13 »

yes - those were the instructions I followed - however I tried upgrading from 3.0.10. I can try to go to 3.0.14 first, then to 3.3.

Yeah - I'll need something like XAMPP to do the 3.0 migration .. will figure it out. Thanks!
User avatar
janus_zonstraal
Registered User
Posts: 6493
Joined: Sat Aug 30, 2014 1:30 pm

Re: Upgrade problems 3.0 -> 3.3

Post by janus_zonstraal »

I always go to 3.1.0 first and than to 3.3.x
Sorry! My English is bat ;) !!!
desau_13
Registered User
Posts: 4
Joined: Fri Jul 05, 2024 3:48 pm

Re: Upgrade problems 3.0 -> 3.3

Post by desau_13 »

OK - trying that instead. I've been successful in going from 3.0.10 to 3.1.0, so far everything seems to be working fine with 3.1.0

I'm about to start 3.1.0 -> 3.3, following the official 3.1.0 to 3.3.0 upgrade instructions. HOWEVER - as I understand, 3.3 requires PHP 7.2 or greater, and 3.1 is currently running on PHP 5.4.

At what point do I need to upgrade PHP? I assume before visiting the /install URL (or running the phpbbcli.php script)??

Thanks!
desau_13
Registered User
Posts: 4
Joined: Fri Jul 05, 2024 3:48 pm

Re: Upgrade problems 3.0 -> 3.3

Post by desau_13 »

Ah! Answering my own questions:

Visiting /install yields:
"You are running an unsupported PHP version (5.4.16). Please upgrade to PHP 7.2.0 or higher before trying to install or update to phpBB 3.3"

So -- will do that now! :)

Return to “[3.3.x] Support Forum”