1.0 beta 1 and above seem to break Drupal 8 compatibility despite being listed as Drupal 8 compatible

Created on 8 December 2022, almost 2 years ago
Updated 11 July 2024, 5 months ago

Problem/Motivation

In attempting to update contenta_jsonapi to latest, I saw that it also updated schemata to 1 beta 3, which was great, since I had been seeing that in my module update status page for a while as an available update compatible with Drupal 8.

I was surprised though, that after the update and subsequent deployment, I got this error:

Fatal error: Uncaught Error: Class 'Drupal\Core\Routing\RouteObjectInterface' not found in ..../web/modules/contrib/schemata/src/Routing/Routes.php:108

Schemata previous to the beta versions was using the symfony RouteObjectInterface; the beta versions appear to be expecting Drupal to have RouteObjectInterface in Drupal core, which does not exist in Drupal 8.9.20.

Steps to reproduce

Install Drupal 8.9.20 (latest).
`composer require 'drupal/schemata:1.0-beta3'` (or, if you are using contenta_jsonapi you can also do `composer update contentacms/contenta_jsonapi` which will bring in schemata beta 3.
White screen of death.

Proposed resolution

Fix the requirements on the beta releases to no longer say they support Drupal 8 since they don't support Drupal 8.

See this github issue for reference

🐛 Bug report
Status

Fixed

Component

Code

Created by

🇺🇸United States apotek

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

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

  • 🇭🇺Hungary Balu Ertl Budapest 🇪🇺

    Referenced this ticket on #2821760-13: 1.0 release roadmap in favour of dropping support of D8.

  • 🇮🇹Italy trickfun

    Patch doesn't work with drupal 10.3
    Thank you

  • 🇮🇹Italy trickfun

    Error now is

    [error]  Error: Class "Symfony\Cmf\Component\Routing\RouteObjectInterface" not found in Drupal\schemata\Routing\Routes->createRoute() (line 108 of /var/www/html/web/modules/contrib/schemata/src/Routing/Routes.php) #0 /var/www/html/web/modules/contrib/schemata/src/Routing/Routes.php(75): Drupal\schemata\Routing\Routes->createRoute('block')
    > #1 [internal function]: Drupal\schemata\Routing\Routes->routes()
    > #2 /var/www/html/web/core/lib/Drupal/Core/Routing/RouteBuilder.php(146): call_user_func(Array)
    > #3 /var/www/html/web/core/lib/Drupal/Core/ProxyClass/Routing/RouteBuilder.php(83): Drupal\Core\Routing\RouteBuilder->rebuild()
    > #4 /var/www/html/web/core/includes/common.inc(518): Drupal\Core\ProxyClass\Routing\RouteBuilder->rebuild()
    > #5 /var/www/html/vendor/drush/drush/src/Commands/core/UpdateDBCommands.php(463): drupal_flush_all_caches()
    > #6 /var/www/html/vendor/drush/drush/includes/batch.inc(257): Drush\Commands\core\UpdateDBCommands::cacheRebuild(Array)
    > #7 /var/www/html/vendor/drush/drush/includes/batch.inc(204): _drush_batch_worker()
    > #8 /var/www/html/vendor/drush/drush/includes/batch.inc(75): _drush_batch_command('246')
    > #9 /var/www/html/vendor/drush/drush/src/Commands/core/UpdateDBCommands.php(136): drush_batch_command('246')
    > #10 [internal function]: Drush\Commands\core\UpdateDBCommands->process('246', Array)
    > #11 /var/www/html/vendor/consolidation/annotated-command/src/CommandProcessor.php(276): call_user_func_array(Array, Array)
    > #12 /var/www/html/vendor/consolidation/annotated-command/src/CommandProcessor.php(212): Consolidation\AnnotatedCommand\CommandProcessor->runCommandCallback(Array, Object(Consolidation\AnnotatedCommand\CommandData))
    > #13 /var/www/html/vendor/consolidation/annotated-command/src/CommandProcessor.php(176): Consolidation\AnnotatedCommand\CommandProcessor->validateRunAndAlter(Array, Array, Object(Consolidation\AnnotatedCommand\CommandData))
    
    • japerry committed e43838e5 on 8.x-1.x
      Issue #3325920: Remove support for Drupal 8 as the module doesn't...
  • Status changed to Fixed 5 months ago
  • 🇺🇸United States japerry KVUO
  • Automatically closed - issue fixed for 2 weeks with no activity.

Production build 0.71.5 2024