Extension talk:VisualEditor/2017/06
Add topic| This page used the Structured Discussions extension to give structured discussions. It has since been converted to wikitext, so the content and history here are only an approximation of what was actually displayed at the time these comments were made. |
Please note that the Wikimedia Foundation does not provide support for installing VisualEditor on third-party wikis. However, if you have a question we may try to help.
Sessions are disabled for this entry point
[edit]Using PHP 5.5.9-1ubuntu4.21 (apache2handler) and mySQL 5.5.49-0ubuntu0.14.04.1, we try to upgrade our wikifarm to MediaWiki 1.28.2 with Semantic MediaWiki 2.5.2. So latest stable versions of both.
It's working fine till we use the Visual Editor-extension. Console of browser gives this error:.
"/wiki/testwiki/wiki/load.php?debug=false&lang=nl&modules=startup&only=scripts&skin=vector BadMethodCallException from line 845 of /home/hz01/mediawiki/core/includes/session/SessionManager.php: Sessions are disabled for this entry point"
This message disappears as soon as I remove "require_once "$IP/extensions/VisualEditor/VisualEditor.php"" from LocalSettings.php.
How can I fix this?
Regards, Jethro Waanders (talk) 17:31, 1 June 2017 (UTC)
- This is an issue with Semantic MediaWiki that seems to be fixed in latest SMW version. Ciencia Al Poder (talk) 20:13, 1 June 2017 (UTC)
- Thanks. But as said I'm using SMW version 2.5.2, the latest version.
- And removing "require_once "$IP/extensions/VisualEditor/VisualEditor.php"" does the message disappear. So a VE-issue? Waanders (talk) 08:33, 2 June 2017 (UTC)
- This (or a closely similar) problem can also be caused by the Arrays extension, where the code in the "else" branch of the "if" in the static "init" function in the file Arrays.php is the culprit:
global $egArraysCompatibilityMode;- $parser->mExtArrays = new self();
- if( $egArraysCompatibilityMode ) {
- self::$mDefaultSep = ', ';
- }
- else {
- global $wgLang;
- $wgLang->getMessageFromDB( 'comma-separator' );
- self::$mDefaultSep = $wgLang->getMessageFromDB( 'comma-separator' );
}- If you are using the Arrays function -- which isn't currently maintained -- you can replace the entire "if" statement with "self::$mDefaultSep = ', ';" (assuming you're OK with comma being the default separator).
- If you're not using the Arrays extension, try disabling all extensions and then re-enable them one at a time until the bug occurs. Henryfunk (talk) 17:51, 25 November 2017 (UTC)
- Also see: https://github.com/SemanticMediaWiki/SemanticMediaWiki/issues/1867 (last comment James) Waanders (talk) 08:27, 7 June 2017 (UTC)
after git upgrade VE not working.
[edit]Hello after an git upgrade to latest of mediawiki and extensions, ve does not work. this displays:
Error loading data from server: no_vrs: The VirtualRESTService for the document server is not defined; see https://www.mediawiki.org/wiki/Extension:VisualEditor. Would you like to retry?
Has anyone else see that? RobFantini (talk) 19:02, 2 June 2017 (UTC)
- adding this to LocalSettings.php fixed the issue:
$wgVirtualRestConfig['modules']['parsoid'] = array(// URL to the Parsoid instance// Use port 8142 if you use the Debian package'url' => 'http://localhost:8142',// Parsoid "domain", see below (optional)'domain' => 'localhost',// Parsoid "prefix", see below (optional)'prefix' => 'localhost');- note VE worked without that prior to the upgrade.
- PS: Thank you for this great extension. RobFantini (talk) 16:33, 13 June 2017 (UTC)
- Thanks for this answer.
- But after adding above codes to LocalSettings.php, another error occurs:
- apierror-visualeditor-docserver-http-error: (curl error: 28) Timeout was reached.
- Could you please help to fix this issue? Maltazard (talk) 05:04, 2 February 2018 (UTC)
- same error :( 193.127.207.152 (talk) 03:26, 25 March 2018 (UTC)
- I had the same problem and your solution fixed it, Thanks! 212.179.71.70 (talk) 17:28, 8 June 2018 (UTC)
visual editor problem with code block
[edit]when several code blocks are present in the page, visual editor will only load and display one but not others. going between edit and read will randomly load and display different code blocks, but only 1... what's the issue here? I'm running MW 1.28 with matching VE version 68.96.77.199 (talk) 07:49, 4 June 2017 (UTC)
- I'm not sure, but could you check something in the wikitext on the page you're having difficulty with?
- I seem to recall that a previous problem was solved by making the tags nested properly (A–B–B–A, not A–B–A–B). Perhaps one of them is already in the correct order, and the others aren't? Whatamidoing (WMF) (talk) 22:25, 7 June 2017 (UTC)
- it does this on every page, i checked the wiki text, everything is in order.. there's something going on with visual editor... but what? 68.96.77.199 (talk) 07:24, 9 June 2017 (UTC)
- I'm sorry that you're having this problem. Is the page something that you could share in public? Or could you make a generic/non-confidential page that has a the same problem on your wiki, and then see if it works here? You can paste text into my User:Whatamidoing (WMF)/Sandbox if that would be helpful. Whatamidoing (WMF) (talk) 19:46, 9 June 2017 (UTC)
- i went ahead and tested in on the sandbox, and everything on there works picture perfect.
- so there are really two issues from visual editor as i see it on my install
- only 1 code block is loaded (randomly picks one)
- only the first image on the page is loaded, the rest appear like this File: RS-232 full serial port.png
- any ideas where I can look to solve these issues? 68.96.77.199 (talk) 06:59, 30 June 2017 (UTC)
- I solved the issue, thank God because it was driving me crazy... I have a private wiki and it also goes over HTTPS... i added these two lines and everything started working!!!
- $wgSessionsInObjectCache = true;
- $wgVirtualRestConfig['modules']['parsoid']['forwardCookies'] = true; 68.96.77.199 (talk) 07:03, 30 June 2017 (UTC)