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

Deleting a form record successfully but get "Item could not be deleted" flash message #11406

Open
alantucker opened this issue Jan 30, 2025 · 8 comments

Comments

@alantucker
Copy link

Bug description

When deleting an entry from my contact form (successfully deleted), I get a flash message at the bottom left corner of my browser window: "Item could not be deleted."

How to reproduce

Specific to a form created on my local machine. I have not tested with a second form, but I can do it if you can not replicate the problem. Please note that I am storing everything in the database, e.g. forms and blueprints.

Logs

Environment

Environment
Application Name: Statamic
Laravel Version: 11.41.0
PHP Version: 8.3.16
Composer Version: 2.8.4
Environment: local
Debug Mode: ENABLED
URL: untitleddigital.test
Maintenance Mode: OFF
Timezone: UTC
Locale: en

Cache
Config: NOT CACHED
Events: NOT CACHED
Routes: NOT CACHED
Views: CACHED

Drivers
Broadcasting: log
Cache: file
Database: mysql
Logs: stack / single
Mail: log
Queue: sync
Session: file

Statamic
Addons: 2
Sites: 1
Stache Watcher: Enabled (auto)
Static Caching: Disabled
Version: 5.46.0 PRO

Statamic Addons
statamic/eloquent-driver: 4.19.1
statamic/ssg: 3.1.0

Statamic Eloquent Driver
Asset Containers: eloquent
Assets: eloquent
Blueprints: eloquent
Collection Trees: eloquent
Collections: eloquent
Entries: eloquent
Forms: eloquent
Global Sets: eloquent
Global Variables: eloquent
Navigation Trees: eloquent
Navigations: eloquent
Revisions: file
Sites: eloquent
Taxonomies: eloquent
Terms: eloquent
Tokens: eloquent

Installation

Fresh statamic/statamic site via CLI

Additional details

No errors were thrown in the log file.

@duncanmcclean
Copy link
Member

I can't seem to reproduce this. Form submissions are deleting as expected for me.

Are you able to record a video demonstrating the issue?

@alantucker
Copy link
Author

They are deleting as expected, but after deleting, I get a flash message towards the bottom left of the browser window that says, "Item could not be deleted".

I have created a screen recording that can be viewed here.

Thanks

@duncanmcclean
Copy link
Member

Do you have any event listeners setup?

@alantucker
Copy link
Author

Nope. It's a new project, a fresh install on my local dev. A single contact form is used on the home.antlers.html page.

@duncanmcclean
Copy link
Member

That's strange. How are you hosting the site? Are you using Laravel Herd?

@alantucker
Copy link
Author

Yes, I am using Laravel Herd, version 1.14.1

@duncanmcclean
Copy link
Member

Are there any errors in your log file? They're located in storage/logs.

@alantucker
Copy link
Author

Not that I can see. If I get time, I will create a new project to see if I can replicate it again.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants