Skip to content

[5.x]: Site becomes unresponsive when opening to edit new or disabled entry #19061

@smcguire1

Description

@smcguire1

What happened?

Description

Opening to edit either a new or disabled entry, the autosave icon spins next to the title, there is a single php process that spikes to 60% CPU, and the entire site becomes unresponsive.

We have two sites. On the newer, smaller site, the delay is only 6 seconds. But on an older site that has gone through many updates, has a lot more content, and has gone through entrification of many SuperTable fields on upgrading to Craft 5, the delay is 3 minutes and 30 seconds.

I have tried disabling all plugins and running utils/prune-revisions to reduce the max number of revisions from 50 to 20: no difference. I also noticed a lot of "Generating image transform" messages on opening some entries even though we don't use image transforms and have none defined. I assume that has to do with the upgrade to CKEditor 5.6, because that's when it started happening. But the site being unresponsive happens even on opening or creating a simple entry with no fields, just a title.

Enabled entries open fine and can autosave with no difficulty.

For disabled entries, once the edit entry page becomes responsive after the 3:30 wait, autosave works fine as you type new content. But clicking the Dicard button reverts the content and makes the page hang again.

Sometimes there is a message about "Updating search indexes", but not always.

There is a "Maximum execution time of 120 seconds exceeded" message in the phperrors.log, but the php file it mentions as timing out varies each time.

I imagine it is a problem with our data since it is only happening to one of our two sites. I'll be glad to share the data and configs upon request.

Please let me know what other information might help.

Steps to reproduce

  1. Disable an entry in the control panel section list by clicking it's checkbox and setting the status to Disabled.
  2. Click on the disabled entry

Expected behavior

It opens the editing page and the autosave icon disappears after a second or two, and the entire site responds to requests.

Actual behavior

It opens the editing page and the autosave icon spins for 3 minutes 30 seconds, and the entire site is unresponsive during that time.

Craft CMS version

5.10.5

PHP version

8.4.22

Operating system and version

Debian 13.5

Database type and version

MariaDB 11.8.6

Image driver and version

Imagick 3.8.1 (ImageMagick 7.1.1-43)

Installed plugins and versions

CKEditor 5.6.1
Publisher X 5.0.3
Retour 5.0.14
SEOmatic 5.1.21

but becomes unresponsive even with all of these disabled.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions