I am using SVG Image Field module to show some nice icons. This causing error InvalidArgumentException: Field field_media_image is unknown. in Drupal\Core\Entity\ContentEntityBase->getTranslatedField() (line 583 of /var/www/html/web/core/lib/Drupal/Core/Entity/ContentEntityBase.php).
Steps to Reproduce
Steps to reproduce the behavior:
Install and enable SVG Image Field, SVG Image Field - Media Bundle (submodule).
Throw fatal error InvalidArgumentException: Field field_media_image is unknown. in Drupal\Core\Entity\ContentEntityBase->getTranslatedField() (line 583 of /var/www/html/web/core/lib/Drupal/Core/Entity/ContentEntityBase.php).
Expected Behavior
no fatal error.
Screenshots
N/A
Notes
I have a simple patch, below:
diff --git a/web/profiles/contrib/apigee_devportal_kickstart/themes/custom/apigee_kickstart/includes/node.inc b/web/profiles/contrib/apigee_devportal_kickstart/themes/custom/apigee_kickstart/includes/node.inc
index 281e145c6..440506921 100644
--- a/web/profiles/contrib/apigee_devportal_kickstart/themes/custom/apigee_kickstart/includes/node.inc
+++ b/web/profiles/contrib/apigee_devportal_kickstart/themes/custom/apigee_kickstart/includes/node.inc
@@ -81,11 +81,13 @@ function apigee_kickstart_preprocess_node(&$variables) {
if (!empty($paragraph_featured_apis)) {
foreach ($paragraph_featured_apis->get('field_media') as $reference) {
$media = Media::load($reference->target_id);
- $media_field = $media->get('field_media_image')->first()->getValue();
+ if ($media->hasField('field_media_image')) {
+ $media_field = $media->get('field_media_image')->first()->getValue();
+ }
$field_title = $paragraph_featured_apis->get('field_title')->first()->getValue();
// Adding node title as alternative text (Web accessibility standards)
- if ($media_field["alt"] === NULL) {
+ if (isset($media_field) && $media_field["alt"] === NULL) {
$media_field["alt"] = $field_title;
$media->set('field_media_image', $media_field);
}
@@ -109,10 +111,12 @@ function apigee_kickstart_preprocess_node(&$variables) {
$field_image = $paragraph_cards->get('field_image')->first()->getValue();
$field_title = $paragraph_cards->get('field_title')->first()->getValue();
$media = Media::load($field_image['target_id']);
- $media_field = $media->get('field_media_image')->first()->getValue();
+ if ($media->hasField('field_media_image')) {
+ $media_field = $media->get('field_media_image')->first()->getValue();
+ }
// Adding card title as alternative text (Web accessibility standards)
- if ($media_field["alt"] === NULL) {
+ if (isset($media_field) && $media_field["alt"] === NULL) {
$media_field["alt"] = $field_title;
$media->set('field_media_image', $media_field);
}
Version Info
antennaio/jquery-bar-rating dev-master
apigee/apigee-client-php 3.0.2 Client library for connecting to the Apigee Edge API.
apigee/apigee-mock-client-php 1.1.2 To be used for queueing mock API responses for the `apigee/apigee-client-php` library.
apigee/apigee_devportal_kickstart 2.1.6 A fast demo and starting point for Apigee Developer Portals.
asm89/stack-cors v2.1.1 Cross-origin resource sharing library and stack middleware
behat/behat v3.13.0 Scenario-oriented BDD framework for PHP
behat/gherkin v4.9.0 Gherkin DSL parser for PHP
behat/mink v1.10.0 Browser controller/emulator abstraction for PHP
behat/mink-browserkit-driver v2.1.0 Symfony2 BrowserKit driver for Mink framework
behat/mink-selenium2-driver v1.6.0 Selenium2 (WebDriver) driver for Mink framework
behat/transliterator v1.5.0 String transliterator
bower-asset/chosen v1.8.7
chi-teck/drupal-code-generator 3.3.0 Drupal code generator
clue/stream-filter v1.6.0 A simple and modern approach to stream filtering in PHP
colinodell/psr-testlogger v1.3.0 PSR-3 compliant test logger based on psr/log v1's, but compatible with v2 and v3 too!
commerceguys/intl v2.0.5 Internationalization library powered by CLDR data.
composer/ca-bundle 1.3.7 Lets you find a path to the system CA bundle, and includes a fallback to the Mozilla CA bundle.
composer/class-map-generator 1.1.0 Utilities to scan PHP code and generate class maps.
composer/composer 2.6.5 Composer helps you declare, manage and install dependencies of PHP projects. It ensures you have the right stack everywhere.
composer/installers v1.12.0 A multi-framework Composer library installer
composer/metadata-minifier 1.0.0 Small utility library that handles metadata minification and expansion.
composer/pcre 3.1.1 PCRE wrapping library that offers type-safe preg_* replacements.
composer/semver 3.3.2 Semver library that offers utilities, version constraint parsing and validation.
composer/spdx-licenses 1.5.8 SPDX licenses list and validation library.
composer/xdebug-handler 3.0.3 Restarts a process without Xdebug.
consolidation/annotated-command 4.9.1 Initialize Symfony Console commands from annotated command class methods.
consolidation/config 2.1.2 Provide configuration services for a commandline tool.
consolidation/filter-via-dot-access-data 2.0.2 This project uses dflydev/dot-access-data to provide simple output filtering for applications built with annotated-command / Robo.
consolidation/log 3.0.0 Improved Psr-3 / Psr\Log logger based on Symfony Console components.
consolidation/output-formatters 4.3.2 Format text by applying transformations provided by plug-in formatters.
consolidation/robo 4.0.6 Modern task runner
consolidation/self-update 2.2.0 Provides a self:update command for Symfony Console applications.
consolidation/site-alias 4.0.1 Manage alias records for local and remote sites.
consolidation/site-process 5.2.0 A thin wrapper around the Symfony Process Component that allows applications to use the Site Alias library to specify the target for a remote call.
cweagans/composer-patches 1.7.3 Provides a way to patch Composer packages.
dealerdirect/phpcodesniffer-composer-installer v0.7.2 PHP_CodeSniffer Standards Composer Installer Plugin
dflydev/dot-access-data v3.0.2 Given a deep data structure, access data by dot notation.
dmore/behat-chrome-extension 1.4.0 Behat extension for controlling Chrome without Selenium
dmore/chrome-mink-driver 2.9.2 Mink driver for controlling chrome without selenium
doctrine/annotations 1.14.3 Docblock Annotations Parser
doctrine/common 3.4.3 PHP Doctrine Common project is a library that provides additional functionality that other Doctrine projects depend on such as better reflection s...
doctrine/deprecations 1.1.2 A small layer on top of trigger_error(E_USER_DEPRECATED) or PSR-3 logging with options to disable all deprecations or selectively for packages.
doctrine/event-manager 2.0.0 The Doctrine Event Manager is a simple PHP event system that was built to be used with the various Doctrine projects.
doctrine/instantiator 2.0.0 A small, lightweight utility to instantiate objects in PHP without invoking their constructors
doctrine/lexer 2.1.0 PHP Doctrine Lexer parser library that can be used in Top-Down, Recursive Descent Parsers.
doctrine/persistence 3.2.0 The Doctrine Persistence project is a set of shared interfaces and functionality that the different Doctrine object mappers share.
drupal/admin_toolbar 3.4.2 Provides a drop-down menu interface to the core Drupal Toolbar.
drupal/adminimal_admin_toolbar dev-1.x 70607c6 Adminimal styling brought to admin toolbar.
drupal/allowed_formats 2.0.0 Limit which text formats are available for each field instance.
drupal/apigee_api_catalog 3.0.5 Apigee API Catalog for Drupal
drupal/apigee_edge 3.0.3 Apigee Edge for Drupal.
drupal/apigee_m10n 2.1.1 Apigee Edge Monetization for Drupal
drupal/better_exposed_filters 6.0.3 Replaces the Views default single- or multi-select boxes with more advanced options.
drupal/better_social_sharing_buttons 4.0.7 Provides a settings page, a field, a paragraph, and a block for social sharing buttons
drupal/block_exclude_pages 2.1.0-beta3 adds an exclude pages field for blocks
drupal/captcha 2.0.5 The CAPTCHA module provides this feature to virtually any user facing web form on a Drupal site.
drupal/chosen 3.0.5 Makes select elements more friendly using the Chosen jQuery plugin
drupal/chosen_lib 3.0.5 This module provides the basic integration with the Chosen jQuery plugin.
drupal/ckeditor_plugin_report 1.0.0 Provides a report listing CKEditor plugins
drupal/coder 8.3.22 Coder is a library to review Drupal code.
drupal/color 1.0.3 Allows users to change the color scheme of compatible themes
drupal/components 3.0.0-beta3 Registers folders of components defined by your theme or module as Twig namespaces
drupal/composer_deploy 1.7.0 Provide version number from composers lockfile.
drupal/config_filter 2.6.0 Config Filter allows other modules to interact with a ConfigStorage through filter plugins.
drupal/config_split 2.0.0 Configuration filter for importing and exporting extra config
drupal/core 10.1.6 Drupal is an open source content management platform powering millions of websites and applications.
drupal/core-composer-scaffold 10.1.6 A flexible Composer project scaffold builder.
drupal/core-dev 10.1.6 require-dev dependencies from drupal/drupal; use in addition to drupal/core-recommended to run tests from drupal/core.
drupal/core-project-message 10.1.6 Adds a message after Composer installation.
drupal/core-recommended 10.1.6 Core and its dependencies with known-compatible minor versions. Require this project INSTEAD OF drupal/core.
drupal/ctools 3.14.0 Provides a number of utility and helper APIs for Drupal developers and site builders.
drupal/ctools_views 3.14.0 A set of improvements to the core Views code that allows for greater control over Blocks.
drupal/default_content 2.0.0-alpha2 Imports default content when a module is enabled
drupal/devel 5.1.2 Various blocks, pages, and functions for developers.
drupal/devel_kint_extras 1.1.0 Shows methods and statics available for an object when using Kint with Devel
drupal/drupal-driver v2.2.2 A collection of reusable Drupal drivers
drupal/drupal-extension v5.0.0rc1 Drupal extension for Behat
drupal/email_registration 1.4.0 Allows users to register with an email address as their username.
drupal/entity 1.4.0 Provides expanded entity APIs, which will be moved to Drupal core one day.
drupal/entity_reference_revisions 1.10.0 Entity Reference Revisions
drupal/externalauth 2.0.3 Helper module to authenticate users using an external site / service and storing identification details
drupal/extlink 1.7.0 Modify behavior and appearance of external links.
drupal/extra_field 2.3.0 Provides a plugin type for extra fields that look like real fields, but do not store data.
drupal/field_group 3.4.0 Provides the field_group module.
drupal/file_link 2.1.0 Extends the core Link module by storing metadata about the target file.
drupal/filefield_paths 1.0.0-beta7 File (Field) Paths. Adds improved Token based file sorting and renaming functionalities.
drupal/fontawesome 2.26.0 The web's most popular icon set and toolkit.
drupal/hal 2.0.2 Hypermedia Application Language (HAL)
drupal/hook_event_dispatcher 4.0.0-rc1 Dispatches events for several drupal core hooks.
drupal/inline_image_token 1.0.0-beta4 Add token support for inline images and files upload directory.
drupal/jquery_ui 1.6.0 Provides jQuery UI library.
drupal/jquery_ui_button 2.0.0 Provides jQuery UI Button library.
drupal/jquery_ui_checkboxradio 2.0.0 Provides jQuery UI Checkboxradio library.
drupal/jquery_ui_controlgroup 2.0.0 Provides jQuery UI Controlgroup library.
drupal/jquery_ui_datepicker 2.0.0 Provides jQuery UI Datepicker library.
drupal/jquery_ui_dialog 2.0.0 Provides jQuery UI Dialog library.
drupal/jquery_ui_draggable 2.0.0 Provides jQuery UI Draggable library.
drupal/jquery_ui_resizable 2.0.0 Provides jQuery UI Resizable library.
drupal/jquery_ui_slider 2.0.0 Provides jQuery UI Slider library.
drupal/jquery_ui_touch_punch 1.1.0 Provides jQuery UI Touch Punch library.
drupal/jsonapi_extras 3.24.0 JSON:API Extras provides a means to override and provide limited configurations to the default zero-configuration implementation provided by the J...
drupal/key 1.17.0 Provides the ability to manage site-wide keys
drupal/key_asymmetric 1.1.0 Provides key types for private and public keys / X.509 certificates.
drupal/mailsystem 4.4.0 Mail System
drupal/menu_export 1.4.0 This module exports and imports menus and menu links.
drupal/message 1.4.0 Message
drupal/message_notify 1.3.0 Notification framework for the Message module
drupal/metatag 2.0.0 Manage meta tags for all entities.
drupal/mimemail 1.0.0-alpha6 Sends MIME-encoded emails with embedded images and attachments.
drupal/openapi 2.1.0 Creates OpenAPI specification for Drupal resources.
drupal/openapi_jsonapi 3.0.4 OpenAPI support for the JSON:API module.
drupal/paragraphs 1.16.0 Enables the creation of Paragraphs entities.
drupal/pathauto 1.12.0 Provides a mechanism for modules to automatically generate aliases for the content they manage.
drupal/published_corrected_date 2.0.2 Added a published and corrected date property to nodes.
drupal/quickedit 1.0.3 In-place content editing (contrib).
drupal/rabbit_hole 2.0.0-alpha5 Basic functionality that is shared among the different Rabbit Hole modules.
drupal/radix 5.0.11 Responsive Bootstrap 5 base theme for Drupal.
drupal/rdf 2.1.1 Enriches your content with metadata to let other applications (e.g. search engines, aggregators) better understand its relationships and attributes
drupal/recaptcha_v3 2.0.2 The reCaptcha V3 module provides integration with Google reCaptcha V3 and CAPTCHA module.
drupal/redoc_field_formatter 3.0.0 Provides a Redoc UI field formatter for File and Link fields.
drupal/registration_link 2.4.0 This module provides a 'Register' link to user account menu.
drupal/requirement 1.2.0 A Drupal module to that gives modules a way to declare configuration requirement and suggestions.
drupal/samlauth 3.9.0 Allows users to authenticate against an external SAML identity provider.
drupal/schemata 1.0.0-beta3 Facilitate generation of schema definitions of Drupal 8 data models.
drupal/schemata_json_schema 1.0.0-beta3 Provides a data models for entity types and bundles in JSON schema format.
drupal/search_api 1.31.0 Provides a generic framework for modules offering search capabilities.
drupal/sendgrid_integration 2.2.0 Drupal module for integrating with the SendGrid API.
drupal/smart_trim 2.1.0 Provides a more robust alternative to 'summary or trimmed' textfield format.
drupal/stage_file_proxy 2.1.2 Provides stage_file_proxy module.
drupal/superfish 1.7.0 Adds jQuery Superfish plugin to menu blocks.
drupal/svg_image_field 2.3.1 Provides SVG Image field.
drupal/tac_lite 1.7.0 Simple access control based on categories.
drupal/token 1.13.0 Provides a user interface for the Token API, some missing core tokens.
drupal/upgrade_status 4.0.0 Review Drupal major upgrade readiness of the environment and components of the site.
drupal/verf 2.0.1 Provides Views filters for entity reference fields.
drupal/views_add_button 2.0.8 Views Add Button
drupal/views_block_filter_block 2.0.1 Provides blocks for Views exposed filters on View blocks.
drupal/views_bulk_operations 4.2.5 Adds an ability to perform bulk operations on selected entities from view results. Provides an API to create such operations.
drupal/votingapi dev-3.x 24e7133 Voting API
drupal/webform 6.2.0 Enables the creation of webforms and questionnaires.
drush-ops/behat-drush-endpoint 9.4.1 Drush commandfile for use with drupal/drupal-driver.
drush/drush 12.4.3 Drush is a command line shell and scripting interface for Drupal, a veritable Swiss Army knife designed to make life easier for those of us who sp...
e0ipso/shaper 1.2.4 Lightweight library to handle in and out transformations in PHP.
easyrdf/easyrdf 1.1.1 EasyRdf is a PHP library designed to make it easy to consume and produce RDF.
egulias/email-validator 4.0.2 A library for validating emails against several RFCs
enshrined/svg-sanitize 0.16.0 An SVG sanitizer for PHP
ezyang/htmlpurifier v4.17.0 Standards compliant HTML filter written in PHP
fastglass/sendgrid 2.0.6 This library allows you to send emails through SendGrid using PHP and Guzzle 6.x.
fightbulc/moment 1.34 Parse, validate, manipulate, and display dates in PHP w/ i18n support. Inspired by moment.js
firebase/php-jwt v6.9.0 A simple library to encode and decode JSON Web Tokens (JWT) in PHP. Should conform to the current spec.
friends-of-behat/mink-extension v2.7.4 Mink extension for Behat
furf/jquery-ui-touch-punch dev-master
genesis/behat-fail-aid 2.5.3 Get more out of your test suite by getting it to work with you when tests fail. Screenshots and more. Works with Goutte and MinkExtension.
google/recaptcha 1.3.0 Client library for reCAPTCHA, a free service that protects websites from spam and abuse.
grasmash/expander 3.0.0 Expands internal property references in PHP arrays file.
grasmash/yaml-cli 3.1.0 A command line tool for reading and manipulating yaml files.
guzzlehttp/guzzle 7.7.1 Guzzle is a PHP HTTP client library
guzzlehttp/promises 2.0.1 Guzzle promises library
guzzlehttp/psr7 2.5.1 PSR-7 message implementation that also provides common utility methods
harvesthq/chosen v1.8.7 Chosen is a JavaScript plugin that makes select boxes user-friendly. It is currently available in both jQuery and Prototype flavors.
html2text/html2text 4.3.1 Converts HTML to formatted plain text
instaclick/php-webdriver 1.4.16 PHP WebDriver for Selenium 2
jeremeamia/superclosure 2.4.0 Serialize Closure objects, including their context and binding
justinrainbow/json-schema v5.2.13 A library to validate a json schema.
kint-php/kint 3.3 Kint - debugging tool for PHP developers
laminas/laminas-servicemanager 3.15.0 Factory-Driven Dependency Injection Container
laminas/laminas-stdlib 3.18.0 SPL extensions, array utilities, error handlers, and more
laminas/laminas-text 2.9.0 Create FIGlets and text-based tables
league/container 4.2.0 A fast and intuitive dependency injection container.
league/period 5.3.0 Time range API for PHP
lobsterr/drupal-superfish 2.3.1 Superfish library for the Drupal Superfish module.
masterminds/html5 2.8.1 An HTML5 parser and serializer.
mathieuviossat/arraytotexttable v1.0.9 Display arrays in terminal
mck89/peast v1.15.4 Peast is PHP library that generates AST for JavaScript code
mglaman/phpstan-drupal 1.2.4 Drupal extension and rules for PHPStan
mikey179/vfsstream v1.6.11 Virtual file system to mock the real file system in unit tests.
myclabs/deep-copy 1.11.1 Create deep copies (clones) of your objects
nikic/php-parser v4.17.1 A PHP parser written in PHP
npm-asset/slick-carousel 1.8.1
onelogin/php-saml 4.1.0 OneLogin PHP SAML Toolkit
oomphinc/composer-installers-extender 2.0.1 Extend the composer/installers plugin to accept any arbitrary package type.
pantheon-systems/drupal-integrations 8.0.4 Add this project to any Drupal distribution based on drupal/core-composer-scaffold to enable it for use on Pantheon.
pantheon-systems/quicksilver-pushback 2.1.1 Push commits made via the Pantheon dashboard back to original GitHub repository.
paragonie/constant_time_encoding v2.6.3 Constant-time Implementations of RFC 4648 Encoding (Base-64, Base-32, Base-16)
paragonie/random_compat v9.99.100 PHP 5.x polyfill for random_bytes() and random_int() from PHP 7
pear/archive_tar 1.4.14 Tar file management class with compression support (gzip, bzip2, lzma2)
pear/console_getopt v1.4.3 More info available on: http://pear.php.net/package/Console_Getopt
pear/pear-core-minimal v1.10.14 Minimal set of PEAR core files to be used as composer dependency
pear/pear_exception v1.0.2 The PEAR Exception base class.
phar-io/manifest 2.0.3 Component for reading phar.io manifest information from a PHP Archive (PHAR)
phar-io/version 3.2.1 Library for handling version information and constraints
phootwork/collection v3.2.2 The phootwork library fills gaps in the php language and provides better solutions than the existing ones php offers.
phootwork/lang v3.2.2 Missing PHP language constructs
php-http/client-common 2.7.1 Common HTTP Client implementations and tools for HTTPlug
php-http/discovery 1.19.2 Finds and installs PSR-7, PSR-17, PSR-18 and HTTPlug implementations
php-http/guzzle7-adapter 1.0.0 Guzzle 7 HTTP Adapter
php-http/httplug 2.4.0 HTTPlug, the HTTP client abstraction for PHP
php-http/message 1.16.0 HTTP Message related tools
php-http/message-factory 1.1.0 Factory interfaces for PSR-7 HTTP Message
php-http/promise 1.2.1 Promise used for asynchronous HTTP requests
phpdocumentor/reflection-common 2.2.0 Common reflection classes used by phpdocumentor to reflect the code structure
phpdocumentor/reflection-docblock 5.3.0 With this component, a library can provide support for annotations via DocBlocks or otherwise retrieve information that is embedded in a DocBlock.
phpdocumentor/type-resolver 1.7.3 A PSR-5 based resolver of Class names, Types and Structural Element Names
phpowermove/docblock v4.0 PHP Docblock parser and generator. An API to read and write Docblocks.
phpseclib/phpseclib 3.0.34 PHP Secure Communications Library - Pure-PHP implementations of RSA, AES, SSH2, SFTP, X.509 etc.
phpspec/prophecy v1.17.0 Highly opinionated mocking framework for PHP 5.3+
phpspec/prophecy-phpunit v2.0.2 Integrating the Prophecy mocking library in PHPUnit test cases
phpstan/extension-installer 1.3.1 Composer plugin for automatic installation of PHPStan extensions
phpstan/phpdoc-parser 1.24.4 PHPDoc parser with support for nullable, intersection and generic types
phpstan/phpstan 1.10.46 PHPStan - PHP Static Analysis Tool
phpstan/phpstan-deprecation-rules 1.1.4 PHPStan rules for detecting usage of deprecated classes, methods, properties, constants and traits.
phpstan/phpstan-phpunit 1.3.15 PHPUnit extensions and rules for PHPStan
phpunit/php-code-coverage 9.2.29 Library that provides collection, processing, and rendering functionality for PHP code coverage information.
phpunit/php-file-iterator 3.0.6 FilterIterator implementation that filters files based on a list of suffixes.
phpunit/php-invoker 3.1.1 Invoke callables with a timeout
phpunit/php-text-template 2.0.4 Simple template engine.
phpunit/php-timer 5.0.3 Utility class for timing
phpunit/phpunit 9.6.14 The PHP Unit Testing framework.
phrity/net-uri 1.3.0 PSR-7 Uri and PSR-17 UriFactory implementation
phrity/util-errorhandler 1.0.1 Inline error handler; catch and resolve errors for code block.
politsin/jquery-ui-touch-punch 1.0 Extension to jQuery UI for mobile touch event support.
psr/cache 3.0.0 Common interface for caching libraries
psr/container 2.0.2 Common Container Interface (PHP FIG PSR-11)
psr/event-dispatcher 1.0.0 Standard interfaces for event handling.
psr/http-client 1.0.3 Common interface for HTTP clients
psr/http-factory 1.0.2 Common interfaces for PSR-7 HTTP message factories
psr/http-message 1.1 Common interface for HTTP messages
psr/log 3.0.0 Common interface for logging libraries
psy/psysh v0.11.22 An interactive shell for modern PHP.
ralouphie/getallheaders 3.0.3 A polyfill for getallheaders.
react/promise v3.1.0 A lightweight implementation of CommonJS Promises/A for PHP
robrichards/xmlseclibs 3.1.1 A PHP library for XML Security
sebastian/cli-parser 1.0.1 Library for parsing CLI options
sebastian/code-unit 1.0.8 Collection of value objects that represent the PHP code units
sebastian/code-unit-reverse-lookup 2.0.3 Looks up which function or method a line of code belongs to
sebastian/comparator 4.0.8 Provides the functionality to compare PHP values for equality
sebastian/complexity 2.0.2 Library for calculating the complexity of PHP code units
sebastian/diff 4.0.5 Diff implementation
sebastian/environment 5.1.5 Provides functionality to handle HHVM/PHP environments
sebastian/exporter 4.0.5 Provides the functionality to export PHP variables for visualization
sebastian/global-state 5.0.6 Snapshotting of global state
sebastian/lines-of-code 1.0.3 Library for counting the lines of code in PHP source code
sebastian/object-enumerator 4.0.4 Traverses array structures and object graphs to enumerate all referenced objects
sebastian/object-reflector 2.0.4 Allows reflection of object attributes, including inherited and non-public ones
sebastian/recursion-context 4.0.5 Provides functionality to recursively process PHP variables
sebastian/resource-operations 3.0.3 Provides a list of PHP built-in functions that operate on resources
sebastian/type 3.2.1 Collection of value objects that represent the types of the PHP type system
sebastian/version 3.0.2 Library that helps with managing the version number of Git-hosted PHP projects
seld/jsonlint 1.10.0 JSON Linter
seld/phar-utils 1.2.1 PHAR file format utilities, for when PHP phars you up
seld/signal-handler 2.0.2 Simple unix signal handler that silently fails where signals are not supported for easy cross-platform development
sirbrillig/phpcs-variable-analysis v2.11.17 A PHPCS sniff to detect problems with variables.
slevomat/coding-standard 8.14.1 Slevomat Coding Standard for PHP_CodeSniffer complements Consistence Coding Standard by providing sniffs with additional checks.
squizlabs/php_codesniffer 3.7.2 PHP_CodeSniffer tokenizes PHP, JavaScript and CSS files and detects violations of a defined set of coding standards.
starkbank/ecdsa 0.0.4 fast openSSL-compatible implementation of the Elliptic Curve Digital Signature Algorithm (ECDSA)
symfony/browser-kit v6.4.0 Simulates the behavior of a web browser, allowing you to make requests, click on links and submit forms programmatically
symfony/config v6.4.0 Helps you find, load, combine, autofill and validate configuration values of any kind
symfony/console v6.3.9 Eases the creation of beautiful and testable command line interfaces
symfony/css-selector v6.4.0 Converts CSS selectors to XPath expressions
symfony/dependency-injection v6.3.8 Allows you to standardize and centralize the way objects are constructed in your application
symfony/deprecation-contracts v3.3.0 A generic function and convention to trigger deprecation notices
symfony/dom-crawler v6.4.0 Eases DOM navigation for HTML and XML documents
symfony/error-handler v6.3.5 Provides tools to manage errors and ease debugging PHP code
symfony/event-dispatcher v6.3.2 Provides tools that allow your application components to communicate with each other by dispatching events and listening to them
symfony/event-dispatcher-contracts v3.3.0 Generic abstractions related to dispatching event
symfony/filesystem v6.4.0 Provides basic utilities for the filesystem
symfony/finder v6.4.0 Finds files and directories via an intuitive fluent interface
symfony/http-client v6.4.0 Provides powerful methods to fetch HTTP resources synchronously or asynchronously
symfony/http-client-contracts v3.4.0 Generic abstractions related to HTTP clients
symfony/http-foundation v6.3.9 Defines an object-oriented layer for the HTTP specification
symfony/http-kernel v6.3.9 Provides a structured process for converting a Request into a Response
symfony/lock v6.4.0 Creates and manages locks, a mechanism to provide exclusive access to a shared resource
symfony/mime v6.3.5 Allows manipulating MIME messages
symfony/options-resolver v6.4.0 Provides an improved replacement for the array_replace PHP function
symfony/phpunit-bridge v6.4.0 Provides utilities for PHPUnit, especially user deprecation notices management
symfony/polyfill-ctype v1.27.0 Symfony polyfill for ctype functions
symfony/polyfill-iconv v1.27.0 Symfony polyfill for the Iconv extension
symfony/polyfill-intl-grapheme v1.27.0 Symfony polyfill for intl's grapheme_* functions
symfony/polyfill-intl-idn v1.27.0 Symfony polyfill for intl's idn_to_ascii and idn_to_utf8 functions
symfony/polyfill-intl-normalizer v1.27.0 Symfony polyfill for intl's Normalizer class and related functions
symfony/polyfill-mbstring v1.27.0 Symfony polyfill for the Mbstring extension
symfony/polyfill-php56 v1.20.0 Symfony polyfill backporting some PHP 5.6+ features to lower PHP versions
symfony/polyfill-php72 v1.28.0 Symfony polyfill backporting some PHP 7.2+ features to lower PHP versions
symfony/polyfill-php73 v1.28.0 Symfony polyfill backporting some PHP 7.3+ features to lower PHP versions
symfony/polyfill-php80 v1.28.0 Symfony polyfill backporting some PHP 8.0+ features to lower PHP versions
symfony/polyfill-php81 v1.28.0 Symfony polyfill backporting some PHP 8.1+ features to lower PHP versions
symfony/polyfill-php83 v1.27.0 Symfony polyfill backporting some PHP 8.3+ features to lower PHP versions
symfony/process v6.3.4 Executes commands in sub-processes
symfony/property-access v6.4.0 Provides functions to read and write from/to an object or array using a simple string notation
symfony/property-info v6.3.9 Extracts information about PHP class' properties using metadata of popular sources
symfony/psr-http-message-bridge v2.2.0 PSR HTTP message bridge
symfony/routing v6.3.5 Maps an HTTP request to a set of configuration variables
symfony/serializer v6.3.9 Handles serializing and deserializing data structures, including object graphs, into array structures or other formats like XML and JSON.
symfony/service-contracts v3.3.0 Generic abstractions related to writing services
symfony/string v6.3.9 Provides an object-oriented API to strings and deals with bytes, UTF-8 code points and grapheme clusters in a unified way
symfony/translation v6.4.0 Provides tools to internationalize your application
symfony/translation-contracts v3.3.0 Generic abstractions related to translation
symfony/validator v6.3.9 Provides tools to validate values
symfony/var-dumper v6.3.8 Provides mechanisms for walking through any arbitrary PHP variable
symfony/var-exporter v6.3.9 Allows exporting any serializable PHP data structure to plain PHP code
symfony/yaml v6.3.8 Loads and dumps YAML files
textalk/websocket 1.6.3 WebSocket client and server
theseer/tokenizer 1.2.2 A small library for converting tokenized PHP source code into XML and potentially other formats
twig/twig v3.6.1 Twig, the flexible, fast, and secure template language for PHP
webflo/drupal-finder 1.2.2 Helper class to locate a Drupal installation from a given path.
webmozart/assert 1.11.0 Assertions to validate method input/output with nice error messages.
webonyx/graphql-php v14.11.10 A PHP port of GraphQL reference implementation
@zolika42 ,
Thank you for bringing this issue to our attention and for your contribution.
Feel free to create a pull request for this issue, We'll review it.
Description
I am using SVG Image Field module to show some nice icons. This causing error
InvalidArgumentException: Field field_media_image is unknown. in Drupal\Core\Entity\ContentEntityBase->getTranslatedField() (line 583 of /var/www/html/web/core/lib/Drupal/Core/Entity/ContentEntityBase.php).
Steps to Reproduce
Steps to reproduce the behavior:
Actual Behavior
Throw fatal error
InvalidArgumentException: Field field_media_image is unknown. in Drupal\Core\Entity\ContentEntityBase->getTranslatedField() (line 583 of /var/www/html/web/core/lib/Drupal/Core/Entity/ContentEntityBase.php).
Expected Behavior
no fatal error.
Screenshots
N/A
Notes
I have a simple patch, below:
Version Info