Last modified: 2014-09-17 17:56:07 UTC

Wikimedia Bugzilla is closed!

Wikimedia migrated from Bugzilla to Phabricator. Bug reports are handled in Wikimedia Phabricator.
This static website is read-only and for historical purposes. It is not possible to log in and except for displaying bug reports and their history, links might be broken. See T72902, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 70902 - Array to string conversion in TransformationalImageHandler.php:167
Array to string conversion in TransformationalImageHandler.php:167
Status: RESOLVED FIXED
Product: MediaWiki extensions
Classification: Unclassified
PagedTiffHandler (Other open bugs)
unspecified
All All
: Unprioritized normal (vote)
: ---
Assigned To: Nobody - You can work on this!
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2014-09-16 20:10 UTC by Sam Reed (reedy)
Modified: 2014-09-17 17:56 UTC (History)
8 users (show)

See Also:
Web browser: ---
Mobile Platform: ---
Assignee Huggle Beta Tester: ---


Attachments

Description Sam Reed (reedy) 2014-09-16 20:10:21 UTC
Running PHPUnit tests against PagedTiffHandler for https://gerrit.wikimedia.org/r/#/c/86413 results in different warnings locally to on Jenkins:

root@ubuntu64-web-esxi:/var/www/wiki/mediawiki/core/tests/phpunit# php phpunit.php --with-phpunitdir /var/www/wiki/mediawiki ../../extensionsgit/PagedTiffHandler/tests/PagedTiffHandlerTest.php
Will attempt loading PHPUnit from `/var/www/wiki/mediawiki`
#!/usr/bin/env php
PHPUnit 4.2.5 by Sebastian Bergmann.

Configuration read from /var/www/wiki/mediawiki/core/tests/phpunit/suite.xml

......E.......E.

Time: 5.6 seconds, Memory: 26.00Mb

There were 2 errors:

1) PagedTiffHandlerTest::testDoTransform
Array to string conversion

/var/www/wiki/mediawiki/core/includes/media/TransformationalImageHandler.php:167
/var/www/wiki/mediawiki/extensions/PagedTiffHandler/tests/PagedTiffHandlerTest.php:157
/var/www/wiki/mediawiki/core/tests/phpunit/MediaWikiTestCase.php:141

2) PagedTiffHandlerTest::testTransformNotTooBig
Array to string conversion

/var/www/wiki/mediawiki/core/includes/media/TransformationalImageHandler.php:167
/var/www/wiki/mediawiki/extensions/PagedTiffHandler/tests/PagedTiffHandlerTest.php:278
/var/www/wiki/mediawiki/core/tests/phpunit/MediaWikiTestCase.php:141

FAILURES!
Tests: 16, Assertions: 63, Errors: 2.
root@ubuntu64-web-esxi:/var/www/wiki/mediawiki/core/tests/phpunit#


167 is:
		wfDebug( __METHOD__ . ": creating {$scalerParams['physicalDimensions']} " .
			"thumbnail at $dstPath using scaler $scaler\n" );


$scaler can seemingly be: @return string|Callable One of client, im, custom, gd, imext, or a Callable array
Comment 1 Sam Reed (reedy) 2014-09-16 20:11:24 UTC
var_dump-ing $scaler gives:

array(2) {
  [0]=>
  object(PagedTiffHandler)#620 (0) {
  }
  [1]=>
  string(11) "transformIM"
}
Comment 2 Sam Reed (reedy) 2014-09-16 20:21:41 UTC
Not seemingly caused by https://gerrit.wikimedia.org/r/#/c/147718/ - the code is just moved... So presumably it's actually the extension at fault (issue isn't there with master of PagedTiffHandler, just with 86413 in it)
Comment 3 Andre Klapper 2014-09-17 09:23:05 UTC
(In reply to Sam Reed (reedy) from comment #2)
> So presumably it's actually the extension at fault

-> moving to its component
Comment 4 Gerrit Notification Bot 2014-09-17 15:56:49 UTC
Change 160978 had a related patch set uploaded by Reedy:
Array to string conversion in TransformationalImageHandler.php:167

https://gerrit.wikimedia.org/r/160978
Comment 5 Gerrit Notification Bot 2014-09-17 17:29:25 UTC
Change 160978 merged by jenkins-bot:
Array to string conversion in TransformationalImageHandler.php:167

https://gerrit.wikimedia.org/r/160978
Comment 6 Umherirrender 2014-09-17 17:56:07 UTC
successfully merged

Note You need to log in before you can comment on or make changes to this bug.


Navigation
Links