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

Fatal error: Uncaught Error: Class CoreImageBlockToMediaItemConnection #159

Open vasyl-petrashkevych opened 2 years ago

vasyl-petrashkevych commented 2 years ago

Fatal error: Uncaught Error: Class "WPGraphQLGutenberg\Schema\Types\Connection\Blocks\CoreImageBlockToMediaItemConnection" not found in /var/www/wp-content/plugins/wp-graphql-gutenberg-0.3.12/src/Schema/Schema.php on line 12 image

miguelvictor commented 2 years ago

+1

r1987 commented 1 year ago

This seems to be a compability issue with the latest WP GraphQL version (1.12.2) and the current version of WPGraphQL Gutenberg (0.3.12).

xfloor commented 1 year ago

+1

vasyl-petrashkevych commented 1 year ago

Add this 'WPGraphQLGutenberg\\Schema\\Types\\Connection\\Blocks\\CoreImageBlockToMediaItemConnection' => __DIR__ . '/../..' . '/src/Schema/Types/Connection/Blocks/CoreImageBlockToMediaItemConnection.php' to the file [plugindir]/vendor/composer/autoload_static.php on line 161. After at the admin page update the block registry

bmarshall511 commented 1 year ago

+1