Topic on Extension talk:TimedMediaHandler

Unterminated string literal in file 'MediaWiki:Common.js' on line 8

6
Ponkabonk (talkcontribs)

OK. New question. I'm trying to play .ogg files on my site. Chrome works great but Firefox doesn't. When I press "play" nothing happens.

I see the error "Unterminated string literal in file 'MediaWiki:Common.js' on line 8" in the console for both FF and Chrome. Don't know if that's related to the problem

I've heard that Safari and IE aren't working either but I haven't verified that yet. Probably have some questions about ogv.js sometime in the future.

Ponkabonk (talkcontribs)
Kghbln (talkcontribs)

I wonder why it is not working. Since this is an extension used on WMF sites. I use the Html5mediaAudio widget via the Widgets extension instead of this one.

TheDJ (talkcontribs)

When I look at that site and use "debug=true" i see dozens of errors. It seems as if the html being served is generating incorrect links to load.php (which serves up much of the javascript and css), instead all referring to the non-existing "http://islapedia.com/?d41d8"

You'll have to figure out why it does that, because it's not normal.

Ponkabonk (talkcontribs)

I'm getting much closer. Chrome, Safari, Edge and IE all work. But, when I try to play the file in Firefox, I get the following message:

HTTP load failed with status 403. Load of media resource http://islapedia.com/images/1/10/Mike_Test_DH_1.ogg failed.

Any ideas why FF is having trouble with this file? I've tried dumping my cache and cookies and have tried a second machine. It didn't help. There may be other issues with the site but I'm only trying to get TMH working for now.

-Mike

Ponkabonk (talkcontribs)

Got that one fixed. I modified .htaccess to redirect to www. when the www. is missing. No more 403 errors. But, I'm still getting the "Unterminated string literal in file 'MediaWiki:Common.js' on line 8" error and the file doesn't play. I believe it's caused by FF just stopping when it encounters that error but all the other browsers ignore the error.

Help is greatly appreciated.

Reply to "Unterminated string literal in file 'MediaWiki:Common.js' on line 8"