Upgrading from 3.1.3 to 3.2.2

Get help with installation and running phpBB 3.1.x here. Please do not post bug reports, feature requests, or extension related questions here.
Anti-Spam Guide
Forum rules
READ: phpBB.com Board-Wide Rules and Regulations

NOTE: phpBB 3.1.x is at its End of Life stage and support will NOT be provided after July 1st, 2018.
sopas
Registered User
Posts: 247
Joined: Mon Feb 09, 2004 3:46 am

Upgrading from 3.1.3 to 3.2.2

Post by sopas » Wed May 30, 2018 12:08 pm

Just a quick question.

When upgrading from 3.1.3 to 3.2.2, and since I don't have many MODs installed on my forum, would it be OK to do the following:

- Download the 3.2.2 full package and then upload ALL files to my server except the config.php, the /images and /files folders.

- Then, go to: mysite.com/forumfolder/install/database_update.php

Let that run and then delete the install folder.

I did this when I upgraded from 3.0.12 to 3.1.3 and it was fine. Would that be OK this time too?

I only have a couple of MODs (basically file edits), so it won't be a problem for me to manually edit them again when the upgrade is finished.

Thanks in advance

User avatar
KevC
Support Team Member
Support Team Member
Posts: 68148
Joined: Fri Jun 04, 2004 10:44 am
Location: Oxford, UK
Contact:

Re: Upgrading from 3.1.3 to 3.2.2

Post by KevC » Wed May 30, 2018 12:13 pm

The database_update.php part doesn't exit any more.
Just follow this


Notes:
  • Your server must be running at least PHP 5.4.7 or higher.
  • phpBB 3.2 is not completely backwards compatible with 3.1 and custom edits may no longer work. The easiest upgrade method is to remove all existing files prior to upgrading and re-applying custom changes after verifying their correctness.

    To upgrade, perform the following steps:
  1. Make a back-up of the original files and database
  2. Deactivate all styles except for prosilver
  3. Deactivate any extensions which are not compatible with phpBB 3.2. Check with the extension author to find out if an extension is compatible or not.
  4. Ensure that the activated spambot countermeasure is one of the standard phpBB plugins (Simple image, GD image, GD 3D image, Q&A, reCaptacha).
  5. Set British English as the only language pack and delete all other language pack directories from your server
  6. Delete all of your phpBB 3.1.x files EXCEPT for the following:
    • The config.php file
    • The /ext/ directory
    • The /images/ directory
    • The /files/ directory
    • The /store/ directory
  7. Upload the contents of the phpBB3 directory from the uncompressed 3.2.x Full Package (EXCEPT for config.php) into your forum's directory (Note: you don't want to overwrite your original config.php file)
  8. Browse to www.example.com/install/
  9. Click the Update tab
  10. Click the Update button
  11. Select "Update database only" and click Submit
  12. Wait for the progress bar to reach 100% and for a message indicating that the update has completed
  13. Delete or rename the /install/ directory
-:|:- Support Request Template -:|:-
Image
Cheap UK Hosting
"In the land of the blind the little green bloke with no pupils is king - init!"

sopas
Registered User
Posts: 247
Joined: Mon Feb 09, 2004 3:46 am

Re: Upgrading from 3.1.3 to 3.2.2

Post by sopas » Wed May 30, 2018 12:26 pm

Thank you very much for you fast reply.
I have a problem though: when trying to do a back up of the original files, I go to "maintenance" but the page won't load, I get a" http 500 internal error". In fact there are many features/pages on my ACP that won't work/load anymore. That's is why I wanted to upgrade to 3.2.2, BUT I don't seem to be able to access the "back up" option anymore.

User avatar
KevC
Support Team Member
Support Team Member
Posts: 68148
Joined: Fri Jun 04, 2004 10:44 am
Location: Oxford, UK
Contact:

Re: Upgrading from 3.1.3 to 3.2.2

Post by KevC » Wed May 30, 2018 12:43 pm

You can back up through your hosts. See the section in here...

Transferring Your Board to a New Host or Domain
-:|:- Support Request Template -:|:-
Image
Cheap UK Hosting
"In the land of the blind the little green bloke with no pupils is king - init!"

sopas
Registered User
Posts: 247
Joined: Mon Feb 09, 2004 3:46 am

Re: Upgrading from 3.1.3 to 3.2.2

Post by sopas » Wed May 30, 2018 1:17 pm

Thank you.
On point 7, when you said:
KevC wrote:
Wed May 30, 2018 12:13 pm
[*]Upload the contents of the phpBB3 directory from the uncompressed 3.2.x Full Package (EXCEPT for config.php) into your forum's directory (Note: you don't want to overwrite your original config.php file)
For sure you also meant that I don't want to overwrite the following directories (and not only the config.php file), right?

◾The /ext/ directory
◾The /images/ directory
◾The /files/ directory
◾The /store/ directory

If I do, I would lose all the information from my old forum.
Last edited by sopas on Wed May 30, 2018 1:18 pm, edited 1 time in total.

User avatar
KevC
Support Team Member
Support Team Member
Posts: 68148
Joined: Fri Jun 04, 2004 10:44 am
Location: Oxford, UK
Contact:

Re: Upgrading from 3.1.3 to 3.2.2

Post by KevC » Wed May 30, 2018 1:21 pm

If you have a good FTP application it will only append those folders rather than overwriting them completely. For safety you can leave them out.
-:|:- Support Request Template -:|:-
Image
Cheap UK Hosting
"In the land of the blind the little green bloke with no pupils is king - init!"

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

Re: Upgrading from 3.1.3 to 3.2.2

Post by Lumpy Burgertushie » Wed May 30, 2018 3:02 pm

just to be clear. the only time an upload will overwrite something is if it has the exact same file name.
for instance, the images folder; the only thing uploading a new images folder will overwrite is the index.htm and spacer.gif files that are in the old folder because those are the only two files in the new folder that have the same filename as the ones in the old folder.

it only overwrites files, and then only files with the exact same filename, never folders etc.


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?

sopas
Registered User
Posts: 247
Joined: Mon Feb 09, 2004 3:46 am

Re: Upgrading from 3.1.3 to 3.2.2

Post by sopas » Wed May 30, 2018 7:32 pm

OK, I have a problem,
I followed all the instructions, and then I went to the install folder, clicked the Update tab, and I got a message that the cache folder did not have the correct permissions. So, I changed them to 777, and went again to the install folder and clicked the updated tab for the second time. Now I got this message:
"No valid directory was found, please make sure you uploaded the relevant files"

Tried for a third time and and this time it allowed me to "Update database only", so I clicked Submit. After waiting for a few minutes while the database was updating at 88%, I suddenly got the following message:

"The installer detected a timeout
The installer has detected a timeout, you may try to refresh the page, which may lead to data corruption. We suggest that you either increase your timeout settings or try to use the CLI."

What should I do now?
Last edited by sopas on Wed May 30, 2018 7:51 pm, edited 2 times in total.

sopas
Registered User
Posts: 247
Joined: Mon Feb 09, 2004 3:46 am

Re: Upgrading from 3.1.3 to 3.2.2

Post by sopas » Wed May 30, 2018 7:40 pm

Should I try the "Update database only" again and click on Submit??

sopas
Registered User
Posts: 247
Joined: Mon Feb 09, 2004 3:46 am

Re: Upgrading from 3.1.3 to 3.2.2

Post by sopas » Wed May 30, 2018 7:45 pm

OK, I tried again the "Update database only" and clicked on Submit, and I got the following message:

"The installer detected a timeout
The installer has detected a timeout, you may try to refresh the page, which may lead to data corruption. We suggest that you either increase your timeout settings or try to use the CLI."

Code: Select all

Installing Data: \phpbb\db\migration\data\v32x\fix_user_styles.

User avatar
KevC
Support Team Member
Support Team Member
Posts: 68148
Joined: Fri Jun 04, 2004 10:44 am
Location: Oxford, UK
Contact:

Re: Upgrading from 3.1.3 to 3.2.2

Post by KevC » Wed May 30, 2018 7:48 pm

This comes up a lot.

Post up the contents of your config.php file (minus the password!!)

The styles error is mentioned in the sticky topic at the top of this forum about known issues.
-:|:- Support Request Template -:|:-
Image
Cheap UK Hosting
"In the land of the blind the little green bloke with no pupils is king - init!"

sopas
Registered User
Posts: 247
Joined: Mon Feb 09, 2004 3:46 am

Re: Upgrading from 3.1.3 to 3.2.2

Post by sopas » Wed May 30, 2018 7:56 pm

Thanks, this is my config.php file

Code: Select all

<?php

$dbms     = 'mysql'       ;
$dbhost   = 'localhost' ;
$dbport   = ''            ;
$dbname   = '*****_phpb2'   ;
$dbuser   = '*****_phpb2' ;
$dbpasswd = '*************' ;

$table_prefix    = 'phpbb_' ;
$acm_type        = 'file'   ;
$load_extensions = ''       ;

@define ( 'PHPBB_INSTALLED' , true ) ;

?>

User avatar
KevC
Support Team Member
Support Team Member
Posts: 68148
Joined: Fri Jun 04, 2004 10:44 am
Location: Oxford, UK
Contact:

Re: Upgrading from 3.1.3 to 3.2.2

Post by KevC » Wed May 30, 2018 7:59 pm

Edit this

Code: Select all

$dbms     = 'mysql'       ;
to this

Code: Select all

$dbms     = 'mysqli'       ;
-:|:- Support Request Template -:|:-
Image
Cheap UK Hosting
"In the land of the blind the little green bloke with no pupils is king - init!"

sopas
Registered User
Posts: 247
Joined: Mon Feb 09, 2004 3:46 am

Re: Upgrading from 3.1.3 to 3.2.2

Post by sopas » Wed May 30, 2018 8:08 pm

OK, I will do that now.
After that, should I try to run the updade again?

P.D: By the way my server is using PHP version 5.6.30

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

Re: Upgrading from 3.1.3 to 3.2.2

Post by Lumpy Burgertushie » Wed May 30, 2018 8:09 pm

yes, once you have made the edit to the config.php file you upload it back to the server. then you go back to the install page and click on the submit button again for updating the database only.

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?

Locked

Return to “[3.1.x] Support Forum”

Who is online

Users browsing this forum: No registered users and 18 guests