everything works fine but this error appear on mysite.com/admin/config/people/accounts/display since MAJ security of display suite

Notice: Undefined index: entity_type in masonry_formatter_is_supported() (line 253 of /sites/all/modules/masonry/masonry_formatter/masonry_formatter.module).
Notice: Undefined index: type in masonry_formatter_is_supported() (line 261 of /sites/all/modules/masonry/masonry_formatter/masonry_formatter.module).
Notice: Undefined index: cardinality in masonry_formatter_is_supported() (line 263 of /sites/all/modules/masonry/masonry_formatter/masonry_formatter.module).

Comments

swentel’s picture

Project: Display Suite » Masonry API
Version: 7.x-2.2 » 7.x-1.x-dev

Those errors are coming from a different module.

Anonymous’s picture

Title: error since security MAJ on user manage display with mansory » Undefined index: entity_type error for user profiles
jawi’s picture

same issue here

henkit’s picture

Same one here

jens_as’s picture

Have anyone found out how to solve this one...?

b-ry’s picture

I've been having the same issue. I turned off Masonry Field Formatter portion of the module and it seemed to do the trick.

13rac1’s picture

Project: Masonry API » Masonry Fields

Updating project module

13rac1’s picture

Set #2054965: Undefinied Index Errors as a duplicate of this.

fantom84’s picture

Issue summary: View changes

my tempory solution - add to the masonry_fields.module in function masonry_fields_formatter_supported this lines:


++ if (!isset($context['instance']['entity_type'])) {
++   return FALSE;
++ }
  if ($context['instance']['entity_type'] == 'ctools' && $context['instance']['bundle'] == 'ctools') {
    return FALSE;
  }

This is check $context['instance']['entity_type'] exists or not

eturbin’s picture

Status: Active » Needs review
StatusFileSize
new516 bytes

I created a patch based on fantom84's code in comment #9.

eturbin’s picture

I updated the patch and combined the two if statements.

dom.’s picture

Status: Needs review » Fixed

I could not reproduce this at all with display suite (7.x-2-12). However the fix seems reasonnable so I'm still commiting it in 7.x-3.x branch. Hopefully it's no mistake to trust you guys for review ^^ :p
Thanks all !

  • Dom. committed 58bfefd on 7.x-3.x
    Issue #1926142 by eturbin: Undefined index: entity_type error for user...

Status: Fixed » Closed (fixed)

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