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

  • Create patch
  • Review and test patch
  • Merge

User interface changes

None

API changes

None

Data model changes

None

Command icon 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:

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

Nels created an issue. See original summary.

Nels’s picture

I've attempted a patch. This resolved the error for me, and I haven't seen negative side-effects yet.

Nels’s picture

Status: Active » Needs review

  • szato committed 44a0badb on 8.x-1.x authored by Nels
    Issue #3337096: Settings form Validation error, Drupal\...
szato’s picture

Status: Needs review » Fixed

Thank you, merged.

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.