- Issue created by @loze
- Assigned to mohd sahzad
- Issue was unassigned.
- Status changed to Needs review
about 1 year ago 5:17am 30 October 2023 - Open on Drupal.org โCore: 9.5.x + Environment: PHP 7.4 & MySQL 8last update
about 1 year ago Waiting for branch to pass - ๐ฎ๐ณIndia mohd sahzad
I have updated this issue in attached patch1, please review
- Open on Drupal.org โCore: 9.5.x + Environment: PHP 7.4 & MySQL 8last update
about 1 year ago Waiting for branch to pass - ๐ฌ๐งUnited Kingdom hdotnet
Mohd's patch almost worked...
Added an is_array check prior to array_key_exists..
- ๐บ๐ธUnited States dave reid Nebraska USA
Can you provide more details on how to replicate this? I have yet to see this error on any of my sites.
- ๐ฎ๐ณIndia mukhtarm
I am too not geting this reproduced in local. In fact i wonder when i enable
Enable/Disable local tasks display
what are the changes would effect? As node edit and delete already there. (may somebody point here would help) - ๐ฌ๐งUnited Kingdom hdotnet
I was doing too much at the time to properly trace why the error was happening so Iโm afraid this will be hard to replicate. Iโm working with a very old site (all be it up
to date) and there is a lot going on in local tasks.In general, I would say the if statement as it stands isnโt doing enough to ensure the integrity of the array. I guess this is why we are here?
- ๐ฎ๐ณIndia Sandeep_k New Delhi
Hi, We need more details here, I have tested this on Drupal- 10.2 versions & unable to reproduce this.
- ๐ท๐ธSerbia vaish
I run into this after installing content_entity_clone module on a site where admin_toolbar_tools is enabled and "Enable/Disable local tasks display" setting is turned on. Content entity clone uses
hook_menu_local_tasks_alter()
to create new local task but it doesn't define#active
key. Fix is included in the MR for โจ Admin content add link in operation Needs review . Unfortunately, I had trouble reproducing the issue. I'm getting it on a project with many contrib and custom modules but not on the clean Drupal install. Judging by the previous comments, issue is extremely rare but it may happen under very specific circumstances. -
japerry โ
committed 417799a5 on 3.x
Issue #3397570: Add check for Undefined array key "#active".
-
japerry โ
committed 417799a5 on 3.x
- Status changed to Fixed
5 months ago 7:26pm 2 August 2024 Automatically closed - issue fixed for 2 weeks with no activity.