Hello since last update (1 day ago I guess), appear these errors:
Notice: Function _load_textdomain_just_in_time was called?incorrectly. Translation loading for the?gfen
?domain was triggered too early. This is usually an indicator for some code in the plugin or theme running too early. Translations should be loaded at the?init
?action or later. Please see?Debugging in WordPress?for more information. (This message was added in version 6.7.0.) in?../public/wp-includes/functions.php?on line?6114
Notice: Function _load_textdomain_just_in_time was called?incorrectly. Translation loading for the?wp-graphql
?domain was triggered too early. This is usually an indicator for some code in the plugin or theme running too early. Translations should be loaded at the?init
?action or later. Please see?Debugging in WordPress?for more information. (This message was added in version 6.7.0.) in?../public/wp-includes/functions.php?on line?6114
Notice: Function _load_textdomain_just_in_time was called?incorrectly. Translation loading for the?wpgraphql-acf
?domain was triggered too early. This is usually an indicator for some code in the plugin or theme running too early. Translations should be loaded at the?init
?action or later. Please see?Debugging in WordPress?for more information. (This message was added in version 6.7.0.) in?../public/wp-includes/functions.php?on line?6114
Any solution?
Thank you!
]]>Had you not taken up Matt’s offer, it’s clear now that you’d no longer have authorship over this plugin on .org and that Automattic would have assumed control over the plug-in, renamed it, and captured your entire audience.
If only Heather had the same sense!!!
Oh and I checked the “I’m not affiliated…” checkbox but who the hell knows if I should have because that was really ambiguous (RIP accessibility team et.al.)
]]>Hello Team
I have created a translated website using GraphQL and WPML.
I have created a custom post type with a custom taxonomy and translated that in french language.
So when i fetched the posts based on taxonomy in GraphQL IDE it fetches the same language posts in both the posts weather it is English or french.
What i want is if i select the english taxonomy it needs to fetch english posts and if i select french taxonomy it needs to fetch french posts.
Can you provide a solution as to why this is happening?
]]>Hello there,
I installed WPGraphQL samrt cache plugin and using it’s persist query cache. I saved on uqery in graphQL documents. Here is my query:
query getCategory($id: ID = "/article/test-article") {
category(id: $id, idType: URI) {
id
uri
description
name
termTaxonomyId
}
}
This generates alias and I can use that query id with get request and it works fine.
Here, I have question is if I have 1000 categories and I want get category data with get request by creating query with variables is it possible. I want something like below with with graphQl documents:
query getCategory($id: ID = "") {
category(id: $id, idType: URI) {
id
uri
description
name
termTaxonomyId
}
}
variables: "{
"id": "/article/test-article"
}"
Here, “id” will be URI of the article user visit on front-end. So this can be achieve with graphQL documents for dynamic variables?
]]>When I am querying products with the WPGraphQL plugin, it looks like the “search” parameter only searches through the names of the products, nothing else. I also need it to search through variants.
Here is an example. If I have a variable product with the name “Nike Air Max 90” and an attribute Catalog Number with the value “123456”, I can use the search parameter with queries like “Nike” or “Air Max” and this product will show up in the results. But if I use the query “123456” the product will not show up.
Is there any way to extend what the search parameter searches through?
]]>Hi,
When I use the IDE to check the query, I receive undefined constant
error. Does anyone face with such a case. I updated the php version in april to 8.1. Does anyone use this plugin with this php version, might it be related to the php version?
{
"errors": [
{
"debugMessage": "Undefined constant \"path\"",
"message": "Internal server error",
"extensions": {
"category": "internal"
},
"locations": [
{
"line": 13,
"column": 11
}
],
"path": [
"blogs",
"nodes",
0,
"featuredImage",
"node",
"sourceUrl"
]
},
{
"debugMessage": "Undefined constant \"path\"",
"message": "Internal server error",
"extensions": {
"category": "internal"
},
"locations": [
{
"line": 13,
"column": 11
}
],
"path": [
"blogs",
"nodes",
1,
"featuredImage",
"node",
"sourceUrl"
]
},
{
"debugMessage": "Undefined constant \"path\"",
"message": "Internal server error",
"extensions": {
"category": "internal"
},
"locations": [
{
"line": 13,
"column": 11
}
],
"path": [
"blogs",
"nodes",
2,
"featuredImage",
"node",
"sourceUrl"
]
}
],
"data": {...
]]>
Hi,
I test a query on the plugin IDE, however it creates the error below. However it was working a few weeks ago. I can not see blogs field in the schema. Should I update the schema or something else might cause this error?
I could not have found where to update schema on wordpress admin platform. If I need to update the schema, can anyone tell me how? I am new working with wordpress.
I appreciate for any advise or comment.
“errors”: [
{
“message”: “Cannot query field \”blogs\” on type \”RootQuery\”. Did you mean \”tags\”?”,
“extensions”: {
“category”: “graphql”
},
“locations”: [
{
“line”: 2,
“column”: 4
}
]
}
],
Regards
Semih
]]>Hi,
I need a help with wp-graphql plugin.
I can not use GraphQL IDE to check query results and it does not show the schema. It consoles the error below.
“debugMessage”: “Call to undefined method WPGraphQL\Types::boolean()”,
“message”: “Internal server error”,
“extensions”: {
“category”: “internal”
},
“locations”: [
{
“line”: 15,
“column”: 5
}
],
“path”: [
“__schema”,
“types”
],
“trace”: [
{
“file”: “…./public/wp-content/plugins/wp-graphql-meta/wp-graphql-meta.php”,
“line”: 59,
“function”: “WPGraphQL\Extensions\Meta\resolve_meta_type(‘boolean’, true)”
},
{
“file”: “…./public/wp-content/plugins/wp-graphql-meta/wp-graphql-meta.php”,
“line”: 27,
“function”: “WPGraphQL\Extensions\Meta\add_meta_fields(array(49), ‘post’)”
},
The query on the IDE:
query MyQuery {
blogs{
edges {
node {
slug
}
}
}
}
The query response is as follow.
{
“errors”: [
{
“message”: “Cannot query field \”blogs\” on type \”RootQuery\”. Did you mean \”tags\”?”,
“extensions”: {
“category”: “graphql”
},
“locations”: [
{
“line”: 2,
“column”: 3
}
]
}
],
Any advice is appreciated.
Regards
Semih
]]>Hi WP GraphQL. I was wondering if it’s possible to query for custom patterns created in the backend of WordPress. What I mean by this is I made a block on my homepage, then used “Create Pattern”.
The pattern I’m trying to get ahold of contains the following information in the URL:
postType=wp_block
postId=81
categoryId=my-patterns
categoryType=pattern
wp-graphql V=1.26.0
server =win 10 => iis
wordpress = Version 6.5.3
There are no other plugins
]]>Seems like adding subscriptions was started a while back but not finished. Subscriptions would make this plugin even greater. Any plans to add subscriptions?
Thanks!
Kurt
]]>Hello guys, I have created website with next.js and use graphql for fetching my data from wordpress. But graphql is working fine in vercel server but not working in my digital ocean droplet. I didn’t configure anything, there is no firewall, no ssl and etc. How can I solve this problem ?
Vercel – https://tecrubeaz.vercel.app/blog
Hi,
I am trying to load 3000 pages/post types but I think it cuts off at around 800. I then want to be able to paginate through them.
Please let me know how I can fetch so many posts and have a search function that can search through this amount using graphql
We are using the ACF pro plugin to add an Image as a field to a custom post type, and then query that post with wp-graphql.
There seems to be an issue, where an SVG can be uploaded and have a height and width that are float/decimal values such as 382.6, 98.5, etc.
But, wp-graphql and acf expect the mediaDetails height and width fields to be integers. This leads to an internal server error when trying to query those fields.
]]>good day. I am new to wpgraphql so I needed expose a custom postype from a plug-in called wallet premium. I have tried to expose the data to wpgraphql even by directly editing the plug-in. I added show_in_rest and also enabled the customtype to add custom field but I can seem to get any data out of the custom post type.
public static function wallet_post_type_args() {
return apply_filters( 'hrw_wallet_post_type_args' , array(
'labels' => array(
'name' => esc_html__( 'All Wallet' , HRW_LOCALE ) ,
'singular_name' => esc_html__( 'All Wallet' , HRW_LOCALE ) ,
'all_items' => esc_html__( 'All Wallet' , HRW_LOCALE ) ,
'menu_name' => esc_html_x( 'All Wallet' , 'Admin menu name' , HRW_LOCALE ) ,
'add_new' => esc_html__( 'Add Wallet' , HRW_LOCALE ) ,
'add_new_item' => esc_html__( 'Add New Wallet' , HRW_LOCALE ) ,
'edit' => esc_html__( 'Edit' , HRW_LOCALE ) ,
'edit_item' => esc_html__( 'Edit Wallet' , HRW_LOCALE ) ,
'new_item' => esc_html__( 'New Wallet' , HRW_LOCALE ) ,
'view' => esc_html__( 'View Wallet' , HRW_LOCALE ) ,
'view_item' => esc_html__( 'View Wallet' , HRW_LOCALE ) ,
'view_items' => esc_html__( 'View Wallet' , HRW_LOCALE ) ,
'search_items' => esc_html__( 'Search Users' , HRW_LOCALE ) ,
) ,
'description' => esc_html__( 'Here you can able to see list of Wallet' , HRW_LOCALE ) ,
'public' => true ,
'show_ui' => true ,
'capability_type' => 'post' ,
'publicly_queryable' => true ,
'exclude_from_search' => false ,
'hierarchical' => false , // Hierarchical causes memory issues - WP loads all records!
'show_in_nav_menus' => true ,
'show_in_menu' => 'hrw_wallet' ,
'menu_icon' => HRW_PLUGIN_URL . '/assets/images/dash-icon.png' ,
'supports' => array('title', 'editor','custom-fields'),
'show_in_rest' => true,
'show_in_graphql' => true,
'graphql_single_name' => 'hrwwallett',
'graphql_plural_name' => 'hrwwalletts',
'query_var' => true ,
'map_meta_cap' => true ,
// 'rewrite' => false ,
'capabilities' => array(
'create_posts' => 'do_not_allow' ,
)
)
) ;
}
]]>
I want to create headless wordpress with next.js. But when I want to create pagination I can not use before state in my query. I have added picture and my query below, my variables works fine. I have checked them
const query = `
query allPosts($after: String = "", $before: String = "", $first: Int) {
posts(first: $first, after: $after, before : $before) {
edges {
node {
author {
node {
name
}
}
id
title
date
excerpt
featuredImage {
node {
sourceUrl
title
}
}
uri
slug
categories {
nodes {
uri
count
databaseId
id
name
parent {
node {
uri
count
databaseId
id
name
}
}
}
}
}
}
pageInfo {
hasNextPage
hasPreviousPage
endCursor
startCursor
}
}
}`;
]]>
Hi,
recently i did update the plugin.. after update the plugin then showing “Unexpected token ‘<‘, \”\n<he\”�� is not valid JSON”.
this error showing only integrationImage like below.
1. for fetching issue here (after add integrationImage { } and this is showing in query composer.
{
allIntegrationCategories {
edges {
node {
link
name
slug
uri
integration {
edges {
node {
acf_integrations {
knowMoreLink
integrationImage {
altText
}
}
slug
title
uri
}
}
}
}
}
}
}
2. this is without integrationImage (this working fine)
{
allIntegrationCategories {
edges {
node {
link
name
slug
uri
integration {
edges {
node {
acf_integrations {
knowMoreLink
}
slug
title
uri
}
}
}
}
}
}
}
]]>
ACF fields is not showing in graphiql IDE, even “Show in Graphql” setting selected.
]]>Using the GraphIQL IDE I generated a query to collect the information I needed from my WordPress blog and inject it into a nextjs component that I import into a test page of my nextjs app. The query works in the IDE but returns undefined when console.log it in development. I cannot figure out why. I have these two files where the code for this implementation is:
https://github.com/Isaac-Tait/wordpress_nextjs/blob/main/src/lib/api.js
&&
https://github.com/Isaac-Tait/wordpress_nextjs/blob/main/src/components/Blog.js
I am not sure what I am doing wrong, or why the function getAllPosts is not returning the data in the NextJS app but is working fine in the IDE.
]]>Hi, I’m getting this error when a GraphQL request is made. This is after updating from PHP 7.3 to PHP 8.2.
I am trying to create a custom filter to find a custom post by a custom field value. Currently I have having trouble getting the GraphiQL IDE to return any results based on stopNumber in the following structure.
query QueryStop {
sgstops(where: {stopNumber: 171}) {
nodes {
guideFields {
stopNumber
}
id
title
}
edges {
node {
slug
title
id
content
guideFields {
stopNumber
}
}
}
}
}
I have added the following code to my functions.php but I seem to be missing something. I based the code of the tutorial I found here. https://www.wpgraphql.com/2020/04/14/query-posts-based-on-advanced-custom-field-values-by-registering-a-custom-where-argument
add_filter('graphql_post_object_connection_query_args', function ($query_args, $source, $args, $context, $info) {
$stop_id = $args['where']['stop_number'];
if (isset($stop_id)) {
$query_args['meta_query'] = [
[
'key' => 'stop_number',
'value' => $stop_id,
'compare' => '='
]
];
}
return $query_args;
}, 10, 5);
]]>
when i activate wpgraphql plugin with stratus theme,it will generate error.
it’s not compaitible with it.
even if i used default theme then it’s working fine.
i am using latest wordpress 6.3.1
wpgraphql plugin 1.16.0
i got this error
Fatal error: Uncaught TypeError: Argument 4 passed to WPGraphQL\Utils\Preview::filter_post_meta_for_previews() must be of the type bool or null, array given, called in /home/1008434.cloudwaysapps.com/bmfpxanvyf/public_html/wp-includes/class-wp-hook.php on line 312 and defined in /home/1008434.cloudwaysapps.com/bmfpxanvyf/public_html/wp-content/plugins/wp-graphql/src/Utils/Preview.php:23 Stack trace: #0 /home/1008434.cloudwaysapps.com/bmfpxanvyf/public_html/wp-includes/class-wp-hook.php(312): WPGraphQL\Utils\Preview::filter_post_meta_for_previews() #1 /home/1008434.cloudwaysapps.com/bmfpxanvyf/public_html/wp-includes/plugin.php(205): WP_Hook->apply_filters() #2 /home/1008434.cloudwaysapps.com/bmfpxanvyf/public_html/wp-includes/meta.php(635): apply_filters() #3 /home/1008434.cloudwaysapps.com/bmfpxanvyf/public_html/wp-includes/meta.php(574): get_metadata_raw() #4 /home/1008434.cloudwaysapps.com/bmfpxanvyf/public_html/wp-includes/post.php(2516): get_metadata() #5 /home/1008434.cloudwaysapps.com/bmfpxanvyf/public_html/wp-cont in /home/1008434.cloudwaysapps.com/bmfpxanvyf/public_html/wp-content/plugins/wp-graphql/src/Utils/Preview.php on line 23
Hi team, simple question: How do I re-activated admin pages disable from the Settings UI by mistake?
]]>It was working fine till yesterday and from today when I open wp-admin and go to the Graphiql IDE page it gives an error in the console log and the loader is running see this screenshot : https://prnt.sc/QWvYSmrsIm__
]]>Hi, is it possible to make a query filtering by category?
I have a custom post type and I would like to see only those of a category.
Thanks!
]]>Hello
We are looking at using the WPGraphQL plugin in our primary website, using it to power a NextJS frontend for a WP headless backend.
Is the plugin recommended for Production and Enterprise-level websites?
I ask as the plugin hasn’t been rated for WordPress 6.3 yet, with 6.3 being released a few weeks ago (Aug 8th). When we attempted to use the plugin with 6.3, we had issues with some admin users not being able to see the plugin, or its IDE UI, at all. The admin who could actually see the plugin found it deactivated as soon as the other admins tried to view it.
Is there a roadmap or premium version (paid plans) that are available?
Thanks
]]>Hello, when I do a post query, the images are returned in webp format. I need them to be in the original format. How can I do that?
Query:
Result:
]]>Is there a way to get large amount of data from WPGraphQL concurrently?
I’m making website with Gatsby.js, where WordPress is the main source of data. There is almost 60k of posts and even more media items. Server is very efficient (16CPU, 32GB of RAM), but anyway getting data from WordPress is huge… bottleneck.
I’ve changed max number of returned objects to 1000. Server can handle 60 concurrent requests in 16 seconds, each one returning for example 1000 media items. But due to fact, that the only available in wpgraphql metod of pagination is cursor-based pagination I can’t send concurent request. It’s because in the next request I have to provide endCursor from previous request as an after parameter. This leads to 200 sec wasted for getting 60k objects, that concurently could be returned in 16 sec. Am I missing something? Is there any solution?
As a result full build of my website takes 80 minutes and 90% of that time is taken by getting data from WordPress.
]]>Please find attached GraphQL IDE page and console error screenshot and do the needful.
Console Warning: ReactDOM.render is no longer supported in React 18. Use createRoot instead. Until you switch to the new API, your app will behave as if it’s running React 17. Learn more: https://reactjs.org/link/switch-to-createroot
Thanks
Hi, I’m followed the instructions on Faust website and I’ve got the same error with a local WP with Local App and with a remote server, both fresh installations. And a fresh installation of Faust. The npm run generate or dev crash with this error:
error - Unable to find a GraphQL endpoint at https://localhost:10003/index.php?graphql
error - WPGraphQL may not be active, or your WordPress site is unavailable.
The content of the endpoint is:
{
"errors": [
{
"message": "GraphQL Request must include at least one of those two parameters: \"query\" or \"queryId\"",
"extensions": {
"category": "request"
}
}
],
"extensions": {
"debug": [
{
"type": "DEBUG_LOGS_INACTIVE",
"message": "GraphQL Debug logging is not active. To see debug logs, GRAPHQL_DEBUG must be enabled."
}
]
}
}
I’m pointing Front-end site URL to https://localhost:3000 and the NEXT_PUBLIC_WORDPRESS_URL to https://localhost:10003, which is the Local App url.
I’m not edited any code in the Faust project, and saw the video with Jason Lengstorf, repeating the steps once again. How can query or queryId be missing? Am I missing something?
Thanks a lot in advance.
]]>