Major Problem with Upgrade

Get help with installation and running phpBB 3.3.x here. Please do not post bug reports, feature requests, or extension related questions here.
cassie1275
Registered User
Posts: 35
Joined: Tue Jul 16, 2019 7:25 pm

Major Problem with Upgrade

Post by cassie1275 »

my forum has been saying i have to upgrade for awhile so today i bit the bullet.

I did everything it said but it is trying to do a new install and not number "2 Select "Update database only" and click Submit" from https://www.phpbb.com/support/docs/en/3 ... date_full/

Now i have no forum and am stuck on what to do. I did a backup but am unsure on how to get the forum back again.

Wish i had never started - it was only going from 3.3.11 to 3.3.13

Any help would be apreciated.

The forum should be at https://www.caroles-crafts.co.uk/forum33/index.php

I have another larger one to do so i will hold off on that until i work out what i did wrong :-(
User avatar
Madalin10
Registered User
Posts: 101
Joined: Wed Jun 18, 2014 2:42 pm
Name: Madalin C.

Re: Major Problem with Upgrade

Post by Madalin10 »

cassie1275 wrote: Thu Sep 19, 2024 5:04 pm I did everything it said but it is trying to do a new install and not number "2 Select "Update database only" and click Submit" from https://www.phpbb.com/support/docs/en/3 ... date_full/
Have you by any chance deleted the original config.php that you were using before the phpbb update? That's why it says install and not update. You should not delete the "old" config.php that you were using all of this time I meant.

-> https://www.phpbb.com/support/docs/en/3 ... gphp-file/

Later edit: You can check inside the FTP, see if your config.php is empty. If it's empty you should re-build it to use your actual database.
https://awesome-web.design - I offer phpBB & web design services at fair prices.
cassie1275
Registered User
Posts: 35
Joined: Tue Jul 16, 2019 7:25 pm

Re: Major Problem with Upgrade

Post by cassie1275 »

It is empty but i had deleted that out the downloaded package so that would not have been overwritten when i uploaded.

i need to see if it is in any of the backups i did, for some reasons i am struggling to find the backups. if i can't find them how do i re-build it please?

Sorry just realised the link takes me there. i have to go to the office so i will have to do it later - more midnight working :-(
User avatar
Madalin10
Registered User
Posts: 101
Joined: Wed Jun 18, 2014 2:42 pm
Name: Madalin C.

Re: Major Problem with Upgrade

Post by Madalin10 »

cassie1275 wrote: Thu Sep 19, 2024 5:17 pm It is empty but i had deleted that out the downloaded package so that would not have been overwritten when i uploaded.

i need to see if it is in any of the backups i did, for some reasons i am struggling to find the backups. if i can't find them how do i re-build it please?

Sorry just realised the link takes me there. i have to go to the office so i will have to do it later - more midnight working :-(
From the link that I've posted above, you have the tutorial there and a sample of the config.php file. You should see inside your cpanel/phpmyadmin which database were you using. What you need is: the database name, database username and the password for the db user.
https://awesome-web.design - I offer phpBB & web design services at fair prices.
User avatar
thecoalman
Community Team Member
Community Team Member
Posts: 6285
Joined: Wed Dec 22, 2004 3:52 am
Location: Pennsylvania, U.S.A.

Re: Major Problem with Upgrade

Post by thecoalman »

Fill in dbname, dbuser and dbpassword

Save as config.php and upload.

Code: Select all

<?php
// phpBB 3.3.x auto-generated configuration file
// Do not change anything in this file!
$dbms = 'phpbb\\db\\driver\\mysqli';
$dbhost = '';
$dbport = '';
$dbname = '';
$dbuser = '';
$dbpasswd = '';
$table_prefix = 'phpbb_';
$phpbb_adm_relative_path = 'adm/';
$acm_type = 'phpbb\\cache\\driver\\file';

@define('PHPBB_INSTALLED', true);
@define('PHPBB_ENVIRONMENT', 'production');
// @define('DEBUG_CONTAINER', true);
“Results! Why, man, I have gotten a lot of results! I have found several thousand things that won’t work.”

Attributed - Thomas Edison
cassie1275
Registered User
Posts: 35
Joined: Tue Jul 16, 2019 7:25 pm

Re: Major Problem with Upgrade

Post by cassie1275 »

I found an almost copy on a virtual sticky note i must have copied when i did the forum inicially. I will compare it to the one you have put and hopefully that should work.
I think i worked out what i did wrong. I did everything right and deleted the config file etc from the downloaded package. Then added them into my local copy and uploaded, forgetting that some files are changed online and i had not downloaded them. A mistake i have not done for my bigger forum. I did a full copy in the hosting online and downloaded that back to local and will make all the other changes on that proper version of that fourm before uploading - keeping the copy on the hosting until i know it has worked :-)
User avatar
thecoalman
Community Team Member
Community Team Member
Posts: 6285
Joined: Wed Dec 22, 2004 3:52 am
Location: Pennsylvania, U.S.A.

Re: Major Problem with Upgrade

Post by thecoalman »

cassie1275 wrote: Fri Sep 20, 2024 8:18 am I will compare it to the one you have put and hopefully that should work.
It can be different if you installed with older version, that is current version.
“Results! Why, man, I have gotten a lot of results! I have found several thousand things that won’t work.”

Attributed - Thomas Edison
cassie1275
Registered User
Posts: 35
Joined: Tue Jul 16, 2019 7:25 pm

Re: Major Problem with Upgrade

Post by cassie1275 »

IT WORKED !!

Sorry for shouting, just so over the moon.

Thank you to everyone that replied and especially thecoalman.

I know what NOT to do on my bigger forum now :-)
User avatar
invenio
Registered User
Posts: 397
Joined: Wed Dec 09, 2015 1:45 pm
Location: New Hampshire, USA

Re: Major Problem with Upgrade

Post by invenio »

Congrats.

Make sure you make a good backup of the next forum you upgrade: https://www.phpbb.com/support/docs/en/3 ... tructions/

Return to “[3.3.x] Support Forum”