Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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. #130

Open
jakubszynklarz opened this issue Dec 3, 2021 · 10 comments

Comments

@jakubszynklarz
Copy link

jakubszynklarz commented Dec 3, 2021

Hello, after installing the latest version of the wp graphql gutenberg plugin, an error occurred below - after disabling the plugin, the error disappears.

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 /usr/home/*****/domains/*****/public_html/wp-content/plugins/wp-graphql-gutenberg-0.3.11/src/Blocks/Registry.php:41 Stack trace: #0 /usr/home/*****/domains/*****/public_html/wp-content/plugins/wp-graphql-gutenberg-0.3.11/src/Schema/Types/BlockTypes.php(263): WPGraphQLGutenberg\Blocks\Registry::get_registry() #1 /usr/home/*****/domains/*****/public_html/wp-includes/class-wp-hook.php(303): WPGraphQLGutenberg\Schema\Types\BlockTypes->WPGraphQLGutenberg\Schema\Types\{closure}(Object(WPGraphQL\Registry\TypeRegistry)) #2 /usr/home/*****/domains/*****/public_html/wp-includes/class-wp-hook.php(327): WP_Hook->apply_filters(NULL, Array) #3 /usr/home/*****/domains/*****/public_html/wp-includes/plugin.php(470): WP_Hook->do_actio in /usr/home/*****/domains/*****/public_html/wp-content/plugins/wp-graphql-gutenberg-0.3.11/src/Blocks/Registry.php on line 41

PHP 7.3.31
WP 5.8.2

PLUGINS:

  • ACF PRO 5.10.2
  • WP GATSBY 1.1.4
  • WP GRAPHQL 1.6.7
  • WP GRAPHQL Gutenberg 0.3.11
  • Yoast SEO 17.7
  • Add WPGraphQL SEO 4.16.0
  • WPGraphQL for Advanced Custom Fields 0.5.2

Does anyone know what is the cause of the error?

@jakubszynklarz
Copy link
Author

@pristas-peter @jasonbahl are you able to help solve the problem?

@pristas-peter
Copy link
Owner

Client side block registry is missing. You need to open up gutenberg or load it from WPGraphQLGutenberg Admin page.

@jakubszynklarz
Copy link
Author

@pristas-peter There is no such possibility, an error occurs.

error

@jakubszynklarz
Copy link
Author

@pristas-peter @jasonbahl are you able to help solve the problem?

@jasonbahl
Copy link
Collaborator

@jakubszynklarz Can you try with only WPGraphQL and WPGraphQL for Gutenberg active?

If it's still failing, can you confirm that you have any public post types that are using Gutenberg? And no plugins/code snippets that are disabling the block editor?

If it succeeds with only WPGraphQL + WPGraphQL for Gutenberg, I'd suggest activating the other plugins one at a time and updating the block registry to see which plugin might be causing a conflict.

For what it's worth, I didn't experience this issue with just WPGraphQL and WPGraphQL for Gutenberg active.

@jakubszynklarz
Copy link
Author

@jasonbahl Unfortunately, despite disabling all plugins and leaving WpGraphql and GraphQL Gutenberg enabled, I still get the same error

@williamegomezo
Copy link

Any update on this? Getting same error when run this plugin on docker image

@steinbergh
Copy link

I Have Gutenberg restricted to all but one custom post type (im using ACF everywhere else) would this be causing this issue cause ive run into this as well

@jakubszynklarz
Copy link
Author

jakubszynklarz commented May 26, 2022

@pristas-peter, @jasonbahl Will you suggest a solution?
I noticed that after clicking button update blocks it throws an error in the browser console, the address /wp-graphql-gutenberg/v1/block-registry?Locale=user -> error 403

The problem appeared when I started building another project on the WP updated to version 5.8.2+. In another project where the WP version is 5.7.6 everything works fine.

@jakubszynklarz
Copy link
Author

@pristas-peter @jasonbahl I managed to register the blocks, but the error below still occurs

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 /usr/home/*****/domains/*****/public_html/wp-content/plugins/wp-graphql-gutenberg-0.3.11/src/Blocks/Registry.php:41 Stack trace: #0 /usr/home/*****/domains/*****/public_html/wp-content/plugins/wp-graphql-gutenberg-0.3.11/src/Schema/Types/BlockTypes.php(263): WPGraphQLGutenberg\Blocks\Registry::get_registry() #1 /usr/home/*****/domains/*****/public_html/wp-includes/class-wp-hook.php(303): WPGraphQLGutenberg\Schema\Types\BlockTypes->WPGraphQLGutenberg\Schema\Types\{closure}(Object(WPGraphQL\Registry\TypeRegistry)) #2 /usr/home/*****/domains/*****/public_html/wp-includes/class-wp-hook.php(327): WP_Hook->apply_filters(NULL, Array) #3 /usr/home/*****/domains/*****/public_html/wp-includes/plugin.php(470): WP_Hook->do_actio in /usr/home/*****/domains/*****/public_html/wp-content/plugins/wp-graphql-gutenberg-0.3.11/src/Blocks/Registry.php on line 41

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants