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 » Sun Dec 30, 2018 7:46 am

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: 3269
Joined: Sat Aug 30, 2014 1:30 pm

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

Post by janus_zonstraal » Sun Dec 30, 2018 8:11 am

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 » Sun Dec 30, 2018 10:50 am

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: 16193
Joined: Thu Dec 19, 2002 8:08 am
Location: Lancashire, UK
Name: David Wood
Contact:

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

Post by david63 » 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?
David
Remember: You only know what you know and - you don't know what you don't know!
My CDB Contributions | How to install an extension
I will not be accepting translations for any of my extensions in Github - please post any translations in the appropriate topic.
No support requests via PM or email as they will be ignored

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

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

Post by warmweer » 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)
My board's not broken, it just went peculiar

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 » Sun Dec 30, 2018 1:24 pm

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 » Sun Dec 30, 2018 1:27 pm

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: 3269
Joined: Sat Aug 30, 2014 1:30 pm

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

Post by janus_zonstraal » 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.
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 » Sun Dec 30, 2018 1:43 pm

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: 3269
Joined: Sat Aug 30, 2014 1:30 pm

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

Post by janus_zonstraal » Sun Dec 30, 2018 2:10 pm

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 » Mon Dec 31, 2018 2:43 pm

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: 3269
Joined: Sat Aug 30, 2014 1:30 pm

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

Post by janus_zonstraal » Mon Dec 31, 2018 3:35 pm

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 » Mon Dec 31, 2018 4:31 pm

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 » Sun Jan 13, 2019 5:19 pm

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: 66340
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 » Sun Jan 13, 2019 6:05 pm

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
I'm baaaaaccckkkk. still doing work on donation basis. PM your needs.

Premium phpBB 3.2 Styles by PlanetStyles.net

If a tree falls in the forest and nobody is there, does it make a sound?

Post Reply

Return to “[3.2.x] Support Forum”