I got this errors while installing
Notice: Undefined index: entity_type in flag_flag::factory_by_array() (line 105 of C:\xampp\htdocs\profiles\....\modules\flag\includes\flag\flag_flag.inc).
Notice: Undefined index: handler in flag_create_handler() (line 99 of C:\xampp\htdocs\profiles\....\modules\flag\flag.inc).
Notice: Undefined index: entity_type in flag_flag::factory_by_array() (line 105 of C:\xampp\htdocs\profiles\....\modules\flag\includes\flag\flag_flag.inc).
Notice: Undefined index: handler in flag_create_handler() (line 99 of C:\xampp\htdocs\profiles\....\modules\flag\flag.inc).
Notice: Undefined index: entity_type in flag_flag::factory_by_array() (line 105 of C:\xampp\htdocs\profiles\....\modules\flag\includes\flag\flag_flag.inc).
Notice: Undefined index: handler in flag_create_handler() (line 99 of C:\xampp\htdocs\profiles\....\modules\flag\flag.inc).
Notice: Undefined index: entity_type in flag_flag::factory_by_array() (line 105 of C:\xampp\htdocs\profiles\....\modules\flag\includes\flag\flag_flag.inc).
Notice: Undefined index: handler in flag_create_handler() (line 99 of C:\xampp\htdocs\profiles\....\modules\flag\flag.inc).

CommentFileSizeAuthor
#5 1776058.flag_.flag-api-2-update.patch3.84 KBjoachim

Comments

joachim’s picture

Status: Active » Postponed (maintainer needs more info)

Were you upgrading from 2.x? Do you have any default flags, and are they in features or modules (and which modules)?

kaizerking’s picture

Yes, updating from 2.x also i got the same error, then i completely reinstalled the recruiter distro with the 3.x ,while doing this also i got the same errors. yes , there are flags in features which were in recruiter distro.like job book mark flag, which are in default.

joachim’s picture

All the default flags will need updating for Flag 3.x.

joachim’s picture

Title: error while installing » 2.x default flags produce error messages
Priority: Normal » Major
Status: Postponed (maintainer needs more info) » Active

Looking into this now.

2.x flags don't have 'entity_type' set and hence make everything go haywire...

joachim’s picture

Status: Active » Needs review
StatusFileSize
new3.84 KB

Could you try this patch please?

It should disable your flags that are defined in code and invite you to update them.

kaizerking’s picture

it is working for me
thanks for the quick work

joachim’s picture

Title: 2.x default flags produce error messages » update path for API 2 flags -- 2.x default flags produce error messages
Status: Needs review » Fixed

Likewise! Thanks for trying it out.

Issue #1776058 by joachim: Changed Flag API to 3; added update for API 2 flags.

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.