Make WordPress Core

Changes between Initial Version and Version 1 of Ticket #62634


Ignore:
Timestamp:
04/12/2025 09:54:45 PM (8 months ago)
Author:
sabernhardt
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #62634

    • Property Keywords changes-requested removed
    • Property Focuses coding-standards removed
    • Property Component changed from Quick/Bulk Edit to Media
    • Property Summary changed from Bug Report: Error in mediaelement-and-player.js to Error in mediaelement-and-player.js
  • Ticket #62634 – Description

    initial v1  
    11**Summary**
    22When using bulk select in the WordPress Media Library, selecting different types of media files (e.g., switching from a cloud-hosted video to an image) causes a console error:
    3 Uncaught TypeError: Cannot read properties of null (reading 'length').
    4 This issue is traced to the file mediaelement-and-player.js, line 4480.
     3`Uncaught TypeError: Cannot read properties of null (reading 'length').`
     4This issue is traced to the file `mediaelement-and-player.js`, line 4480.
    55
    66**Steps to Reproduce**
     
    1313**Observed Behavior**
    1414The console logs the error:
    15 > Uncaught TypeError: Cannot read properties of null (reading 'length') 
    16 at mediaelement-and-player.js:4480
     15> `Uncaught TypeError: Cannot read properties of null (reading 'length') at mediaelement-and-player.js:4480`
    1716
    1817**Expected Behavior**
     
    3029
    3130**Additional Notes**
    32 Issue is likely related to how mediaelement-and-player.js handles media metadata for files hosted on the cloud vs. locally.
    33 Potential fix might involve adding a null check or handling edge cases for cloud-hosted media.
    34 Would you like assistance debugging this further or crafting a patch for mediaelement-and-player.js?
     31Issue is likely related to how `mediaelement-and-player.js` handles media metadata for files hosted on the cloud vs. locally.
     32Potential fix might involve adding a `null` check or handling edge cases for cloud-hosted media.
     33Would you like assistance debugging this further or crafting a patch for `mediaelement-and-player.js`?