Project:Support desk

Jump to: navigation, search

About this board

Edit description
vde   Welcome to MediaWiki.org's Support desk, where you can ask MediaWiki questions!

There are also other places where to askCommunication: IRCCommunication#Chat, mailing listsMailing lists, Q&A etc.

Before you post

Post a new question

  1. To help us answer your questions, please always indicate which versions you are using (reported by your wiki's Special:Version page):
    • MediaWiki
    • PHP
    • Database
  2. Please include the URL of your wiki unless you absolutely can't. It's often a lot easier for us to identify the source of the problem if we can look for ourselves.
  3. To start a new thread, click "Start a new topic".
By clicking "Add topic", you agree to our Terms of Use and agree to irrevocably release your text under the CC BY-SA 3.0 License and GFDL
211.32.133.242 (talkcontribs)

I have a problem.

I set up the VisualEditor on my Mediawiki.

And it work but, I can not save it.

I downloaded the restbase and start it but, It do not working.

I don't know how to use cxserver and restbase.

Please help me

24.54.34.28 (talkcontribs)

I have the same problem; I have followed instructions in

Extension:VisualEditor and

Content translation/cxserver/Setup#Starting cxserver automatically

and I have access to the VisualEditor for creation for new article but I can't save the content. If I try to access VisualEditor in existing article it gives me a server access error. I try to go back in the installation process and I'm asking in what directory we should install the Restbase (giving the instructions:

"git clone https://github.com/wikimedia/restbase.git" and

"npm install".

Can someday answer my question and after I can make some progress in the problem!!!

Thanks in advance

211.32.133.242 (talkcontribs)

{"type":"https://mediawiki.org/wiki/HyperSwitch/errors/not_found#route","title":"Not found.","method":"get","uri":"/localhost/v1"}

Reply to "VisualEditor RESTBase"

How do I add code for system messages?

1
+ r3df0x +x (talkcontribs)

I installed Extension:GlobalUserGroups and it includes system messages for the Global Administrator group but it doesn't have any system messages for other global groups that I want.

Existing pages on creating system messages are highly technical and useless.

Reply to "How do I add code for system messages?"
EvangelionI (talkcontribs)

No ability to expand/hide, no button

http://skrinshoter.ru/s/220517/sLJBX9eV

EvangelionI (talkcontribs)

The template was taken here https://ru.wikipedia.org/wiki/Шаблон:Сокрытие

I installed myself here http://wiki-evan.zzz.com.ua/index.php?title=Шаблон:Сокрытие

Tell me, please, why it does not work ː((

TheDJ (talkcontribs)

You also need the CSS and JS that enables collapsible div system that this depends on. It is in their https://ru.wikipedia.org/wiki/MediaWiki:Common.js and https://ru.wikipedia.org/wiki/MediaWiki:Common.css files

EvangelionI (talkcontribs)

I copied completely earlier already these css and js does not work

Ciencia Al Poder (talkcontribs)

There are JavaScript errors. If you open the developer console (hit F12 in your browser) you'll see the error on the console: ReferenceError: importScript is not defined

For an easy workaround, you should enable $wgIncludeLegacyJavaScript. However I recommend to adapt your JavaScript to not depend on this legacy code.

87.198.212.130 (talkcontribs)

Hi,

I'm seeing an error when I'm not logged into a wiki

Notice: Uncommitted DB writes (transaction from DatabaseBase::query (JobQueueDB::doGetSiblingQueuesWithJobs)). in C:\inetpub\wwwroot\WIKI\includes\db\Database.php on line 3306

I have recently upgraded from 1.23 to 1.27. This error started appearing after the upgrade.

Product Version
MediaWiki 1.27.2
PHP 5.6.22 (cgi-fcgi)
SQLite 3.8.10.2 with full-text search support
Lua 5.1.4

This error message appears only when I'm logged out of the wiki. out of the wiki.

Reply to "Notice: Uncommitted DB writes"
NitaiDas (talkcontribs)

My problem is 3 fold

First, I can not figure out how to make the images available to all separete wikis. Technically it works fine, all images go to the same folder, and when entered in the source code they are viewable. But they show in Special:ListFiles only on the site that uploaded them.

Second, and similar, files uploaded on another wiki, or in the pool wiki, are not available in Visual Editor. Files uploaded on a particular site are available for that site only.

Third is explained below

Here is my settings

(Inside of require_once "......SharedWikiFamilySettings.php"; from LocalSettings.php)

$wgUploadNavigationUrl = 'http://pool.domain.org/index.php/Special:Upload';

$wgUseSharedUploads = true;

$wgSharedUploadPath = 'http://pool.domain.org/images';

$wgSharedUploadDirectory = '/home/domain/public_html/mediawiki/sites/images';

$wgHashedSharedUploadDirectory = true;

$wgUploadDirectory = "/home/domain/public_html/mediawiki/sites/images";

Now the 3rd problem is when i remove $wgUploadDirectory none of the sites are able to display the images.

I think everything is related and would appreciate any direction.

I am using Manual:Wiki family#Drupal-style sites on Ubuntu 16, Mediawiki 1.28.

Ciencia Al Poder (talkcontribs)

Apparently you need to set $wgSharedUploadDBname so the wikis can access the database where the shared uploads are uploaded.

The idea of using $wgSharedUpload* variables is that a central wiki is used for "shared uploads", but other wikis have independent upload directories, so particular uploads are listed only on each respective wiki (not in all of them at once).

NitaiDas (talkcontribs)

Ah ok, so there is no way to have images uploaded on one wiki be available on the other, or be automatically published on the central pool wiki (thereby available for all). Do I understand correctly?

Reply to "Inter wiki images"
Joekerr3447 (talkcontribs)

I was able to get our site up and running, but when I add the line below to my localsettings.php file, save it, then to to my wiki, I get an error. I have added it to the bottom of my localsettings.php file and followed the install procedures via the site. Has anyone run across this before?

wfLoadExtension('EmbedVideo');

PHP Warning: Parameter 1 to EmbedVideoHooks::onParserFirstCallInit() expected to be a reference, value given in C:\inetpub\wwwroot\kb\includes\Hooks.php on line 195

Ciencia Al Poder (talkcontribs)

Apparently Extension:EmbedVideo isn't compatible with your MediaWiki version. This has been reported already on the project page on github

Reply to "LocalSettings.php Issue"

Installation problem w mediawiki-1.28.2

27
Aa2018 (talkcontribs)

when accessing the index.php file: http://www.myserver.com/w/mediawiki-1.28.2/index.php

Getting the following error: although i have upgraded php to version 5.5.9

MediaWiki 1.28.2

Database: 5.7.18 MySQL Community Server (GPL)

I see the installation guide reference to the configuration script and Local_settings.php files and don't see

these under the installed mediawiki folder:w/mediawiki-1.28.2/

MediaWiki 1.28 internal error

MediaWiki 1.28 requires at least PHP version 5.5.9, you are using PHP 5.4.16.

Thanks in Advance!

2002:43F4:3186:1234:BD8B:6C1:649E:6DD4 (talkcontribs)

Your PHP version is too old. Update it.

Aa2018 (talkcontribs)

i have already upgraded php to 5.5.9 but it is still giving the error.

where is the location of the config script mentioned in the install document ?

thanks!

67.244.49.134 (talkcontribs)

/mw-config

Aa2018 (talkcontribs)

i see 3 config files:

[root@client7-227 mw-config]# pwd

/root/mediawiki-1.28.2/mw-config

[root@client7-227 mw-config]# ls

config-cc.css  config.css  config.js  images  index.php  overrides

[root@client7-227 mw-config]#

are we supposed to run the script manually: ./config.js ?

thanks!

2002:43F4:3186:1234:BD8B:6C1:649E:6DD4 (talkcontribs)

You visit it in the web browser. I.E. yourdomain.com/mw-config

Aa2018 (talkcontribs)

Tried that from firefox it seems like it displays content of config.js:

http://mydomain-name.com/w/mediawiki-1.28.2/mw-config/config.js

( function ( $ ) { $( function () { var $label, labelText;

function syncText() { var value = $( this ).val() .replace( /[\[\]\{\}|#<>%+? ]/g, '_' ) .replace( /&/, '&amp;' ) .replace( /__+/g, '_' )

i guess something is not quite right!

Thanks!

MacFan4000 (talkcontribs)

Try http://mydomain-name.com<nowiki/>/w/mediawiki-1.28.2/mw-config/index.php

Aa2018 (talkcontribs)

tried that and it prompts me with a dialog box to open index.php

http://mydomain-name.com/w/mediawiki-1.28.2/mw-config/index.php

Aa2018 (talkcontribs)

Not sure what the problem is, tried index.php and config.js and all i get is the content of these file

from firefox/chrome browsers:

http://mydomain-name.com/w/mediawiki-1.28.2/mw-config/config.js or

http://mydomain-name.com/w/mediawiki-1.28.2/mw-config/index.php

Any ideas ?

thank you.

83.135.231.155 (talkcontribs)

PHP files currently obviously are not linked to the PHP executable. And when your domain is accessed using the web browser, PHP files should be linked to PHP 5.5 or newer. They were linked to PHP 5.4 when you created this thread.

Aa2018 (talkcontribs)

how do i link the php files to php5.5.9 executable ?

thanks.

Ciencia Al Poder (talkcontribs)

you may have installed php-cli, but not enabled php on the webserver. Try installing libapache2-mod-php5 (or whatever is called in your distribution)

Aa2018 (talkcontribs)

this does not exist:

 yum search all libapache2*

Loaded plugins: fastestmirror

Loading mirror speeds from cached hostfile

 * base: mirror.compevo.com

 * extras: mirror.lax.hugeserver.com

 * updates: repos-lax.psychz.net

Warning: No matches found for: libapache2*

No matches found

Ciencia Al Poder (talkcontribs)

Search in google "how to enable PHP in apache in (distro)", replacing (distro) by your linux distribution.

Aa2018 (talkcontribs)

went through this document here: php installation on tutrorialpoint .com

now, we are getting permission errors, although /w/mediawiki-1.28.2 permission is wide open.

You don't have permission to access /w/mediawiki-1.28.2/mw-config/config.js on this server.

MacFan4000 (talkcontribs)

Go to the root of the mw-config folder.

Aa2018 (talkcontribs)

not sure what you mean by go to the root of mw-config folder????

MacFan4000 (talkcontribs)

mydomain.com/mw-config

Aa2018 (talkcontribs)

we are getting the same result: mydomain.com/mw-config/config.js

Forbidden

You don't have permission to access /mw-config/config.js on this server.

thanks/

This comment was hidden by Ciencia Al Poder (history)
MacFan4000 (talkcontribs)

Don't go to config.js, go to index.php

Aa2018 (talkcontribs)

same results: with mw-config/index.php

You don't have permission to access /mw-config/index.php on this server.

Ciencia Al Poder (talkcontribs)

This looks like a misconfiguration on the apache itself (if you can discard that permissions on the filesystem are not the issue). You may try an apache forum, where you can post the entire configuration files so someone can take a look. Or try to understand how it works by reading the manual, something I'd recommend if you plan to maintain that server and the wiki is public.

Aa2018 (talkcontribs)

We follow the steps in the media-wiki installation guide .

Is this php install & configuration not covered in the media-wiki installation guide ?

thanks!

Ciencia Al Poder (talkcontribs)

webserver (apache, nginx...) and php are general software that have their own installation/configuration guides that are not covered here.

Aa2018 (talkcontribs)

@Ciencia Al Poder, have you done this install ?

can you share the urls for this apache, ngnix and php install and configuration which have worked for you ?

thanks.

Reply to "Installation problem w mediawiki-1.28.2"
182.253.80.174 (talkcontribs)

Hi, i'm looking for wiki to use in small enterprises (15-25 people). I don't quite understand wiki in general and would like to ask: in running mediawiki, do php and database required for all users?

Star Warden (talkcontribs)

If you're asking if anyone who uses the wiki needs to have php and database installed on their own end, then no. The php and database is required for the wiki itself.

Ciencia Al Poder (talkcontribs)

Users only need a web browser to connect to the server where the wiki is hosted. The server that hosts the wiki needs PHP and database access

Seach and Special Pages aren't using Theme

6
Plobrien (talkcontribs)

MonoBook theme is active and working perfectly except Search Results and Special:

Am I missing something or just ignorant of how to setup??

http://mediatech.wiki

Product Version
MediaWiki 1.28.2
PHP 5.6.30 (cgi-fcgi)
MySQL 5.6.35-cll-lve
ICU 50.1.2
Ciencia Al Poder (talkcontribs)

Your load.php URL crashes when loading some modules, for example: mediawiki.helplink. You should enable the display of exception details in Manual:How to debug to see an error message and identify the issue

Plobrien (talkcontribs)

Interesting, I thought we had debug enabled

Thank you!

TheDJ (talkcontribs)

I don't want to come across unfriendly or anything but, couldn't you have used a different domain ?

The landscape is confusing enough when it comes to the terms of wiki, wikipedia, wikimedia, wikitech.wikimedia.org, wikileaks etc etc.. Further adding to that confusion for wiki users might not be the best idea...

Plobrien (talkcontribs)

We work in the media tech industry. It's an existing convention, like biotech or fintech. i.e. http://www.mediatechsummit.com I suppose we could go with something other than .wiki but its a wiki, no?

This comment was hidden by Plobrien (history)
Reply to "Seach and Special Pages aren't using Theme"

Error loading data from server: 404: parsoidserver-http: HTTP 404

17
Hvdeynde (talkcontribs)

Environment:

OS: Ubuntu 14.04.4 LTS

MediaWiki: 1.26.2

wiki url: http://intranet.hit.local/wiki-hitit/

parsoid listener port: 8142

After a good day of trying to set up VirtualEditor, the above error is still with us.

I think I followed the instructions in

- https://www.mediawiki.org/wiki/Extension:VisualEditor

- https://www.mediawiki.org/wiki/Parsoid/Setup

though, I'm still uncertain about the url/uri.

/var/www/html/wiki-hitit/LocalSettings.php has the following entries for VisualEditor:

### VisualEditor

require_once( "$IP/extensions/VisualEditor/VisualEditor.php" );

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

$wgSessionsInObjectCache = true;

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

'url' => 'http://localhost:8142/wiki-hitit/',

'prefix' => 'wiki-hitit'

);

/etc/mediawiki/parsoid/localsettings.js has the following entries:

'use strict';

exports.setup = function(parsoidConfig) {

parsoidConfig.setMwApi({ prefix: 'wiki-hitit', uri: 'http://localhost/wiki-hitit/api.php' });

parsoidConfig.useSelser = true;

};

/var/www/html/wiki-hitit/extensions/parsoid/localsettings.js has these:

'use strict';

exports.setup = function(parsoidConfig) {

parsoidConfig.setMwApi({

prefix: 'wiki-hitit', // optional

uri: 'http://localhost/wiki-hitit/api.php' });

parsoidConfig.useSelser = true;

};

The api.php is accessible:

$ curl 'http://localhost/wiki-hitit/api.php' | head

% Total    % Received % Xferd  Average Speed   Time    Time     Time  Current

Dload  Upload   Total   Spent    Left  Speed

0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0

<!DOCTYPE html>

<html lang="en" dir="ltr" class="client-nojs">

<head>

<meta charset="UTF-8" />

<title>MediaWiki API help - Hitit</title>

The wiki pages now have both an 'edit' and an 'edit source' tab.  But when you press the 'edit' tab, you get a pop-up with this error message:

"Error loading data from server: 404: parsoidserver-http: HTTP 404. Would you like to retry?"

I've found several articles about this issue, but none that helped.

Is the url/uri definition correct? (All examples I found used simple urls.)

Are there any log files I can check?  I tried the parsoid and apache2 logs, but there's nothing there.

Any other suggestions?

Kind regards,

Herta

Ciencia Al Poder (talkcontribs)

There's a 404 error somewhere, try to find in apache error logs the URL being requested, that should give you a hint what configuration is wrong. Maybe you need to omit the "prefix" configuration part

Hvdeynde (talkcontribs)

Thanks for your reply.

There's nothing in the apache error log. The access log has this entry:

10.32.14.57 - - [29/Feb/2016:09:59:13 +0100] "GET /wiki-hitit/api.php?action=visualeditor&format=json&paction=parse&page=Main_Page&uselang=en HTTP/1.1" 200 511 "http://intranet.hit.local/wiki-hitit/index.php/Main_Page?veaction=edit" "Mozilla/5.0 (Windows NT 6.1; WOW64; rv:44.0) Gecko/20100101 Firefox/44.0"

10.32.14.57 - - [29/Feb/2016:09:59:13 +0100] "GET /wiki-hitit/load.php?debug=false&lang=en&modules=ext.visualEditor.base%2Ccore%2Cdata%2CdesktopArticleTarget%2Cicons%2Clanguage%2Cmediawiki%2Cmwalienextension%2Cmwcore%2Cmwformatting%2Cmwgallery%2Cmwimage%2Cmwlink%2Cmwmeta%2Cmwreference%2Cmwtransclusion%7Cext.visualEditor.core.desktop%7Cext.visualEditor.mwimage.core%7Cext.visualEditor.mwreference.core%7Cext.visualEditor.mwtransclusion.core%7Cjquery.autoEllipsis%2CbyteLimit%7Cjquery.uls.data%7Cmediawiki.ForeignApi%2Cwidgets%7Cmediawiki.ForeignApi.core%7Cmediawiki.action.history.diff%7Cmediawiki.api.options%7Cmediawiki.language.names%2CspecialCharacters%7Cmediawiki.page.gallery.styles%7Cmediawiki.skinning.content.parsoid%7Cmediawiki.widgets.CategorySelector%2Cstyles%7Cmoment%2Coojs%2Coojs-ui%2Cpapaparse%2Crangefix%2Cunicodejs%7Coojs-ui.styles%7Coojs-ui.styles.icons%2Cicons-editing-advanced%2Cicons-editing-core%2Cicons-editing-list%2Cicons-editing-styling%2Cindicators%2Ctextures&skin=monobook&version=10061a186059 HTTP/1.1" 200 2196466 "http://intranet.hit.local/wiki-hitit/index.php/Main_Page?veaction=edit" "Mozilla/5.0 (Windows NT 6.1; WOW64; rv:44.0) Gecko/20100101 Firefox/44.0"

Hvdeynde (talkcontribs)

P.S. I removed the prefix from the three config files and restarted parsoid and apache2, but the error remains.

Swennet (talkcontribs)

I think the URI in your LocalSettings.php file should be

'url' => 'http://localhost:8142'

.

So without the

/wiki-hiti/

part. Let us know if that works :)

Hvdeynde (talkcontribs)

After much trial and error, that is indeed what fixed it.

Thanks, Swennet.

Andreyshade84 (talkcontribs)

@Hvdeynde, how you solve this issue? Pleace post your config files

143.196.159.101 (talkcontribs)

Hello all,

After spending a LOT of time to let VisualEditor extension be able to work on my Wiki (I tried every possibilities for both parsoid setting file and LocalSettings file), I finally found a simple conf that actually works for me. So, that's what I am sharing below.

For your information :

-running on Debian,

-mediawiki 1.26.2,

-wiki's name si WikiName,

-it's located in /var/www/WikiName,

-IP adress of my wiki is IP_adress (like 123.123.123.123).

In /etc/mediawiki/parsoid/setting.js, what has changed from the original file is following below:

parsoidConfig.setMwApi({ prefix: 'IP_adress', uri: 'http://IP_adress/WikiName/api.php' );

In LocalSettings.php:

$wgVirtualRestConfig[‘modules’][‘parsoid’] = array(

           

‘url’ => ‘http://IP_adress:8142’

);

Everything else is useless for me (like domain for instance). I think that 'Localhost' is not working on recent wiki (my visual editor was not working since I updated my wiki), that's why I think you should try to put some IP adress of yours to make it work insteasd of localhost.

I hope it will help a few of you!

@+

KrazyMax

143.196.159.101 (talkcontribs)

Sorry for the bad layout, looked much better before it was actually posted!

KrazyMax

YasoKuuhl42 (talkcontribs)

Hello,

it dosnt work to me.

MediaWiki 1.28.0

i become 404

LocalConfig.php:

wfLoadExtension( 'VisualEditor' );

// Enable by default for everybody $wgDefaultUserOptions['visualeditor-enable'] = 1;

// Optional: Set VisualEditor as the default for anonymous users // otherwise they will have to switch to VE // $wgDefaultUserOptions['visualeditor-editor'] = "visualeditor";

// Don't allow users to disable it $wgHiddenPrefs[] = 'visualeditor-enable';

// OPTIONAL: Enable VisualEditor's experimental code features

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

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

      // URL to the Parsoid instance
      // Use port 8142 if you use the Debian package
      'url' => 'http://XXX.XXX.XXX.XXX:8142',
      // Parsoid "domain", see below (optional)
      //'domain' => 'XXX',
      // Parsoid "prefix", see below (optional)
      //'prefix' => 'XXX'

);

localsettings.js:

parsoidConfig.setInterwiki( { prefix: 'XXX.XXX.XXX.XXX', uri: 'http://XXX.XXX.XXX.XXX/mediawiki/api.php' } );

Ciencia Al Poder (talkcontribs)

From previous messages I see the config is parsoidConfig.setMwApi, not parsoidConfig.setInterwiki. Can you check that's correct?

YasoKuuhl42 (talkcontribs)

Thanks. But ist the same 404 -.-

   parsoidConfig.setMwApi({ prefix: 'XXX.XXX.XXX.XXX', uri: 'http://XXX.XXX.XXX.XXX/mediawiki/api.php'});
Ciencia Al Poder (talkcontribs)

does opening http://XXX.XXX.XXX.XXX/mediawiki/api.php load the api help page when opening the URL from the server?

YasoKuuhl42 (talkcontribs)

yes

YasoKuuhl42 (talkcontribs)

Other ideas?

Ciencia Al Poder (talkcontribs)

You may try asking in the #mediawiki-visualeditorconnect IRC channel.

172.251.84.63 (talkcontribs)

Note:

I got this exact error due to putting a forward slash at the end of the Parsoid URI. In other words, http://localhost:8142/ caused the error, and changing it to http://localhost:8142 fixed it.

This is what it looks like in my MediaWiki 1.28 LocalSettings.php--this works!

# Visual Editor

require_once("$IP/extensions/VisualEditor/VisualEditor.php");

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

$wgHiddenPrefs[] = 'visualeditor-enable';

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

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

        'url' => 'http://localhost:8142',

        'domain' => 'localhost'

);

Reply to "Error loading data from server: 404: parsoidserver-http: HTTP 404"