-
Notifications
You must be signed in to change notification settings - Fork 225
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Obsolete class names cause UDF pages to fail to publish with error Please implement a getFormField() on your EditableFormClass
#1086
Comments
Running into a similar situation.
would make dev/build run fine, but of course, we are reverting a module's core edit and introducing the error that this block of code tries to fix. Update:
|
I think this is a data vs code consistency issue and devs should take care of it. If it's within the UDF module itself that some form field type was removed, then it should be fixed here. One of the solutions if there's a comparable new class or a class that the obsolete field types should change to, use the remapping mechanism in legacy.yml such as
|
The trick that worked before doesn't work anymore. I have an archived userform and I did restore it to draft and also published it, yet I still encounter the same error I tried to edit the database table and expunge the records that point to the archived form ID, but I don't seem to have managed to do that, not to mention editing the database directly like that is not the best workaround. |
I just got stung by this during a new website launch. Please fix :) |
I am also experiencing this issue. |
Using 5.8.3.
Replication steps:
CheckboxField
(I assume this is just the first one in the list?)This seems to have been introduced with this commit:
c0a30f1
As now we are calling
getFormField()
in theonBeforeWrite()
method - which, if theClassName
value of a field is now invalid, falls back to the Parent class, which throws theuser_error
. Tested with a previous version (5.5.2) and the form successfully published and fixed theClassName
as expected.Proposed solutions:
null
and log an error instead of throwinguser_error
in the defaultgetFormField()
methodClassName
- I believeSiteTree
does this, warns you or something?The text was updated successfully, but these errors were encountered: