Jason Bahl
Forum Replies Created
-
Forum: Plugins
In reply to: [WPGraphQL] Deprecated PHP@seanhalley, could you open this as an issue on the Github Repo so we can track over there? Thanks!
Forum: Plugins
In reply to: [WPGraphQL] Deprecated PHP@seanhalley can you provide more information about what request(s) are causing this error? What version(s) of plugin(s) you’re on, etc?
Forum: Plugins
In reply to: [WPGraphQL] wpgraphql plugin is not compaitible with startus themeOk, looks like the issue has been answered over there: https://github.com/wp-graphql/wp-graphql/issues/2960#issuecomment-1746374395
Forum: Plugins
In reply to: [WPGraphQL] wpgraphql plugin is not compaitible with startus theme@sauravsinghkaurav I don’t see a new issue?
the link you pasted was the link to create a new issue, not the link for your issue. But I don’t see any new issues.
Forum: Plugins
In reply to: [WPGraphQL] Production / Enterprise Ready?Is the plugin recommended for Production and Enterprise-level websites?
@jondcruz thought you might like to see that NASA just launched their new Science site as a headless WordPress site. NuxtJS on the front-end and WPGraphQL on the back.
Check it: https://science.nasa.gov/Forum: Plugins
In reply to: [WPGraphQL] Re-activated admin pages disable from the Settings UI@arbessa what user role are you logged in as? I believe some of these pages have limits to users with “manage_options” capabilities. If you’re not logged in as an Admin, some things might not show?
Also, can you try in a plain WordPress environment with a default theme and no other plugins and see if the issue still exists? Then maybe activate other plugins one at a time?I’m curious if there’s some sort of conflict with another plugin?
Forum: Plugins
In reply to: [WPGraphQL] wpgraphql plugin is not compaitible with startus theme@sauravsinghkaurav could you open this as an issue on Github?
https://github.com/wp-graphql/wp-graphql/issues/newForum: Plugins
In reply to: [WPGraphQL] Re-activated admin pages disable from the Settings UI@arbessa what admin pages did you disable, and how did you disable them?
@ivanwongtn in order to help, we’ll need full steps to reproduce.
What plugins (and versions) do you have active?
What steps can someone else take to get into the same situation?What queries or actions do you take to see the error?
The more information you provide about reproducing the situation, the better.
Forum: Plugins
In reply to: [WPGraphQL] How to display splited post?@cnk001 currently this isn’t supported in WPGraphQL. We’d be interesting in exploring it more, but at this moment there’s no way to get a post in different pieces like that.
Forum: Plugins
In reply to: [WPGraphQL] The GraphiQL IDE page blank console react js error@navnathsawant how did you install the plugin? If you installed the plugin from the www.remarpro.com repo, the JS assets should be built, but if you installed the plugin from cloning from Github, you might need to run
npm install
andnpm build
to build the GraphiQL IDE assets.
The recommended approach to install is from www.remarpro.com or composer using wpackagist (https://wpackagist.org/search?q=wp-graphql&type=any&search=)
If you’ve installed from one of those methods and are still seeing issues, then perhaps we need more steps to reproduce.
I use the GraphiQL IDE every day without issue, so there’s likely something environmental, etc that’s causing the issue.Forum: Plugins
In reply to: [WPGraphQL] The images are returned in webp format@maksimkoshman the default logic for the
sourceUrl
field is here: https://github.com/wp-graphql/wp-graphql/blob/develop/src/Model/Post.php#L806-L810
If you want to return something different, you could filter that logic and return something else.
There’s probably a few ways to approach this but here’s 2:
1. Filter the field on the Model and resolve something different: https://github.com/wp-graphql/wp-graphql/blob/develop/src/Model/Model.php#L412
2. Filter the field resolver and return something different when the field resolves (after the Model has already been returned): https://www.wpgraphql.com/docs/graphql-resolvers#overriding-existing-resolversForum: Plugins
In reply to: [WPGraphQL] Query filtering by categoryHey there’s currently some limitations to filtering based on taxonomy terms, but you might have luck with this extension:
https://github.com/wp-graphql/wp-graphql-tax-query
we do plan to re-visit connection filtering in the future, but not sure when that might beForum: Plugins
In reply to: [WPGraphQL] Critical error?I have no other plugins, and WP critical error blames wp-grapqhl
Can you share what error you’re seeing? If the error is blaming WPGraphQL, surely there’s more context to the error such as a backtrace, etc.
The more information you can provide about the errors you’re seeing the more we can help.Forum: Plugins
In reply to: [WPGraphQL] Paginated and concurrent requests@marekszewczyk you could register your own field to the graph that returns a list of post IDs, then use that list to chunk requests by Gatsby.
something like (not thoroughly tested, but gives you an idea):add_action( 'graphql_register_types', function() { register_graphql_field( 'RootQuery', 'contentIds', [ 'type' => [ 'list_of' => 'Int' ], 'resolve' => function() { $query = new WP_Query([ 'fields' => 'ids', 'post_type' => \WPGraphQL::get_allowed_post_types(), 'post_status' => 'publish', 'posts_per_page' => -1, ]); return $query->posts ?? null; } ] ); } );