After looking through the cue I found the following post: http://drupal.org/node/867880

Though the author recanted and post it elsewhere, I found that it fixed an issue I was having with my development site.

I run a development version of my site and my watchdog entries were overflowing with:

Invalid argument supplied for foreach() in /<path_to_home>/drupal/sites/all/modules/contrib/less/less.module on line 70.

everytime an outside user attempted to load the site. Admittedly I'm using a custom maintenance-page.tpl.php file, but even after removing it I was still seeing the error when the Minnelli theme loaded the off-line message.

With the following fix, as suggested by jhedstrom, I was able to make the errors go away.

diff --git less.module less.module
index 0fd17d5..110f9c3 100644
--- less.module
+++ less.module
@@ -71,7 +71,9 @@ function less_preprocess_page(&$vars, $hook) {
  * Implements MODULE_preprocess_maintenance_page().
  */
 function less_preprocess_maintenance_page(&$vars, $hook) {
-  _less_build($vars, $hook);
+  if (isset($vars['css'])) {
+    _less_build($vars, $hook);
+  }
 }
 
 /**

It appears that in maintenance mode the $vars['css'] variable isn't set and causes LESS to throw an error.

I am by no means an expert, but this is what helped me.

Comments

merauluka’s picture

Issue summary: View changes

Removed home directory information.

corey.aufang’s picture

Issue summary: View changes
Status: Active » Closed (won't fix)

This appears to not be a problem in D7.

There will not be a fix for 6.x.