Drupal 11 update

Created on 12 April 2025, 17 days ago

Problem/Motivation

We are currently using the Mobile Detect module in Drupal 10. However, Drupal 11 introduces changes that may affect compatibility with older versions of this module. The goal is to update the Mobile Detect module to ensure full compatibility with Drupal 11, particularly regarding changes in PHP versions and any deprecated API methods

Steps to reproduce

  • Install the Mobile Detect 4.0.x-dev module on a Drupal 11 instance.
  • Check for compatibility issues by enabling the module.
  • Test the detection of various devices (e.g., mobile, tablet, desktop).
  • Observe any PHP or Drupal errors that may arise due to deprecated functions or incompatibilities with Drupal 11.

Proposed resolution

  • Update the Mobile Detect module to ensure full compatibility with Drupal 11.
  • Resolve any deprecated or removed APIs that might affect the module.
  • Adjust the module to handle changes in PHP 8.3, which is now the default for Drupal 11.
  • Test all features related to device detection to ensure they work as expected after the update.

Remaining tasks

  • Review and update any deprecated or obsolete code within the Mobile Detect module.
  • Modify the module to be compatible with PHP 8.3.
  • Test the module with a variety of devices and browsers to ensure compatibility.
  • Update the module documentation to reflect any changes made.
📌 Task
Status

Active

Version

4.0

Component

Code

Created by

🇧🇪Belgium nonom Brussels

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

Merge Requests

Comments & Activities

Production build 0.71.5 2024