craft
craft copied to clipboard
Getting unknown property: craft\fields\Assets::siteId
Description
When I try to upload an image to an asset field I get the error:
Getting unknown property: craft\fields\Assets::siteId
Based on the stack trace it seems to be a draft issue, but what do I know. 😄
Steps to reproduce
These are the steps I took
- Create a section with no
Titlefield and a Default Title Format set - Create an Image field
- Add it to the section
- Edit the section and upload an image
- Save
Additional info
- Craft version: 5.8.13.1
- PHP version: 8.4.8
- Database driver & version: MariaDB 10.5.9
- Plugins & versions: CKEditor | 4.9.0 Contact Form | 3.1.0 Contact Form Extensions | 5.0.0 Datastar | 1.0.0-RC.4 SEO | 5.0.0
Recreated the whole Entry type and Section, now with the Title field present and no Default Title Format set, but now I get a similar error, but on a different Field.
Saving on other Entries with these Fields work fine.
Another discovery I made is that if I make my change (insert text) fast enough and press save (so no draft get's created) the entry is able to be saved with no errors.