Fatal error after upgrade to drupal 10.3

Created on 9 July 2024, 5 months ago

Problem/Motivation

After the upgrade to Drupal 10.3 this error is thrown,

Fatal error: Class Drupal\config_track\Extension\ModuleHandler contains 1 abstract method and must therefore be declared abstract or implement the remaining methods (Drupal\Core\DestructableInterface::destruct) in /app/drupal/modules/contrib/config_track/src/Extension/ModuleHandler.php on line 15

Steps to reproduce

Upgrade to Drupal 10.3.

Proposed resolution

Implementing the remaining methods.

🐛 Bug report
Status

Active

Version

1.0

Component

Code

Created by

🇩🇪Germany eugen zerr

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

Merge Requests

Comments & Activities

  • Issue created by @eugen zerr
  • Status changed to Needs review 5 months ago
  • 🇮🇹Italy kopeboy Milan

    That applied and removed the fatal error at least.

    Now I have a deprecation warning, but I'm not sure it's related:

    Deprecated function: Creation of dynamic property Drupal\config_track\Controller\ConfigTrackController::$configManager is deprecated in Drupal\config_track\Controller\ConfigTrackController->__construct() (line 61 of modules/contrib/config_track/src/Controller/ConfigTrackController.php).

    Drupal\config_track\Controller\ConfigTrackController->__construct(Object, Object, Object, Object) (Line: 69)
    Drupal\config_track\Controller\ConfigTrackController::create(Object) (Line: 41)
    Drupal\Core\DependencyInjection\ClassResolver->getInstanceFromDefinition('\Drupal\config_track\Controller\ConfigTrackController') (Line: 100)
    Drupal\Core\Utility\CallableResolver->getCallableFromDefinition('\Drupal\config_track\Controller\ConfigTrackController::overview') (Line: 50)
    Drupal\Core\Controller\ControllerResolver->getControllerFromDefinition('\Drupal\config_track\Controller\ConfigTrackController::overview', '/config-revisions') (Line: 65)
    Drupal\Core\Controller\ControllerResolver->getController(Object) (Line: 164)
    Symfony\Component\HttpKernel\HttpKernel->handleRaw(Object, 1) (Line: 76)
    Symfony\Component\HttpKernel\HttpKernel->handle(Object, 1, 1) (Line: 53)
    Drupal\Core\StackMiddleware\Session->handle(Object, 1, 1) (Line: 48)
    Drupal\Core\StackMiddleware\KernelPreHandle->handle(Object, 1, 1) (Line: 28)
    Drupal\Core\StackMiddleware\ContentLength->handle(Object, 1, 1) (Line: 32)
    Drupal\big_pipe\StackMiddleware\ContentLength->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: 36)
    Drupal\Core\StackMiddleware\AjaxPageState->handle(Object, 1, 1) (Line: 51)
    Drupal\Core\StackMiddleware\StackedHttpKernel->handle(Object, 1, 1) (Line: 741)
    Drupal\Core\DrupalKernel->handle(Object) (Line: 19)

  • 🇩🇪Germany hchonov 🇪🇺🇩🇪🇧🇬

    The method in the MR needs also to be implemented properly and not to be left with a simple TODO :).

    • b0bd0a28 committed on 1.0.x
      Issue #3460219 by hchonov: Fatal error after upgrade to drupal 10.3
      
  • 🇩🇪Germany hchonov 🇪🇺🇩🇪🇧🇬

    This is now fixed.

  • Automatically closed - issue fixed for 2 weeks with no activity.

Production build 0.71.5 2024