Acquia Migrate: Accelerate fails on activation

Created on 23 October 2023, about 1 year ago
Updated 7 December 2023, about 1 year ago

I've installed the AMA module with composer. When trying to activate I get this error message:

The website encountered an unexpected error. Please try again later.
AssertionError: assert(isset($provider->_serviceId)) in assert() (line 35 of modules/contrib/decoupled_pages/src/Routing/DatasetRouteEnhancer.php).

assert(, 'assert(isset($provider->_serviceId))') (Line: 35)
Drupal\decoupled_pages\Routing\DatasetRouteEnhancer->addProvider(Object)
call_user_func_array(Array, Array) (Line: 276)
Drupal\Component\DependencyInjection\Container->createService(Array, 'decoupled_pages.dataset_enhancer') (Line: 177)
Drupal\Component\DependencyInjection\Container->get('decoupled_pages.dataset_enhancer', 1) (Line: 434)
Drupal\Component\DependencyInjection\Container->resolveServicesAndParameters(Array) (Line: 273)
Drupal\Component\DependencyInjection\Container->createService(Array, 'router.no_access_checks') (Line: 177)
Drupal\Component\DependencyInjection\Container->get('router.no_access_checks', 1) (Line: 434)
Drupal\Component\DependencyInjection\Container->resolveServicesAndParameters(Array) (Line: 237)
Drupal\Component\DependencyInjection\Container->createService(Array, 'router') (Line: 177)
Drupal\Component\DependencyInjection\Container->get('router', 1) (Line: 434)
Drupal\Component\DependencyInjection\Container->resolveServicesAndParameters(Array) (Line: 237)
Drupal\Component\DependencyInjection\Container->createService(Array, 'router_listener') (Line: 177)
Drupal\Component\DependencyInjection\Container->get('router_listener') (Line: 136)
Drupal\Component\EventDispatcher\ContainerAwareEventDispatcher->dispatch(Object, 'kernel.request') (Line: 145)
Symfony\Component\HttpKernel\HttpKernel->handleRaw(Object, 1) (Line: 81)
Symfony\Component\HttpKernel\HttpKernel->handle(Object, 1, 1) (Line: 58)
Drupal\Core\StackMiddleware\Session->handle(Object, 1, 1) (Line: 48)
Drupal\Core\StackMiddleware\KernelPreHandle->handle(Object, 1, 1) (Line: 106)
Drupal\page_cache\StackMiddleware\PageCache->pass(Object, 1, 1) (Line: 85)
Drupal\page_cache\StackMiddleware\PageCache->handle(Object, 1, 1) (Line: 48)
Drupal\Core\StackMiddleware\ReverseProxyMiddleware->handle(Object, 1, 1) (Line: 51)
Drupal\Core\StackMiddleware\NegotiationMiddleware->handle(Object, 1, 1) (Line: 23)
Stack\StackedHttpKernel->handle(Object, 1, 1) (Line: 718)
Drupal\Core\DrupalKernel->handle(Object) (Line: 19)

I'm using a MAC with M1 chip and macos 12.7 with MAMP pro and PHP 8.1.3. Any clue what could cause this issue?

πŸ’¬ Support request
Status

Fixed

Version

1.8

Component

Code

Created by

πŸ‡©πŸ‡ͺGermany wla_g

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

  • Issue created by @wla_g
  • πŸ‡ΊπŸ‡ΈUnited States bsnodgrass

    On Drupal 9.5.11 enabling AMA only, the module and dependencies install but shows a warning:

    Warning: Undefined property: Drupal\acquia_migrate\DecoupledPages\DataProvider::$_serviceId in Drupal\decoupled_pages\Routing\DatasetRouteEnhancer->addProvider() (line 36 of modules/contrib/decoupled_pages/src/Routing/DatasetRouteEnhancer.php)

    The warning shows twice on module list with the following detail:

    Drupal\decoupled_pages\Routing\DatasetRouteEnhancer->addProvider(Object)
    call_user_func_array(Array, Array) (Line: 276)
    Drupal\Component\DependencyInjection\Container->createService(Array, 'decoupled_pages.dataset_enhancer') (Line: 177)
    Drupal\Component\DependencyInjection\Container->get('decoupled_pages.dataset_enhancer', 1) (Line: 434)
    Drupal\Component\DependencyInjection\Container->resolveServicesAndParameters(Array) (Line: 273)
    Drupal\Component\DependencyInjection\Container->createService(Array, 'router.no_access_checks') (Line: 177)
    Drupal\Component\DependencyInjection\Container->get('router.no_access_checks', 1) (Line: 434)
    Drupal\Component\DependencyInjection\Container->resolveServicesAndParameters(Array) (Line: 237)
    Drupal\Component\DependencyInjection\Container->createService(Array, 'router') (Line: 177)
    Drupal\Component\DependencyInjection\Container->get('router', 1) (Line: 434)
    Drupal\Component\DependencyInjection\Container->resolveServicesAndParameters(Array) (Line: 237)
    Drupal\Component\DependencyInjection\Container->createService(Array, 'router_listener') (Line: 177)
    Drupal\Component\DependencyInjection\Container->get('router_listener') (Line: 136)
    Drupal\Component\EventDispatcher\ContainerAwareEventDispatcher->dispatch(Object, 'kernel.request') (Line: 145)
    Symfony\Component\HttpKernel\HttpKernel->handleRaw(Object, 1) (Line: 81)
    Symfony\Component\HttpKernel\HttpKernel->handle(Object, 1, 1) (Line: 58)
    Drupal\Core\StackMiddleware\Session->handle(Object, 1, 1) (Line: 48)
    Drupal\Core\StackMiddleware\KernelPreHandle->handle(Object, 1, 1) (Line: 106)
    Drupal\page_cache\StackMiddleware\PageCache->pass(Object, 1, 1) (Line: 85)
    Drupal\page_cache\StackMiddleware\PageCache->handle(Object, 1, 1) (Line: 48)
    Drupal\Core\StackMiddleware\ReverseProxyMiddleware->handle(Object, 1, 1) (Line: 51)
    Drupal\Core\StackMiddleware\NegotiationMiddleware->handle(Object, 1, 1) (Line: 23)
    Stack\StackedHttpKernel->handle(Object, 1, 1) (Line: 718)
    Drupal\Core\DrupalKernel->handle(Object) (Line: 19)

  • Status changed to Postponed: needs info about 1 year ago
  • πŸ‡§πŸ‡ͺBelgium wim leers Ghent πŸ‡§πŸ‡ͺπŸ‡ͺπŸ‡Ί

    I've installed the AMA module with composer.

    Did you install it using composer require drupal/acquia_migrate? I bet you did πŸ˜… That won't work.

    See https://dev.acquia.com/blog/acquia-migrate-accelerate-now-open-source#steps (the ) section.

    I just updated the project page per πŸ’¬ Installing with composer works, but running the module will fail. Fixed β€” see:

  • πŸ‡ΊπŸ‡ΈUnited States bsnodgrass

    Yes indeed, I did install using composer require... I missed that. Thank you, I'll remember for my next pass at it.

  • πŸ‡§πŸ‡ͺBelgium wim leers Ghent πŸ‡§πŸ‡ͺπŸ‡ͺπŸ‡Ί

    Great! 😊

    Thanks for the lightning-fast response! πŸ˜„ And please create an issue to report your experience β€” both when it's good or bad!

  • Status changed to Fixed about 1 year ago
  • πŸ‡§πŸ‡ͺBelgium wim leers Ghent πŸ‡§πŸ‡ͺπŸ‡ͺπŸ‡Ί
  • Automatically closed - issue fixed for 2 weeks with no activity.

Production build 0.71.5 2024