Page 1 of 2

problem with updating from 3.0.12

Posted: Thu Apr 03, 2014 10:58 am
by Maxstar
Hi,

With the automatic update from phpBB 3.0.12 to 3.1.0-b1 and 3.1.0-b2 I recieve the following error message.

Code: Select all

Fatal error: Uncaught exception 'Symfony\Component\DependencyInjection\Exception\InvalidArgumentException' with message 'The service definition "auth.provider.smf" does not exist.' in C:\xampp\htdocs\pcwebplus\vendor\symfony\dependency-injection\Symfony\Component\DependencyInjection\ContainerBuilder.php:875 Stack trace: #0 C:\xampp\htdocs\pcwebplus\vendor\symfony\dependency-injection\Symfony\Component\DependencyInjection\ContainerBuilder.php(483): Symfony\Component\DependencyInjection\ContainerBuilder->getDefinition('auth.provider.s...') #1 C:\xampp\htdocs\pcwebplus\install\update\new\phpbb\session.php(579): Symfony\Component\DependencyInjection\ContainerBuilder->get('auth.provider.s...') #2 C:\xampp\htdocs\pcwebplus\install\update\new\phpbb\session.php(500): phpbb\session->session_create() #3 C:\xampp\htdocs\pcwebplus\install\install_update.php(120): phpbb\session->session_begin() #4 C:\xampp\htdocs\pcwebplus\install\index.php(386): install_update->main('update', 'intro') #5 C:\xampp\htdocs\pcwebplus\install\index.php(26 in C:\xampp\htdocs\pcwebplus\vendor\symfony\dependency-injection\Symfony\Component\DependencyInjection\ContainerBuilder.php on line 875
From a clean install of phpBB 3.0.12 it works as well, so I have recplaced all of my files with a clean copy of phpBB 3.0.12 but after that I get the same error by updating to 3.1.0-b1 and 3.1.0-b2?

Regards,

Maxstar

Re: problem with updating from 3.0.12

Posted: Thu Apr 03, 2014 12:21 pm
by Brf
auth.provider.smf ?

Re: problem with updating from 3.0.12

Posted: Thu Apr 03, 2014 12:25 pm
by Maxstar
Hi,

Maybe it is a file or reference in the database related to the SMF forum, a couple of years ago I have made a switch from SMF to phpBB.

Ragards,

Maxstar

Re: problem with updating from 3.0.12

Posted: Thu Apr 03, 2014 4:11 pm
by Brf
You still have the SMF auth in your config. If all of your users have logged in since the conversion, you should be able to set that back to "db".

Re: problem with updating from 3.0.12

Posted: Wed Oct 29, 2014 5:49 am
by Bunkei0
Brf wrote:You still have the SMF auth in your config. If all of your users have logged in since the conversion, you should be able to set that back to "db".
I have the exact same error:

Fatal error: Uncaught exception 'Symfony\Component\DependencyInjection\Exception\InvalidArgumentException' with message 'The service definition "auth.provider.smf" does not exist.' in /home/benn93z28/chat-solutions.org/vendor/symfony/dependency-injection/Symfony/Component/DependencyInjection/ContainerBuilder.php:871 Stack trace: #0 /home/benn93z28/chat-solutions.org/vendor/symfony/dependency-injection/Symfony/Component/DependencyInjection/ContainerBuilder.php(478): Symfony\Component\DependencyInjection\ContainerBuilder->getDefinition('auth.provider.s...') #1 /home/benn93z28/chat-solutions.org/phpbb/auth/auth.php(934): Symfony\Component\DependencyInjection\ContainerBuilder->get('auth.provider.s...') #2 /home/benn93z28/chat-solutions.org/includes/functions.php(2831): phpbb\auth\auth->login('Benjamin', 'sdf09s09d999949...', false, '1', 1) #3 /home/benn93z28/chat-solutions.org/adm/index.php(37): login_box('', 'To administer t...', 'You have succes...', true, false) #4 {main} thrown in /home/benn93z28/chat-solutions.org/vendor/symfony/dependency-injection/Symfony/Component/DependencyInjection/ContainerBuilder.php on line 871

Can you be more specific on the fix you stated in your quote?

Thank you.

Re: problem with updating from 3.0.12

Posted: Wed Oct 29, 2014 1:13 pm
by Brf
In the phpbb_config table in your database.
Look for config_name='auth_method' and change its config_value from 'smf' to 'db'

Re: problem with updating from 3.0.12

Posted: Wed Oct 29, 2014 11:11 pm
by Bunkei0
Brf wrote:In the phpbb_config table in your database.
Look for config_name='auth_method' and change its config_value from 'smf' to 'db'
I just did the above, and now the error appears when I attempt to access the board (before, I could access it fine but I'd get an error when attempting to log into the ACP).

It looks identical to the one I posted earlier, but just in case, here it is again:

Fatal error: Uncaught exception 'Symfony\Component\DependencyInjection\Exception\InvalidArgumentException' with message 'The service definition "auth.provider.smf" does not exist.' in /home/benn93z28/chat-solutions.org/vendor/symfony/dependency-injection/Symfony/Component/DependencyInjection/ContainerBuilder.php:871 Stack trace: #0 /home/benn93z28/chat-solutions.org/vendor/symfony/dependency-injection/Symfony/Component/DependencyInjection/ContainerBuilder.php(478): Symfony\Component\DependencyInjection\ContainerBuilder->getDefinition('auth.provider.s...') #1 /home/benn93z28/chat-solutions.org/phpbb/auth/auth.php(934): Symfony\Component\DependencyInjection\ContainerBuilder->get('auth.provider.s...') #2 /home/benn93z28/chat-solutions.org/includes/functions.php(2831): phpbb\auth\auth->login('Benjamin', 'sdf09s09d999949...', true, 1, 0) #3 /home/benn93z28/chat-solutions.org/ucp.php(84): login_box('./index.php?sid...') #4 {main} thrown in /home/benn93z28/chat-solutions.org/vendor/symfony/dependency-injection/Symfony/Component/DependencyInjection/ContainerBuilder.php on line 871

Re: problem with updating from 3.0.12

Posted: Thu Oct 30, 2014 12:23 am
by Brf
Open the board’s /cache folder on the server and delete everything except index.htm and .htaccess.

Re: problem with updating from 3.0.12

Posted: Thu Oct 30, 2014 7:53 am
by Bunkei0
Brf wrote:Open the board’s /cache folder on the server and delete everything except index.htm and .htaccess.
That didn't work either.

I've did a fresh installation of phpBB 3.0.12 in a test folder to upgrade it to 3.1.0. Here's the errors when copying the database to the fresh installation of 3.0.12:

[phpBB Debug] PHP Warning: in file [ROOT]/includes/session.php on line 384: include_once(./../includes/auth/auth_smf.php) [function.include-once]: failed to open stream: No such file or directory
[phpBB Debug] PHP Warning: in file [ROOT]/includes/session.php on line 384: include_once() [function.include]: Failed opening './../includes/auth/auth_smf.php' for inclusion (include_path='.:/usr/local/lib/php:/usr/local/php5/lib/pear')
[phpBB Debug] PHP Warning: in file [ROOT]/adm/index.php on line 150: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3887)
[phpBB Debug] PHP Warning: in file [ROOT]/adm/index.php on line 152: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3887)
[phpBB Debug] PHP Warning: in file [ROOT]/adm/index.php on line 153: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3887)
[phpBB Debug] PHP Warning: in file [ROOT]/adm/index.php on line 154: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3887)

Re: problem with updating from 3.0.12

Posted: Thu Oct 30, 2014 8:08 am
by Marc
You are missing a file that is included in the converter package. Please add that one and try again. ;)

Re: problem with updating from 3.0.12

Posted: Thu Oct 30, 2014 8:11 am
by Bunkei0
Marc wrote:You are missing a file that is included in the converter package. Please add that one and try again. ;)
Can you be more specific.

Re: problem with updating from 3.0.12

Posted: Thu Oct 30, 2014 8:13 am
by Marc
Yes, you are missing this file: includes/auth/auth_smf.php

If you look inside the SMF converter package, that file should be included. Upload it to your fresh phpBB 3.0.12 installation and the above error should be gone.

Re: problem with updating from 3.0.12

Posted: Thu Oct 30, 2014 8:15 am
by Bunkei0
Marc wrote:Yes, you are missing this file: includes/auth/auth_smf.php

If you look inside the SMF converter package, that file should be included. Upload it to your fresh phpBB 3.0.12 installation and the above error should be gone.
Ok I'm a little confused. I haven't used SMF in 6 years, nor do I have the original SMF installation on the server any longer...

Re: problem with updating from 3.0.12

Posted: Thu Oct 30, 2014 8:18 am
by Marc
As I said, that file is not part of the SMF package but rather of the SMF converter package.

If you download the SMF converter from viewtopic.php?p=13219422#p13219422 then you should have the file I mentioned above.

Re: problem with updating from 3.0.12

Posted: Thu Oct 30, 2014 8:57 am
by Bunkei0
and it takes me back to the original error:

Fatal error: Uncaught exception 'Symfony\Component\DependencyInjection\Exception\InvalidArgumentException' with message 'The service definition "auth.provider.smf" does not exist.' in /home/benn93z28/chat-solutions.org/vendor/symfony/dependency-injection/Symfony/Component/DependencyInjection/ContainerBuilder.php:871 Stack trace: #0 /home/benn93z28/chat-solutions.org/vendor/symfony/dependency-injection/Symfony/Component/DependencyInjection/ContainerBuilder.php(478): Symfony\Component\DependencyInjection\ContainerBuilder->getDefinition('auth.provider.s...') #1 /home/benn93z28/chat-solutions.org/phpbb/auth/auth.php(934): Symfony\Component\DependencyInjection\ContainerBuilder->get('auth.provider.s...') #2 /home/benn93z28/chat-solutions.org/includes/functions.php(2831): phpbb\auth\auth->login('Benjamin', 'sdf09s09d999949...', true, 1, 0) #3 /home/benn93z28/chat-solutions.org/ucp.php(84): login_box('index.php') #4 {main} thrown in /home/benn93z28/chat-solutions.org/vendor/symfony/dependency-injection/Symfony/Component/DependencyInjection/ContainerBuilder.php on line 871