Skip to content

ACF image field crashes when selecting an image in WordPress 7.0 #1003

@Mrlunsuper

Description

@Mrlunsuper

Describe the bug
When clicking the image picker button, it throws this error on the console:

Uncaught TypeError: Cannot read properties of undefined (reading 'all')
    at n.customizeFilters (acf-input.min.js?ver=6.7.1:871:49)
    at h.Collection.<anonymous> (acf-input.min.js?ver=6.7.1:863:60)
    at p (backbone.min.js?ver=1.6.1:2:3644)
    at f (backbone.min.js?ver=1.6.1:2:3497)
    at a (backbone.min.js?ver=1.6.1:2:692)
    at e.trigger (backbone.min.js?ver=1.6.1:2:3380)
    at StateMachine.<computed> [as trigger] (media-views.js?ver=7.0-beta3:6951:25)
    at Region.trigger (media-views.js?ver=7.0-beta3:10408:21)
    at Region.mode (media-views.js?ver=7.0-beta3:10310:8)
    at Region.render (media-views.js?ver=7.0-beta3:10328:16)

To Reproduce
Steps to reproduce the behavior:

  1. Install ACF 6.7.1 on WordPress 7.0 beta 3
  2. Create a field group with an Image field assigned to post_type = product or post
  3. Open the product edit page and click the Add Image button
  4. See the error thrown immediately, and you cannot select the image

Expected behavior

  • The media picker should be shown
  • Able to upload or select an image

Screenshots or Video
X

Code

acf-export-2026-03-10.json

Version Information:

  • WordPress Version 7.0 beta 3
  • PHP Version 8.4.1
  • ACF Version ACF Free 6.7.1
  • Browser [Brave]

Additional context
X

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions