Broken configuration form after installation with PHP 8.1

Created on 21 November 2023, about 1 year ago

Problem/Motivation

When you install the latest stable versions of the Drupal 7 features, strongarm modules and ctools as a dependency in the latest Drupal 7 version you find the strongarm module's configuration page is broken. Broken strongarm configuration page

There is an error reported in dblog to be at line 6723 of the core /includes/common.inc file.

Steps to reproduce

Install the features, the strongarm and the ctools modules into a git cloned Drupal 7 site, checked out at branch 7.x or download the latest Drupal 7 version (currently 7.98). Visit the strongarm module's configuration page at /admin/config/development/strongarm. The page is broken. Visit /admin/reports/dblog and you will find a typeerror error. Recent log messages

Error message details

This was tested using features 7.x-2.15, strongarm 7.x-2.0 and chaos tools 7.x-1.21.

Proposed resolution

Fix the error at line 6723 of the core common.inc file. Test the fix: after installing the required modules, create a test feature and select some variables from the 'strongarm' category. Then generate the test feature module and then enable it using e.g. 'drush pm-enable [the-module's-name]'.

Remaining tasks

Test the fix against the latest Drupal 7 version using PHP 8.1 and then re-test with PHP 7.4. Strongarm configuration page displaying correctly

🐛 Bug report
Status

Active

Version

2.0

Component

Code

Created by

🇬🇧United Kingdom oily Greater London

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

Comments & Activities

Production build 0.71.5 2024