Coming from #2460537: Notice: Undefined offset: 3 in _menu_translate(), it was suggested at #2460537-15: Notice: Undefined offset: 3 in _menu_translate() to change file entity's code to fix the error Notice: Undefined offset: 3 in _menu_translate() when visiting admin/structure/file-types.

You will only see this error if Panelizer 3.x-dev is installed.

Here is a simple patch that make the error go away.

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

gmclelland’s picture

Status: Active » Needs review
FileSize
586 bytes

and here's the patch as suggested by https://www.drupal.org/u/lwalley.

Hope that helps

lwalley’s picture

Thanks! You'll probably also want to set $entity_admin_bundle to 4. Also, the following issue and it's patch may be useful to get Panelizer integration working: #2450235: Panelizer settings aren't saved

gmclelland’s picture

FileSize
671 bytes

As requested, also changed the $entity_admin_bundle to 4.

lwalley’s picture

Looks like there was a typo in the path: manage% versus manage/% attached patch with correction.

aleksijohansson’s picture

Status: Needs review » Reviewed & tested by the community

#4 worked perfectly! Fixed the issue and no side effects that I can see.

Dave Reid’s picture

Status: Reviewed & tested by the community » Fixed

Committed #4 to 7.x-2.x. Thanks everyone!

  • Dave Reid committed 223f451 on 7.x-2.x authored by lwalley
    Issue #2533816 by gmclelland, lwalley, aleksijohansson: Fixed PHP notice...

Status: Fixed » Closed (fixed)

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

sch2’s picture

In the case you're upgrading from beta to dev, don't forget to clear the cache or the warning won't dissapear.

maxplus’s picture

Thanks,
issue also fixed for me after using current dev and clearing cache