Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[media] Results should show up #822

Open
slkwd opened this issue Mar 12, 2024 · 15 comments
Open

[media] Results should show up #822

slkwd opened this issue Mar 12, 2024 · 15 comments

Comments

@slkwd
Copy link

slkwd commented Mar 12, 2024

My Public Wiki is at https://tunearch.org

OS = Ubuntu 20.04
MW version = 1.40.1
SMW version = 4.1.2
SRF version = 4.0.2
PHP version 7.4.3
MariaDB version = 10.3.38


The problem:

After upgrading MW from 1.35 to 1.40.1, SMW (from 3.0.0.+ to 4.1.2) and SRF (from 3.1.0+ to 4.0.2), the following in-line query no longer works:

{{#ask:
[[Category:Volume 3]]
|?Title={{#sub:title|5}}
|?Has cover art=poster
|?Has artists=artist
|default=''No valid media found.''
|format=media
|inspector=no
}}

it produce a blank, white rectangle, as you can see at https://tunearch.org/wiki/Sandbox.
If I change the format (e.g. giving "no format" at all) it produce the (correct) gallery view with the link to all the (playable) media.
Is this a bug?

Thanks a lot for your help.

@kghbln kghbln transferred this issue from SemanticMediaWiki/SemanticMediaWiki Mar 12, 2024
@kghbln kghbln changed the title [SRF] Media format does not show the playlist [media] Results should show up Mar 12, 2024
@kghbln kghbln added the bug label Mar 12, 2024
@alex-mashin
Copy link
Contributor

alex-mashin commented Mar 18, 2024

Go to
MediaWiki:Gadgets-definition
and replace mediawiki.notify, and, possibly, other dependencies prefixed with mediawiki, with mw.notify. Press Ctrl + F5.

Your JavaScript may be broken in other places as well.

@slkwd
Copy link
Author

slkwd commented Mar 18, 2024 via email

@alex-mashin
Copy link
Contributor

mw.cookie cannot be found. Replacing it with mediawiki.cookie or disabling the ReferenceTooltips gadget altogether might help.

Also, you Google Analytics might be (partially) blocked by CORS policy (see https://www.mediawiki.org/wiki/Manual:$wgAllowedCorsHeaders).

@slkwd
Copy link
Author

slkwd commented Mar 18, 2024 via email

@alex-mashin
Copy link
Contributor

alex-mashin commented Mar 18, 2024

You could also try this:

{{#ask:
 [[Category:Volume 3]]
 |?=source
 |?Title=title
 |?Has cover art=poster
 |?Has artists=artist 
 |default=''No valid media found.''
 |format=media
 |inspector=no
}}

I noticed that in the table format, the title column does not have the expected header title; nore the main printout, source.

@slkwd
Copy link
Author

slkwd commented Mar 18, 2024 via email

@alex-mashin
Copy link
Contributor

alex-mashin commented Mar 18, 2024

I have managed to play several MP3 files with this SRF format at my installation (though my MW is 1.35). Perhaps, inspector=yes will show something?

@slkwd
Copy link
Author

slkwd commented Mar 18, 2024 via email

@alex-mashin
Copy link
Contributor

Could it be because of the fact that there have been deprecations in jQuery, e.g. .click() and .bind()?

@slkwd
Copy link
Author

slkwd commented Mar 18, 2024 via email

@alex-mashin
Copy link
Contributor

alex-mashin commented Mar 19, 2024

No need to apologise, that was a question to the format developers.

The problem with tunearch.org seems to lie in JavaScript. The query results have reached their place in HTML head, unhandled JavaScript exceptions have been eliminated. The player never starts to reproduce the first file.

jPlayer seems to have gone out of fashion along with jQuery and abandoned since 2020.

@slkwd
Copy link
Author

slkwd commented Mar 19, 2024 via email

@alex-mashin
Copy link
Contributor

I might be mistaken; and someone might replace the player in the extension with a more modern one.

@krabina
Copy link
Contributor

krabina commented May 4, 2024

In the JPlayer group, someone is suggesting alternatives:
https://groups.google.com/g/jplayer/c/1XR0nItPGp8
since abeplayer also requires jquery, probably on of these could be the way to go?

@krabina
Copy link
Contributor

krabina commented May 4, 2024

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants