Topic on Project:Support desk

Editor disappeared after upgrading wiki to latest version

27
Kanecow (talkcontribs)

So I just updated my wiki to 1.23.6 version (previously 1.22.1).

I kept everything the same, same local settings and everything, uploaded the new package through FTP and ovewrote everything existent, ran the mw-config, then tested the wiki and the editor simply disappeared, there isnt even a minimalistic editor, its just the editing page with no editor at all.

The only error appearing in my error log is this one, which Im not sure has anything to do with this issue

  • PHP Fatal error: Class 'ResourceLoaderLanguageNamesModule' not found in /home/comptf/public_html/includes/resourceloader/ResourceLoader.php on line 437

I have all these lines on my localsettings

require_once( "$IP/extensions/WikiEditor/WikiEditor.php" );
$wgDefaultUserOptions['usebetatoolbar'] = 1;
$wgDefaultUserOptions['usebetatoolbar-cgd'] = 1;
$wgDefaultUserOptions['wikieditor-preview'] = 1;
$wgDefaultUserOptions['wikieditor-publish'] = 1;


Server info:

  • PHP Version 5.4.33
  • MySQL Version 5.6.21

My wiki is the following: comp.tf

Florianschmidtwelzow (talkcontribs)

It seems you downloaded the false WikiEditor version. The required class ResourceLoaderLanguageNamesModule was added in MediaWiki 1.24, which the extension seems to be built for. So, please download WikiEditor again for REL1_23 and try again :)

Kanecow (talkcontribs)

this doesnt seem to be the case. Just did that and it's still not working

88.130.124.219 (talkcontribs)

If that function has been added in 1.24, it will be the case. :-) Maybe you now still have a cache problem; try emptying all caches you have, e.g. on the server, maybe on a proxy in between and in your browser...

Kanecow (talkcontribs)

but i never even installed or touched anything that has to do with 1.24

I simply updated my installation with a 1.23.6 package directly downloaded from here.

88.130.103.99 (talkcontribs)

I believe these are two different problems. I do not necessarily see a connection between the class name "ResourceLoaderLanguageNamesModule", which obviously is missing, and the missing Editor.

Does the class name error still happen? If so, you can find the source of the class name error by searching the files of your wiki installation for the text "ResourceLoaderLanguageNamesModule". This should tell you where this (wrong?) class is used.

Please make sure that you followed our manual Upgrade; especially please make sure that no old files of the old MediaWiki version have been left behind as explained in Manual:Upgrading#Files_remaining_that_may_cause_errors!

Kanecow (talkcontribs)

I followed everything, I checked the upgrading specifics for version 1.23 and I never even touched any 1.24 files.

I have tried everything and I still can't get any editor to show

Kanecow (talkcontribs)

Can anyone else help me out with this issue. My wiki is a big big and Im missing out on a lot of potential edits

Fokebox (talkcontribs)

Please help, I have faced with the same problem when I had upgraded my wiki from 1.20.6 to 1.22.13

Fokebox (talkcontribs)

I have just noticed that on my local wiki of the same updated wiki 1.22 all works fine. Can be a reason from hosting!?

Fokebox (talkcontribs)

By me the problem was resolved as soon as I removed Vector extension, cause in the new version this skin is built-in

88.130.112.219 (talkcontribs)

The Vector skin is built into MediaWiki - and it also was in your old version. I guess you mean you have uninstalled the Vector extension. This extension now is included in the Vector skin or in the MediaWiki core and is no longer needed.

Kanecow (talkcontribs)

bump

Ciencia Al Poder (talkcontribs)

Why bump? you said the issue has been resolved after removing Extension:Vector

Kanecow (talkcontribs)

No I didn't. Where did you see that?

88.130.71.190 (talkcontribs)

It was Foxebox who said he had the same problem and we solved his issue.

MarkAHershberger (talkcontribs)

If you're still having trouble, please start a new thread.

Florianschmidtwelzow (talkcontribs)

@Mark: I think that's not correct :) Kanecow started this thread, so i think he should use "his" thread, and if Fokebox (or any other one) has the same (or similar) problem, he should start a new thread? :)

88.130.88.87 (talkcontribs)

The problem for us is, that Kanecow has not yet given us enough information to help him. We need to know how the class ResourceLoaderLanguageNamesModule gets into his code. So basically we need a backtrace of the PHP error:

PHP Fatal error: Class 'ResourceLoaderLanguageNamesModule' not found in /home/comptf/public_html/includes/resourceloader/ResourceLoader.php on line 437

Florianschmidtwelzow (talkcontribs)

Right! In this case, i would try to figure out, which module uses this class. For this it should be enough to open /home/comptf/public_html/includes/resourceloader/ResourceLoader.php with a text editor and find line 437 (it should be something like $object = new $class( $info );

Add a new line before this line and add the following code: var_dump($name);. Now, open your wiki (a page, where this error appers) and give us the complete output. The last name in the output (just before the Fatal error) is one of the modules using a ResourceLoader class, which does not exist.

Kanecow (talkcontribs)

I didn't have any visual error in any page besides the editor not appearing, but after I added the line you suggested, some weird text appeared at the top, not sure if that was the desired behaviour of that line. But anyway what I was able to copy of that text was

string(22) "ext.wikiEditor.toolbar" string(22) "ext.wikiEditor.dialogs" string(30) "ext.wikiEditor.toolbar.hideSig" string(22) "ext.wikiEditor.preview" string(22) "ext.wikiEditor.publish" string(12) "ext.MsUpload" string(21) "mediawiki.action.edit" string(29) "mediawiki.action.edit.preview" string(33) "mediawiki.action.edit.editWarning" string(39) "mediawiki.action.edit.collapsibleFooter" string(22) "mediawiki.page.startup" string(14) "mediawiki.user" string(15) "mediawiki.hidpi" string(20) "mediawiki.page.ready" string(25) "mediawiki.legacy.wikibits" string(21) "mediawiki.legacy.ajax" string(23) "mediawiki.searchSuggest" string(25) "mediawiki.page.watch.ajax" string(36) "mediawiki.action.view.rightClickEdit" string(15) "skins.vector.js" string(4) "site" string(4) "user" string(11) "user.groups" string(28) "mediawiki.action.edit.styles" string(23) "mediawiki.legacy.shared" string(28) "mediawiki.legacy.commonPrint" string(19) "mediawiki.ui.button" string(28) "mediawiki.skinning.interface" string(19) "skins.vector.styles" string(8) "noscript" string(13) "user.cssprefs" string(7) "startup" string(12) "user.options" string(11) "user.tokens"

Florianschmidtwelzow (talkcontribs)

Sorry, i haven't read, that you see this error just in your error logs. Please open the console in your web browser and go to the network tab (in Chrome). Reload the page and filter for "wikiEditor". Now, open all the entries and look at tzhe preview data. There should be (in some of these) the error message (Fatal...) and the output you have at the top of the page actually. If your wiki is public you can give a link and i will take a look. maybe you can come online to #wikimedia-devconnect??

Kanecow (talkcontribs)

I actually cant find any entry with the wikiEditor or even Editor name, and the only entry apparently giving an error is this one

Florianschmidtwelzow (talkcontribs)

And if you click on that entry and click response, what do you see?

Ciencia Al Poder (talkcontribs)

Yes, that 500 Internal Server Error response for that URL is what makes the editor to not show up.

Open that URL (the load.php) directly on the browser and see if it gives any error message. If not, look at the error logs, or enable the display of errors as explained in Manual:How to debug

Florianschmidtwelzow (talkcontribs)

I think it will give the error, which you see in the first post (PHP Fatal error: Class 'ResourceLoaderLanguageNamesModule' not found in /home/comptf/public_html/includes/resourceloader/ResourceLoader.php on line 437). That's why i would like to know, which module is the problem by adding the lines to ResourceLoader.php and open the url, which gives the 500 internal error :)

MarkAHershberger (talkcontribs)

right. Sorry for joining in late and misunderstanding.

Reply to "Editor disappeared after upgrading wiki to latest version"