craft icon indicating copy to clipboard operation
craft copied to clipboard

Getting unknown property: craft\fields\Assets::siteId

Open patrikkaprinay opened this issue 5 months ago • 3 comments

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

Image Image

Steps to reproduce

These are the steps I took

  1. Create a section with no Title field and a Default Title Format set
  2. Create an Image field
  3. Add it to the section
  4. Edit the section and upload an image
  5. 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

patrikkaprinay avatar Aug 07 '25 09:08 patrikkaprinay

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.

Image

Saving on other Entries with these Fields work fine.

patrikkaprinay avatar Aug 07 '25 09:08 patrikkaprinay

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.

patrikkaprinay avatar Aug 07 '25 09:08 patrikkaprinay