Problem

I wanted to install the module.

Steps to reproduce

After install using composer, I just wanted to go to config page /admin/config/par

Error in log

Error : Call to undefined method Drupal\par\ParService::t() dans Drupal\par\ParService->getAccessLabelById() (/home2/atwh9578/test2.badmoc.fr/modules/contrib/par/src/ParService.php ligne 268)

#0 /home2/atwh9578/test2.badmoc.fr/modules/contrib/par/src/Form/ConfigForm.php(161): Drupal\par\ParService->getAccessLabelById()
#1 [internal function]: Drupal\par\Form\ConfigForm->buildForm()
#2 /home2/atwh9578/test2.badmoc.fr/core/lib/Drupal/Core/Form/FormBuilder.php(531): call_user_func_array()
#3 /home2/atwh9578/test2.badmoc.fr/core/lib/Drupal/Core/Form/FormBuilder.php(278): Drupal\Core\Form\FormBuilder->retrieveForm()
#4 /home2/atwh9578/test2.badmoc.fr/core/lib/Drupal/Core/Controller/FormController.php(73): Drupal\Core\Form\FormBuilder->buildForm()
#5 [internal function]: Drupal\Core\Controller\FormController->getContentResult()
#6 /home2/atwh9578/test2.badmoc.fr/core/lib/Drupal/Core/EventSubscriber/EarlyRenderingControllerWrapperSubscriber.php(123): call_user_func_array()
#7 /home2/atwh9578/test2.badmoc.fr/core/lib/Drupal/Core/Render/Renderer.php(564): Drupal\Core\EventSubscriber\EarlyRenderingControllerWrapperSubscriber->Drupal\Core\EventSubscriber\{closure}()
#8 /home2/atwh9578/test2.badmoc.fr/core/lib/Drupal/Core/EventSubscriber/EarlyRenderingControllerWrapperSubscriber.php(124): Drupal\Core\Render\Renderer->executeInRenderContext()
#9 /home2/atwh9578/test2.badmoc.fr/core/lib/Drupal/Core/EventSubscriber/EarlyRenderingControllerWrapperSubscriber.php(97): Drupal\Core\EventSubscriber\EarlyRenderingControllerWrapperSubscriber->wrapControllerExecutionInRenderContext()
#10 /home2/atwh9578/test2.badmoc.fr/vendor/symfony/http-kernel/HttpKernel.php(169): Drupal\Core\EventSubscriber\EarlyRenderingControllerWrapperSubscriber->Drupal\Core\EventSubscriber\{closure}()
#11 /home2/atwh9578/test2.badmoc.fr/vendor/symfony/http-kernel/HttpKernel.php(81): Symfony\Component\HttpKernel\HttpKernel->handleRaw()
#12 /home2/atwh9578/test2.badmoc.fr/core/lib/Drupal/Core/StackMiddleware/Session.php(58): Symfony\Component\HttpKernel\HttpKernel->handle()
#13 /home2/atwh9578/test2.badmoc.fr/core/lib/Drupal/Core/StackMiddleware/KernelPreHandle.php(48): Drupal\Core\StackMiddleware\Session->handle()
#14 /home2/atwh9578/test2.badmoc.fr/core/modules/page_cache/src/StackMiddleware/PageCache.php(106): Drupal\Core\StackMiddleware\KernelPreHandle->handle()
#15 /home2/atwh9578/test2.badmoc.fr/core/modules/page_cache/src/StackMiddleware/PageCache.php(85): Drupal\page_cache\StackMiddleware\PageCache->pass()
#16 /home2/atwh9578/test2.badmoc.fr/core/lib/Drupal/Core/StackMiddleware/ReverseProxyMiddleware.php(48): Drupal\page_cache\StackMiddleware\PageCache->handle()
#17 /home2/atwh9578/test2.badmoc.fr/core/lib/Drupal/Core/StackMiddleware/NegotiationMiddleware.php(51): Drupal\Core\StackMiddleware\ReverseProxyMiddleware->handle()
#18 /home2/atwh9578/test2.badmoc.fr/vendor/stack/builder/src/Stack/StackedHttpKernel.php(23): Drupal\Core\StackMiddleware\NegotiationMiddleware->handle()
#19 /home2/atwh9578/test2.badmoc.fr/core/lib/Drupal/Core/DrupalKernel.php(709): Stack\StackedHttpKernel->handle()
#20 /home2/atwh9578/test2.badmoc.fr/index.php(19): Drupal\Core\DrupalKernel->handle()
#21 {main}

CommentFileSizeAuthor
#3 undefined-method-3322301-3.patch632 bytessamitk

Issue fork par-3322301

Command icon Show commands

Start within a Git clone of the project using the version control instructions.

Or, if you do not have SSH keys set up on git.drupalcode.org:

Comments

jeremy.zimmermann created an issue. See original summary.

samitk’s picture

Assigned: Unassigned » samitk
Status: Active » Needs work
samitk’s picture

Assigned: samitk » Unassigned
Status: Needs work » Needs review
StatusFileSize
new632 bytes

Error Fixed.

rsych made their first commit to this issue’s fork.

  • rsych committed 1a84825 on 3.0.x
    Issue #3322301 by samit.310@gmail.com: Error : Call to undefined method...
rsych’s picture

Status: Needs review » Fixed

Thank you, applied.

rsych’s picture

Status: Fixed » Closed (fixed)

Deployed within new release 3.0.4.

jeremy.zimmermann’s picture

Hi,
I just tested, it works well.
Thank you!