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
| Comment | File | Size | Author |
|---|---|---|---|
| #3 | taxonomy_term_media_upload_ajax_error-3358783-3.patch | 663 bytes | shreyal999 |
| Screenshot 2023-05-05 at 6.04.34 PM.png | 515.71 KB | shreyal999 |
Comments
Comment #2
shreyal999 commentedComment #3
shreyal999 commentedComment #4
shreyal999 commentedComment #5
smustgrave commentedThanks for providing a clear issue summary.
As a next step a test case will be needed to show this issue.
Comment #6
idebr commentedThis 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.