Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
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.
Comment | File | Size | Author |
---|---|---|---|
#4 | file_entity-notice_undefined_offset_menu_translate-2533816-4.patch | 672 bytes | lwalley |
Comments
Comment #1
gmclelland CreditAttribution: gmclelland commentedand here's the patch as suggested by https://www.drupal.org/u/lwalley.
Hope that helps
Comment #2
lwalley CreditAttribution: lwalley commentedThanks! 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
Comment #3
gmclelland CreditAttribution: gmclelland commentedAs requested, also changed the $entity_admin_bundle to 4.
Comment #4
lwalley CreditAttribution: lwalley commentedLooks like there was a typo in the path: manage% versus manage/% attached patch with correction.
Comment #5
aleksijohansson CreditAttribution: aleksijohansson at Wunder commented#4 worked perfectly! Fixed the issue and no side effects that I can see.
Comment #6
Dave ReidCommitted #4 to 7.x-2.x. Thanks everyone!
Comment #9
sch2 CreditAttribution: sch2 commentedIn the case you're upgrading from beta to dev, don't forget to clear the cache or the warning won't dissapear.
Comment #10
maxplus CreditAttribution: maxplus commentedThanks,
issue also fixed for me after using current dev and clearing cache