Last modified: 2013-01-15 20:02:45 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.
(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?
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?
I have the same problems on the latest VE and Parsoid,too. could someone help me?
(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
(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!
I'm sorry, this should be a bug. It occurs due to the wrong setting in js/api/localsettings.js env.setInterwiki( 'localhost', 'http://' );