Drupal 11 deprecation errors

Filter errors
All occurences Sort ascending Affected projects Occurs in a top X project by usage Category Message
5988 4627 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.
708 708 50 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.
575 196 100 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.
364 191 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.
229 124 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.
206 65 500 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.
106 18 10000 PHPUnit API Call to deprecated method setMethods() of class PHPUnit​\​Framework​\​MockObject​\​MockBuilder: https://github.com/sebastianbergmann/phpunit/pull/3687
98 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.
86 77 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
69 44 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.
66 42 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.
52 19 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.
44 36 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.
39 22 500 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();
36 17 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.
31 21 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.
30 4 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.
29 26 500 Symfony API Usage of deprecated trait Symfony​\​Component​\​DependencyInjection​\​ContainerAwareTrait in class [redacted]: since Symfony 6.4, use dependency injection instead
24 21 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 11 200 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.
18 10 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.
18 18 10000 Symfony API Class [redacted] implements deprecated interface Symfony​\​Component​\​DependencyInjection​\​ContainerAwareInterface: since Symfony 6.4, use dependency injection instead
16 12 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.
15 12 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.
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.
14 7 10000 Other problem Calls to function dpm should not exist.
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.


Results are from dataset #307947 from 2024-10-12T12:47. Report is ran by the Drupal Association regularly.