Jump to content

Topic on Project:Support desk

MediaWiki + Visual Editor Problems

2
77.87.191.179 (talkcontribs)

Hi guys,

i've got a problem with my MediaWiki Installation.

I installed MediaWiki 1.39, activated Visual Editor, but it doesn't work.

curl test with redirect works also.

curl 'http://localhost/mediawiki/rest.php/v3/page/Hauptseite_IT-Doku_Klinikmed_-_IT/html'

<a href="http://localhost/mediawiki/rest.php/v1/page/Hauptseite_IT-Doku_Klinikmed_-_IT/html">here</a>.</p>

curl 'http://localhost/mediawiki/rest.php/v1/page/Hauptseite_IT-Doku_Klinikmed_-_IT/html'

works also.

But start Visual Editor from MediaWiki, i always get a 404 error, see also apache2 access.log

::1 - - [12/Nov/2024:16:47:41 +0100] "GET /mediawiki/rest.php/localhost/v3/page/html/Thinclient/44678?redirect=false&stash=true HTTP/1.1" 404 542 "-" "VisualEditor-MediaWiki/1.39.9"

127.0.0.1 - - [12/Nov/2024:16:47:41 +0100] "GET /mediawiki/api.php?action=visualeditor&format=json&paction=parse&page=Thinclient&uselang=de&formatversion=2&oldid=44678 HTTP/1.1" 200 881 "http://localhost/mediawiki/index.php?title=Thinclient&veaction=edit&section=2" "Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:132.0) Gecko/20100101 Firefox/132.0"


Everything's seems to be configured correctly, but i get a 404 error.

My LocalSettings.php:

# DebugLog

$wgDebugLogFile = "/var/log/mediawiki-debug.log";

$wgLogPrefix = 'restbase: ';

$wgDebugLogGroups['restbase'] = '/var/log/mediawiki/restbase.log';

$wgDebugLogGroups['VisualEditor'] = '/var/log/mediawiki/VisualEditor.log';

$wgDebugLogGroups['Parsoid'] = '/var/log/mediawiki/Parsoid.log';

## Default skin: you can change the default skin. Use the internal symbolic

## names, ie 'vector', 'monobook':

$wgDefaultSkin = "vector";

# Enabled skins.

# The following skins were automatically enabled:

wfLoadSkin( 'CologneBlue' );

wfLoadSkin( 'Modern' );

wfLoadSkin( 'MonoBook' );

wfLoadSkin( 'Vector' );

# VisualEditor

wfLoadExtension( 'VisualEditor' );

# wfLoadExtension( 'Parsoid', 'vendor/wikimedia/parsoid/extension.json' );

$wgDefaultUserOptions['visualeditor-editor'] = "visualeditor"; // Setzt VisualEditor als Standard

$wgVisualEditorEnableWikitext = true;

$wgDefaultUserOptions['visualeditor-enable'] = 1;

$wgHiddenPrefs[] = 'visualeditor-enable';

$wgVisualEditorEnableWikitext = true;

$wgVisualEditorParsoidURL = 'http://localhost/mediawiki/rest.php';

$wgVisualEditorRestbaseURL = 'http://localhost/mediawiki/rest.php/v1/page/';  // Direkt auf `v1` verweisen

$wgVirtualRestConfig['modules']['parsoid'] = [

   'url' => 'http://localhost/mediawiki/rest.php'  // URL zur Parsoid REST-API

];

Bawolff (talkcontribs)

Could be a virtual host issue in your webserver config maybe.

Reply to "MediaWiki + Visual Editor Problems"