Social login doesn't work on phpbb 3.3.0

Hi everybody. There's some bug into the 3.4 version that makes no compatible your plugin with the new version of phpbb 3.3.0.

Because when you install the plugin it makes an exception and it does't work property.

Can you release the fixed version of it? Thank you.

Best Answer

  • edited February 2020 Answer ✓

    you must alter the services.yml and the auth.yml in the config folder.
    The solution is to put double quotes around the "@arguments ". Mine works using the config shown below. note that the arguments with a % sign do not get the quotes around them.

    Auth.yml:


    services:
    auth.provider.oneall:
    class: oneall\sociallogin\auth\provider\oneall
    arguments:
    - "@dbal.conn"
    - "@config"
    - "@passwords.manager"
    - "@request"
    - "@user"
    - "@service_container"
    - %core.root_path%
    - %core.php_ext%
    tags:
    - { name: auth.provider }


    Services.yml


    services:
    oneall.sociallogin.listener:
    class: oneall\sociallogin\event\listener
    arguments:
    - "@config"
    - "@config_text"
    - "@controller.helper"
    - "@request"
    - "@template"
    - "@user"
    - %core.root_path%
    - %core.php_ext%
    tags:
    - { name: event.listener }

    imports:
    - { resource: auth.yml }

Answers

  • So, the current version of the plugin doesn't work with phpBB 3.3?

    It's good to know that before I upgrade my phpBB 3.2.8 installation to version 3.3.

  • Claude_SchlesserClaude_SchlesserAdministratorOneAll Team

    Thank you very much for the hint. This was fixed in the latest version:
    https://github.com/oneall/social-login-phpbb

  • But when I look at those two files at Github, the lines still have ' instead of ".

    Nonetheless, we can't get this to work. But we would like to.

  • Are there any news on this?

  • This is what we get by enabling this EXT:

    There is no extension able to load the configuration for "oneall.sociallogin.listener" (in /var/www/html/forum/ext/oneall/sociallogin/config/services.yml). Looked for namespace "oneall.sociallogin.listener", found none

    #0 /var/www/html/forum/vendor/symfony/dependency-injection/Loader/YamlFileLoader.php(668): Symfony\Component\DependencyInjection\Loader\YamlFileLoader->validate(Array, '/var/www/html/f...')
    #1 /var/www/html/forum/vendor/symfony/dependency-injection/Loader/YamlFileLoader.php(117): Symfony\Component\DependencyInjection\Loader\YamlFileLoader->loadFile('/var/www/html/f...')
    #2 /var/www/html/forum/phpbb/extension/di/extension_base.php(99): Symfony\Component\DependencyInjection\Loader\YamlFileLoader->load('services.yml')
    #3 /var/www/html/forum/phpbb/extension/di/extension_base.php(63): phpbb\extension\di\extension_base->load_services(Object(Symfony\Component\DependencyInjection\Compiler\MergeExtensionConfigurationContainerBuilder))
    #4 /var/www/html/forum/vendor/symfony/dependency-injection/Compiler/MergeExtensionConfigurationPass.php(71): phpbb\extension\di\extension_base->load(Array, Object(Symfony\Component\DependencyInjection\Compiler\MergeExtensionConfigurationContainerBuilder))
    #5 /var/www/html/forum/vendor/symfony/http-kernel/DependencyInjection/MergeExtensionConfigurationPass.php(39): Symfony\Component\DependencyInjection\Compiler\MergeExtensionConfigurationPass->process(Object(Symfony\Component\DependencyInjection\ContainerBuilder))
    #6 /var/www/html/forum/vendor/symfony/dependency-injection/Compiler/Compiler.php(140): Symfony\Component\HttpKernel\DependencyInjection\MergeExtensionConfigurationPass->process(Object(Symfony\Component\DependencyInjection\ContainerBuilder))
    #7 /var/www/html/forum/vendor/symfony/dependency-injection/ContainerBuilder.php(789): Symfony\Component\DependencyInjection\Compiler\Compiler->compile(Object(Symfony\Component\DependencyInjection\ContainerBuilder))
    #8 /var/www/html/forum/phpbb/di/container_builder.php(203): Symfony\Component\DependencyInjection\ContainerBuilder->compile()
    #9 /var/www/html/forum/common.php(115): phpbb\di\container_builder->get_container()
    #10 /var/www/html/forum/adm/index.php(23): require('/var/www/html/f...')
    #11 {main}

Welcome!

Please sign in to your OneAll account to ask a new question or to contribute to the discussions.

Please click on the link below to connect to the forum with your OneAll account.