Problem/Motivation

We receive a lot of warnings from the AcquiaTelemetryService's getTelemetryData() method.

Full message:

Warning: Undefined array key "core" in Drupal\acquia_connector\Services\AcquiaTelemetryService->getTelemetryData() (line 192)

It looks like there is a logic beforehand to retrieve Lightning extensions in use. If the module version matches the core version, it assumes it is a core module. I guess in our case, there are no such and this is why we get the warning message.

Proposed resolution

Add a check for existing key.

CommentFileSizeAuthor
#2 check-core-key-3469459-1.patch463 bytesyivanov
Command icon Show commands

Start within a Git clone of the project using the version control instructions.

Or, if you do not have SSH keys set up on git.drupalcode.org:

Comments

yivanov created an issue. See original summary.

yivanov’s picture

StatusFileSize
new463 bytes

Rajan Kumar@2026 made their first commit to this issue’s fork.

yivanov’s picture

Issue summary: View changes

rajan kumar@2026’s picture

Status: Active » Needs review

Hi @yivanov

I have successfully applied the patch mentioned above#2 and created the MR. Thank you.

japerry made their first commit to this issue’s fork.

  • japerry committed 4863b0ea on 4.x
    Issue #3469459 by japerry: Undefined array key "core"
    
japerry’s picture

Status: Needs review » Fixed

The earlier MR doesn't address the root issue, but there was some odd things going on with the logic in the getTelemetryData method.. updated the tests to verify correct data is sent and merged!

Status: Fixed » Closed (fixed)

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