• Hello, I am having some issues.

    I need the media-editor.min.js script on the admin for something I am developing, but for some reason the script is just not there. I have another WP installation where the script is present on all screens no problem. But on the one I need it its not there and is causing JS errors. I already deactivated all the plugins, I switched to the default theme. The script is still not there, I deleted the cache, I used incognito mode, but no luck.

    I have the 5.5.3 WP version (Both on the installation that works and the one that doesn’t)

    Why would the media-editor.min.js not be included on an installation with no plugins and default theme?

    The ONLY thing that occurs to me is that at some point I installed some cache plugins to test some things out, I already since deleted these plugins and all their files, but would that be the issue? I would really appreciate the help.

    Worst case scenario, if I need to automatically enqueue the script then its fine, but i’d like to know why.

    Thank you in advance.

Viewing 3 replies - 1 through 3 (of 3 total)
  • Moderator t-p

    (@t-p)

    When I search mu wp-includes folder, I find media-editor.min.js there.

    Check if its there in wp-includes.

    Thread Starter mauricionieto1994

    (@mauricionieto1994)

    @t-p Thank you for the reply.

    The file is there, but it is not getting enqueued on default. I have to manually enqueue it or it doesnt work.

    Moderator bcworkz

    (@bcworkz)

    On my site, it is not loaded on all screens, only post and page edit screens. Could it be there is a theme or plugin on the other site (where it’s loaded on all screens) that’s causing that behavior?

    In any case, if it’s not loaded even on your post edit screen, then something is fundamentally wrong. You may want to try re-installing WP from the updates page, or maybe even a manual “update” (but to the same version).

    If you need the script loaded on any other admin screen, such as one for your plugin, you should have your plugin explicitly enqueue it for only that screen.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Missing media-editor.min.js is causing troubles’ is closed to new replies.