Posts merging

Symfony error on phpBB 3.3 - update required - Posts merging

Symfony error on phpBB 3.3 - update required

by IoHL-be » Tue Jan 07, 2020 10:17 pm

I just tested it on a local board with phpBB 3.3 and it displays the following error in the ACP:
postmergingerrorphpbb33.jpg
So it appears an update is needed.
IoHL-be
Registered User
Posts: 46
Joined: Tue Oct 09, 2018 3:50 pm

Re: Symfony error on phpBB 3.3 - update required

by rxu » Wed Jan 08, 2020 4:40 am

ext/rxu/PostsMerging/config/services.yml should be as following:

Code: Select all

services:
    rxu.PostsMerging.listener:
        class: rxu\PostsMerging\event\listener
        arguments:
            - '@config'
            - '@config_text'
            - '@auth'
            - '@request'
            - '@user'
            - '@notification_manager'
            - '@dispatcher'
            - '@template'
            - '@rxu.PostsMerging.helper'
            - '%core.root_path%'
            - '%core.php_ext%'
        tags:
            - { name: event.listener }
    rxu.PostsMerging.helper:
        class: rxu\PostsMerging\core\helper
        arguments:
            - '@config'
            - '@dbal.conn'
            - '@auth'
            - '@user'
            - '@dispatcher'
            - '%core.root_path%'
            - '%core.php_ext%'
rxu
Extensions Development Team
Posts: 3951
Joined: Wed Oct 25, 2006 12:46 pm
Location: Siberia, Russian Federation

Re: Symfony error on phpBB 3.3 - update required

by kirill1123 » Fri Apr 16, 2021 1:10 pm

ext/rxu/PostsMerging/config/services.yml should be as following:
Don't use it! I don't know, maybe it coincidance, but after when I modify file, my site stopped working
kirill1123
Registered User
Posts: 6
Joined: Thu Apr 15, 2021 11:28 am

Re: Symfony error on phpBB 3.3 - update required

by BBBenj » Fri Jan 07, 2022 4:41 pm

kirill1123 wrote:Don't use it! I don't know, maybe it coincidance, but after when I modify file, my site stopped working
I installed this extension without this modification: same problem as you.

Then I DEACTIVATED the extension, erased all datas.

Then I installed it again. And everything is now OK. And it works exactly like it should do.

Thanks RXU.
User avatar
BBBenj
Registered User
Posts: 164
Joined: Mon Jun 02, 2014 8:05 pm
Name: Benjamin

Re: Symfony error on phpBB 3.3 - update required

by Ch3vr0n » Sat Sep 24, 2022 1:15 pm

Sorry to bump this but i tried it your way @BBBenj without success.

Install > red error > deactivated > remove data > reactivate > still red error. Leaving it enabled breaks the "extensions" tab. Using phpbb 3.3.8

Exception: The file "/var/www/vhosts/sitename.tld/httpdocs/ext/rxu/PostsMerging/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 "- @config").

#0 /var/www/vhosts/sitename.tld/httpdocs/vendor/symfony/dependency-injection/Loader/YamlFileLoader.php(117): Symfony\Component\DependencyInjection\Loader\YamlFileLoader->loadFile()
#1 /var/www/vhosts/sitename.tld/httpdocs/phpbb/extension/di/extension_base.php(99): Symfony\Component\DependencyInjection\Loader\YamlFileLoader->load()
#2 /var/www/vhosts/sitename.tld/httpdocs/phpbb/extension/di/extension_base.php(63): phpbb\extension\di\extension_base->load_services()
#3 /var/www/vhosts/sitename.tld/httpdocs/vendor/symfony/dependency-injection/Compiler/MergeExtensionConfigurationPass.php(71): phpbb\extension\di\extension_base->load()
#4 /var/www/vhosts/sitename.tld/httpdocs/vendor/symfony/http-kernel/DependencyInjection/MergeExtensionConfigurationPass.php(39): Symfony\Component\DependencyInjection\Compiler\MergeExtensionConfigurationPass->process()
#5 /var/www/vhosts/sitename.tld/httpdocs/vendor/symfony/dependency-injection/Compiler/Compiler.php(140): Symfony\Component\HttpKernel\DependencyInjection\MergeExtensionConfigurationPass->process()
#6 /var/www/vhosts/sitename.tld/httpdocs/vendor/symfony/dependency-injection/ContainerBuilder.php(789): Symfony\Component\DependencyInjection\Compiler\Compiler->compile()
#7 /var/www/vhosts/sitename.tld/httpdocs/phpbb/di/container_builder.php(223): Symfony\Component\DependencyInjection\ContainerBuilder->compile()
#8 /var/www/vhosts/sitename.tld/httpdocs/common.php(117): phpbb\di\container_builder->get_container()
#9 /var/www/vhosts/sitename.tld/httpdocs/adm/index.php(23): require('...')
#10 {main}
https://www.3dprintforum.eu | New home for Belgian and Netherlands 3d printing like-minded, hobbyists and professionals.
Ch3vr0n
Registered User
Posts: 108
Joined: Sat Sep 24, 2022 1:08 pm

Re: Symfony error on phpBB 3.3 - update required

by rxu » Sat Sep 24, 2022 4:10 pm

I guess you did those edits wrong. Please re-read the post.
rxu
Extensions Development Team
Posts: 3951
Joined: Wed Oct 25, 2006 12:46 pm
Location: Siberia, Russian Federation

Re: Symfony error on phpBB 3.3 - update required

by Ch3vr0n » Sat Sep 24, 2022 10:35 pm

I didn't edit anything yet as the last post before mine indicated that simply installing the extension without the modification might work. I guess not. I'll make the modifications tomorrow (going to bed now). Is there a configuration page anywhere (or icon or something) visible in the ACP/MCP after the modification has been made?
https://www.3dprintforum.eu | New home for Belgian and Netherlands 3d printing like-minded, hobbyists and professionals.
Ch3vr0n
Registered User
Posts: 108
Joined: Sat Sep 24, 2022 1:08 pm

Re: Symfony error on phpBB 3.3 - update required

by rxu » Tue Sep 27, 2022 4:07 pm

Ch3vr0n wrote: Is there a configuration page anywhere (or icon or something) visible in the ACP/MCP after the modification has been made?
Nope.
Actually you could try installing from Github repo https://github.com/rxu/posts_merging, that code is much newer but wasn't officially validated by phpBB team. It should work fine but that's on your own risk.
rxu
Extensions Development Team
Posts: 3951
Joined: Wed Oct 25, 2006 12:46 pm
Location: Siberia, Russian Federation