Title: Console errors when editing custom posts
Last modified: March 27, 2023

---

# Console errors when editing custom posts

 *  Resolved [dngood](https://wordpress.org/support/users/dngood/)
 * (@dngood)
 * [3 years ago](https://wordpress.org/support/topic/console-errors-when-editing-custom-posts/)
 * Hi. With AI Engine v1.3.82 installed, I am seeing console errors when trying 
   to edit a custom post:
 *     ```wp-block-code
       media-audiovideo.min.js?ver=25911de10f6ed4e290da3fb6dd82f0fe:2 Uncaught TypeError: Cannot read properties of undefined (reading 'id')
           at media-audiovideo.min.js?ver=25911de10f6ed4e290da3fb6dd82f0fe:2:10595
           at media-audiovideo.min.js?ver=25911de10f6ed4e290da3fb6dd82f0fe:2:12038
       the-paste.js:6 Uncaught TypeError: Cannot read properties of undefined (reading 'prototype')
           at 5 (the-paste.js:6:24)
           at s (_prelude.js:1:1)
           at _prelude.js:1:1
           at 2.media-view.js (index.js:4:1)
           at s (_prelude.js:1:1)
           at i (_prelude.js:1:1)
           at _prelude.js:1:1
       ```
   
 * And when I click the button to add media, nothing happens in the UI, but I get
   this in the console:
 *     ```wp-block-code
       media-views.min.js?ver=25911de10f6ed4e290da3fb6dd82f0fe:2 Uncaught TypeError: Cannot read properties of undefined (reading 'audio')
           at n.initialize (media-views.min.js?ver=25911de10f6ed4e290da3fb6dd82f0fe:2:62952)
           at h.View (backbone.min.js?ver=1.4.1:2:14648)
           at n.constructor (wp-backbone.min.js?ver=25911de10f6ed4e290da3fb6dd82f0fe:2:2602)
           at n.constructor (media-views.min.js?ver=25911de10f6ed4e290da3fb6dd82f0fe:2:106836)
           at n [as constructor] (backbone.min.js?ver=1.4.1:2:23485)
           at n [as constructor] (backbone.min.js?ver=1.4.1:2:23485)
           at n [as constructor] (backbone.min.js?ver=1.4.1:2:23485)
           at new n (backbone.min.js?ver=1.4.1:2:23485)
           at wp.media (media-models.min.js?ver=25911de10f6ed4e290da3fb6dd82f0fe:2:11946)
           at Object.add (media-editor.min.js?ver=25911de10f6ed4e290da3fb6dd82f0fe:2:7904)
       initialize @ media-views.min.js?ver=25911de10f6ed4e290da3fb6dd82f0fe:2
       h.View @ backbone.min.js?ver=1.4.1:2
       constructor @ wp-backbone.min.js?ver=25911de10f6ed4e290da3fb6dd82f0fe:2
       constructor @ media-views.min.js?ver=25911de10f6ed4e290da3fb6dd82f0fe:2
       n @ backbone.min.js?ver=1.4.1:2
       n @ backbone.min.js?ver=1.4.1:2
       n @ backbone.min.js?ver=1.4.1:2
       n @ backbone.min.js?ver=1.4.1:2
       wp.media @ media-models.min.js?ver=25911de10f6ed4e290da3fb6dd82f0fe:2
       add @ media-editor.min.js?ver=25911de10f6ed4e290da3fb6dd82f0fe:2
       open @ media-editor.min.js?ver=25911de10f6ed4e290da3fb6dd82f0fe:2
       Jn @ underscore.min.js?ver=1.13.4:2
       (anonymous) @ underscore.min.js?ver=1.13.4:2
       (anonymous) @ underscore.min.js?ver=1.13.4:2
       (anonymous) @ media-editor.min.js?ver=25911de10f6ed4e290da3fb6dd82f0fe:2
       dispatch @ load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,regenerator-runtime,wp-polyfill,wp-hooks&ver=25911de10f6ed4e290da3fb6dd82f0fe:2
       y.handle @ load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,regenerator-runtime,wp-polyfill,wp-hooks&ver=25911de10f6ed4e290da3fb6dd82f0fe:2
       ```
   
 * With AI-Engine disabled, these errors go away.
 * Any help would be appreciated.
 * David.

Viewing 2 replies - 1 through 2 (of 2 total)

 *  Plugin Author [Jordy Meow](https://wordpress.org/support/users/tigroumeow/)
 * (@tigroumeow)
 * [3 years ago](https://wordpress.org/support/topic/console-errors-when-editing-custom-posts/#post-16608329)
 * Hi [@dngood](https://wordpress.org/support/users/dngood/),
 * Where is this _media-audiovideo.min.js_ coming from? Is this coming from a specific
   plugin you think?
 * If you can get the same of it for me, I’ll try to fix the compatibility issue.
 *  Thread Starter [dngood](https://wordpress.org/support/users/dngood/)
 * (@dngood)
 * [3 years ago](https://wordpress.org/support/topic/console-errors-when-editing-custom-posts/#post-16610078)
 * Thanks [@tigroumeow](https://wordpress.org/support/users/tigroumeow/) , I’ve 
   been through and disabled/tested/re-enabled plugins, and all looks good. Disabling
   the “disable gutenburg” plugin removes the errors (but then again is loading 
   a different edit interface, so perhaps isn’t surprising).
 * The only two I am unable to test on the (live) site are “Heroic Knowledge Base”
   and “WPML Multilingual CMS”. From these two, I perhaps suspect the Heroic plugin(
   the site theme is the “KnowAll” theme).
 * Does this help at all?

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Console errors when editing custom posts’ is closed to new replies.

 * ![](https://ps.w.org/ai-engine/assets/icon-256x256.png?rev=3431928)
 * [AI Engine - The Chatbot, AI Framework & MCP for WordPress](https://wordpress.org/plugins/ai-engine/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/ai-engine/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/ai-engine/)
 * [Active Topics](https://wordpress.org/support/plugin/ai-engine/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/ai-engine/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/ai-engine/reviews/)

 * 2 replies
 * 2 participants
 * Last reply from: [dngood](https://wordpress.org/support/users/dngood/)
 * Last activity: [3 years ago](https://wordpress.org/support/topic/console-errors-when-editing-custom-posts/#post-16610078)
 * Status: resolved