Drupal 10.1 Error: Class "Drupal\transliterate_twig\TwigExtension\Twig_Extension" not found

Created on 1 September 2023, about 1 year ago
Updated 26 October 2023, about 1 year ago

Hey there, thanks for the great module, upon upgrading to Drupal 10.1 from 9.5, Drush commands crashes with Drush 11 or 12 with the following:

Error: Class "Drupal\transliterate_twig\TwigExtension\Twig_Extension" not found in include() (line 7 of /Users/doxigo/Sites/tk/web/modules/contrib/transliterate_twig/src/TwigExtension/TransliterateFilter.php).

🐛 Bug report
Status

Fixed

Version

1.0

Component

Code

Created by

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

Comments & Activities

  • Issue created by @doxigo
  • Status changed to Needs review about 1 year ago
  • Here's a patch to fix this:
    - Replaced Twig_SimpleFilter with Twig\TwigFilter due to the fact that this is now deprecated
    - changed getFilters() method to use short array syntax

  • Status changed to RTBC about 1 year ago
  • 🇵🇭Philippines kenyoOwen

    Hi doxigo

    I reproduced the error, tested your patch, and confirmed that the issue was resolved. The error appears when I enable the module. Please see the screenshots attached.

    For your review.
    Thank you.

  • 🇵🇹Portugal joaomarques736

    Hello doxigo, it is already fixed in new release (2.0.x).

    Thanks!

  • Status changed to Fixed about 1 year ago
Production build 0.71.5 2024