- 🇵🇭Philippines jaesperanza
Still an issue on Drupal 10 when File Entity is enabled and used. #2 💬 Plugin does not exist when uploading custom font Closed: duplicate works. Thanks!
Hi there,
I am getting a " WOFF file must be uploaded" whenever I try to upload a custom font.
When I check the recent log messages, I can see this related error:
Drupal\Component\Plugin\Exception\PluginNotFoundException: The "entity:file:undefined" plugin does not exist. Valid plugin IDs for Drupal\Core\TypedData\TypedDataManager are: entity_revision, entity_revision:asset_injector_js, entity_revision:asset_injector_css, entity_revision:block, entity_revision:block_content, entity_revision:block_content:basic, entity_revision:block_content:slick_carousel, entity_revision:block_content:steps_paragraph, entity_revision:block_content_type, entity_revision:comment_type, entity_revision:comment, entity_revision:comment:comment, entity_revision:contact_message, entity_revision:contact_message:feedback, entity_revision:contact_message:personal, entity_revision:contact_form, entity_revision:dexp_slider, entity_revision:editor, entity_revision:embed_button, entity_revision:entity_browser, entity_revision:entity_embed_fake_entity, entity_revision:field_config, entity_revision:field_storage_config, entity_revision:file, entity_revision:file:audio, entity_revision:file:document, entity_revision:file:font_files, entity_revision:file:image, entity_revision:file:video, entity_revision:file_type, entity_revision:filter_format, entity_revision:image_style, entity_revision:media, entity_revision:media:audio, entity_revision:media:document, entity_revision:media:image, entity_revision:media:remote_video, entity_revision:media:video, entity_revision:media_type, entity_revision:node_type, entity_revision:node, entity_revision:node:article, entity_revision:node:page, entity_revision:path_alias, entity_revision:rdf_mapping, entity_revision:search_page, entity_revision:shortcut, entity_revision:shortcut:default, entity_revision:shortcut_set, entity_revision:action, entity_revision:menu, entity_revision:taxonomy_term, entity_revision:taxonomy_term:font_classification, entity_revision:taxonomy_term:font_designer, entity_revision:taxonomy_term:font_foundry, entity_revision:taxonomy_term:font_tags, entity_revision:taxonomy_term:languages_supported, entity_revision:taxonomy_term:tags, entity_revision:taxonomy_vocabulary, entity_revision:tour, entity_revision:ultimate_cron_job, entity_revision:user_role, entity_revision:user, entity_revision:webform_submission, entity_revision:webform_submission:contact, entity_revision:webform_submission:organisation_profile, entity_revision:webform_submission:self_assessment, entity_revision:webform_options, entity_revision:webform, entity_revision:webform_image_select_images, entity_revision:font, entity_revision:font_display, entity_revision:menu_link_content, entity_revision:menu_link_content:menu_link_content, entity_revision:pathauto_pattern, entity_revision:local_font_config_entity, entity_revision:view, entity_revision:paragraph, entity_revision:paragraph:steps, entity_revision:paragraphs_type, entity_revision:base_field_override, entity_revision:entity_view_display, entity_revision:entity_view_mode, entity_revision:entity_form_display, entity_revision:entity_form_mode, entity_revision:date_format, entity_revision_reference, filter_format, layout_section, field_item:comment, field_item:datetime, field_item:entity_reference_revisions, field_item:file, field_item:file_uri, field_item:image, field_item:layout_section, field_item:link, field_item:list_string, field_item:list_integer, field_item:list_float, field_item:path, field_item:telephone, field_item:text_long, field_item:text_with_summary, field_item:text, field_item:webform, field_item:created, field_item:string_long, field_item:language, field_item:uri, field_item:password, field_item:changed, field_item:email, field_item:decimal, field_item:float, field_item:string, field_item:timestamp, field_item:integer, field_item:uuid, field_item:boolean, field_item:map, field_item:entity_reference, entity_reference, entity, entity:asset_injector_js, entity:asset_injector_css, entity:block, entity:block_content, entity:block_content:basic, entity:block_content:slick_carousel, entity:block_content:steps_paragraph, entity:block_content_type, entity:comment_type, entity:comment, entity:comment:comment, entity:contact_message, entity:contact_message:feedback, entity:contact_message:personal, entity:contact_form, entity:dexp_slider, entity:editor, entity:embed_button, entity:entity_browser, entity:entity_embed_fake_entity, entity:field_config, entity:field_storage_config, entity:file, entity:file:audio, entity:file:document, entity:file:font_files, entity:file:image, entity:file:video, entity:file_type, entity:filter_format, entity:image_style, entity:media, entity:media:audio, entity:media:document, entity:media:image, entity:media:remote_video, entity:media:video, entity:media_type, entity:node_type, entity:node, entity:node:article, entity:node:page, entity:path_alias, entity:rdf_mapping, entity:search_page, entity:shortcut, entity:shortcut:default, entity:shortcut_set, entity:action, entity:menu, entity:taxonomy_term, entity:taxonomy_term:font_classification, entity:taxonomy_term:font_designer, entity:taxonomy_term:font_foundry, entity:taxonomy_term:font_tags, entity:taxonomy_term:languages_supported, entity:taxonomy_term:tags, entity:taxonomy_vocabulary, entity:tour, entity:ultimate_cron_job, entity:user_role, entity:user, entity:webform_submission, entity:webform_submission:contact, entity:webform_submission:organisation_profile, entity:webform_submission:self_assessment, entity:webform_options, entity:webform, entity:webform_image_select_images, entity:font, entity:font_display, entity:menu_link_content, entity:menu_link_content:menu_link_content, entity:pathauto_pattern, entity:local_font_config_entity, entity:view, entity:paragraph, entity:paragraph:steps, entity:paragraphs_type, entity:base_field_override, entity:entity_view_display, entity:entity_view_mode, entity:entity_form_display, entity:entity_form_mode, entity:date_format, string, uri, any, language_reference, timestamp, binary, language, integer, boolean, map, timespan, email, duration_iso8601, datetime_iso8601, float, list in Drupal\Core\Plugin\DefaultPluginManager->doGetDefinition() (line 53 of /var/www/sea/web/core/lib/Drupal/Component/Plugin/Discovery/DiscoveryTrait.php).
I tried to add a font file type with the following MIME types (and clearing the cache) but it didn't seems to help:
font/otf
font/sfnt
font/ttf
font/woff
font/woff2
application/vnd.ms-fontobject
application/font-woff
application/x-font-truetype
application/x-font-opentype
I also read the external document for adding in local fonts - https://www.drupal.org/node/2013969 → , however this seems to be more for Drupal 7?
My Drupal core version is 8.8.6.
Thank you for your assistance in this matter.
Closed: duplicate
3.2
Code (general)
Not all content is available!
It's likely this issue predates Contrib.social: some issue and comment data are missing.
Still an issue on Drupal 10 when File Entity is enabled and used. #2 💬 Plugin does not exist when uploading custom font Closed: duplicate works. Thanks!