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.
| Comment | File | Size | Author |
|---|---|---|---|
| #3 | 3192299-deprecated-constants-was-removed-in-drupal-9.patch | 2.13 KB | s3b0un3t |
Comments
Comment #2
s3b0un3tComment #3
s3b0un3tSuggested patch
Comment #4
avpadernoComment #6
doxigo commentedThank you both, Patched and credited, will have a new release available