pristas-peter / wp-graphql-gutenberg

Query gutenberg blocks with wp-graphql
https://wp-graphql-gutenberg.netlify.app
GNU General Public License v3.0
301 stars 62 forks source link

version 0.3.12 ( shown as 0.3.11) breaks the Graphql IDE #153

Open vstrelianyi opened 2 years ago

vstrelianyi commented 2 years ago

when updated to the latest version version 0.3.12 ( shown as 0.3.11) the Graphql IDE stops working

anoopd commented 2 years ago

Yea it is showing never ending spinner only . :(

kittabit commented 2 years ago

Same issue on my end, tried with the newest plugin and newest version of WordPress along with 5.x build to test :(

insaurabh commented 2 years ago

Getting this issue when enabled the plugin.

[Mon Aug 01 16:52:17.021567 2022] [php7:error] [pid 4519] [client 127.0.0.1:53528] PHP Fatal error: Uncaught Error: Class 'WPGraphQLGutenberg\Schema\Types\Connection\Blocks\CoreImageBlockToMediaItemConnection' not found in

naveen1092 commented 2 years ago

@insaurabh can you share the line number and file name?

insaurabh commented 2 years ago

@naveen1092

It's inside src/Schema/Schema.php at line 12

anas-koraspond commented 2 years ago

same issue

shalawfatah commented 2 years ago

same issue PHP Fatal error: Uncaught Error: Class "WPGraphQLGutenberg\\Schema\\Types\\Connection\\Blocks\\CoreImageBlockToMediaItemConnection" not found in /var/www/html/wp-content/plugins/wp-graphql-gutenberg/src/Schema/Schema.php:12

MattBonacini commented 2 years ago

Same error here, tried in Local by Flywheel dev env. and on a regular shared wp hosting - just to try 2 different environments. You also get a fatal error if you try to go to the GraphQL url: https://your_site_here.com/graphql

EDIT: this was tried on a fresh WP install with only the Twenty Twenty theme, this plugin, and of course the WP GraphQL plugin

naveen1092 commented 2 years ago

@MattBonacini @shalawfatah @anas-koraspond @kittabit @insaurabh @vstrelianyi use this one: https://drive.google.com/file/d/1lvu14AGV_il5Zgc2GgIW-LEMnvRRTGw0/view?usp=sharing

anoopd commented 2 years ago

@naveen1092 Is that a fork or ??

primenest commented 2 years ago

The changes proposed by @naveen1092 in the shared file solve the problem.

@naveen1092 could you please propose make your changes to this project by creating a PR in this repo?

warudin commented 2 years ago

Same problem, unfortunately.

brunoenribeiro commented 2 years ago

Same problem here

anirudh7 commented 2 years ago

+1

bkaldor commented 2 years ago

same problem

smujmaiku commented 2 years ago

I have braved the google drive link and submitted a PR with @naveen1092 's code. @bkaldor and I are going to go over the code tomorrow then I'll move it from drafts to some other status. Feel free to comment on the PR too, it is linked above.

justlevine commented 2 years ago

@smujmaiku @naveen1092 am I missing something or is the entire changeset just a regenerated composer autoloader?

imran-ag commented 2 years ago

Still having the issue even with @naveen1092 code. I tried the previous versions as well with no success.

justlevine commented 2 years ago

@imran-ag if you run composer install --no-dev --optimize-autoloaderdoes it get fixed?

imran-ag commented 2 years ago

No, still getting these errors [10-Nov-2022 16:18:54 UTC] PHP Fatal error: Uncaught WPGraphQLGutenberg\Blocks\RegistryNotSourcedException: Client side block registry is missing. You need to open up gutenberg or load it from WPGraphQLGutenberg Admin page. in C:\Users\app\public\wp-content\plugins\wp-graphql-gutenberg-0.3.12\src\Blocks\Registry.php:41 Stack trace:

0 C:\Users\app\public\wp-content\plugins\wp-graphql-gutenberg-0.3.12\src\Schema\Types\BlockTypes.php(263): WPGraphQLGutenberg\Blocks\Registry::get_registry()

1 C:\Users\app\public\wp-includes\class-wp-hook.php(308): WPGraphQLGutenberg\Schema\Types\BlockTypes->WPGraphQLGutenberg\Schema\Types{closure}(Object(WPGraphQL\Registry\TypeRegistry))

2 C:\Users\app\public\wp-includes\class-wp-hook.php(332): WP_Hook->apply_filters(NULL, Array)

3 C:\Users\app\public\wp-includes\plugin.php(517): WP_Hook->do_action(Array)

4 C:\Users\app\public\wp-content\plugins\wp-graphql-gutenberg-0.3.12\src\Blocks\Registry.php on line 41

imran-ag commented 2 years ago

PHP Fatal error: Uncaught WPGraphQLGutenberg\Blocks\RegistryNotSourcedException:

I solved this issue by disabling Classic Editor Plugin. Shouldve known. It's always a plugin conflict

felix-berlin commented 1 year ago

The problem persist in version 0.4.1