Forum

Thread tagged as: Problem, Addons, Redactor

Redactor editor not working

Hi, I am trying to install Redactor editor on https://inakidomingo.lapatineta.com but it gives me this errors on Chrome:

Refused to execute script from 'https://inakidomingo.lapatineta.com/perch/addons/plugins/editors/redactor/redactor/redactor.min.js' because its MIME type ('text/html') is not executable, and strict MIME type checking is enabled.
inakidomingo.lapatineta.com/:106 Uncaught TypeError: self.redactor is not a function

Otherwise Markitup is not showing when selected...

Perch: 2.8.27, PHP: 5.6.19, MySQL: mysqlnd 5.0.11-dev - 20120503 - $Id: 76b08b24596e12d4553bd41fc93cccd5bac2fe7a $, with PDO
Server OS: Linux, cgi-fcgi
Installed apps: content (2.8.27), assets (2.8.27), categories (2.8.27), perch_blog (5.0)
App runtimes: <?php $apps_list = array( 'content', 'categories', 'perch_blog', );
PERCH_LOGINPATH: /perch
PERCH_PATH: /home/raulserrano/inakidomingo.lapatineta.com/perch
PERCH_CORE: /home/raulserrano/inakidomingo.lapatineta.com/perch/core
PERCH_RESFILEPATH: /home/raulserrano/inakidomingo.lapatineta.com/perch/resources
Image manipulation: GD Imagick
PHP limits: Max upload 64M, Max POST 65M, Memory: 90M, Total max file upload: 64M
F1: 2edba60ed1f613d6dd804feb202456a2
Resource folder writeable: Yes
SCRIPT_NAME: /perch/core/settings/diagnostics/index.php
REQUEST_URI: /perch/core/settings/diagnostics/
DOCUMENT_ROOT: /home/raulserrano/inakidomingo.lapatineta.com
HTTP_HOST: inakidomingo.lapatineta.com
Raul Serrano

Raul Serrano 0 points

  • 5 years ago
Drew McLellan

Drew McLellan 2638 points
Perch Support

You need to make sure your server is configured to send .js files with the correct mime type.

At the moment you're sending:

Content-Type: text/html; charset=UTF-8