Sync writes its own notices. There is no central log to check afterwards, so the place a message appears tells you what produced it. Admin notices cover activation, authors and stale previews. The Sync screen holds the stored error, media warnings and connection warnings. The review screen explains conflicts. Toasts count results. A red box under the buttons shows the live REST error.
Some strings are translated in PHP, some are hardcoded English in the screen’s JavaScript and some come from StaticScope’s Git layer. The wording below is the wording you will see. Placeholders in angle brackets are filled at runtime.
Admin notices
| Message | Trigger | Fix |
|---|---|---|
Content sync needs StaticScope to be active. | StaticScope is missing or inactive when the add-on loads. Shown on every admin screen. | Install or activate StaticScope. |
This preview is missing synced changes. followed by the stored reason and Open Sync, then build again. | A preview was built without a clean sync, and the current user can manage options. The Open Sync part is a link to the Sync screen. | Fix the Sync problem, then build again. Publishing this preview stays blocked until you do. |
| Author notice on the post edit screen (see below). | The post’s real author has no local account with that login. | Create the account or change the author. |
The author notice reads: “This post was written by X. There is no account with the login Y here, so it is held by Z until one exists.” It ends with a Create the account link and “, or change the author in the post.” for users who can create users, or “Ask an administrator to create the account, or change the author in the post.” for everyone else.
Creating the account later reassigns still-held posts automatically. Until then the post keeps the author’s login and name in the document; only the local holder changes.
On the Sync screen
| Message | Trigger | Fix |
|---|---|---|
The stored error string, plus a Check the connection link. | staticscope_sync_error is not empty. Usually written by cron or a build preflight. | Depends on the message. Start with Test connection and the tables below. |
%s file couldn’t be fetched and stayed as it was. / %s files couldn’t be fetched and stayed as they were. Then: Sync again to retry. If it keeps happening, check the repository’s file size limit. | One or more media files were skipped during a manual sync or preflight. | Sync again. If it repeats, check host and PHP limits, including the host’s per-file limit. |
%1$s file is over the %2$s limit and stays on this site. Other sites won’t receive it. (plural variant follows.) Up to three file names, then Reduce the file, or raise the limit with the staticscope_sync_media_max_bytes filter. | A referenced attachment is larger than the current media cap, 25 MB by default. | Reduce the file or raise the filter. The post still syncs; the file does not. |
This connection uses plain HTTP, so the access token travels unencrypted. Use an HTTPS address before you rely on it. | The repository URL starts with http:// and the host is not exactly localhost or 127.0.0.1. | Use an HTTPS address. |
Content changed since the last build (%s). Build a new preview, then publish it live. | Content was applied after the last build, and a build exists. | Build a preview, then publish it. |
Content has been synced, but this site hasn’t been built yet. Build a preview when you’re ready. | Content was applied and there is no build. | Build a preview. |
A third stale variant, Content changed since the last build, also appears when a published post changed locally since the build. The stale notices link to Go to Overview.
The status band
| Text | Condition |
|---|---|
%s change needs your review / %s changes need your review | At least one conflict is queued. |
Nothing is pushed until you choose. Your site keeps your version meanwhile. | Subtitle while conflicts exist. |
%s change is ready to sync / %s changes are ready to sync | Local changes exist and there are no conflicts. |
The first sync sends your posts, pages and images to <repo>. It can take a minute. | Local changes exist and the site has never synced. |
Your edits go to <repo> when you sync. | Local changes exist and a previous sync exists. |
Content is in step | No conflicts and no changes, but conversation cards exist. |
%1$s thing is worth a conversation below. Last checked %2$s. | Conversation cards exist. |
Everything is in step | Nothing to review, no changes and no conversation cards. |
Last checked %s. / Synced %s | Clear-state subtitle and hero meta. |
Content repository panel: Not yet or <time> ago. | Never synced, or the last sync time. |
All caught up, Nothing needs your review. Posts and pages are in step., Last synced %1$s · %2$s | Empty state, no conflicts and no conversation cards. |
When there has been no sync, the subtitle helper returns never, so you will read “Last checked never.” and “Synced never”. A configured site with no content can show “Everything is in step” with “Last checked never.” rather than a distinct first-run headline.
On the review screen
| Text | Meaning |
|---|---|
| Conflict, Added twice, Deleted, Media, Worth a chat | The badges for the four conflict kinds, plus the conversation card badge. |
Untitled | The item has an empty title. |
Changed on another site. %s | Header above the summary sentence. |
No changes here. | The selected diff has no textual difference, or there is nothing to show. |
It was deleted on another site. Nothing disappears here until you decide. | Delete conflict warning. Buttons are Keep it here and Delete here too. |
The file is different on each site. Choose which one to keep. | File picker for a media conflict. |
Before: %s, Empty, A different file | Per-field table: the previous value, an empty value, and a binary difference. |
| Save choices, Keep mine, Take theirs, Edit merge, Save merge, Merged version | Controls for resolving. All changes goes back to the queue. |
Toasts
| Toast | Meaning |
|---|---|
%s change pulled. / %s changes pulled. | This site took that many documents and attachment records from the repository. |
%s change pushed. / %s changes pushed. | That many documents were added, changed or removed remotely. It does not count record-only or environment commits. |
%s change needs review. / %s changes need review. | The sync stopped at the conflict gate. |
Resolved. | A conflict choice saved successfully. The follow-up sync may still be blocked by other conflicts. |
Message copied. Paste it wherever you talk. | “Copy a message” on a conversation card. |
Ignored. It’ll come back if it changes. | A conversation card was dismissed. |
Token removed. Add a new one when you’re ready to sync. | Remove token completed. |
Disconnected. Your content is untouched. | Disconnect completed. |
Connected. | Connect and check saved the settings. |
Everything is in step. | Fallback when a sync returns no counts. Also appears when the only change was the environment record. |
Something went wrong. Please try again. | Fallback when an error has no message. |
The strings “Syncing…”, “Checking the repository…” and “Saving…” exist in the translation files but the script does not use them. The button is disabled and a spinner appears instead. If you go looking for those words on screen, you will not find them.
The red error box
| Message | Trigger | Fix |
|---|---|---|
Connect a content repository first. | Sync or check called before a repository and branch are saved. | Complete step 2 of setup. |
A sync is already running. Give it a moment, then try again. | The site lock is held. HTTP 409. | Wait. A crashed run’s lock is treated as stale after ten minutes. |
Enter the repository’s clone address, such as https://github.com/you/site-content.git. | Connect submitted with an empty URL. | Paste the clone address, ending in .git. |
The token wasn’t accepted. Check that it can read and write this repository. | Git returned 401 or 403. | Check the token, its owner and its write scope. On GitHub, select the repository and grant Contents read and write. Organisation tokens may need approval. |
That repository wasn’t found. Check the address, and that the token can see it. | Git returned 404. | Check the address ends in .git. A private repository also looks like 404 when the token cannot see it. |
The repository couldn’t be reached. Check the address and try again. | A Git error with no message. | Check DNS, TLS and the host’s status. |
| Any other Git exception message | HTTP 502. The host’s own text can be included. | Read the host text; it is usually accurate about the cause. |
That isn’t a choice this screen offers. | Resolve sent an unknown choice. | Use ours, theirs, merge or delete. |
That item can’t be ignored. | Dismiss sent an empty ID. | Reload the screen and use the card’s Ignore button. |
| Any other exception message | HTTP 500: import failure, invalid document, upload error. | Use the tables below; the message names the failing record. |
You don’t have permission to sync content. | A user without manage_options opens the Sync screen. | Use an administrator account. |
Manual errors vanish on reload. The red box is client-side. Only cron and build preflight write staticscope_sync_error. If you need the text, copy it before reloading; the stored notice is not the same error.
Media and import errors
| Message | What it means | Fix |
|---|---|---|
The attachment ID is missing or malformed. | An attachment record’s ID is not a lower-case UUID. | Fix the file name and the id field. |
An attachment record is malformed. | An attachments/*.json file does not match the record shape. | Correct or remove that record in the repository, then sync again. |
A file didn’t arrive with the sync. | The record points at a blob the media branch did not deliver. | Sync again. If it repeats, check the repository’s media branch and host limits. |
A file’s location isn’t safe to write. | The record’s path tries to escape uploads. | Fix the path in the repository record. |
A file couldn’t be saved to uploads. | Filesystem permissions or disk space. | Check uploads permissions and free space. |
The attachment has no file. | The record has no blob or path. | Fix the record; it cannot be imported without a file. |
The attachment path isn’t safe. | The record’s path is invalid as a relative uploads path. | Fix the record’s path. |
The media list is malformed. | A document’s media array is not a list of attachment UUIDs. | Fix the document in the repository. |
Unknown document format. | The document’s format is missing or not 1. | Check the file is a Sync document, not something else with a similar name. |
The ID is missing or malformed. | A document ID is not a lower-case UUID. | Fix the file name and the id field. |
The post type does not sync. | The document type is not post or page. | Custom post types do not travel. Remove the document or convert the content. |
The status is unknown. | The status is outside publish, draft, pending, private, future. | Use a syncable status. Trash is a deletion, not a status. |
The title is missing. / The content is missing. / The excerpt is missing. / The slug is missing. | A required string is absent. Empty strings are allowed; missing keys are not. | Add the key in the repository file. |
The author is missing. | The author object or login is absent. | Add {login, name}. |
The terms are missing. | The terms array is absent. | Add an array, empty if needed. |
The date is missing or not UTC. | The date is not exactly YYYY-MM-DDTHH:MM:SSZ. | Write UTC in that format. |
The attribution is malformed. | updated_by or updated_at is the wrong shape. | Fix the attribution object. |
The site ID is missing or malformed. | An environment record has no valid site UUID. | Fix environments/<site>.json. |
These are validation errors, not merge decisions. They usually mean a file was hand-edited, generated by an older build or truncated in transit. An unreadable items/*.json that the ledger cannot parse is preserved rather than repaired, so it will not always produce one of these messages.
Git errors
| Message | Cause and fix |
|---|---|
The repository’s branch tip isn’t a commit. | The ref points at something that is not a commit. Check the branch setting and the repository’s state. |
A record has an ID that can’t be stored. | A document or attachment ID cannot be used as a file name. Find the offending record and fix its ID. |
The content repository changed while this site was syncing. | Someone pushed first. The sync retries once. If it persists, sync again; nothing is lost. |
Couldn’t create a temporary file for the upload. | The server cannot write to its temp directory. Check permissions and disk space. |
A folder in the repository is missing from the pack. | The fetched pack is incomplete. Retry; if it repeats, check the host. |
A folder in the repository is malformed. | A tree object is not a tree. The repository may be damaged; restore from a known good commit. |
A commit in the repository has no tree. | Same family of repository damage. Inspect the commit with Git. |
The repository didn’t confirm the update. | The server accepted the connection and rejected the pack. Common causes: branch protection, a file over the host’s limit, or a small post_max_size on a self-hosted server. The server’s reply is included where present. |
Build and publish messages
A preview can continue without a clean sync. A publish-bound build cannot. When a preview continues, the reason is stored and shown on the Overview; publishing that preview is blocked until a new build. The add-on throws these messages and StaticScope displays them.
| Context | Message |
|---|---|
| Preview, lock held | Stored reason: A sync is already running. |
| Publish-bound build, lock held | A sync is already running. Give it a moment, then try again. |
| Preview, repository unreachable | Stored reason: The content repository couldn’t be reached. |
| Publish-bound build, repository unreachable | Couldn’t reach the content repository, so nothing was published. Check the connection on the Sync screen, then try again. |
| Preview, other sync failure | Stored reason: Content couldn’t be synced. |
| Publish-bound build, other failure | Content couldn’t be synced, so nothing was published. Check the Sync screen for the details, then try again. |
| Preview, conflicts | Stored reason: %s change is waiting for review. / %s changes are waiting for review. |
| Publish-bound build, conflicts | Content has %s change waiting for review. Resolve it on the Sync screen, then publish again. |
| Publishing a preview built without a clean sync | This preview was built without your team’s latest synced content, so publishing it could lose their changes. <reason> Check the Sync screen, build a new preview, then publish. |
| Publishing a build older than content | Content changed since this build. Build a preview, then publish it live so the live site gets the newer content. |
| Overview blocked reason | Content changed since this build. Build a preview, then publish it. |
| Overview warning | This preview is missing synced changes. <reason> Open Sync, then build again. |
Background sync
There is no screen for a cron run. A failure is stored in staticscope_sync_error and appears the next time the Sync screen loads. Success clears the stored error and the skipped-media count. Cron does not write a new skipped count, so the media warning is a manual-sync and preflight feature, not a background one.
If background sync is not running at all, check that automatic sync is on, that the site is configured and that WP-Cron gets traffic. A quiet staging site with no visitors will not run it. Add a real cron job hitting wp-cron.php.
Messages that outlive their cause
Three quirks are worth knowing because they make a fixed problem look unfixed. Manual sync errors are not persisted, so a reload loses them. A successful resolve does not clear an older stored error or skipped count, so a red notice can survive a clean resolution. Disconnecting leaves the built-without-sync reason behind, so the Overview warning can persist until another build. These are code-derived, not promises in the UI.
Next
- Troubleshooting: the wider StaticScope checklist.
- Conflicts and review: clearing the queue that blocks a push.
- Recover a failed publish: when the build or deploy is the problem.