• Getting the following error from this plugin on all the admin pages. This error clears when this plugin is disabled.

    `Uncaught TypeError: Cannot read property ‘id’ of undefined
    at Object.<anonymous> (media-audiovideo.min.js:1)
    at b (media-audiovideo.min.js:1)
    at media-audiovideo.min.js:1
    at media-audiovideo.min.js:1
    (anonymous) @ media-audiovideo.min.js:1
    b @ media-audiovideo.min.js:1
    (anonymous) @ media-audiovideo.min.js:1
    (anonymous) @ media-audiovideo.min.js:1

Viewing 5 replies - 1 through 5 (of 5 total)
  • Did you find a solution for this? I’m running into the exact same issue and it’s causing issues with my custom post type.

    Thread Starter bofslime

    (@bofslime)

    Other than disabling the plugin, no. This plugin needs to be patched. I was hoping to get a timeline. So the only alternative is moving to another solution, but that’s not always easy.

    Plugin Author DesignsAndCode

    (@designsandcode)

    Hi there, I believe we have a fix, its currently in testing.

    If you want to try the beta check the following link:

    https://www.designsandcode.com/wordpress-plugins/forget-about-shortcode-buttons-plugin/#beta

    Thanks

    Hi there the problem appears because no media library are enqueued, this worked for me.

    add_action(‘admin_enqueue_scripts’, function()
    {
    wp_enqueue_media();
    });

    Plugin Author DesignsAndCode

    (@designsandcode)

    Hi @yunieski

    You’re absolutely right, this was causing an issue on admin pages that did not load the media scripts.

    What I did in this update, was conditionally load our JS, not to check for the media, but to check if tinyMCE views are being loaded (which in turn would mean the other libraries would have to be loaded.

    Did the beta work for you, or are you saying you still need to apply your fix?

    Thanks

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Error on all wp-admin pages’ is closed to new replies.