Symfony error on phpBB 3.3 - update required - Posts merging
Symfony error on phpBB 3.3 - update required
I just tested it on a local board with phpBB 3.3 and it displays the following error in the ACP:
So it appears an update is needed.
So it appears an update is needed.
-
- Registered User
- Posts: 46
- Joined: Tue Oct 09, 2018 3:50 pm
Re: Symfony error on phpBB 3.3 - update required
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%'
-
- 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
Don't use it! I don't know, maybe it coincidance, but after when I modify file, my site stopped workingext/rxu/PostsMerging/config/services.yml
should be as following:
-
- Registered User
- Posts: 6
- Joined: Thu Apr 15, 2021 11:28 am
Re: Symfony error on phpBB 3.3 - update required
I installed this extension without this modification: same problem as you.kirill1123 wrote:Don't use it! I don't know, maybe it coincidance, but after when I modify file, my site stopped working
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.
-
- Registered User
- Posts: 164
- Joined: Mon Jun 02, 2014 8:05 pm
- Name: Benjamin
Re: Symfony error on phpBB 3.3 - update required
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
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.
-
- Registered User
- Posts: 108
- Joined: Sat Sep 24, 2022 1:08 pm
Re: Symfony error on phpBB 3.3 - update required
I guess you did those edits wrong. Please re-read the post.
-
- 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
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.
-
- Registered User
- Posts: 108
- Joined: Sat Sep 24, 2022 1:08 pm
Re: Symfony error on phpBB 3.3 - update required
Nope.Ch3vr0n wrote: Is there a configuration page anywhere (or icon or something) visible in the ACP/MCP after the modification has been made?
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.
-
- Extensions Development Team
- Posts: 3951
- Joined: Wed Oct 25, 2006 12:46 pm
- Location: Siberia, Russian Federation