Look up a console message and the change that fixes it

Every TermsFeed Privacy Consent console message starts with a prefix that names the script part, then a level marker and an 8-character code. Search this page for the code, such as 05cfcfb6, to find what the message means and what to change. A healthy page load does not print a line marked [ee] or [ww].

A full console line reads like this example, with the prefix first, the level marker and code second, and the message last.

[termsfeed][pc-loader-2-r2] [ww][05cfcfb6] not serviceable

Console message prefixes and level markers

The prefix names the file that printed the line, which is the file to look for in the Network tab. Filter the Network tab for termsfeedtag to see all 5 files.

Prefix Script part File in the Network tab
[termsfeed][pc-loader-1] The first loader, which starts the second loader plugin.js
[termsfeed][pc-loader-2-r2] The second loader, which fetches the settings and sends consent log events plugin-2.js
[termsfeed][pc-bootstrap] The startup code, which reads and writes the stored answer and runs your callbacks plugin-r2.js
[termsfeed][privacyconsent] The consent banner, the Preferences Center, and the embed placeholders preferences-r2.js
[termsfeed][vendor] The vendor tags vendors-r2.js

The level marker after the prefix tells you whether to act.

Level marker Meaning Action
[ee], [error] A step failed, and Privacy Consent stopped or skipped it Find the line in the tables here
[ww], [warn] Privacy Consent continued in a changed way, or stopped on purpose Find the line in the tables here
[dd], [ii], [info], [debug], [log] A detail about a normal step None, unless another line reports an error

These lines come from the 2 loaders, and each one stops Privacy Consent before the consent banner appears. No vendor tag runs either. The fix is always in how the script reaches the page. The first code prints after [termsfeed][pc-loader-1], and the others after [termsfeed][pc-loader-2-r2]. The 2 lines for a second copy of the snippet stop only that copy, and the first copy runs normally.

Code and message Meaning What to change
[ee][b1b476da] plugin failed! The browser did not load plugin-2.js Allow https://cdn.termsfeedtag.com in the script-src directive of your Content Security Policy, and test with no ad blocker
[ee][20955f11], followed by an address A script address starts with /plugins/pc/v1/ and does not end in /<token>/plugin.js or /<token>/plugin-2.js Paste the snippet as the TermsFeed app gives it, with the file name unchanged
[ee][4e776763] No script on the page carries a Privacy Consent address with a token Load the snippet from the Install page of your consent banner
[ee][205bde55] the plugin was installed multiple times! A second copy of the snippet started after the first copy had started Remove the second copy of the snippet, so the Network tab lists 1 plugin.js request
[ee][1040992c] the plugin was installed multiple times! 2 copies of the snippet started on the same page load, and the second copy stopped Remove the second copy of the snippet, so the Network tab lists 1 plugin.js request
[ee][8b94c91c] No host name was found for the script. The current script never prints this line, because [ee][4e776763] stops it first None
[ee][36de8955] failed detecting origin! The page has no host name, so Privacy Consent does not know which site it runs on Read the next line, which names the reason
[ee][e0498738], with a file:/// note The page opened from a local file:/// address Serve the page from a web server over http:// or https://
[ee][e216c2da], with an <iframe> note The page runs inside a frame with no host name, such as an srcdoc iframe Load the snippet on the parent page
[ee][dc058367], with a protocol note The page address uses a protocol other than http:// or https:// Serve the page over https://
[ee][892b3853], with an installation note The page has no host name for another reason Check that the snippet sits on a page served from your domain
[ee][bc03e2c0] plugin failed! The browser did not load plugin-r2.js, preferences-r2.js, or vendors-r2.js Filter the Network tab for plugins-code, then allow the host in script-src

Some environments give the page no web address or no access to its head. Check each of them with Unsupported Environments.

Settings errors

These lines come from the 2 requests for settings.json, the document that holds the settings and vendors of your consent banner. All print after [termsfeed][pc-loader-2-r2]. Privacy Consent stops after any of them, except the 2 visitor token lines. A wrong status or content type prints 2 lines, because the empty result then prints its own code. Filter the Network tab for settings.json and select the failed request to read its status.

Code and message Meaning What to change
[ee][2c7dd752] settings failed! The first request returned a status other than 200 Compare the token with the Install page, and remove any proxy between the page and cdn.termsfeedtag.com
[ee][e0777345] settings failed! The first response was not application/json Check whether a firewall, a proxy, or a login page answered in place of TermsFeed
[ee][16321273] settings failed! The first response held nothing usable Fix the code printed before it, or report the line where none printed
[ee][f5ea4c76] settings failed! The first request did not complete, or its response did not parse Allow https://cdn.termsfeedtag.com in the connect-src directive, and test with no ad blocker
[ee][e7dcd197] settings failed! The second request, whose address contains /plugins-api-w/, returned a status other than 200. A token with no consent banner behind it, such as a deleted one, ends here or at [ee][34c59001] Copy the snippet from the Install page again
[ee][0abe429b] settings failed! The second response was not application/json Look for a security product or a proxy that rewrites the response
[ee][6bb537ee] settings failed! The second response held nothing usable Look at the code printed before it, or report this line where none printed
[ee][34c59001] settings failed! The second request did not complete. A server answer of HTTP 400 ends here too, because it lacks the Access-Control-Allow-Origin header Read the x-error-code response header of the request, and allow the host in connect-src
[ww][05cfcfb6] not serviceable The server reports the consent banner as not serviceable Read the not-serviceable warning
[ww][c444605e] overriding user token The settings lacked a visitor token, so Privacy Consent created one in the browser None, because Privacy Consent continues
[ee][712a1565] overriding user token The browser did not create a visitor token Report the browser and its version

A Content Security Policy causes most request failures. Allow every host and directive Privacy Consent needs with Content Security Policy.

Codes the server returns for a settings request

The TermsFeed server answers some requests with HTTP 400, the body NOK [<code>], and the header x-error-code, and these codes never print in the console. The second settings.json request shows them in the Network tab, and the console prints [ee][34c59001] for the same failure. A proxy that drops or rewrites the Origin header is the usual reason.

Code Meaning What to change
[922b4344] The second settings request lacked an Origin header Let the header through any proxy
[99e8e6c7] The Origin header is not a URL Serve the page from a normal web address. A page with an opaque origin sends Origin: null
[66ad00d4] The hostname in the Origin header differs from the page hostname in the request address Remove any rewrite of the hostname between the page and the server
[28122fae] The request did not use HTTPS Load the snippet over https://
[34b14004] The request went to an unknown host Load the snippet from cdn.termsfeedtag.com
[3050f955] The request went to an unknown path Forward every path unchanged through any proxy

[ww][05cfcfb6] not serviceable means the TermsFeed server reports the consent banner as not serviceable, so the script stops before it renders anything. Visitors do not get a consent banner or a floating button. No vendor tag runs, including vendors in the Essential vendor category, embeds behind replaceable tags do not load, and no event reaches the consent log. Scripts left on the page outside Privacy Consent keep running for every visitor, without asking for consent.

The script files download normally, so the Network tab looks healthy apart from one value. Select the second settings.json request and open its Preview tab, where serviceable is not true.

Check the status of the consent banner in the TermsFeed app, starting with the integration.

  1. Compare the token in your snippet with the snippet on the Install page of your consent banner. A snippet copied from another consent banner reports the status of that one.
  2. Read the status label on the card under "Your consent banners". "Inactive" means the switch is off, so turn on "Show the consent banner on my website" on the Settings page, as Enable, Disable, Delete shows.
  3. Reload with "Disable cache" ticked in the Network tab after each change, because a browser keeps the settings for up to 1 hour.

Read the Help article on a consent banner that is not served for any other status.

Startup errors

These lines come from the startup code, which joins the Privacy Consent files after the settings arrive. A missing part stops Privacy Consent before the consent banner appears, while the storage errors let it continue with no stored answer. The first 6 codes print after [termsfeed][pc-loader-2-r2], and the others after [termsfeed][pc-bootstrap].

Code and message Meaning What to change
[ee][2f2d74cf] bootstrapping failed! (missing bootstrap module) The startup code was missing after the files loaded Confirm that plugin-r2.js returns status 200, and that no script of yours defines termsfeed_privacy_consent_bootstrap
[ee][2354467b] bootstrapping failed! (missing bootstrap callbacks) The startup code loaded without its callbacks Load the 5 files unchanged from cdn.termsfeedtag.com, with no optimization plugin rewriting them
[ee][e1dd0adf] bootstrapping failed! (missing boostrap preferences loaded callback) The startup code lacks its consent banner step Load the 5 files unchanged from cdn.termsfeedtag.com, with no optimization plugin rewriting them
[ee][0dc47531] bootstrapping failed! (missing bootstrap vendors loaded callback) The startup code lacks its vendor step Load the 5 files unchanged from cdn.termsfeedtag.com, with no optimization plugin rewriting them
[ee][d2aed110] bootstrapping failed! (missing bootstrap settings loaded callback) The startup code lacks its settings step Load the 5 files unchanged from cdn.termsfeedtag.com, with no optimization plugin rewriting them
[ee][17f1a2f2] bootstrapping failed! (missing bootstrap initialize callback) The startup code lacks its start step Load the 5 files unchanged from cdn.termsfeedtag.com, with no optimization plugin rewriting them
[ee][b5a1cb21] settings missing preferences HTML; The settings arrived without the consent banner markup, so Privacy Consent continues with nothing to show Send support the response of the second settings.json request
[ee][9ec4267c] The settings arrived without the Custom CSS field, so Privacy Consent continues without your Custom CSS Send support the response of the second settings.json request
[ee][d7b5f985] failed to load preferences state from local storage! The browser blocked reading local storage, so the visit behaves like a first visit Test in a browser that allows local storage for your site
[ee][2e70a41c] failed to decode preferences state from local storage! The stored answer is not valid JSON, so the visit starts empty Check that no script of yours writes to the key termsfeed_privacy_consent_state
[ee][0e00aa4d] failed to encode preferences state into local storage! Privacy Consent did not prepare the answer for storage Report the browser and its version, with the steps
[ee][ef136bd1] failed to store preferences state into local storage! The browser blocked the write, so the answer does not survive the page Allow local storage for your site, and read Consent Banner Keeps Returning
[ee][0e77e256] interaction unknown! Privacy Consent received a choice type it does not know Report the line with the steps that led to it
An uncaught Error whose message is [ee][fb348192] The consent banner code reported in a second time, from a second copy of preferences-r2.js or a script of yours Load each Privacy Consent file only through the snippet, so the Network tab lists each file once
An uncaught Error whose message is [ee][66c6c303] The vendor code reported in a second time, from a second copy of vendors-r2.js or a script of yours Load each Privacy Consent file only through the snippet, so the Network tab lists each file once
An uncaught Error whose message is [ee][48fb7505] The settings arrived a second time, from a second copy of a Privacy Consent file or a script of yours Load each Privacy Consent file only through the snippet, so the Network tab lists each file once
An uncaught Error whose message is [ee][63ed4f90] The startup ran a second time, from a second copy of a Privacy Consent file or a script of yours Load each Privacy Consent file only through the snippet, so the Network tab lists each file once
[ee][932109ed] bootstrapping unexpected! The startup was asked to run again after it ran Load each Privacy Consent file only through the snippet, so the Network tab lists each file once
[ee][bbe42172] integration initializing unexpected! v1.callbacks() ran twice before the initialized callback ran Call v1.callbacks() once
[ee][d92f50dd] failed preferences initialize delegation! The consent banner code failed to start Report the line with the error printed after it
[ee][894fd1ca] failed vendors initialize delegation! The vendor code failed to start Read the error printed after the code, and look for the vendor tag it names
[ee][b3528098] failed vendors update delegation! The vendor code failed to apply a new answer Read the error printed after the code, and look for the vendor tag it names
[ee][d7e1d6b5] failed updating visitor! A cached earlier file lacks a visitor value, so v1.visitor is null, which clears within 1 hour of a TermsFeed release Guard page code that reads v1.visitor, and reload with "Disable cache" ticked
[ee][34bc933a], [ee][f53aedaf], [ee][4e3f7774] The vendor start, a vendor update, or a visitor choice reached the startup code before the consent banner code reported its start, and Privacy Consent continues Reload with "Disable cache" ticked, because a cached earlier file causes it for up to 1 hour after a TermsFeed release

These lines come from your page code, the request that sends each choice to the consent log, and the vendor code. The consent banner keeps working after the consent log errors. The codes print after [termsfeed][pc-bootstrap], except the 2 pushing event failed! lines, which print after [termsfeed][pc-loader-2-r2].

Code and message Meaning What to change
[ee][478058ef] integration called `openPrivacyPreferences` before initialization! Your code called the method before Privacy Consent started, or on a consent banner that is not served, and nothing opens Call the method only from a click handler, and fix any earlier line
[ee][e807524e] failed preferences open delegation! The Preferences Center failed to open Report the line with the error printed after it
[ee][9f95e52a] failed integration callback `initialized`! Your initialized callback threw Fix the error printed with the line. v1 stays absent until a later call runs
[ee][9b16b888] failed integration callback `acceptedAll`! Your acceptedAll callback threw, and its error prints after the code Fix the error in the callback body
[ee][e8832f52] failed integration callback `acceptedSome`! Your acceptedSome callback threw, and its error prints after the code Fix the error in the callback body
[ee][46169886] failed integration callback `rejectedAll`! Your rejectedAll callback threw, and its error prints after the code Fix the error in the callback body
[ee][68f5e9ee] pushing event failed! The consent log request returned a status other than 201 Filter the Network tab for events.push, read the status, and report it where it repeats
[ee][ba53c27c] pushing event failed! The consent log request did not complete, so the choice is missing from the consent log Allow the host in connect-src, and expect fewer rows from visitors with ad blockers

These messages have no code and always print. The first follows [termsfeed][privacyconsent], and the others have no prefix.

Message Meaning What to change
[error] PrivacyConsent not initialized. An internal update ran before the consent banner code started Report it with the lines before it
Critical: No consent state or settings provided The vendor code started without the stored answer or the settings Send support the response of the second settings.json request
VendorManager is not initialized The vendor code received an update before it started Send support the steps that led to it

These lines have no code and print through console.log while debug output is on, after [termsfeed][privacyconsent] or [termsfeed][vendor] and a level. Most mean the rendered consent banner and the code disagree, which happens for up to 1 hour after a TermsFeed release, because the 2 are cached separately.

Message Meaning
No embed banner found in preferenceHTML The rendered HTML has no embed placeholder template
Vendor data is not an array or holds invalid vendors A vendor entry lacks an ID or a name, so it does not get a placeholder
No sticky element found in preferenceHTML The rendered HTML has no floating button container
CRITICAL: #termsfeed_pc1_preferences_center not found in preferenceHTML. The rendered HTML has no Preferences Center, so it does not open until both caches expire
Preferences Center template or document body not available. Cannot open it. The Preferences Center had nothing to open
Unable to update vendor <id> state to <true or false> An embed placeholder button names a vendor outside the non-essential vendor categories
_areAllVendorsEnabledInCategory: Category <id> not found in state. The saved state lacks a vendor category
Cannot refresh modal display: no live modal or state. The Preferences Center was asked to redraw while closed
Essential category cannot be disabled by user. Reverting UI. An Essential switch was turned off, and Privacy Consent turned it back on
Vendors in the essential category cannot be disabled by user. Reverting UI. The same reversal, for a single Essential vendor
State for category '<id>' not found. Cannot process toggle. The template and the consent state disagree on a vendor category
State for vendor '<element id>' in category '<id>' not found. The template and the consent state disagree on a vendor
Notice banner template not available, not showing it. The rendered HTML has no consent banner
Critical: No consent state provided The vendor code ran without a consent state

Debug lines and what each one reports

Lines marked [dd] report normal steps, and none needs a change. They print only with debug output on, which a live site leaves off, and at the Verbose level, which the default Console tab filter in Chrome hides. To see them from plugin-2.js on, set window.LCG_TF_PC_OVERRIDE_DEBUG = true in a script before the snippet. The 4 lines marked "overridden for testing" print whenever their override is set.

Code Reports Prefix
[dd][5e8ada55] The first loader starting pc-loader-1
[dd][e09f1ff2] The second loader added at once pc-loader-1
[dd][6a9efbf9] The first loader waiting for the page pc-loader-1
[dd][808eb1b9] The second loader added after the wait pc-loader-1
[dd][11b1997a] The second loader starting pc-loader-2-r2
[dd][443f10f7] The second loader running at once pc-loader-2-r2
[dd][78b01e18] The second loader waiting for the page pc-loader-2-r2
[dd][bd68ec53] The second loader running after the wait pc-loader-2-r2
[dd][4a81acc6] The token and host in use pc-loader-2-r2
[dd][4832a38a] The language list pc-loader-2-r2
[dd][64a550eb] The consent banner code loaded pc-loader-2-r2
[dd][d2ec7dbf] The vendor code loaded pc-loader-2-r2
[dd][773ae5a9] All code files loaded pc-loader-2-r2
[dd][da5f6756] The settings loaded pc-loader-2-r2
[dd][9d5f1073] The startup beginning pc-loader-2-r2
[dd][330f159d] An event being sent pc-loader-2-r2
[dd][cd646d4d] The payload of that event pc-loader-2-r2
[dd][e872a0d6] The hostname overridden for testing pc-loader-2-r2
[dd][06b0b5c8] The token overridden for testing pc-loader-2-r2
[dd][ad4e269c] The host overridden for testing pc-loader-2-r2
[dd][810744ed] The language list overridden for testing pc-loader-2-r2
[dd][d4143cc8] The language replaced after the settings arrived pc-loader-2-r2
[dd][af9cc956] The country replaced after the settings arrived pc-loader-2-r2
[dd][5f969c99] The state replaced after the settings arrived pc-loader-2-r2
[dd][d0e56276] The Do Not Track value replaced after the settings arrived pc-loader-2-r2
[dd][c4ac9675] The Global Privacy Control value replaced after the settings arrived pc-loader-2-r2
[dd][944c6524] The debug value replaced after the settings arrived pc-loader-2-r2
[dd][9d7f0317] The consent banner code received pc-bootstrap
[dd][c21e0107] The vendor code received pc-bootstrap
[dd][a46806be] The settings received pc-bootstrap
[dd][c9253c84] The startup started pc-bootstrap
[dd][c9da682c] The startup delayed pc-bootstrap
[dd][2c1b997d] The startup scheduled pc-bootstrap
[dd][019a1a77] The startup running pc-bootstrap
[dd][4e62da58] The startup finished pc-bootstrap
[dd][5547b3f1] The visitor token taken from storage pc-bootstrap
[dd][e1f5bb33] The visitor token taken from the settings pc-bootstrap
[dd][161e5379] The consent banner start scheduled pc-bootstrap
[dd][78baa924] The consent banner code reported its start pc-bootstrap
[dd][446a5015] The vendor start scheduled pc-bootstrap
[dd][5f496089] A vendor update scheduled pc-bootstrap
[dd][29089254] A visitor interaction scheduled pc-bootstrap
[dd][75b21ca0] Page code called callbacks pc-bootstrap
[dd][3fe3cb08] Page code called openPrivacyPreferences pc-bootstrap
[dd][a544d1de] The initialized callback scheduled pc-bootstrap
[dd][6bf6af64] The initialized callback running pc-bootstrap
[dd][0d86608d] The initialized callback finished pc-bootstrap
[dd][e64422c8] The acceptedAll callback scheduled pc-bootstrap
[dd][aa2baa0c] The acceptedSome callback scheduled pc-bootstrap
[dd][69bdd427] The rejectedAll callback scheduled pc-bootstrap
[dd][94e2fb75] v1.visitor being updated pc-bootstrap
[dd][c3ccfe6f] v1.visitor updated pc-bootstrap
[dd][d8013357] A visitor interaction received pc-bootstrap
[dd][ef5d7b4c] The event computed, with accepted, mixed, and rejected vendor categories pc-bootstrap
[dd][4dbbdd67] The stored answer loading pc-bootstrap
[dd][6e191243] No stored answer found pc-bootstrap
[dd][856b0092] The stored answer loaded pc-bootstrap
[dd][641a791e] The stored answer is not an object, so the visit starts empty pc-bootstrap
[dd][4d7ab95f] The answer being saved pc-bootstrap

The consent banner and vendor code print step-by-step [info], [warn], [debug], and [log] messages too, such as "Showing notice banner...". The vendor code marks its lines [b9e3s6], [j263dee], [b83ea5], and [transient] for vendor tags and placeholders, [c4s1g7] for a consent signal sent, and [c4s1g8] for an unknown consent signal it ignored.

The browser prints these errors with no Privacy Consent prefix and no code. Each one names a policy, an extension, or your own code as the cause, so the change is on your site.

Message in the console Meaning What to change
Refused to load the script 'https://cdn.termsfeedtag.com/...' Your Content Security Policy blocks the Privacy Consent files Add https://cdn.termsfeedtag.com to script-src
Refused to connect to 'https://cdn.termsfeedtag.com/...' Your Content Security Policy blocks the settings or the consent log request Add https://cdn.termsfeedtag.com to connect-src
Refused to apply inline style Your Content Security Policy blocks the styles of the consent banner, which then appears unstyled Allow 'unsafe-inline' in style-src
net::ERR_BLOCKED_BY_CLIENT A browser extension blocked a request Test in a browser profile with no extensions
Cannot read properties of undefined (reading 'openPrivacyPreferences') Your code called the method before the Privacy Consent files finished downloading Call the method from a click handler, never while the page loads
Cannot read properties of undefined (reading 'visitor') Your code read v1 outside an initialized callback Read window.termsfeed_privacy_consent.v1.visitor only inside that callback or an answer callback after it
An error that names a vendor host or function, such as gtag is not defined A vendor tag, or your own code that depends on it, failed Fix the vendor tag in the Vendors page, or run your code after it

Errors that name a vendor usually appear right after the visitor accepts. Fix a vendor tag that fails at that moment with Vendor Script Not Firing.

Send the full console line as text, with its prefix, its level marker, and its message, because the 8-character code identifies the exact failure. Add the response of the second settings.json request, the address of the page, and the browser with its extensions. Collect the rest of the evidence with Debug an Integration.