No Code Attached Yet
avatar brianteeman
brianteeman
8 Feb 2022

Steps to reproduce the issue

open an article for editing (or anything that uses tinymce)

Expected result

No console errors

Actual result

two errors

Failed to load resource: the server responded with a status of 404 () en.min.js

tinymce.min.js?340e0e78b1d2f447621cc11039d0f260:9 Failed to load language: en.min from url

Additional comments

It is correct that there is no en.min.js file in tinymce

The problem comes from either #35883 or #36112 - sorry out of time to debug today.

@bembelimen this really needs to be fixed before release

avatar brianteeman brianteeman - open - 8 Feb 2022
avatar joomla-cms-bot joomla-cms-bot - change - 8 Feb 2022
Labels Added: No Code Attached Yet
avatar joomla-cms-bot joomla-cms-bot - labeled - 8 Feb 2022
avatar bembelimen bembelimen - change - 8 Feb 2022
Labels Added: Release Blocker
avatar bembelimen bembelimen - labeled - 8 Feb 2022
avatar brianteeman
brianteeman - comment - 8 Feb 2022

if ($levelParams->get('lang_mode', 1))
{
if (file_exists(JPATH_ROOT . '/media/vendor/tinymce/langs/' . $language->getTag() . (JDEBUG ? '.js' : '.min.js')))
{
$langPrefix = $language->getTag();
}
elseif (file_exists(JPATH_ROOT . '/media/vendor/tinymce/langs/' . substr($language->getTag(), 0, strpos($language->getTag(), '-')) . (JDEBUG ? '.js' : '.min.js')))
{
$langPrefix = substr($language->getTag(), 0, strpos($language->getTag(), '-'));
}
else
{
$langPrefix = 'en';
}

avatar dgrammatiko
dgrammatiko - comment - 8 Feb 2022

Change

'language' => $langPrefix . (JDEBUG ? '' : '.min'),

to

'language' => $langPrefix,
avatar brianteeman brianteeman - change - 8 Feb 2022
Status New Closed
Closed_Date 0000-00-00 00:00:00 2022-02-08 20:49:57
Closed_By brianteeman
avatar brianteeman brianteeman - close - 8 Feb 2022
avatar brianteeman
brianteeman - comment - 8 Feb 2022

Closed as we have a PR

avatar richard67 richard67 - change - 8 Feb 2022
Labels Removed: Release Blocker
avatar richard67 richard67 - unlabeled - 8 Feb 2022

Add a Comment

Login with GitHub to post a comment