Bug with medias (display and import)

Hello,

I noticed a recurring problem on my local installations

What issue or error are you experiencing?

I noticed this on all my new instals of local WPs. When I create a new WP, I don’t touch nothing, just go the the Media section and try the “Add New Media File” at the top, it doesn’t trigger anything.

But if I go to “Add New Media File” from the left menu, I’m able to upload a media.

However, this media is not displayed in the Media section like if it was empty (it is not)

Here are two messages I have in the Media section

Uncaught TypeError: _.pluck is not a function
Uncaught TypeError: Cannot read properties of undefined (reading 'where')

What steps can be taken to replicate the issue? Feel free to include screenshots, videos, etc

  • Create a new Wordpress website
  • Go to Media and “Add New Media File” at the top

System Details

  • Local Version: Version 9.2.0+6762

  • Operating System (OS) and OS version: Sequoia 15.0.1


Thank you in advance for your help!

I can’t reproduce this so far with Local 9.2 and macOS Sequoia, @Charly1

I’m able to upload media without error from both the Add New Media File section and the left menu.

Is this a blank site with the default theme and no plugins?

What versions of WordPress and PHP are you using?

Hey Nick, thank you for your answer

It is indeed a very fresh version of Wordpress (TwentyTwentyFive, no extension)

Wordpress: 6.7.1
PHP: 8.2.23

Thank you

Thanks for the info, @Charly1. I still can’t reproduce this, though. Media upload works smoothly for me.

Have you tried other browsers or in private browser windows to rule out browser-specific issues?

If that doesn’t help, you might try reinstalling Local.

I noticed that there are two cases

Case 1: I go normally onto the page
pluck error + no admin-ajax.php called

Case 2: from there I go the the previous page then I come back on the media page (with the browser commands), sometimes (not always), the images are here, no pluck error, admin-ajax.php is called successfully

Well, interesting, you were right, it does just affect Brave Browser in public nav, weird it wasn’t the case before

Anyway, problem is solved, thanks a lot!

1 Like

Interesting, thanks for investigating and for letting us know!

1 Like

This topic was automatically closed 36 hours after the last reply. New replies are no longer allowed.