Dashboard Layout Not Saving #
If you rearrange or resize widgets on the Analytics Dashboard and the layout resets when you refresh the page, use these steps.
Cause #
Dashboard layouts are saved via an AJAX call to WordPress when you stop dragging. If the save fails, the layout is not persisted.
Diagnosis #
- Open browser developer tools (F12) and go to the Network tab
- Rearrange a widget on the dashboard
- Look for a request to
admin-ajax.phpwith actiondmsi_save_dashboard_layout - Check the response status:
- 200 with
success: true: Layout saved correctly - 200 with
success: false: Nonce validation failed - 403: User does not have permission to save layouts
- 0 or no request: JavaScript error prevented the save from triggering
Common Fixes #
Nonce validation failing:
Hard-refresh the page (Ctrl+F5) to get a fresh nonce, then try again.
403 error:
Confirm your user has manage_dmsilm_analytics capability.
JavaScript error preventing save:
Check the Console tab for errors on the dashboard page. A conflicting plugin may be breaking the Gridstack library.
