Drupal 11 deprecation errors

Filter errors
All occurences Sort ascending Affected projects Occurs in a top X project by usage Category Message
5550 4457 50 Info.yml or composer.json Value of core_version_requirement is not compatible with the next major version of Drupal core. See https://drupal.org/node/3070687.
681 681 100 Info.yml or composer.json The drupal/core requirement is not compatible with the next major version of Drupal. Either remove it or update it to be compatible. See https://www.drupal.org/docs/develop/using-composer/add-a-composerjson-file#core-compatibility.
566 191 50 Drupal API, rector covered Call to deprecated function watchdog_exception(). Deprecated in drupal:10.1.0 and is removed from drupal:11.0.0. Use Use Drupal​\​Core​\​Utility​\​Error::logException() instead.
354 187 500 Drupal API, not rector covered Relying on entity queries to check access by default is deprecated in drupal:9.2.0 and an error will be thrown from drupal:10.0.0. Call ​\​Drupal​\​Core​\​Entity​\​Query​\​QueryInterface::accessCheck() with TRUE or FALSE to specify whether access should be checked.
207 122 200 Other problem Support from all Views contextual filter settings for the default_argument_skip_url setting is removed from drupal:11.0.0. No replacement is provided. See https://www.drupal.org/node/3382316.
202 61 1000 Drupal API, not rector covered Call to deprecated method loadRevision() of interface Drupal​\​Core​\​Entity​\​EntityStorageInterface. Deprecated in drupal:10.1.0 and is removed from drupal:11.0.0. Use Drupal​\​Core​\​Entity​\​RevisionableStorageInterface::loadRevision instead.
96 75 500 Drupal API, not rector covered Call to deprecated function user_role_names(). Deprecated in drupal:10.2.0 and is removed from drupal:11.0.0. Use Drupal​\​user​\​Entity​\​Role::loadMultiple() and, if necessary, an inline implementation instead.
81 72 500 Drupal API, rector covered Drupal​\​Tests​\​BrowserTestBase::$defaultTheme is required in drupal:9.0.0 when using an install profile that does not set a default theme. See https://www.drupal.org/node/3083055, which includes recommendations on which theme to use.
78 3 10000 PHPUnit API Call to deprecated method at() of class PHPUnit​\​Framework​\​TestCase: https://github.com/sebastianbergmann/phpunit/issues/4297
67 43 500 Drupal API, not rector covered Call to deprecated function user_roles(). Deprecated in drupal:10.2.0 and is removed from drupal:11.0.0. Use Drupal​\​user​\​Entity​\​Role::loadMultiple() and, if necessary, an inline implementation instead.
65 41 100 Drupal API, rector covered Call to deprecated function format_size(). Deprecated in drupal:10.2.0 and is removed from drupal:11.0.0. Use Drupal​\​Core​\​StringTranslation​\​ByteSizeMarkup::create($size, $langcode) instead.
48 35 1000 Drupal API, not rector covered Call to deprecated method deleteRevision() of interface Drupal​\​Core​\​Entity​\​EntityStorageInterface. Deprecated in drupal:10.1.0 and is removed from drupal:11.0.0. Use Drupal​\​Core​\​Entity​\​RevisionableStorageInterface::deleteRevision instead.
46 11 10000 PHPUnit API Call to deprecated method setMethods() of class PHPUnit​\​Framework​\​MockObject​\​MockBuilder: https://github.com/sebastianbergmann/phpunit/pull/3687
43 17 10000 Drupal API, rector covered Call to deprecated function module_load_include(). Deprecated in drupal:9.4.0 and is removed from drupal:11.0.0. Use Drupal::moduleHandler()->loadInclude($module, $type, $name = NULL). Note that including code from uninstalled extensions is no longer supported.
42 20 10000 Frontend API The #drupal-off-canvas selector is deprecated in drupal:9.5.0 and is removed from drupal:10.0.0. See https://www.drupal.org/node/3305664.
39 21 1000 Drupal API, rector covered Call to deprecated constant REQUEST_TIME: Deprecated in drupal:8.3.0 and is removed from drupal:11.0.0. Use Drupal::time()->getRequestTime();
30 20 200 Other problem Usage of deprecated trait Drupal​\​Tests​\​field​\​Traits​\​EntityReferenceTestTrait in class [redacted]:11.0.0. Use Drupal​\​Tests​\​field​\​Traits​\​EntityReferenceFieldCreationTrait instead.
27 24 500 Symfony API Usage of deprecated trait Symfony​\​Component​\​DependencyInjection​\​ContainerAwareTrait in class [redacted]: since Symfony 6.4, use dependency injection instead
26 3 10000 Drupal API, rector covered Call to deprecated method getResource() of class Drupal​\​system​\​Plugin​\​ImageToolkit​\​GDToolkit. Deprecated in drupal:10.2.0 and is removed from drupal:11.0.0. Use Drupal​\​system​\​Plugin​\​ImageToolkit​\​GDToolkit::getImage() instead.
21 18 100 Drupal API, not rector covered Call to deprecated function system_retrieve_file(). Deprecated in drupal:10.2.0 and is removed from drupal:11.0.0. There is no replacement.
20 7 10000 Other problem Call to deprecated method toMinorUnits() of class Drupal​\​commerce_payment​\​Plugin​\​Commerce​\​PaymentGateway​\​PaymentGatewayBase.
18 18 10000 Symfony API Class [redacted] implements deprecated interface Symfony​\​Component​\​DependencyInjection​\​ContainerAwareInterface: since Symfony 6.4, use dependency injection instead
18 14 10000 Drupal API, rector covered Call to deprecated function system_time_zones(). Deprecated in drupal:10.1.0 and is removed from drupal:11.0.0. This function is no longer used in Drupal core. Use Drupal​\​Core​\​Datetime​\​TimeZoneFormHelper::getOptionsList() or ​\​DateTimeZone::listIdentifiers() instead.
16 13 200 Drupal API, rector covered Call to deprecated function _drupal_flush_css_js(). Deprecated in drupal:10.2.0 and is removed from drupal:11.0.0. Use Use Drupal​\​Core​\​Asset​\​AssetQueryStringInterface::reset() instead.
16 9 10000 Drupal API, rector covered Call to deprecated function file_icon_class(). Deprecated in drupal:10.3.0 and is removed from drupal:11.0.0. Use Drupal​\​file​\​IconMimeTypes::getIconClass() instead.
15 7 1000 Drupal API, rector covered Fetching deprecated class constant MASTER_REQUEST of interface Symfony​\​Component​\​HttpKernel​\​HttpKernelInterface: since symfony/http-kernel 5.3, use MAIN_REQUEST instead. To ease the migration, this constant won't be removed until Symfony 7.0.
14 9 1000 Drupal API, not rector covered Call to deprecated method toRenderArray() of class Drupal​\​Core​\​Url. Deprecated in drupal:10.1.0 and is removed from drupal:11.0.0. There is no replacement.
11 2 10000 Other problem Calls to function dsm should not exist.
11 8 10000 Other problem Access to deprecated property $entityId of class Drupal​\​commerce_payment​\​Plugin​\​Commerce​\​PaymentGateway​\​PaymentGatewayBase. Deprecated in commerce:8.x-2.16 and is removed from commerce:3.x. Use $this->parentEntity->id() instead.
10 1 10000 Other problem Call to deprecated method getComponent() of class Drupal​\​course​\​Entity​\​CourseObject: Use CourseObject::bundle()


Results are from dataset #350397 from 2024-11-26T11:21. Report is ran by the Drupal Association regularly.