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.
Problem/Motivation
Error logged on loading /admin/content page after upgrade to PHP 8.1.0:
Deprecated function: Automatic conversion of false to array is deprecated in view_unpublished_user_perms() (line 225 of /xxx/xxx/public_html/sites/all/modules/view_unpublished/view_unpublished.module).
Steps to reproduce
PHP 8.1.0
Drupal core 7.92
view_unpublished 7.x-1.2
Proposed resolution
Declare $perms variable as an array.
Remaining tasks
Patch forthcoming when I can get an issue number.
User interface changes
None
API changes
None
Data model changes
None
Comment | File | Size | Author |
---|---|---|---|
#2 | view_unpublished_PHP81error-3316406-2.patch | 646 bytes | rclemings |
Comments
Comment #2
rclemings CreditAttribution: rclemings commentedComment #4
tobiasbThx.
Comment #5
tobiasbComment #6
tobiasb