Needs work
Project:
Save Draft
Version:
7.x-1.4
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
25 Nov 2023 at 13:51 UTC
Updated:
27 Nov 2023 at 11:29 UTC
Jump to comment: Most recent
The following deprecation is observed when creating, editing or even just visiting the Edit tab of a piece of content when running PHP 8.1:
Deprecated function: Automatic conversion of false to array is deprecated in form_builder() (line 1908 of [mysite]/includes/form.inc).
Visit the Edit tab of a content node;
Check the log.
The source of this deprecation has been traced to line 32 of save_draft.module:
$form['options']['status'] = false;
Changing this to:
$form['options']['status'] = array();
fixed this for me.
Create a patch, test and commit. (Creating a patch is not something I know how to do I'm afraid.)
None
None
None
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