Topic on Extension talk:TextExtracts

No text extraction in SMW 4.02 + MW 1.39

11
Lotusccong (talkcontribs)

When I run this script https://www.tbpedia.org/api.php?action=query&prop=extracts&exchars=1000&titles=%E9%A6%96%E9%A0%81

It show the below extration message

{ "batchcomplete": "", "warnings": { "extracts": { "*": "HTML may be malformed and/or unbalanced and may omit inline images. Use at your own risk. Known problems are listed at https://www.mediawiki.org/wiki/Special:MyLanguage/Extension:TextExtracts#Caveats." } }, "query": { "pages": { "1": { "pageid": 1, "ns": 0, "title": "\u9996\u9801", "extract": "\n" } } } }

It seems that no text had been extract .

When I use Popups Extension, it will showed " There was issues displayding this preview:.

Joe Beaudoin Jr. Redux (talkcontribs)
  1. Did you ever solve this?
  2. The above link only shows the NewPP limit report commented-out text as an extract, which would explain the "Issues displaying this preview" error:

{

    "batchcomplete": "",

    "warnings": {

        "extracts": {

            "*": "HTML may be malformed and/or unbalanced and may omit inline images. Use at your own risk. Known problems are listed at https://www.mediawiki.org/wiki/Special:MyLanguage/Extension:TextExtracts#Caveats."

        }

    },

    "query": {

        "pages": {

            "1": {

                "pageid": 1,

                "ns": 0,

                "title": "\u9996\u9801",

                "extract": "<!-- \nNewPP limit report\nCached time: 20230324145510\nCache expiry: 3600\nReduced expiry: true\nComplications: []\n[SMW] In\u2010text annotation parser time: 0.002 seconds\nCPU time usage: 0.031 seconds\nReal time usage: 0.031 seconds\nPreprocessor visited node count: 9/1000000\nPost\u2010expand include size: 10/2097152 bytes\nTemplate argument size: 0/2097152 bytes\nHighest expansion depth: 2/100\nExpensive parser function count: 0/100\nUnstrip recursion depth: 0/20\nUnstrip post\u2010expand size: 0/5000000 bytes\n-->\n<!--\nTransclusion expansion time report (%,ms,calls,template)\n100.00%    0.000      1 -total\n-->"

            }

        }

    }

}

Lotusccong (talkcontribs)

Hi Joe,

The issues not resolved. What does this means "NewPP limit report commented-out text as an extrac" ?

Lotusccong (talkcontribs)

Hi Joe,

If you access to this link https://www.tbpedia.org/w/api.php?action=query&prop=extracts&exchars=1000&titles=%E9%A6%96%E9%A0%81

You will notice that the extract only showed the NewPP limit report commented. This cause the Popups extension said "There was an issues displaying this preview". See from here https://www.tbpedia.org/wiki/%E7%9B%A7%E5%8B%9D%E5%BD%A5%E6%96%87%E9%9B%86%E7%BF%BB%E8%AD%AF%E7%B6%AD%E5%9F%BA%E9%A4%A8

I reinstalled the MW with 1.39.3, PHP 8.0.28, SMW 4.1.1 , TextExtracts – (74baaa7) 17:23, 20 March 2023 , Previews – (010237d) 15:23, 21 March 2023, PageInages – (78537e6) 15:23, 21 March 2023 .

I am using the Short URL as well.

Initiately , the previews was working fine. Buy after I installed more Extensions until one of it ( Can't figure it whicj one), it caused this error. I removed the installed extensions the error still persist.

I suspected may be one of the extension that I installed with Composer has screwup the library ? Or there is a conflict if Javascripts ?

I thought if the issues is caused by the conflict of extensions, I just removed installed extension one by one but it doesn't work even I have removed it ( not load it from LocalSettings.php).

If the preview issues is caused by Popups extensions, then the Text extract API should be working.

I have enable the debug toolbar for easy troubleshooting.

Really apperciate if anyone can help to troubleshoot this issues.

Thanks in advanced.

Lotusccong (talkcontribs)

Today, when I check on the page 盧勝彥文集翻譯維基館 - 真佛百科 True Buddha Pedia (tbpedia.org) , Item 3 & 5 can showed the preview but not item 2 and 4.

This is really a puzzle to me why a day ago all 4 links can't show the preview, now can only show two out of four ?

Any clues what is went wrong ? It is due to cache ? Due to the page content ?

5 minutes later, All the links can't show the preview. This created more confusion for me. What is the root cause of not display the preview ? I didn;t make any changes on the configuration.

DAVY2018 (talkcontribs)

Sorry to reopen this old talk but I want to ask if there are any solution on this question?

Lotusccong (talkcontribs)

Basesd on my case, it seems that there is nothing wrong with TextExtracts or Popups . I notice that TextExtract will not extract any artcile that beging with heading . You need to have some text before the heading.

DAVY2018 (talkcontribs)

Yes TextExtract did not extract any article with heading as beginning. But for me, despite having text before headings, the TextExtract still cannot output anything, while Popups remained showing " There was issues displayding this preview."

That's why I would like to seek help from your past experience and see if it will be useful.

Lotusccong (talkcontribs)

If you don't mind, pls share the link and I can test it on my wiki site.

DAVY2018 (talkcontribs)

May I know if what link do you want me to share?

Lotusccong (talkcontribs)

The page that Popus showed "There was issues displaying this preview."

Reply to "No text extraction in SMW 4.02 + MW 1.39"