Comment display settings error

Created on 30 September 2025, 24 days ago

Steps to reproduce

  1. Install Drupal core 11.2.4 with Standard profile, Forum Access 2.0.1, ACL 2.0.1 and Forum 1.0.2.
  2. Visit /admin/structure/types/manage/forum/display page.
  3. Change 'comment_forum' format: 'Comment list' -> 'Forum Access comments'
  4. PHP error:
    <p>The website encountered an unexpected error. Try again later.<br><br><em class="placeholder">TypeError</em>: Drupal\forum_access\Plugin\Field\FieldFormatter\CommentForumFormatter::__construct(): Argument #1 ($moduleHandler) must be of type Drupal\Core\Extension\ModuleHandlerInterface, array given, called in /var/www/web/modules/contrib/forum_access/src/Plugin/Field/FieldFormatter/CommentForumFormatter.php on line 41 in <em class="placeholder">Drupal\forum_access\Plugin\Field\FieldFormatter\CommentForumFormatter->__construct()</em> (line <em class="placeholder">32</em> of <em class="placeholder">modules/contrib/forum_access/src/Plugin/Field/FieldFormatter/CommentForumFormatter.php</em>). </p><pre class="backtrace">Drupal\forum_access\Plugin\Field\FieldFormatter\CommentForumFormatter::create() (Line: 65)
    Drupal\Core\Field\FormatterPluginManager->createInstance() (Line: 81)
    Drupal\Core\Plugin\DefaultLazyPluginCollection->initializePlugin() (Line: 80)
    Drupal\Component\Plugin\LazyPluginCollection->get() (Line: 152)
    Drupal\Component\Plugin\LazyPluginCollection->getIterator() (Line: 114)
    Drupal\Core\Plugin\DefaultLazyPluginCollection->getConfiguration() (Line: 303)
    Drupal\Core\Config\Entity\ConfigEntityBase->preSave() (Line: 272)
    Drupal\Core\Entity\EntityDisplayBase->preSave() (Line: 529)
    Drupal\Core\Entity\EntityStorageBase->doPreSave() (Line: 484)
    Drupal\Core\Entity\EntityStorageBase->save() (Line: 239)
    Drupal\Core\Config\Entity\ConfigEntityStorage->save() (Line: 370)
    Drupal\Core\Entity\EntityBase->save() (Line: 618)
    Drupal\Core\Config\Entity\ConfigEntityBase->save() (Line: 293)
    Drupal\Core\Entity\EntityForm->save()
    call_user_func_array() (Line: 105)
    Drupal\Core\Form\FormSubmitter->executeSubmitHandlers() (Line: 43)
    Drupal\Core\Form\FormSubmitter->doSubmitForm() (Line: 589)
    Drupal\Core\Form\FormBuilder->processForm() (Line: 321)
    Drupal\Core\Form\FormBuilder->buildForm() (Line: 73)
    Drupal\Core\Controller\FormController->getContentResult()
    call_user_func_array() (Line: 123)
    Drupal\Core\EventSubscriber\EarlyRenderingControllerWrapperSubscriber->Drupal\Core\EventSubscriber\{closure}() (Line: 627)
    Drupal\Core\Render\Renderer->executeInRenderContext() (Line: 121)
    Drupal\Core\EventSubscriber\EarlyRenderingControllerWrapperSubscriber->wrapControllerExecutionInRenderContext() (Line: 97)
    Drupal\Core\EventSubscriber\EarlyRenderingControllerWrapperSubscriber->Drupal\Core\EventSubscriber\{closure}() (Line: 183)
    Symfony\Component\HttpKernel\HttpKernel->handleRaw() (Line: 76)
    Symfony\Component\HttpKernel\HttpKernel->handle() (Line: 36)
    Drupal\Core\Test\StackMiddleware\TestWaitTerminateMiddleware->handle() (Line: 53)
    Drupal\Core\StackMiddleware\Session->handle() (Line: 48)
    Drupal\Core\StackMiddleware\KernelPreHandle->handle() (Line: 28)
    Drupal\Core\StackMiddleware\ContentLength->handle() (Line: 116)
    Drupal\page_cache\StackMiddleware\PageCache->pass() (Line: 90)
    Drupal\page_cache\StackMiddleware\PageCache->handle() (Line: 48)
    Drupal\Core\StackMiddleware\ReverseProxyMiddleware->handle() (Line: 51)
    Drupal\Core\StackMiddleware\NegotiationMiddleware->handle() (Line: 53)
    Drupal\Core\StackMiddleware\AjaxPageState->handle() (Line: 51)
    Drupal\Core\StackMiddleware\StackedHttpKernel->handle() (Line: 715)
    Drupal\Core\DrupalKernel->handle() (Line: 19)
    </pre>
🐛 Bug report
Status

Needs review

Version

2.0

Component

Code

Created by

🇭🇺Hungary nevergone Nyíregyháza, Hungary, Europe

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.

No activities found.

Production build 0.71.5 2024