You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Argument 1 passed to WPGraphQL\\Extensions\\OffsetPagination\\Loader::op_filter_graphql_connection_query_args() must be of the type array, null given, called in /var/www/mysite.com/wp-includes/class-wp-hook.php on line 286
The error happens whenever I query for roles. If I deactivate the plugin the error doesn't happen. Has anyone come across this issue?
The text was updated successfully, but these errors were encountered:
this might be related to my error of adding enqueuedScripts or enqueuedStylesheets to any post or page query as the error retuned is also about args of type array and being null.
Argument 1 passed to WPGraphQL\Extensions\OffsetPagination\Loader::op_filter_graphql_connection_query_args() must be of the type array, null given
JoshuaJarman
added a commit
to JoshuaJarman/wp-graphql-offset-pagination
that referenced
this issue
May 23, 2021
Fixes Bug: Argument 1 passed to WPGraphQL\Extensions\OffsetPagination\Loader::op_filter_graphql_connection_query_args() must be of the type array, null given
Bug Occurs: When roles, enqueuedScripts, enqueuedStyleshets, or any other unaccounted for subquery is added because null parameter is not allowed by type definition, removing type definition fixes the issue.
I'm using wp-graphql plugin version 1.0.5, wordpress version 5.7 and the latest version of this plugin (stable branch). When performing this query:
I receive the following error:
The error happens whenever I query for
roles
. If I deactivate the plugin the error doesn't happen. Has anyone come across this issue?The text was updated successfully, but these errors were encountered: