Как исправить ошибку. Срочно! )

Аватар пользователя Александ

[06-Dec-2017 12:49:30 Europe/Moscow] Recoverable fatal error: Argument 2 passed to Drupal\commerce\Context::__construct() must implement interface Drupal\commerce_store\Entity\StoreInterface, boolean given, called in C:\OSPanel\domains\testsite.com\www\modules\contrib\commerce\modules\order\src\OrderRefresh.php on line 137 and defined in C:\OSPanel\domains\testsite.com\www\modules\contrib\commerce\src\Context.php on line 46 #0 C:\OSPanel\domains\testsite.com\www\core\includes\bootstrap.inc(566): _drupal_error_handler_real(4096, 'Argument 2 pass...', 'C:\\OSPanel\\doma...', 46, Array)
#1 C:\OSPanel\domains\testsite.com\www\modules\contrib\commerce\src\Context.php(46): _drupal_error_handler(4096, 'Argument 2 pass...', 'C:\\OSPanel\\doma...', 46, Array)
#2 C:\OSPanel\domains\testsite.com\www\modules\contrib\commerce\modules\order\src\OrderRefresh.php(137): Drupal\commerce\Context->__construct(Object(Drupal\user\Entity\User), false)
#3 C:\OSPanel\domains\testsite.com\www\modules\contrib\commerce\modules\order\src\OrderStorage.php(92): Drupal\commerce_order\OrderRefresh->refresh(Object(Drupal\commerce_order\Entity\Order))
#4 C:\OSPanel\domains\testsite.com\www\core\lib\Drupal\Core\Entity\EntityStorageBase.php(389): Drupal\commerce_order\OrderStorage->doPreSave(Object(Drupal\commerce_order\Entity\Order))
#5 C:\OSPanel\domains\testsite.com\www\core\lib\Drupal\Core\Entity\Sql\SqlContentEntityStorage.php(796): Drupal\Core\Entity\EntityStorageBase->save(Object(Drupal\commerce_order\Entity\Order))
#6 C:\OSPanel\domains\testsite.com\www\core\lib\Drupal\Core\Entity\Entity.php(377): Drupal\Core\Entity\Sql\SqlContentEntityStorage->save(Object(Drupal\commerce_order\Entity\Order))
#7 C:\OSPanel\domains\testsite.com\www\modules\contrib\commerce\modules\order\src\OrderStorage.php(114): Drupal\Core\Entity\Entity->save()
#8 C:\OSPanel\domains\testsite.com\www\core\lib\Drupal\Core\Entity\EntityStorageBase.php(249): Drupal\commerce_order\OrderStorage->postLoad(Array)
#9 C:\OSPanel\domains\testsite.com\www\modules\contrib\commerce\modules\cart\src\CartProvider.php(218): Drupal\Core\Entity\EntityStorageBase->loadMultiple(Array)
#10 C:\OSPanel\domains\testsite.com\www\modules\contrib\commerce\modules\cart\src\CartProvider.php(171): Drupal\commerce_cart\CartProvider->loadCartData(NULL)
#11 C:\OSPanel\domains\testsite.com\www\modules\contrib\commerce\modules\cart\src\CartProvider.php(159): Drupal\commerce_cart\CartProvider->getCartIds(NULL)
#12 C:\OSPanel\domains\testsite.com\www\modules\contrib\commerce\modules\cart\src\Plugin\Block\CartBlock.php(221): Drupal\commerce_cart\CartProvider->getCarts()
#13 C:\OSPanel\domains\testsite.com\www\core\modules\block\src\BlockViewBuilder.php(86): Drupal\commerce_cart\Plugin\Block\CartBlock->getCacheTags()
#14 C:\OSPanel\domains\testsite.com\www\core\modules\block\src\BlockViewBuilder.php(71): Drupal\block\BlockViewBuilder->viewMultiple(Array, 'full', NULL)
#15 C:\OSPanel\domains\testsite.com\www\modules\devel\webprofiler\src\Entity\EntityViewBuilderDecorator.php(41): Drupal\block\BlockViewBuilder->view(Object(Drupal\block\Entity\Block), 'full', NULL)
#16 C:\OSPanel\domains\testsite.com\www\core\modules\block\src\Plugin\DisplayVariant\BlockPageVariant.php(151): Drupal\webprofiler\Entity\EntityViewBuilderDecorator->view(Object(Drupal\block\Entity\Block))
#17 C:\OSPanel\domains\testsite.com\www\core\lib\Drupal\Core\Render\MainContent\HtmlRenderer.php(259): Drupal\block\Plugin\DisplayVariant\BlockPageVariant->build()
#18 C:\OSPanel\domains\testsite.com\www\core\lib\Drupal\Core\Render\MainContent\HtmlRenderer.php(117): Drupal\Core\Render\MainContent\HtmlRenderer->prepare(Array, Object(Symfony\Component\HttpFoundation\Request), Object(Drupal\Core\Routing\CurrentRouteMatch))
#19 C:\OSPanel\domains\testsite.com\www\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))
#20 C:\OSPanel\domains\testsite.com\www\modules\devel\webprofiler\src\EventDispatcher\TraceableEventDispatcher.php(76): Drupal\Core\EventSubscriber\MainContentViewSubscriber->onViewRenderArray(Object(Symfony\Component\HttpKernel\Event\GetResponseForControllerResultEvent), 'kernel.view', Object(Drupal\webprofiler\EventDispatcher\TraceableEventDispatcher))
#21 C:\OSPanel\domains\testsite.com\www\vendor\symfony\http-kernel\HttpKernel.php(158): Drupal\webprofiler\EventDispatcher\TraceableEventDispatcher->dispatch('kernel.view', Object(Symfony\Component\HttpKernel\Event\GetResponseForControllerResultEvent))
#22 C:\OSPanel\domains\testsite.com\www\vendor\symfony\http-kernel\HttpKernel.php(68): Symfony\Component\HttpKernel\HttpKernel->handleRaw(Object(Symfony\Component\HttpFoundation\Request), 1)
#23 C:\OSPanel\domains\testsite.com\www\core\lib\Drupal\Core\StackMiddleware\Session.php(57): Symfony\Component\HttpKernel\HttpKernel->handle(Object(Symfony\Component\HttpFoundation\Request), 1, true)
#24 C:\OSPanel\domains\testsite.com\www\core\lib\Drupal\Core\StackMiddleware\KernelPreHandle.php(47): Drupal\Core\StackMiddleware\Session->handle(Object(Symfony\Component\HttpFoundation\Request), 1, true)
#25 C:\OSPanel\domains\testsite.com\www\core\modules\page_cache\src\StackMiddleware\PageCache.php(99): Drupal\Core\StackMiddleware\KernelPreHandle->handle(Object(Symfony\Component\HttpFoundation\Request), 1, true)
#26 C:\OSPanel\domains\testsite.com\www\core\modules\page_cache\src\StackMiddleware\PageCache.php(78): Drupal\page_cache\StackMiddleware\PageCache->pass(Object(Symfony\Component\HttpFoundation\Request), 1, true)
#27 C:\OSPanel\domains\testsite.com\www\modules\shield\src\ShieldMiddleware.php(72): Drupal\page_cache\StackMiddleware\PageCache->handle(Object(Symfony\Component\HttpFoundation\Request), 1, true)
#28 C:\OSPanel\domains\testsite.com\www\core\lib\Drupal\Core\StackMiddleware\ReverseProxyMiddleware.php(47): Drupal\shield\ShieldMiddleware->handle(Object(Symfony\Component\HttpFoundation\Request), 1, true)
#29 C:\OSPanel\domains\testsite.com\www\modules\devel\webprofiler\src\StackMiddleware\WebprofilerMiddleware.php(38): Drupal\Core\StackMiddleware\ReverseProxyMiddleware->handle(Object(Symfony\Component\HttpFoundation\Request), 1, true)
#30 C:\OSPanel\domains\testsite.com\www\core\lib\Drupal\Core\StackMiddleware\NegotiationMiddleware.php(50): Drupal\webprofiler\StackMiddleware\WebprofilerMiddleware->handle(Object(Symfony\Component\HttpFoundation\Request), 1, true)
#31 C:\OSPanel\domains\testsite.com\www\vendor\stack\builder\src\Stack\StackedHttpKernel.php(23): Drupal\Core\StackMiddleware\NegotiationMiddleware->handle(Object(Symfony\Component\HttpFoundation\Request), 1, true)
#32 C:\OSPanel\domains\testsite.com\www\core\lib\Drupal\Core\DrupalKernel.php(657): Stack\StackedHttpKernel->handle(Object(Symfony\Component\HttpFoundation\Request), 1, true)
#33 C:\OSPanel\domains\testsite.com\www\index.php(19): Drupal\Core\DrupalKernel->handle(Object(Symfony\Component\HttpFoundation\Request))
#34 {main}

Тип материала:
Версия Drupal:
0 Thanks

Комментарии