Closed (fixed)
Project:
Less CSS Preprocessor
Version:
7.x-2.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
14 Apr 2012 at 11:41 UTC
Updated:
2 May 2012 at 18:50 UTC
Hi,
I've just updated from 7.x-2.4 to 2.5 (and installed lessphp 0.3.4 in /libraries), and since that (with Less developper mode enabled), I've got the same php notice on every page load:
Notice : Undefined property: stdClass::$is_vararg in lessc->patternMatch() (line 1229 in /home/liegebio/www/sites/all/libraries/lessphp/lessc.inc.php).
Seems related to the lessphp library itself, but I don't know if the cause is coming from the module or not.
Comments
Comment #1
dale386 commentedSame problem here. Any ideas?
Comment #2
corey.aufang commentedGo here (https://github.com/leafo/lessphp/tags) and try v0.3.3 of the lessphp library.
Let me know if you're still showing this error.
Also, is this causing any other problems than just seeing the notice? Are your .css.less sheets still compiling correctly??
One more thing, usually errors of type 'Notice' are not critical to the execution of php and you might want to change your PHP error_reporting threshold.
Comment #3
jdanthinne commentedWorking fine with lessphp 0.3.3. No more notices.
Comment #4
rooby commentedSame problem here. Downgrading to 0.3.3 fixed it.
Comment #5
jdanthinne commentedComment #6
corey.aufang commentedThis is actually an notice in the lessphp library and not an issue with the module.
You can go here (https://github.com/leafo/lessphp/issues) and report the issue to the maintainer of lessphp.
As I said before, a Notice in php is not usually an Error and in most cases should not affect the operation of the code, in this case being the compilation of your .css.less files.
If you want to use the latest version of lessphp (which I recommend doing) and not see the error, you can change your error_reporting configuration in your php.ini, or in your settings.php with http://php.net/manual/en/function.error-reporting.php .
Comment #7
jdanthinne commentedAllright, I'll fill a bug for the lessphp library.
Unfortunately, in most shared hostings, even if you change settings.php, the directive is not applied, and forced by php.ini or other .htaccess directives, so I'd prefer to leave with notices and fix the bugs :-)
Comment #8
corey.aufang commentedBased on this commit to lessphp im calling this fixed.