Drupal 11 deprecation errors

Filter errors
All occurences Sort ascending Affected projects Occurs in a top X project by usage Category Message
7093 5256 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.
857 857 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.
648 227 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.
452 225 100 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.
285 157 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.
257 80 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.
136 25 200 PHPUnit API Call to deprecated method setMethods() of class PHPUnit​\​Framework​\​MockObject​\​MockBuilder: https://github.com/sebastianbergmann/phpunit/pull/3687
119 89 200 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.
96 87 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.
83 52 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.
78 3 10000 PHPUnit API Call to deprecated method at() of class PHPUnit​\​Framework​\​TestCase: https://github.com/sebastianbergmann/phpunit/issues/4297
75 48 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.
62 21 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.
55 41 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.
51 24 50 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.
51 35 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.
41 23 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();
38 32 200 Symfony API Usage of deprecated trait Symfony​\​Component​\​DependencyInjection​\​ContainerAwareTrait in class [redacted]: since Symfony 6.4, use dependency injection instead
34 5 1000 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.
27 23 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.
25 24 200 Symfony API Class [redacted] implements deprecated interface Symfony​\​Component​\​DependencyInjection​\​ContainerAwareInterface: since Symfony 6.4, use dependency injection instead
22 12 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.
21 14 100 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.
20 7 10000 Other problem Call to deprecated method toMinorUnits() of class Drupal​\​commerce_payment​\​Plugin​\​Commerce​\​PaymentGateway​\​PaymentGatewayBase.
19 9 100 PHPUnit API Call to deprecated method withConsecutive() of class PHPUnit​\​Framework​\​MockObject​\​Builder​\​InvocationMocker.
18 15 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.
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.
17 5 10000 Other problem Add core_version_requirement to designate which Drupal versions is the extension compatible with. See https://drupal.org/node/3070687.
15 10 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.
15 8 10000 Other problem Calls to function dpm should not exist.


Results are from dataset #256676 from 2024-08-17T19:58. Report is ran by the Drupal Association regularly.