Created on 7 February 2023, almost 2 years ago
Updated 15 February 2023, almost 2 years ago

Problem/Motivation

When using PHP8.0 there are error messages that cause the reports to fail to generate.

Steps to reproduce

Using a local installation I have setup the site with ddev
ddev config --php-version=7.4
Visit: /admin/reports/upgrade-audit
Click to Generate the Audit report
Report is generated as expected.

ddev config --php-version=8.0
ddev restart

Visit: /admin/reports/upgrade-audit
Click to Generate the Audit report
View the error messages that are generated

Error: Undefined constant "smr_summary" in eval() (line 1 of /var/www/html/vendor/drush/drush/commands/core/core.drush.inc(1178) : eval()'d code).
Error: Undefined constant "smr_basic_information" in eval() (line 1 of /var/www/html/vendor/drush/drush/commands/core/core.drush.inc(1178) : eval()'d code).
Error: Undefined constant "smr_content" in eval() (line 1 of /var/www/html/vendor/drush/drush/commands/core/core.drush.inc(1178) : eval()'d code).
Error: Undefined constant "smr_modules" in eval() (line 1 of /var/www/html/vendor/drush/drush/commands/core/core.drush.inc(1178) : eval()'d code).
Error: Undefined constant "smr_theme" in eval() (line 1 of /var/www/html/vendor/drush/drush/commands/core/core.drush.inc(1178) : eval()'d code).
Error: Undefined constant "smr_users" in eval() (line 1 of /var/www/html/vendor/drush/drush/commands/core/core.drush.inc(1178) : eval()'d code).
Error: Undefined constant "smr_crons" in eval() (line 1 of /var/www/html/vendor/drush/drush/commands/core/core.drush.inc(1178) : eval()'d code).

Proposed resolution

Fix the code to allow the reports to generate as expected

Remaining tasks

Code changes
Reviewing
Merging

User interface changes

None

API changes

None

Data model changes

None

πŸ› Bug report
Status

RTBC

Version

2.1

Component

Code

Created by

πŸ‡¬πŸ‡§United Kingdom the_g_bomb

Live updates comments and jobs are added and updated live.
  • PHP 8.0

    The issue particularly affects sites running on PHP version 8.0.0 or later.

  • PHP 8.1

    The issue particularly affects sites running on PHP version 8.1.0 or later.

Sign in to follow issues

Comments & Activities

Production build 0.71.5 2024