PHP Fatal error: Uncaught Error: Interface 'Drupal\wysiwyg_template_core\TemplateInterface' not found

Created on 25 October 2021, about 3 years ago
Updated 13 February 2023, almost 2 years ago

Problem/Motivation

drush cr
PHP Fatal error:  Uncaught Error: Interface 'Drupal\wysiwyg_template_core\TemplateInterface' not found in /app/docroot/modules/contrib/wysiwyg_template/src/Entity/Template.php:40
Stack trace:
#0 /app/vendor/composer/ClassLoader.php(571): include()
#1 /app/vendor/composer/ClassLoader.php(428): Composer\Autoload\includeFile('/app/vendor/com...')
#2 [internal function]: Composer\Autoload\ClassLoader->loadClass('Drupal\\wysiwyg_...')
#3 [internal function]: spl_autoload_call('Drupal\\wysiwyg_...')
#4 /app/docroot/core/lib/Drupal/Core/Entity/EntityType.php(431): is_subclass_of('Drupal\\wysiwyg_...', 'Drupal\\Core\\Ent...')
#5 /app/docroot/core/lib/Drupal/Core/Entity/EntityType.php(315): Drupal\Core\Entity\EntityType->entityClassImplements('Drupal\\Core\\Ent...')
#6 /app/docroot/core/lib/Drupal/Core/Config/Entity/ConfigEntityType.php(65): Drupal\Core\Entity\EntityType->__construct(Array)
#7 /app/docroot/core/lib/Drupal/Core/Entity/Annotation/EntityType.php(60): Drupal\Core\Config\Entity\ConfigEntityType->__construct(Array)
#8 /app/d in /app/docroot/modules/contrib/wysiwyg_template/src/Entity/Template.php on line 40

Fatal error: Uncaught Error: Interface 'Drupal\wysiwyg_template_core\TemplateInterface' not found in /app/docroot/modules/contrib/wysiwyg_template/src/Entity/Template.php:40
Stack trace:
#0 /app/vendor/composer/ClassLoader.php(571): include()
#1 /app/vendor/composer/ClassLoader.php(428): Composer\Autoload\includeFile('/app/vendor/com...')
#2 [internal function]: Composer\Autoload\ClassLoader->loadClass('Drupal\\wysiwyg_...')
#3 [internal function]: spl_autoload_call('Drupal\\wysiwyg_...')
#4 /app/docroot/core/lib/Drupal/Core/Entity/EntityType.php(431): is_subclass_of('Drupal\\wysiwyg_...', 'Drupal\\Core\\Ent...')
#5 /app/docroot/core/lib/Drupal/Core/Entity/EntityType.php(315): Drupal\Core\Entity\EntityType->entityClassImplements('Drupal\\Core\\Ent...')
#6 /app/docroot/core/lib/Drupal/Core/Config/Entity/ConfigEntityType.php(65): Drupal\Core\Entity\EntityType->__construct(Array)
#7 /app/docroot/core/lib/Drupal/Core/Entity/Annotation/EntityType.php(60): Drupal\Core\Config\Entity\ConfigEntityType->__construct(Array)
#8 /app/d in /app/docroot/modules/contrib/wysiwyg_template/src/Entity/Template.php on line 40
 [warning] Drush command terminated abnormally.

Works well during migration and after, but when test the migration of fresh DB from Production website it has the error above.
Same results with version 2.3 and 3@RC

Steps to reproduce

Upgrade Drupal 8.9.19 to 9.2.7
PHP 7.4.23
Using LANDo for my local environment
Composer

...
        "drupal/wysiwyg_template": "^2.3",
        "drupal/wysiwyg_template_core": "^2.3",
...
    "repositories": [
        {
            "type": "composer",
            "url": "https://packages.drupal.org/8"
        },
        {
          "type": "package",
          "package": {
            "name": "ckeditor/templates",
            "version": "4.11.1",
            "type": "drupal-library",
            "dist": {
              "url": "https://download.ckeditor.com/templates/releases/templates_4.11.1.zip",
              "type": "zip",
              "reference": "master"
            },
            "require": {
              "composer/installers": "~1.0"
            }
          }
        }        
    ],
...
composer require 'drupal/wysiwyg_template:^3.0@RC' 'drupal/wysiwyg_template_core:^3.0@RC' --with-dependencies

did not fixed the issue

Proposed resolution

Remaining tasks

User interface changes

API changes

Data model changes

🐛 Bug report
Status

Closed: cannot reproduce

Version

3.0

Component

Code

Created by

🇦🇺Australia gigimaor Narangba/Brisbane

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