Problem/Motivation
The website encountered an unexpected error. Please try again later.
TypeError: Drupal\packt\Plugin\Products::setProductID(): Argument #1 ($product) must be of type string, null given, called in /var/www/web/modules/packthub_ebook_integration/src/Plugin/EbookDefinition.php on line 77 in Drupal\packt\Plugin\Products->setProductID() (line 181 of modules/packthub_ebook_integration/src/Plugin/Products.php).
Drupal\packt\Plugin\EbookDefinition->packthubFields() (Line: 123)
Drupal\packt\Form\EbookContentTypeForm->fieldsCollection('page', Array, Array) (Line: 72)
Drupal\packt\Form\EbookContentTypeForm->buildForm(Array, Object)
call_user_func_array(Array, Array) (Line: 536)
Drupal\Core\Form\FormBuilder->retrieveForm('packt_ebook_content_type_form', Object) (Line: 375)
Drupal\Core\Form\FormBuilder->rebuildForm('packt_ebook_content_type_form', Object, Array) (Line: 633)
Drupal\Core\Form\FormBuilder->processForm('packt_ebook_content_type_form', Array, Object) (Line: 325)
Drupal\Core\Form\FormBuilder->buildForm(Object, Object) (Line: 73)
Drupal\Core\Controller\FormController->getContentResult(Object, Object)
call_user_func_array(Array, Array) (Line: 123)
Drupal\Core\EventSubscriber\EarlyRenderingControllerWrapperSubscriber->Drupal\Core\EventSubscriber\{closure}() (Line: 592)
Drupal\Core\Render\Renderer->executeInRenderContext(Object, Object) (Line: 124)
Drupal\Core\EventSubscriber\EarlyRenderingControllerWrapperSubscriber->wrapControllerExecutionInRenderContext(Array, Array) (Line: 97)
Drupal\Core\EventSubscriber\EarlyRenderingControllerWrapperSubscriber->Drupal\Core\EventSubscriber\{closure}() (Line: 181)
Symfony\Component\HttpKernel\HttpKernel->handleRaw(Object, 1) (Line: 76)
Symfony\Component\HttpKernel\HttpKernel->handle(Object, 1, 1) (Line: 58)
Drupal\Core\StackMiddleware\Session->handle(Object, 1, 1) (Line: 48)
Drupal\Core\StackMiddleware\KernelPreHandle->handle(Object, 1, 1) (Line: 106)
Drupal\page_cache\StackMiddleware\PageCache->pass(Object, 1, 1) (Line: 85)
Drupal\page_cache\StackMiddleware\PageCache->handle(Object, 1, 1) (Line: 48)
Drupal\Core\StackMiddleware\ReverseProxyMiddleware->handle(Object, 1, 1) (Line: 51)
Drupal\Core\StackMiddleware\NegotiationMiddleware->handle(Object, 1, 1) (Line: 51)
Drupal\Core\StackMiddleware\StackedHttpKernel->handle(Object, 1, 1) (Line: 704)
Drupal\Core\DrupalKernel->handle(Object) (Line: 19)
Steps to reproduce
step 1: Install this module
https://www.drupal.org/project/packthub_ebook_integration โ
.
step 2: enable
step 3: run this path /admin/config/packt/content-type-form.
step 4: select Content Types, Select any of these content types to be used for ebook creation
step 5: do inspect then go to network
Proposed resolution
Remaining tasks
User interface changes
API changes
Data model changes