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 Normal.Nov 22 2014, 2:57 AM
bzimport set Reference to bz61706.
bzimport added a subscriber: Unknown Object (MLST).
Reedy created this task.Feb 20 2014, 10:01 PM
demon set Security to None.

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 updated the task description. (Show Details)Mar 3 2015, 4:20 AM
Krinkle edited subscribers, added: ori; removed: Unknown Object (MLST).
hashar added a subscriber: hashar.Jun 1 2015, 2:40 PM

That is no more occurring on Wikimedia servers.

hashar removed a subscriber: hashar.
Restricted Application added a subscriber: Aklapper. · View Herald TranscriptSep 18 2015, 9:12 PM
Krinkle lowered the priority of this task from Normal to Lowest.Sep 18 2015, 10:38 PM
Krinkle closed this task as Declined.Aug 5 2016, 1:52 AM

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

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