Last modified: 2013-01-15 20:02:45 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 T45566, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 43566 - VisualEditor: Fix "Error loading data from server: error. Would you like to retry?"
VisualEditor: Fix "Error loading data from server: error. Would you like to r...
Status: RESOLVED INVALID
Product: VisualEditor
Classification: Unclassified
General (Other open bugs)
unspecified
All Linux
: Unprioritized critical
: ---
Assigned To: James Forrester
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2013-01-01 14:55 UTC by Coiby
Modified: 2013-01-15 20:02 UTC (History)
4 users (show)

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


Attachments

Description Coiby 2013-01-01 14:55:35 UTC
I'm testing VE and meet such error: "Error loading data from server: Server error. Would you like to retry". And the output of Parsoid says: "non-200 response: 404 undefined". According to http://en.wikipedia.org/wiki/Wikipedia:VisualEditor/Feedback/Archive_2012_12#Error_loading_data_from_server:_Server_error._Would_you_like_to_retry.3F_2, the bug should have be fixed. 
P.S. I'm using latest VE and Parsoid.
Comment 1 Krinkle 2013-01-02 08:44:04 UTC
(In reply to comment #0)
> P.S. I'm using latest VE and Parsoid.

Are you saying you're running it on your own server? Or are you using Wikipedia?
Comment 2 Coiby 2013-01-02 11:20:26 UTC
I'm running it on my own server.
Here's the address for testing: wiki.aiesec.cn/index.php?title=Test.
If you click "VisualEditor", the above error will occur.
> (In reply to comment #0)
> > P.S. I'm using latest VE and Parsoid.
> 
> Are you saying you're running it on your own server? Or are you using
> Wikipedia?
Comment 3 chaos 2013-01-04 14:13:26 UTC
I have the same problems on the latest VE and Parsoid,too.
could someone help me?
Comment 4 Roan Kattouw 2013-01-05 00:35:34 UTC
(In reply to comment #3)
> I have the same problems on the latest VE and Parsoid,too.
> could someone help me?
Could you tell us:
* What $wgVisualEditorParsoidURL and $wgVisualEditorParsoidPrefix are set to in your LocalSettings.php
* the contents of Parsoid's localsettings.js file
* where Parsoid is running
Comment 5 chaos 2013-01-05 01:34:21 UTC
(In reply to comment #4)
> (In reply to comment #3)
> > I have the same problems on the latest VE and Parsoid,too.
> > could someone help me?
> Could you tell us:
> * What $wgVisualEditorParsoidURL and $wgVisualEditorParsoidPrefix are set to
> in
> your LocalSettings.php
> * the contents of Parsoid's localsettings.js file
> * where Parsoid is running

Here is my LocalSettings.php

require_once("$IP/extensions/VisualEditor/VisualEditor.php");
 
// Allow using VisualEditor in the main namespace only (default)
$wgVisualEditorNamespaces = array( NS_MAIN );
 
// Enable by default for everybody
$wgDefaultUserOptions['visualeditor-enable'] = 1;
 
// Don't allow users to disable it
$wgHiddenPrefs[] = 'visualeditor-enable';

$wgVisualEditorParsoidURL = 'http://localhost:8000/';


And my localsettings.js:

exports.setup = function( config, env ) {
        // The URL here is supposed to be your MediaWiki installation root
        env.setInterwiki( 'localhost', 'http://localhost/wiki' );

        // Use the PHP preprocessor to expand templates via the MW API
        env.usePHPPreProcessor = false;
};

// Use selective serialization
exports.useSelser = false;
                      
I run the Parsoid in the background using node on my own server.

Thanks!
Comment 6 Coiby 2013-01-09 04:04:54 UTC
I'm sorry, this should be a bug. It occurs due to the wrong setting in js/api/localsettings.js
env.setInterwiki( 'localhost', 'http://' );

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


Navigation
Links