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

dale386’s picture

Same problem here. Any ideas?

corey.aufang’s picture

Go 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.

jdanthinne’s picture

Working fine with lessphp 0.3.3. No more notices.

rooby’s picture

Same problem here. Downgrading to 0.3.3 fixed it.

jdanthinne’s picture

Title: Notices with latest version » Notices with version 7.x-2.5 and phpless library 0.3.4
corey.aufang’s picture

Title: Notices with version 7.x-2.5 and phpless library 0.3.4 » Notice with lessphp 0.3.4
Version: 7.x-2.5 » 7.x-2.x-dev
Priority: Major » Normal

This 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 .

jdanthinne’s picture

Allright, 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 :-)

corey.aufang’s picture

Status: Active » Fixed

Based on this commit to lessphp im calling this fixed.

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.