Special page "GoogleCustomWikiSearch" fails silently. Reported with task T274708
Topic on Extension talk:GoogleCustomWikiSearch
Appearance
@Kghbln, thank you very much for reporting.
This is currently being worked on, see: https://gerrit.wikimedia.org/r/c/mediawiki/extensions/GoogleCustomWikiSearch/+/664299/
Also not working with 1.36.
Same for 1.36
@Аргскригициониец & @Dachy, are you using the master version of the extension or the release that matches the running install of MediaWiki core?
Per the compatibility policy, "Follows the MediaWiki version lifecycle. Master is not backward compatible.".
Let me know if that solves the problems for you! Thanks!
Oh let me guess, did you mean from the dropdown here we might have selected "master" that doesn't match
Special:ExtensionDistributor/GoogleCustomWikiSearch
I believe I pulled it from git instead of downloading from that dropdown.
If you're using fit, then you must have the master branch running by default and in that case, you need the master branch of the extension too.
If you are downloading release bundles, the version of the extension should match the version of MediaWiki. Like so: REL1_35
Finally the cache was gone and the edit from HTTP to fixed HTTPS works. Some other errors are thrown out.
Snapshot:
And the rejected style below is a 404 error link that the default GSE style doesn't exit and can't be loaded (even if the JS succeeds to load)
https://www.google.com/cse/static/element/ff97a008b4153450/default+zh_cn.css
I am not sure how and where the style comes from, though
I manually replaced it with 1.36 and now it seems to work, because the console prints a different caveat:
Mixed Content: The page at '....' was loaded over HTTPS, but requested an insecure script 'http://www.google.com/cse/cse.js?theme=V2_DEFAULT&language=.....'. This request has been blocked; the content must be served over HTTPS.
I got the point, but where should I edit? I saw this line in the main php file:
document.location.protocol == 'https' ? 'https:' : 'http:'
but my site is indeed at HTTPS now. I edited both options as HTTPS and uploaded it, still not working, like a cache somewhere still keeps the HTTP.
Did you try a hard refresh after performing the edit? JS/CSS assets are cached by the browser, so a hard refresh should clear the cache.
This post was hidden by Dachy (history)