Upon enabling the fasttoggle module, I'm receiving these errors in multiples on most pages, including the update.php landing page (after running db updates):

Notice: Undefined offset: 1 in fasttoggle_field_merge_field_labels() (line 37 of /.../sites/all/modules/fasttoggle/module/fasttoggle_field/fasttoggle_field.module).
Invalid fasttoggle configuration detected for the 'field_collection_item' object type.

When I go to the fasttoggle admin page, it displays 3 checkboxes for items for some dropdowns/select lists that I have in my field collection, but they're not checked, nor can they be checked and saved. So this error seems to be permanent no matter what options are selected (though they can't be saved).

The Undefined offset error shows up at least 120+ times per page, on most pages, really annoying. Any chance for a fix?

Comments

nigelcunningham’s picture

I'm happy to help find a fix; sorry for the delay in replying.

What fasttoggle modules do you have en/disabled?

deanflory’s picture

Modules I have installed and enabled right now (but no longer getting the errors):

  • Fasttoggle 7.x-1.6
  • Fasttoggle Comment 7.x-1.6
  • Fasttoggle Modr8 7.x-1.6
  • Fasttoggle Node 7.x-1.6
  • Fasttoggle User 7.x-1.6

It may have been the following submodule as I have it turned off now but think I had it on before, can't remember now:

  • Fasttoggle Field 7.x-1.6

I'm also wondering if it isn't something to maybe do with an entity that doesn't have a base table for some reason as I got a response from another error and that module maintainer stated it could be that. I'm wondering if it isn't the registration module as there are schema errors reported.

nigelcunningham’s picture

I've tried installing registration, and am not getting any errors with the 7.x-1.3 version. Is that the one you're using?

deanflory’s picture

Yes, using Entity Registration 7.x-1.3.

nigelcunningham’s picture

I've managed to reproduce it, and am working on a fix. It's not hard - I just have limited time.

Nigel

deanflory’s picture

Yay, I'm not going crazy! ;P

Thanks for your time and effort, it is appreciated.

nigelcunningham’s picture

I've just pushed some new commits to git. Would you be able to try out the dev version once it has updated (or the git tree directly)?

deanflory’s picture

When Fasttoggle Field is enabled and I go to the admin page I get:

Invalid fasttoggle configuration detected for the 'field_collection_item' object type.
Invalid fasttoggle configuration detected for the 'field_collection_item' object type.

Under the Field Collection subsection on that admin page I have 3 options/checkboxes and all 3 of them are select lists/dropdowns. No idea if those are the problem or if it is other fields in those Field Collections, but I don't think I have anything other than text fields and date fields in there (off the top of my head).

deanflory’s picture

On another site that doesn't yet have any field collections set-up, I do not get the error on the fasttoggle admin page.

socialnicheguru’s picture

I have these errors when I enable
Invalid fasttoggle configuration detected for the 'command_button' object type.
Invalid fasttoggle configuration detected for the 'fieldable_panels_pane' object type.
Invalid fasttoggle configuration detected for the 'oa_wizard' object type.
Invalid fasttoggle configuration detected for the 'taxonomy_term' object type.

i think it might be in fasttoggle_fields.

When I disabled it, the above errors are not seen

socialnicheguru’s picture

any update on this or a path forward? I get so many errors for different entity_types.

nigelcunningham’s picture

Status: Active » Fixed

This should be fixed with 7.x-1.7 or the latest dev.

Please reopen this ticket if that's not the case.

nigelcunningham’s picture

Status: Fixed » Closed (fixed)