Theme declares Drupal 10 compatibility, but it is not

Created on 18 November 2022, about 2 years ago
Updated 13 October 2023, about 1 year ago

Problem/Motivation

The upgrade status module still reports a couple of deprecatations being used.


CONTRIBUTED PROJECTS
--------------------------------------------------------------------------------
Mediteran 8.x-1.29
Scanned on 18.11.2022 11:30.

24 warnings found.

web/themes/contrib/mediteran/templates/admin/ckeditor-settings-toolbar.html.twig:
┌─────────┬──────┬──────────────────────────────────────────────────────────────┐
│ STATUS  │ LINE │                           MESSAGE                            │
├─────────┼──────┼──────────────────────────────────────────────────────────────┤
│ Sjekk   │ 0    │ The spaceless tag in                                         │
│ manuelt │      │ "themes/contrib/mediteran/templates/admin/ckeditor-settings- │
│         │      │ toolbar.html.twig" at line 14 is deprecated since Twig 2.7,  │
│         │      │ use the "spaceless" filter with the "apply" tag instead. See │
│         │      │ https://drupal.org/node/3071078.                             │
│         │      │                                                              │
└─────────┴──────┴──────────────────────────────────────────────────────────────┘

web/themes/contrib/mediteran/templates/admin/indentation.html.twig:
┌─────────┬──────┬──────────────────────────────────────────────────────────────┐
│ STATUS  │ LINE │                           MESSAGE                            │
├─────────┼──────┼──────────────────────────────────────────────────────────────┤
│ Sjekk   │ 0    │ Using an "if" condition on "for" tag in                      │
│ manuelt │      │ "themes/contrib/mediteran/templates/admin/indentation.html.t │
│         │      │ wig" at line 12 is deprecated since Twig 2.10.0, use a       │
│         │      │ "filter" filter or an "if" condition inside the "for" body   │
│         │      │ instead (if your condition depends on a variable updated     │
│         │      │ inside the loop). See https://drupal.org/node/3071078.       │
│         │      │                                                              │
└─────────┴──────┴──────────────────────────────────────────────────────────────┘

web/themes/contrib/mediteran/templates/dataset/forum-list.html.twig:
┌─────────┬──────┬──────────────────────────────────────────────────────────────┐
│ STATUS  │ LINE │                           MESSAGE                            │
├─────────┼──────┼──────────────────────────────────────────────────────────────┤
│ Sjekk   │ 0    │ Using an "if" condition on "for" tag in                      │
│ manuelt │      │ "themes/contrib/mediteran/templates/dataset/forum-list.html. │
│         │      │ twig" at line 55 is deprecated since Twig 2.10.0, use a      │
│         │      │ "filter" filter or an "if" condition inside the "for" body   │
│         │      │ instead (if your condition depends on a variable updated     │
│         │      │ inside the loop). See https://drupal.org/node/3071078.       │
│         │      │                                                              │
│ Sjekk   │ 0    │ Using an "if" condition on "for" tag in                      │
│ manuelt │      │ "themes/contrib/mediteran/templates/dataset/forum-list.html. │
│         │      │ twig" at line 63 is deprecated since Twig 2.10.0, use a      │
│         │      │ "filter" filter or an "if" condition inside the "for" body   │
│         │      │ instead (if your condition depends on a variable updated     │
│         │      │ inside the loop). See https://drupal.org/node/3071078.       │
│         │      │                                                              │
└─────────┴──────┴──────────────────────────────────────────────────────────────┘

web/themes/contrib/mediteran/templates/field/link-formatter-link-separate.html.t
wig:
┌─────────┬──────┬──────────────────────────────────────────────────────────────┐
│ STATUS  │ LINE │                           MESSAGE                            │
├─────────┼──────┼──────────────────────────────────────────────────────────────┤
│ Sjekk   │ 0    │ The spaceless tag in                                         │
│ manuelt │      │ "themes/contrib/mediteran/templates/field/link-formatter-lin │
│         │      │ k-separate.html.twig" at line 15 is deprecated since Twig    │
│         │      │ 2.7, use the "spaceless" filter with the "apply" tag         │
│         │      │ instead. See https://drupal.org/node/3071078.                │
│         │      │                                                              │
└─────────┴──────┴──────────────────────────────────────────────────────────────┘

web/themes/contrib/mediteran/templates/form/dropbutton-wrapper.html.twig:
┌─────────┬──────┬──────────────────────────────────────────────────────────────┐
│ STATUS  │ LINE │                           MESSAGE                            │
├─────────┼──────┼──────────────────────────────────────────────────────────────┤
│ Sjekk   │ 0    │ The spaceless tag in                                         │
│ manuelt │      │ "themes/contrib/mediteran/templates/form/dropbutton-wrapper. │
│         │      │ html.twig" at line 13 is deprecated since Twig 2.7, use the  │
│         │      │ "spaceless" filter with the "apply" tag instead. See         │
│         │      │ https://drupal.org/node/3071078.                             │
│         │      │                                                              │
└─────────┴──────┴──────────────────────────────────────────────────────────────┘

web/themes/contrib/mediteran/templates/form/select.html.twig:
┌─────────┬──────┬──────────────────────────────────────────────────────────────┐
│ STATUS  │ LINE │                           MESSAGE                            │
├─────────┼──────┼──────────────────────────────────────────────────────────────┤
│ Sjekk   │ 0    │ The spaceless tag in                                         │
│ manuelt │      │ "themes/contrib/mediteran/templates/form/select.html.twig"   │
│         │      │ at line 13 is deprecated since Twig 2.7, use the "spaceless" │
│         │      │ filter with the "apply" tag instead. See                     │
│         │      │ https://drupal.org/node/3071078.                             │
│         │      │                                                              │
└─────────┴──────┴──────────────────────────────────────────────────────────────┘

web/themes/contrib/mediteran/templates/layout/book-export-html.html.twig:
┌─────────┬──────┬──────────────────────────────────────────────────────────────┐
│ STATUS  │ LINE │                           MESSAGE                            │
├─────────┼──────┼──────────────────────────────────────────────────────────────┤
│ Sjekk   │ 0    │ Using an "if" condition on "for" tag in                      │
│ manuelt │      │ "themes/contrib/mediteran/templates/layout/book-export-html. │
│         │      │ html.twig" at line 37 is deprecated since Twig 2.10.0, use a │
│         │      │ "filter" filter or an "if" condition inside the "for" body   │
│         │      │ instead (if your condition depends on a variable updated     │
│         │      │ inside the loop). See https://drupal.org/node/3071078.       │
│         │      │                                                              │
│ Sjekk   │ 0    │ Using an "if" condition on "for" tag in                      │
│ manuelt │      │ "themes/contrib/mediteran/templates/layout/book-export-html. │
│         │      │ html.twig" at line 41 is deprecated since Twig 2.10.0, use a │
│         │      │ "filter" filter or an "if" condition inside the "for" body   │
│         │      │ instead (if your condition depends on a variable updated     │
│         │      │ inside the loop). See https://drupal.org/node/3071078.       │
│         │      │                                                              │
└─────────┴──────┴──────────────────────────────────────────────────────────────┘

web/themes/contrib/mediteran/templates/navigation/toolbar.html.twig:
┌─────────┬──────┬──────────────────────────────────────────────────────────────┐
│ STATUS  │ LINE │                           MESSAGE                            │
├─────────┼──────┼──────────────────────────────────────────────────────────────┤
│ Sjekk   │ 0    │ The spaceless tag in                                         │
│ manuelt │      │ "themes/contrib/mediteran/templates/navigation/toolbar.html. │
│         │      │ twig" at line 30 is deprecated since Twig 2.7, use the       │
│         │      │ "spaceless" filter with the "apply" tag instead. See         │
│         │      │ https://drupal.org/node/3071078.                             │
│         │      │                                                              │
└─────────┴──────┴──────────────────────────────────────────────────────────────┘

web/themes/contrib/mediteran/mediteran.libraries.yml:
┌─────────┬──────┬──────────────────────────────────────────────────────────────┐
│ STATUS  │ LINE │                           MESSAGE                            │
├─────────┼──────┼──────────────────────────────────────────────────────────────┤
│ Sjekk   │ 0    │ The 'drupal.nav-tabs' library is depending on a deprecated   │
│ manuelt │      │ library. The core/jquery.once asset library is deprecated in │
│         │      │ Drupal 9.3.0 and will be removed in Drupal 10.0.0. Use the   │
│         │      │ core/once library instead. See                               │
│         │      │ https://www.drupal.org/node/3158256                          │
│         │      │                                                              │
│ Sjekk   │ 0    │ The 'drupal.responsive-detail' library is depending on a     │
│ manuelt │      │ deprecated library. The core/jquery.once asset library is    │
│         │      │ deprecated in Drupal 9.3.0 and will be removed in Drupal     │
│         │      │ 10.0.0. Use the core/once library instead. See               │
│         │      │ https://www.drupal.org/node/3158256                          │
│         │      │                                                              │
└─────────┴──────┴──────────────────────────────────────────────────────────────┘

web/mediteran.info.yml:
┌─────────┬──────┬──────────────────────────────────────────────────────────────┐
│ STATUS  │ LINE │                           MESSAGE                            │
├─────────┼──────┼──────────────────────────────────────────────────────────────┤
│ Sjekk   │ 0    │ The 'color/admin' library is not defined because the         │
│ manuelt │      │ defining extension is not installed. Cannot decide if it is  │
│         │      │ deprecated or not.                                           │
│         │      │                                                              │
│ Sjekk   │ 0    │ The 'dblog/drupal.dblog' library is not defined because the  │
│ manuelt │      │ defining extension is not installed. Cannot decide if it is  │
│         │      │ deprecated or not.                                           │
│         │      │                                                              │
│ Sjekk   │ 0    │ Theme is overriding a deprecated library. The                │
│ manuelt │      │ image/quickedit.inPlaceEditor.image asset library is         │
│         │      │ deprecated in Drupal 9.4.0 and will be removed in Drupal     │
│         │      │ 10.0.0. Instead use quickedit/quickedit.inPlaceEditor.image. │
│         │      │ See https://www.drupal.org/node/3280366                      │
│         │      │                                                              │
│ Sjekk   │ 0    │ The 'quickedit/quickedit' library is not defined because the │
│ manuelt │      │ defining extension is not installed. Cannot decide if it is  │
│         │      │ deprecated or not.                                           │
│         │      │                                                              │
│ Sjekk   │ 0    │ The 'settings_tray/drupal.settings_tray' library is not      │
│ manuelt │      │ defined because the defining extension is not installed.     │
│         │      │ Cannot decide if it is deprecated or not.                    │
│         │      │                                                              │
│ Sjekk   │ 0    │ The 'simpletest/drupal.simpletest' library is not defined    │
│ manuelt │      │ because the defining extension is not installed. Cannot      │
│         │      │ decide if it is deprecated or not.                           │
│         │      │                                                              │
│ Sjekk   │ 0    │ The 'tour/tour-styling' library is not defined because the   │
│ manuelt │      │ defining extension is not installed. Cannot decide if it is  │
│         │      │ deprecated or not.                                           │
│         │      │                                                              │
│ Sjekk   │ 0    │ Theme is overriding a deprecated library. The                │
│ manuelt │      │ "core/jquery.ui" asset library is deprecated in drupal:9.2.0 │
│         │      │ and is removed from drupal:10.0.0. See                       │
│         │      │ https://www.drupal.org/node/3067969                          │
│         │      │                                                              │
│ Sjekk   │ 0    │ Theme is overriding a deprecated library. The                │
│ manuelt │      │ "core/jquery.ui.dialog" asset library is deprecated in       │
│         │      │ drupal:9.2.0 and is removed from drupal:10.0.0. See          │
│         │      │ https://www.drupal.org/node/3067969                          │
│         │      │                                                              │
│ Sjekk   │ 0    │ Theme is extending a deprecated library. The                 │
│ manuelt │      │ "core/jquery.ui" asset library is deprecated in drupal:9.2.0 │
│         │      │ and is removed from drupal:10.0.0. See                       │
│         │      │ https://www.drupal.org/node/3067969                          │
│         │      │                                                              │
│ Sjekk   │ 0    │ The 'tour/tour-styling' library is not defined because the   │
│ manuelt │      │ defining extension is not installed. Cannot decide if it is  │
│         │      │ deprecated or not.                                           │
│         │      │                                                              │
│ Sjekk   │ 0    │ The quickedit_stylesheets library does not have an extension │
│ manuelt │      │ name and is therefore not valid.                             │
│         │      │                                                              │
└─────────┴──────┴──────────────────────────────────────────────────────────────┘




Note that the Drupal link in upgrade_status report is not pointing to the problem. But most of the issues here are related to library deprecation like jquery.ui and Twig 3 in Drupal 10, which means some of the Twig stuff that was deprecated in Twig 2 are not available anymore.

Steps to reproduce

Proposed resolution

Remaining tasks

User interface changes

API changes

Data model changes

🐛 Bug report
Status

Needs review

Version

1.0

Component

Code

Created by

🇩🇪Germany szeidler Berlin

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.

Production build 0.71.5 2024