# Troubleshooting

## 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](/lotline/beginner/file-formats/)). If it prints nothing, stop `npm run dev` with <kbd>Ctrl</kbd> + <kbd>C</kbd> and start it again. `trailingSlash`, `[settings.multilingual]`, a new language, and `fonts.json` 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 block overrides the section file, and the homepages and most inner pages have page blocks. Search the project for the old text to find where it really comes from. [How Lotline Works](/lotline/getting-started/how-lotline-works/) explains the order.
4. **Is the key spelled right?** Misspelled keys are ignored without an error in most files. Compare with the comments in the file.
5. **Is the page block named right?** A block with a wrong name, for example `questionsSection:` instead of `faqSection:`, is ignored without an error. Copy the name from [Sections](/lotline/customization/sections/).
6. **Is the value one of the allowed ones?** In section files and the contact page file, a misspelled value such as a layout name isn't reported. Copy the value from the comment next to it.
7. **Did you edit the other languages?** `/fr/` pages read the `french/` files, and `/ar/` pages read the `arabic/` files.
8. **Hard-refresh the browser**: <kbd>Ctrl</kbd> + <kbd>Shift</kbd> + <kbd>R</kbd> (<kbd>⌘</kbd> + <kbd>Shift</kbd> + <kbd>R</kbd> on Mac).

### A Listing Doesn't Show On `/properties/`
- The file needs a `status` (`"sale"` or `"rent"`) and a `price`. A listing without either is left out.
- Check `draft`. A listing with `draft: true` is hidden.
- Check that the file is in the folder of the language you are looking at. A home added to `english/` only won't show on `/fr/` or `/ar/`, and `npm run check-i18n` reports the missing files.
- The filters may be hiding it. Clear the search, or open `/properties/` without anything after the `?` in the address.

### The Filters Miss Some Homes
`propertiesPerPage` in `[listings]` is `0` by default, which puts every listing on one page so the filters see them all. With a number there, the list is split into pages. Set it back to `0` if your visitors search more than they browse.

### A Listing Shows No Agent Or Neighborhood
`agent` and `neighborhood` in the listing must be file names, without `.md`, that exist in `src/content/agents/<language>/` and `src/content/neighborhoods/<language>/`. A wrong name doesn't fail the check. The card or link is just missing. Copy the name from the file list.

### A Price Or Floor Area Looks Wrong
- `price` and `area` must be plain numbers: `615000`, not `"615,000"` or `$615000`.
- For a rental, `price` is the monthly rent. The "/mo" after it is `listings.perMonth` in `src/i18n/<language>.json`.
- The currency comes from `currency` in `[listings]`, and the number format from `locale` (empty follows the page language).
- Changing `areaUnit` doesn't convert the numbers. Update `area` in every listing yourself.
- The price on the featured card in the Properties menu is typed text in `src/config/menu.<language>.json`. Change it there when the listing's price changes.

### A Section Or Page Disappeared
- Check `enable` in the section file and in the page's block.
- Check `draft` in the page or entry.
- Check that the section's line is still in the route file in `src/pages/[...lang]/`.
- For list pages, check `draft` in the collection's `-index.md`.

### The Phone Number Or Call Link Is Missing
`phone` in `[business]` must be in international form: `+`, the country code, then digits only (`"+15550100199"`). Anything else prints a `[business]` warning and is ignored, and an empty `phone` hides every call link. Agent phone numbers are set the same way in each agent file.

### A Menu Item Is Missing
Check `"enable"` on the item in each `src/config/menu.<language>.json`. `"enable": false` hides it. Items in the header show in the order of the file. An item with children opens its menu and isn't a link itself, so put its own page first in its `"children"`. See [Menus](/lotline/customization/menus/).

### An Icon Doesn't Show
The icon name doesn't exist in Lucide. Copy the exact name from [lucide.dev/icons](https://lucide.dev/icons/), for example `"Trees"` or `"GraduationCap"`.

### 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 `3`, not `"3"`.
- **An agent file fails with an unknown key:** the agent schema is strict. Copy the keys of an existing agent and remove any you added.
- **An `.mdx` file fails on a line with `{`, `}`, or `<`:** put that text in backticks. This is also why `{phone}` and the other business tokens only work in `.md` files.

[Markdown, YAML, TOML & JSON](/lotline/beginner/file-formats/) explains each format.

### An Image Doesn't Appear
- Content images (`image:`, `gallery:`, and the `imageSrc` of the `<ImageItem>` shortcode) live in `src/assets/images/`, and the path starts with `/images/`. `/images/lotline/properties/my-home/cover.jpg` is `src/assets/images/lotline/properties/my-home/cover.jpg`.
- A path that points at a missing file shows nothing, with no error. Check the exact file name, including upper and lower case and the extension (`.jpg` vs `.jpeg`).

### A Form Doesn't Deliver
- Every form (viewing requests, inquiries, valuations, contact, and job applications) posts to `contactFormAction` with `contactFormProvider` in `config.toml`. The shipped address is a placeholder, and the dev server shows a warning inside the form until you change it.
- **Formsubmit:** confirm the activation email it sends after the first message.
- **Formspree:** the address must be your form's own endpoint (`https://formspree.io/f/...`), and `contactFormProvider = "formspree"`.
- **Netlify:** form detection must be on in the Netlify dashboard, `contactFormProvider = "netlify"`, and `contactFormAction = "/"`.
- **Newsletter (the `pine` footer):** the Mailchimp `formAction` under `[settings.subscription]` must be your list's URL, with every `&amp;` from the embed code changed to `&`.
- Test from the live site after each change.

### `npm ci` Or `npm install` Fails
- Check `node -v`: it must be 22.12 or later.
- Delete the `node_modules` folder and run `npm ci` again.
- Use npm, not Yarn or pnpm: the theme ships a `package-lock.json`.

### 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.

### `astro-check` Fails On Translations
`npm run astro-check` runs `check-i18n` first. It fails when a key exists in `src/i18n/en.json` but not in another language's file (or the reverse), when a key in `en.json` isn't read by any code, when a language's menu has a different structure from the English one, or when a content file exists in one language folder only. Add the missing key, menu item, or file to the other language. If you don't need a language, see [Internationalization](/lotline/customization/internationalization/).

### The Build Warns About The Site URL
A yellow `[site] The site URL is still a placeholder` line in the `npm run build` output means `[site] baseUrl` is still `https://example.com`. Set it to 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. After you change the logo, tagline, or description, run `npm run generate-og-image` to redraw the shared social image.

### A "Change Layout" Button Shows On My Site
That button belongs to the theme's demo. Set `enable = false` under `[settings.layoutSwitcher]` in `config.toml` and build again.

<Aside type="tip">
  Still stuck? Contact [support](https://getastrothemes.com/contact/) with the
  exact error message, the command you ran, and your Node.js version
  (`node -v`).
</Aside>