Incompatible when core Book is installed

Created on 5 June 2023, over 1 year ago
Updated 24 June 2023, over 1 year ago

Wow, a much needed module, thank you.

Unfortunately getting error when selecting 'next' in form ..

Warning: Trying to access array offset on value of type null in Drupal\book\BookManager->addFormElements() (line 252 of /home/cannesfestival/public_html/core/modules/book/src/BookManager.php)
#0 /home/cannesfestival/public_html/core/includes/bootstrap.inc(347): _drupal_error_handler_real(2, 'Trying to acces...', '/home/cannesfes...', 252)
#1 /home/cannesfestival/public_html/core/modules/book/src/BookManager.php(252): _drupal_error_handler(2, 'Trying to acces...', '/home/cannesfes...', 252)
#2 /home/cannesfestival/public_html/core/modules/book/book.module(150): Drupal\book\BookManager->addFormElements(Array, Object(Drupal\Core\Form\FormState), Object(Drupal\node\Entity\Node), Object(Drupal\Core\Session\AccountProxy), true)
#3 /home/cannesfestival/public_html/core/lib/Drupal/Core/Extension/ModuleHandler.php(562): book_form_node_form_alter(Array, Object(Drupal\Core\Form\FormState), 'node_film_edit_...')
#4 /home/cannesfestival/public_html/core/lib/Drupal/Core/Form/FormBuilder.php(840): Drupal\Core\Extension\ModuleHandler->alter('form', Array, Object(Drupal\Core\Form\FormState), 'node_film_edit_...')
#5 /home/cannesfestival/public_html/core/lib/Drupal/Core/Form/FormBuilder.php(434): Drupal\Core\Form\FormBuilder->prepareForm('node_film_edit_...', Array, Object(Drupal\Core\Form\FormState))
#6 /home/cannesfestival/public_html/core/lib/Drupal/Core/Form/FormBuilder.php(633): Drupal\Core\Form\FormBuilder->rebuildForm('node_film_edit_...', Object(Drupal\Core\Form\FormState), Array)
#7 /home/cannesfestival/public_html/core/lib/Drupal/Core/Form/FormBuilder.php(325): Drupal\Core\Form\FormBuilder->processForm('node_film_edit_...', Array, Object(Drupal\Core\Form\FormState))
#8 /home/cannesfestival/public_html/core/lib/Drupal/Core/Controller/FormController.php(73): Drupal\Core\Form\FormBuilder->buildForm(Object(Drupal\node\NodeForm), Object(Drupal\Core\Form\FormState))
#9 [internal function]: Drupal\Core\Controller\FormController->getContentResult(Object(Symfony\Component\HttpFoundation\Request), Object(Drupal\Core\Routing\RouteMatch))
#10 /home/cannesfestival/public_html/core/lib/Drupal/Core/EventSubscriber/EarlyRenderingControllerWrapperSubscriber.php(123): call_user_func_array(Array, Array)
#11 /home/cannesfestival/public_html/core/lib/Drupal/Core/Render/Renderer.php(580): Drupal\Core\EventSubscriber\EarlyRenderingControllerWrapperSubscriber->Drupal\Core\EventSubscriber\{closure}()
#12 /home/cannesfestival/public_html/core/lib/Drupal/Core/EventSubscriber/EarlyRenderingControllerWrapperSubscriber.php(124): Drupal\Core\Render\Renderer->executeInRenderContext(Object(Drupal\Core\Render\RenderContext), Object(Closure))
#13 /home/cannesfestival/public_html/core/lib/Drupal/Core/EventSubscriber/EarlyRenderingControllerWrapperSubscriber.php(97): Drupal\Core\EventSubscriber\EarlyRenderingControllerWrapperSubscriber->wrapControllerExecutionInRenderContext(Array, Array)
#14 /home/cannesfestival/public_html/vendor/symfony/http-kernel/HttpKernel.php(169): Drupal\Core\EventSubscriber\EarlyRenderingControllerWrapperSubscriber->Drupal\Core\EventSubscriber\{closure}()
#15 /home/cannesfestival/public_html/vendor/symfony/http-kernel/HttpKernel.php(81): Symfony\Component\HttpKernel\HttpKernel->handleRaw(Object(Symfony\Component\HttpFoundation\Request), 1)
#16 /home/cannesfestival/public_html/core/lib/Drupal/Core/StackMiddleware/Session.php(58): Symfony\Component\HttpKernel\HttpKernel->handle(Object(Symfony\Component\HttpFoundation\Request), 1, true)
#17 /home/cannesfestival/public_html/core/lib/Drupal/Core/StackMiddleware/KernelPreHandle.php(48): Drupal\Core\StackMiddleware\Session->handle(Object(Symfony\Component\HttpFoundation\Request), 1, true)
#18 /home/cannesfestival/public_html/core/modules/page_cache/src/StackMiddleware/PageCache.php(106): Drupal\Core\StackMiddleware\KernelPreHandle->handle(Object(Symfony\Component\HttpFoundation\Request), 1, true)
#19 /home/cannesfestival/public_html/core/modules/page_cache/src/StackMiddleware/PageCache.php(85): Drupal\page_cache\StackMiddleware\PageCache->pass(Object(Symfony\Component\HttpFoundation\Request), 1, true)
#20 /home/cannesfestival/public_html/core/lib/Drupal/Core/StackMiddleware/ReverseProxyMiddleware.php(48): Drupal\page_cache\StackMiddleware\PageCache->handle(Object(Symfony\Component\HttpFoundation\Request), 1, true)
#21 /home/cannesfestival/public_html/core/lib/Drupal/Core/StackMiddleware/NegotiationMiddleware.php(51): Drupal\Core\StackMiddleware\ReverseProxyMiddleware->handle(Object(Symfony\Component\HttpFoundation\Request), 1, true)
#22 /home/cannesfestival/public_html/vendor/stack/builder/src/Stack/StackedHttpKernel.php(23): Drupal\Core\StackMiddleware\NegotiationMiddleware->handle(Object(Symfony\Component\HttpFoundation\Request), 1, true)
#23 /home/cannesfestival/public_html/core/lib/Drupal/Core/DrupalKernel.php(718): Stack\StackedHttpKernel->handle(Object(Symfony\Component\HttpFoundation\Request), 1, true)
#24 /home/cannesfestival/public_html/index.php(19): Drupal\Core\DrupalKernel->handle(Object(Symfony\Component\HttpFoundation\Request))
#25 {main}

Most appreciate any fix.

πŸ› Bug report
Status

Closed: cannot reproduce

Version

1.0

Component

Code

Created by

πŸ‡«πŸ‡·France liliplanet Cannes

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

Comments & Activities

  • Issue created by @liliplanet
  • Status changed to Postponed: needs info over 1 year ago
  • πŸ‡ΊπŸ‡ΈUnited States robphillips

    Could you please provide some additional context? It looks like you're using the book module. It would helpful if you could share the form display config and any other details such as customizations, theme, etc.

  • πŸ‡«πŸ‡·France liliplanet Cannes

    Hi Rob, thank you for your response. Field group works perfectly when I select any other option: details, fieldset, tab, etc.

    Steps to reproduce:

    1. formstep is selected in manage form display
    2. edit a node
    3. when you select 'next', you get the above error.

    Yes, the core book module is installed, but not on the content type where formstep is enabled.

    There are no customizations.

    Theme: Bootstrap 5

    -- I recommend you switch on the core book module in your installation to see the error.

  • πŸ‡ΊπŸ‡ΈUnited States robphillips

    Does the error go away if the Book module is uninstalled?

  • πŸ‡«πŸ‡·France liliplanet Cannes

    Sorry I can't uninstall book module, it is a production site. Have you perhaps tried on your dev installation?

  • Status changed to Closed: cannot reproduce over 1 year ago
  • πŸ‡ΊπŸ‡ΈUnited States robphillips

    Sorry, I wasn't able to replicate. However, a number of important issues have been resolved in the latest release. I'd like to invite you to give it another try and report back if the problem still occurs. Thanks!

    https://www.drupal.org/project/entity_form_steps/releases/1.1.0 β†’

Production build 0.71.5 2024