Skip to content

The website encountered an unexpected error. try again later. error: call to a member function setformclass() on null in drupal\system\hook\systemhooks->entitytypebuild() (line 368 of core/modules/system/src/hook/systemhooks.php) #586

@kavakava

Description

@kavakava

[OS] type
(Windows 10 )

The website encountered an unexpected error. try again later. error: call to a member function setformclass() on null in drupal\system\hook\systemhooks->entitytypebuild() (line 368 of core/modules/system/src/hook/systemhooks.php).

Docker version 28.3.0, build 38b7060

Drupal version
11
DRUPAL_TAG=11-4.81.3
PHP_TAG=8.4-dev-4.69.1

Without file compose.override.yml I always get this error.

The website encountered an unexpected error. Try again later.
Error: Call to a member function setFormClass() on null in Drupal\system\Hook\SystemHooks->entityTypeBuild() (line 368 of core/modules/system/src/Hook/SystemHooks.php)

Drupal\system\Hook\SystemHooks->entityTypeBuild() (Line: 118)
Drupal\Core\Entity\EntityTypeManager->{closure:Drupal\Core\Entity\EntityTypeManager::findDefinitions():117}() (Line: 355)
Drupal\Core\Extension\ModuleHandler->invokeAllWith() (Line: 117)
Drupal\Core\Entity\EntityTypeManager->findDefinitions() (Line: 216)
Drupal\Core\Plugin\DefaultPluginManager->getDefinitions() (Line: 25)
Drupal\Core\Plugin\DefaultPluginManager->getDefinition() (Line: 132)
Drupal\Core\Entity\EntityTypeManager->getDefinition() (Line: 257)
Drupal\Core\Entity\EntityTypeManager->getHandler() (Line: 192)
Drupal\Core\Entity\EntityTypeManager->getStorage() (Line: 97)
Drupal\Core\Datetime\DateFormatter->__construct()
ReflectionClass->newInstanceArgs() (Line: 1189)
Symfony\Component\DependencyInjection\ContainerBuilder->createService() (Line: 626)
Symfony\Component\DependencyInjection\ContainerBuilder->doGet() (Line: 571)
Symfony\Component\DependencyInjection\ContainerBuilder->get() (Line: 87)
Drupal\Core\TempStore\Element\BreakLockLink::create() (Line: 21)
Drupal\Core\Plugin\Factory\ContainerFactory->createInstance() (Line: 85)
Drupal\Component\Plugin\PluginManagerBase->createInstance() (Line: 148)
Drupal\Core\Render\ElementInfoManager->createInstance() (Line: 116)
Drupal\Core\Render\ElementInfoManager->buildInfo() (Line: 71)
Drupal\Core\Render\ElementInfoManager->getInfo() (Line: 810)
Drupal\Core\Form\FormBuilder->prepareForm() (Line: 280)
Drupal\Core\Form\FormBuilder->buildForm() (Line: 962)
install_get_form() (Line: 1377)
install_select_language() (Line: 687)
install_run_task() (Line: 564)
install_run_tasks() (Line: 122)
install_drupal() (Line: 53)

With file compose.override.yml everything works, but not what I need.

This file compose.override.yml

services:
  php:
    image: wodby/drupal-cms:$DRUPAL_CMS_TAG
#    image: wodby/drupal:$DRUPAL_TAG
    environment:
      PHP_FPM_CLEAR_ENV: "no"
    volumes:
      - codebase:/var/www/html

  crond:
    image: wodby/drupal-cms:$DRUPAL_CMS_TAG
#    image: wodby/drupal:$DRUPAL_TAG
    environment:
      PHP_FPM_CLEAR_ENV: "no"
    volumes:
      - codebase:/var/www/html

  nginx:
    volumes:
    - codebase:/var/www/html

#  webgrind:
#    volumes:
#    - codebase:/mnt/codebase

volumes:
  codebase:


Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions