CloudFlare IP

With phpbb 3.3.0 not work - CloudFlare IP

With phpbb 3.3.0 not work

by wonder_wonder » Thu Jan 09, 2020 11:53 pm

After upgrade to 3.3.0 I view an error and I need disabled this...

Thanks for the work.
wonder_wonder
Registered User
Posts: 34
Joined: Thu Feb 16, 2017 2:52 pm
Contact:

Re: With phpbb 3.3.0 not work

by SiteSplat » Fri Jan 10, 2020 12:23 am

Hi there,


Rather than saying "I view an error" can you actually post the following:

-the error you are experiencing
-where (like in which page or while doing X action)
-screenshot if any


This way I can provide you the appropriate help.

Thanks!
User avatar
SiteSplat
Registered User
Posts: 82
Joined: Sun Sep 07, 2014 7:17 pm
Contact:

Re: With phpbb 3.3.0 not work

by wonder_wonder » Fri Jan 10, 2020 2:00 am

Yes, of course:
When activate this extension, appears this error, no attach a screenshot because are in spanish, but if you want, I can set my forum in english and provide screnshoot.

This error appears at the top:

Code: Select all

phpBB encontró un error al construir el contenedor debido a una extensión instalada. Por esta razón, todas las extensiones se han desactivado temporalmente. Por favor, intenta purgar el caché del foro. Todas las extensiones serán automáticamente habilitadas de nuevo una vez que se resuelva el error del contenedor. Si este error continúa, por favor visita phpBB.com para soporte.


Excepción: The file "/home/myforum/public_html/foro/ext/sitesplat/cloudflareip/config/services.yml" does not contain valid YAML: The reserved indicator "@" cannot start a plain scalar; you need to quote the scalar at line 5 (near "- @request").

#0 /home/myforum/public_html/foro/vendor/symfony/dependency-injection/Loader/YamlFileLoader.php(117): Symfony\Component\DependencyInjection\Loader\YamlFileLoader->loadFile('/home/foroaleja...')
#1 /home/myforum/public_html/foro/phpbb/extension/di/extension_base.php(99): Symfony\Component\DependencyInjection\Loader\YamlFileLoader->load('services.yml')
#2 /home/myforum/public_html/foro/phpbb/extension/di/extension_base.php(63): phpbb\extension\di\extension_base->load_services(Object(Symfony\Component\DependencyInjection\Compiler\MergeExtensionConfigurationContainerBuilder))
#3 /home/myforum/public_html/foro/vendor/symfony/dependency-injection/Compiler/MergeExtensionConfigurationPass.php(71): phpbb\extension\di\extension_base->load(Array, Object(Symfony\Component\DependencyInjection\Compiler\MergeExtensionConfigurationContainerBuilder))
#4 /home/myforum/public_html/foro/vendor/symfony/http-kernel/DependencyInjection/MergeExtensionConfigurationPass.php(39): Symfony\Component\DependencyInjection\Compiler\MergeExtensionConfigurationPass->process(Object(Symfony\Component\DependencyInjection\ContainerBuilder))
#5 /home/myforum/public_html/foro/vendor/symfony/dependency-injection/Compiler/Compiler.php(140): Symfony\Component\HttpKernel\DependencyInjection\MergeExtensionConfigurationPass->process(Object(Symfony\Component\DependencyInjection\ContainerBuilder))
#6 /home/myforum/public_html/foro/vendor/symfony/dependency-injection/ContainerBuilder.php(789): Symfony\Component\DependencyInjection\Compiler\Compiler->compile(Object(Symfony\Component\DependencyInjection\ContainerBuilder))
#7 /home/myforum/public_html/foro/phpbb/di/container_builder.php(203): Symfony\Component\DependencyInjection\ContainerBuilder->compile()
#8 /home/myforum/public_html/foro/common.php(115): phpbb\di\container_builder->get_container()
#9 /home/myforum/public_html/foro/adm/index.php(23): require('/home/foroaleja...')
#10 {main}
Some other info or detail that you need, indicate at me and post the info.

Thanks and regards.
wonder_wonder
Registered User
Posts: 34
Joined: Thu Feb 16, 2017 2:52 pm
Contact:

Re: With phpbb 3.3.0 not work

by omeroon » Thu Jan 16, 2020 7:40 pm

Very easy fix: edit the services.yml and put quotes around @request.

So:

Code: Select all

services:
    sitesplat.cloudflareip.listener:
        class: sitesplat\cloudflareip\event\listener
        arguments:
            - '@request'
        tags:
            - { name: event.listener }
omeroon
Registered User
Posts: 26
Joined: Thu Apr 26, 2018 1:39 pm
Contact:

Re: With phpbb 3.3.0 not work

by wonder_wonder » Thu Jan 16, 2020 9:21 pm

Thanks @omeroon !
wonder_wonder
Registered User
Posts: 34
Joined: Thu Feb 16, 2017 2:52 pm
Contact:

Re: With phpbb 3.3.0 not work

by Swanny » Sat Jan 18, 2020 12:58 am

Do you plan on making that change and getting it compatible with 3.3.0 natively? Release a 1.0.1 version??
Swanny
Registered User
Posts: 454
Joined: Sun Apr 14, 2002 2:11 am
Location: Canada

Re: With phpbb 3.3.0 not work

by SiteSplat » Mon Feb 10, 2020 3:44 pm

Swanny wrote:Do you plan on making that change and getting it compatible with 3.3.0 natively? Release a 1.0.1 version??
New version that supports phpBB 3.3 is here:
https://sitesplat.com/phpBB3/viewtopic. ... 387#p19387
User avatar
SiteSplat
Registered User
Posts: 82
Joined: Sun Sep 07, 2014 7:17 pm
Contact: