Critical stop after saving an edit using the CKEditor toolbar button

Created on 27 April 2024, 7 months ago
Updated 12 May 2024, 7 months ago

Problem/Motivation

System...

Drupal 10.2.5
Apache/2.4.33 (Win64) OpenSSL/1.0.2u mod_fcgid/2.3.9 PHP/8.2.2
PHP 8.1.15
MySQL 5.7.24
PHP Caching module: OpCache

Scenario

How to reproduce...

  1. Clean Drupal install with default theme etc.
  2. Install THIS module
  3. Add the Highlight JSbutton provided by this module.
  4. Edit the code snippet using the popup dialoge.
  5. Save the node.

The result is...

TypeError: Drupal\Core\Render\BubbleableMetadata::merge(): Argument #1 ($other) must be of type Drupal\Core\Cache\CacheableMetadata, string given, called in ...\core\modules\filter\src\Element\ProcessedText.php on line 119 in Drupal\Core\Render\BubbleableMetadata->merge() (line 26 of C:\Users\nick\Sites\drupal10\core\lib\Drupal\Core\Render\BubbleableMetadata.php).

I suppose this could, at a stretch be connected with the fact that I am developing on Windows and sometime Twig cache niggles crop up but I doubt it.

WBTW, this works perfectly in conjunction with this module.

Thanks

πŸ› Bug report
Status

Fixed

Version

1.1

Component

Code

Created by

πŸ‡¬πŸ‡§United Kingdom SirClickALot Somerset

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

Comments & Activities

Production build 0.71.5 2024