Fix “The link you followed has expired” Error When Saving Large Menus
If you see the error “The link you followed has expired” while saving or reordering menus, don’t worry.
This is a common WordPress issue and is not caused by the Advanced Menu Manager plugin itself.
It usually happens when your menu is very large, and your server limits are too low.
When does this issue occur?
You may face this issue if:
- Your menu has many items or deep sub-menus
- You try to reorder menu items
- You add a new menu item under another item
- You click Save Menu, and WordPress fails to save
Instead of saving, WordPress shows:
The link you followed has expired
Why this happens
When you save a large menu, WordPress sends a big request to the server.
If your server limits are low, the request gets blocked or times out, which triggers this error.
This is controlled by your server or hosting configuration, not by the plugin.
Why Does This Error Happen with Plugins Like WooCommerce Bookings
Some WooCommerce extensions, such as WooCommerce Bookings, create a large number of dynamic fields in the WordPress admin area.
When these plugins are active, the WordPress menu editor may contain hundreds or thousands of form fields.
When you try to save the menu, WordPress sends all fields in a single request.
If the number of fields exceeds your server’s max_input_vars limit, the request fails and WordPress displays the error:
“The link you followed has expired.”
This is not a plugin bug. It is a server configuration limitation.
How to Fix the Error When Using WooCommerce Bookings
If WooCommerce Bookings or another plugin creates many dynamic fields, increase these PHP limits:
max_input_vars = 5000 max_execution_time = 300 memory_limit = 512M post_max_size = 128M
You can update these values in:
php.ini.htaccess- hosting control panel
If you are unsure how to update these values, contact your hosting provider.
Solution: Increase your server limits
To fix this issue, you need to increase some PHP/server limits.
Note: The values shown below are only example reference values.
They may not be sufficient for every store.
Your store may need higher limits, depending on:
- Number of menu items
- Menu depth
- Active plugins
- Hosting environment
Do not blindly copy-paste these values without understanding or verifying with your hosting provider.
Option 1: Increase limits using wp-config.php
- Open your site’s wp-config.php file.
- Add the following lines above
/* That's all, stop editing! Happy publishing. */
@ini_set('upload_max_size', '120M');
@ini_set('post_max_size', '120M');
@ini_set('max_execution_time', '300');
- Save the file.
- Go back to Menus and try saving the menu again.
Note: These values are starting points only. If your menu is very large, your server may require higher values. So, you can adjust the limits accordingly.
Option 2: Ask your hosting provider (recommended)
If you are not comfortable editing files, contact your hosting support and ask them to:
- Increase
upload_max_size - Increase
post_max_size - Increase
max_execution_time
You can share this message with them:
I am getting “The link you followed has expired” error while saving large WordPress menus.
Please increase my PHP limits (upload_max_size, post_max_size, and max_execution_time).
Your hosting team can safely adjust the limits according to your server setup.
Still facing the issue?
If the problem continues even after increasing the limits:
- Enable WordPress error logging.
- Reproduce the issue.
- Share the error log with our support team.
This helps us quickly identify any server-specific issues.
FAQs
Why does this error occur when WooCommerce Bookings is installed?
WooCommerce Bookings creates many dynamic form fields in the WordPress admin interface.
When you try to save menus or settings, the number of fields may exceed the server’s max_input_vars limit.
Increasing this PHP limit usually resolves the issue.
Why do I see “The link you followed has expired” when saving large menus?
This error typically occurs when the server rejects a request containing too many form fields.
Increasing the max_input_vars value allows WordPress to process larger menu structures.
How many menu items can WordPress handle?
WordPress does not have a strict menu item limit.
However, server configuration limits such as max_input_vars determine how many fields can be processed in a single request.
If you manage large menus, increasing these limits is recommended.
Can plugins cause the “link expired” error?
Yes.
Plugins that generate many dynamic fields (for example, booking plugins, mega menus, or product filters) can increase the number of form inputs sent to the server.
If this exceeds the PHP configuration limits, the request fails.
How can I confirm the issue is caused by server limits?
You can test this by temporarily disabling plugins that add many fields.
If the menu saves successfully after disabling them, the issue is caused by server configuration limits.
Increasing the PHP limits should resolve the problem.