To be able to create an oembed field using
Field::make('oembed', 'embed-field', 'Embed Video');
or
Field::make_oembed('embed-field', 'Embed Video');
Unknown field type "oembed".
Container::make_theme_options('theme-options', 'Theme Options')
->add_fields([
Field::make_oembed('embed-field', 'Embed Video')
]);
This looks to be linked to the change made in https://github.com/htmlburger/carbon-fields/pull/915 the field factory can no longer generate the class name
Hi @martinglover
By using either of the two code samples I had no problems in using the oEmbed field.
Can you clarify whether you are using the plugin or the composer package?
Confirm this issue.
Dirty hack to https://github.com/htmlburger/carbon-fields/blob/development/core/Helper/Helper.php#L426 fix this.
if ($classlike_type === 'Oembed') {
$classlike_type = 'OEmbed';
}
Hi @jorostoyanov
I'm using the composer install
I'm running Ubuntu 20.04 which is a case sensitive file system whether that affects reproduction of the issue.
The helper normalize_type converts to lower case so is looking for class Oembed while the class is OEmbed
The simplest fix I have at the moment is to rename the OEmbed_Field file and class to Oembed_Field
Also confirming this issue - I didn't see it in my local development environment (non case-sensitive file system) but I had the error on the production server running Linux.
I followed @martinglover's suggestion to rename the file as a temporary fix.
This has been fixed in https://github.com/htmlburger/carbon-fields/pull/915 and is available in the latest release :)
@jorostoyanov : @martinglover is already using the 3.2.1 release (which ships the fix), please reopen.
@jorostoyanov I think you've misunderstood #915 has caused the issue
@zessx is right I'm already using 3.2.1
Installation:

I also have the same problem

@jorostoyanov Ping to reopen…
Most helpful comment
@jorostoyanov Ping to reopen…