You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have a section in my Craft install that uses a radio field's value to conditionally show other fields. I decided I didn't need the radio field anymore, so I deleted it before deleting the conditionals on the section settings page. Now I'm unable to:
Create a new entry for that section
Edit existing entries in that section
Edit the section settings
I get this error:
Invalid Configuration – [yii\base\InvalidConfigException](http://www.yiiframework.com/doc-2.0/yii-base-invalidconfigexception.html)
Invalid field UUID: 23e0243c-314c-442e-9557-dcd723962e0a
That makes sense—it's looking for a field that doesn't exist anymore, but there's not a way to "undo" that change. I tried creating the field again, but it has a different ID, so it doesn't fix the problem.
Steps to reproduce
Create a section with two fields: 1) a text field and 2) a radio field with values "foo" and "bar"
In the section settings, make the text field only visible if the radio field value is "foo"
Delete the radio field
Visit the section settings page
Expected behavior
A couple ideas:
Condition should automatically be removed once a field is removed
Condition should fall back to true if the original field can't be found
Actual behavior
Can't access the section's content
Craft CMS version
4.1.0.2
PHP version
8.1.4
Operating system and version
Darwin 21.5.0
Database type and version
MySQL 8.0.28
Image driver and version
GD 8.1.4
Installed plugins and versions
Control Panel Nav 4.0.2
DigitalOcean Spaces Filesystem 2.0.0
Expanded Singles 2.0.0-beta.1
FeedMe 5.0.4
Redactor 3.0.1
SuperTable 3.0.0-beta.6
The text was updated successfully, but these errors were encountered:
What happened?
Description
I have a section in my Craft install that uses a radio field's value to conditionally show other fields. I decided I didn't need the radio field anymore, so I deleted it before deleting the conditionals on the section settings page. Now I'm unable to:
I get this error:
That makes sense—it's looking for a field that doesn't exist anymore, but there's not a way to "undo" that change. I tried creating the field again, but it has a different ID, so it doesn't fix the problem.
Steps to reproduce
Expected behavior
A couple ideas:
true
if the original field can't be foundActual behavior
Can't access the section's content
Craft CMS version
4.1.0.2
PHP version
8.1.4
Operating system and version
Darwin 21.5.0
Database type and version
MySQL 8.0.28
Image driver and version
GD 8.1.4
Installed plugins and versions
The text was updated successfully, but these errors were encountered: