Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
After switching to PHP8 appeared notice "Deprecated: Required parameter $node follows optional parameter $account in /workbench_moderation.module on line 1657"
Comment | File | Size | Author |
---|---|---|---|
#3 | workbench_moderation-3259574-php-8.0-compatibility.patch | 600 bytes | Pavel_SPN |
|
Comments
Comment #2
Pavel_SPN CreditAttribution: Pavel_SPN at EPAM Systems commentedI propose just remove "= NULL" for the $account because below in the code there is a check for this variable:
Comment #3
Pavel_SPN CreditAttribution: Pavel_SPN at EPAM Systems commentedComment #4
Pavel_SPN CreditAttribution: Pavel_SPN at EPAM Systems commentedComment #5
poker10 CreditAttribution: poker10 at ActivIT s.r.o. commentedI think the patch looks good, thanks!
Comment #6
poker10 CreditAttribution: poker10 at ActivIT s.r.o. commentedComment #7
Alina Basarabeanu CreditAttribution: Alina Basarabeanu at Cyber-Duck commentedPatch #3 works on Drupal core 7.91, PHP 8.0.21 and Workbench Moderation 7.x-3.0 version
Is there any chance to get merged into dev or a new stable release for Drupal 7?
Comment #8
peezy CreditAttribution: peezy as a volunteer and at Acquia commentedI can confirm that #3 is working on PHP 8.0 and Drupal 7.98 as well.
Comment #9
anrikun CreditAttribution: anrikun commented+1 for patch #3