Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Tidy Library: Unexpected error when using Tidy Library option #3431

Open
ifarzana opened this issue Jun 5, 2024 · 0 comments
Open

Tidy Library: Unexpected error when using Tidy Library option #3431

ifarzana opened this issue Jun 5, 2024 · 0 comments
Labels
Milestone

Comments

@ifarzana
Copy link

ifarzana commented Jun 5, 2024

CMS Version: 2.3.17 and 3.0.0

Issue: The Tidy Library function is attempting to remove media that is still being referenced by a saved report, which is not currently in use.

Steps:

  1. Create a Report Schedule and Run task to generate a saved report
  2. From the Report Schedule grid click on Reset to Previous run (which will make the saved report as unused)
  3. Go to the Settings page
  4. Click on Tidy Library
  5. Check Remove all media not currently in use?
  6. Click Yes

We encountered the following error:
SQLSTATE[23000]: Integrity constraint violation: 1451 Cannot delete or update a parent row: a foreign key constraint fails (cms.saved_report, CONSTRAINT saved_report_ibfk_2 FOREIGN KEY (mediaId) REFERENCES media (mediaId))

@ifarzana ifarzana added the bug label Jun 5, 2024
@dasgarner dasgarner added this to the 3.3.12 milestone Jun 5, 2024
@dasgarner dasgarner modified the milestones: 3.3.12, 3.3.13 Jul 15, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants