Closed webdeveric closed 4 years ago
When on the content screen in the admin, I'll occasionally get this PHP notice.
Notice: Undefined index: name in Drupal\graphql_metatag\Plugin\GraphQL\Fields\Metatag\Key->resolveValues() (line 25 of modules/contrib/graphql_metatag/src/Plugin/GraphQL/Fields/Metatag/Key.php). Drupal\graphql_metatag\Plugin\GraphQL\Fields\Metatag\Key->resolveValues(Array, Array, Object, Object) iterator_to_array(Object) (Line: 163) Drupal\graphql\Plugin\GraphQL\Fields\FieldPluginBase->Drupal\graphql\Plugin\GraphQL\Fields\{closure}() (Line: 582) Drupal\Core\Render\Renderer->executeInRenderContext(Object, Object) (Line: 166) Drupal\graphql\Plugin\GraphQL\Fields\FieldPluginBase->Drupal\graphql\Plugin\GraphQL\Fields\{closure}() (Line: 171) Drupal\graphql\Plugin\GraphQL\Fields\FieldPluginBase->resolveDeferred(Array, Array, Array, Object, Object) (Line: 130) Drupal\graphql\Plugin\GraphQL\Fields\FieldPluginBase->resolve(Array, Array, Object, Object) (Line: 65) Drupal\graphql\Plugin\GraphQL\Fields\FieldPluginBase::Drupal\graphql\Plugin\GraphQL\Fields\{closure}(Array, Array, Object, Object) (Line: 781) GraphQL\Executor\Executor->resolveOrError(Object, Object, Object, Array, Object, Object) (Line: 744) GraphQL\Executor\Executor->resolveField(Object, Array, Object, Array) (Line: 473) GraphQL\Executor\Executor->executeFields(Object, Array, Array, Object) (Line: 1321) GraphQL\Executor\Executor->collectAndExecuteSubfields(Object, Object, Object, Array, Array) (Line: 1280) GraphQL\Executor\Executor->completeObjectValue(Object, Object, Object, Array, Array) (Line: 1120) GraphQL\Executor\Executor->completeAbstractValue(Object, Object, Object, Array, Array) (Line: 992) GraphQL\Executor\Executor->completeValue(Object, Object, Object, Array, Array) (Line: 876) GraphQL\Executor\Executor->completeValueWithLocatedError(Object, Object, Object, Array, Array) (Line: 830) GraphQL\Executor\Executor->completeValueCatchingError(Object, Object, Object, Array, Array) (Line: 1199) GraphQL\Executor\Executor->completeListValue(Object, Object, Object, Array, Array) (Line: 968) GraphQL\Executor\Executor->completeValue(Object, Object, Object, Array, Array) (Line: 876) GraphQL\Executor\Executor->completeValueWithLocatedError(Object, Object, Object, Array, Array) (Line: 830) GraphQL\Executor\Executor->completeValueCatchingError(Object, Object, Object, Array, Array) (Line: 752) GraphQL\Executor\Executor->resolveField(Object, Object, Object, Array) (Line: 473) GraphQL\Executor\Executor->executeFields(Object, Object, Array, Object) (Line: 1321) GraphQL\Executor\Executor->collectAndExecuteSubfields(Object, Object, Object, Array, Object) (Line: 1280) GraphQL\Executor\Executor->completeObjectValue(Object, Object, Object, Array, Object) (Line: 1120) GraphQL\Executor\Executor->completeAbstractValue(Object, Object, Object, Array, Object) (Line: 992) GraphQL\Executor\Executor->completeValue(Object, Object, Object, Array, Object) (Line: 876) GraphQL\Executor\Executor->completeValueWithLocatedError(Object, Object, Object, Array, Object) (Line: 830) GraphQL\Executor\Executor->completeValueCatchingError(Object, Object, Object, Array, Object) (Line: 1199) GraphQL\Executor\Executor->completeListValue(Object, Object, Object, Array, Array) (Line: 968) GraphQL\Executor\Executor->completeValue(Object, Object, Object, Array, Array) (Line: 935) GraphQL\Executor\Executor->GraphQL\Executor\{closure}(Array) (Line: 135) GraphQL\Executor\Promise\Adapter\SyncPromise->GraphQL\Executor\Promise\Adapter\{closure}() (Line: 35) GraphQL\Executor\Promise\Adapter\SyncPromise::runQueue() (Line: 140) GraphQL\Executor\Promise\Adapter\SyncPromiseAdapter->wait(Object) (Line: 120) Drupal\graphql\GraphQL\Execution\QueryProcessor->executeSingle(Object, Object) (Line: 108) Drupal\graphql\GraphQL\Execution\QueryProcessor->processQuery('default:default', Object) (Line: 82) Drupal\graphql\Controller\RequestController->handleSingle('default:default', Object) (Line: 70) Drupal\graphql\Controller\RequestController->handleRequest('default:default', 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: 67) Drupal\simple_oauth\HttpMiddleware\BasicAuthSwap->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: 41) Drupal\jsonapi\StackMiddleware\FormatSetter->handle(Object, 1, 1) (Line: 49) Asm89\Stack\Cors->handle(Object, 1, 1) (Line: 47) Drupal\Core\StackMiddleware\ReverseProxyMiddleware->handle(Object, 1, 1) (Line: 52) Drupal\Core\StackMiddleware\NegotiationMiddleware->handle(Object, 1, 1) (Line: 23) Stack\StackedHttpKernel->handle(Object, 1, 1) (Line: 693) Drupal\Core\DrupalKernel->handle(Object) (Line: 19)
Hello,
i have joined as maintainer of this module and have already applied this fix in the official drupal repository.
https://www.drupal.org/project/graphql_metatag
Regards
When on the content screen in the admin, I'll occasionally get this PHP notice.