You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In trying to debug an issue, I ran utils/prune-orphaned-entries in a local development environment with a copy of the production database. To my surprise, it deleted all entries in some sections. Only sections where the propagation is set to the Save entries to all sites enabled for this section were left untouched. All sections that were set to manual propagation (Let each entry choose…) or no propagation had all entries in all sites deleted.
Not sure how to reproduce this or if it's an issue with my database, but this should never happen.
The issue I'm trying to debug is related to #14348 and #14347. We're still seeing remnants of previous relations sticking around, querying for relations returns elements that were previously related, but were removed from the field. I can't reproduce this fully yet, but something is still not right there. Not sure if it's a database issue that might also cause this problem.
Craft CMS version
5.2.8
PHP version
8.3
Operating system and version
No response
Database type and version
MySQL 8
Image driver and version
No response
Installed plugins and versions
The text was updated successfully, but these errors were encountered:
Yikes, thanks for reporting that! That command was added in 4.7 as utils/prune-orphaned-matrix-blocks (#14154), and I guess I didn’t think to update the element query to exclude top-level entries when adapting it for nested entries in Craft 5.
What happened?
Description
In trying to debug an issue, I ran
utils/prune-orphaned-entries
in a local development environment with a copy of the production database. To my surprise, it deleted all entries in some sections. Only sections where the propagation is set to the Save entries to all sites enabled for this section were left untouched. All sections that were set to manual propagation (Let each entry choose…) or no propagation had all entries in all sites deleted.Not sure how to reproduce this or if it's an issue with my database, but this should never happen.
The issue I'm trying to debug is related to #14348 and #14347. We're still seeing remnants of previous relations sticking around, querying for relations returns elements that were previously related, but were removed from the field. I can't reproduce this fully yet, but something is still not right there. Not sure if it's a database issue that might also cause this problem.
Craft CMS version
5.2.8
PHP version
8.3
Operating system and version
No response
Database type and version
MySQL 8
Image driver and version
No response
Installed plugins and versions
The text was updated successfully, but these errors were encountered: