Problem/Motivation

Fix the following errors:

Warning: Undefined array key "pod" in k8s_form_cloud_launch_template_k8s_copy_form_alter() (line 1265 of modules/contrib/cloud/modules/cloud_service_providers/k8s/k8s.module).

k8s_form_cloud_launch_template_k8s_copy_form_alter() (Line: 472)
Drupal\Core\Extension\ModuleHandler->alter() (Line: 838)
Drupal\Core\Form\FormBuilder->prepareForm() (Line: 280)
Drupal\Core\Form\FormBuilder->buildForm() (Line: 73)
Drupal\Core\Controller\FormController->getContentResult()
call_user_func_array() (Line: 123)
Drupal\Core\EventSubscriber\EarlyRenderingControllerWrapperSubscriber->Drupal\Core\EventSubscriber\{closure}() (Line: 622)
Drupal\Core\Render\Renderer->executeInRenderContext() (Line: 121)
Drupal\Core\EventSubscriber\EarlyRenderingControllerWrapperSubscriber->wrapControllerExecutionInRenderContext() (Line: 97)
Drupal\Core\EventSubscriber\EarlyRenderingControllerWrapperSubscriber->Drupal\Core\EventSubscriber\{closure}() (Line: 183)
Symfony\Component\HttpKernel\HttpKernel->handleRaw() (Line: 76)
Symfony\Component\HttpKernel\HttpKernel->handle() (Line: 54)
Drupal\simple_oauth\HttpMiddleware\BasicAuthSwap->handle() (Line: 53)
Drupal\Core\StackMiddleware\Session->handle() (Line: 48)
Drupal\Core\StackMiddleware\KernelPreHandle->handle() (Line: 28)
Drupal\Core\StackMiddleware\ContentLength->handle() (Line: 116)
Drupal\page_cache\StackMiddleware\PageCache->pass() (Line: 90)
Drupal\page_cache\StackMiddleware\PageCache->handle() (Line: 48)
Drupal\Core\StackMiddleware\ReverseProxyMiddleware->handle() (Line: 51)
Drupal\Core\StackMiddleware\NegotiationMiddleware->handle() (Line: 53)
Drupal\Core\StackMiddleware\AjaxPageState->handle() (Line: 51)
Drupal\Core\StackMiddleware\StackedHttpKernel->handle() (Line: 715)
Drupal\Core\DrupalKernel->handle() (Line: 19)

Issue fork cloud-3539874

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

baldwinlouie created an issue. See original summary.

baldwinlouie’s picture

Status: Active » Needs review

@yas, please review this patch fixing PHP warnings.

yas’s picture

Status: Needs review » Reviewed & tested by the community

@baldwinlouie

Thank you for the fix. I’ll merge the patch into 7.x and 8.x; and close this issue as Fixed.

yas’s picture

Title: Fix warning: Warning: Trying to access array offset on null in k8s_form_cloud_launch_template_k8s_copy_form_alter() » Fix warning: Trying to access array offset on null in k8s_form_cloud_launch_template_k8s_copy_form_alter()

  • yas committed 13290e18 on 8.x authored by baldwinlouie
    Issue #3539874 by baldwinlouie, yas: Fix warning: Trying to access array...

yas’s picture

Status: Reviewed & tested by the community » Fixed

  • yas committed bf49802d on 7.x authored by baldwinlouie
    Issue #3539874 by baldwinlouie, yas: Fix warning: Trying to access array...

Status: Fixed » Closed (fixed)

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