Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Hi,
I found the related issue, but the patch won't work.
I get this;
root@vm:/home/luxcarcare/public_html/modules/page_manager# patch -p 1 < 2918564-22.patch
patching file page_manager.services.yml
1 out of 1 hunk ignored -- saving rejects to file page_manager.services.yml.rej
patching file src/Routing/RouteEnhancerCollectorTrait.php
Hunk #1 FAILED at 7 (different line endings).
Hunk #2 FAILED at 35 (different line endings).
Hunk #3 FAILED at 54 (different line endings).
Hunk #4 FAILED at 70 (different line endings).
4 out of 4 hunks FAILED -- saving rejects to file src/Routing/RouteEnhancerCollectorTrait.php.rej
patching file src/Routing/VariantRouteFilter.php
Hunk #1 FAILED at 1 (different line endings).
Hunk #2 FAILED at 25 (different line endings).
Hunk #3 FAILED at 141 (different line endings).
3 out of 3 hunks FAILED -- saving rejects to file src/Routing/VariantRouteFilter.php.rej
patching file tests/src/Unit/VariantRouteFilterTest.php
Hunk #1 FAILED at 14 (different line endings).
Hunk #2 FAILED at 331 (different line endings).
Hunk #3 FAILED at 375 (different line endings).
Hunk #4 FAILED at 436 (different line endings).
4 out of 4 hunks FAILED -- saving rejects to file tests/src/Unit/VariantRouteFilterTest.php.rej
Could anyone guide me though please?
Thanks in advance
Full error:
Symfony\Component\DependencyInjection\Exception\LogicException: Service 'page_manager.variant_route_filter' for consumer 'router.no_access_checks' does not implement Drupal\Core\Routing\FilterInterface. in Drupal\Core\DependencyInjection\Compiler\TaggedHandlersPass->processServiceCollectorPass() (line 164 of /home/luxcarcare/public_html/core/lib/Drupal/Core/DependencyInjection/Compiler/TaggedHandlersPass.php).
Drupal\Core\DependencyInjection\Compiler\TaggedHandlersPass->processServiceCollectorPass(Array, 'router.no_access_checks', Object) (Line: 97)
Drupal\Core\DependencyInjection\Compiler\TaggedHandlersPass->process(Object) (Line: 141)
Symfony\Component\DependencyInjection\Compiler\Compiler->compile(Object) (Line: 757)
Symfony\Component\DependencyInjection\ContainerBuilder->compile() (Line: 1307)
Drupal\Core\DrupalKernel->compileContainer() (Line: 884)
Drupal\Core\DrupalKernel->initializeContainer() (Line: 466)
Drupal\Core\DrupalKernel->boot() (Line: 656)
Drupal\Core\DrupalKernel->handle(Object) (Line: 19)
Comment | File | Size | Author |
---|---|---|---|
#3 | page_manager-2955355-2.patch | 1005 bytes | jadermecino |
Comments
Comment #2
dravenk+1
Comment #3
jadermecino CreditAttribution: jadermecino as a volunteer commentedThis solution works fine for me.
Comment #4
jadermecino CreditAttribution: jadermecino as a volunteer commentedComment #5
espurnesI was getting the following message:
"[error] Service 'page_manager.variant_route_filter' for consumer 'router.no_access_checks' does not implement Drupal\Core\Routing\FilterInterface."
and "2918564-22.patch" didn't solved the problem.
it seems #3 do solves the problem.
thankyou jadermecino.
Comment #6
Nigel CunninghamSuccessfully tested here.
Comment #7
BerdirThere have been several fixes already in the 8.x-4.x-dev branch, the patch also didn't apply and therefore can't be RTBC.
Before reporting a bug, always check the dev branch first. Any changes is made in the dev branch first.
Comment #8
Nigel CunninghamAh... you still have the 8.x-1.x branch as the default when you check out the git repo. Could I persuade you to change that to the current tip so people don't make the same mistake in future?
git checkout -b 8.x-4.x remotes/origin/8.x-4.x
gives me a branch that doesn't cause any errors on cache clear etc. Thanks.
Comment #9
MetalG CreditAttribution: MetalG commentedHow do I apply this #3? I'm kinda not used to do this : )
Comment #10
markie CreditAttribution: markie at Mediacurrent commentedCan confirm #3 applies cleanly against the latest beta pulled in from composer. For more information on how to apply a patch, see https://www.drupal.org/patch/apply
Comment #11
DamienMcKennaComment #12
DamienMcKennaIf this has been fixed elsewhere then lets just mark this one "fixed".
Comment #13
techbuilders CreditAttribution: techbuilders commentedWill someone please be kind enough to let us know the folder path to apply the patch?
Thanks in advance!
Comment #14
markie CreditAttribution: markie at Mediacurrent commentedAll patches are usually created relative to the module root. So, in most cases, for this module, /path_to_site_root/modules/contrib/page_manager. This is also noted in the first line of the patch
This is all documented at https://www.drupal.org/patch/apply.
Personally, I find using Composer to apply patches for me to be the easiest. See http://www.anexusit.com/blog/how-to-apply-patches-drupal-8-composer
Comment #15
arosboro CreditAttribution: arosboro at DropForge Labs commentedJust noticed this was not fixed in beta2 for me. I had to apply patch #3 and everything worked. Thanks for the contribution @jadermecino
Comment #16
vishusrinivasan CreditAttribution: vishusrinivasan commentedCan confirm Patch #3 worked for me.
Comment #17
techbuilders CreditAttribution: techbuilders commentedThanks @markie #3 worked
Comment #18
vurt CreditAttribution: vurt as a volunteer and at Computer Manufaktur GmbH commentedThe error appeared when I switched from Drupal Core 8.4 to 8.5.
Patch #3 fixed the problem. Thanks!
Comment #19
manuel.adanDup of #2918564: Update 'page_manager.variant_route_filter' service according to core changes
Comment #20
KVF-IT CreditAttribution: KVF-IT commentedWhen I try to add Patch #3 I get
Hunk #1 FAILED at 11.
Hunk #2 Failed at 25.
2 out of 2 hunks FAILED -- saving rejects to file src/Routing/VariantRouteFilter.php.rej
Comment #21
KVF-IT CreditAttribution: KVF-IT commentedWhen I try to add Patch 2918564-22.patch I get
Hunk #1 FAILED at 27.
1 out of 1 hunk FAILED -- saving rejects to file page_manager.services.yml.rej
patching file src/Routing/RouteEnhancerCollectorTrait.php
Hunk #1 FAILED at 7.
Hunk #2 FAILED at 35.
Hunk #3 FAILED at 54.
Hunk #4 FAILED at 70.
4 out of 4 hunks FAILED -- saving rejects to file src/Routing/RouteEnhancerCollectorTrait.php.rej
patching file src/Routing/VariantRouteFilter.php
Hunk #1 FAILED at 1.
Hunk #2 FAILED at 25.
Hunk #3 FAILED at 141.
3 out of 3 hunks FAILED -- saving rejects to file src/Routing/VariantRouteFilter.php.rej
patching file tests/src/Unit/VariantRouteFilterTest.php
Reversed (or previously applied) patch detected! Assume -R? [n] y
intranet:/var/www/intranet/modules/page_manager$ sudo patch -p 1 < 2918564-22.patch
patching file page_manager.services.yml
Reversed (or previously applied) patch detected! Assume -R? [n] y
patching file src/Routing/RouteEnhancerCollectorTrait.php
Hunk #1 FAILED at 7.
Hunk #2 FAILED at 35.
Hunk #3 FAILED at 54.
Hunk #4 FAILED at 70.
4 out of 4 hunks FAILED -- saving rejects to file src/Routing/RouteEnhancerCollectorTrait.php.rej
patching file src/Routing/VariantRouteFilter.php
Hunk #1 FAILED at 1.
Hunk #2 FAILED at 25.
Hunk #3 FAILED at 141.
3 out of 3 hunks FAILED -- saving rejects to file src/Routing/VariantRouteFilter.php.rej
patching file tests/src/Unit/VariantRouteFilterTest.php
Comment #22
KVF-IT CreditAttribution: KVF-IT commentedGot it fixed!
Was using Drupal 8.4.2, and Page Manager 8.x-4.o-beta3.
Uninstalled Page Manager, and installed Page Manager 8.x-4.o-beta2, and it worked out.
Comment #23
mcdeltat CreditAttribution: mcdeltat commentedSince I can't comment on any of the duplicate issues, it seems that this problem may still be affecting me on 8.6.1. I was stuck with some composer stuff, deleted my composer.lock and vendor directories and installed again, and now get this error. So is this fixed? I'm slightly new to Drupal so is Page Manager a part of drupal/core? Why am I not seeing when running
composer show
?Relevant parts of my composer.json:
So according to all the other pages this shouldn't be affected me? It seemed like this was patched in 8.5.x no?