Settings form Validation error, Drupal\filefield_sources_jsonapi\Plugin\FilefieldSource\RemoteJSONAPI::jsoanApiSourceValidateRequired() cannot be called statically

Created on 27 January 2023, over 1 year ago
Updated 13 May 2023, about 1 year ago

Problem/Motivation

Upon saving the form display settings, the following error is generated:

TypeError: call_user_func_array(): Argument #1 ($callback) must be a valid callback, non-static method Drupal\filefield_sources_jsonapi\Plugin\FilefieldSource\RemoteJSONAPI::jsoanApiSourceValidateRequired() cannot be called statically in call_user_func_array() (line 282 of /src/public/core/lib/Drupal/Core/Form/FormValidator.php)

Steps to reproduce

  1. Go to the "Manage form display" page for a Content Type that has a file field. (/admin/structure/types/manage//form-display)
  2. Expand the settings for the File field
  3. Enable "JSON API remote URL"
  4. Click Update

Proposed resolution

Declare method static. Address misspelling.

Remaining tasks

  • Review and test patch
  • Merge

User interface changes

None

API changes

None

Data model changes

None

πŸ› Bug report
Status

Fixed

Component

Code

Created by

πŸ‡ΊπŸ‡ΈUnited States Nels

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

Comments & Activities

Production build 0.69.0 2024