Hi,

We have add Square configuration and after we add location to square. :

The website encountered an unexpected error. Please try again later.
Error: Call to a member function getInstanceFromDefinition() on null in Drupal\client_connection\ClientConnectionManager->resolveId() (line 236 of modules/client_connection/src/ClientConnectionManager.php).
Drupal\client_connection\ClientConnectionManager->resolveId('square', Array, 'site', 1) (Line: 277)
Drupal\client_connection\ClientConnectionManager->resolveInstance('square', Array) (Line: 36)
commerce_inventory_square_form_commerce_inventory_location_form_alter(Array, Object, 'commerce_inventory_location_square_add_form') (Line: 539)
Drupal\Core\Extension\ModuleHandler->alter('form', Array, Object, 'commerce_inventory_location_square_add_form') (Line: 830)
Drupal\Core\Form\FormBuilder->prepareForm('commerce_inventory_location_square_add_form', Array, Object) (Line: 272)
Drupal\Core\Form\FormBuilder->buildForm('commerce_inventory_location_square_add_form', Object) (Line: 74)
Drupal\Core\Controller\FormController->getContentResult(Object, Object)
call_user_func_array(Array, Array) (Line: 123)
Drupal\Core\EventSubscriber\EarlyRenderingControllerWrapperSubscriber->Drupal\Core\EventSubscriber\{closure}() (Line: 582)
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: 151)
Symfony\Component\HttpKernel\HttpKernel->handleRaw(Object, 1) (Line: 68)
Symfony\Component\HttpKernel\HttpKernel->handle(Object, 1, 1) (Line: 57)
Drupal\Core\StackMiddleware\Session->handle(Object, 1, 1) (Line: 47)
Drupal\Core\StackMiddleware\KernelPreHandle->handle(Object, 1, 1) (Line: 99)
Drupal\page_cache\StackMiddleware\PageCache->pass(Object, 1, 1) (Line: 78)
Drupal\page_cache\StackMiddleware\PageCache->handle(Object, 1, 1) (Line: 47)
Drupal\Core\StackMiddleware\ReverseProxyMiddleware->handle(Object, 1, 1) (Line: 50)
Drupal\Core\StackMiddleware\NegotiationMiddleware->handle(Object, 1, 1) (Line: 23)
Stack\StackedHttpKernel->handle(Object, 1, 1) (Line: 664)
Drupal\Core\DrupalKernel->handle(Object) (Line: 19)

Comments

jackdaniel9 created an issue. See original summary.

jackdaniel9’s picture

Status: Active » Closed (duplicate)