# Groups and files

Source: https://uglydev.com/docs/troubleshooting/troubleshooting-groups-and-files/
Updated: 19 November 2026

## "Changed in the file" on a card

The file in your theme (`ugly-json/<name>.json`) says something different from what is saved. Open **Sync (n)** and choose **Sync** (the group takes the file) or **Discard changes** (the file takes what is saved). See [Sync](https://uglydev.com/docs/files-sync-and-the-terminal/sync/).

## "The file could not be written"

PHP cannot write in your theme's `ugly-json/` folder. The group is saved in the database anyway. Give the folder permission to write, or the file will not match.

## "The file of this group has a problem"

The JSON cannot be read as a group (a name that is not allowed, for instance). A bar says what is wrong, and saving waits until you fix it. Use **Settings → Tools → Check the JSON files** to find which file.

## A group appeared by itself

A new file arrived with the theme (a `git pull`, an upload, a copy). It shows as **Not saved yet**. It already works on the site, because UglyFields reads it from the file. Open **Sync (n)** to save it in the database.

## I changed a file and nothing happened

The file is not applied by itself. Open **Sync (n)** and press **Sync**, or `wp ugly-fields sync` Pro.

## Save says the file changed

You had the screen open while the file changed. Save refuses to write over it. Press **Show what the file says now**.
