You need to be logged in to post in the forum - Log In

An active JCE Pro Subscription is required to post in the forum - Buy a Subscription

Support is currently Offline

Official support hours
Monday to Friday
09:00 - 17:00 Europe/London (BST)

Please create a new Ticket and we will get back to you as soon as we can.

#114976 Error in console

Posted in ‘Editor’
This is a public ticket

Everybody will be able to see its contents. Do not include usernames, passwords or any other sensitive information.

Latest post by render on Friday, 20 October 2023 12:13 BST

render
Hi,

I have following error in console:

The resource from “https://domain.com/index.php” was blocked due to MIME type (“text/html”) mismatch (X-Content-Type-Options: nosniff)

When I select TinyMCE editor as default editor this error is not present.

Is this serious error or I'm just paranoiac?

Thank you
Dishon

Ryan
The resource from “https://domain.com/index.php” was blocked due to MIME type (“text/html”) mismatch (X-Content-Type-Options: nosniff)


This is most likely caused by a PHP error in the processing of the language files, which should output as javascript, but because of the error are reading as HTML.

Do you have a JCE Language Pack installed? If so, please check to see you have the latest installed - https://www.joomlacontenteditor.net/downloads/languages/editor

Alternatively, if you don't have a language pack installed, have you enabled the Compress Javascript or Compress CSS options in the Editor Global Configuration? If you have and disabled them, does the console error dissapear?

Ryan Demmer

Lead Developer / CEO / CTO

Just because you're not paranoid doesn't mean everybody isn't out to get you.

render
Hi, Ryan

No, I have no language pack installed as my default language in backend is english. Also have no Compress Javascript or Compress CSS enabled. Strange.

I will investigate further this weekend on staging site and let you know. Maybe some other extension is interfering or something else.

Thank you

Ryan
Please send me a login - https://www.joomlacontenteditor.net/contact/site-login

Ryan Demmer

Lead Developer / CEO / CTO

Just because you're not paranoid doesn't mean everybody isn't out to get you.

Ryan
This appears to have something to do with your template's editor.css file. An attempt to load it results in redirect to index.php, although it can be loaded directly, eg: https://yoursite.com/templates/yootheme/css/editor.css

I am not able to reproduce this issue in a test Joomla 5 site with your "Administrator" profile.

Ryan Demmer

Lead Developer / CEO / CTO

Just because you're not paranoid doesn't mean everybody isn't out to get you.

Ryan
Sorry that should be the "template.css" file, not editor.css. You need to replace the import rule in your editor.css file with:

@import url('theme.12.css');

Ryan Demmer

Lead Developer / CEO / CTO

Just because you're not paranoid doesn't mean everybody isn't out to get you.

render
Wow. That was it. Problem solved 😃

Thank you, Ryan
Stefan