Deprecated: call_user_func_array: FlexItem::addSubmit() should not be called statically

Created on 4 August 2020, about 4 years ago
Updated 30 March 2023, over 1 year ago

After upgrading Drupal core to 8.9.1 FlexField module on adding additional field action - starts showing this error:

Deprecated: call_user_func_array() expects parameter 1 to be a valid callback, non-static method Drupal\\flexfield\\Plugin\\Field\\FieldType\\FlexItem::addSubmit() should not be called statically in web/core/lib/Drupal/Core/Form/FormSubmitter.php on line 114

Solution is make this function static. Patch is attached.

🐛 Bug report
Status

Fixed

Version

2.0

Component

Code

Created by

🇦🇲Armenia murz Yerevan, Armenia

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.71.5 2024