Archived topic
Conflict with Block Editor Kit for Contact Form 7 – CF7 Blocks
7 replies · Started by Jan on January 6, 2023
Hi,
There is a new plugin in the Wordpress Plugin directory: Block Editor Kit for Contact Form 7 – CF7 Blocks.
This looks very promising, Contact 7 forms with use of Gutenberg blocks.
After activating it won't work.
After switching from Generatepress - child theme to the Twenty Twenty-Three it works.
Looking in the debug it shows a PHP Fatal error, look at the trace at the end.
It looks like a conflict between plugin and theme.
Is this something the plugin-builder should fix?
Kind regards,
Jan
[06-Jan-2023 09:18:20 UTC] PHP Fatal error: Uncaught Error: Class 'WP_Theme_JSON_Data_Gutenberg' not found in /home/jbbase/public_html/wp-content/plugins/cf7-blocks/app/core/Editor.php:44
Stack trace:
#0 /home/jbbase/public_html/wp-includes/class-wp-hook.php(308): CakeWP\CF7Blocks\Core\Editor->wp_theme_json_data_theme()
#1 /home/jbbase/public_html/wp-includes/plugin.php(205): WP_Hook->apply_filters()
#2 /home/jbbase/public_html/wp-includes/class-wp-theme-json-resolver.php(265): apply_filters()
#3 /home/jbbase/public_html/wp-includes/class-wp-theme-json-resolver.php(561): WP_Theme_JSON_Resolver::get_theme_data()
#4 /home/jbbase/public_html/wp-includes/global-styles-and-settings.php(103): WP_Theme_JSON_Resolver::get_merged_data()
#5 /home/jbbase/public_html/wp-includes/block-editor.php(413): wp_get_global_stylesheet()
#6 /home/jbbase/public_html/wp-content/plugins/cf7-blocks/app/core/Editor.php(215): get_block_editor_settings()
#7 /home/jbbase/public_html/wp-content/plugins/cf7-blocks/app/core/Handler.php(45): CakeWP\CF7Blocks\Core\Editor->get_editor_set in /home/jbbase/public_html/wp-content/plugins/cf7-blocks/app/core/Editor.php on line 44
Hi there,
what happens if you just active the GP theme, ie. no child theme ?
Hi,
Active GP Theme (no child) gives the same fatal error.
I don't have anything in my child functions.php.
I am not sure but that plugin may not be designed for a classic PHP theme, it may rely on a block based theme that includes a theme.json - can you check with the developer ?
I have send the developer a message with the same question.
I will ask him about the PGP / block-based theme.
Ok - let us know what they say !
Hi,
I got an answer from the developer of the plugin.
He updated the plugin and now it works and will fully test it now.
Thanks again for your support
Glad to hear that!