3.2.4 -> 3.2.5 Update: Fatal error: Uncaught exception

Get help with installation and running phpBB 3.2.x here. Please do not post bug reports, feature requests, or extension related questions here.
zorbas2
Registered User
Posts: 49
Joined: Fri Apr 02, 2010 5:51 am

3.2.4 -> 3.2.5 Update: Fatal error: Uncaught exception

Post by zorbas2 »

I am trying to update from 3.2.4 to 3.2.5 using the automatic update package. I am following exactly the instructions. I have only the standard prosilver style and english language installed. But there are some extensions installed...
After uploading the /install and /vendor directory and pointing my browser to /install I get the following fatal error:
Fatal error: Uncaught exception 'InvalidArgumentException' with message 'Class "phpbb\install\event\kernel_exception_subscriber" used for service "kernel_exception_subscriber" cannot be found.' in /homepages/3/xxxx/htdocs/scripts/phpBB3/vendor/symfony/event-dispatcher/DependencyInjection/RegisterListenersPass.php:91 Stack trace: #0 /homepages/3/xxxx/htdocs/scripts/phpBB3/vendor/symfony/dependency-injection/Compiler/Compiler.php(102): Symfony\Component\EventDispatcher\DependencyInjection\RegisterListenersPass->process(Object(Symfony\Component\DependencyInjection\ContainerBuilder)) #1 /homepages/3/xxxx/htdocs/scripts/phpBB3/vendor/symfony/dependency-injection/ContainerBuilder.php(587): Symfony\Component\DependencyInjection\Compiler\Compiler->compile(Object(Symfony\Component\DependencyInjection\ContainerBuilder)) #2 /homepages/3/xxxx/htdocs/scripts/phpBB3/phpbb/di/container_builder.php(198): Symfony\Component\DependencyInjection\ContainerBuilder->compile() #3 /homepages/3/xxxx/htdocs/scripts/phpBB3/i in /homepages/3/xxxx/htdocs/scripts/phpBB3/vendor/symfony/event-dispatcher/DependencyInjection/RegisterListenersPass.php on line 91
Does anyone has a clue what I could do?
User avatar
janus_zonstraal
Registered User
Posts: 6357
Joined: Sat Aug 30, 2014 1:30 pm

Re: 3.2.4 -> 3.2.5 Update: Fatal error: Uncaught exception

Post by janus_zonstraal »

How did you upload the files?
And is the .htaccess in the root of your phpbb folder?
Sorry! My English is bat ;) !!!
zorbas2
Registered User
Posts: 49
Joined: Fri Apr 02, 2010 5:51 am

Re: 3.2.4 -> 3.2.5 Update: Fatal error: Uncaught exception

Post by zorbas2 »

I uploaded the /install and /vendor folder from the automatic update package to the root folder of my phpBB installation using passive ftp.
The following .htaccess file is present in my root folder:

Code: Select all

<IfModule mod_rewrite.c>
RewriteEngine on

#
# Uncomment the statement below if URL rewriting doesn't
# work properly. If you installed phpBB in a subdirectory
# of your site, properly set the argument for the statement.
# e.g.: if your domain is test.com and you installed phpBB
# in http://www.test.com/phpBB/index.php you have to set
# the statement RewriteBase /phpBB/
#
#RewriteBase /

#
# Uncomment the statement below if you want to make use of
# HTTP authentication and it does not already work.
# This could be required if you are for example using PHP via Apache CGI.
#
#RewriteRule .* - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization},L]

#
# The following 3 lines will rewrite URLs passed through the front controller
# to not require app.php in the actual URL. In other words, a controller is
# by default accessed at /app.php/my/controller, but can also be accessed at
# /my/controller
#
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ app.php [QSA,L]

#
# If symbolic links are not already being followed,
# uncomment the line below.
# http://anothersysadmin.wordpress.com/2008/06/10/mod_rewrite-forbidden-403-with-apache-228/
#
#Options +FollowSymLinks
</IfModule>

# With Apache 2.4 the "Order, Deny" syntax has been deprecated and moved from
# module mod_authz_host to a new module called mod_access_compat (which may be
# disabled) and a new "Require" syntax has been introduced to mod_authz_host.
# We could just conditionally provide both versions, but unfortunately Apache
# does not explicitly tell us its version if the module mod_version is not
# available. In this case, we check for the availability of module
# mod_authz_core (which should be on 2.4 or higher only) as a best guess.
<IfModule mod_version.c>
	<IfVersion < 2.4>
		<Files "config.php">
			Order Allow,Deny
			Deny from All
		</Files>
		<Files "common.php">
			Order Allow,Deny
			Deny from All
		</Files>
	</IfVersion>
	<IfVersion >= 2.4>
		<Files "config.php">
			Require all denied
		</Files>
		<Files "common.php">
			Require all denied
		</Files>
	</IfVersion>
</IfModule>
<IfModule !mod_version.c>
	<IfModule !mod_authz_core.c>
		<Files "config.php">
			Order Allow,Deny
			Deny from All
		</Files>
		<Files "common.php">
			Order Allow,Deny
			Deny from All
		</Files>
	</IfModule>
	<IfModule mod_authz_core.c>
		<Files "config.php">
			Require all denied
		</Files>
		<Files "common.php">
			Require all denied
		</Files>
	</IfModule>
</IfModule>
User avatar
david63
Registered User
Posts: 20646
Joined: Thu Dec 19, 2002 8:08 am

Re: 3.2.4 -> 3.2.5 Update: Fatal error: Uncaught exception

Post by david63 »

Is there any particular reason as to why you are trying to use the auto update method rather than the recommended full file replacement?
David
Remember: You only know what you know and - you don't know what you don't know!

I now no longer support any of my extensions but they will start to become available here
User avatar
warmweer
Jr. Extension Validator
Posts: 10755
Joined: Fri Jul 04, 2003 6:34 am
Location: Van Allen Bel ... gium
Contact:

Re: 3.2.4 -> 3.2.5 Update: Fatal error: Uncaught exception

Post by warmweer »

zorbas2 wrote: Sun Dec 30, 2018 7:46 am Does anyone has a clue what I could do?
Since there is no custom code in your board, the autoupdate is absolutely unnecessary, and introduces extra steps which increase the risk of something going wrong.
Full package or changed files is the way to go.
Just in case (not absolutely necessary) disable all extensions before updating, and enable them 1 by 1 after the succesful update (and check for updated versions)
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.
zorbas2
Registered User
Posts: 49
Joined: Fri Apr 02, 2010 5:51 am

Re: 3.2.4 -> 3.2.5 Update: Fatal error: Uncaught exception

Post by zorbas2 »

david63 wrote: Sun Dec 30, 2018 11:05 am Is there any particular reason as to why you are trying to use the auto update method rather than the recommended full file replacement?
The extensions and some other tweaking - espacially in the prosilver theme css files...
And as there is an automatic update package, I thought in my case it is the best to use. Also it worked in past updates perfectly...
zorbas2
Registered User
Posts: 49
Joined: Fri Apr 02, 2010 5:51 am

Re: 3.2.4 -> 3.2.5 Update: Fatal error: Uncaught exception

Post by zorbas2 »

warmweer wrote: Sun Dec 30, 2018 11:19 am
zorbas2 wrote: Sun Dec 30, 2018 7:46 am Does anyone has a clue what I could do?
Since there is no custom code in your board, the autoupdate is absolutely unnecessary, and introduces extra steps which increase the risk of something going wrong.
Full package or changed files is the way to go.
Just in case (not absolutely necessary) disable all extensions before updating, and enable them 1 by 1 after the succesful update (and check for updated versions)
Ok, worst thing it is this what I got to do. Disable extensions, backup modificated files, do a full update and try afterwards to get everything as it was.
I am only asking myself why previous automatic updates went always well and this one now results in such an error...
User avatar
janus_zonstraal
Registered User
Posts: 6357
Joined: Sat Aug 30, 2014 1:30 pm

Re: 3.2.4 -> 3.2.5 Update: Fatal error: Uncaught exception

Post by janus_zonstraal »

Are you sure that you upload all the files correctly?

The autoupdater is working fine, I did already 15 boards with the autoupdater without any problem.
Sorry! My English is bat ;) !!!
zorbas2
Registered User
Posts: 49
Joined: Fri Apr 02, 2010 5:51 am

Re: 3.2.4 -> 3.2.5 Update: Fatal error: Uncaught exception

Post by zorbas2 »

janus_zonstraal wrote: Sun Dec 30, 2018 1:30 pm Are you sure that you upload all the files correctly?

The autoupdater is working fine, I did already 15 boards with the autoupdater without any problem.
Hmmm. Will try to upload /install and /vendor again although I had no error message from my ftp program...
User avatar
janus_zonstraal
Registered User
Posts: 6357
Joined: Sat Aug 30, 2014 1:30 pm

Re: 3.2.4 -> 3.2.5 Update: Fatal error: Uncaught exception

Post by janus_zonstraal »

I always rename or delete the old vendor folder before I upload the new one!
Sorry! My English is bat ;) !!!
zorbas2
Registered User
Posts: 49
Joined: Fri Apr 02, 2010 5:51 am

Re: 3.2.4 -> 3.2.5 Update: Fatal error: Uncaught exception

Post by zorbas2 »

I re-uploaded the /install and /vendor folder after renaming the old /vendor folder. It produced exactly the same error.
Probably I have to go for a full update and not for the automatic update. However, I am still wondering if there is someone out there who could at least explain this error...
User avatar
janus_zonstraal
Registered User
Posts: 6357
Joined: Sat Aug 30, 2014 1:30 pm

Re: 3.2.4 -> 3.2.5 Update: Fatal error: Uncaught exception

Post by janus_zonstraal »

You have to empty the cache folder except the index.htm and the .htaccess
Than delete the io_lock.lock and the install_config.php from the store folder.

Than go to the /install/ from your board and try it again.
Sorry! My English is bat ;) !!!
zorbas2
Registered User
Posts: 49
Joined: Fri Apr 02, 2010 5:51 am

Re: 3.2.4 -> 3.2.5 Update: Fatal error: Uncaught exception

Post by zorbas2 »

Thanks! But I did that too!! :?
User avatar
MoLew
Registered User
Posts: 198
Joined: Fri Jul 05, 2002 7:52 pm
Location: Minnesota, U.S.A.

Re: 3.2.4 -> 3.2.5 Update: Fatal error: Uncaught exception

Post by MoLew »

I've been stuck on this since version 3.2.2 ... Have been completely unable to update my board. Have done all the suggestions above, and now am wondering if some auto-backup feature of my domain hosting service is replacing new files with saved ones. Yes, they have an automated feature for installing phpBB, but I prefer a more hands-on approach and do my own d/b and file installations. I've been running phpBB on my site since 2002 ... This is the first time I've been stumped on doing updates for so long.

//Update//

Disabled all my mods, saved all my edited files, re-uploaded the entire forum software suite. Went through the update sequence as expected ... Finally!

Wish I knew which file was corrupted or missing. Sucks to have to go through all that mess to replace one bad file.
Last edited by MoLew on Sun Jan 13, 2019 6:08 pm, edited 1 time in total.
User avatar
Lumpy Burgertushie
Registered User
Posts: 69208
Joined: Mon May 02, 2005 3:11 am
Contact:

Re: 3.2.4 -> 3.2.5 Update: Fatal error: Uncaught exception

Post by Lumpy Burgertushie »

follow these steps exactly and in order and you should be fine.
one change is to go ahead and delete the folder named store after you have made the backup.
the instructons say to leave it there but go ahead and delete it.

then follow the rest of the instructions.
https://www.phpbb.com/support/docs/en/3 ... ating-32x/

robert
Premium phpBB 3.3 Styles by PlanetStyles.net

I am pleased to announce that I have completed the first item on my bucket list. I have the bucket.
Post Reply

Return to “[3.2.x] Support Forum”