[6.x]: Registers `Event::listen` on every request and grows a static `Field::$entryManagers` (leaks under Octane)

Open
#665 2 comments 0 reactions 1 assignee View on GitHub

Maintainers usually reply within 1 day

Nobody has claimed this yet.

Assessment

Difficulty
3/5
Estimated time
1-2 days
Newbie friendliness
40/100
Issue type
Bug
Clarity
Mostly clear
Activity status
Active
Tech stack
php
Domain
backend

Research direction

Start in the plugin's init()/service registration where Event::listen runs per request, and find the static Field::$entryManagers declaration and every place it is appended to. Read how Craft/Octane resets state between requests, then make listener registration idempotent and clear the static array at request end. The second bullet points at the code that copies nested entries and strips <craft-entry> when there is no create-entry button. Done means repeated requests no longer accumulate listeners or managers and the field behavior matches the description.

Written by the indexing model from the issue text.

Description

bug repo:ckeditor
Description
  • Registers Event::listen on every request and grows a static Field::$entryManagers (leaks under Octane).
  • Copies referenced nested entries / strips <craft-entry> when the field has no "create entry" button. (seen)
Dominant language
PHP
Stars
47
Forks
35
Avg merge
1d 2h
Merged PRs (30d)
25

Getting set up

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from craftcms/ckeditor

All issues in craftcms/ckeditor

Similar issues

More PHP issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.