Back to Custom Fields Support

info52189
info52189

Hi, In some cases when creating a field, I get the following error: "Undefined offset: 0" on line 398 of website/modules/backend/FormWidgets/Repeater.php

I have no idea what causes this, as it seems to be random. It doesn't seem to matter whether the repeater max is 0, 1 or 99. The entered field do not seem to matter either.

Can you please provide me with a fix?

Thank you.

info52189
info52189

Update: It seems to happen when two group field names of separate custom fields are alike. For example: I have a field with group field name: "tarieven". When I add another field with the group field name "tarieventabel" I get the error describe above when attempting to fill that field.

Vladimir
Vladimir

What type of custom fields are you creating? (for Blog, User or CMS Page)

Update: Yes, I was able to reproduce the error. I will try to solve this problem as soon as possible.

Last updated

Vladimir
Vladimir

It seems that the reason is not in my plugin. I created a issue on github.

https://github.com/octobercms/october/issues/4808

I will wait for someone to answer me. And if I do not get the answer, I simply prohibit the creation of similar field group names in the backend.

Vladimir

1-5 of 5