wp-graphql-gutenberg icon indicating copy to clipboard operation
wp-graphql-gutenberg copied to clipboard

version 0.3.12 ( shown as 0.3.11) breaks the Graphql IDE

Open vstrelianyi opened this issue 2 years ago • 22 comments

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

vstrelianyi avatar Jul 20 '22 08:07 vstrelianyi

Yea it is showing never ending spinner only . :(

anoopd avatar Jul 29 '22 09:07 anoopd

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

kittabit avatar Jul 30 '22 01:07 kittabit

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

insaurabh avatar Aug 01 '22 12:08 insaurabh

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

naveen1092 avatar Aug 01 '22 14:08 naveen1092

@naveen1092

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

insaurabh avatar Aug 01 '22 14:08 insaurabh

same issue

anas-koraspond avatar Aug 01 '22 21:08 anas-koraspond

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

shalawfatah avatar Aug 11 '22 20:08 shalawfatah

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

MattBonacini avatar Aug 15 '22 14:08 MattBonacini

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

naveen1092 avatar Aug 16 '22 10:08 naveen1092

@naveen1092 Is that a fork or ??

anoopd avatar Aug 17 '22 04:08 anoopd

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?

primenest avatar Aug 18 '22 15:08 primenest

Same problem, unfortunately.

warudin avatar Aug 19 '22 13:08 warudin

Same problem here

brunoenribeiro avatar Oct 06 '22 14:10 brunoenribeiro

+1

anirudh7 avatar Oct 18 '22 14:10 anirudh7

same problem

bkaldor avatar Oct 19 '22 21:10 bkaldor

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.

smujmaiku avatar Oct 19 '22 23:10 smujmaiku

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

justlevine avatar Nov 09 '22 19:11 justlevine

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

imran-ag avatar Nov 09 '22 21:11 imran-ag

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

justlevine avatar Nov 10 '22 07:11 justlevine

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 avatar Nov 10 '22 16:11 imran-ag

PHP Fatal error: Uncaught WPGraphQLGutenberg\Blocks\RegistryNotSourcedException:

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

imran-ag avatar Nov 15 '22 18:11 imran-ag

The problem persist in version 0.4.1

felix-berlin avatar Dec 09 '22 16:12 felix-berlin