ubb.js 404 error

Created on 9 December 2024, 4 months ago

Problem/Motivation

After module updated to version 1.3.4 i get a 404 (Not Found) error for /ckeditor5-premium-features/drupal-version/full_html/.

It is thrown by the r.send() line of the ubb.js file.

Steps to reproduce

- Drupal version 10.3.10
- CKEditor 5 Premium Features v 1.3.4
- Add Full screen mode to Full Html text formats toolbar
- Open node edit form
- Error in console

🐛 Bug report
Status

Active

Version

1.3

Component

Code

Created by

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

  • Issue created by @mydot
  • 🇵🇱Poland salmonek

    Hi @mydot
    /ckeditor5-premium-features/drupal-version is a new entpoint added in 1.3.4, so first thing that comes to my mind is that caches weren't rebuilt after update.

    BTW is full screen only plugin you're using or do you have something premium added to full html?

  • caches were rebuilt. I use templates plugin too. so nothing premium.
    i get the same error in a drupal 11 based site.

  • 🇵🇱Poland salmonek

    To be honest I couldn't reproduce the 404 itself. The endpoint is defined in the same module as Ubb plugin. However your issue made me to realize that with your configuration (Full Screen + Templates form Plugin Pack) that plugin is not required and should be disabled in editor.
    I'm attaching a patch which updates the function to determine whether any of premium plugins is enabled (Templates plugin is considered as premium, however for Drupal it's free), so it won't return false positive in case Plugin Pack's Templates are enabled. Additionally Ubb is being disabled if no premium plugins are loaded or CKEditor 5 version is below v44 (where it is completely useless).

    The last thing to mention is that if you have "CKEditor 5 Full-screen Mode" and "CKEditor 5 Templates" modules enabled you can safely disable " CKEditor 5 Premium Features"

  • I didn’t realize that the "Removes the collaboration" text format setting is part of this module. I had it enabled, which prevented me from uninstalling the module. At the end, I disabled this functionality and uninstalled the module due to its lack of use, as you mentioned as well.

  • 🇵🇱Poland salmonek

    Vaersion 1.3.5 has been released with Ubb plugin being disabled for text formats without premium.

  • Automatically closed - issue fixed for 2 weeks with no activity.

Production build 0.71.5 2024