Automated Drupal 10 compatibility fixes

Created on 18 July 2022, almost 2 years ago
Updated 2 May 2024, about 2 months ago

Problem/Motivation

Hello project maintainers,

This is an automated issue to help make this module compatible with Drupal 10.

To read more about this effort by the Drupal Association, please read: The project update bot is being refreshed to support Drupal 10 readiness of contributed projects โ†’

Periodically patches will be added to this issue that remove Drupal 10 deprecated API uses. To stop further patches from being posted simply close this issue (any status besides Active, Needs review or Needs work) or remove the "ProjectUpdateBotD10" tag from the issue.

The patches will be posted by the Project Update Bot โ†’ official user account. This account will not receive any issue credit contributions for itself or any company.

Proposed resolution

You have a few options for how to use this issue:

  1. Accept automated patches until this issue is closed

    If this issue is left open (status of Active, Needs review or Needs work) and the "ProjectUpdateBotD10" tag is left on this issue, new patches will be posted periodically if new deprecation fixes are needed.

    As the Drupal Rector project improves and is able to fix more deprecated API uses, the patches posted here will cover more of the deprecated API uses in the module.

  2. Leave open but stop new automated patches.

    If you want to use this issue as a starting point to remove deprecated API uses but don't want new automated patches simply leave this issue open but remove the "ProjectUpdateBotD10" tag from the issue.

    You can use Drupal Rector yourself to make these patches.

    If you want to receive automated patches again, add back the "ProjectUpdateBotD10" tag.

  3. Close it and don't use it

    If the maintainers of this project don't find this issue useful, they can close this issue (any status besides Active, Needs review or Needs work) and no more automated patches will be posted here.

    If the issue is reopened, then new automated patches will be posted.

    If you are using another issue(s) to work on Drupal 10 compatibility it may be useful to other contributors to add those issues as "Related issues" when closing this issue.

Remaining tasks

Using the patches

  1. Apply the patch in the comment by Project Update Bot โ†’ .
  2. Thoroughly test the patch. These patches are automatically generated so they haven't been tested manually or automatically.

Providing feedback

If there are problems with one of the patches posted by the Project Update Bot โ†’ , such as it does not correctly replace a deprecation, you can file an issue in the Drupal Rector issue queue โ†’ . For other issues with the bot, for instance if the issue summary created by the bot is unclear, use the Infrastructure project issue queue โ†’ using the component โ€œBot: Drupal Rectorโ€.

๐Ÿ“Œ Task
Status

RTBC

Version

10.0

Component

Code

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

  • ๐Ÿ‡บ๐Ÿ‡ธUnited States loopy1492

    Working well on Drupal 9.5.2 with php 8.1. Upgrade status module is happy.

  • Status changed to RTBC over 1 year ago
  • ๐Ÿ‡บ๐Ÿ‡ธUnited States loopy1492
  • Status changed to Needs review about 1 year ago
  • ๐Ÿ‡ฎ๐Ÿ‡ณIndia AbhinavK

    I tested patch #4 on drupal 9.5.7 and drupal 10.0.3 and php 8.1 and found below error in Upgrade_status.

    Call to deprecated method getImplementations() of class Drupal\Core\Extension\ModuleHandlerInterface. Deprecated in drupal:9.4.0 and is removed from drupal:10.0.0. Instead you should use ModuleHandlerInterface::invokeAllWith() for hook invocations or you should use ModuleHandlerInterface::hasImplementations() to determine if hooks implementations exist.

    Also getting error when trying to access help page. (Attached image)

    I have fixed these issues and some drupal-check errors as well in new patch.

    Attached file with ignorable drupal-check errors.

  • Status changed to RTBC about 1 year ago
  • ๐Ÿ‡ฎ๐Ÿ‡ณIndia Chandra Gowsalya Kannan

    I have applied patch #9 and tested in local D9.5.7 , it makes the module D10 compatible, solving deprecated error and the functionality is working as expected.
    Attached screenshot for reference.

  • ๐Ÿ‡ฌ๐Ÿ‡งUnited Kingdom DuttonMa

    If anybody is looking to install this module on Drupal 10 right now, I have created a D10 version at https://www.drupal.org/project/easy_install_d10 โ†’ which incorporates patch #9

  • ๐Ÿ‡ฎ๐Ÿ‡ณIndia Rijas Madurakuzhi

    Subscribing

  • ๐Ÿ‡ฎ๐Ÿ‡ณIndia karthikeyan-manivasagam

    Hi Team,

    Thanks for your valuable contribution, Please create a Fork and raise Merge Request against the 11.0.x

    Thanks
    Karthikeyan M

  • Status changed to Needs work 11 months ago
  • ๐Ÿ‡ฎ๐Ÿ‡ณIndia kbk1992 Hyderabad

    bharath-kondeti โ†’ made their first commit to this issueโ€™s fork.

  • @bharath-kondeti opened merge request.
  • Status changed to Needs review 11 months ago
  • ๐Ÿ‡ฎ๐Ÿ‡ณIndia kbk1992 Hyderabad

    Raised an MR https://git.drupalcode.org/project/easy_install/-/merge_requests/5 with latest patch against 11.0.x branch

  • First commit to issue fork.
  • ๐Ÿ‡ฎ๐Ÿ‡ณIndia Vinodhini.E chennai

    Hi Team,

    Am working Drupal 10 upgrade and this module is incompatible with Drupal 10.
    Attached screenshot

    Please help me with this

  • Status changed to Needs work 9 months ago
  • ๐Ÿ‡ฎ๐Ÿ‡ณIndia Bushra Shaikh

    I applied MR !5 got below errors :

    warning: easy_install.info.yml has type 100644, expected 100755
    warning: easy_install.module has type 100644, expected 100755
    error: patch failed: easy_install.module:20
    error: easy_install.module: patch does not apply
    error: patch failed: src/Form/PurgeConfigurationsConfirmForm.php:144
    error: src/Form/PurgeConfigurationsConfirmForm.php: patch does not apply
    
  • Status changed to Needs review 9 months ago
  • ๐Ÿ‡ฎ๐Ÿ‡ณIndia roshni27

    I have successfully installed Easy Install in Drupal 10 using MR 5, and it is currently working as expected for me. Please refer to the screenshot below for confirmation

  • First commit to issue fork.
  • @rpayanm opened merge request.
  • ๐Ÿ‡บ๐Ÿ‡พUruguay rpayanm

    I have created a patch for the 8.x-10.x version.
    Please review.

  • First commit to issue fork.
  • @gonzalo2683 opened merge request.
  • Status changed to Needs work 8 months ago
  • ๐Ÿ‡บ๐Ÿ‡ธUnited States l-laziz

    Drupal upgrade status yields this error:

    Call to deprecated method getImplementations() of class
    Drupal\Core\Extension\ModuleHandlerInterface. Deprecated in
    drupal:9.4.0 and is removed from drupal:10.0.0. Instead you
    should use ModuleHandlerInterface::invokeAllWith() for hook
    invocations or you should use
    ModuleHandlerInterface::hasImplementations() to determine if
    hooks implementations exist.

  • ๐Ÿ‡ฎ๐Ÿ‡ณIndia kuhikar
  • Status changed to Needs review 6 months ago
  • ๐Ÿ‡ฎ๐Ÿ‡ณIndia AbhinavK

    I have created patch from MR!5 which works with 11.0.x version (easy_install_d10_11.0.x.patch).

    I have also added fix for error mentioned in #27 in MR!7 and created patch (easy_install_d10_8.x-10.x.patch) for same. This patch works with 8.x-10.x version.

    Please review both and use as required.

  • ๐Ÿ‡ธ๐Ÿ‡ฐSlovakia havran

    Quick note for myself -> For D10 in PurgeConfigurationsForm.php:

    https://www.drupal.org/node/3225999 โ†’

  • Status changed to RTBC 3 months ago
  • ๐Ÿ‡ฎ๐Ÿ‡ณIndia Bushra Shaikh

    I have reviewed and checked patch#29 this works for drupal 9.5.10 and drupal 10.0. and 10.0.1
    Screenshots of the compatibility on 9.5 have been attached for reference:

    can be moved to RTBC+1

  • ๐Ÿ‡ง๐Ÿ‡ฏBenin delacosta456

    hi
    i am on D10.2 +php8.2 and none of patch in #9 applied

    Only the the patch in #9 applied . Can somebody help please

    Thanks

Production build 0.69.0 2024