Problem/Motivation

After Upgrading to 9.5.9, unable to upload a media in the taxonomy term page.

Steps to reproduce

1. Setup the project using 9.5.9
2. Add media field to upload image to taxonomy.
3. Upload any media.

Proposed resolution

Fix Parse error and deprecated trim() function and passing null to parameter #1 in trim() at line 152 on TermForm.php.
Passing Null parameter : Type-cast the type to string before passing to trim() function on line 152.

Remaining tasks

NA

User interface changes

NA

API changes

NA

Data model changes

NA

Release notes snippet

Comments

shreyal999 created an issue. See original summary.

shreyal999’s picture

Assigned: Unassigned » shreyal999
Status: Needs work » Active
shreyal999’s picture

Component: ajax system » taxonomy.module
Status: Active » Needs review
StatusFileSize
new663 bytes
shreyal999’s picture

Assigned: shreyal999 » Unassigned
smustgrave’s picture

Status: Needs review » Needs work
Issue tags: +Needs Review Queue Initiative, +Needs tests

Thanks for providing a clear issue summary.

As a next step a test case will be needed to show this issue.

idebr’s picture

Status: Needs work » Closed (duplicate)
Related issues: +#3277238: Fix \Drupal\taxonomy\Entity\Term::getName() to conform to the interface

This issue was reported earlier in #3277238: Fix \Drupal\taxonomy\Entity\Term::getName() to conform to the interface. I'll close this issue as a duplicate, so we can focus our efforts in the related issue.