Jump to content

Extension talk:Popups/2024

Add topic
From mediawiki.org
Latest comment: 4 months ago by Thiemo Kreuz (WMDE) in topic There was an issue displaying this preview

When asking a question about a preview not displaying please ensure to include information on the wikitext of the first section of the target page (markup before first heading double equals signs) and the network request.

Popups is not compatible with the current MediaWiki core (version 1.41.0), it requires: >= 1.42.0.

[edit]

I am getting this Uncaught ExtensionDependencyError on a clean install of mediawiki using the official docker image for 1.41 (there is no 1.42 available yet). Steps followed:

  • Pull the latest docker stable image
  • Create a container from the latest image (1.41)
  • Create LocalSettings.php and verify dependencies for TextExtracts and PageImages are included and enabled
  • Turned off ReferencePreviewsBetaFeature (just in case, but tried with and without this set to false and no difference)
  • Comment out the extension and its settings, restart the wiki, verify it otherwise functions normally

Since the extension page says it's compatible with 1.37+, I would assume the error is misleading. Any suggestions? Justindz tlc (talk) 15:34, 26 January 2024 (UTC)Reply

I learned some more about how the dependency management worked and confirmed that 1.42 is required by the Popups extension. That version is not released yet. Is there a workaround, such as downloading a slightly older Popups version that works with 1.41? 2601:153:8100:A60:97CE:94C4:A850:8665 (talk) 16:09, 1 February 2024 (UTC)Reply
I had it working on MW1.35, but upgraded to MW1.39. The master branch, and REL1_39 branch, of this extension caused 500 errors because they both require MW1.42.
I checked out the REL1_37 branch and it all worked again :-)
For MW1.41 it's probably something similar - just work your way down the branches till one works. Jonathan3 (talk) 00:12, 10 March 2024 (UTC)Reply

Popups behaviour changed between 1.36 and 1.39

[edit]

We use Popups, TextExtracts, PageImages on our wiki.

We have lots of pages which have no text before the first section heading. In this case, the page preview used to show "..." (1.36), now it says "There was an issue displaying this preview" (1.39)

We have other pages that have no text before the section heading but do have an image. The preview used to show "..." and the image (1.36), now it shows "issue" and no image (1.39)

How can we regain the previous functionality that's been perfectly right for us? 2003:C2:3F21:FD00:868:7B3F:C172:66A3 (talk) 20:19, 22 April 2024 (UTC)Reply

Previous version was 1.35, sorry. 2003:C2:3F21:FD00:134:BD68:4409:6542 (talk) 07:51, 23 April 2024 (UTC)Reply
I believe this is a known issue, see phab:T272394 and especially phab:T309760 for the second example. Thiemo Kreuz (WMDE) 08:20, 23 April 2024 (UTC)Reply
Ok, great, thanks. 2003:C2:3F21:FD00:134:BD68:4409:6542 (talk) 10:04, 23 April 2024 (UTC)Reply
I figured out a way to get around this a little bit by using a P html element as the very first element on the page with a class that is display:none. It was picked up just fine by the Popup. I also use page forms, SMW, and templates so the data input is very regimented and somewhat easier to control than simple free text pages. (SMW 1.39) Anrake (talk) 03:29, 17 November 2024 (UTC)Reply

Any progress on Page Previews on Commons?

[edit]

It would be great if there were page previews for wikilinks on Commons. Is anybody looking into this? See phab:T67117 which has been created a decade ago. It would be very useful. Prototyperspective (talk) 12:16, 28 November 2024 (UTC)Reply

Images are not displayed

[edit]

Hey guys.

I just installed the Popups extension. It works with text, but not with images: "There was an issue displaying this preview".

For example, this image should be displayed: https://lutherwiki.de/index.php/Wittenberg_in_Wort_und_Bild

Did I miss something? (MediaWiki 1.42, PageImages is loaded) 2A02:810A:18D:4500:D123:EE53:E95B:713B (talk) 11:02, 25 December 2024 (UTC)Reply

I don't see any license attached to the image tagging it as free, and Extension:PageImages will only display free images by default. Read carefully the documentation for that extension because configuration isn't trivial. Tactica (talk) 18:50, 25 December 2024 (UTC)Reply
is it enough if I use a License like this? https://lutherwiki.de/index.php?title=Datei:Wittenberg_in_wort_und_bild.jpg&action=edit 2A02:810A:18D:4500:AC0C:4918:E955:DBE3 (talk) 11:42, 26 December 2024 (UTC)Reply
That will depend on the contents of the self-lic template, which currently does not exist on your wiki.
I think most wikis based on MediaWiki use a simple Template:Information template to specify source, author, etc. info including specific re-distribution terms. Wikimedia wikis such as Commons are a good example and it does the job. Tactica (talk) 17:04, 26 December 2024 (UTC)Reply

There was an issue displaying this preview

[edit]

Sometimes while hovering over a link, the text "There was an issue displaying this preview" pops up. This only happens when linking to certain articles, and I can't find the correlation.

Can anyone help me out?

https://sonic-city.net/wiki/index.php/Main_Page AdmiralJuicy (talk) 11:24, 31 December 2024 (UTC)Reply

Hard to tell. It might be that the TextExtracts extension picks up the empty <p class="mw-empty-elt"></p> at the beginning of each article. You can try to add $wgExtractsRemoveClasses[] = '.mw-empty-elt'; to your LocalSettings.php file and see if this makes a difference. Thiemo Kreuz (WMDE) 08:22, 6 January 2025 (UTC)Reply
Hi,
Thank you fo the help - I added $wgExtractsRemoveClasses[] = 'dl'; to LocalSettings.php and nothing happened. AdmiralJuicy (talk) 06:09, 8 January 2025 (UTC)Reply
Sorry, I meant $wgExtractsRemoveClasses[] = '.mw-empty-elt'; (I fixed it above). You might need to play around with this setting and try different things, depending on your templates and the additional extensions you use. Thiemo Kreuz (WMDE) 08:35, 8 January 2025 (UTC)Reply