I am working with a fresh install of version 4.5.6
I can update an image’s description field, and it sticks, but adding tags fails every time.
I used SQL queries to manually add some tags to images in the database as part of troubleshooting, but I am completely lost at this point.
Reproduction steps
Unexpected result
The interface shows a success message. I can click the "edit" button again and the new tag shows up in the UI.
If I navigate away from the image, reload the image in the UI, and click "edit," the new tags are gone.
They were never saved to the database.
The JSON response returns HTTP 200 and claims success.
However, any tag that did not already exist in the chv_tags table (the ones I added manually) are completely discarded. Only tags that already exist in the database are kept and returned in the response.
Example from the actual response:
Manual INSERT into chv_tags + chv_tags_files works, and the tag then appears and persists. The application itself never creates new tags.
Error log message
No errors appear in the server logs, browser console, or on screen. The failure is completely silent.
I have not been able to trigger any errors in any way, shape, or form that would help debug this issue.
I can update an image’s description field, and it sticks, but adding tags fails every time.
I used SQL queries to manually add some tags to images in the database as part of troubleshooting, but I am completely lost at this point.
Reproduction steps
- Go to any existing image
- Click Edit
- In the Tags field, type one or more new tags that do not already exist in the system (example: someothertest)
- Click Save changes
Unexpected result
The interface shows a success message. I can click the "edit" button again and the new tag shows up in the UI.
If I navigate away from the image, reload the image in the UI, and click "edit," the new tags are gone.
They were never saved to the database.
The JSON response returns HTTP 200 and claims success.
However, any tag that did not already exist in the chv_tags table (the ones I added manually) are completely discarded. Only tags that already exist in the database are kept and returned in the response.
Example from the actual response:
- Submitted: "tags": "manualtest, someothertest"
- Returned: only "manualtest" (the one that already existed). "someothertest" was dropped.
- "tags": [] / empty tags_string when no pre-existing tags are present.
Manual INSERT into chv_tags + chv_tags_files works, and the tag then appears and persists. The application itself never creates new tags.
Error log message
No errors appear in the server logs, browser console, or on screen. The failure is completely silent.
I have not been able to trigger any errors in any way, shape, or form that would help debug this issue.