Skip to content
This repository has been archived by the owner on Jul 23, 2024. It is now read-only.

Internal Server Error thrown when using in PHP 8.0 #274

Closed
jasonbahl opened this issue Feb 17, 2021 · 8 comments
Closed

Internal Server Error thrown when using in PHP 8.0 #274

jasonbahl opened this issue Feb 17, 2021 · 8 comments

Comments

@jasonbahl
Copy link
Contributor

@wjohnsto reported that Internal Server Error is being thrown when using WPGraphQL with PHP 8.0.

I've not attempted to replicate this, but wanted to open an issue to track this.

@jasonbahl jasonbahl self-assigned this Feb 17, 2021
@wjohnsto
Copy link

wjohnsto commented Feb 17, 2021

When I enable debug mode I receive the following error:

in_array(): Argument wp-graphql/wp-graphql#2 ($haystack) must be of type array, null given

Full response:

{
  "errors": [
    {
      "debugMessage": "in_array(): Argument wp-graphql/wp-graphql#2 ($haystack) must be of type array, null given",
      "message": "Internal server error",
      "extensions": {
        "category": "internal"
      },
      "locations": [
        {
          "line": 20,
          "column": 3
        }
      ],
      "path": [
        "posts",
        "nodes",
        0,
        "featuredImage"
      ],
      "trace": [
        {
          "file": "/wp-content/plugins/wp-graphql-acf-0.4.0/src/class-config.php",
          "line": 58,
          "function": "in_array('_thumbnail_id', null, true)"
        },
        {
          "file": "/wp-includes/class-wp-hook.php",
          "line": 287,
          "call": "WPGraphQL/ACF/Config::WPGraphQL/ACF/{closure}(true, 23, '_thumbnail_id', true)"
        },
        {
          "file": "/wp-includes/plugin.php",
          "line": 212,
          "call": "WP_Hook::apply_filters(true, array(4))"
        },
        {
          "file": "/wp-content/plugins/wp-graphql/src/Utils/Preview.php",
          "line": 37,
          "function": "apply_filters('graphql_resolve_revision_meta_from_parent', true, 23, '_thumbnail_id', true)"
        },
        {
          "file": "/wp-includes/class-wp-hook.php",
          "line": 289,
          "call": "WPGraphQL/Utils/Preview::filter_post_meta_for_previews(null, 23, '_thumbnail_id', true)"
        },
        {
          "file": "/wp-includes/plugin.php",
          "line": 212,
          "call": "WP_Hook::apply_filters(null, array(5))"
        },
        {
          "file": "/wp-includes/meta.php",
          "line": 564,
          "function": "apply_filters('get_post_metadata', null, 23, '_thumbnail_id', true, 'post')"
        },
        {
          "file": "/wp-includes/meta.php",
          "line": 506,
          "function": "get_metadata_raw('post', 23, '_thumbnail_id', true)"
        },
        {
          "file": "/wp-includes/post.php",
          "line": 2138,
          "function": "get_metadata('post', 23, '_thumbnail_id', true)"
        },
        {
          "file": "/wp-includes/post-thumbnail-template.php",
          "line": 60,
          "function": "get_post_meta(23, '_thumbnail_id', true)"
        },
        {
          "file": "/wp-content/plugins/wp-graphql/src/Model/Post.php",
          "line": 703,
          "function": "get_post_thumbnail_id(instance of WP_Post)"
        },
        {
          "call": "WPGraphQL/Model/Post::WPGraphQL/Model/{closure}()"
        },
        {
          "file": "/wp-content/plugins/wp-graphql/src/Model/Model.php",
          "line": 399,
          "function": "call_user_func(instance of Closure)"
        },
        {
          "call": "WPGraphQL/Model/Model::WPGraphQL/Model/{closure}()"
        },
        {
          "file": "/wp-content/plugins/wp-graphql/src/Model/Model.php",
          "line": 150,
          "function": "call_user_func(instance of Closure)"
        },
        {
          "file": "/wp-content/plugins/wp-graphql/src/Connection/MediaItems.php",
          "line": 30,
          "call": "WPGraphQL/Model/Model::__get('featuredImageDatabaseId')"
        },
        {
          "call": "WPGraphQL/Connection/MediaItems::WPGraphQL/Connection/{closure}(instance of WPGraphQL/Model/Post, array(0), instance of WPGraphQL/AppContext, instance of GraphQL/Type/Definition/ResolveInfo)"
        },
        {
          "file": "/wp-content/plugins/wp-graphql/src/Registry/TypeRegistry.php",
          "line": 1234,
          "function": "call_user_func(instance of Closure, instance of WPGraphQL/Model/Post, array(0), instance of WPGraphQL/AppContext, instance of GraphQL/Type/Definition/ResolveInfo)"
        },
        {
          "call": "WPGraphQL/Registry/TypeRegistry::WPGraphQL/Registry/{closure}(instance of WPGraphQL/Model/Post, array(0), instance of WPGraphQL/AppContext, instance of GraphQL/Type/Definition/ResolveInfo)"
        },
        {
          "file": "/wp-content/plugins/wp-graphql/src/Utils/InstrumentSchema.php",
          "line": 177,
          "function": "call_user_func(instance of Closure, instance of WPGraphQL/Model/Post, array(0), instance of WPGraphQL/AppContext, instance of GraphQL/Type/Definition/ResolveInfo)"
        },
        {
          "call": "WPGraphQL/Utils/InstrumentSchema::WPGraphQL/Utils/{closure}(instance of WPGraphQL/Model/Post, array(0), instance of WPGraphQL/AppContext, instance of GraphQL/Type/Definition/ResolveInfo)"
        },
        {
          "file": "/wp-content/plugins/wp-graphql/src/Utils/InstrumentSchema.php",
          "line": 177,
          "function": "call_user_func(instance of Closure, instance of WPGraphQL/Model/Post, array(0), instance of WPGraphQL/AppContext, instance of GraphQL/Type/Definition/ResolveInfo)"
        },
        {
          "file": "/wp-content/plugins/wp-graphql/vendor/webonyx/graphql-php/src/Executor/ReferenceExecutor.php",
          "line": 624,
          "call": "WPGraphQL/Utils/InstrumentSchema::WPGraphQL/Utils/{closure}(instance of WPGraphQL/Model/Post, array(0), instance of WPGraphQL/AppContext, instance of GraphQL/Type/Definition/ResolveInfo)"
        },
        {
          "file": "/wp-content/plugins/wp-graphql/vendor/webonyx/graphql-php/src/Executor/ReferenceExecutor.php",
          "line": 550,
          "call": "GraphQL/Executor/ReferenceExecutor::resolveFieldValueOrError(instance of GraphQL/Type/Definition/FieldDefinition, instance of GraphQL/Language/AST/FieldNode, instance of Closure, instance of WPGraphQL/Model/Post, instance of GraphQL/Type/Definition/ResolveInfo)"
        },
        {
          "file": "/wp-content/plugins/wp-graphql/vendor/webonyx/graphql-php/src/Executor/ReferenceExecutor.php",
          "line": 1196,
          "call": "GraphQL/Executor/ReferenceExecutor::resolveField(GraphQLType: Post, instance of WPGraphQL/Model/Post, instance of ArrayObject(1), array(4))"
        },
        {
          "file": "/wp-content/plugins/wp-graphql/vendor/webonyx/graphql-php/src/Executor/ReferenceExecutor.php",
          "line": 1146,
          "call": "GraphQL/Executor/ReferenceExecutor::executeFields(GraphQLType: Post, instance of WPGraphQL/Model/Post, array(3), instance of ArrayObject(15))"
        },
        {
          "file": "/wp-content/plugins/wp-graphql/vendor/webonyx/graphql-php/src/Executor/ReferenceExecutor.php",
          "line": 1107,
          "call": "GraphQL/Executor/ReferenceExecutor::collectAndExecuteSubfields(GraphQLType: Post, instance of ArrayObject(1), array(3), instance of WPGraphQL/Model/Post)"
        },
        {
          "file": "/wp-content/plugins/wp-graphql/vendor/webonyx/graphql-php/src/Executor/ReferenceExecutor.php",
          "line": 794,
          "call": "GraphQL/Executor/ReferenceExecutor::completeObjectValue(GraphQLType: Post, instance of ArrayObject(1), instance of GraphQL/Type/Definition/ResolveInfo, array(3), instance of WPGraphQL/Model/Post)"
        },
        {
          "file": "/wp-content/plugins/wp-graphql/vendor/webonyx/graphql-php/src/Executor/ReferenceExecutor.php",
          "line": 655,
          "call": "GraphQL/Executor/ReferenceExecutor::completeValue(GraphQLType: Post, instance of ArrayObject(1), instance of GraphQL/Type/Definition/ResolveInfo, array(3), instance of WPGraphQL/Model/Post)"
        },
        {
          "file": "/wp-content/plugins/wp-graphql/vendor/webonyx/graphql-php/src/Executor/ReferenceExecutor.php",
          "line": 888,
          "call": "GraphQL/Executor/ReferenceExecutor::completeValueCatchingError(GraphQLType: Post, instance of ArrayObject(1), instance of GraphQL/Type/Definition/ResolveInfo, array(3), instance of WPGraphQL/Model/Post)"
        },
        {
          "file": "/wp-content/plugins/wp-graphql/vendor/webonyx/graphql-php/src/Executor/ReferenceExecutor.php",
          "line": 762,
          "call": "GraphQL/Executor/ReferenceExecutor::completeListValue(GraphQLType: Post, instance of ArrayObject(1), instance of GraphQL/Type/Definition/ResolveInfo, array(2), array(2))"
        },
        {
          "file": "/wp-content/plugins/wp-graphql/vendor/webonyx/graphql-php/src/Executor/ReferenceExecutor.php",
          "line": 655,
          "call": "GraphQL/Executor/ReferenceExecutor::completeValue(GraphQLType: Post, instance of ArrayObject(1), instance of GraphQL/Type/Definition/ResolveInfo, array(2), array(2))"
        },
        {
          "file": "/wp-content/plugins/wp-graphql/vendor/webonyx/graphql-php/src/Executor/ReferenceExecutor.php",
          "line": 557,
          "call": "GraphQL/Executor/ReferenceExecutor::completeValueCatchingError(GraphQLType: Post, instance of ArrayObject(1), instance of GraphQL/Type/Definition/ResolveInfo, array(2), array(2))"
        },
        {
          "file": "/wp-content/plugins/wp-graphql/vendor/webonyx/graphql-php/src/Executor/ReferenceExecutor.php",
          "line": 1196,
          "call": "GraphQL/Executor/ReferenceExecutor::resolveField(GraphQLType: RootQueryToPostConnection, array(3), instance of ArrayObject(1), array(2))"
        },
        {
          "file": "/wp-content/plugins/wp-graphql/vendor/webonyx/graphql-php/src/Executor/ReferenceExecutor.php",
          "line": 1146,
          "call": "GraphQL/Executor/ReferenceExecutor::executeFields(GraphQLType: RootQueryToPostConnection, array(3), array(1), instance of ArrayObject(2))"
        },
        {
          "file": "/wp-content/plugins/wp-graphql/vendor/webonyx/graphql-php/src/Executor/ReferenceExecutor.php",
          "line": 1107,
          "call": "GraphQL/Executor/ReferenceExecutor::collectAndExecuteSubfields(GraphQLType: RootQueryToPostConnection, instance of ArrayObject(1), array(1), array(3))"
        },
        {
          "file": "/wp-content/plugins/wp-graphql/vendor/webonyx/graphql-php/src/Executor/ReferenceExecutor.php",
          "line": 794,
          "call": "GraphQL/Executor/ReferenceExecutor::completeObjectValue(GraphQLType: RootQueryToPostConnection, instance of ArrayObject(1), instance of GraphQL/Type/Definition/ResolveInfo, array(1), array(3))"
        },
        {
          "file": "/wp-content/plugins/wp-graphql/vendor/webonyx/graphql-php/src/Executor/ReferenceExecutor.php",
          "line": 652,
          "call": "GraphQL/Executor/ReferenceExecutor::completeValue(GraphQLType: RootQueryToPostConnection, instance of ArrayObject(1), instance of GraphQL/Type/Definition/ResolveInfo, array(1), array(3))"
        },
        {
          "file": "/wp-content/plugins/wp-graphql/vendor/webonyx/graphql-php/src/Executor/Promise/Adapter/SyncPromise.php",
          "line": 148,
          "call": "GraphQL/Executor/ReferenceExecutor::GraphQL/Executor/{closure}(array(3))"
        },
        {
          "file": "/wp-content/plugins/wp-graphql/vendor/webonyx/graphql-php/src/Executor/Promise/Adapter/SyncPromise.php",
          "line": 53,
          "call": "GraphQL/Executor/Promise/Adapter/SyncPromise::GraphQL/Executor/Promise/Adapter/{closure}()"
        },
        {
          "file": "/wp-content/plugins/wp-graphql/vendor/webonyx/graphql-php/src/Executor/Promise/Adapter/SyncPromiseAdapter.php",
          "line": 149,
          "call": "GraphQL/Executor/Promise/Adapter/SyncPromise::runQueue()"
        },
        {
          "file": "/wp-content/plugins/wp-graphql/vendor/webonyx/graphql-php/src/Server/Helper.php",
          "line": 214,
          "call": "GraphQL/Executor/Promise/Adapter/SyncPromiseAdapter::wait(instance of GraphQL/Executor/Promise/Promise)"
        },
        {
          "file": "/wp-content/plugins/wp-graphql/vendor/webonyx/graphql-php/src/Server/StandardServer.php",
          "line": 136,
          "call": "GraphQL/Server/Helper::executeOperation(instance of GraphQL/Server/ServerConfig, instance of GraphQL/Server/OperationParams)"
        },
        {
          "file": "/wp-content/plugins/wp-graphql/src/Request.php",
          "line": 602,
          "call": "GraphQL/Server/StandardServer::executeRequest(instance of GraphQL/Server/OperationParams)"
        },
        {
          "file": "/wp-content/plugins/wp-graphql/src/Router.php",
          "line": 463,
          "call": "WPGraphQL/Request::execute_http()"
        },
        {
          "file": "/wp-content/plugins/wp-graphql/src/Router.php",
          "line": 268,
          "call": "WPGraphQL/Router::process_http_request()"
        },
        {
          "file": "/wp-includes/class-wp-hook.php",
          "line": 287,
          "call": "WPGraphQL/Router::resolve_http_request(instance of WP)"
        },
        {
          "file": "/wp-includes/class-wp-hook.php",
          "line": 311,
          "call": "WP_Hook::apply_filters(null, array(1))"
        },
        {
          "file": "/wp-includes/plugin.php",
          "line": 551,
          "call": "WP_Hook::do_action(array(1))"
        },
        {
          "file": "/wp-includes/class-wp.php",
          "line": 388,
          "function": "do_action_ref_array('parse_request', array(1))"
        },
        {
          "file": "/wp-includes/class-wp.php",
          "line": 745,
          "call": "WP::parse_request((empty string))"
        },
        {
          "file": "/wp-includes/functions.php",
          "line": 1291,
          "call": "WP::main((empty string))"
        },
        {
          "file": "/wp-blog-header.php",
          "line": 16,
          "function": "wp()"
        },
        {
          "file": "/index.php",
          "line": 17,
          "function": "require('/wp-blog-header.php')"
        }
      ]
    },
    {
      "debugMessage": "in_array(): Argument wp-graphql/wp-graphql#2 ($haystack) must be of type array, null given",
      "message": "Internal server error",
      "extensions": {
        "category": "internal"
      },
      "locations": [
        {
          "line": 20,
          "column": 3
        }
      ],
      "path": [
        "posts",
        "nodes",
        1,
        "featuredImage"
      ],
      "trace": [
        {
          "file": "/wp-content/plugins/wp-graphql-acf-0.4.0/src/class-config.php",
          "line": 58,
          "function": "in_array('_thumbnail_id', null, true)"
        },
        {
          "file": "/wp-includes/class-wp-hook.php",
          "line": 287,
          "call": "WPGraphQL/ACF/Config::WPGraphQL/ACF/{closure}(true, 1, '_thumbnail_id', true)"
        },
        {
          "file": "/wp-includes/plugin.php",
          "line": 212,
          "call": "WP_Hook::apply_filters(true, array(4))"
        },
        {
          "file": "/wp-content/plugins/wp-graphql/src/Utils/Preview.php",
          "line": 37,
          "function": "apply_filters('graphql_resolve_revision_meta_from_parent', true, 1, '_thumbnail_id', true)"
        },
        {
          "file": "/wp-includes/class-wp-hook.php",
          "line": 289,
          "call": "WPGraphQL/Utils/Preview::filter_post_meta_for_previews(null, 1, '_thumbnail_id', true)"
        },
        {
          "file": "/wp-includes/plugin.php",
          "line": 212,
          "call": "WP_Hook::apply_filters(null, array(5))"
        },
        {
          "file": "/wp-includes/meta.php",
          "line": 564,
          "function": "apply_filters('get_post_metadata', null, 1, '_thumbnail_id', true, 'post')"
        },
        {
          "file": "/wp-includes/meta.php",
          "line": 506,
          "function": "get_metadata_raw('post', 1, '_thumbnail_id', true)"
        },
        {
          "file": "/wp-includes/post.php",
          "line": 2138,
          "function": "get_metadata('post', 1, '_thumbnail_id', true)"
        },
        {
          "file": "/wp-includes/post-thumbnail-template.php",
          "line": 60,
          "function": "get_post_meta(1, '_thumbnail_id', true)"
        },
        {
          "file": "/wp-content/plugins/wp-graphql/src/Model/Post.php",
          "line": 703,
          "function": "get_post_thumbnail_id(instance of WP_Post)"
        },
        {
          "call": "WPGraphQL/Model/Post::WPGraphQL/Model/{closure}()"
        },
        {
          "file": "/wp-content/plugins/wp-graphql/src/Model/Model.php",
          "line": 399,
          "function": "call_user_func(instance of Closure)"
        },
        {
          "call": "WPGraphQL/Model/Model::WPGraphQL/Model/{closure}()"
        },
        {
          "file": "/wp-content/plugins/wp-graphql/src/Model/Model.php",
          "line": 150,
          "function": "call_user_func(instance of Closure)"
        },
        {
          "file": "/wp-content/plugins/wp-graphql/src/Connection/MediaItems.php",
          "line": 30,
          "call": "WPGraphQL/Model/Model::__get('featuredImageDatabaseId')"
        },
        {
          "call": "WPGraphQL/Connection/MediaItems::WPGraphQL/Connection/{closure}(instance of WPGraphQL/Model/Post, array(0), instance of WPGraphQL/AppContext, instance of GraphQL/Type/Definition/ResolveInfo)"
        },
        {
          "file": "/wp-content/plugins/wp-graphql/src/Registry/TypeRegistry.php",
          "line": 1234,
          "function": "call_user_func(instance of Closure, instance of WPGraphQL/Model/Post, array(0), instance of WPGraphQL/AppContext, instance of GraphQL/Type/Definition/ResolveInfo)"
        },
        {
          "call": "WPGraphQL/Registry/TypeRegistry::WPGraphQL/Registry/{closure}(instance of WPGraphQL/Model/Post, array(0), instance of WPGraphQL/AppContext, instance of GraphQL/Type/Definition/ResolveInfo)"
        },
        {
          "file": "/wp-content/plugins/wp-graphql/src/Utils/InstrumentSchema.php",
          "line": 177,
          "function": "call_user_func(instance of Closure, instance of WPGraphQL/Model/Post, array(0), instance of WPGraphQL/AppContext, instance of GraphQL/Type/Definition/ResolveInfo)"
        },
        {
          "call": "WPGraphQL/Utils/InstrumentSchema::WPGraphQL/Utils/{closure}(instance of WPGraphQL/Model/Post, array(0), instance of WPGraphQL/AppContext, instance of GraphQL/Type/Definition/ResolveInfo)"
        },
        {
          "file": "/wp-content/plugins/wp-graphql/src/Utils/InstrumentSchema.php",
          "line": 177,
          "function": "call_user_func(instance of Closure, instance of WPGraphQL/Model/Post, array(0), instance of WPGraphQL/AppContext, instance of GraphQL/Type/Definition/ResolveInfo)"
        },
        {
          "file": "/wp-content/plugins/wp-graphql/vendor/webonyx/graphql-php/src/Executor/ReferenceExecutor.php",
          "line": 624,
          "call": "WPGraphQL/Utils/InstrumentSchema::WPGraphQL/Utils/{closure}(instance of WPGraphQL/Model/Post, array(0), instance of WPGraphQL/AppContext, instance of GraphQL/Type/Definition/ResolveInfo)"
        },
        {
          "file": "/wp-content/plugins/wp-graphql/vendor/webonyx/graphql-php/src/Executor/ReferenceExecutor.php",
          "line": 550,
          "call": "GraphQL/Executor/ReferenceExecutor::resolveFieldValueOrError(instance of GraphQL/Type/Definition/FieldDefinition, instance of GraphQL/Language/AST/FieldNode, instance of Closure, instance of WPGraphQL/Model/Post, instance of GraphQL/Type/Definition/ResolveInfo)"
        },
        {
          "file": "/wp-content/plugins/wp-graphql/vendor/webonyx/graphql-php/src/Executor/ReferenceExecutor.php",
          "line": 1196,
          "call": "GraphQL/Executor/ReferenceExecutor::resolveField(GraphQLType: Post, instance of WPGraphQL/Model/Post, instance of ArrayObject(1), array(4))"
        },
        {
          "file": "/wp-content/plugins/wp-graphql/vendor/webonyx/graphql-php/src/Executor/ReferenceExecutor.php",
          "line": 1146,
          "call": "GraphQL/Executor/ReferenceExecutor::executeFields(GraphQLType: Post, instance of WPGraphQL/Model/Post, array(3), instance of ArrayObject(15))"
        },
        {
          "file": "/wp-content/plugins/wp-graphql/vendor/webonyx/graphql-php/src/Executor/ReferenceExecutor.php",
          "line": 1107,
          "call": "GraphQL/Executor/ReferenceExecutor::collectAndExecuteSubfields(GraphQLType: Post, instance of ArrayObject(1), array(3), instance of WPGraphQL/Model/Post)"
        },
        {
          "file": "/wp-content/plugins/wp-graphql/vendor/webonyx/graphql-php/src/Executor/ReferenceExecutor.php",
          "line": 794,
          "call": "GraphQL/Executor/ReferenceExecutor::completeObjectValue(GraphQLType: Post, instance of ArrayObject(1), instance of GraphQL/Type/Definition/ResolveInfo, array(3), instance of WPGraphQL/Model/Post)"
        },
        {
          "file": "/wp-content/plugins/wp-graphql/vendor/webonyx/graphql-php/src/Executor/ReferenceExecutor.php",
          "line": 655,
          "call": "GraphQL/Executor/ReferenceExecutor::completeValue(GraphQLType: Post, instance of ArrayObject(1), instance of GraphQL/Type/Definition/ResolveInfo, array(3), instance of WPGraphQL/Model/Post)"
        },
        {
          "file": "/wp-content/plugins/wp-graphql/vendor/webonyx/graphql-php/src/Executor/ReferenceExecutor.php",
          "line": 888,
          "call": "GraphQL/Executor/ReferenceExecutor::completeValueCatchingError(GraphQLType: Post, instance of ArrayObject(1), instance of GraphQL/Type/Definition/ResolveInfo, array(3), instance of WPGraphQL/Model/Post)"
        },
        {
          "file": "/wp-content/plugins/wp-graphql/vendor/webonyx/graphql-php/src/Executor/ReferenceExecutor.php",
          "line": 762,
          "call": "GraphQL/Executor/ReferenceExecutor::completeListValue(GraphQLType: Post, instance of ArrayObject(1), instance of GraphQL/Type/Definition/ResolveInfo, array(2), array(2))"
        },
        {
          "file": "/wp-content/plugins/wp-graphql/vendor/webonyx/graphql-php/src/Executor/ReferenceExecutor.php",
          "line": 655,
          "call": "GraphQL/Executor/ReferenceExecutor::completeValue(GraphQLType: Post, instance of ArrayObject(1), instance of GraphQL/Type/Definition/ResolveInfo, array(2), array(2))"
        },
        {
          "file": "/wp-content/plugins/wp-graphql/vendor/webonyx/graphql-php/src/Executor/ReferenceExecutor.php",
          "line": 557,
          "call": "GraphQL/Executor/ReferenceExecutor::completeValueCatchingError(GraphQLType: Post, instance of ArrayObject(1), instance of GraphQL/Type/Definition/ResolveInfo, array(2), array(2))"
        },
        {
          "file": "/wp-content/plugins/wp-graphql/vendor/webonyx/graphql-php/src/Executor/ReferenceExecutor.php",
          "line": 1196,
          "call": "GraphQL/Executor/ReferenceExecutor::resolveField(GraphQLType: RootQueryToPostConnection, array(3), instance of ArrayObject(1), array(2))"
        },
        {
          "file": "/wp-content/plugins/wp-graphql/vendor/webonyx/graphql-php/src/Executor/ReferenceExecutor.php",
          "line": 1146,
          "call": "GraphQL/Executor/ReferenceExecutor::executeFields(GraphQLType: RootQueryToPostConnection, array(3), array(1), instance of ArrayObject(2))"
        },
        {
          "file": "/wp-content/plugins/wp-graphql/vendor/webonyx/graphql-php/src/Executor/ReferenceExecutor.php",
          "line": 1107,
          "call": "GraphQL/Executor/ReferenceExecutor::collectAndExecuteSubfields(GraphQLType: RootQueryToPostConnection, instance of ArrayObject(1), array(1), array(3))"
        },
        {
          "file": "/wp-content/plugins/wp-graphql/vendor/webonyx/graphql-php/src/Executor/ReferenceExecutor.php",
          "line": 794,
          "call": "GraphQL/Executor/ReferenceExecutor::completeObjectValue(GraphQLType: RootQueryToPostConnection, instance of ArrayObject(1), instance of GraphQL/Type/Definition/ResolveInfo, array(1), array(3))"
        },
        {
          "file": "/wp-content/plugins/wp-graphql/vendor/webonyx/graphql-php/src/Executor/ReferenceExecutor.php",
          "line": 652,
          "call": "GraphQL/Executor/ReferenceExecutor::completeValue(GraphQLType: RootQueryToPostConnection, instance of ArrayObject(1), instance of GraphQL/Type/Definition/ResolveInfo, array(1), array(3))"
        },
        {
          "file": "/wp-content/plugins/wp-graphql/vendor/webonyx/graphql-php/src/Executor/Promise/Adapter/SyncPromise.php",
          "line": 148,
          "call": "GraphQL/Executor/ReferenceExecutor::GraphQL/Executor/{closure}(array(3))"
        },
        {
          "file": "/wp-content/plugins/wp-graphql/vendor/webonyx/graphql-php/src/Executor/Promise/Adapter/SyncPromise.php",
          "line": 53,
          "call": "GraphQL/Executor/Promise/Adapter/SyncPromise::GraphQL/Executor/Promise/Adapter/{closure}()"
        },
        {
          "file": "/wp-content/plugins/wp-graphql/vendor/webonyx/graphql-php/src/Executor/Promise/Adapter/SyncPromiseAdapter.php",
          "line": 149,
          "call": "GraphQL/Executor/Promise/Adapter/SyncPromise::runQueue()"
        },
        {
          "file": "/wp-content/plugins/wp-graphql/vendor/webonyx/graphql-php/src/Server/Helper.php",
          "line": 214,
          "call": "GraphQL/Executor/Promise/Adapter/SyncPromiseAdapter::wait(instance of GraphQL/Executor/Promise/Promise)"
        },
        {
          "file": "/wp-content/plugins/wp-graphql/vendor/webonyx/graphql-php/src/Server/StandardServer.php",
          "line": 136,
          "call": "GraphQL/Server/Helper::executeOperation(instance of GraphQL/Server/ServerConfig, instance of GraphQL/Server/OperationParams)"
        },
        {
          "file": "/wp-content/plugins/wp-graphql/src/Request.php",
          "line": 602,
          "call": "GraphQL/Server/StandardServer::executeRequest(instance of GraphQL/Server/OperationParams)"
        },
        {
          "file": "/wp-content/plugins/wp-graphql/src/Router.php",
          "line": 463,
          "call": "WPGraphQL/Request::execute_http()"
        },
        {
          "file": "/wp-content/plugins/wp-graphql/src/Router.php",
          "line": 268,
          "call": "WPGraphQL/Router::process_http_request()"
        },
        {
          "file": "/wp-includes/class-wp-hook.php",
          "line": 287,
          "call": "WPGraphQL/Router::resolve_http_request(instance of WP)"
        },
        {
          "file": "/wp-includes/class-wp-hook.php",
          "line": 311,
          "call": "WP_Hook::apply_filters(null, array(1))"
        },
        {
          "file": "/wp-includes/plugin.php",
          "line": 551,
          "call": "WP_Hook::do_action(array(1))"
        },
        {
          "file": "/wp-includes/class-wp.php",
          "line": 388,
          "function": "do_action_ref_array('parse_request', array(1))"
        },
        {
          "file": "/wp-includes/class-wp.php",
          "line": 745,
          "call": "WP::parse_request((empty string))"
        },
        {
          "file": "/wp-includes/functions.php",
          "line": 1291,
          "call": "WP::main((empty string))"
        },
        {
          "file": "/wp-blog-header.php",
          "line": 16,
          "function": "wp()"
        },
        {
          "file": "/index.php",
          "line": 17,
          "function": "require('/wp-blog-header.php')"
        }
      ]
    }
  ],
  "data": {
    "posts": {
      "pageInfo": {
        "endCursor": "YXJyYXljb25uZWN0aW9uOjE=",
        "hasNextPage": false,
        "hasPreviousPage": false,
        "startCursor": "YXJyYXljb25uZWN0aW9uOjIz"
      },
      "nodes": [
        {
          "date": "2020-10-30T18:09:29",
          "id": "cG9zdDoyMw==",
          "slug": "new-test-post",
          "title": "New Test Post",
          "content": "\n<p>Some content ;lk;lkl; asdfdsaf</p>\n",
          "isRevision": false,
          "isPreview": false,
          "isSticky": false,
          "excerpt": "<p>Some content ;lk;lkl; asdfdsaf</p>\n",
          "uri": "http://localhost:3000/new-test-post/",
          "status": "publish",
          "authorId": "dXNlcjox",
          "author": {
            "node": {
              "nicename": "admin"
            }
          },
          "featuredImage": null,
          "enqueuedStylesheets": {
            "nodes": [
              {
                "src": "/wp-includes/css/dist/block-library/style.min.css",
                "handle": "wp-block-library"
              },
              {
                "src": "http://wptest.local/wp-content/themes/twentytwenty/style.css",
                "handle": "twentytwenty-style"
              },
              {
                "src": "http://wptest.local/wp-content/themes/twentytwenty/print.css",
                "handle": "twentytwenty-print-style"
              }
            ]
          }
        },
        {
          "date": "2020-10-22T17:30:36",
          "id": "cG9zdDox",
          "slug": "hello-world",
          "title": "Hello world!",
          "content": "\n<p>Welcome to WordPress. This is your first post. Edit or delete it, then start writing!</p>\n\n\n\n<div class=\"wp-block-columns\">\n<div class=\"wp-block-column\">\n<p>Test col 1</p>\n</div>\n\n\n\n<div class=\"wp-block-column\">\n<p>Test col 2</p>\n</div>\n\n\n\n<div class=\"wp-block-column\">\n<p>Test col 3</p>\n</div>\n</div>\n\n\n\n<p></p>\n",
          "isRevision": false,
          "isPreview": false,
          "isSticky": false,
          "excerpt": "<p>Welcome to WordPress. This is your first post. Edit or delete it, then start writing! Test col 1 Test col 2 Test col 3</p>\n",
          "uri": "http://localhost:3000/hello-world/",
          "status": "publish",
          "authorId": "dXNlcjox",
          "author": {
            "node": {
              "nicename": "admin"
            }
          },
          "featuredImage": null,
          "enqueuedStylesheets": {
            "nodes": [
              {
                "src": "/wp-includes/css/dist/block-library/style.min.css",
                "handle": "wp-block-library"
              },
              {
                "src": "http://wptest.local/wp-content/themes/twentytwenty/style.css",
                "handle": "twentytwenty-style"
              },
              {
                "src": "http://wptest.local/wp-content/themes/twentytwenty/print.css",
                "handle": "twentytwenty-print-style"
              }
            ]
          }
        }
      ]
    }
  },
  "extensions": {
    "debug": [],
    "tracing": {
      "version": 1,
      "startTime": 1613582803.639814,
      "endTime": 1613582803.703256,
      "duration": 63441,
      "execution": {
        "resolvers": [
          {
            "path": [
              "posts"
            ],
            "parentType": "RootQuery",
            "fieldName": "posts",
            "returnType": "RootQueryToPostConnection",
            "startOffset": 14563,
            "duration": 2902
          },
          {
            "path": [
              "posts",
              "pageInfo"
            ],
            "parentType": "RootQueryToPostConnection",
            "fieldName": "pageInfo",
            "returnType": "WPPageInfo",
            "startOffset": 27860,
            "duration": 8
          },
          {
            "path": [
              "posts",
              "pageInfo",
              "endCursor"
            ],
            "parentType": "WPPageInfo",
            "fieldName": "endCursor",
            "returnType": "String",
            "startOffset": 27992,
            "duration": 7
          },
          {
            "path": [
              "posts",
              "pageInfo",
              "hasNextPage"
            ],
            "parentType": "WPPageInfo",
            "fieldName": "hasNextPage",
            "returnType": "Boolean!",
            "startOffset": 28069,
            "duration": 7
          },
          {
            "path": [
              "posts",
              "pageInfo",
              "hasPreviousPage"
            ],
            "parentType": "WPPageInfo",
            "fieldName": "hasPreviousPage",
            "returnType": "Boolean!",
            "startOffset": 28143,
            "duration": 5
          },
          {
            "path": [
              "posts",
              "pageInfo",
              "startCursor"
            ],
            "parentType": "WPPageInfo",
            "fieldName": "startCursor",
            "returnType": "String",
            "startOffset": 28212,
            "duration": 5
          },
          {
            "path": [
              "posts",
              "nodes"
            ],
            "parentType": "RootQueryToPostConnection",
            "fieldName": "nodes",
            "returnType": "[Post]",
            "startOffset": 28283,
            "duration": 10
          },
          {
            "path": [
              "posts",
              "nodes",
              0,
              "date"
            ],
            "parentType": "Post",
            "fieldName": "date",
            "returnType": "String",
            "startOffset": 28495,
            "duration": 277
          },
          {
            "path": [
              "posts",
              "nodes",
              0,
              "id"
            ],
            "parentType": "Post",
            "fieldName": "id",
            "returnType": "ID!",
            "startOffset": 28841,
            "duration": 833
          },
          {
            "path": [
              "posts",
              "nodes",
              0,
              "slug"
            ],
            "parentType": "Post",
            "fieldName": "slug",
            "returnType": "String",
            "startOffset": 29756,
            "duration": 159
          },
          {
            "path": [
              "posts",
              "nodes",
              0,
              "title"
            ],
            "parentType": "Post",
            "fieldName": "title",
            "returnType": "String",
            "startOffset": 29986,
            "duration": 223
          },
          {
            "path": [
              "posts",
              "nodes",
              0,
              "content"
            ],
            "parentType": "Post",
            "fieldName": "content",
            "returnType": "String",
            "startOffset": 30280,
            "duration": 427
          },
          {
            "path": [
              "posts",
              "nodes",
              0,
              "isRevision"
            ],
            "parentType": "Post",
            "fieldName": "isRevision",
            "returnType": "Boolean",
            "startOffset": 30776,
            "duration": 149
          },
          {
            "path": [
              "posts",
              "nodes",
              0,
              "isPreview"
            ],
            "parentType": "Post",
            "fieldName": "isPreview",
            "returnType": "Boolean",
            "startOffset": 30990,
            "duration": 218
          },
          {
            "path": [
              "posts",
              "nodes",
              0,
              "isSticky"
            ],
            "parentType": "Post",
            "fieldName": "isSticky",
            "returnType": "Boolean!",
            "startOffset": 31274,
            "duration": 174
          },
          {
            "path": [
              "posts",
              "nodes",
              0,
              "excerpt"
            ],
            "parentType": "Post",
            "fieldName": "excerpt",
            "returnType": "String",
            "startOffset": 31521,
            "duration": 658
          },
          {
            "path": [
              "posts",
              "nodes",
              0,
              "uri"
            ],
            "parentType": "Post",
            "fieldName": "uri",
            "returnType": "String!",
            "startOffset": 32248,
            "duration": 545
          },
          {
            "path": [
              "posts",
              "nodes",
              0,
              "status"
            ],
            "parentType": "Post",
            "fieldName": "status",
            "returnType": "String",
            "startOffset": 32865,
            "duration": 145
          },
          {
            "path": [
              "posts",
              "nodes",
              0,
              "authorId"
            ],
            "parentType": "Post",
            "fieldName": "authorId",
            "returnType": "ID",
            "startOffset": 33076,
            "duration": 143
          },
          {
            "path": [
              "posts",
              "nodes",
              0,
              "author"
            ],
            "parentType": "Post",
            "fieldName": "author",
            "returnType": "NodeWithAuthorToUserConnectionEdge",
            "startOffset": 33282,
            "duration": 17527
          },
          {
            "path": [
              "posts",
              "nodes",
              0,
              "enqueuedStylesheets"
            ],
            "parentType": "Post",
            "fieldName": "enqueuedStylesheets",
            "returnType": "ContentNodeToEnqueuedStylesheetConnection",
            "startOffset": 52037,
            "duration": 1458
          },
          {
            "path": [
              "posts",
              "nodes",
              1,
              "date"
            ],
            "parentType": "Post",
            "fieldName": "date",
            "returnType": "String",
            "startOffset": 53606,
            "duration": 188
          },
          {
            "path": [
              "posts",
              "nodes",
              1,
              "id"
            ],
            "parentType": "Post",
            "fieldName": "id",
            "returnType": "ID!",
            "startOffset": 53862,
            "duration": 287
          },
          {
            "path": [
              "posts",
              "nodes",
              1,
              "slug"
            ],
            "parentType": "Post",
            "fieldName": "slug",
            "returnType": "String",
            "startOffset": 54219,
            "duration": 141
          },
          {
            "path": [
              "posts",
              "nodes",
              1,
              "title"
            ],
            "parentType": "Post",
            "fieldName": "title",
            "returnType": "String",
            "startOffset": 54429,
            "duration": 174
          },
          {
            "path": [
              "posts",
              "nodes",
              1,
              "content"
            ],
            "parentType": "Post",
            "fieldName": "content",
            "returnType": "String",
            "startOffset": 54680,
            "duration": 633
          },
          {
            "path": [
              "posts",
              "nodes",
              1,
              "isRevision"
            ],
            "parentType": "Post",
            "fieldName": "isRevision",
            "returnType": "Boolean",
            "startOffset": 55379,
            "duration": 148
          },
          {
            "path": [
              "posts",
              "nodes",
              1,
              "isPreview"
            ],
            "parentType": "Post",
            "fieldName": "isPreview",
            "returnType": "Boolean",
            "startOffset": 55591,
            "duration": 142
          },
          {
            "path": [
              "posts",
              "nodes",
              1,
              "isSticky"
            ],
            "parentType": "Post",
            "fieldName": "isSticky",
            "returnType": "Boolean!",
            "startOffset": 55796,
            "duration": 154
          },
          {
            "path": [
              "posts",
              "nodes",
              1,
              "excerpt"
            ],
            "parentType": "Post",
            "fieldName": "excerpt",
            "returnType": "String",
            "startOffset": 56024,
            "duration": 756
          },
          {
            "path": [
              "posts",
              "nodes",
              1,
              "uri"
            ],
            "parentType": "Post",
            "fieldName": "uri",
            "returnType": "String!",
            "startOffset": 56849,
            "duration": 680
          },
          {
            "path": [
              "posts",
              "nodes",
              1,
              "status"
            ],
            "parentType": "Post",
            "fieldName": "status",
            "returnType": "String",
            "startOffset": 57620,
            "duration": 177
          },
          {
            "path": [
              "posts",
              "nodes",
              1,
              "authorId"
            ],
            "parentType": "Post",
            "fieldName": "authorId",
            "returnType": "ID",
            "startOffset": 57878,
            "duration": 155
          },
          {
            "path": [
              "posts",
              "nodes",
              1,
              "author"
            ],
            "parentType": "Post",
            "fieldName": "author",
            "returnType": "NodeWithAuthorToUserConnectionEdge",
            "startOffset": 58098,
            "duration": 617
          },
          {
            "path": [
              "posts",
              "nodes",
              1,
              "enqueuedStylesheets"
            ],
            "parentType": "Post",
            "fieldName": "enqueuedStylesheets",
            "returnType": "ContentNodeToEnqueuedStylesheetConnection",
            "startOffset": 59030,
            "duration": 1168
          },
          {
            "path": [
              "posts",
              "nodes",
              0,
              "author",
              "node"
            ],
            "parentType": "NodeWithAuthorToUserConnectionEdge",
            "fieldName": "node",
            "returnType": "User",
            "startOffset": 60618,
            "duration": 8
          },
          {
            "path": [
              "posts",
              "nodes",
              0,
              "author",
              "node",
              "nicename"
            ],
            "parentType": "User",
            "fieldName": "nicename",
            "returnType": "String",
            "startOffset": 60713,
            "duration": 96
          },
          {
            "path": [
              "posts",
              "nodes",
              0,
              "enqueuedStylesheets",
              "nodes"
            ],
            "parentType": "ContentNodeToEnqueuedStylesheetConnection",
            "fieldName": "nodes",
            "returnType": "[EnqueuedStylesheet]",
            "startOffset": 60917,
            "duration": 10
          },
          {
            "path": [
              "posts",
              "nodes",
              0,
              "enqueuedStylesheets",
              "nodes",
              0,
              "src"
            ],
            "parentType": "EnqueuedStylesheet",
            "fieldName": "src",
            "returnType": "String",
            "startOffset": 61033,
            "duration": 10
          },
          {
            "path": [
              "posts",
              "nodes",
              0,
              "enqueuedStylesheets",
              "nodes",
              0,
              "handle"
            ],
            "parentType": "EnqueuedStylesheet",
            "fieldName": "handle",
            "returnType": "String",
            "startOffset": 61111,
            "duration": 6
          },
          {
            "path": [
              "posts",
              "nodes",
              0,
              "enqueuedStylesheets",
              "nodes",
              1,
              "src"
            ],
            "parentType": "EnqueuedStylesheet",
            "fieldName": "src",
            "returnType": "String",
            "startOffset": 61200,
            "duration": 7
          },
          {
            "path": [
              "posts",
              "nodes",
              0,
              "enqueuedStylesheets",
              "nodes",
              1,
              "handle"
            ],
            "parentType": "EnqueuedStylesheet",
            "fieldName": "handle",
            "returnType": "String",
            "startOffset": 61272,
            "duration": 6
          },
          {
            "path": [
              "posts",
              "nodes",
              0,
              "enqueuedStylesheets",
              "nodes",
              2,
              "src"
            ],
            "parentType": "EnqueuedStylesheet",
            "fieldName": "src",
            "returnType": "String",
            "startOffset": 61352,
            "duration": 7
          },
          {
            "path": [
              "posts",
              "nodes",
              0,
              "enqueuedStylesheets",
              "nodes",
              2,
              "handle"
            ],
            "parentType": "EnqueuedStylesheet",
            "fieldName": "handle",
            "returnType": "String",
            "startOffset": 61424,
            "duration": 7
          },
          {
            "path": [
              "posts",
              "nodes",
              1,
              "author",
              "node"
            ],
            "parentType": "NodeWithAuthorToUserConnectionEdge",
            "fieldName": "node",
            "returnType": "User",
            "startOffset": 61516,
            "duration": 7
          },
          {
            "path": [
              "posts",
              "nodes",
              1,
              "author",
              "node",
              "nicename"
            ],
            "parentType": "User",
            "fieldName": "nicename",
            "returnType": "String",
            "startOffset": 61586,
            "duration": 78
          },
          {
            "path": [
              "posts",
              "nodes",
              1,
              "enqueuedStylesheets",
              "nodes"
            ],
            "parentType": "ContentNodeToEnqueuedStylesheetConnection",
            "fieldName": "nodes",
            "returnType": "[EnqueuedStylesheet]",
            "startOffset": 61747,
            "duration": 9
          },
          {
            "path": [
              "posts",
              "nodes",
              1,
              "enqueuedStylesheets",
              "nodes",
              0,
              "src"
            ],
            "parentType": "EnqueuedStylesheet",
            "fieldName": "src",
            "returnType": "String",
            "startOffset": 61825,
            "duration": 8
          },
          {
            "path": [
              "posts",
              "nodes",
              1,
              "enqueuedStylesheets",
              "nodes",
              0,
              "handle"
            ],
            "parentType": "EnqueuedStylesheet",
            "fieldName": "handle",
            "returnType": "String",
            "startOffset": 61902,
            "duration": 8
          },
          {
            "path": [
              "posts",
              "nodes",
              1,
              "enqueuedStylesheets",
              "nodes",
              1,
              "src"
            ],
            "parentType": "EnqueuedStylesheet",
            "fieldName": "src",
            "returnType": "String",
            "startOffset": 61987,
            "duration": 7
          },
          {
            "path": [
              "posts",
              "nodes",
              1,
              "enqueuedStylesheets",
              "nodes",
              1,
              "handle"
            ],
            "parentType": "EnqueuedStylesheet",
            "fieldName": "handle",
            "returnType": "String",
            "startOffset": 62062,
            "duration": 7
          },
          {
            "path": [
              "posts",
              "nodes",
              1,
              "enqueuedStylesheets",
              "nodes",
              2,
              "src"
            ],
            "parentType": "EnqueuedStylesheet",
            "fieldName": "src",
            "returnType": "String",
            "startOffset": 62142,
            "duration": 7
          },
          {
            "path": [
              "posts",
              "nodes",
              1,
              "enqueuedStylesheets",
              "nodes",
              2,
              "handle"
            ],
            "parentType": "EnqueuedStylesheet",
            "fieldName": "handle",
            "returnType": "String",
            "startOffset": 62215,
            "duration": 5
          }
        ]
      }
    },
    "queryLog": {
      "queryCount": 8,
      "totalTime": 0.007516622543334961,
      "queries": [
        {
          "sql": "SELECT   wp_posts.* FROM wp_posts  WHERE 1=1  AND wp_posts.post_type = 'acf-field-group' AND ((wp_posts.post_status = 'publish' OR wp_posts.post_status = 'acf-disabled'))  ORDER BY wp_posts.menu_order ASC, wp_posts.post_title ASC ",
          "time": 0.00045180320739746094,
          "stack": "require('wp-blog-header.php'), wp, WP->main, WP->parse_request, do_action_ref_array('parse_request'), WP_Hook->do_action, WP_Hook->apply_filters, WPGraphQL/Router::resolve_http_request, WPGraphQL/Router::process_http_request, WPGraphQL/Request->__construct, WPGraphQL::get_schema, WPGraphQL/Registry/SchemaRegistry->get_schema, WPGraphQL/Registry/TypeRegistry->init, do_action('init_graphql_type_registry'), WP_Hook->do_action, WP_Hook->apply_filters, WPGraphQL/Registry/TypeRegistry->init_type_registry, do_action('graphql_register_types'), WP_Hook->do_action, WP_Hook->apply_filters, WPGraphQL/ACF/Config->init, WPGraphQL/ACF/Config->add_acf_fields_to_post_object_types, acf_get_field_groups, acf_get_raw_field_groups, get_posts, WP_Query->query, WP_Query->get_posts"
        },
        {
          "sql": "SELECT   wp_posts.ID FROM wp_posts  WHERE 1=1  AND wp_posts.post_type = 'post' AND ((wp_posts.post_status = 'publish'))  ORDER BY wp_posts.post_date DESC, wp_posts.ID DESC  LIMIT 0, 11",
          "time": 0.00030517578125,
          "stack": "require('wp-blog-header.php'), wp, WP->main, WP->parse_request, do_action_ref_array('parse_request'), WP_Hook->do_action, WP_Hook->apply_filters, WPGraphQL/Router::resolve_http_request, WPGraphQL/Router::process_http_request, WPGraphQL/Request->execute_http, GraphQL/Server/StandardServer->executeRequest, GraphQL/Server/Helper->executeOperation, GraphQL/Server/Helper->promiseToExecuteOperation, GraphQL/GraphQL::promiseToExecute, GraphQL/Executor/Executor::promiseToExecute, GraphQL/Executor/ReferenceExecutor->doExecute, GraphQL/Executor/ReferenceExecutor->executeOperation, GraphQL/Executor/ReferenceExecutor->executeFields, GraphQL/Executor/ReferenceExecutor->resolveField, GraphQL/Executor/ReferenceExecutor->resolveFieldValueOrError, WPGraphQL/Utils/InstrumentSchema::WPGraphQL/Utils/{closure}, call_user_func, WPGraphQL/Utils/InstrumentSchema::WPGraphQL/Utils/{closure}, call_user_func, WPGraphQL/Registry/TypeRegistry->WPGraphQL/Registry/{closure}, call_user_func, WPGraphQL/Connection/PostObjects::WPGraphQL/Connection/{closure}, WPGraphQL/Data/DataSource::resolve_post_objects_connection, WPGraphQL/Data/Connection/AbstractConnectionResolver->get_connection, WPGraphQL/Data/Connection/AbstractConnectionResolver->execute_and_get_ids, WPGraphQL/Data/Connection/PostObjectConnectionResolver->get_query, WP_Query->__construct, WP_Query->query, WP_Query->get_posts"
        },
        {
          "sql": "SELECT   wp_posts.* FROM wp_posts  WHERE 1=1  AND wp_posts.ID IN (23,1) AND wp_posts.post_type IN ('post', 'page', 'attachment', 'revision', 'nav_menu_item') AND ((wp_posts.post_status <> 'trash' AND wp_posts.post_status <> 'auto-draft'))  ORDER BY FIELD(wp_posts.ID,23,1), wp_posts.ID DESC  LIMIT 0, 2",
          "time": 0.00026679039001464844,
          "stack": "require('wp-blog-header.php'), wp, WP->main, WP->parse_request, do_action_ref_array('parse_request'), WP_Hook->do_action, WP_Hook->apply_filters, WPGraphQL/Router::resolve_http_request, WPGraphQL/Router::process_http_request, WPGraphQL/Request->execute_http, GraphQL/Server/StandardServer->executeRequest, GraphQL/Server/Helper->executeOperation, GraphQL/Executor/Promise/Adapter/SyncPromiseAdapter->wait, GraphQL/Executor/Promise/Adapter/SyncPromise::runQueue, GraphQL/Executor/Promise/Adapter/SyncPromise->GraphQL/Executor/Promise/Adapter/{closure}, WPGraphQL/Data/Connection/AbstractConnectionResolver->WPGraphQL/Data/Connection/{closure}, WPGraphQL/Data/Loader/AbstractDataLoader->load_many, WPGraphQL/Data/Loader/AbstractDataLoader->load_buffered, WPGraphQL/Data/Loader/PostObjectLoader->loadKeys, WP_Query->__construct, WP_Query->query, WP_Query->get_posts"
        },
        {
          "sql": "SELECT  t.*, tt.*, tr.object_id FROM wp_terms AS t  INNER JOIN wp_term_taxonomy AS tt ON t.term_id = tt.term_id INNER JOIN wp_term_relationships AS tr ON tr.term_taxonomy_id = tt.term_taxonomy_id WHERE tt.taxonomy IN ('category', 'post_tag', 'nav_menu', 'post_format') AND tr.object_id IN (23, 1) ORDER BY t.name ASC ",
          "time": 0.00568079948425293,
          "stack": "require('wp-blog-header.php'), wp, WP->main, WP->parse_request, do_action_ref_array('parse_request'), WP_Hook->do_action, WP_Hook->apply_filters, WPGraphQL/Router::resolve_http_request, WPGraphQL/Router::process_http_request, WPGraphQL/Request->execute_http, GraphQL/Server/StandardServer->executeRequest, GraphQL/Server/Helper->executeOperation, GraphQL/Executor/Promise/Adapter/SyncPromiseAdapter->wait, GraphQL/Executor/Promise/Adapter/SyncPromise::runQueue, GraphQL/Executor/Promise/Adapter/SyncPromise->GraphQL/Executor/Promise/Adapter/{closure}, WPGraphQL/Data/Connection/AbstractConnectionResolver->WPGraphQL/Data/Connection/{closure}, WPGraphQL/Data/Loader/AbstractDataLoader->load_many, WPGraphQL/Data/Loader/AbstractDataLoader->load_buffered, WPGraphQL/Data/Loader/PostObjectLoader->loadKeys, WP_Query->__construct, WP_Query->query, WP_Query->get_posts, update_post_caches, update_object_term_cache, wp_get_object_terms, get_terms, WP_Term_Query->query, WP_Term_Query->get_terms"
        },
        {
          "sql": "SELECT post_id, meta_key, meta_value FROM wp_postmeta WHERE post_id IN (23,1) ORDER BY meta_id ASC",
          "time": 0.00025200843811035156,
          "stack": "require('wp-blog-header.php'), wp, WP->main, WP->parse_request, do_action_ref_array('parse_request'), WP_Hook->do_action, WP_Hook->apply_filters, WPGraphQL/Router::resolve_http_request, WPGraphQL/Router::process_http_request, WPGraphQL/Request->execute_http, GraphQL/Server/StandardServer->executeRequest, GraphQL/Server/Helper->executeOperation, GraphQL/Executor/Promise/Adapter/SyncPromiseAdapter->wait, GraphQL/Executor/Promise/Adapter/SyncPromise::runQueue, GraphQL/Executor/Promise/Adapter/SyncPromise->GraphQL/Executor/Promise/Adapter/{closure}, WPGraphQL/Data/Connection/AbstractConnectionResolver->WPGraphQL/Data/Connection/{closure}, WPGraphQL/Data/Loader/AbstractDataLoader->load_many, WPGraphQL/Data/Loader/AbstractDataLoader->load_buffered, WPGraphQL/Data/Loader/PostObjectLoader->loadKeys, WP_Query->__construct, WP_Query->query, WP_Query->get_posts, update_post_caches, update_postmeta_cache, update_meta_cache"
        },
        {
          "sql": "SELECT wp_users.ID FROM wp_users WHERE 1=1 AND wp_users.ID IN (1) ORDER BY FIELD( wp_users.ID, 1 ) ASC, wp_users.ID DESC  LIMIT 0, 1",
          "time": 0.00012803077697753906,
          "stack": "require('wp-blog-header.php'), wp, WP->main, WP->parse_request, do_action_ref_array('parse_request'), WP_Hook->do_action, WP_Hook->apply_filters, WPGraphQL/Router::resolve_http_request, WPGraphQL/Router::process_http_request, WPGraphQL/Request->execute_http, GraphQL/Server/StandardServer->executeRequest, GraphQL/Server/Helper->executeOperation, GraphQL/Executor/Promise/Adapter/SyncPromiseAdapter->wait, GraphQL/Executor/Promise/Adapter/SyncPromise::runQueue, GraphQL/Executor/Promise/Adapter/SyncPromise->GraphQL/Executor/Promise/Adapter/{closure}, WPGraphQL/Data/Loader/AbstractDataLoader->WPGraphQL/Data/Loader/{closure}, WPGraphQL/Data/Loader/AbstractDataLoader->load, WPGraphQL/Data/Loader/AbstractDataLoader->load_buffered, WPGraphQL/Data/Loader/UserLoader->loadKeys, WP_User_Query->__construct, WP_User_Query->query"
        },
        {
          "sql": "SELECT wp_users.ID FROM wp_users WHERE 1=1 AND wp_users.ID IN (1) ORDER BY user_login DESC, wp_users.ID DESC  LIMIT 0, 11",
          "time": 0.0002601146697998047,
          "stack": "require('wp-blog-header.php'), wp, WP->main, WP->parse_request, do_action_ref_array('parse_request'), WP_Hook->do_action, WP_Hook->apply_filters, WPGraphQL/Router::resolve_http_request, WPGraphQL/Router::process_http_request, WPGraphQL/Request->execute_http, GraphQL/Server/StandardServer->executeRequest, GraphQL/Server/Helper->executeOperation, GraphQL/Executor/Promise/Adapter/SyncPromiseAdapter->wait, GraphQL/Executor/Promise/Adapter/SyncPromise::runQueue, GraphQL/Executor/Promise/Adapter/SyncPromise->GraphQL/Executor/Promise/Adapter/{closure}, GraphQL/Executor/ReferenceExecutor->GraphQL/Executor/{closure}, GraphQL/Executor/ReferenceExecutor->completeValue, GraphQL/Executor/ReferenceExecutor->completeObjectValue, GraphQL/Executor/ReferenceExecutor->collectAndExecuteSubfields, GraphQL/Executor/ReferenceExecutor->executeFields, GraphQL/Executor/ReferenceExecutor->resolveField, GraphQL/Executor/ReferenceExecutor->completeValueCatchingError, GraphQL/Executor/ReferenceExecutor->completeValue, GraphQL/Executor/ReferenceExecutor->completeListValue, GraphQL/Executor/ReferenceExecutor->completeValueCatchingError, GraphQL/Executor/ReferenceExecutor->completeValue, GraphQL/Executor/ReferenceExecutor->completeObjectValue, GraphQL/Executor/ReferenceExecutor->collectAndExecuteSubfields, GraphQL/Executor/ReferenceExecutor->executeFields, GraphQL/Executor/ReferenceExecutor->resolveField, GraphQL/Executor/ReferenceExecutor->resolveFieldValueOrError, WPGraphQL/Utils/InstrumentSchema::WPGraphQL/Utils/{closure}, call_user_func, WPGraphQL/Utils/InstrumentSchema::WPGraphQL/Utils/{closure}, call_user_func, WPGraphQL/Registry/TypeRegistry->WPGraphQL/Registry/{closure}, call_user_func, WPGraphQL/Connection/Users::WPGraphQL/Connection/{closure}, WPGraphQL/Data/Connection/AbstractConnectionResolver->get_connection, WPGraphQL/Data/Connection/AbstractConnectionResolver->execute_and_get_ids, WPGraphQL/Data/Connection/UserConnectionResolver->get_query, WP_User_Query->__construct, WP_User_Query->query"
        },
        {
          "sql": "SELECT wp_users.ID FROM wp_users WHERE 1=1 AND wp_users.ID IN (1) ORDER BY user_login DESC, wp_users.ID DESC  LIMIT 0, 11",
          "time": 0.00017189979553222656,
          "stack": "require('wp-blog-header.php'), wp, WP->main, WP->parse_request, do_action_ref_array('parse_request'), WP_Hook->do_action, WP_Hook->apply_filters, WPGraphQL/Router::resolve_http_request, WPGraphQL/Router::process_http_request, WPGraphQL/Request->execute_http, GraphQL/Server/StandardServer->executeRequest, GraphQL/Server/Helper->executeOperation, GraphQL/Executor/Promise/Adapter/SyncPromiseAdapter->wait, GraphQL/Executor/Promise/Adapter/SyncPromise::runQueue, GraphQL/Executor/Promise/Adapter/SyncPromise->GraphQL/Executor/Promise/Adapter/{closure}, GraphQL/Executor/ReferenceExecutor->GraphQL/Executor/{closure}, GraphQL/Executor/ReferenceExecutor->completeValue, GraphQL/Executor/ReferenceExecutor->completeObjectValue, GraphQL/Executor/ReferenceExecutor->collectAndExecuteSubfields, GraphQL/Executor/ReferenceExecutor->executeFields, GraphQL/Executor/ReferenceExecutor->resolveField, GraphQL/Executor/ReferenceExecutor->completeValueCatchingError, GraphQL/Executor/ReferenceExecutor->completeValue, GraphQL/Executor/ReferenceExecutor->completeListValue, GraphQL/Executor/ReferenceExecutor->completeValueCatchingError, GraphQL/Executor/ReferenceExecutor->completeValue, GraphQL/Executor/ReferenceExecutor->completeObjectValue, GraphQL/Executor/ReferenceExecutor->collectAndExecuteSubfields, GraphQL/Executor/ReferenceExecutor->executeFields, GraphQL/Executor/ReferenceExecutor->resolveField, GraphQL/Executor/ReferenceExecutor->resolveFieldValueOrError, WPGraphQL/Utils/InstrumentSchema::WPGraphQL/Utils/{closure}, call_user_func, WPGraphQL/Utils/InstrumentSchema::WPGraphQL/Utils/{closure}, call_user_func, WPGraphQL/Registry/TypeRegistry->WPGraphQL/Registry/{closure}, call_user_func, WPGraphQL/Connection/Users::WPGraphQL/Connection/{closure}, WPGraphQL/Data/Connection/AbstractConnectionResolver->get_connection, WPGraphQL/Data/Connection/AbstractConnectionResolver->execute_and_get_ids, WPGraphQL/Data/Connection/UserConnectionResolver->get_query, WP_User_Query->__construct, WP_User_Query->query"
        }
      ]
    }
  }
}

@jasonbahl
Copy link
Contributor Author

@wjohnsto is there a stacktrace? in_array() is used quite a bit in the codebase.

@jasonbahl
Copy link
Contributor Author

@wjohnsto ah, ok, so this looks like it might actually be an issue in WPGraphQL for ACF, based on the stacktrace

@jasonbahl
Copy link
Contributor Author

I'm moving this issue to the WPGraphQL for ACF repo for testing over there

@jasonbahl jasonbahl transferred this issue from wp-graphql/wp-graphql Jul 8, 2021
@jonsherrard
Copy link

jonsherrard commented Jul 18, 2021

I'm getting this same error using PHP 7.4, no issue with PHP 7.3

@jonsherrard
Copy link

Another note, I ran this plugin and all the dependencies through PHP Code Sniffer to look for any upgrade issues between 7.3 and 7.4 and came up with nothing:

./bin/phpcs -p . --standard=PHPCompatibilityWP --extensions=php --runtime-set testVersion 7.3-

@marco910
Copy link

marco910 commented Nov 21, 2023

I get a similar issue using version 0.6.1 of the plugin with PHP 8.2.

When registering a custom field and field type using register_graphql_object_type, add_filter('wpgraphql_acf_register_graphql_field'), and add_filter('wpgraphql_acf_supported_fields') I get a similar error:

Uncaught TypeError: asort(): Argument #1 ($array) must be of type array, null given in /var/www/html/wp-content/plugins/wp-graphql-acf-0.6.1/src/class-config.php:1337

When testing the same code with PHP 8.2 and version 0.3.4 of the WPGraphQL ACF plugin, everything works fine.

@jasonbahl
Copy link
Contributor Author

@marco910 I would recommend checking out the new WPGraphQL for ACF over here: https://github.com/wp-graphql/wpgraphql-acf. It was re-architected and re-built from the ground up and solves a lot of issues that v0.6.1 suffered from.

The specific filter you mentioned has been re-named to wpgraphql/acf/supported_field_types. You can read more about that in the upgrade guide and in GitHub here.

note: In WordPress, when filtering, make sure you return a value as well, in this case an array.

If you try this out with the new version of WPGraphQL for ACF and still run into an issue, please open a new issue on the new repo: https://github.com/wp-graphql/wpgraphql-acf 🙏🏻

I'm going to close this issue as the new version of WPGraphQL for ACF has tests that run on PHP 8.0, 8.1 and 8.2 and things are working as expected.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

5 participants