Problem/Motivation
Deprecated: Required parameter $node follows optional parameter $edit in /var/www/docroot/sites/all/modules/nodequeue/includes/nodequeue.actions.inc on line 79
and
Deprecated: Required parameter $node follows optional parameter $edit in /var/www/docroot/sites/all/modules/nodequeue/includes/nodequeue.actions.inc on line 211
and
Warning: Attempt to read property "relationship" on null in nodequeue_contextual_links_view_alter() (line 509 of /var/www/docroot/sites/all/modules/nodequeue/nodequeue.module).
and
Warning: Trying to access array offset on value of type null in nodequeue_contextual_links_view_alter() (line 509 of /var/www/docroot/sites/all/modules/nodequeue/nodequeue.module).
and
Warning: Undefined property: view::$display_handler in nodequeue_contextual_links_view_alter() (line 509 of /var/www/docroot/sites/all/modules/nodequeue/nodequeue.module).
Steps to reproduce
Upgrade to PHP 8
| Comment | File | Size | Author |
|---|---|---|---|
| #8 | nodequeue_php-8-regression-3279537_8.patch | 907 bytes | nick dewitte |
| #7 | nodequeue_php-8-regression-3279537_7.patch | 1 KB | Natallia |
Issue fork nodequeue-3279537
Show commands
Start within a Git clone of the project using the version control instructions.
Or, if you do not have SSH keys set up on git.drupalcode.org:
Comments
Comment #2
loopy1492 commentedComment #3
loopy1492 commentedComment #5
jenlamptonIs it safe to switch from an $edit array to a $node object in those actions? Marking as Needs Review for more testing.
Comment #6
Natallia commentedAccording to my investigation the optional parameter $edit in nodequeue.actions.inc (lines 79, 211) works the same as required parameter (tested on PHP 5.3, 7.3) so I suggest to just remove the default value.
Comment #7
Natallia commentedThe patch from #6 comment heeds to be updated - default values should be added for optional parameters
Comment #8
nick dewitte commentedThe previous patch seems to be working as intended.
The file paths don't seem to be correct, however.
Patch attached does the same thing as #7, but has corrected paths.
Comment #11
jenlamptonAll changes merged.