Troubleshooting
The queue does not run
The dashboard says The queue is not running when something waits and no run is scheduled, or when something has been waiting for a while without a run.
The plugin puts a lost run back by itself: on every screen of the administration, every few minutes from your public pages, every day, and after every update (an update replacing the plugin's files can make WordPress drop it). The log says The queue had no scheduled run… when it did.
- WP-Cron waits for a visit. On a quiet site, nothing runs until someone visits. Click Process now, or set up a real cron (see Installation).
- WP-Cron is turned off (
DISABLE_WP_CRON) and the server's cron does not runwp-cron.php: check the crontab. - No API key: every screen says so. Add it in Settings → Connection.
- A cap is reached: Translations stopped shows on every screen of the plugin, with the reason and a Resume button. Raise the cap in Settings → Costs, or wait for the next day or month.
- The content is open in the editor: a saved content is not translated while someone has it open (WordPress's own edit lock); it is translated once the editor is closed. What you launch by hand is not held back.
- Automatic translation is off: saved contents wait for you (they show as late).
Translations launched by hand start at once from the screen; in a deferred batch (Many pages at once), they come back within the hour.
A persistent object cache (Redis, Memcached, W3 Total Cache)
Some object caches do not serve the administration's screens: W3 Total Cache does so by default. A setting saved there, or the queue's run scheduled there, reaches the database but not the cache that WP-Cron and the public pages read. The queue then waits although the server's cron runs, and a setting may seem not to apply until the cache is emptied.
From version 0.5.4, the plugin checks its queue and its settings against the database at every cron run and from the dashboard, and refreshes the cache when they differ. The queue's message says so: The queue's event was scheduled in the database but missing from the persistent object cache. If it comes back often, let the object cache serve the administration too: in W3 Total Cache, Performance → Object Cache → Enable caching for wp-admin requests.
A translation failed
The cell says why. The most common reasons:
- No price for the model: enter the prices of that model in Settings → Advanced → Prices used for the estimates.
- Length out of proportion with the source, Markup differs from the source, Shortcodes differ from the source: the answer did not match the source and was not kept, so nothing wrong reaches your page. Translate now tries again; if it fails again, correct the segment by hand. To see the refused translation beside its source:
wp lrob-ai-translator inspect <type> <id>. A word in square brackets ("[Video] …") is text and is translated; only a shortcode registered on the site is kept as it is. - A refusal or an error of Anthropic: the exact message is in AI Translator → Log.
A text stays in the original language
- A text of the theme or of another plugin ("Read more", a date, a form label): it comes from its own translation files. Install the language in Settings → General → Site Language once, or ask the author for a translation; texts written directly in a classic (PHP) theme's templates, without WordPress's translation functions, cannot be reached. A block theme's templates, parts and patterns are translated (Translations → Templates and template parts).
- A block of another plugin rendered on the fly (a list of products, a feed): its text is not in the page's content. The Translations screen says how many such blocks a page has. A developer can declare its text attributes with
lrob_ai_translator_block_attributes(see For developers). - A part marked not to be translated: class
notranslateortranslate="no". - An address not translated (Settings → What is translated), or a page excluded from the Translations screen: it shows as it is.
- Sensitive data in the paragraph: a card number, an IBAN, a password or a key keeps the whole paragraph out of translation.
- A page cache still serves the old page: see Page caches.
- The page is not translated yet in that language: see its state in Translations.
A translated address answers "not found"
- The translations are not shown on the site yet (Show the translated pages on the site is off): log in to see the preview, or turn them on.
- The page is not translated yet and A page not translated yet is set to Not found.
- Another translation plugin (TranslatePress, WPML, Polylang, Weglot…) is still active: translations are not served until it is deactivated.
- Settings → Permalinks is set to Plain: choose another structure.
The language switcher does not show
It shows only once the translations are shown on the site, and only when the site has at least two languages.
Costs look different from my invoice
The plugin's costs are estimates, worked out from the tokens of each call and the prices in Settings → Advanced. Your invoice is Anthropic's: check that the prices match those of your model.