• Resolved longgr

    (@longgr)


    Hello,

    on my dashboard i can’t click anything in the content area. The navigation bar on the left and top are working, but drop downs in the main area are not responding (but displayed). In the console of my browser I get the following warning:

    “The resource from “https://***/wp-admin/load-scripts.php?c=0&load%5B%5D=hoverIntent,common,admin-bar,wp-ajax-response,jquery-color,wp-lists,quicktags,jquery-query,admin-comments,jquery-ui-core,jquery-&load%5B%5D=ui-widget,jquery-ui-mouse,jquery-ui-sortable,postbox,underscore,wp-util,wp-a11y,dashboard,thickbox,plugin-install,updates,shortc&load%5B%5D=ode,media-upload,svg-painter&ver=5.2.1” was blocked due to MIME type (“text/html”) mismatch (X-Content-Type-Options: nosniff).”

    After that a bunch of error’s occur because jQuery is not defined:

    ReferenceError: jQuery is not defined – heartbeat.min.js:1:1
    ReferenceError: jQuery is not defined – wp-auth-check.min.js:1:1
    ReferenceError: jQuery is not defined – draggable.min.js:11:52
    TypeError: c is undefined – backbone.min.js:1:3987
    TypeError: a is undefined – backbone.marionette.min.js:22:350
    TypeError: right-hand side of ‘in’ should be an object, got undefined – backbone.radio.min.js:3:661
    ReferenceError: jQuery is not defined – common-modules.min.js:2:11205
    ReferenceError: jQuery is not defined – position.min.js:11:52
    TypeError: a.extend is not a function – dialog.min.js:3:206
    ReferenceError: elementorModules is not defined – common.min.js:2:1897
    ReferenceError: jQuery is not defined – admin.min.js:2:948

    The main problem is, that elementor is not loading because of that. The site itself is (afaik) working.

    What happened:
    WP auto upgrade to v5.2.1

    What’s broken:
    jQuery is not loading | load-script.php gives 404 but exists

    What I tried:
    1. deactivated all plugins
    2. reinstalled the wp core (reupgraded to 5.2.1)
    3. compared the “load-script.php” with a working wordpress installation
    4. the url from above (/load-scripts.php?…) leads to a 404 error, normal?
    5. set the DEBUG flag to “true”.

    What can I try next?

    I’m really looking forward if anyone has an idea!
    Thank you very much!

Viewing 3 replies - 1 through 3 (of 3 total)
  • Moderator Samuel Wood (Otto)

    (@otto42)

    www.ads-software.com Admin

    That shouldn’t happen. WordPress does include the nosniff header, however the load-scripts.php file expressly sets the Content-Type header to application/javascript. So, if it’s coming back as text/html, something else is interfering.

    Do you have anything in your .htaccess file or server configuration that messes with the content type headers, or sets mime types?

    Moderator Samuel Wood (Otto)

    (@otto42)

    www.ads-software.com Admin

    Also, if you’re getting a 404, then no, that is not normal. Check the permissions on the files.

    Thread Starter longgr

    (@longgr)

    Do you have anything in your .htaccess file or server configuration that messes with the content type headers, or sets mime types?

    Thats it! I made some changes such that a redirect to https and gzip compression. Somewhere in this file there was an error. This was working in < WP5.1.

    Thank you very much. I would have never looked into that file!

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘[WP5.2.1-jQuery ] Resource blocked MIME-TYPE’ is closed to new replies.