Find out why visitors do not see an announcement after you edit a legal page
The Update Notices kit in TermsFeed AutoTerms announces a legal page only after a real edit within the chosen period. The bar lists published legal pages whose last change falls within "How long to keep the announcement bar", 3 days by default. A page you only published, an old change, and a closed notice hide the bar by design. So does a logged-in test while "Disable for logged-in users" is "yes", the default.
One request shows whether the kit has anything to announce to this browser. Close every private window, open a new one, open DevTools, type admin-ajax in the Network filter, and load a page. Select the POST request with action: wpautoterms_check_updates in its Payload tab, then open its Response tab.
- A response of
{"data":[]}means the kit has nothing to announce to that browser. - A
messageinsidedatameans the notice has content to show. - No such request usually means the kit is off, or the page was built for a logged-in user while "Disable for logged-in users" is "yes".
- A red error in the Console tab that names
wpautoterms.jsmeans the notices script did not run.
Cause 1: The page was only published, or saved within 60 seconds of publishing
A legal page you only published, or saved within 60 seconds of publishing, does not get an Update Notice. The Last Effective Date column of All Legal Pages shows only the day, so settle this cause with a controlled edit. Read which updates the kit announces in Announce Legal Page Updates in WordPress.
- Open the legal page and make the change you want to announce.
- Click the "Update" button more than 60 seconds after the page was published.
- Clear the page cache, close every private window, and confirm the announcement in a new one.
Cause 2: The change is older than "How long to keep the announcement bar"
The bar announces a change only during the period set in "How long to keep the announcement bar", so an edit older than that period shows nothing. The choices are 24 hours, 3 days, 10 days, and 30 days. A Last Effective Date on All Legal Pages earlier than the period means the change is too old.
- Open the Update Notices screen from TermsFeed > Compliance Kits and choose a longer period.
- Click the "Save Changes" button and clear the page cache.
For a change older than 30 days, edit the legal page again to start a new period.
Cause 3: You closed the Update Notice for this change
Clicking the "Close" link stores a cookie for each page the notice lists, and the notice stays hidden in that browser until the page changes again. After 7 days, the notice returns only while the change still falls within a period of "10 days" or "30 days".
Find wpautoterms-update-notice-<post ID> in the Application tab of DevTools, under Cookies and the domain of your WordPress website. The post ID is the number after post= in the edit screen address of the page.
Close every private window and open a new one, which does not hold the cookie yet. To test in your normal window, change the setting and delete the cookie.
- Set "Disable for logged-in users" to "no" on the "Update Notices of Legal Pages" settings screen, and click the "Save Changes" button.
- Right-click the
wpautoterms-update-notice-cookie in the Application tab of your normal window, and delete it. - Reload the page and confirm the bar.
Cause 4: You are logged in to WordPress while you test
The Update Notice hides from every logged-in user while "Disable for logged-in users" is "yes", which is the default.
Close every private window and load the page in a new one, which starts logged out and shows the bar. In the page source of your normal window, a "disable":"1" value in wpautoterms_js_update_notice points to this cause, and an empty value rules it out. To see the bar while logged in, change the setting.
- Open the "Update Notices of Legal Pages" settings screen from the "Configure" button in its box on TermsFeed > Compliance Kits.
- Set "Disable for logged-in users" to "no" and click the "Save Changes" button.
- Clear the page cache.
Cause 5: The Update Notices kit is off
The Update Notices kit is off after install, so no edit produces a notice until you turn it on. A page cached while the kit was on still sends the check, which returns {"data":[]}. The Update Notices of Legal Pages box on the Compliance Kits screen shows "Disabled", and the page source does not hold wpautoterms-update-notice-placeholder.
- Click the "Enable" button in the Update Notices of Legal Pages box.
- Clear the page cache.
- Edit a published legal page, close every private window, and confirm the notice in a new one.
Cause 6: The legal page is a draft or private
The kit announces published legal pages only, so a change to a draft, a private page, or a scheduled page does not show an Update Notice. The Status column of All Legal Pages shows draft, private, or future instead of publish, and the Shortcode column shows "N/A". Publish and update legal pages with Edit and Publish WordPress Legal Pages.
- Publish the page from the Publish box. Click the "Publish" button on a draft. On a private page, click "Edit" next to "Visibility", select "Public", click "OK", and click the "Update" button. On a scheduled page, click "Edit" next to the date, set the current date and time, click "OK", and save the page.
- Make the change you want to announce more than 60 seconds later, and click the "Update" button.
- Clear the page cache, close every private window, and confirm the notice in a new one.
Cause 7: A firewall or security rule blocks admin-ajax.php for visitors
A firewall or security rule that blocks admin-ajax.php for logged-out visitors keeps the bar off cached pages and off the first page view of every visitor. Allowing the request for every visitor is safe, because the response holds only notices a visitor sees anyway.
Close every private window, open a new one, open DevTools on the Network tab filtered on admin-ajax, and load the page. A status of 403 or 503, or an HTML challenge page as the response, means a rule blocks the request. The Console tab shows [WPAutoTerms][UpdateNotice] Query error or [WPAutoTerms][UpdateNotice] Response is not an object.
- Allow POST requests to
/wp-admin/admin-ajax.phpwithaction=wpautoterms_check_updatesfrom logged-out visitors in your firewall, security plugin, or content delivery network (CDN) rules. - Clear the page cache, close every private window, and open a new one. Load the page with the Network tab filtered on
admin-ajax, and confirm that the request returns status 200.
A developer confirms the fix from the command line. Replace example.com with your domain, and expect a JSON response that starts with {"data":.
curl -X POST -d "action=wpautoterms_check_updates" https://example.com/wp-admin/admin-ajax.php
How to verify that the Update Notice appears
- Open a published legal page, change its text, and click the "Update" button more than 60 seconds after it was published.
- Clear the page cache, close every private window, open a new one, open DevTools on the Network tab filtered on
admin-ajax, and load a page. - Confirm the bar. With the default message, it reads "Our Privacy Policy has been updated on" and the date, with the title of the page you edited in place of "Privacy Policy". Pages changed on the same date share 1 message from "Message for multiple updated pages".
- Select the
admin-ajaxrequest and confirm that its response lists the message underdata. - Click the "Close" link, reload, and confirm that the bar stays closed and that the Application tab holds a
wpautoterms-update-notice-cookie.