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

Carbon field doesn't work anymore after Wordpress update #1198

Closed
iamalessiopaoletti opened this issue Nov 8, 2023 · 7 comments
Closed

Carbon field doesn't work anymore after Wordpress update #1198

iamalessiopaoletti opened this issue Nov 8, 2023 · 7 comments
Assignees

Comments

@iamalessiopaoletti
Copy link

Hi, carbon fields doesn't work anymore after the last update of wordpress, in the page the content are hidden, the blocks tell that missing the support for block and in the console I have these errors:

Screenshot 2023-11-08 165237-2222

@greabs
Copy link

greabs commented Nov 8, 2023

Same here. Seems to be an issue with upgrading to the latest WP version 6.4 ..

@greabs
Copy link

greabs commented Nov 9, 2023

Followup; the issue is caused by WP 6.4 scratching the Lodash lib. WordPress/gutenberg#52571
Can an update be expected for Carbon Fields to fix the dependency on Lodash?

@iamalessiopaoletti
Copy link
Author

I solved it like this in function.php:

`
function load_lodash() {
// Il codice CDN del file lodash.js
$lodash_url = 'https://cdnjs.cloudflare.com/ajax/libs/lodash.js/4.17.21/lodash.min.js';

// Carica il codice CDN
wp_enqueue_script('lodash', $lodash_url, array(), null, false);
}
add_action('admin_enqueue_scripts', 'load_lodash');
`

It is worrying that there is no assistance though.

@greabs
Copy link

greabs commented Nov 9, 2023

Yeah but that's not really a solution. Lodash has been dropped by the wp-core guys because it not needed anymore and increases the load. Either it should be included in a new release of Carbon Fields (also not great) or Carbon Fields simply isn't compatible anymore with WP v6.4+ ..

@emohamed
Copy link
Member

emohamed commented Nov 9, 2023

We're working on a fix for this, we should have a new release tomorrow. For time being we'll add lodash as a dependency.

@jorostoyanov
Copy link
Contributor

Hey Guys!

I have just released v3.6.1 of Carbon Fields which adds support for WordPress v6.4.

Please, update to the latest version on your instances and if any issue re-appears feel free to open a new issue :)

@gardiner
Copy link

Hi guys, thanks for your quick reaction and all your efforts!

👍

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