Topic on Extension talk:Gadgets

User Preferences don't offer Gadgets

8
Juetho (talkcontribs)

I installed a local wiki via MoWeS including MW 1.18.0 at 2011-11-28. Then I added several extensions incl. Gadgets. All requirements for Extension:Gadgets should be fulfilled: LocalSettings has require_once. MediaWiki:Gadgets-definition is defined:

*Pfeil-hoch|Pfeil-hoch.js

[[MediaWiki:Gadget-Pfeil-hoch.js]] and [[MediaWiki:Gadget-Pfeil-hoch]] are imported. But this gadget is not yet accepted:

What do I miss? Are gadgets preserved for the WMF version of MW? If so, which files must be fixed? Do I need a configuration setting? What else? Thanks for help! Juergen

Krinkle (talkcontribs)

Can you provide a link to your wiki for us to look at ? In the mean time, confirm via Special:Version that your extension is actually being recognized properly.

Juetho (talkcontribs)

Unfortunately, it's a local wiki like I wrote. Special:Version shows Gadgets in the section Others.

I could search by myself if I could read the current installation and configuration of de-Wikibooks. But I don't know how to check LocalSettings.php and all the files in the includes folder like SpecialPage, SpecialPageFactory, and so on if there are relevant differences between WB and my own configuration.

Krinkle (talkcontribs)

Just adding that line to your MediaWiki:Gadgets-definition should already make it appear on Special:Gadgets and Special:Preferences, regardless of any configuration or importing of the actual JavaScript/CSS resources.

If that isn't working there are likely other, bigger, issues.

Are any other gadgets working ? Anything in your error log ?

Juetho (talkcontribs)

In the meantime, I checked some options. (The MW configuration script tells that options aren't necessary, but they are very useful.) Nevertheless, nothing helps.

MediaWiki:Gadgets-definition contains the line above, and this line only. I reduced the definition site to a simple gadget for testing.

The error log tells this:

(20024)The given path is misformatted or contained invalid characters: Cannot map GET /wiki/index.php/MediaWiki:Gadgets HTTP/1.1 to file, referer: http://localhost/wiki/index.php/MediaWiki:Gadgets-definition

Moreover, I found differences in Special:Preferences:

  • Generally (like in my local wiki), there are 8 tabs: beginning with User profile and ending with Misc
  • WMF projects add: Pending changes, Gadgets
  • MediaWiki adds: Edit review, Gadgets, Threaded discussion, Contests

There must be a reason for the differences between WMF and MW. I suppose the same reason would lead to my problem's solution.

Juetho (talkcontribs)

I don't understand anything anymore. After creating a new wiki including this gadget, there was no tab gadgets. After I switched on ShowExceptionDetails, the gadgets tab was shown. I wonder...

Juetho (talkcontribs)

... and wonder on and on. It seems to work properly - also using other gadgets like wikEd.

The only exceptionDetail is "Zeitüberschreitung" (time overflow or so). But that's another problem because the local wiki works very slowly.

I would appreciate if you could give more hints. I want to write advices how to install a local wiki using MoWeS (see in my first post).

He7d3r (talkcontribs)

Maybe this is being caused by bugzilla:29794?

Try to open "MediaWiki:Gadgets-definition" for editing and paste the following line in your browser's address bar:

javascript:$('#wpTextbox1').val( $('#wpTextbox1').val().split(String.fromCharCode(8206)).join() ); void 0;

and then check if this makes any changes (like some of these).

Reply to "User Preferences don't offer Gadgets"