Skip to content
New: Customize your theme with an AI assistant. Read the guide

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

  1. Did you change config.toml? The terminal should print [toml-watcher] ✓ Generated after you save. If it prints ✖ Conversion failed, the file has a format mistake (see File Formats). If it prints nothing, stop npm run dev with Ctrl + C and start it again. Changes to languages, [settings.multilingual], the site URL, and trailingSlash always need a restart.
  2. Is the dev server running? The terminal should show npm run dev without errors.
  3. 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.
  4. Is the key spelled right? Misspelled keys are usually ignored without an error. Compare with the comments in the file.
  5. Is the page block named right? A block with a wrong name, for example heroPortrait: instead of heroPortraitNavy:, is ignored without an error. Copy the name from the comment at the top of the page’s content file.
  6. Did you edit the other languages? /fr/ pages read the french/ files, and /ar/ pages read the arabic/ files. A change in English doesn’t reach them.
  7. Hard-refresh the browser: Ctrl + Shift + R (⌘ + Shift + R on Mac).

A Section Or Page Disappeared

  • Check enable in the section file and in the page’s block. enable: false hides the section.
  • Check draft in the page or entry. draft: true keeps 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 draft in 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] in config.toml. Keep the link format: "[+44 20 7946 0321](tel:+442079460321)", with the number as shown in the brackets and the number as dialled after tel:.
  • The main address and opening hours are text in each src/i18n/<lang>.json, under contactInfo.
  • Each office has its own phone, email, and hours in src/content/offices/<language>/.
  • Attorney profiles have their own email, emailUrl, phone, and phoneUrl.

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 .mdx file 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.jpg is src/assets/images/covena/attorneys/my-photo.jpg
  • the exact file name, including upper and lower case and the extension (.jpg or .jpeg)

A Form Doesn’t Deliver

  • The form says nothing was sent: that is demo mode. contactFormAction in config.toml is 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/...), and contactFormProvider = "formspree".
  • Netlify: contactFormProvider = "netlify" and contactFormAction = "/". 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 action in its content file wins over contactFormAction.
  • Newsletter: the footer form on Home 2 uses formAction in [settings.subscription], and the panel on /insights/ uses formAction in src/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_modules folder and run npm ci again.
  • Use npm: the theme ships a package-lock.json, and npm ci installs 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:check lists files whose formatting differs from the theme’s Prettier settings. Run npm run format, then verify again.
  • The i18n key check fails when src/i18n/en.json, fr.json, and ar.json don’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.

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.

Type something to search...