Upgrade from 1.3 to 2.0.11 break the system

Created on 23 November 2023, 7 months ago

Problem/Motivation

After upgrading from 1.3 to 2.0.11, the system breaks with the error below:

The website encountered an unexpected error. Please try again later.

Symfony\Component\DependencyInjection\Exception\ServiceNotFoundException: You have requested a non-existent service "block_class.helper". in Drupal\Component\DependencyInjection\Container->get() (line 157 of core/lib/Drupal/Component/DependencyInjection/Container.php).

Steps to reproduce

composer require 'drupal/block_class:^2.0'

Back to the system, the error appears

Proposed resolution

Disable the module manually

Remaining tasks

User interface changes

API changes

Data model changes

πŸ› Bug report
Status

Closed: works as designed

Version

2.0

Component

Code

Created by

πŸ‡¦πŸ‡ΊAustralia airhitam

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

Comments & Activities

  • Issue created by @airhitam
  • Status changed to Postponed: needs info 7 months ago
  • πŸ‡§πŸ‡·Brazil RenatoG Campinas

    After the upgrade have tried to run update.php and clear the caches?

    Explanation

    • The last version of 1.x is 1.3
    • The last version of 2.x is 2.0.11

    So this upgrade from 1.3 to 2.0.11 is the most common, and according to the project usage β†’ , there are 21,616 using 2.x version, so it's curious that for them is working fine

    I'd suggest:

    1. Upgrade from 1.3 to 2.0.11
    2. Run drush updb
    3. Run drush cr

    If didn't work, my recommendation as workaround:

    1. Upgrade from 1.3 to 2.0.0
    2. Run drush updb
    3. Run drush cr
    4. Upgrade from 2.0.0 to 2.0.11
  • πŸ‡¦πŸ‡ΊAustralia airhitam

    After the upgrade, I was unable to run update.php.

    The ./vendor/bin/drush updb fixed the issue.

    Thank you.

  • Status changed to Closed: works as designed 7 months ago
  • πŸ‡§πŸ‡·Brazil RenatoG Campinas

    I’m happy to know that

    So, closing the issue

Production build 0.69.0 2024