Missing add to cart forms, D9, PadoLazyBuilders.php

Created on 29 November 2021, over 3 years ago
Updated 5 September 2024, 7 months ago

Drupal 9.2.9
Commerce 8.x-2.27
Commerce Product Add-on: 8.x-1.1
PHP 7.4

Installed as normal, added reference field to product type, selected product via field, and updated the variations field display to 'with add-ons'. As soon as I change the field display to 'with add-ons' the add to cart section is missing from the product page. All product variation drop downs are also missing. Looking in logs throws this error. Any help would be MUCH appreciated.

Error: Call to undefined method Drupal\Core\Entity\ContentEntityForm::setFormId() in Drupal\commerce_pado\PadoLazyBuilders->addToCartWithAddOnsForm() (line 47 of /modules/commerce_pado/src/PadoLazyBuilders.php)
#0 [internal function]: Drupal\commerce_pado\PadoLazyBuilders->addToCartWithAddOnsForm('15', 'full', true, 'field_optional_...', true)
#1 /core/lib/Drupal/Core/Security/DoTrustedCallbackTrait.php(101): call_user_func_array(Array, Array)
#2 /core/lib/Drupal/Core/Render/Renderer.php(786): Drupal\Core\Render\Renderer->doTrustedCallback(Array, Array, 'Render #lazy_bu...', 'exception', 'Drupal\\Core\\Ren...')
#3 /core/lib/Drupal/Core/Render/Renderer.php(356): Drupal\Core\Render\Renderer->doCallback('#lazy_builder', Array, Array)
#4 /core/lib/Drupal/Core/Render/Renderer.php(201): Drupal\Core\Render\Renderer->doRender(Array, true)
#5 /core/lib/Drupal/Core/Render/Renderer.php(157): Drupal\Core\Render\Renderer->render(Array, true)
#6 /core/lib/Drupal/Core/Render/Renderer.php(578): Drupal\Core\Render\Renderer->Drupal\Core\Render\{closure}()
#7 /core/lib/Drupal/Core/Render/Renderer.php(158): Drupal\Core\Render\Renderer->executeInRenderContext(Object(Drupal\Core\Render\RenderContext), Object(Closure))
#8 /core/lib/Drupal/Core/Render/Renderer.php(172): Drupal\Core\Render\Renderer->renderPlain(Array)
#9 /core/modules/big_pipe/src/Render/BigPipe.php(693): Drupal\Core\Render\Renderer->renderPlaceholder('callback=commer...', Array)
#10 /core/modules/big_pipe/src/Render/BigPipe.php(547): Drupal\big_pipe\Render\BigPipe->renderPlaceholder('callback=commer...', Array)
#11 /core/modules/big_pipe/src/Render/BigPipe.php(305): Drupal\big_pipe\Render\BigPipe->sendPlaceholders(Array, Array, Object(Drupal\Core\Asset\AttachedAssets))
#12 /core/modules/big_pipe/src/Render/BigPipeResponse.php(112): Drupal\big_pipe\Render\BigPipe->sendContent(Object(Drupal\big_pipe\Render\BigPipeResponse))
#13 /vendor/symfony/http-foundation/Response.php(381): Drupal\big_pipe\Render\BigPipeResponse->sendContent()
#14 /index.php(20): Symfony\Component\HttpFoundation\Response->send()
#15 {main}

πŸ› Bug report
Status

Closed: works as designed

Version

1.1

Component

User interface

Created by

πŸ‡¬πŸ‡§United Kingdom stuhannaford

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.

Production build 0.71.5 2024