This error appear in www.mywebsite.com/admin/report/status
Notice: Undefined index: value at theme_status_report() (line 2583 of /var/www/mywebsite/modules/system/system.admin.inc).

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

dkguru’s picture

I got the same after enabling AIS (Adaptive Image). Clearing Cache != solution

dkguru’s picture

Never mind. After correct setup of .htaccess, the error goes away :-)

I used:

# AIS: Adaptive Image Style
RewriteBase /index.php
RewriteCond %{REQUEST_URI} ^(.+)/files/styles/adaptive/(.+)$
RewriteCond %{REQUEST_URI} !/modules/image/sample.png
RewriteCond %{HTTP_COOKIE} ais=([a-z0-9_-]+)
RewriteRule ^(.+)/files/styles/adaptive/(.+)$ $1/files/styles/%1/$2 [R=302,L]
massiws’s picture

Same problem here:

  • Drupal 7.32
  • AIS 7.x-1.6+

Returned 'value' key in $requirements array should be a string, not an array.
I fix with these changes:

--- ***/sites/all/modules/ais/ais.install
+++ ***/sites/all/modules/ais/ais.install
@@ -42,7 +42,7 @@
     'title' => $t("Adaptive Image Styles"),
     'description' => "AIS appears to be configured correctly",
     'severity' => REQUIREMENT_OK,
-    'value' => array(),
+    'value' => '',
   );
 
   if ($phase == 'runtime') {
@@ -51,7 +51,7 @@
         'title' => $t("Adaptive Image Styles"),
         'description' => $t("It doesn't look like you're running Apache.  Please verify that the web server settings required are in place for AIS to work."),
         'severity' => REQUIREMENT_WARNING,
-        'value' => array(),
+        'value' => '',
       );
       return $requirements;
     }
@@ -62,7 +62,7 @@
         'title' => $t("Adaptive Image Styles"),
         'description' => $t("The htaccess file could not be checked, please verify that AIS is working correctly."),
         'severity' => REQUIREMENT_WARNING,
-        'value' => array(),
+        'value' => '',
       );
       return $requirements;
     }
@@ -99,7 +99,7 @@
         'title' => $t("Adaptive Image Styles"),
         'description' => $t("There was a problem finding standard Drupal rules in the htaccess file, please verify that AIS is working correctly."),
         'severity' => REQUIREMENT_WARNING,
-        'value' => array(),
+        'value' => '',
       );
       return $requirements;
     }
@@ -116,7 +116,7 @@
         'title' => $t("Adaptive Image Styles"),
         'description' => $t("Found multiple RewriteBases configured in the .htaccess file, please correct this."),
         'severity' => REQUIREMENT_ERROR,
-        'value' => array(),
+        'value' => '',
       );
     }
     elseif (sizeof($matches[1]) != 1 or !isset($matches[1][0])) {
@@ -124,7 +124,7 @@
         'title' => $t("Adaptive Image Styles"),
         'description' => $t("RewriteBase not configured in .htaccess file, AIS requires that the rewritebase be configured."),
         'severity' => REQUIREMENT_ERROR,
-        'value' => array(),
+        'value' => '',
       );
     }
 
@@ -139,7 +139,7 @@
         'title' => $t("Adaptive Image Styles"),
         'description' => $t("RewriteBase appears to be configured incorrectly in the .htaccess file.  The RewriteBase is set to '%bad', but should be '%good'.", array('%bad' => $rewritebase, '%good' => $script)),
         'severity' => REQUIREMENT_ERROR,
-        'value' => array(),
+        'value' => '',
       );
     }
 
@@ -167,7 +167,7 @@
         'title' => $t("Adaptive Image Styles"),
         'description' => $t("Couldn't find the AIS htaccess rules in the htaccess file.  Without these rules, AIS will not work."),
         'severity' => REQUIREMENT_ERROR,
-        'value' => array(),
+        'value' => '',
       );
       return $requirements;
     }
@@ -179,7 +179,7 @@
         'title' => $t("Adaptive Image Styles"),
         'description' => $t("The rules added for AIS to work need to come before Drupals index.php redirect rules."),
         'severity' => REQUIREMENT_ERROR,
-        'value' => array(),
+        'value' => '',
       );
       return $requirements;
     }

Hope this helps,
Max

MrPaulDriver’s picture

Any chance of an official patch for this?

massiws’s picture

Here is the patch.
Max.