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.
Problem/Motivation
- Fix an Internal Server Error:Error:
Call to a member function getBody() on null in Drupal\vmware\Service\VmwareService->request() (line 330 of /var/www/html/web/modules/contrib/cloud/modules/cloud_service_providers/vmware/src/Service/VmwareService.php) #0 /var/www/html/web/modules/contrib/cloud/modules/cloud_service_providers/vmware/src/Service/VmwareService.php(138): Drupal\vmware\Service\VmwareService->request('post', 'rest/com/vmware...', Array) #1 /var/www/html/web/modules/contrib/cloud/modules/cloud_service_providers/vmware/src/Controller/ApiController.php(193): Drupal\vmware\Service\VmwareService->login() #2 /var/www/html/web/modules/contrib/cloud/modules/cloud_service_providers/vmware/src/Controller/ApiController.php(127): Drupal\vmware\Controller\ApiController->updateEntityList('vm', 'vms', 'dii') #3 [internal function]: Drupal\vmware\Controller\ApiController->updateVmList('dii') #4 /var/www/html/web/core/lib/Drupal/Core/EventSubscriber/EarlyRenderingControllerWrapperSubscriber.php(123): call_user_func_array(Array, Array) #5 /var/www/html/web/core/lib/Drupal/Core/Render/Renderer.php(573): Drupal\Core\EventSubscriber\EarlyRenderingControllerWrapperSubscriber->Drupal\Core\EventSubscriber\{closure}()
- Also found the following occurrences:
modules/cloud_service_providers/aws_cloud/src/Service/Pricing/PricingService.php:217: $data = (string) $response->getBody(); modules/cloud_service_providers/vmware/src/Service/VmwareService.php:233: $output = $response->getBody()->getContents(); modules/cloud_service_providers/terraform/src/Service/TerraformService.php:471: $output = $response->getBody()->getContents(); modules/cloud_service_providers/terraform/src/Service/TerraformService.php:475: $response_info = $response->getBody()->getContents();
Comment | File | Size | Author |
---|---|---|---|
#2 | 3170566-2.patch | 3.08 KB | yas |
Comments
Comment #2
yas@xiaohua-guan
Could you please review the patch?
Comment #3
Xiaohua Guan CreditAttribution: Xiaohua Guan commented@yas
It looks good to me. So I changed the status to RTBC. Thanks.
Comment #4
yas@xiaohua-guan
Thank you for your review. I'll merge the patch to
3.x
and close this issue asFixed
.Comment #6
yasComment #8
yas