- Issue created by @Gurkawal
I get:
Deprecated function: DOMDocument::createElement(): Passing null to parameter #2 ($value) of type string is deprecated in Ups\Entity\PickupType->toNode() (line 46 of D:\laragon\www\drupal_contribution\vendor\gabrielbull\ups-api\src\Entity\PickupType.php)
#0 D:\laragon\www\drupal_contribution\web\core\includes\bootstrap.inc(164): _drupal_error_handler_real(8192, 'DOMDocument::cr...', 'D:\\laragon\\www\\...', 46)
#1 [internal function]: _drupal_error_handler(8192, 'DOMDocument::cr...', 'D:\\laragon\\www\\...', 46)
#2 D:\laragon\www\drupal_contribution\vendor\gabrielbull\ups-api\src\Entity\PickupType.php(46): DOMDocument->createElement('Description', NULL)
#3 D:\laragon\www\drupal_contribution\vendor\gabrielbull\ups-api\src\Rate.php(135): Ups\Entity\PickupType->toNode(Object(DOMDocument))
#4 D:\laragon\www\drupal_contribution\vendor\gabrielbull\ups-api\src\Rate.php(90): Ups\Rate->createRequest(Object(Ups\Entity\RateRequest))
#5 D:\laragon\www\drupal_contribution\vendor\gabrielbull\ups-api\src\Rate.php(55): Ups\Rate->sendRequest(Object(Ups\Entity\RateRequest))
#6 D:\laragon\www\drupal_contribution\web\modules\contrib\commerce_ups\src\UPSRateRequest.php(155): Ups\Rate->shopRates(Object(Ups\Entity\RateRequest))
#7 D:\laragon\www\drupal_contribution\web\modules\contrib\commerce_ups\src\Plugin\Commerce\ShippingMethod\UPS.php(295): Drupal\commerce_ups\UPSRateRequest->getRates(Object(Drupal\commerce_shipping\Entity\Shipment), Object(Drupal\commerce_shipping\Entity\ShippingMethod))
#8 D:\laragon\www\drupal_contribution\web\modules\contrib\commerce_shipping\src\ShipmentManager.php(89): Drupal\commerce_ups\Plugin\Commerce\ShippingMethod\UPS->calculateRates(Object(Drupal\commerce_shipping\Entity\Shipment))
#9 D:\laragon\www\drupal_contribution\web\modules\contrib\commerce_shipping\src\EarlyOrderProcessor.php(91): Drupal\commerce_shipping\ShipmentManager->calculateRates(Object(Drupal\commerce_shipping\Entity\Shipment))
#10 D:\laragon\www\drupal_contribution\web\modules\contrib\commerce\modules\order\src\OrderRefresh.php(196): Drupal\commerce_shipping\EarlyOrderProcessor->process(Object(Drupal\commerce_order\Entity\Order))
#11 D:\laragon\www\drupal_contribution\web\modules\contrib\commerce\modules\order\src\OrderStorage.php(123): Drupal\commerce_order\OrderRefresh->refresh(Object(Drupal\commerce_order\Entity\Order))
#12 D:\laragon\www\drupal_contribution\web\modules\contrib\commerce\modules\order\src\OrderStorage.php(86): Drupal\commerce_order\OrderStorage->doOrderPreSave(Object(Drupal\commerce_order\Entity\Order))
#13 D:\laragon\www\drupal_contribution\web\core\lib\Drupal\Core\Entity\EntityStorageBase.php(529): Drupal\commerce_order\OrderStorage->invokeHook('presave', Object(Drupal\commerce_order\Entity\Order))
#14 D:\laragon\www\drupal_contribution\web\core\lib\Drupal\Core\Entity\ContentEntityStorageBase.php(753): Drupal\Core\Entity\EntityStorageBase->doPreSave(Object(Drupal\commerce_order\Entity\Order))
#15 D:\laragon\www\drupal_contribution\web\core\lib\Drupal\Core\Entity\EntityStorageBase.php(483): Drupal\Core\Entity\ContentEntityStorageBase->doPreSave(Object(Drupal\commerce_order\Entity\Order))
#16 D:\laragon\www\drupal_contribution\web\core\lib\Drupal\Core\Entity\Sql\SqlContentEntityStorage.php(806): Drupal\Core\Entity\EntityStorageBase->save(Object(Drupal\commerce_order\Entity\Order))
#17 D:\laragon\www\drupal_contribution\web\modules\contrib\commerce\modules\order\src\OrderStorage.php(169): Drupal\Core\Entity\Sql\SqlContentEntityStorage->save(Object(Drupal\commerce_order\Entity\Order))
#18 D:\laragon\www\drupal_contribution\web\core\lib\Drupal\Core\Entity\EntityBase.php(354): Drupal\commerce_order\OrderStorage->save(Object(Drupal\commerce_order\Entity\Order))
#19 D:\laragon\www\drupal_contribution\web\modules\contrib\commerce\modules\cart\src\CartManager.php(133): Drupal\Core\Entity\EntityBase->save()
#20 D:\laragon\www\drupal_contribution\web\modules\contrib\commerce\modules\cart\src\Form\AddToCartForm.php(219): Drupal\commerce_cart\CartManager->addOrderItem(Object(Drupal\commerce_order\Entity\Order), Object(Drupal\commerce_order\Entity\OrderItem), true)
#21 [internal function]: Drupal\commerce_cart\Form\AddToCartForm->submitForm(Array, Object(Drupal\Core\Form\FormState))
#22 D:\laragon\www\drupal_contribution\web\core\lib\Drupal\Core\Form\FormSubmitter.php(129): call_user_func_array(Array, Array)
#23 D:\laragon\www\drupal_contribution\web\core\lib\Drupal\Core\Form\FormSubmitter.php(67): Drupal\Core\Form\FormSubmitter->executeSubmitHandlers(Array, Object(Drupal\Core\Form\FormState))
#24 D:\laragon\www\drupal_contribution\web\core\lib\Drupal\Core\Form\FormBuilder.php(597): Drupal\Core\Form\FormSubmitter->doSubmitForm(Array, Object(Drupal\Core\Form\FormState))
#25 D:\laragon\www\drupal_contribution\web\core\lib\Drupal\Core\Form\FormBuilder.php(325): Drupal\Core\Form\FormBuilder->processForm('commerce_order_...', Array, Object(Drupal\Core\Form\FormState))
#26 D:\laragon\www\drupal_contribution\web\modules\contrib\commerce\modules\product\src\ProductLazyBuilders.php(97): Drupal\Core\Form\FormBuilder->buildForm(Object(Drupal\commerce_cart\Form\AddToCartForm), Object(Drupal\Core\Form\FormState))
#27 [internal function]: Drupal\commerce_product\ProductLazyBuilders->addToCartForm('3', 'full', true, 'en')
#28 D:\laragon\www\drupal_contribution\web\core\lib\Drupal\Core\Security\DoTrustedCallbackTrait.php(111): call_user_func_array(Array, Array)
#29 D:\laragon\www\drupal_contribution\web\core\lib\Drupal\Core\Render\Renderer.php(859): Drupal\Core\Render\Renderer->doTrustedCallback(Array, Array, 'Render #lazy_bu...', 'exception', 'Drupal\\Core\\Ren...')
#30 D:\laragon\www\drupal_contribution\web\core\lib\Drupal\Core\Render\Renderer.php(400): Drupal\Core\Render\Renderer->doCallback('#lazy_builder', 'commerce_produc...', Array)
#31 D:\laragon\www\drupal_contribution\web\core\lib\Drupal\Core\Render\Renderer.php(493): Drupal\Core\Render\Renderer->doRender(Array)
#32 D:\laragon\www\drupal_contribution\web\core\lib\Drupal\Core\Render\Renderer.php(240): Drupal\Core\Render\Renderer->doRender(Array, false)
#33 D:\laragon\www\drupal_contribution\web\core\lib\Drupal\Core\Template\TwigExtension.php(475): Drupal\Core\Render\Renderer->render(Array)
#34 D:\laragon\www\drupal_contribution\web\sites\default\files\php\twig\65f443c4ebc02_field.html.twig_LnH3mEjST8K8UFMDNi8ZOAxn6\GSAt4ewCx1F5qJqcOai0rheSVSHpg0tE873jN13-tko.php(68): Drupal\Core\Template\TwigExtension->escapeFilter(Object(Drupal\Core\Template\TwigEnvironment), Array, 'html', NULL, true)
#35 D:\laragon\www\drupal_contribution\vendor\twig\twig\src\Template.php(394): __TwigTemplate_fe1c3fd7b330fed8f500fa8f78409472->doDisplay(Array, Array)
#36 D:\laragon\www\drupal_contribution\vendor\twig\twig\src\Template.php(367): Twig\Template->displayWithErrorHandling(Array, Array)
#37 D:\laragon\www\drupal_contribution\vendor\twig\twig\src\Template.php(379): Twig\Template->display(Array)
#38 D:\laragon\www\drupal_contribution\vendor\twig\twig\src\TemplateWrapper.php(38): Twig\Template->render(Array)
#39 D:\laragon\www\drupal_contribution\web\core\themes\engines\twig\twig.engine(39): Twig\TemplateWrapper->render(Array)
#40 D:\laragon\www\drupal_contribution\web\core\lib\Drupal\Core\Theme\ThemeManager.php(348): twig_render_template('core/themes/oli...', Array)
#41 D:\laragon\www\drupal_contribution\web\core\lib\Drupal\Core\Render\Renderer.php(480): Drupal\Core\Theme\ThemeManager->render('field', Array)
#42 D:\laragon\www\drupal_contribution\web\core\lib\Drupal\Core\Render\Renderer.php(493): Drupal\Core\Render\Renderer->doRender(Array)
#43 D:\laragon\www\drupal_contribution\web\core\lib\Drupal\Core\Render\Renderer.php(240): Drupal\Core\Render\Renderer->doRender(Array, false)
#44 D:\laragon\www\drupal_contribution\web\core\lib\Drupal\Core\Template\TwigExtension.php(475): Drupal\Core\Render\Renderer->render(Array)
#45 D:\laragon\www\drupal_contribution\web\sites\default\files\php\twig\65f443c4ebc02_commerce-product.html.twi_BhmmTc_SxXMqKO6PqcdpssTVl\5V2c9m2sMb9PaUA6mCCx2GpxhXL16S3172tGyDcnIe4.php(50): Drupal\Core\Template\TwigExtension->escapeFilter(Object(Drupal\Core\Template\TwigEnvironment), Array, 'html', NULL, true)
#46 D:\laragon\www\drupal_contribution\vendor\twig\twig\src\Template.php(394): __TwigTemplate_7417717067bf8562947cf0b02fa1ef5a->doDisplay(Array, Array)
#47 D:\laragon\www\drupal_contribution\vendor\twig\twig\src\Template.php(367): Twig\Template->displayWithErrorHandling(Array, Array)
#48 D:\laragon\www\drupal_contribution\vendor\twig\twig\src\Template.php(379): Twig\Template->display(Array)
#49 D:\laragon\www\drupal_contribution\vendor\twig\twig\src\TemplateWrapper.php(38): Twig\Template->render(Array)
#50 D:\laragon\www\drupal_contribution\web\core\themes\engines\twig\twig.engine(39): Twig\TemplateWrapper->render(Array)
#51 D:\laragon\www\drupal_contribution\web\core\lib\Drupal\Core\Theme\ThemeManager.php(348): twig_render_template('modules/contrib...', Array)
#52 D:\laragon\www\drupal_contribution\web\core\lib\Drupal\Core\Render\Renderer.php(480): Drupal\Core\Theme\ThemeManager->render('commerce_produc...', Array)
#53 D:\laragon\www\drupal_contribution\web\core\lib\Drupal\Core\Render\Renderer.php(240): Drupal\Core\Render\Renderer->doRender(Array, false)
#54 D:\laragon\www\drupal_contribution\web\core\lib\Drupal\Core\Render\MainContent\HtmlRenderer.php(238): Drupal\Core\Render\Renderer->render(Array, false)
#55 D:\laragon\www\drupal_contribution\web\core\lib\Drupal\Core\Render\Renderer.php(627): Drupal\Core\Render\MainContent\HtmlRenderer->Drupal\Core\Render\MainContent\{closure}()
#56 D:\laragon\www\drupal_contribution\web\core\lib\Drupal\Core\Render\MainContent\HtmlRenderer.php(239): Drupal\Core\Render\Renderer->executeInRenderContext(Object(Drupal\Core\Render\RenderContext), Object(Closure))
#57 D:\laragon\www\drupal_contribution\web\core\lib\Drupal\Core\Render\MainContent\HtmlRenderer.php(128): Drupal\Core\Render\MainContent\HtmlRenderer->prepare(Array, Object(Symfony\Component\HttpFoundation\Request), Object(Drupal\Core\Routing\CurrentRouteMatch))
#58 D:\laragon\www\drupal_contribution\web\core\lib\Drupal\Core\EventSubscriber\MainContentViewSubscriber.php(90): Drupal\Core\Render\MainContent\HtmlRenderer->renderResponse(Array, Object(Symfony\Component\HttpFoundation\Request), Object(Drupal\Core\Routing\CurrentRouteMatch))
#59 [internal function]: Drupal\Core\EventSubscriber\MainContentViewSubscriber->onViewRenderArray(Object(Symfony\Component\HttpKernel\Event\ViewEvent), 'kernel.view', Object(Drupal\Component\EventDispatcher\ContainerAwareEventDispatcher))
#60 D:\laragon\www\drupal_contribution\web\core\lib\Drupal\Component\EventDispatcher\ContainerAwareEventDispatcher.php(111): call_user_func(Array, Object(Symfony\Component\HttpKernel\Event\ViewEvent), 'kernel.view', Object(Drupal\Component\EventDispatcher\ContainerAwareEventDispatcher))
#61 D:\laragon\www\drupal_contribution\vendor\symfony\http-kernel\HttpKernel.php(186): Drupal\Component\EventDispatcher\ContainerAwareEventDispatcher->dispatch(Object(Symfony\Component\HttpKernel\Event\ViewEvent), 'kernel.view')
#62 D:\laragon\www\drupal_contribution\vendor\symfony\http-kernel\HttpKernel.php(76): Symfony\Component\HttpKernel\HttpKernel->handleRaw(Object(Symfony\Component\HttpFoundation\Request), 1)
#63 D:\laragon\www\drupal_contribution\web\core\lib\Drupal\Core\StackMiddleware\Session.php(58): Symfony\Component\HttpKernel\HttpKernel->handle(Object(Symfony\Component\HttpFoundation\Request), 1, true)
#64 D:\laragon\www\drupal_contribution\web\core\lib\Drupal\Core\StackMiddleware\KernelPreHandle.php(48): Drupal\Core\StackMiddleware\Session->handle(Object(Symfony\Component\HttpFoundation\Request), 1, true)
#65 D:\laragon\www\drupal_contribution\web\core\lib\Drupal\Core\StackMiddleware\ContentLength.php(28): Drupal\Core\StackMiddleware\KernelPreHandle->handle(Object(Symfony\Component\HttpFoundation\Request), 1, true)
#66 D:\laragon\www\drupal_contribution\web\core\modules\big_pipe\src\StackMiddleware\ContentLength.php(32): Drupal\Core\StackMiddleware\ContentLength->handle(Object(Symfony\Component\HttpFoundation\Request), 1, true)
#67 D:\laragon\www\drupal_contribution\web\core\modules\page_cache\src\StackMiddleware\PageCache.php(106): Drupal\big_pipe\StackMiddleware\ContentLength->handle(Object(Symfony\Component\HttpFoundation\Request), 1, true)
#68 D:\laragon\www\drupal_contribution\web\core\modules\page_cache\src\StackMiddleware\PageCache.php(85): Drupal\page_cache\StackMiddleware\PageCache->pass(Object(Symfony\Component\HttpFoundation\Request), 1, true)
#69 D:\laragon\www\drupal_contribution\web\core\lib\Drupal\Core\StackMiddleware\ReverseProxyMiddleware.php(48): Drupal\page_cache\StackMiddleware\PageCache->handle(Object(Symfony\Component\HttpFoundation\Request), 1, true)
#70 D:\laragon\www\drupal_contribution\web\core\lib\Drupal\Core\StackMiddleware\NegotiationMiddleware.php(51): Drupal\Core\StackMiddleware\ReverseProxyMiddleware->handle(Object(Symfony\Component\HttpFoundation\Request), 1, true)
#71 D:\laragon\www\drupal_contribution\web\core\lib\Drupal\Core\StackMiddleware\AjaxPageState.php(36): Drupal\Core\StackMiddleware\NegotiationMiddleware->handle(Object(Symfony\Component\HttpFoundation\Request), 1, true)
#72 D:\laragon\www\drupal_contribution\web\core\lib\Drupal\Core\StackMiddleware\StackedHttpKernel.php(51): Drupal\Core\StackMiddleware\AjaxPageState->handle(Object(Symfony\Component\HttpFoundation\Request), 1, true)
#73 D:\laragon\www\drupal_contribution\web\core\lib\Drupal\Core\DrupalKernel.php(704): Drupal\Core\StackMiddleware\StackedHttpKernel->handle(Object(Symfony\Component\HttpFoundation\Request), 1, true)
#74 D:\laragon\www\drupal_contribution\web\index.php(19): Drupal\Core\DrupalKernel->handle(Object(Symfony\Component\HttpFoundation\Request))
#75 {main}
Active
3.0
Code