Viewing 6 replies - 1 through 6 (of 6 total)
  • Plugin Support vupdraft

    (@vupdraft)

    Hi,

    This is very much an elementor problem I am afraid. You will need to contact them

    There is a workaround for this here: https://github.com/elementor/elementor/issues/32226

    It also has a really good explanation of why this is happening.

    Thread Starter paourissi

    (@paourissi)

    But when i disable the wp-optimize minification, everything works fine. How is this an elementor issue?

    Plugin Support vupdraft

    (@vupdraft)

    The error message about the content type – This happens when you try to retrieve and incorrect or non-existent URL. In the result, the browser DOESN’T get the stylesheet, but it gets some HTML with 404 status and with the “Content-Type” header. Since the browser gets something from the server, it doesn’t tell you there is no reply, but it tells you the MIME type of the file is incorrect

    Your minified files are cached: https://snipboard.io/DgSPnr.jpg, elementor is looking for these cached minified files but cannot find them which is why your page looks messed up. Clearing the cache causes another preload, giving the correct path for these files.

    The other thing to ensure is that elementor is not also minifying your files as this will cause conflicts.

    Thread Starter paourissi

    (@paourissi)

    The strange thing is that my website runs over a year now with out any problems. So why this happened now?

    And how do i solve this? With this workaround here: https://github.com/elementor/elementor/issues/32226 ?

    Also how to ensure that elementor is not also minifying my files?

    Thread Starter paourissi

    (@paourissi)

    @vupdraft The answer from Elementor support

    Hi there,

    It seems that the browser is attempting to load a CSS file, but the server is returning content with the MIME type text/html instead of text/css.

    This usually means that the CSS file is either missing or being redirected, so the browser refuses to apply it. Possible indicators:

    • Cache plugin issue (WPO Minify / WP Optimize / LiteSpeed Cache): The cache may be corrupted. When the CSS file no longer exists in the cache, the server returns an HTML 404 page instead of the CSS file.
    Plugin Support vupdraft

    (@vupdraft)

    Thats really unhelpful of elementor , they are just rephrasing what I have already said and entirely ignoring the issue of why the files are not there.

    As a workaround, you can use the CSS you use in Elementor in the customize section of WordPress to make it load early.

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

The topic ‘Refused to apply style from errors after WordPress update to 6.8.3’ is closed to new replies.