Add text part to log message of missing text format

Created on 26 March 2023, over 1 year ago
Updated 11 May 2024, 5 months ago

Problem/Motivation

It is very difficult to search for missing text formats.

Proposed resolution

Add the text where the format is missing.

In check_markup() replace watchdog('filter', 'Missing text format: %format.', array('%format' => $format_id, WATCHDOG_ALERT); with watchdog('filter', 'Missing text format: %format in %text.', array('%format' => $format_id, '%text' => $text), WATCHDOG_ALERT);.

This improves root cause for missing text formats.

Feature request
Status

Active

Version

7.0 ⚰️

Component
Filter 

Last updated about 12 hours ago

No maintainer
Created by

🇳🇱Netherlands edvanleeuwen Waalwijk

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

Comments & Activities

  • Issue created by @edvanleeuwen
  • 🇮🇹Italy apaderno Brescia, 🇮🇹

    Knowing the text passed to check_markup() does not help to know why the code calling it is using a format that does not exist, nor why that format does not exist. It could help to understand which line caused the error, if the text is a literal string.
    What would really help is a back trace.

  • 🇮🇹Italy apaderno Brescia, 🇮🇹
Production build 0.71.5 2024