Last modified: 2014-05-18 06:29:29 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 T67407, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 65407 - [Regression pre-1.24wmf6] TimedMediaHandler causes 500 (Internal Server Error) appears in the console, cannot save page
[Regression pre-1.24wmf6] TimedMediaHandler causes 500 (Internal Server Error...
Status: RESOLVED FIXED
Product: MediaWiki extensions
Classification: Unclassified
TimedMediaHandler (Other open bugs)
unspecified
All All
: Immediate critical (vote)
: ---
Assigned To: Brad Jorsch
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2014-05-16 18:05 UTC by Rummana Yasmeen
Modified: 2014-05-18 06:29 UTC (History)
12 users (show)

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


Attachments
Screenshot (291.99 KB, image/png)
2014-05-16 18:05 UTC, Rummana Yasmeen
Details

Description Rummana Yasmeen 2014-05-16 18:05:34 UTC
Created attachment 15418 [details]
Screenshot

Cannot save any page on Betalabs with chrome , 500 (Internal Server Error) appears in the console
Comment 1 James Forrester 2014-05-16 18:06:21 UTC

*** This bug has been marked as a duplicate of bug 65373 ***
Comment 2 Roan Kattouw 2014-05-16 18:21:52 UTC
This is a 500 from an API request:

PHP fatal error in /srv/common-local/php-master/includes/api/ApiQueryAllPages.php line 34: 
Argument 1 passed to ApiQueryAllPages::__construct() must be an instance of ApiQuery, instance of ApiMain given, called in /srv/common-local/php-master/extensions/TimedMediaHandler/handlers/TextHandler/TextHandler.php on line 27
Comment 3 Roan Kattouw 2014-05-16 18:22:44 UTC
Caused by https://gerrit.wikimedia.org/r/#/c/120827/
Comment 4 Gerrit Notification Bot 2014-05-16 19:19:17 UTC
Change 133772 had a related patch set uploaded by Anomie:
ApiQueryBase subclasses take an ApiQuery, not an ApiMain

https://gerrit.wikimedia.org/r/133772
Comment 5 Brad Jorsch 2014-05-16 20:03:39 UTC
Also, FYI, I found I couldn't reproduce this with "any page" as originally claimed. For testing on beta labs, it appears the page needs to embed a video (or other timed media, I'd guess) hosted on commons.wikimedia.beta.wmflabs.org; videos from commons.wikimedia.org won't do it, nor presumably would videos on the local beta wiki. If this makes it to production (it had better not!), any Commons video would do it.

Also, VE use is not necessary. A normal preview of a page with an appropriate video works.
Comment 6 Gerrit Notification Bot 2014-05-16 21:05:05 UTC
Change 133834 had a related patch set uploaded by Catrope:
Fix API interaction code for MW core changes in 23632a4ecddd

https://gerrit.wikimedia.org/r/133834
Comment 7 Roan Kattouw 2014-05-16 21:11:58 UTC
(In reply to Brad Jorsch from comment #5)
> Also, FYI, I found I couldn't reproduce this with "any page" as originally
> claimed. For testing on beta labs, it appears the page needs to embed a
> video (or other timed media, I'd guess) hosted on
> commons.wikimedia.beta.wmflabs.org; videos from commons.wikimedia.org won't
> do it, nor presumably would videos on the local beta wiki. If this makes it
> to production (it had better not!), any Commons video would do it.
> 
> Also, VE use is not necessary. A normal preview of a page with an
> appropriate video works.

Yes. I discovered this independently, sorry for not reporting it here. It's a fatal in TMH when saving any page with a local video embedded in it.

I put a patch in for TMH (which I live-tested on beta labs, with Bryan's help), could you review it? I ask because TMH is a very unloved area and if I don't actively poke people about it it'll never happen.
Comment 8 Gerrit Notification Bot 2014-05-16 21:14:58 UTC
Change 133834 abandoned by Catrope:
Fix API interaction code for MW core changes in 23632a4ecddd

Reason:
So he did

Abandoning in favor of https://gerrit.wikimedia.org/r/#/c/133772

https://gerrit.wikimedia.org/r/133834
Comment 9 Gerrit Notification Bot 2014-05-16 21:15:18 UTC
Change 133772 merged by jenkins-bot:
ApiQueryBase subclasses take an ApiQuery, not an ApiMain

https://gerrit.wikimedia.org/r/133772
Comment 10 Roan Kattouw 2014-05-16 21:20:51 UTC
(In reply to Roan Kattouw from comment #7)
> I put a patch in for TMH (which I live-tested on beta labs, with Bryan's
> help), could you review it? I ask because TMH is a very unloved area and if
> I don't actively poke people about it it'll never happen.
Never mind, you beat me by a lunch break. I merged your patch instead.
Comment 11 Rummana Yasmeen 2014-05-16 22:06:20 UTC
Verified the fix in Betalabs
Comment 12 Gerrit Notification Bot 2014-05-16 22:29:32 UTC
Change 133852 had a related patch set uploaded by Jforrester:
ApiQueryBase subclasses take an ApiQuery, not an ApiMain

https://gerrit.wikimedia.org/r/133852
Comment 13 Gerrit Notification Bot 2014-05-18 06:26:37 UTC
Change 133852 abandoned by Jforrester:
ApiQueryBase subclasses take an ApiQuery, not an ApiMain

Reason:
My mistake, I somehow thought we'd found this in production. Never mind!

https://gerrit.wikimedia.org/r/133852

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


Navigation
Links