Text format with system name "php_code" is deleted when you view admin/modules/uninstall

Created on 26 November 2018, over 5 years ago
Updated 17 April 2024, 2 months ago

Problem/Motivation

If a text format with system name php_code exists it will be deleted on random module uninstall.

Repro plan:

  1. Install PHP module
  2. Create text format with system name php_code, with PHP evaluator enabled.
  3. Create text format with system name php_code_test, with PHP evaluator enabled.
  4. No need to assign text format to content/block.
  5. Install sitemap module or any other random one as you noted. Text format is not deleted.
  6. Uninstall sitemap module. Text format with system name "php_code" has been deleted.
  7. Text format with system name "php_code_test" has NOT deleted.

This likely means that if the text format system name and the filter name system name is the same the text format is deleted.

Proposed resolution

Fix bug

Remaining tasks

Write fix

User interface changes

None

API changes

Not clear. May be an API bug.

Data model changes

None.

Release notes snippet

None.

Original comment:

hi,
we have install php module in my durupal 8 site, and added in "Text formats and editors" ,
but i am install/ uninstall everything module and other
i found php editors is remove and some error show in error log like "Missing text format: php_code."

please look into the matter.

thanks
tarun

🐛 Bug report
Status

Fixed

Version

1.0

Component

Code

Created by

🇮🇳India tarunyaduvanshi

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

Merge Requests

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.69.0 2024