I keep getting the following error when I play around with the sign-up module.

Notice: Undefined index: entity type in views_handler_field_entity->init() (line 44 of /Users/timothyjerickson/Sites/Beginner/sites/all/modules/views/handlers/views_handler_field_entity.inc).

Tried to isolate what caused it. I followed a process very close to the following:

1) Installed a fresh version of Drupal 7.21
2) Installed CTools, Views, and Sign-Up and turned them on
3) Created a "sign-up" available content type
4) Created some content and enabled "sign-up" on the content
5) Opened the view "signup_available_signups"
6) Added the field " Signup: Node: Signup link (Node: Signup link)"

At this point it broke and gave me this error.

Notice: Undefined index: entity type in views_handler_field_entity->init() (line 44 of /Users/timothyjerickson/Sites/Beginner/sites/all/modules/views/handlers/views_handler_field_entity.inc).

I'm attaching a screenshot of the view that broke along with the error message.

Comments

ycshen’s picture

I have tested it. this notice appeared when i did step 6.

drupal 7.19
ctools 7.x-1.1
views 7.x-3.7
Signup 7.x-1.x-dev

I will continue the test.and try to find why it happend.

ycshen’s picture

Status: Active » Patch (to be ported)
StatusFileSize
new845 bytes

hi stpaultim ,

I have patched this bug in the attachment. from my point of view it's a views bug.
I hope that my patch will help you.

Feel free to let me know if you would have any questions,I would be glad to explain in more details.

ycshen’s picture

Status: Patch (to be ported) » Active

the patch in #2 is wrong .

It's putting a 'node link' field on the 'signup' table, but it needs to be on the 'node' table for the method it's using to work correctly. Alternatively it needs to change its base handler to not inherit from a handler that expects to be attached directly to the entity table it's on.

the handler actually supports relationships, so doing that would certainly break the behavior.
One way to fix it would be to define the field (signup link) on the node table instead of signup (that's just an assumption).

deanflory’s picture

So, is there any activity on this issue? sgabe, ezra-g, dww? Is this module being actively maintained? This has been plaguing my site for some time now.

I reported this on the Views issues back on August 6, 2012 and still nothing...................................... ........................................
https://drupal.org/node/1714934

Notice: Undefined index: entity type in views_handler_field_entity->init() (line 44 of /.../sites/all/modules/views/handlers/views_handler_field_entity.inc).

bassplaya’s picture

I'm getting the same errors and I've also installed the Signup module. I'll try to get rid of those signup fields in views and see if I still get that error message. tbc