Won’t delete multiple entries
-
When you select multiple snippets to delete them using WordPress options, the list of snippets disappears and the text “The followed link has expired” appears. Only manual removal one at a time works.
-
We just tested the bulk delete feature on our end and it worked perfectly fine.
That expired link error is a classic WordPress issue. It usually pops up when a security token times out or your server hits a resource limit during a bulk action.
Could you let us know what PHP version your server is running? It would also help to know if you are using any strict security plugins or caching tools.
While you gather that info, here are a few solutions you can try right now.
- Clear your cache: Sometimes an aggressive cache will serve an old security token. Purge your site cache and try the bulk delete again.
- Increase PHP limits: Bulk actions take more server power. Check your server settings and try increasing your max_input_vars and memory_limit. You can usually do this in your php.ini file or by asking your hosting provider.
- Check for conflicts: Temporarily disable your other plugins and see if the bulk delete works. If it does, turn them back on one by one until it breaks again. That will point us directly to the culprit.
Thank you.
I did everything and nothing work. I’m on a localhost with MAMP with PHP version 8.2.0. The debug log only indicate this, but I think it has nothing to do with it : PHP Notice: Function _load_textdomain_just_in_time was called incorrectly. Translation loading for the […] domain was triggered too early. This is usually an indicator for some code in the plugin or theme running too early. Translations should be loaded at the
initaction or later.Thanks for the update and for trying those steps!
Since you’re on a localhost MAMP setup, the “link has expired” error is almost certainly a nonce timeout or max_input_vars issue. MAMP’s default PHP configuration is quite conservative. The textdomain notice in your debug log is unrelated, so you can ignore that.
Here are a few things worth trying specifically for your setup:
- Increase max_input_vars: MAMP defaults this to 1000, which can cause bulk actions to fail silently. Open your active php.ini file (in MAMP, go to MAMP > Preferences > PHP to find the correct version path) and add or update:
max_input_vars = 5000 memory_limit = 256MThen restart MAMP servers.
- Check your nonce lifetime: On localhost, system clock drift or a misconfigured timezone can cause WordPress nonces to expire immediately. Make sure your system clock is accurate and that
WP_DEBUGmode isn’t interfering with auth cookies. - Test in an incognito window: Clear your browser cookies or try bulk deleting in a fresh incognito/private session to rule out a stale session token.
Could you also let us know: are you selecting the snippets via the checkbox column and using the “Bulk Actions” dropdown at the top of the list? Just want to confirm the exact flow you’re using.
Let us know how it goes!
Thank you for your reply. I did some research on my own regarding this error message and made several changes to the php.ini file, but without success.
I went back a few minutes ago to try it in “incognito” mode, but the result was the same.
The error message referred to the language, which made me wonder if it might be related to the translation (I’ve seen this issue before). So I changed the language to US English, and it worked fine. You can watch a short video here: https://youtu.be/EKPwTWIlWL0
Hi @revixi5,
Glad you found a workaround! We did test bulk delete using the same language on our end and it worked without any issues, so the root cause may be specific to your local MAMP setup rather than the language itself possibly a combination of your locale settings and how MAMP handles the request.
If you’re able to reproduce the issue consistently, it would be great if you could share your MAMP/PHP configuration details so we can investigate further.
You must be logged in to reply to this topic.