Last modified: 2013-07-03 10:25:02 UTC

Wikimedia Bugzilla is closed!

Wikimedia migrated from Bugzilla to Phabricator. Bug reports are handled in Wikimedia Phabricator.
This static website is read-only and for historical purposes. It is not possible to log in and except for displaying bug reports and their history, links might be broken. See T52382, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 50382 - Translate extension special pages don't work with MLEB 2013.05 on fountainpen.it
Translate extension special pages don't work with MLEB 2013.05 on fountainpen.it
Status: RESOLVED FIXED
Product: MediaWiki extensions
Classification: Unclassified
Translate (Other open bugs)
unspecified
All All
: Unprioritized normal (vote)
: ---
Assigned To: Nobody - You can work on this!
http://www.fountainpen.it/Speciale:Tr...
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2013-06-28 16:47 UTC by simp
Modified: 2013-07-03 10:25 UTC (History)
9 users (show)

See Also:
Web browser: ---
Mobile Platform: ---
Assignee Huggle Beta Tester: ---


Attachments
translation page (142.87 KB, image/png)
2013-06-28 16:47 UTC, simp
Details

Description simp 2013-06-28 16:47:15 UTC
Created attachment 12681 [details]
translation page

I just upgraded to 1.21.1 and installed the last version of MLEB, but when going to a translation page I got a simple HTML page, with no windows like that's showed in https://upload.wikimedia.org/wikipedia/commons/thumb/c/cb/Translate_manual_-_Translate_example_-_07._Editor_assistant.png/300px-Translate_manual_-_Translate_example_-_07._Editor_assistant.png 

and a message 

Loading messages...

but nothing appears. I'm attaching a screenshot.


It seems some kind of javascript problem, I tried with last version of Firefox and Chrome for Debian, and with firefox inside ubuntu 12.04 but I got always the same page.

You can check my other extensions here:

http://www.fountainpen.it/Special:Version

I have this configuration in LocalSettings.php:

# Added for tranlate
$EXT = "$IP/extensions";
$wgExtensionAssetsPath = "{$wgScriptPath}/../extensions";
# Babel
require_once( "$EXT/Babel/Babel.php" );
# CLDR extension
include("$EXT/cldr/cldr.php");
# Clean Changes
require_once( "$EXT/CleanChanges/CleanChanges.php" );
$wgCCTrailerFilter = true;
$wgCCUserFilter = false;
$wgDefaultUserOptions['usenewrc'] = 1;
# LocalisationUpdate
require_once( "$EXT/LocalisationUpdate/LocalisationUpdate.php" );
$wgLocalisationUpdateDirectory = "$IP/cache";
# Translate 
require_once( "$EXT/Translate/Translate.php" );
$wgGroupPermissions['sysop' ]['translate'] = true;
$wgGroupPermissions['sysop']['translate-messagereview'] = true;
$wgGroupPermissions['sysop']['translate-groupreview'] = true;
$wgGroupPermissions['sysop']['translate-import'] = true;
$wgGroupPermissions['sysop' ]['pagetranslation'] = true;
$wgGroupPermissions['sysop']['translate-manage'] = true;
$wgGroupPermissions['user']['translate'] = true;
$wgGroupPermissions['user']['translate-messagereview'] = true;
$wgGroupPermissions['user']['translate-groupreview'] = true;
$wgGroupPermissions['user']['translate-import'] = true;
$wgGroupPermissions['user']['pagetranslation'] = true;
$wgGroupPermissions['user']['translate-manage'] = true;
$wgTranslateDocumentationLanguageCode = 'qqq';
$wgExtraLanguageNames['qqq'] = 'Message documentation';

require_once( "$EXT/UniversalLanguageSelector/UniversalLanguageSelector.php" );
Comment 1 Siebrand Mazeland 2013-06-28 16:55:20 UTC
MLEB has been tested working before release. Please be aware that bugzilla is not a help desk. Please provide actionable information that indicates what error is causing your wiki to behave differently from expected.

http://www.mediawiki.org/wiki/How_to_report_a_bug describes how to write an actionable issue report.

If you suspect javascript is the issue, use a JavaScript debugger to find out what fails.
Comment 2 Nemo 2013-06-29 14:37:59 UTC
Error console shows nothing for Special:Translate; LanguageStats and MessageGroupStats first load, then apparently refresh and stay blank with:

Timestamp: 29/06/2013 16:35:18
Error: ReferenceError: mw is not defined
Source File: http://www.fountainpen.it/load.php?debug=false&lang=en&modules=jquery.colorUtil&skin=vector&version=20130628T164325Z&*
Line: 1

----

http://www.fountainpen.it/api.php?action=query&meta=siteinfo :
      <fallback>
        <lang code="en" />
      </fallback>

I don't know what effects this can have.
Comment 3 Nemo 2013-06-29 14:43:10 UTC
It's the same on the only other known 1.21.1 wiki using last MLEB: http://wikincat.org/wiki/Especial:Traduzir
But they have
      <fallback>
        <lang code="pt" />
        <lang code="en" />
      </fallback>
too http://wikincat.org/w/api.php?action=query&meta=siteinfo
Comment 4 Siebrand Mazeland 2013-06-29 14:51:44 UTC
Thanks for the help, Nemo. Two questions:
1. In comment 3 you say "it's the same" do you mean the error, or something else?
2. Information on JavaScript may become clearer when using "debug=true" as CGI parameter in the URL, as this will disable some resource loader features that minimize and combine JavaScript files. Can you try if the reported error in comment 2 remains the same?

Thanks.
Comment 5 Amir E. Aharoni 2013-06-29 17:22:58 UTC
I can reproduce this bug on fountainpen.it, but not on my testing wiki and not on wikincat.org. On my testing wiki I tried both 2013.05 and 2013.06, which I am going to release in the next few hours.

I suspect that it's a problem in the installation on fountainpen.it - maybe some server configuration issue or a collision with another extension (maybe AdSense, but that's a wild guess).
Comment 6 Siebrand Mazeland 2013-06-29 19:46:11 UTC
Closing this as invalid for now. This needs more actionable information and is possibly miscategorised.
Comment 7 Andre Klapper 2013-06-29 19:49:13 UTC
In addition to comment 6, https://www.mediawiki.org/wiki/Project:Support_desk might be a good place to receive more support and track down the problem.
Comment 9 Siebrand Mazeland 2013-06-30 22:58:29 UTC
See [[mw:Manual:$wgResourceLoaderMaxQueryLength]] for more information.
Comment 10 simp 2013-07-01 11:02:59 UTC
(In reply to comment #8)

> Seems pretty clear that  $wgResourceLoaderMaxQueryLength has not been
> configured properly. In MW 1.22 alpha the correct value is supposed to be
> detected automatically.

I tried adding: 

$wgResourceLoaderMaxQueryLength=512;

to Localsetting.php (it's still there). 

I have Debian that use suhosin, and it seems that's the value (but to be sure I set that also for suhosin).

But this did not solve the issue. 

I also upgraded to MediaWikiLanguageExtensionBundle-2013.06, but still I have the problem.

I tried also to disable google ads piwik estensions, but still I went in the same problem. If you can tell me some others changes text I can do them.  

But I'd like to avoid the use of the alpha version of mediawiki.
Comment 11 Nemo 2013-07-01 11:11:01 UTC
(In reply to comment #10)
> (In reply to comment #8)
> 
> > Seems pretty clear that  $wgResourceLoaderMaxQueryLength has not been
> > configured properly. In MW 1.22 alpha the correct value is supposed to be
> > detected automatically.
> 
> I tried adding: 
> 
> $wgResourceLoaderMaxQueryLength=512;

The URL of comment 8 didn't change (it's actually a bit longer for me).
Comment 12 simp 2013-07-01 17:29:09 UTC
I (In reply to comment #11)
> (In reply to comment #10)
> > (In reply to comment #8)
> > 
> > > Seems pretty clear that  $wgResourceLoaderMaxQueryLength has not been
> > > configured properly. In MW 1.22 alpha the correct value is supposed to be
> > > detected automatically.
> > 
> > I tried adding: 
> > 
> > $wgResourceLoaderMaxQueryLength=512;
> 
> The URL of comment 8 didn't change (it's actually a bit longer for me).

I did some more tests, but I'm also still getting the same url (886 bytes long). If that variable means to put a limit it the result does'nt seem right. 

When I tried to look at that URL I got a page:

/* No modules requested. Max made me put this here */

I forgot to mention that I'm using Varnish as reverse proxy, but just for port 80. It should not be an issues because I got the same problem and the same answer when going directly to apache on port 443 (that's not under proxy).
Comment 13 simp 2013-07-03 10:25:02 UTC
I solved the problem modifying the PHP configuration for suhosin with:

suhosin.get.max_value_length = 1024

but still there is problem with wgResourceLoaderMaxQueryLength that's seems not having any effect (it's still set to 512 and I'm still getting query longer that that). Anyway I don't care anymore.

Simoen

Note You need to log in before you can comment on or make changes to this bug.


Navigation
Links