super-table icon indicating copy to clipboard operation
super-table copied to clipboard

Craft 4: Config Content Table Issue

Open jomotion11 opened this issue 3 years ago • 2 comments

Describe the bug

For my Craft 4 site, I made some simple config changes but when I applied them from my local to dev it wouldn't apply the changes. I checked "check content Table" on local and got this error.

Screenshot 2022-10-07 at 9 57 24 am

Steps to reproduce

Craft CMS version

4

Plugin version

2.1.4

Multi-site?

No response

Additional context

No response

jomotion11 avatar Oct 07 '22 09:10 jomotion11

I ran into similar issues when trying to apply the project config on my staging environment.

The following comments are from Matt at Servd who looked into the issue for me on their end.


It looks like you might have found a problem with Supertable's project config migration process.

The error:

Getting unknown property: craft\fields\Entries::contentTable

It's firing when a change to SuperTable's data is being applied. Guessing, but I'm thinking contentTable was a custom field which has been removed, but there was a supertable field referencing it. When the supertable field is being cleaned up it's trying to access the contentTable field, but it has already been deleted

There is a quirk of project config where it doesn't maintain the order that you delete things, it just tracks all the deletions then applies them in alphabetical order according to their UIDs. That might be playing a part


Only thing I'm not sure of from what they've said is about the contentTable. This has never been a field on my site, so guessing it's related to your plugin?

iamtompickering avatar Oct 07 '22 09:10 iamtompickering

I'm getting the exact same error 🤔

RyanRoberts avatar Dec 01 '22 16:12 RyanRoberts