Closed (cannot reproduce)
Project:
Less CSS Preprocessor
Version:
6.x-2.6
Component:
Code
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
16 Mar 2011 at 21:52 UTC
Updated:
17 Sep 2012 at 22:38 UTC
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
Comment #1
corey.aufang commentedCould you provide the LESS code you are using when you see these errors?
Comment #2
corey.aufang commentedTake a look at the latest dev and tell me if that fixes your problem.
Comment #3
JayKayAu commentedCould this be a PHP 5.3 issue?
Comment #4
corey.aufang commentedI'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.
Comment #5
corey.aufang commentedStatus update.
Comment #6
corey.aufang commentedClosing as no update.