Topic on Project:Support desk

WikiEditor toolbar not showing up.

13
152.87.3.5 (talkcontribs)

Hello,

I just set up my first MediaWiki site and I can't get the WidkiEditor toolbar to show up. I have scoured the internet, tried many things but with no success. Here is my current config:

IIS - 7

MediaWiki - 1.26.0

PHP - 5.6.16 (cgi-fcgi)

MySQL 5.7.9-log

I have these included in my config:

wfLoadExtension( 'WikiEditor' );

$wgDefaultUserOptions['usebetatoolbar'] = 1;

$wgDefaultUserOptions['usebetatoolbar-cgd'] = 1;

$wgDefaultUserOptions['wikieditor-preview'] = 1;

$wgDefaultUserOptions['wikieditor-publish'] = 1;

I'm not sure what else to try. Some direction would be very helpful.

Thanks,

-Gabe

88.130.73.84 (talkcontribs)

Just to be sure: When you say that you have added the settings to your configuration, then you mean the file LocalSettings.php, right? This is where you should put these lines.

According to Extension:WikiEditor this configuration should work.

When, in your wiki, you visit the wiki page Special:Version, does it then list WikiEditor as being installed?

205.185.209.68 (talkcontribs)

Thanks for the reply. I did add the lines the the LocalSettings.php. I even commented out all the other extensions just to make sure only the WikiEditor was installed.

The WikiEditor also shows up on the Special:Version page.

I agree that my configuration should work! I just can't figure out why it isn't...

88.130.73.84 (talkcontribs)

Does the wiki have a public URL so that I can take a look?

I am guessing that you have some kind of JavaScript problem:

The problem is not that the wiki also is completely unstyled, right? Styling of the whole page, of the headline, the logo, tabs and so on all display fine, right?

In your LocalSettings.php file, is the variable $wgServer set correctly?

152.85.8.38 (talkcontribs)
Ciencia Al Poder (talkcontribs)
152.87.3.5 (talkcontribs)

We are behind a firewall, so no public URL. The wiki is styled, so no problem there. Everything is displaying fine.

There doesn't appear to by any problems with the $wgServer varible. Tried several differnt configuration options.

I looked at the suggestions regarding JavaScript and I am not seeing any Java errors. However I am getting this from the web console:

Internal error

Problematic modules: {"startup:"errror"}

Not sure exactly what that means. Did a quick web search but didn't find much usefull. Any more thoughts?

Thanks!

88.130.126.158 (talkcontribs)
Problematic modules: {"startup:"error"}

This may well be the reason for your problem. Please add

$wgResourceLoaderDebug = true;

to your LocalSettings.php file and see, if you afterwards get more information about the startup error you are having. This kind of error can e.g. be caused by an extension.

152.87.3.5 (talkcontribs)

Added $wgResourceLoaderDebug = true;

Same error message, without anymore info.

I was hoping that would show some more info...

Jörgi123 (talkcontribs)

Me either.

Can you please again uncomment all extensions, clear all caches and try again?

We recently had someone, who had the same problem.

He also had all extensions deactivated, but the error remained. After some more testing - without extensions - he could nail it down to a faulty extension.

152.87.3.5 (talkcontribs)

After trying all the suggestions and everything I could think of my last ditch effor was to downgrade to 1.25.3.

I see that the toolbar wikieditor works fine in verison 1.25.3.

Looks like it is a problem with 1.26. Not sure how to fix it so I guess we will have to stick with 1.26 for now.

88.130.119.246 (talkcontribs)

I am not so sure about that. As with the other user, which Joerg mentioned, the problem in fact was an extension, although he had all extensions uninstalled - just like you had.

He most likely had a caching issue, which made him see the error, although it in fact was no longer present. And that is the problem, which you most likely have as well.

Ciencia Al Poder (talkcontribs)

Or maybe an error in one of the JavaScript files, if it wasn't copied correctly. $wgResourceLoaderDebug only makes JavaScript to not be minified and also each module is split on its own request. The useful configuration here is $wgShowExceptionDetails. It won't show you a more meaningful error in JavaScript console, but opening the URL that loads that module on a new window should display the error details inside a JavaScript comment.