Created on 27 January 2025, 2 months ago

Problem/Motivation

There is an error occasionally:

Error message
Warning: Undefined array key "name" in Drupal\project_browser\Plugin\ProjectBrowserSource\DrupalDotOrgJsonApi->getProjects() (line 399 of modules/custom/project_browser/src/Plugin/ProjectBrowserSource/DrupalDotOrgJsonApi.php).
Drupal\project_browser\Plugin\ProjectBrowserSource\DrupalDotOrgJsonApi->getProjects() (Line: 170)
Drupal\project_browser\EnabledSourceHandler->doQuery() (Line: 125)
Drupal\project_browser\EnabledSourceHandler->getProjects() (Line: 59)
Drupal\project_browser\Controller\ProjectBrowserEndpointController->getAllProjects()
call_user_func_array() (Line: 123)

Steps to reproduce

I do not yet know how to reproduce this. It happens rarely, but usually when I'm manually testing an MR so I'm clicking around and doing a LOT.

My HUNCH is it has to do with some projects not having any maintainers or maintainer paragraphs (maybe just having to do with that data not having been migrated to the D10 site yet??)

Proposed resolution

Be more failsafe in our assumption that the name key exists in the array?

πŸ› Bug report
Status

Active

Version

2.0

Component

Code

Created by

πŸ‡ΊπŸ‡ΈUnited States chrisfromredfin Portland, Maine

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Merge Requests

Comments & Activities

Production build 0.71.5 2024