Problem/Motivation

On "Update manager" page, several PHP warnings are thrown because deprecated constants have been removed from Drupal 9.

Steps to reproduce

On a Drupal 9 website with the Update manager module enabled, visit /admin/reports/updates. The page will show the following PHP warning.

Warning: constant(): Couldn't find constant UPDATE_NOT_SECURE in twig_constant() (line 1265 of /var/www/html/vendor/twig/twig/src/Extension/CoreExtension.php).

Proposed resolution

Change the update-project-status.html.twig file to use the constants listed on #3015810: Properly deprecate UPDATE_* constants.

Comments

S3b0uN3t created an issue. See original summary.

s3b0un3t’s picture

Issue summary: View changes
s3b0un3t’s picture

Status: Active » Needs review
StatusFileSize
new2.13 KB

Suggested patch

avpaderno’s picture

Title: Deprecated constants was removed in Drupal 9 » Code is using constants that have been deprecated and removed in Drupal 9
Version: 8.x-1.16 » 8.x-1.x-dev
Issue summary: View changes
Issue tags: -PHP warnings (duplicate tag)

  • doxigo committed 796a04c on 8.x-1.x authored by S3b0uN3t
    Issue #3192299 by S3b0uN3t, kiamlaluno: Code is using constants that...
doxigo’s picture

Status: Needs review » Fixed

Thank you both, Patched and credited, will have a new release available

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.