TypeError: Drupal\threejs\Form\ThreejsAdminSettingsForm

Created on 2 May 2025, 8 days ago

Hi! After enabling and trying to configure the module from the admin panel, I get this error:

TypeError: Drupal\threejs\Form\ThreejsAdminSettingsForm::__construct(): Argument #3 ($discovery) must be of type Drupal\Component\Plugin\Discovery\DiscoveryInterface, Drupal\Core\Asset\LibraryDiscovery given, called in ***/web/modules/contrib/threejs/src/Form/ThreejsAdminSettingsForm.php on line 35 in Drupal\threejs\Form\ThreejsAdminSettingsForm->__construct() (line 27 of modules/contrib/threejs/src/Form/ThreejsAdminSettingsForm.php).

Drupal\threejs\Form\ThreejsAdminSettingsForm::create(Object) (Line: 41)
Drupal\Core\DependencyInjection\ClassResolver->getInstanceFromDefinition('Drupal\threejs\Form\ThreejsAdminSettingsForm') (Line: 48)
Drupal\Core\Controller\HtmlFormController->getFormObject(Object, 'Drupal\threejs\Form\ThreejsAdminSettingsForm') (Line: 58)
Drupal\Core\Controller\FormController->getContentResult(Object, Object)
call_user_func_array(Array, Array) (Line: 123)
Drupal\Core\EventSubscriber\EarlyRenderingControllerWrapperSubscriber->Drupal\Core\EventSubscriber\{closure}() (Line: 638)
Drupal\Core\Render\Renderer->executeInRenderContext(Object, Object) (Line: 121)
Drupal\Core\EventSubscriber\EarlyRenderingControllerWrapperSubscriber->wrapControllerExecutionInRenderContext(Array, Array) (Line: 97)
Drupal\Core\EventSubscriber\EarlyRenderingControllerWrapperSubscriber->Drupal\Core\EventSubscriber\{closure}() (Line: 181)
Symfony\Component\HttpKernel\HttpKernel->handleRaw(Object, 1) (Line: 76)
Symfony\Component\HttpKernel\HttpKernel->handle(Object, 1, 1) (Line: 53)
Drupal\Core\StackMiddleware\Session->handle(Object, 1, 1) (Line: 48)
Drupal\Core\StackMiddleware\KernelPreHandle->handle(Object, 1, 1) (Line: 28)
Drupal\Core\StackMiddleware\ContentLength->handle(Object, 1, 1) (Line: 48)
Drupal\Core\StackMiddleware\ReverseProxyMiddleware->handle(Object, 1, 1) (Line: 51)
Drupal\Core\StackMiddleware\NegotiationMiddleware->handle(Object, 1, 1) (Line: 36)
Drupal\Core\StackMiddleware\AjaxPageState->handle(Object, 1, 1) (Line: 51)
Drupal\Core\StackMiddleware\StackedHttpKernel->handle(Object, 1, 1) (Line: 74

Drupal Version: 10.4.1
Php: 8.3.20

πŸ› Bug report
Status

Active

Version

1.0

Component

Code

Created by

πŸ‡ΊπŸ‡¦Ukraine seonomad

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

Merge Requests

Comments & Activities

Production build 0.71.5 2024