Problem/Motivation

I'm trying to resend an invite but there is an error.

Steps to reproduce

  1. Enable the following projects: "Invite" and "Invite By Email"
  2. Add a new Invite type on this URL: /admin/structure/invite_type/add
  3. Access this URL: /admin/structure/block and go to "Content" region and click on Place Block Button.
  4. On "Pages" option, insert this block at "/home".
  5. Access the Home Page: /home and Invite an e-mail. E.g. renatog+test@ciandt.com

  6. Access Invite List on this page: /invite/list and click in "Resend"

  7. Actual Result: There is a blank page with the message:
    The website encountered an unexpected error. Please try again later.
  8. Expected Result: The Invite should be sent

Simplytest created with Invite:
https://stm5e891f3fe8775-bce48gkpb2julluaxu6ghf1qcd5dniv1.tugboat.qa

Thank you!

Comments

RenatoG created an issue. See original summary.

renatog’s picture

Please ignore this issue for now. We'll fix it on Dojo. Thanks.

renatog’s picture

Issue tags: +ciandt-dojo
renatog’s picture

renatog’s picture

Issue summary: View changes
StatusFileSize
new129.13 KB
new103.92 KB
new145.88 KB
new140.96 KB
new91.53 KB
new86.66 KB
new97.58 KB
new50.84 KB
new98.07 KB
renatog’s picture

renatog’s picture

Issue summary: View changes
renatog’s picture

Issue summary: View changes
paulocs’s picture

Follow the error in the log message:

TypeError: Argument 1 passed to Drupal\invite_by_email\Plugin\Invite\InviteByEmail::__construct() must be of the type array, object given, called in /app/modules/invite/src/Form/InviteResendForm.php on line 103 in Drupal\invite_by_email\Plugin\Invite\InviteByEmail->__construct() (line 47 of /app/modules/invite/modules/invite_by_email/src/Plugin/Invite/InviteByEmail.php)
#0 /app/modules/invite/src/Form/InviteResendForm.php(103): Drupal\invite_by_email\Plugin\Invite\InviteByEmail->__construct(Object(Drupal\Core\Messenger\Messenger))
#1 [internal function]: Drupal\invite\Form\InviteResendForm->submitForm(Array, Object(Drupal\Core\Form\FormState))
#2 /app/core/lib/Drupal/Core/Form/FormSubmitter.php(114): call_user_func_array(Array, Array)
#3 /app/core/lib/Drupal/Core/Form/FormSubmitter.php(52): Drupal\Core\Form\FormSubmitter->executeSubmitHandlers(Array, Object(Drupal\Core\Form\FormState))
#4 /app/core/lib/Drupal/Core/Form/FormBuilder.php(591): Drupal\Core\Form\FormSubmitter->doSubmitForm(Array, Object(Drupal\Core\Form\FormState))
#5 /app/core/lib/Drupal/Core/Form/FormBuilder.php(320): Drupal\Core\Form\FormBuilder->processForm('invite_resend_f...', Array, Object(Drupal\Core\Form\FormState))
#6 /app/core/lib/Drupal/Core/Controller/FormController.php(91): Drupal\Core\Form\FormBuilder->buildForm(Object(Drupal\invite\Form\InviteResendForm), Object(Drupal\Core\Form\FormState))
#7 [internal function]: Drupal\Core\Controller\FormController->getContentResult(Object(Symfony\Component\HttpFoundation\Request), Object(Drupal\Core\Routing\RouteMatch))
#8 /app/core/lib/Drupal/Core/EventSubscriber/EarlyRenderingControllerWrapperSubscriber.php(123): call_user_func_array(Array, Array)
#9 /app/core/lib/Drupal/Core/Render/Renderer.php(573): Drupal\Core\EventSubscriber\EarlyRenderingControllerWrapperSubscriber->Drupal\Core\EventSubscriber\{closure}()
#10 /app/core/lib/Drupal/Core/EventSubscriber/EarlyRenderingControllerWrapperSubscriber.php(124): Drupal\Core\Render\Renderer->executeInRenderContext(Object(Drupal\Core\Render\RenderContext), Object(Closure))
#11 /app/core/lib/Drupal/Core/EventSubscriber/EarlyRenderingControllerWrapperSubscriber.php(97): Drupal\Core\EventSubscriber\EarlyRenderingControllerWrapperSubscriber->wrapControllerExecutionInRenderContext(Array, Array)
#12 /app/vendor/symfony/http-kernel/HttpKernel.php(151): Drupal\Core\EventSubscriber\EarlyRenderingControllerWrapperSubscriber->Drupal\Core\EventSubscriber\{closure}()
#13 /app/vendor/symfony/http-kernel/HttpKernel.php(68): Symfony\Component\HttpKernel\HttpKernel->handleRaw(Object(Symfony\Component\HttpFoundation\Request), 1)
#14 /app/core/lib/Drupal/Core/StackMiddleware/Session.php(57): Symfony\Component\HttpKernel\HttpKernel->handle(Object(Symfony\Component\HttpFoundation\Request), 1, true)
#15 /app/core/lib/Drupal/Core/StackMiddleware/KernelPreHandle.php(47): Drupal\Core\StackMiddleware\Session->handle(Object(Symfony\Component\HttpFoundation\Request), 1, true)
#16 /app/core/modules/page_cache/src/StackMiddleware/PageCache.php(106): Drupal\Core\StackMiddleware\KernelPreHandle->handle(Object(Symfony\Component\HttpFoundation\Request), 1, true)
#17 /app/core/modules/page_cache/src/StackMiddleware/PageCache.php(85): Drupal\page_cache\StackMiddleware\PageCache->pass(Object(Symfony\Component\HttpFoundation\Request), 1, true)
#18 /app/core/lib/Drupal/Core/StackMiddleware/ReverseProxyMiddleware.php(47): Drupal\page_cache\StackMiddleware\PageCache->handle(Object(Symfony\Component\HttpFoundation\Request), 1, true)
#19 /app/core/lib/Drupal/Core/StackMiddleware/NegotiationMiddleware.php(52): Drupal\Core\StackMiddleware\ReverseProxyMiddleware->handle(Object(Symfony\Component\HttpFoundation\Request), 1, true)
#20 /app/vendor/stack/builder/src/Stack/StackedHttpKernel.php(23): Drupal\Core\StackMiddleware\NegotiationMiddleware->handle(Object(Symfony\Component\HttpFoundation\Request), 1, true)
#21 /app/core/lib/Drupal/Core/DrupalKernel.php(708): Stack\StackedHttpKernel->handle(Object(Symfony\Component\HttpFoundation\Request), 1, true)
#22 /app/index.php(19): Drupal\Core\DrupalKernel->handle(Object(Symfony\Component\HttpFoundation\Request))
#23 {main}

dfranca’s picture

Status: Active » Needs review
StatusFileSize
new660 bytes

Follow patch for revision.

paulocs’s picture

Status: Needs review » Reviewed & tested by the community

It looks good!

  • RenatoG committed 8907654 on 8.x-1.x authored by dfranca
    Issue #3125004 by dfranca, RenatoG, paulocs: There is an error on resend...
renatog’s picture

Status: Reviewed & tested by the community » Fixed

Committed to the dev branch 8.x-1.x

Thank you all for your contribution.

RenatoG credited barone.

RenatoG credited pedrosf.

RenatoG credited rodrigogc.

RenatoG credited wesleyl.

renatog’s picture

Added the dojo contributors

Thank you all, team

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.