Project:Support desk

Jump to: navigation, search

About this board

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, mwusers (unofficial forum) 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".
Tozeos (talkcontribs)

Hi everyone!

I'm new on this and I have some troubles to fix the navbar header. As you can see, I cant hide or show the table and look at the buttons "view, talk and edit" they don't appear. Print: https://i.imgur.com/kYG1mID.png

Malyacko (talkcontribs)

Is this on your own wiki? If so, are you sure all required templates / modules etc are around? Which exact MediaWiki version is this about?

Tozeos (talkcontribs)

I use the miraheze.org, that gives me a server with the latest version of MediaWiki. I do not know how to check the templates/modules that are missing. At this time, the Miraheze are updating to the MediaWiki 1.30

TheDJ (talkcontribs)

it seems to me that this was a partial copy of a template from another wiki, or possibly a complete import, where the miraheze.org server is missing an extensions that the imported templates require.

Templates are the most difficult part about wiki pages :(

Reply to "Trouble with dynamic tables"
Alexwmunro1992 (talkcontribs)

what is the best way to contact another user to ask for help and or clarification

Reply to "contacting other users"
Bttfvgo (talkcontribs)

I was testing a Gadget I used to use (jCarousel) and I noticed it only works half the time. (I'm on Vector). Chrome debug console gives me the following errors:

This page is using the deprecated ResourceLoader module "jquery.ui.core". Please use "mediawiki.ui.button" or "oojs-ui" instead. This page is using the deprecated ResourceLoader module "jquery.ui.widget". This page is using the deprecated ResourceLoader module "jquery.ui.position".

In that vein, I've noticed that all of my Javascript is acting funny. My drop down menus don't work, search suggestions don't work, basically anything involving Javascript only works half the time now. Is there something I can change to get them to start working? These errors are being shown on every page. Thank you!

Malyacko (talkcontribs)

Yes: What the message says: Please use "mediawiki.ui.button" or "oojs-ui" instead.

ResourceLoader/Migration guide (users)

Bawolff (talkcontribs)

While you should upgrade your dependencies, its likely the js "half-working" is caused by something else.

Bttfvgo (talkcontribs)

How can I go about that? I've ran update.php and composer update. Is there another place I can run composer update and do I have to do it on each extension? Thanks!

Bttfvgo (talkcontribs)

I've been looking though various files and haven't found anything useful. I do see that those modules aren't in my Resources director (like other jquery modules) so I know that's the problem. But I'm unsure of how to remove those references to them. I checked Wikivoyage (where they also use jCarousel) and they have the same problem - yet their carousel still works. So I'm sure the problem is somewhere else, I just don't know where. I do really really love this software and I'm willing to learn!

UPDATE: Found them all in /public_html/resources/lib/jquery.ui/ but don't know what to do with them.

Bttfvgo (talkcontribs)

Could it be a java problem? When I type "java -version" I get the following: Error occurred during initialization of VM java/lang/NoClassDefFoundError: java/lang/Object

Bttfvgo (talkcontribs)

I also receive the following (additional) error on the Main Page: Uncaught TypeError: $.debounce is not a function

Reply to "Javascript is sketchy"
Vijacrat (talkcontribs)

System: 14.04 Ubuntu + Mediawiki 1.26 on Hyper-V. I'm trying to install the Visual Editor extension so that using the wiki is easier.

Error Code when I hit "edit" in my localwiki on Main_Page:

localwiki says:

Error loading data from server: (curl error: 7) Couldn't connect to server: parsoidserver-http-error:(curl error: 7) Couldn't connect to server. Would you like to retry?

I have curl, php5, and php5-curl installed. /var/log/parsoid/parsoid.log is empty. Visual Editor part of LocalSettings.php:

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',

'prefix' => 'localhost'

I haven't changed /etc/mediawiki/parsoid/settings.js except for this line:

parsoidConfig.setMwApi({ uri: 'https://localhost/api.php', prefix: 'localhost', domain: 'localhost' });

Using (https://github.com/wikimedia/parsoid/tree/master/guides/setup), I did 'npm install' in /var/www/html/extensions/parsoid, but when I get to 'node bin/server', I get

Error while reading config file: Error: ENOENT, open '/var/www/html/extensions/parsoid/config.yaml'

I think it's a problem with the parsoid server. Any help is appreciated.

129.67.90.252 (talkcontribs)

have you solved this yet?

NitaiDas (talkcontribs)

It could be that Curl is not running or parsoid is not running, check both.

Wargo (talkcontribs)

Have you "/var/www/html/extensions/parsoid/config.yaml"?

NitaiDas (talkcontribs)

Yes, I finally got it. The following are a few things that helped me.

  1. config.yaml is indentation sensitive. Running tail /var/log/parsoid/parsoid.log helped to check that after a parsoid (failed) start. In words, parsoid will not start if the indentation in config.yaml is wrong.
  2. The domain can actually be any word, as long as config.yaml and LocalSettings.php match.
  3. The uri in mycase was 'http://en.domain.com:8142/api.php'
  4. This page also helped > Parsoid/Troubleshooting
  5. Exact setup for Parsoid/Setup#Multiple wikis sharing the same parsoid service
Fakeologist (talkcontribs)

I'm new to mediawiki, and I've just received this error.

Where should I start?

Reply to "Curl 7 Error - VisualEditor Extension"
MAzZY (talkcontribs)

Hi team!

I have installed local wiki just for my team and now I want to remove license messages from upload box.

How can I remove this box? See screenshot

https://imgur.com/a/HBkKI

Bttfvgo (talkcontribs)

Hi MAzZY! You can change the text displayed by editing the contents of MediaWiki:Copyrightwarning.

Bawolff (talkcontribs)

In general, if you're not sure how to edit anything in the interface, add ?uselang=qqx (or &uselang=qqx) to the url, and mediawiki will show what pages in the MediaWiki: namespace controls what bit of the interface.

Bttfvgo (talkcontribs)

Super cool!!!

Reply to "Remove license messages"

Upgrade from 1.27.1 to 1.30.0 gives me a white screen for a home page.

4
212.204.84.138 (talkcontribs)

Yes, I tested the upgrade with a cloned version of my wiki on localhost and have backups too.

I followed the Upgrading portion of the web documentation fairly faithfully. I ran maintenance/runJobs.php and maintenance/update.php with Apache2 enabled.

Why is this? The Upgrading page mentions nothing of a white page instead of a wiki...

212.204.84.138 (talkcontribs)

Hang on... After I typed this, I look over and see the login screen for the wiki. There is obviously a terrible lag issue.

星耀晨曦 (talkcontribs)

May be a fatal error occurred while running MW but you did not enable display_error option in php.ini, causing the browser to provide a blank page.

Malyacko (talkcontribs)

See Manual:Errors and symptoms#You see a Blank Page

Reply to "Upgrade from 1.27.1 to 1.30.0 gives me a white screen for a home page."
212.204.84.138 (talkcontribs)

Referring to the document:

Manual:Upgrading

It is suggested that you can back up a MySQL database using the command:

mysqldump --user=wikidb_user --password=wikidb_userpassword wikidb > file.sql

but this isn't entirely accurate. This will not preserve the name of the database name of the wiki. A more robust backup would be:

mysqldump --user=wikidb_user --password=wikidb_userpassword --databases wikidb > file.sql

which tells mysqldump to also include a CREATE DATABASE clause as the first step in the script. Why on earth does the documentation suggest this method?

星耀晨曦 (talkcontribs)

You can edit the document.

212.204.84.138 (talkcontribs)

Well yes (assuming I have edit privileges, which I don't), but the final question is why on earth does the documentation suggest this method. I could gain privileges and start an edit war, but I'm too busy to play that way.

Malyacko (talkcontribs)

Why does software have bugs? Because nobody found and fixed them yet.

But why on earth do you expect to start an edit war by improving docs? This is mediawiki.org.

星耀晨曦 (talkcontribs)

Why this site will have edit war?

2001:16B8:1083:A400:10F1:ADBA:4A02:FA6E (talkcontribs)

He obviously is not convinced of his idea. At least he makes it sound that way.

Reply to "Better method for backing up the wiki."

Not able to create new account on wiki using API

4
Summary by Dan.aluas

It worked. In my example I used the RestClient in a wrong manner.

Dan.aluas (talkcontribs)

Hello,

I'm trying to use the API to create accounts for some users.

My tests are performed from a C# application.

However, I always receive :

{"error": {

  "code": "notoken",

  "info": "The \"token\" parameter must be set.",

My steps are the following:

  • GET on: ?action=query&meta=tokens&type=createaccount
  • Get on: ?action=query&meta=authmanagerinfo&amirequestsfor=create
  • POST on: ?action=createaccount&format=json&token={token}&createreturnurl={URL}" passing username, password, retype and token received on first step as body.

Could you please tell what I'm doing wrong?

Ciencia Al Poder (talkcontribs)

Be sure you're passing the cookies you receive in previous requests

Dan.aluas (talkcontribs)

I wrote this test code:

RestClient client = new RestClient

            {

                CookieContainer = new CookieContainer(),

                BaseUrl = new Uri("http://192.168.56.1:90/api.php")

            };

            var request = new RestRequest("?action=query&meta=tokens&type=createaccount&format=json", Method.GET);

            var response = client.Execute(request);

            Console.WriteLine(response.Content);

            string cookieName = response.Cookies[0].Name;

            string cookieValue = response.Cookies[0].Value;

            var tokens = JsonConvert.DeserializeObject<TokenResponse>(response.Content);

            request = new RestRequest("?action=query&meta=authmanagerinfo&amirequestsfor=create&format=json", Method.GET);

            response = client.Execute(request);

            Console.WriteLine(response.Content);

            request = new RestRequest($"?action=createaccount&format=json&createreturnurl=http://localhost", Method.POST);

            MediaWikiUser user = new MediaWikiUser

            {

                CreateToken = tokens.Query.Tokens.CreateAccountToken,

                UserName = "Bobica",

                Password = "p@ssw0rd",

                Retype = "p@ssw0rd",

                Reason = "Daia"

            };

            request.AddBody(JsonConvert.SerializeObject(user));

            request.AddCookie(cookieName, cookieValue);

            response = client.Execute(request);

            Console.WriteLine(response.Content);

I'm always getting no token.

This comment was hidden by 78.96.45.130 (history)
MadTownDavid (talkcontribs)

Hi all,

I'm upgrading a private wiki from mediawiki 1.25 to 1.27.4. The update completed successfully, but I'm unable to use VisualEditor (source code editor is fine). When I try to edit a page, the progress bar hangs at ~70%, then times out after 30 seconds, with "Error loading data from server: HTTP 0. Would you like to retry?" dialog.

The problem appears to be a database locking issue. When I try to edit a page, the last statement in the postgres log is:

2017-12-07 10:01:22 CST: LOG:  statement: INSERT /* SqlBagOStuff::setMulti 127.0.0.1 */ INTO "objectcache" (keyname,value,exptime) VALUES ('itwiki:messages:en:lock','\xcbb432b40600','2017-12-07 16:01:52 GMT')

30 seconds later, the database logs many more statements, then stops with another similar insert:

2017-12-07 10:02:02 CST: LOG:  statement: INSERT /* SqlBagOStuff::setMulti 127.0.0.1 */ INTO "objectcache" (keyname,value,exptime) VALUES ('itwiki:messages:en:lock','\xcbb432b40600','2017-12-07 16:02:32 GMT')

2 minutes after the edit request, the database logs more statements, and seems recovered.

During this time, I see pending locks in the database (which disappear 2 minutes after the edit request):

itwiki=# SELECT relation::regclass, * FROM pg_locks WHERE NOT GRANTED;

 relation |   locktype    | database | relation | page | tuple | virtualxid | transactionid | classid | objid | objsubid | virtualtransaction |  pid  |  mode    | granted | fastpath

----------+---------------+----------+----------+------+-------+------------+---------------+---------+-------+----------+--------------------+-------+-----------+---------+----------

          | transactionid |         |         |      |       |           |          3736 |        |      |          | 3/176             | 22633 | ShareLock | f       | f

          | transactionid |         |         |      |       |           |          3736 |        |       |         | 4/72              | 22665 | ShareLock | f       | f

(2 rows)

The 2 minutes timing is also reflected in the parsoid logs, which indicate ~122000ms to parse the page:

Dec 07 10:03:24 inferno.keck.waisman.wisc.edu node[26261]: {"name":"parsoid","hostname":"inferno.keck.waisman.wisc.edu","pid":20513,"level":30,"logType":"info","wiki":"wiki$0","title":"Main_Page","oldId":892,"reqId":null,"userAgent":"VisualEditor-MediaWiki/1.27.4","msg":"completed parsing in 122358 ms","longMsg":"completed parsing in 122358 ms","levelPath":"info","time":"2017-12-07T16:03:24.339Z","v":0}

Any help is much appreaciated. My environment:

MediaWiki 1.27.4

PHP 5.6.32 (apache2handler)

PostgreSQL 9.2.23

VisualEditor 0.1.0 (9da5996) 15:40, 16 August 2016

Parsoid 0.8.0 

MadTownDavid (talkcontribs)

One other note: the parsoid is working fine on its own AFAICT. Getting the parsoid to convert the page, e.g. "curl -L http://localhost:8001/inferno-itwiki/v3/page/html/Main_Page" completes in 2-3 seconds.

David

MarkAHershberger (talkcontribs)

Just a guess, but it looks like there is some sort of conflict in your sessions. Have you tried changing how the session is stored? I'm guessing they're being stored in your DB.

MadTownDavid (talkcontribs)

For the data bank, looks like I got bit with the "VisualEditor doesn't play nicely with Auth_remoteuser" feature. Looks like there are some workarounds, I'll do some more looking and see what I can come up with...

Reply to "VisualEditor times out after upgrade"

The password reset was not handled. Maybe no provider was configured?

3
Adrianevs (talkcontribs)

Hi,

Reset password feature do not work on my wiki. I get this message

The password reset was not handled. Maybe no provider was configured?

Please let me know how to fix it ?

Reception123 (talkcontribs)

Did you configure Manual:$wgPasswordSender (and Manual:$wgSMTP) correctly?

Bawolff (talkcontribs)

Are you using a custom auth extension or have manually set $wgAuthManagerConfig or $wgAuth


(Note, contrary to what Reception123 said, failing to set $wgPasswordSender or $wgSMTP does not cause this error).

Reply to "The password reset was not handled. Maybe no provider was configured?"