Carbon Fields Not Supported in WordPress 6.6 Update
tanjilahmed7 opened this issue · 4 comments
Version
- Carbon Fields:
- WordPress: 6.6
- PHP: 8.3
Plugins List
- Add WPGraphQL SEO
- Add WPGraphQL SEO
- Carbon Fields
- graphql crb
- WP GraphQL Gutenberg
- WPGraphQL
- WPGraphQL Tax Query
- Yoast SEO
When I updated to WordPress version 6.6, an error occurred with the Carbon Fields blocks. I have attached an image for better understanding. When i downgrade the wordpress (6.4.5) version that moment it works.
We're experiencing the same issue on numerous sites using Carbon Fields (an older version - 3.3.4). As a quick fix, enqueueing regenerator runtime seems to be working for us so far. Add this code to your theme or a plugin:
if (!function_exists('enqueue_regenerator_runtime_admin')) {
function enqueue_regenerator_runtime_admin() {
// Check if regenerator-runtime has already been enqueued
if (!wp_script_is('regenerator-runtime', 'enqueued')) {
wp_enqueue_script('regenerator-runtime');
}
}
add_action('admin_enqueue_scripts', 'enqueue_regenerator_runtime_admin');
}
Hope this helps until an official fix is released.
After some testing I figured out that this problem occurs on CF versions below 3.5. Anyone having this issue should try and update to the latest version.
Updating CF to version 3.5 solved the issue for me.
composer require htmlburger/carbon-fields