upgrading from 3.2.5 to 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.
mkcsmartin
Registered User
Posts: 17
Joined: Tue Apr 11, 2023 1:48 pm

upgrading from 3.2.5 to 3.3

Post by mkcsmartin »

Hi. To. help keep a PHP alive by relocating it to a new siteground account.

as part of this, I am trying to do the upgrade of a bulletin board for PHP. I am very new to this so i am learning as I go. apologies if i have asked the wrong question or in the wrong forum .


I went through the install guide here :https://www.phpbb.com/support/docs/en/3 ... upgrade32/


when I got to step 12. the update button i got an error:
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.

So i have been painstakingly trying to connect to the host and run script using CLI.
I have just managed to to execute the command: php ./bin/phpbbcli.php db:migrate --safe-mode

however, i get the error:

Code: Select all

Fatal error: Uncaught Symfony\Component\DependencyInjection\Exception\RuntimeException: The definition for "cache.driver" has no class. If you intend to inject this service dynamically at runtime, please mark it as synthetic=true. If this is an abstract definition solely used by child definitions, please add abstract=true, otherwise specify a class to get rid of this error. in /home/customer/www/martind129.sg-host.com/public_html/vendor/symfony/dependency-injection/Compiler/CheckDefinitionValidityPass.php:58
Stack trace:
#0 /home/customer/www/martind129.sg-host.com/public_html/vendor/symfony/dependency-injection/Compiler/Compiler.php(140): Symfony\Component\DependencyInjection\Compiler\CheckDefinitionValidityPass->process(Object(Symfony\Component\DependencyInjection\ContainerBuilder))
#1 /home/customer/www/martind129.sg-host.com/public_html/vendor/symfony/dependency-injection/ContainerBuilder.php(789): Symfony\Component\DependencyInjection\Compiler\Compiler->compile(Object(Symfony\Component\DependencyInjection\ContainerBu in /homebaseosbaseos | mbaseos | marbaseos | mbaseos |baseosbasebasebasebabababasebababababasebasebaseosbaseos |basebasebabababababababasebabababasebabaseos |babababababasebabasebabababaseos | martind129.sg-host.com | [email protected]:~/www/martind129.sg-host.com/public_html/bin$ 
I am unsure what to do now as the website update and CLI update do not appear to work for me.

any ideas?

Best

Mart
User avatar
janus_zonstraal
Registered User
Posts: 6479
Joined: Sat Aug 30, 2014 1:30 pm

Re: upgrading from 3.2.5 to 3.3

Post by janus_zonstraal »

Try the update in smaller steps 3.2.5 to 3.3.0 first and then to 3.3.11
Sorry! My English is bat ;) !!!
User avatar
thecoalman
Community Team Member
Community Team Member
Posts: 6003
Joined: Wed Dec 22, 2004 3:52 am
Location: Pennsylvania, U.S.A.

Re: upgrading from 3.2.5 to 3.3

Post by thecoalman »

mkcsmartin wrote: Sun Feb 11, 2024 7:58 pm The installer has detected a timeout, you may try to refresh the page,
PHP has a max_execution_time , you can check with your hosts documentation to temporarily set this to higher value.
“Results! Why, man, I have gotten a lot of results! I have found several thousand things that won’t work.”

Attributed - Thomas Edison
mkcsmartin
Registered User
Posts: 17
Joined: Tue Apr 11, 2023 1:48 pm

Re: upgrading from 3.2.5 to 3.3

Post by mkcsmartin »

thecoalman wrote: Mon Feb 12, 2024 7:28 am
mkcsmartin wrote: Sun Feb 11, 2024 7:58 pm The installer has detected a timeout, you may try to refresh the page,
PHP has a max_execution_time , you can check with your hosts documentation to temporarily set this to higher value.
thanks for your input. I had noticed that the error was instataneous almost as if this was not a timeout but something else (as teh CLI error appears to indicated?) however i did speak to the help staff and was able to add the following to the site to upgrade the timeout. It still falls over striaight away with the same error as before
<IfModule mod_dtimeout.c>
<Files ~ ".php"> SetEnvIf Request_URI "index.php" DynamicTimeout=600 SetEnvIf Request_URI "wp-admin/themes.php" DynamicTimeout=600 SetEnvIf Request_URI "wp-admin/admin-ajax.php" DynamicTimeout=600 SetEnvIf Request_URI "wp-admin/admin.php" DynamicTimeout=600
</Files>
</IfModule>
mkcsmartin
Registered User
Posts: 17
Joined: Tue Apr 11, 2023 1:48 pm

Re: upgrading from 3.2.5 to 3.3

Post by mkcsmartin »

janus_zonstraal wrote: Sun Feb 11, 2024 9:32 pm Try the update in smaller steps 3.2.5 to 3.3.0 first and then to 3.3.11
thanks very much for your input .I am not sure i have seen update instructions for 3.2.5 to 3.3 but i will keep looking.
User avatar
warmweer
Jr. Extension Validator
Posts: 11462
Joined: Fri Jul 04, 2003 6:34 am
Location: Van Allen Bel ... gium

Re: upgrading from 3.2.5 to 3.3

Post by warmweer »

mkcsmartin wrote: Mon Feb 12, 2024 11:44 am
thanks very much for your input .I am not sure i have seen update instructions for 3.2.5 to 3.3 but i will keep looking.
It doesn't matter from which subversion of 3.2 to which subversion of 3.3 your upgrading.

Upgrading from 3.2 to 3.3

The update package you download also contains informative documents.
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: 6003
Joined: Wed Dec 22, 2004 3:52 am
Location: Pennsylvania, U.S.A.

Re: upgrading from 3.2.5 to 3.3

Post by thecoalman »

mkcsmartin wrote: Mon Feb 12, 2024 11:42 am <IfModule mod_dtimeout.c>
<Files ~ ".php"> SetEnvIf Request_URI "index.php" DynamicTimeout=600 SetEnvIf Request_URI "wp-admin/themes.php" DynamicTimeout=600 SetEnvIf Request_URI "wp-admin/admin-ajax.php" DynamicTimeout=600 SetEnvIf Request_URI "wp-admin/admin.php" DynamicTimeout=600
</Files>
</IfModule>
That is not going to apply to your forum ,it's for Wordpress. Ask them how to do it with php.ini
“Results! Why, man, I have gotten a lot of results! I have found several thousand things that won’t work.”

Attributed - Thomas Edison
mkcsmartin
Registered User
Posts: 17
Joined: Tue Apr 11, 2023 1:48 pm

Re: upgrading from 3.2.5 to 3.3

Post by mkcsmartin »

warmweer wrote: Mon Feb 12, 2024 12:18 pm
mkcsmartin wrote: Mon Feb 12, 2024 11:44 am
thanks very much for your input .I am not sure i have seen update instructions for 3.2.5 to 3.3 but i will keep looking.
It doesn't matter from which subversion of 3.2 to which subversion of 3.3 your upgrading.

Upgrading from 3.2 to 3.3

The update package you download also contains informative documents.
thankyou. so the upgrade guide i am following should work?
the only other thing which seemed odd is some of the files / directories it told me to retain / remove were not in the PHPBB version 3.24 i was working with.
User avatar
warmweer
Jr. Extension Validator
Posts: 11462
Joined: Fri Jul 04, 2003 6:34 am
Location: Van Allen Bel ... gium

Re: upgrading from 3.2.5 to 3.3

Post by warmweer »

mkcsmartin wrote: Mon Feb 12, 2024 2:11 pm ...
thankyou. so the upgrade guide i am following should work?
the only other thing which seemed odd is some of the files / directories it told me to retain / remove were not in the PHPBB version 3.24 i was working with.
Assuming you have no file-edits on your 3.2.5, the full package (3.3.11) or the changed files package (3.2.5 > 3.3.11) is the one to use.
If you do have file-edits on the 3.2.5 , there's no guarantee these will function properly with 3.3.11 so you'll have to test and either recode those edits or forget about them completely (maybe there are extensions that can be used instead)

As to files/directories the instructions mention should be kept, .. but weren't present... could you list those?
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.
mkcsmartin
Registered User
Posts: 17
Joined: Tue Apr 11, 2023 1:48 pm

Re: upgrading from 3.2.5 to 3.3

Post by mkcsmartin »

thanks for your time with this. when i look in the root of the old board these are the folders which are there.

EasyCaptcha
Prediction league
admin
cacheOLD
cgi-bin
db
dg
docs
drupal
evolution
gallery
images
img
includes
joomla
language
moving.page
new
phpbb3mb
qprdotchat
rankimages
scgi-bin
suspended.page
templates
test1
videos

so the step: Delete all fies from my website apart from :
The config.php file found
The ext/ directory not found
The files/ directory not found
The images/ directory found
The store/ directory not found

unless i am looking in the wrong place for some of the subfolders
Last edited by Mick on Wed Feb 14, 2024 8:47 am, edited 1 time in total.
Reason: Removed unnecessary full quotes.
mkcsmartin
Registered User
Posts: 17
Joined: Tue Apr 11, 2023 1:48 pm

Re: upgrading from 3.2.5 to 3.3

Post by mkcsmartin »

i am going back through this again and this is my summary of steps so far. apologies if I am being a bit thick here but thats where i am currently
(really keen to keep this board alive and upgrade it etc) thanks in advance



Ensure that your server meets the requirements for running phpBB 3.3: Section 1.1, “Requirements” I think this is OK
Make a backup of the original files OK
Make a backup of the database OK

Deactivate all styles except for prosilver not sure how to do this on siteground - is this important given that the DB upgrade is failing
Deactivate any extensions which are not compatible with phpBB 3.3.
Check with the extension author to find out if an extension is compatible or not. not sure how to do this on siteground - is this important given that the DB upgrade is failing
Set British English as the only language pack not sure how to do this on siteground - is this important given that the DB upgrade is failing
Download the phpBB 3.3 Full Package archive OK
Extract the contents of the archive to your computer and open the phpBB3 directory OK
Delete the following files from the package: OK
The config.php file OK
The files/ directory OK
The images/ directory OK
The store/ directory OK


Delete all fies from my website apart from :
The config.php file found
The ext/ directory not found
The files/ directory not found
The images/ directory found
The store/ directory not found
User avatar
warmweer
Jr. Extension Validator
Posts: 11462
Joined: Fri Jul 04, 2003 6:34 am
Location: Van Allen Bel ... gium

Re: upgrading from 3.2.5 to 3.3

Post by warmweer »

What are the contents of phpbb3mb?
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.
mkcsmartin
Registered User
Posts: 17
Joined: Tue Apr 11, 2023 1:48 pm

Re: upgrading from 3.2.5 to 3.3

Post by mkcsmartin »

warmweer wrote: Tue Feb 13, 2024 6:54 pm What are the contents of phpbb3mb?
lots of files / folders listed below

martindurcan@Martins-iMac-4 phpbb3mb % ls
adm
app.php
assets
backup
bin
cache
cache--
common.php
composer.json
composer.lock
config
config.php
cron.php
docs
download
error_log
ext
faq.php
favicon.ico
feed.php
files
i.php
images
includes
index.php
language
list.txt
mcp.php
memberlist.php
newoldinstall
oldinstall
phpBB-3.1.4.zip
phpBB-3.2.3.zip
phpBB3
php_errorlog
phpbb
posting.php
qprdot_phpb667.sql
report.php
search.php
store
styles
ucp.php
update_archive_1486164636_5895129c5c01f.tar
updated
vendor
vendor--
viewforum.php
viewonline.php
viewtopic.php
web.config
User avatar
warmweer
Jr. Extension Validator
Posts: 11462
Joined: Fri Jul 04, 2003 6:34 am
Location: Van Allen Bel ... gium

Re: upgrading from 3.2.5 to 3.3

Post by warmweer »

That seems to be a complete phpBB dir/file-set with some extra's.

The board root you mentioned before is missing parts + has extra stuff not phpBB related.
Look in the styles folder for prosilver/style.cfg >>> which version is mentioned?

and also: in /store ... are there database backups in there, if yes what are the filedates?
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.
mkcsmartin
Registered User
Posts: 17
Joined: Tue Apr 11, 2023 1:48 pm

Re: upgrading from 3.2.5 to 3.3

Post by mkcsmartin »

warmweer wrote: Tue Feb 13, 2024 7:08 pm That seems to be a complete phpBB dir/file-set with some extra's.

The board root you mentioned before is missing parts + has extra stuff not phpBB related.
Look in the styles folder for prosilver/style.cfg >>> which version is mentioned?

and also: in /store ... are there database backups in there, if yes what are the filedates?
could it be that the site is configured to look in the phpbb3mb for the bulletin board ? not sure where that leaves me in terms of upgrade.

like you say, this is where these folders appear to be.

regarding the styles: the style.cfg says:
# General Information about this style
name = prosilver
copyright = © phpBB Limited, 2007
style_version = 3.2.5
phpbb_version = 3.2.5


i still have access to the original siteground and it has backups more recently than that through siteground mysql:

regarding the store folder,it has these contents: (with dates 2018/2017)

backup_1546195032_f4ad74a3cba02245.sql.gz
index.htm
io_lock.lock
migrations_1437684742.log
migrations_1443731910.log
migrations_1453660268.log
migrations_1456477824.log
migrations_1463743749.log
migrations_1478512571.log
migrations_1486165070.log
migrations_1486165133.log
migrations_1486165183.log
migrations_1486165234.log
migrations_1486165284.log
migrations_1486165335.log
migrations_1486165385.log
migrations_1486165424.log
migrations_1486165440.log
migrations_1541276400.log
migrations_1541289537.log
migrations_1546196902.log
update_archive_1486164636_5895129c5c01f.tar
update_archive_1486164813_5895134dd1e76.tar
update_archive_1486164952_589513d89d18a.tar
update_archive_1486165016_58951418056d4.tar


thanks again

Return to “[3.3.x] Support Forum”