problem with updating from 3.0.12

Get help with installation and running phpBB 3.1.x here. Please do not post bug reports, feature requests, or extension related questions here.
Scam Warning
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.
Maxstar
Registered User
Posts: 19
Joined: Sun Apr 11, 2010 11:09 am

problem with updating from 3.0.12

Post by Maxstar » Thu Apr 03, 2014 10:58 am

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

User avatar
Brf
Support Team Member
Support Team Member
Posts: 51889
Joined: Tue May 10, 2005 7:47 pm
Location: {postrow.POSTER_FROM}
Contact:

Re: problem with updating from 3.0.12

Post by Brf » Thu Apr 03, 2014 12:21 pm

auth.provider.smf ?

Maxstar
Registered User
Posts: 19
Joined: Sun Apr 11, 2010 11:09 am

Re: problem with updating from 3.0.12

Post by Maxstar » Thu Apr 03, 2014 12:25 pm

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

User avatar
Brf
Support Team Member
Support Team Member
Posts: 51889
Joined: Tue May 10, 2005 7:47 pm
Location: {postrow.POSTER_FROM}
Contact:

Re: problem with updating from 3.0.12

Post by Brf » Thu Apr 03, 2014 4:11 pm

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".

Bunkei0
Registered User
Posts: 12
Joined: Wed Oct 29, 2014 5:45 am

Re: problem with updating from 3.0.12

Post by Bunkei0 » Wed Oct 29, 2014 5:49 am

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.

User avatar
Brf
Support Team Member
Support Team Member
Posts: 51889
Joined: Tue May 10, 2005 7:47 pm
Location: {postrow.POSTER_FROM}
Contact:

Re: problem with updating from 3.0.12

Post by Brf » Wed Oct 29, 2014 1:13 pm

In the phpbb_config table in your database.
Look for config_name='auth_method' and change its config_value from 'smf' to 'db'

Bunkei0
Registered User
Posts: 12
Joined: Wed Oct 29, 2014 5:45 am

Re: problem with updating from 3.0.12

Post by Bunkei0 » Wed Oct 29, 2014 11:11 pm

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

User avatar
Brf
Support Team Member
Support Team Member
Posts: 51889
Joined: Tue May 10, 2005 7:47 pm
Location: {postrow.POSTER_FROM}
Contact:

Re: problem with updating from 3.0.12

Post by Brf » Thu Oct 30, 2014 12:23 am

Open the board’s /cache folder on the server and delete everything except index.htm and .htaccess.

Bunkei0
Registered User
Posts: 12
Joined: Wed Oct 29, 2014 5:45 am

Re: problem with updating from 3.0.12

Post by Bunkei0 » Thu Oct 30, 2014 7:53 am

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)

User avatar
Marc
Development Team Leader
Development Team Leader
Posts: 5414
Joined: Tue Oct 30, 2007 10:57 pm
Location: Munich, Germany
Name: Marc
Contact:

Re: problem with updating from 3.0.12

Post by Marc » Thu Oct 30, 2014 8:08 am

You are missing a file that is included in the converter package. Please add that one and try again. ;)

Bunkei0
Registered User
Posts: 12
Joined: Wed Oct 29, 2014 5:45 am

Re: problem with updating from 3.0.12

Post by Bunkei0 » Thu Oct 30, 2014 8:11 am

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.

User avatar
Marc
Development Team Leader
Development Team Leader
Posts: 5414
Joined: Tue Oct 30, 2007 10:57 pm
Location: Munich, Germany
Name: Marc
Contact:

Re: problem with updating from 3.0.12

Post by Marc » Thu Oct 30, 2014 8:13 am

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.

Bunkei0
Registered User
Posts: 12
Joined: Wed Oct 29, 2014 5:45 am

Re: problem with updating from 3.0.12

Post by Bunkei0 » Thu Oct 30, 2014 8:15 am

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...

User avatar
Marc
Development Team Leader
Development Team Leader
Posts: 5414
Joined: Tue Oct 30, 2007 10:57 pm
Location: Munich, Germany
Name: Marc
Contact:

Re: problem with updating from 3.0.12

Post by Marc » Thu Oct 30, 2014 8:18 am

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.

Bunkei0
Registered User
Posts: 12
Joined: Wed Oct 29, 2014 5:45 am

Re: problem with updating from 3.0.12

Post by Bunkei0 » Thu Oct 30, 2014 8:57 am

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

Locked

Return to “[3.1.x] Support Forum”