Support

Account

Home Forums Bug Reports wp.media is not defined when menu item has an image field

Unread

wp.media is not defined when menu item has an image field

  • Hi,

    I found a very rare bug:

    We created a new field configuration which only contains an image field.
    This config shows up on nav menu items when the menu position is equal “xyz”.

    After that I created a new menu and linked it to the position “xyz”.

    Now when I add a new menu item and want to fill the image field the following error comes up:
    “wp.media is not defined”.

    But there is a work around:

    • Create a new menu (without set the position!)
    • Add a menu item
    • link the menu to the position “xyz”
    • Now you can choose an image without errors

    If there is at least one menu item it seems to work.

Viewing 1 post (of 1 total)

You must be logged in to reply to this topic.