AJAX Error on Upload Media in Taxonomy term after upgrading to 9.5.9

Created on 8 May 2023, over 1 year ago

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

🐛 Bug report
Status

Closed: duplicate

Version

9.5

Component
Taxonomy 

Last updated 1 day ago

  • Maintained by
  • 🇺🇸United States @xjm
  • 🇬🇧United Kingdom @catch
Created by

🇮🇳India shreyal999

Live updates comments and jobs are added and updated live.
  • Needs tests

    The change is currently missing an automated test that fails when run with the original code, and succeeds when the bug has been fixed.

Sign in to follow issues

Comments & Activities

Production build 0.71.5 2024