Get the "Create" buttons back on the "Add Legal Page" screen
The Add Legal Page screen in TermsFeed AutoTerms shows its legal page boxes only once its JavaScript runs, so any fault that stops that script leaves the screen blank. The scripts base.js and post-new.js, from the plugin folder auto-terms-of-service-and-privacy-policy, show the boxes. Open TermsFeed > Add Legal Page with DevTools open (F12) while you test.
Cause 1: Another plugin or the theme removes jQuery from the admin
The Add Legal Page boxes stay hidden while jQuery is missing from the admin screen. A plugin that deregisters jQuery in the admin, or a script that removes the global jQuery object, causes it.
Type jQuery in the Console tab and press Enter. A missing jQuery returns Uncaught ReferenceError: jQuery is not defined. In the Network tab, filtered for auto-terms-of-service, a deregistered jQuery leaves out base.js and post-new.js, while a removed global jQuery object leaves both requests in place.
- Deactivate your other plugins one at a time, keeping the AutoTerms plugin active, and reload the Add Legal Page screen after each until the boxes appear.
- Switch to a default WordPress theme for a moment, to test the theme.
- Reactivate everything except the plugin or theme that removes jQuery, and report the problem to its author.
A developer searches the active plugins and the theme for wp_deregister_script called with the jquery handle, or for code that removes the global jQuery object. Fix that code, or ask its author to keep it off the admin screens.
Cause 2: JavaScript is off in the browser
A browser with JavaScript turned off shows "Please, enable javascript to continue." instead of the Add Legal Page boxes. A script blocker extension, such as NoScript, does the same when it blocks your WordPress website.
- Turn on JavaScript for your WordPress website in the browser settings, at
chrome://settings/content/javascriptin Chrome. - Allow your WordPress website in any script blocker extension.
- Reload the Add Legal Page screen and confirm the boxes.
Cause 3: A security or optimization plugin blocks the admin scripts
A security plugin, an optimization plugin, or a firewall keeps base.js and post-new.js from running when it blocks their download or changes how they run. An optimization plugin does this when it combines, defers, or delays scripts on admin screens, and a firewall with a rule that blocks files under /wp-content/plugins/.
Type auto-terms-of-service in the Network filter and reload. A status of 403 or 404, or (blocked), means a firewall, a security plugin, or a browser extension stops the file. No request for base.js and post-new.js points to a missing jQuery, or to an optimization plugin that moved the scripts into a combined file.
Status 200 proves only that the 2 files downloaded, not that they ran after jQuery. A red error in the Console tab that names base.js, post-new.js, or a combined file means the scripts ran too early or out of order. A <script> tag of post-new.js with a type such as text/plain in the Elements tab means a delay feature holds the script back.
- Turn off the admin options of the optimization plugin that combine, defer, or delay scripts, or exclude
base.jsandpost-new.jsfrom them. - Allow the
auto-terms-of-service-and-privacy-policyfolder in the firewall, the security plugin, or the browser extension. - Clear every cache, reload the Add Legal Page screen, and confirm the boxes.
How to verify that the "Add Legal Page" screen works
- Open TermsFeed > Add Legal Page and confirm the boxes Privacy Policy, Terms and Conditions, Cookies Policy, and Custom Legal Page, each with a "Create" button.
- Confirm that no red line in the Console tab names jQuery,
base.js,post-new.js, or a combined file. - Filter the Network tab for
auto-terms-of-service, reload, and confirm status 200 forbase.jsandpost-new.js. - Click the "Create" button in the Privacy Policy box and confirm that the questionnaire opens.
The questionnaire ends with a draft page. Answer it and create the page with Create a Privacy Policy in WordPress.