Skip to content

Instantly share code, notes, and snippets.

@davevanhoorn
Created January 7, 2021 18:45
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save davevanhoorn/05a0e2d4f3048f70d69f850fc011d7d8 to your computer and use it in GitHub Desktop.
Save davevanhoorn/05a0e2d4f3048f70d69f850fc011d7d8 to your computer and use it in GitHub Desktop.
{
"errors": [
{
"debugMessage": "Argument 1 passed to WPGraphQL\\Data\\DataSource::resolve_post_object() must be of the type int, string given, called in /srv/www/xxx.nl/current/web/app/plugins/wp-graphql-yoast-seo/wp-graphql-yoast-seo.php on line 1071",
"message": "Internal server error",
"extensions": {
"category": "internal"
},
"locations": [
{
"line": 3,
"column": 5
}
],
"path": [
"productCategory",
"seo"
],
"trace": [
{
"file": "/srv/www/xxx.nl/current/web/app/plugins/wp-graphql-yoast-seo/wp-graphql-yoast-seo.php",
"line": 1071,
"call": "WPGraphQL\\Data\\DataSource::resolve_post_object((empty string), instance of WPGraphQL\\AppContext)"
},
{
"function": "{closure}(instance of WPGraphQL\\Model\\Term, array(0), instance of WPGraphQL\\AppContext, instance of GraphQL\\Type\\Definition\\ResolveInfo)"
},
{
"file": "/srv/www/xxx.nl/current/web/app/plugins/wp-graphql/src/Utils/InstrumentSchema.php",
"line": 177,
"function": "call_user_func(instance of Closure, instance of WPGraphQL\\Model\\Term, array(0), instance of WPGraphQL\\AppContext, instance of GraphQL\\Type\\Definition\\ResolveInfo)"
},
{
"call": "WPGraphQL\\Utils\\InstrumentSchema::WPGraphQL\\Utils\\{closure}(instance of WPGraphQL\\Model\\Term, array(0), instance of WPGraphQL\\AppContext, instance of GraphQL\\Type\\Definition\\ResolveInfo)"
},
{
"file": "/srv/www/xxx.nl/current/web/app/plugins/wp-graphql/src/Utils/InstrumentSchema.php",
"line": 177,
"function": "call_user_func(instance of Closure, instance of WPGraphQL\\Model\\Term, array(0), instance of WPGraphQL\\AppContext, instance of GraphQL\\Type\\Definition\\ResolveInfo)"
},
{
"file": "/srv/www/xxx.nl/current/web/app/plugins/wp-graphql/vendor/webonyx/graphql-php/src/Executor/ReferenceExecutor.php",
"line": 624,
"call": "WPGraphQL\\Utils\\InstrumentSchema::WPGraphQL\\Utils\\{closure}(instance of WPGraphQL\\Model\\Term, array(0), instance of WPGraphQL\\AppContext, instance of GraphQL\\Type\\Definition\\ResolveInfo)"
},
{
"file": "/srv/www/xxx.nl/current/web/app/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\\Term, instance of GraphQL\\Type\\Definition\\ResolveInfo)"
},
{
"file": "/srv/www/xxx.nl/current/web/app/plugins/wp-graphql/vendor/webonyx/graphql-php/src/Executor/ReferenceExecutor.php",
"line": 1196,
"call": "GraphQL\\Executor\\ReferenceExecutor::resolveField(GraphQLType: ProductCategory, instance of WPGraphQL\\Model\\Term, instance of ArrayObject(1), array(2))"
},
{
"file": "/srv/www/xxx.nl/current/web/app/plugins/wp-graphql/vendor/webonyx/graphql-php/src/Executor/ReferenceExecutor.php",
"line": 1146,
"call": "GraphQL\\Executor\\ReferenceExecutor::executeFields(GraphQLType: ProductCategory, instance of WPGraphQL\\Model\\Term, array(1), instance of ArrayObject(1))"
},
{
"file": "/srv/www/xxx.nl/current/web/app/plugins/wp-graphql/vendor/webonyx/graphql-php/src/Executor/ReferenceExecutor.php",
"line": 1107,
"call": "GraphQL\\Executor\\ReferenceExecutor::collectAndExecuteSubfields(GraphQLType: ProductCategory, instance of ArrayObject(1), array(1), instance of WPGraphQL\\Model\\Term)"
},
{
"file": "/srv/www/xxx.nl/current/web/app/plugins/wp-graphql/vendor/webonyx/graphql-php/src/Executor/ReferenceExecutor.php",
"line": 794,
"call": "GraphQL\\Executor\\ReferenceExecutor::completeObjectValue(GraphQLType: ProductCategory, instance of ArrayObject(1), instance of GraphQL\\Type\\Definition\\ResolveInfo, array(1), instance of WPGraphQL\\Model\\Term)"
},
{
"file": "/srv/www/xxx.nl/current/web/app/plugins/wp-graphql/vendor/webonyx/graphql-php/src/Executor/ReferenceExecutor.php",
"line": 652,
"call": "GraphQL\\Executor\\ReferenceExecutor::completeValue(GraphQLType: ProductCategory, instance of ArrayObject(1), instance of GraphQL\\Type\\Definition\\ResolveInfo, array(1), instance of WPGraphQL\\Model\\Term)"
},
{
"file": "/srv/www/xxx.nl/current/web/app/plugins/wp-graphql/vendor/webonyx/graphql-php/src/Executor/Promise/Adapter/SyncPromise.php",
"line": 148,
"call": "GraphQL\\Executor\\ReferenceExecutor::GraphQL\\Executor\\{closure}(instance of WPGraphQL\\Model\\Term)"
},
{
"file": "/srv/www/xxx.nl/current/web/app/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": "/srv/www/xxx.nl/current/web/app/plugins/wp-graphql/vendor/webonyx/graphql-php/src/Executor/Promise/Adapter/SyncPromiseAdapter.php",
"line": 149,
"call": "GraphQL\\Executor\\Promise\\Adapter\\SyncPromise::runQueue()"
},
{
"file": "/srv/www/xxx.nl/current/web/app/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": "/srv/www/xxx.nl/current/web/app/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": "/srv/www/xxx.nl/current/web/app/plugins/wp-graphql/src/Request.php",
"line": 602,
"call": "GraphQL\\Server\\StandardServer::executeRequest(instance of GraphQL\\Server\\OperationParams)"
},
{
"file": "/srv/www/xxx.nl/current/web/app/plugins/wp-graphql/src/Router.php",
"line": 444,
"call": "WPGraphQL\\Request::execute_http()"
},
{
"file": "/srv/www/xxx.nl/current/web/app/plugins/wp-graphql/src/Router.php",
"line": 268,
"call": "WPGraphQL\\Router::process_http_request()"
},
{
"file": "/srv/www/xxx.nl/current/web/wp/wp-includes/class-wp-hook.php",
"line": 287,
"call": "WPGraphQL\\Router::resolve_http_request(instance of WP)"
},
{
"file": "/srv/www/xxx.nl/current/web/wp/wp-includes/class-wp-hook.php",
"line": 311,
"call": "WP_Hook::apply_filters(null, array(1))"
},
{
"file": "/srv/www/xxx.nl/current/web/wp/wp-includes/plugin.php",
"line": 551,
"call": "WP_Hook::do_action(array(1))"
},
{
"file": "/srv/www/xxx.nl/current/web/wp/wp-includes/class-wp.php",
"line": 388,
"function": "do_action_ref_array('parse_request', array(1))"
},
{
"file": "/srv/www/xxx.nl/current/web/wp/wp-includes/class-wp.php",
"line": 745,
"call": "WP::parse_request((empty string))"
},
{
"file": "/srv/www/xxx.nl/current/web/wp/wp-includes/functions.php",
"line": 1291,
"call": "WP::main((empty string))"
},
{
"file": "/srv/www/xxx.nl/current/web/wp/wp-blog-header.php",
"line": 16,
"function": "wp()"
},
{
"file": "/srv/www/xxx.nl/current/web/wp/index.php",
"line": 17,
"function": "require('/srv/www/xxx.nl/current/web/wp/wp-blog-header.php')"
}
]
}
],
"data": {
"productCategory": {
"seo": null
}
},
"extensions": {
"debug": []
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment