wp-graphql / wpgraphql-acf

Re-architecture of WPGraphQL for ACF
GNU General Public License v3.0
84 stars 12 forks source link

When plugin is activated, the whole compilation process freezes #226

Open SvobodaTomas opened 3 months ago

SvobodaTomas commented 3 months ago

Description

When i activate the WPGraphQL for ACF plugin i am not able to compile the project.

when i try to compile, it freezes at this step - ⠹ gatsby-source-wordpress ingest WPGraphQL schema

When i check logs, the wordpress gets requests and responds with 200, in the terminal it seems stuck, but when i look at the processes its in loop and still sends requests, but without the error.

Once i had a problem with czech characters, ščěšžřášíé etc. in label name. Now i removed all of them but the problem is still ongoing.

But when i disable the plugin, everything works fine.

Steps to reproduce

install the plugins Install dependencies Import ACF gatsby develop

PHP or JSON export of the ACF Field Group(s)

acf-export-2024-07-15 (1).json

Additional context

No response

WPGraphQL Version

1.27.2

WPGraphQL For ACF Version

2.3.0

ACF (Advanced Custom Fields) Version. Free or Pro?

6.3.3 pro

WordPress Version

6.5.5

PHP Version

8.1.29

Additional enviornment details

"dependencies": {
    "@webdeveducation/wp-block-tools": "^1.1.21",
    "autoprefixer": "^10.4.17",
    "gatsby": "^5.13.1",
    "gatsby-link": "^5.13.0",
    "gatsby-plugin-image": "^3.13.0",
    "gatsby-plugin-postcss": "^6.13.0",
    "gatsby-plugin-sharp": "^5.13.0",
    "gatsby-script": "^2.13.0",
    "gatsby-source-wordpress": "^7.13.1",
    "gatsby-transformer-sharp": "^5.13.0",
    "postcss": "^8.4.33",
    "react": "^18.2.0",
    "react-dom": "^18.2.0",
    "tailwindcss": "^3.4.1"
},

Please confirm that you have searched existing issues in the repo.

Please confirm that you have disabled ALL plugins except for WPGraphQL, WPGraphQL For ACF, ACF, etc.

josephfusco commented 3 months ago

Hey @SvobodaTomas, how are things working outside of Gatsby?

Can you use the GraphiQL IDE in the WordPress dashboard and execute queries?

If WPGraphQL is working fine inside of wp-admin but not in the Gatsby environment, it could be a problem with Gatsby.

I would recommend trying to troubleshoot on the Gatsby side to figure out which queries are problematic, and see if you can reproduce outside of Gatsby. If you're able to give concrete steps to reproduce outside of Gatsby, then we have a better chance of being able to help. 🙌🏼