htmlburger / carbon-fields

WordPress Custom Fields Library ✨
https://carbonfields.net/
Other
1.4k stars 246 forks source link

Carbon Fields Not Supported in WordPress 6.6 Update #1240

Closed tanjilahmed7 closed 4 months ago

tanjilahmed7 commented 4 months ago

Version

Plugins List

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.

image

mrdarrengriffin commented 4 months ago

Yeah, having the same issue. This is what I get for theme options

Screenshot 2024-07-17 at 11 47 06

beavis82 commented 4 months ago

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.

atanas-vasilev-dev commented 4 months ago

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.

michelmany commented 2 months ago

Updating CF to version 3.5 solved the issue for me.

composer require htmlburger/carbon-fields