Error when using type: files within a structure field


#1

Hi together,

does anyone else gets the error Undefined class constant 'CLASS_ALIAS' when using type: files in a structure field? In my case it happens only in version 3.0.1

carousel:
  label: Carousel
  type: structure
  fields:
    # Cover
    cover:
      label: Cover
      type: files

#2

No, I can’t reproduce this. Is that the complete blueprint?


#3

That’s the complete blueprint. I only have the issue in 3.0.1.

title: Carousel

icon: image

status:
  draft: true
  listed: true

columns:
  - width: 2/3
    sections:
      content:
        type: fields
        fields:
          carousel:
            label: Carousel
            type: structure
            fields:
              # Cover
              cover:
                label: Cover
                type: files

#4

And this doesn’t happen if you use the same field outside of the structure field?

And you use the 3.0.1 release, not the prerelease?


#5

Yes I get the same error when I use the same field outside of the structure field. I use the 3.0.1 release.


#6

Can you reproduce the error in a fresh StarterKit?


#7

I just ran some tests and I found the issue. It’s caused by a plugin where after updating to 3.0.1 the plugin dependencies where not updated. So after running composer update --no-dev within the plugin folder it works again.