Salesforce Encrypt has an invalid operand which breaks the status report page

8.x-3.3 salesforce/modules/salesforce_encrypt/salesforce_encrypt.install

Error

The website encountered an unexpected error. Please try again later.
Error: Unsupported operand types in salesforce_encrypt_requirements() (line 19 of modules/contrib/salesforce/modules/salesforce_encrypt/salesforce_encrypt.install).

The attached patch will correct the issue from not being able to see status page @: /admin/reports/status

diff --git a/docroot/modules/contrib/salesforce/modules/salesforce_encrypt/salesforce_encrypt.install b/docroot/modules/contrib/salesforce/modules/salesforce_encrypt/salesforce_encrypt.install
index 9bd5a07dc6..8df1747625 100644
--- a/docroot/modules/contrib/salesforce/modules/salesforce_encrypt/salesforce_encrypt.install
+++ b/docroot/modules/contrib/salesforce/modules/salesforce_encrypt/salesforce_encrypt.install
@@ -16,7 +16,7 @@
 function salesforce_encrypt_requirements($phase) {
   $requirements = [];
   if ($phase == 'runtime') {
-    $requirements['salesforce_encrypt'] += [
+    $requirements['salesforce_encrypt'] = [
       'severity' => REQUIREMENT_ERROR,
       'description' => t('This module is deprecated and will be removed in Salesforce 8.x-4.0. <a href="@url">See change record for additional information.</a>', ['@url' => 'https://www.drupal.org/node/3034230']),
     ];

Comments

armyguyinfl created an issue. See original summary.

aaronbauman’s picture

Component: salesforce.module » Miscellaneous
Status: Patch (to be ported) » Fixed

Committed, thanks for the patch!

Status: Fixed » Closed (fixed)

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