Last modified: 2013-01-15 03:31:02 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 T45686, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 43686 - TimedMediaHandler: 2x implode() Invalid arguments passed
TimedMediaHandler: 2x implode() Invalid arguments passed
Status: RESOLVED FIXED
Product: MediaWiki extensions
Classification: Unclassified
TimedMediaHandler (Other open bugs)
unspecified
All All
: High normal (vote)
: ---
Assigned To: Michael Dale
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2013-01-06 19:34 UTC by Sam Reed (reedy)
Modified: 2013-01-15 03:31 UTC (History)
2 users (show)

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


Attachments

Description Sam Reed (reedy) 2013-01-06 19:34:37 UTC
PHP Warning:  implode() [<a href='function.implode'>function.implode</a>]: Invalid arguments passed in /usr/local/apache/common-local/php-1.21wmf7/extensions/TimedMediaHandler/handlers/WebMHandler/WebMHandler.php on line 213
Comment 1 Sam Reed (reedy) 2013-01-07 19:54:48 UTC
It seems to have a friend now...

11 PHP Warning:  implode() [<a href='function.implode'>function.implode</a>]: Invalid arguments passed in /usr/local/apache/common-local/php-1.21wmf7/extensions/TimedMediaHandler/handlers/OggHandler/OggHandler.php on line 114
4 PHP Warning:  implode() [<a href='function.implode'>function.implode</a>]: Invalid arguments passed in /usr/local/apache/common-local/php-1.21wmf7/extensions/TimedMediaHandler/handlers/WebMHandler/WebMHandler.php on line 213
Comment 2 Sam Reed (reedy) 2013-01-07 21:17:06 UTC
Line 213 of WebMHandler.php:

$this->getStreamTypes( $file )

getStreamTypes can return false. Should it just return array() or should we do something else if getStreamTypes returns false?

OggHandler has pretty much the same issue
Comment 3 Jan Gerber 2013-01-08 10:33:23 UTC
returning array() sounds like the best idea, will look into writing a patch for it.
While it should not fail as it currently does, it would be good to know what files cause this issue since getStreamTypes would only return false if something else went wrong... So would want to look at those files to see whats happening. Do you get the file / url from the logs?
Comment 4 Jan Gerber 2013-01-08 10:49:11 UTC
patch at https://gerrit.wikimedia.org/r/42744
Comment 5 Sam Reed (reedy) 2013-01-08 18:35:32 UTC
(In reply to comment #4)
> patch at https://gerrit.wikimedia.org/r/42744

merged

(In reply to comment #3)
> While it should not fail as it currently does, it would be good to know what
> files cause this issue since getStreamTypes would only return false if
> something else went wrong... So would want to look at those files to see
> whats
> happening. Do you get the file / url from the logs?

I suspect we can't easily get the file from the logs, but adding specific debugging for this and logging the entries should work well

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


Navigation
Links