Failed upgrading from 3.1.8 to 3.2.4

Get help with installation and running phpBB 3.2.x here. Please do not post bug reports, feature requests, or extension related questions here.
Mech0z
Registered User
Posts: 9
Joined: Sun Apr 10, 2016 4:09 pm

Failed upgrading from 3.1.8 to 3.2.4

Post by Mech0z » Sun Nov 18, 2018 7:35 pm

Support Request Template
What version of phpBB are you using? phpBB 3.2.4
What is your board's URL? http://digterparken-aarhus.dk/forum/
Who do you host your board with? https://www.one.com/
How did you install your board? I had a working version, but used the upgrade kit from 3.1.8 to 3.2.4 as one.com would soon stop supporting old php
What is the most recent action performed on your board? Update from a previous version of phpBB3
Is registration required to reproduce this issue? No
Do you have any MODs installed? No
Do you have any extensions installed? No
What version of phpBB3 did you update from? phpBB 3.1.8
What styles do you currently have installed? None
What language(s) is your board currently using? Maybe danish
Which database type/version are you using? MariaDB
What is your level of experience? C# programmer, no experience with php
What actions did you take (updating your board; installing a MOD, style or extension; etc.) prior to this problem becoming noticeable?
Tried to upgrade as php 5.6 support is ending on one.com and after I did I havent been able to get anything to work, just gets that error message
Last edited by Mech0z on Sun Nov 18, 2018 8:40 pm, edited 1 time in total.

User avatar
warmweer
Registered User
Posts: 1496
Joined: Fri Jul 04, 2003 6:34 am
Location: Van Allen Belt ... well actually Belgium

Re: Failed upgrading from 3.1.8 to 3.2.4

Post by warmweer » Sun Nov 18, 2018 8:07 pm

Mech0z wrote:
Sun Nov 18, 2018 7:35 pm
Support Request Template
...
Tried to upgrade as php 5.6 support is ending on one.com and after I did I havent been able to get anything to work, just gets that error message
If "that error message" refers to Recoverable fatal error: Object of class phpbb\config_php_file could not be converted to string in /customers/e/d/1/digterparken-aarhus.dk/httpd.www/forum/phpbb/di/container_builder.php on line 400 then there is probably something wrong with your config.php.
Also, which method of upgrading did you use? Not auto-update I hope? Did you follow the instructions according to https://www.phpbb.com/support/docs/en/3 ... upgrade31/?
Did you set prosilver as default style, and UK English as default language before upgrading?
A bug is a feature that hasn't made it to the manual (yet)

Mech0z
Registered User
Posts: 9
Joined: Sun Apr 10, 2016 4:09 pm

Re: Failed upgrading from 3.1.8 to 3.2.4

Post by Mech0z » Sun Nov 18, 2018 8:40 pm

warmweer wrote:
Sun Nov 18, 2018 8:07 pm
Mech0z wrote:
Sun Nov 18, 2018 7:35 pm
Support Request Template
...
Tried to upgrade as php 5.6 support is ending on one.com and after I did I havent been able to get anything to work, just gets that error message
If "that error message" refers to Recoverable fatal error: Object of class phpbb\config_php_file could not be converted to string in /customers/e/d/1/digterparken-aarhus.dk/httpd.www/forum/phpbb/di/container_builder.php on line 400 then there is probably something wrong with your config.php.
Also, which method of upgrading did you use? Not auto-update I hope? Did you follow the instructions according to https://www.phpbb.com/support/docs/en/3 ... upgrade31/?
Did you set prosilver as default style, and UK English as default language before upgrading?
I used https://www.phpbb.com/downloads/ and went to automatic update, but I missed the "please see our guide" part /doh is there a way to set those 2 things (Language and style if I changed it, I dont know tbh) directly in the database?

This is a screenshot of my config https://i.postimg.cc/Wzm3L2jG/config.png

User avatar
warmweer
Registered User
Posts: 1496
Joined: Fri Jul 04, 2003 6:34 am
Location: Van Allen Belt ... well actually Belgium

Re: Failed upgrading from 3.1.8 to 3.2.4

Post by warmweer » Sun Nov 18, 2018 9:07 pm

Mech0z wrote:
Sun Nov 18, 2018 8:40 pm

I used https://www.phpbb.com/downloads/ and went to automatic update, but I missed the "please see our guide" part /doh is there a way to set those 2 things (Language and style if I changed it, I dont know tbh) directly in the database?

This is a screenshot of my config https://i.postimg.cc/Wzm3L2jG/config.png
autoupdate should not be used if you have no file modifications, use the full package
dbms should be mysqli instead of mysql
dbhost should not have the .mysql (check with your host - it should be someting like mysql.digterparken-aarhus.dk, check your previous config.php)
With the autoupdate where you basically have no idea where things went wrong, I would restore the backup of the database and the 3.1.8 files and restart.
BTW if you do have extensions (I know you wrote NO in the SRT) , but just in case, disable them and look for updates if necessary after succesfully upgrading your board.
A bug is a feature that hasn't made it to the manual (yet)

User avatar
warmweer
Registered User
Posts: 1496
Joined: Fri Jul 04, 2003 6:34 am
Location: Van Allen Belt ... well actually Belgium

Re: Failed upgrading from 3.1.8 to 3.2.4

Post by warmweer » Mon Nov 19, 2018 8:35 am

warmweer wrote:
Sun Nov 18, 2018 9:07 pm
...
dbhost should not have the .mysql (check with your host - it should be someting like mysql.digterparken-aarhus.dk, check your previous config.php)
...
I'm taking back the statement that dbhost should not have the .mysql. One.com isn't all that transparent (to me) and I can't find any info on their dbms.
Your config.php for 3.1.8 should have the correct name.
A bug is a feature that hasn't made it to the manual (yet)

Mech0z
Registered User
Posts: 9
Joined: Sun Apr 10, 2016 4:09 pm

Re: Failed upgrading from 3.1.8 to 3.2.4

Post by Mech0z » Mon Nov 19, 2018 8:30 pm

warmweer wrote:
Mon Nov 19, 2018 8:35 am
warmweer wrote:
Sun Nov 18, 2018 9:07 pm
...
dbhost should not have the .mysql (check with your host - it should be someting like mysql.digterparken-aarhus.dk, check your previous config.php)
...
I'm taking back the statement that dbhost should not have the .mysql. One.com isn't all that transparent (to me) and I can't find any info on their dbms.
Your config.php for 3.1.8 should have the correct name.
I think I have messed up my backup when trying to figure out how to get it to work, but are you saying my config.php is in a wrong format?

janus_zonstraal
Registered User
Posts: 2784
Joined: Sat Aug 30, 2014 1:30 pm

Re: Failed upgrading from 3.1.8 to 3.2.4

Post by janus_zonstraal » Mon Nov 19, 2018 10:07 pm

I think I have messed up my backup when trying to figure out how to get it to work, but are you saying my config.php is in a wrong format?
Can you have a look in the admin page of your host (cPanel? ) what the database server is.
Sorry! My English is bat ;) !!!

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

Re: Failed upgrading from 3.1.8 to 3.2.4

Post by Lumpy Burgertushie » Tue Nov 20, 2018 12:23 am

no, he is saying that you need to edit the config.php file to make sure that it says mysqli and not mysql on that one line.


robert
I am available for custom work on a donation basis. Please send me a PM with your needs.

Premium phpBB 3.2 Styles by PlanetStyles.net

OK, so what's the speed of dark?

Mech0z
Registered User
Posts: 9
Joined: Sun Apr 10, 2016 4:09 pm

Re: Failed upgrading from 3.1.8 to 3.2.4

Post by Mech0z » Tue Nov 20, 2018 6:01 am

janus_zonstraal wrote:
Mon Nov 19, 2018 10:07 pm
I think I have messed up my backup when trying to figure out how to get it to work, but are you saying my config.php is in a wrong format?
Can you have a look in the admin page of your host (cPanel? ) what the database server is.
Database server

Server: digterparken-aarhus.dk.mysql via TCP/IP
Software: MariaDB
Software version: 10.1.30-MariaDB-1~xenial - mariadb.org binary distribution
Protocol version: 10
User: digterparken_aa@10.27.12.48
Server charset: UTF-8 Unicode (utf8)

Web server

nginx/1.10.3
Database client version: libmysql - mysqlnd 5.0.10 - 20111026 - $Id: c85105d7c6f7d70d609bb4c000257868a40840ab $
PHP extension: mysqli Documentation
Lumpy Burgertushie wrote:
Tue Nov 20, 2018 12:23 am
no, he is saying that you need to edit the config.php file to make sure that it says mysqli and not mysql on that one line.


robert
Changed it to
$dbms = 'phpbb\\db\\driver\\mysqli';

Mech0z
Registered User
Posts: 9
Joined: Sun Apr 10, 2016 4:09 pm

Re: Failed upgrading from 3.1.8 to 3.2.4

Post by Mech0z » Thu Nov 22, 2018 2:56 pm

Should I just presume the forum is not possible to revive when I dont have a backup?

User avatar
Mick
Support Team Member
Support Team Member
Posts: 20383
Joined: Fri Aug 29, 2008 9:49 am
Location: Cardiff

Re: Failed upgrading from 3.1.8 to 3.2.4

Post by Mick » Thu Nov 22, 2018 3:05 pm

What makes you think the db is broken?
Mech0z wrote:
Thu Nov 22, 2018 2:56 pm
Should I just presume the forum is not possible to revive when I dont have a backup?
If the database is borked well, yes, the database IS your board but ask one.com to restore your previous install, I know they make back up's, if you don't have one of your own. Once they've done that make a backup of the db yourself using phpMyAdmin before you do anything else. See the relevant section (backup) of Knowledge Base - Transferring Your Board to a New Host or Domain for help with that.
"The more connected we get the more alone we become" - Kyle Broflovski

There are no ‘threads’ in phpBB, they are topics.

User avatar
warmweer
Registered User
Posts: 1496
Joined: Fri Jul 04, 2003 6:34 am
Location: Van Allen Belt ... well actually Belgium

Re: Failed upgrading from 3.1.8 to 3.2.4

Post by warmweer » Thu Nov 22, 2018 8:51 pm

Mech0z wrote:
Thu Nov 22, 2018 2:56 pm
Should I just presume the forum is not possible to revive when I dont have a backup?
No, if you have access to the database then it can probably be made to function properly again, but that can be very difficult and sometimes not worth the effort. If your host as a relatively recent backup, then I would accept the loss of a few posts and go with the backup.
A bug is a feature that hasn't made it to the manual (yet)

Mech0z
Registered User
Posts: 9
Joined: Sun Apr 10, 2016 4:09 pm

Re: Failed upgrading from 3.1.8 to 3.2.4

Post by Mech0z » Sat Nov 24, 2018 3:11 pm

warmweer wrote:
Thu Nov 22, 2018 8:51 pm
Mech0z wrote:
Thu Nov 22, 2018 2:56 pm
Should I just presume the forum is not possible to revive when I dont have a backup?
No, if you have access to the database then it can probably be made to function properly again, but that can be very difficult and sometimes not worth the effort. If your host as a relatively recent backup, then I would accept the loss of a few posts and go with the backup.
Dont think there is any backup, I dont use the forum, I just set it up for someone else years ago. But guess its dead then, I dont have the php or mysql skills to migrate it to a new forum unless there are help tools

Is there some simple SQL to get all the post texts posted out?

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

Re: Failed upgrading from 3.1.8 to 3.2.4

Post by Lumpy Burgertushie » Sat Nov 24, 2018 4:59 pm

you have to have access to the database to do that. therefore, you can make a database backup. therefore you can do a simple upgrade and be done with it.

1. make sure that line in your config.php file says mysqli instead of mysql

2. backup all the files

3. make a backup of the database just in case.

4. download the full package of phpbb NOT the autoupdate package or the changed files package.

this: https://www.phpbb.com/files/release/phpBB-3.2.4.zip

5. follow this: https://www.phpbb.com/support/docs/en/3 ... upgrade31/
exactly and in order.

6. done, do the happy dance.


robert
I am available for custom work on a donation basis. Please send me a PM with your needs.

Premium phpBB 3.2 Styles by PlanetStyles.net

OK, so what's the speed of dark?

Mech0z
Registered User
Posts: 9
Joined: Sun Apr 10, 2016 4:09 pm

Re: Failed upgrading from 3.1.8 to 3.2.4

Post by Mech0z » Sun Nov 25, 2018 8:29 pm

Lumpy Burgertushie wrote:
Sat Nov 24, 2018 4:59 pm
you have to have access to the database to do that. therefore, you can make a database backup. therefore you can do a simple upgrade and be done with it.

1. make sure that line in your config.php file says mysqli instead of mysql

2. backup all the files

3. make a backup of the database just in case.

4. download the full package of phpbb NOT the autoupdate package or the changed files package.

this: https://www.phpbb.com/files/release/phpBB-3.2.4.zip

5. follow this: https://www.phpbb.com/support/docs/en/3 ... upgrade31/
exactly and in order.

6. done, do the happy dance.


robert
I have made backup of db and ftp now, but how would you do this step: "Set British English as the only language pack" I suppose its a db setting

Post Reply

Return to “[3.2.x] Support Forum”

Who is online

Users browsing this forum: bonelifer, david63, exxos, Game358, Ghostwolf308, KevC, Mick, mrcrab, ouiouiphoto, rudswa, wojtek64 and 35 guests