Page MenuHomePhabricator

Warning: Invalid argument supplied for foreach() in lessc.inc.php on line 507
Closed, DeclinedPublic

Description

Warning: Invalid argument supplied for foreach() in /usr/local/apache/common-local/php-1.23wmf15/includes/libs/lessc.inc.php on line 507

Sorry, no stack trace...

Details

Reference
bz61706

Event Timeline

bzimport raised the priority of this task from to Medium.Nov 22 2014, 2:57 AM
bzimport set Reference to bz61706.
bzimport added a subscriber: Unknown Object (MLST).

https://github.com/wikimedia/mediawiki/blob/wmf/1.23wmf15/includes/libs/lessc.inc.php#L504-L517

	protected function compileSelectors($selectors) {
		$out = array();
		foreach ($selectors as $s) {

Only caller is in compileCSSBlock() which accesses $block->tags, which can be null in pushBlock().

Mostly unchanged in the latest version. Moved to L476
https://github.com/leafo/lessphp/blob/v0.5.0/lessc.inc.php#L476-L480.

No matches in logstash for the past 7 days though.

Krinkle edited subscribers, added: ori; removed: Unknown Object (MLST).

That is no more occurring on Wikimedia servers.

Krinkle lowered the priority of this task from Medium to Lowest.Sep 18 2015, 10:38 PM

rMWea862efa75a7: Replace leafo/lessphp with oyejorge/less.php

As of this commit, we no longer use the leafo/lessphp library in ResourceLoader.