Troubleshooting
What to do when the badge doesn’t appear, a pasted piece loses its verification line, or the editor on your page stops answering. Each problem starts with what you see.
Where to look
- The browser’s console. Every message from the badge starts with “PeopleWritten:”. The badge guide lists the ones about placing it; this page covers the rest. A message that doesn’t start that way, about a Content-Security-Policy or a failed request, comes from the browser itself.
- The piece’s record, at
https://peoplewritten.com/v/CERTIFICATE_ID. It shows when the piece was first verified and, under “Updates since”, when it was last verified again. Under “Followed a badge here?” it gives the number of printable characters in the verified text, to set against the number in the console. Its “Compare a copy” box checks any copy against every verified version by the badge’s rules, in your browser, leaving out the verification line. If the certificate was withdrawn, the record shows only that, and when. - The writer’s account page, which lists each of their verified pieces with its code, its latest update, and a notice if PeopleWritten withdrew its certificate.
The badge doesn’t appear
No badge, and a message you won’t find in the badge guide
- “certificate … has been withdrawn, so its badge isn’t shown.” PeopleWritten withdrew the piece’s certificate, and the badge stopped appearing everywhere. There’s nothing to fix on your page. The record says when; the writer sees a notice on their account page, with a way to ask PeopleWritten about it.
- “couldn’t reach PeopleWritten at … to check certificate …; trying again.” The check failed twice. The address in the message is where the badge looked for PeopleWritten: the server its own script came from. If it’s your own site, the script is a copy, or has been combined, inlined or bundled with yours by an optimisation plugin. Load it with the tag as given, from
https://peoplewritten.com, and leave it out of any “combine JavaScript” or “host scripts locally” setting. If the address is right, your Content-Security-Policy may be blocking the request (the browser’s own error names the directive; see Content-Security-Policy), or the reader is offline. The badge keeps trying, up to ten checks on one page load.
No badge, and no message at all
- The script didn’t load. Check the tag, and the browser’s own errors about your Content-Security-Policy.
- The badge’s element is hidden. With
display: none, or inside a closed menu or tab, it waits and is drawn when the element is shown. - The browser is too old to read text the way PeopleWritten does, so the badge doesn’t start.
“PeopleWritten: certificate …: Unknown certificate.”
The ID is the right shape, but PeopleWritten has no certificate with it: usually a typo that still looks like an ID, or a code from a different PeopleWritten server from the one the script is loaded from. Copy the code again from the writer’s account page.
“PeopleWritten: the badge for certificate … couldn’t load its emblem.”
The text matched, but the badge’s image was refused, and checking again didn’t help. Almost always, your Content-Security-Policy doesn’t allow images from PeopleWritten: add img-src https://peoplewritten.com. (The image is served only with a pass from the check, which lasts ten minutes. A badge that needs a new drawing later, because the page was left open and its room changed, checks again first, so an old pass isn’t the cause.)
On a page with several posts, a badge reads the wrong one
Each badge reads the article nearest to it: an element around the badge that matches its selector (or data-peoplewritten-article), or else the first match inside the closest element around the badge that has one. So on a home page that shows posts in full, or a blog that loads the next post as the reader scrolls, put each badge inside its own post’s container, next to the body it vouches for. A badge outside every post, in a shared sidebar, reads the first post on the page.
A shortened copy of the piece in the same container, such as an excerpt above the full text, is found first if it comes first. Give the full text its own data-peoplewritten-article, or a selector only it matches:
<div data-peoplewritten-certificate="CERTIFICATE_ID" data-article=".entry-content:not(.excerpt)"></div>A hidden full copy is fine: the badge reads hidden text too. Where a page shows only an excerpt, the badge can’t match at all: put it on the piece’s own page.
Text that doesn’t match
When the text on the page isn’t the verified text, the console says so and gives two numbers: the printable characters on the page and in the verified text. The badge guide covers the usual causes. These are the ones that are harder to see.
More characters on the page, but nothing extra shows
The badge reads every character in the article element, whether it’s shown or not. Look for:
- Text for screen readers only, such as “(opens in a new tab)” added to links by a theme or an accessibility plugin, or labels on icons.
- Captions your template adds to pictures, and tooltips or footnote pop-ups kept in the page.
- A “Copy” button, a language label or line numbers that a code highlighter adds to code blocks.
- The piece’s verification line, changed on its way in. The badge reads past the line, marked or not, as long as it still says “PeopleWritten Verified:” followed by the piece’s address. If your editor rewrote it (the address replaced by a link’s title, say), the difference is about 49 characters, the length of the line. Delete the line from the article, or mark it
data-peoplewritten-ignore.
Mark each with data-peoplewritten-ignore, or add its class to data-ignore on the badge.
Fewer characters on the page, but nothing’s missing
- Emoticons and emoji turned into pictures. WordPress, by default, shows emoticons such as
:)and;-)as images, and some plugins replace every emoji with an image. A picture’s alt text isn’t text, so those characters leave the article. Turn the conversion off (in WordPress, theuse_smiliesoption). - Dashes and ellipses. Turning
--into a dash, or three full stops into an ellipsis, changes the count as well as the characters: one or two fewer each time. - Markdown. If your CMS reads Markdown,
*,_and#used as ordinary characters become formatting and disappear. - Drop caps made by taking the first letter out of the text and drawing it separately.
Other languages and scripts
The badge works the same way in every script, and in right-to-left text. Ignored, as spacing is: every kind of space (including the narrow spaces some French typography plugins put before : and »), zero-width joiners and non-joiners, soft hyphens, direction marks and emoji variation selectors. Accented letters match whether they’re stored as one character or as a letter and an accent.
These do count, because a reader can see them:
- Converting between Simplified and Traditional Chinese, which changes the text as translation does.
- Converting full-width letters and digits to ordinary ones, or the other way round.
- Arabic justification that stretches words by inserting tatweel (ـ) rather than spacing.
- Typography tools that replace letter pairs such as “fi” with a single ligature character.
The console counts Unicode code points, not letters as a reader sees them. A vowel point in Hebrew or Arabic, a combining sign in Devanagari, or each emoji in a joined group counts as one, so the numbers can be larger than you expect. They’re counted the same way on both sides, so the difference between them still means what it says.
The hover card
The card opens in the wrong place
In current browsers the card opens above everything on the page, wherever the badge sits. Older ones (before Chrome 114, Safari 17 and Firefox 125) position it against the nearest element with a CSS transform, filter or will-change: transform, so it can open away from the badge or be cut off. For readers on those, place the badge outside sliders, animated panels and carousels.
The badge appears, but no card
- On a touch screen there’s no card by design. A tap opens the record, which explains the same thing.
- “the badge’s hover card can’t load: this page’s Trusted Types policy blocks it.” Your page requires Trusted Types. The badge loads its card’s script through a policy named
peoplewritten-badge; add that name to thetrusted-typesdirective of your Content-Security-Policy. The badge itself appears either way.
Where scripts can’t run
How the verification line works, and what each platform does with it, is in Where scripts can’t run.
The pasted piece has no verification line
- Part of the piece was copied. The line comes only with a selection that takes in the whole piece, from its first visible character to its last. (Select All works: it copies the story alone, without the page around it, and adds the line. A selection that runs past the story, from its title, say, is copied as selected, with the line after it.)
- The piece isn’t the verified version. If the story was changed after it was verified, the line isn’t added until the new version is verified too.
- The certificate was withdrawn. The record says so.
- It was copied from the PeopleWritten app before PeopleWritten had issued the document’s certificate and sent its address to the app. Until then the app’s copies and exports go without the line.
- It was copied from somewhere else, such as the writer’s own blog. Only PeopleWritten adds the line.
The address isn’t a link
Some platforms and forums only make links after the post is published, and some don’t let new members post links at all. The line is still there as text, with the full address. Moderators who ask for verified posts should let members post links to wrt.pe. Lines copied before short links were turned on carry the record’s own address, https://peoplewritten.com/v/…, rather than https://wrt.pe/…. Both lead to the same record, so accept both.
The link card doesn’t appear, or is out of date
Each platform decides whether to show a card, and many show one only for the first link in a post. Platforms also keep their own copy of a card, often for much longer than PeopleWritten’s hour, so a card already shown doesn’t change when the piece is updated or its certificate withdrawn. The record is always current.
A post with the line doesn’t match its record
Paste the post into “Compare a copy” on the record. It leaves the verification line out wherever it is, even wrapped onto two lines, and matches any version the writer has had verified, saying so if it’s an earlier one. If it still doesn’t match:
- It was split. On platforms with a length limit, a long piece goes in as several posts, and Discord offers to turn a paste longer than a message into a text file. No part on its own is the piece. Paste the parts into the box together, in order: spacing between them doesn’t matter.
- Something was added, such as an email signature or a note from the poster. Everything but the line counts, so leave out what was added.
- Characters were changed or lost: Markdown formatting (see Platform by platform), or a phone’s autocorrect when the post was edited.
The editor on your site
The editor’s errors arrive as exceptions thrown by its methods, or as promises that reject, with the messages quoted here. Options and events are in The editor on your site.
“ReferenceError: PeopleWritten is not defined”
Your code ran before the editor’s script had loaded, usually because the script tag has async or defer, or is placed after your code. Load it without either, before the code that uses it:
<script src="https://peoplewritten.com/embed/v1.js"></script>
<script>
const editor = PeopleWritten().editor({ height: 600 });
editor.mount("#writer");
</script>“PeopleWritten: mount target not found”
The element you passed to mount() isn’t on the page yet: the script runs in the <head>, or your app renders the element later. Mount once the element exists.
“PeopleWritten: this editor is already mounted”
mount() was called twice on one editor. In React, Strict Mode runs effects twice while you develop; create the editor in the effect and destroy it in the cleanup:
useEffect(() => {
const editor = PeopleWritten().editor({ draft: "spring-contest" });
editor.mount(ref.current);
return () => editor.destroy();
}, []);After destroy(), calls reject with “The PeopleWritten editor isn’t mounted”, and calls still waiting reject with “The PeopleWritten editor was removed”.
“PeopleWritten: height should be "auto" or a number of pixels”
height takes "auto" or a number of pixels, written 600 or "600px", from 200 to 4000. Anything else, such as "50vh", is read as "auto". To size the editor to the window, set the height yourself and pass the number.
“PeopleWritten: the editor needs a page served over https:// (or http://)”
mount() throws this on a page opened as a file, or in a frame sandboxed without allow-same-origin. Such a page has no address of its own, so the editor couldn’t tell its messages from anyone else’s. Serve the page over http or https (localhost is fine), and if it’s framed with sandbox, include allow-scripts allow-same-origin.
“PeopleWritten: the editor hasn’t loaded from … after 15 seconds”
The editor never said it was ready, and calls give up with “The PeopleWritten editor didn’t respond”: getContent() and focus() after 10 seconds, submit() after 30. The message names the address the editor’s frame was loaded from.
- If it’s your own site, the script is a copy. The editor opens its frame on the server its script came from. Load the script from
https://peoplewritten.com, or pass the address:PeopleWritten({ origin: "https://peoplewritten.com" }). - Otherwise your Content-Security-Policy probably doesn’t allow the frame. Add
frame-src https://peoplewritten.com; the browser’s console names the directive.
The receipt isn’t what you expected
receiptisnull. The editor was created withrecording: false, so there’s no record.sealed: falseandreason: "pending". The record hadn’t all reached PeopleWritten after 15 seconds, usually because the writer’s connection is slow or has dropped.submit()resolves rather than rejects. The editor keeps sending while the page is open and, where the browser lets it keep data, sends the rest the next time the editor loads on your site. Callsubmit()again, with nothing changed, to wait another 15 seconds for the same session’s receipt. Keep the session ID with the submission either way.sealed: falsewith another reason. PeopleWritten refused the record, andreasonsays why.- A different session ID from last time. Calling
submit()again with nothing changed gives the same receipt. Once the writer has changed anything, the next call seals a new session, linked to the one before it, so keep every receipt you’re given for a piece.
A sealed receipt means the record reached PeopleWritten complete. It isn’t a verdict on the piece.
The recording event says “paused”
The writer paused recording from the indicator in the editor. Anything written while it’s paused can’t be verified, and the editor tells them so. The recording event’s status is "armed" before the first keystroke, then "recording" or "paused", and "armed" again after submit(). If your form needs a verifiable piece, tell the writer when it’s paused.
A draft didn’t come back
Drafts are kept in the writer’s browser, on that device, under the draft key and your site’s address. A draft doesn’t open when:
- the key has changed;
- the
titleoption has changed: a draft saved with a title line doesn’t open in an editor without one, and the other way round; - your site’s address has changed, even from
httptohttps, or fromwww.to without it; - the browser keeps no data for frames from other sites, as some do in private windows or with third-party cookies blocked. Nothing can be saved there.
The editor’s draft event tells you whether drafts are being kept: { saved: false } when the browser refused, so you can tell the writer to finish in one sitting. In the same browsers, a record that couldn’t be sent before the tab closed is lost too.
Pending, updated, withdrawn
A piece isn’t verified yet
A piece that hasn’t been verified has no certificate, so there’s no badge code or verification line for it, and the writer’s account page doesn’t list it. On PeopleWritten its story says “Verification in progress” while it’s being checked, and “Not yet verified” if it hasn’t been through the check.
The writer has had a new version verified
Every verified version keeps its badge, so pages that published an earlier one keep theirs, and its hover card says the text “matches an earlier verified version exactly; the writer has updated it since.” If you publish the new version, the badge matches that instead. A version that was never verified, such as your own edit, gets no badge.
The badge disappeared, and nothing on your site changed
- The certificate was withdrawn. The console says so, and so does the record.
- Something else on your page changed: a plugin, a theme or an ad network. See When your site changes.
A reader still saw the badge after the certificate was withdrawn
A badge asks PeopleWritten until it has matched, and after that only when it needs a new drawing, so a page that was already open usually keeps its badge until it’s reloaded. Every new page load checks again. For the same reason, once a badge has matched it compares later changes on the page only with the version it matched: if the article changes to a newer verified version while the page is open, the badge comes back after a reload.
A badge’s image appears somewhere it shouldn’t
A copied image address stops loading within ten minutes, and a copied image doesn’t link anywhere. Anyone can drop a copy, or a screenshot, into Verify a badge to see which piece it came from and whether its certificate stands.
Pages, browsers and readers
Caching and CDNs
The check is made by each reader’s browser, on each page load, and is never cached. A page served from your CDN’s cache still shows the current state of the certificate: an update or a withdrawal shows on the next load without clearing anything. What mustn’t move to your side is PeopleWritten’s script: see No badge, and no message.
AMP, reader modes, feeds and email editions
None of these run your page’s scripts, so the badge’s element stays empty there. If your posts also go out by email or in a feed, end the piece with its verification line, marked data-peoplewritten-ignore: the badge reads past it on your page, and the email and the feed carry it. If your editor drops the attribute when you paste, add the line in an HTML block.
Single-page apps
The badge guide covers rendering the badge in an app. For the editor, create it once per mount and call destroy() when the component goes, as in the React example above. Several editors can share a page; give each its own draft key.
Dark mode
The badge is drawn in the writer’s colour on every site, and doesn’t follow your page’s theme. If it’s hard to see on your dark theme, ask the writer for a colour that reads on both, or give the badge’s element a background of its own in dark mode: the element is yours; only what’s inside it is the badge’s. The hover card’s “auto” scheme, and the editor’s theme: "auto", follow the reader’s device setting, not a theme switch on your site. If your site has its own switch, pass "light" or "dark" to the editor to match it.
Keyboard and screen readers
- The badge is a link, reached with the Tab key. Its name is “PeopleWritten Verified: confirmed human authorship. Opens the record of how it was written on PeopleWritten.” It opens the record in a new tab.
- Its hover card opens when the badge is reached with the keyboard, is read as the link’s description, and closes with Escape. The focus ring is drawn in the badge’s colour.
- The editor’s frame is named “PeopleWritten editor”, whatever your form is for. Give it a visible label or heading in your page, so people know what they’re writing.
Questions you’ll be asked
Does the badge send our readers’ data to PeopleWritten?
Each reader’s browser asks PeopleWritten whether the text matches, once per page load. It sends the certificate ID and a fingerprint of the article’s text, never the text, and no cookies. PeopleWritten counts the check against the piece, the site and the day. As with anything a page loads from another server, PeopleWritten’s server sees the reader’s IP address in order to answer. The count doesn’t include it, and no cookie is set. See Privacy.
Can PeopleWritten read our paywalled or unpublished text?
Not through the badge: it sends only the fingerprint. The record it links to shows how the piece was written, never its text.
What does the editor record about our writers?
Inside its own frame: keystrokes and their timing, edits, pauses, pointer movement and clicks, when the tab is hidden, and the text. Each session also notes your site’s address and the writer’s browser. The record goes straight from the frame to PeopleWritten; your page never sees it, and the editor can’t see the rest of your page. PeopleWritten staff can open a record to review a piece; showing its text is logged each time. The frame loads no analytics and sets no cookies; drafts, and anything not yet sent, are kept in the writer’s browser. Tell your writers in your form’s terms, and link to Privacy.