I keep having this warning message appear.

Warning: in_array() expects parameter 2 to be array, null given in lessc_parser->openString() (line 2575 of /Users/myuser/Sites/mytheme/public_html/sites/all/libraries/lessphp/lessc.inc.php).

I was using an older version of LESS and thought that upgrading would solve it but the problem persists.

Has anyone ran across this in the past? When I go to that file I don't notice anything unusual going on.

This is the array at line 2575.

if (in_array($tok, $rejectStrs)) {
	$count = null;
	break;
}
CommentFileSizeAuthor
lessc.txt82.31 KBCJdriver
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

corey.aufang’s picture

Assigned: CJdriver » Unassigned

Can you tell me the version of lessphp that you are using and the LESS code that the error is be generated with?

corey.aufang’s picture

Issue summary: View changes
Status: Active » Closed (cannot reproduce)

I was unable to reproduce your error.

I'm guessing that the issue was due to either a LESS syntax error that the library did not handle well, or that you were using a feature that is not supported by the version of the leafo/lessphp library.

I using the new oyejorge/less.php library, http://lessphp.gpeasy.com/#integration-with-other-projects

If you are still having an issue, please reopen this ticket.