- Issue created by @joshuautley
I'm preparing a site for Drupal 10 now that support for Drupal 9 has ended. The following issues must first be resolved.
Install the Upgrade Status module and scan this module.
Scanned on Mon, 11/20/2023 - 09:21 am.
3 errors found. Avoid some manual work by using drupal-rector for fixing issues
automatically or Upgrade Rector to generate patches.
No automatic upgrade path, all ads from Drupal 7 should be migrated manually or
by writing custom migration scripts.
modules/contrib/SimpleAds/simpleads.install:
┌──────────┬──────┬──────────────────────────────────────────────────────────────┐
│ STATUS │ LINE │ MESSAGE │
├──────────┼──────┼──────────────────────────────────────────────────────────────┤
│ Fix with │ 279 │ Call to deprecated function drupal_get_path(). Deprecated in │
│ rector │ │ drupal:9.3.0 and is removed from drupal:10.0.0. Use │
│ │ │ Drupal\Core\Extension\ExtensionPathResolver::getPath() │
│ │ │ instead. │
│ │ │ │
└──────────┴──────┴──────────────────────────────────────────────────────────────┘
modules/contrib/SimpleAds/src/Entity/Advertisement.php:
┌──────────┬──────┬──────────────────────────────────────────────────────────────┐
│ STATUS │ LINE │ MESSAGE │
├──────────┼──────┼──────────────────────────────────────────────────────────────┤
│ Fix with │ 396 │ Call to deprecated function file_create_url(). Deprecated in │
│ rector │ │ drupal:9.3.0 and is removed from drupal:10.0.0. Use the │
│ │ │ appropriate method on │
│ │ │ \Drupal\Core\File\FileUrlGeneratorInterface instead. │
│ │ │ │
└──────────┴──────┴──────────────────────────────────────────────────────────────┘
modules/contrib/SimpleAds/src/Plugin/Field/FieldFormatter/SimpleAdsFormatter.php:
┌──────────┬──────┬──────────────────────────────────────────────────────────────┐
│ STATUS │ LINE │ MESSAGE │
├──────────┼──────┼──────────────────────────────────────────────────────────────┤
│ Fix with │ 72 │ Call to deprecated function file_create_url(). Deprecated in │
│ rector │ │ drupal:9.3.0 and is removed from drupal:10.0.0. Use the │
│ │ │ appropriate method on │
│ │ │ \Drupal\Core\File\FileUrlGeneratorInterface instead. │
│ │ │ │
└──────────┴──────┴──────────────────────────────────────────────────────────────┘
Change Records
drupal_get_path() and drupal_get_filename() have been deprecated in favor of extension listing services
Active
2.0
Code