I'm running the module with a file that's parsed without errors by LESS.app and produces working CSS. However, whenever my CSS files are rebuilt from the LESS file - on every page load in development mode. I get several (17) warnings:

warning: Invalid argument supplied for foreach() in /var/www/modules/less/lessphp/lessc.inc.php on line 774.

Line 774 to 779 of the above-mentioned reads:

					foreach ($value['__tags'] as $innerTag) {
						$visitedMixins[$innerTag] = true; // prevent rendering this block multiple times
						$new_tags[] = trim($outerTag.
							($innerTag{0} == $this->selfSelector || $innerTag{0} == ':'
								? ltrim($innerTag, $this->selfSelector) : ' '.$innerTag));
					}

I've had a look at my mixins - specifically I've removed references to CSS3PIE, tried URLs with and without quotes, and checked that my parameters are defined correctly. All mixins only one parameter.

Can I safely ignore this warning?

Comments

corey.aufang’s picture

Could you provide the LESS code you are using when you see these errors?

corey.aufang’s picture

Take a look at the latest dev and tell me if that fixes your problem.

JayKayAu’s picture

Could this be a PHP 5.3 issue?

corey.aufang’s picture

I'm not sure on the PHP version possibility, but I doubt it.

I would highly suggest downloading the latest version of the module and following the instructions on the project page to download and install the latest version of the lessphp library.

corey.aufang’s picture

Status: Active » Postponed (maintainer needs more info)

Status update.

corey.aufang’s picture

Category: bug » support
Status: Postponed (maintainer needs more info) » Closed (cannot reproduce)

Closing as no update.