Topic on Extension talk:Translate

not working in private wikis (MW 1.26.2)

11
Summary by Nikerabbit

Issue found with possible resolutions in T144009

82.204.202.110 (talkcontribs)

not working if inside LoacalSettings.php

$wgGroupPermissions['*']['read'] = false;

is set. Extension working, but missing special:page translation. Mediawiki 1.26.2

Nikerabbit (talkcontribs)
Ibutakov.smartec (talkcontribs)

what kind of details do you need? I have installed MediaWiki_Language_Extension_Bundle ver. 2016.01 and when I set

$wgGroupPermissions['*']['read'] = true;

everything works as expexted, but I need private wiki, so set

$wgGroupPermissions['*']['read'] = false;

after that I cannot mark page for translation. I see red link

Mark this page for translation

on top of page with <translate> tag which lead me to

No such special page
http://domain/index.php?title=Special:PageTranslation&target=Main+Page
$GLOBALS['wgEnablePageTranslation'] = true;
$wgEnablePageTranslation = true;

does nothing. Already marked pages can be translated and already made translations can be seen but cannot be changed. It is strange that some of special pages are created by extension like Special:LanguageStats. Sorry for my English, I'm not a native speaker

Ibutakov.smartec (talkcontribs)

I think its some kind of permissions error, module need something like

$wgSessionsInObjectCache = true;
$wgVirtualRestConfig['modules']['parsoid']['forwardCookies'] = true;

for parsoid and VisualEditor

Nikerabbit (talkcontribs)

I tried the following myself but it worked for me: $wgGroupPermissions['*']['read'] = false;

Are you saying this only happens with Parsoid? The only thing that controls whether that special page is registered is $wgEnablePageTranslation.

Ibutakov.smartec (talkcontribs)

No, this happens with or without parsoid, that was just an idea what could be done. What version of mediawiki do you use to test (where everything working as expected?) I am on stable 1.26.2. Hosted on server running ubuntu server LTS (14.04)

Nikerabbit (talkcontribs)

I am using latest master. If I were you I would start digging what is messing up with $wgEnablePageTranslation, $wgExtensionFunctions, or $wgSpecialPages array. For example maybe you are accidentally setting $wgExtensionFunctions = array() or something similar.

Ibutakov.smartec (talkcontribs)

in my localsettings.php there's no such definitions, so I think that's not the cause of my problem. But thanks anyway! Will keep digging

Nikerabbit (talkcontribs)

You could place something such as die() in TranslateHooks.php in setupTranslate() after "if ( $wgEnablePageTranslation )" to see if the code is even executed.

Ibutakov.smartec (talkcontribs)

Added, wiki chaged into blank page, so code IS executed

Nikerabbit (talkcontribs)

Sorry, I still don't know any clues what it could be. I suggest you continue debugging if you can.