Troubleshooting
Find your symptom below. If none matches, copy the full error from the terminal into your AI assistant with: “Explain this error in one sentence, then fix it with the smallest change.”
My Change Doesn’t Show Up
- Did you change
config.toml? The terminal should print[toml-watcher] ✓ Generatedafter you save. If it prints✖ Conversion failed, the file has a format mistake (see File Formats). If it prints nothing, stopnpm run devwith Ctrl + C and start it again. Changes to languages,[settings.multilingual], the site URL, andtrailingSlashalways need a restart. - Is the dev server running? The terminal should show
npm run devwithout errors. - Did you edit the right file? A page’s named block wins over the section file. Search the project for the old text to find where it really comes from. See How Covena Works.
- Is the key spelled right? Misspelled keys are usually ignored without an error. Compare with the comments in the file.
- Is the page block named right? A block with a wrong name, for example
heroPortrait:instead ofheroPortraitNavy:, is ignored without an error. Copy the name from the comment at the top of the page’s content file. - Did you edit the other languages?
/fr/pages read thefrench/files, and/ar/pages read thearabic/files. A change in English doesn’t reach them. - Hard-refresh the browser: Ctrl + Shift + R (⌘ + Shift + R on Mac).
A Section Or Page Disappeared
- Check
enablein the section file and in the page’s block.enable: falsehides the section. - Check
draftin the page or entry.draft: truekeeps it out of the production build. - Check that the section’s line is still in the page file in
src/pages/[...lang]/. - For list pages, check
draftin the collection’s-index.md.
An Attorney, Result, Or Practice Area Is Missing From A List
Sections and pages list entries by slug, such as relatedAttorneys in a practice area file or attorneys in an office file. If a slug has a typo, or the entry is a draft, the entry is skipped and the build prints a warning like [attorneys] No entry named "henry-lawsen". Fix the slug to match the file name, in every language.
The Phone Number Or Email Is Wrong
- The phone and email in the header, footers, and hero call links come from
[settings.contactInfo]inconfig.toml. Keep the link format:"[+44 20 7946 0321](tel:+442079460321)", with the number as shown in the brackets and the number as dialled aftertel:. - The main address and opening hours are text in each
src/i18n/<lang>.json, undercontactInfo. - Each office has its own phone, email, and hours in
src/content/offices/<language>/. - Attorney profiles have their own
email,emailUrl,phone, andphoneUrl.
See Firm Info.
A Menu Item Is Missing
Check the item in each src/config/menu.<lang>.json. An item with "enable": false is hidden. A new page needs its own menu link: adding a practice area or an office doesn’t add one by itself. See Menus.
The Language Switcher Isn’t In The Header
The header has room for it from 1320 px wide. On narrower screens it is in the mobile menu, and the footer has a language menu at every width. showLanguageSwitcher in [settings.header] turns the header one off, and with [settings.multilingual] enable = false there is none at all.
The Quick Exit Button Is Only On Home 3
That is the default. Set everyPage = true in [settings.quickExit] to show it in every header. enable = false removes it everywhere. See Quick Exit.
An Icon Doesn’t Show
The icon name doesn’t exist in Lucide. Copy the exact name from lucide.dev/icons, written in lowercase with dashes, for example "scroll-text" or "key-round".
The Site Shows An Error After I Edited A File
- YAML (frontmatter): check indentation (2 spaces, no tabs), quotes around text with
:or#, and that list items start with-. - JSON (menus, i18n): check for a missing or extra comma, usually at the end of the item you edited.
- “Expected boolean, received string”: write
true, not"true". - “Expected number”: write
4, not"4". - An
.mdxfile fails on a line with{,}, or<: put that text in backticks.
Markdown, YAML, TOML & JSON explains each format.
“Image not found”
Content files write images as /images/covena/<folder>/<file>, and the file lives in src/assets/images/covena/<folder>/. The build stops with Image not found when neither src/assets/images/ nor public/ has the file at that path. Check:
- the folder:
/images/covena/attorneys/my-photo.jpgissrc/assets/images/covena/attorneys/my-photo.jpg - the exact file name, including upper and lower case and the extension (
.jpgor.jpeg)
A Form Doesn’t Deliver
- The form says nothing was sent: that is demo mode.
contactFormActioninconfig.tomlis empty, so the form checks the fields and sends nothing. Set your endpoint. See Forms. - Formsubmit:
contactFormProvider = "formsubmit.co"(the default), and confirm the activation email Formsubmit sends after the first message. - Formspree: the address must be your form’s own endpoint (
https://formspree.io/f/...), andcontactFormProvider = "formspree". - Netlify:
contactFormProvider = "netlify"andcontactFormAction = "/". It only works on a site deployed on Netlify, with form detection on in the Netlify dashboard. - One form goes somewhere else: a form’s own
actionin its content file wins overcontactFormAction. - Newsletter: the footer form on Home 2 uses
formActionin[settings.subscription], and the panel on/insights/usesformActioninsrc/content/sections/<language>/newsletter.md. Both take your Mailchimp embedded form URL. - Test from the live site after each change.
npm ciFails
- Check
node -v: it must be 22.12 or later. - Delete the
node_modulesfolder and runnpm ciagain. - Use npm: the theme ships a
package-lock.json, andnpm ciinstalls exactly those versions.
Build Fails With A Rename Or Cache Error
Don’t run astro-check, build, and dev at the same time in the same folder, because they share a cache. Stop everything, then run one command at a time. If it keeps failing, delete the .astro folder and try again.
npm run verifyFails
verify runs several checks in a row and stops at the first one that fails. Read the last lines of the output:
format:checklists files whose formatting differs from the theme’s Prettier settings. Runnpm run format, thenverifyagain.- The i18n key check fails when
src/i18n/en.json,fr.json, andar.jsondon’t have the same keys. Add the missing key to the other files. - The localized link check fails on an internal link written with a language prefix, such as
/fr/fees/. Write/fees/instead: the theme adds the prefix. - The link check lists internal links, anchors, and files in the built site that lead nowhere.
The Build Warns About The Site URL
A yellow [site] The site URL is not set line at the end of the npm run build output means [site] baseUrl is empty. Without it there is no sitemap, and canonical links, RSS feeds, llms.txt, and Open Graph URLs point to the build host. Set your real address in config.toml, or set a SITE_URL environment variable for the build.
The Live Site Has Wrong Links Or Previews
Set [site] baseUrl in config.toml to your real address and deploy again. If your host sets a SITE_URL environment variable, it wins over baseUrl, so check that value too. The shared social image is public/images/og-image.jpg: replace it with your own.