Drupal 11 Compatibility

Created on 6 November 2024, about 2 months ago

Is there any plan, when will protected pages be on Drupal 11?

regards Hobbs

💬 Support request
Status

Needs work

Version

1.0

Component

Code

Created by

🇩🇪Germany drwilliamhobbs

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

Merge Requests

Comments & Activities

  • Issue created by @drwilliamhobbs
  • First commit to issue fork.
  • Merge request !31Resolve #3485965 "Drupal 11 compatibility" → (Merged) created by mark_fullmer
  • Pipeline finished with Failed
    about 1 month ago
    Total: 140s
    #346125
  • Pipeline finished with Success
    about 1 month ago
    Total: 159s
    #346141
  • 🇺🇸United States mark_fullmer Tucson

    Based on the analysis below and functional testing, this should be ready to merge and a new 8.x-1.7 release provided with Drupal 11 compatibility

    Auditor checklist

    [x] Deprecated Drupal code is remediated -- no deprecations found using Rector or Upgrade Status, or
    [x] Deprecated PHP code is remediated -- change, noted below.
    [x] Custom code is compatible with jQuery 4 -- none present
    [x] Custom code core_version_requirement indicates Drupal 11 compatibility
    [x] This module's composer.json file does not require any changes for Drupal 11 compatibility
    [x] I updated the GitlabCI file to run Functional tests against both Drupal 10 and Drupal 11.
    [x] Existing functional tests pass on Drupal 10 and Drupal 11

    Drupal-Rector Audit of Drupal deprecations

    1 file with changes
    ===================

    1) web/modules/contrib/protected_pages/src/EventSubscriber/ProtectedPagesSubscriber.php:134
    
        ---------- begin diff ----------
    @@ @@
       /**
        * {@inheritdoc}
        */
    -  public static function getSubscribedEvents() {
    +  public static function getSubscribedEvents(): array {
         $events[KernelEvents::RESPONSE][] = ['checkProtectedPage'];
         return $events;
       }
        ----------- end diff -----------
    
    Applied rules:
     * ProtectedStaticModulesPropertyRector
     * AddReturnTypeDeclarationRector
    
    
     [OK] 1 file would have been changed (dry-run) by Rector                                                                
    
    Audit of deprecated PHP <8.3 calls
    If no errors are listed below, php-compatibility did not find any.
    
    .......... 10 / 10 (100%)
    
    
  • 🇺🇸United States mmarler

    I'm getting a fatal error in Drupal 11.0.9 when the workspaces module is enabled:

    TypeError: Drupal\protected_pages\EventSubscriber\ProtectedPagesSubscriber::__construct(): Argument #1 ($aliasManager) must be of type Drupal\path_alias\AliasManager, Drupal\workspaces\WorkspacesAliasManager given, called in /app/web/core/lib/Drupal/Component/DependencyInjection/Container.php on line 259 in Drupal\protected_pages\EventSubscriber\ProtectedPagesSubscriber->__construct() (line 91 of /app/web/modules/contrib/protected_pages/src/EventSubscriber/ProtectedPagesSubscriber.php).

  • 🇺🇸United States mmarler
  • 🇺🇸United States mmarler

    I'll apply the patch here: https://www.drupal.org/project/protected_pages/issues/3456307 🐛 Workspaces Incompatibility RTBC

  • 🇺🇸United States mmarler
  • Pipeline finished with Canceled
    25 days ago
    Total: 122s
    #352296
  • Pipeline finished with Success
    25 days ago
    Total: 215s
    #352297
  • Pipeline finished with Success
    25 days ago
    Total: 139s
    #352320
  • 🇩🇪Germany drwilliamhobbs

    Is it possible to get an Updated-Zipfile?

  • First commit to issue fork.
  • Merge request !32Drupal 11 compatibility → (Closed) created by Unnamed author
  • Pipeline finished with Success
    18 days ago
    Total: 133s
    #358759
  • 🇺🇸United States mark_fullmer Tucson

    Is it possible to get an Updated-Zipfile?

    I think the best way to go about getting a "download" of this would be to use Git to clone the issue fork & branch (see the "Show commands" expandable near the top of this issue).

  • 🇮🇳India patelh84

    The #MR32 works for both Drupal 10 and Drupal 11. Attaching the upgrade status screenshot for reference. Moving the issue to RTBC.

  • Pipeline finished with Skipped
    3 days ago
    #373849
  • First commit to issue fork.
  • 🇺🇸United States oksana-c
Production build 0.71.5 2024