Project:Support desk

Jump to navigation Jump to 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, Wikimedia Developer Support, 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".
Benn2003 (talkcontribs)

GERMAN

Im MediaWiki 1.31.1 ist die Erweiterung "VisualEditor" installiert und durch den Eintrag ...

wfLoadExtension( 'VisualEditor' );

... in der Datei LocalSettings.php aktiviert worden.

Beim ersten Test wurde auch die Erweiterung als Editor aktiviert; nur beim Einlesen eines Seiten-Inhalts gab es Probleme. Seit dem wird der Editor nicht mehr geladen.

Kann jemand mir mitteilen, wie der Ediror wieder aktiviert werden kann?

Auf der Webseite ist kein Button vorhanden, mit dem der Editor wieder aktiviert oder geladen werden kann.

ENGLISH

In the MediaWiki 1.31.1 the extension "VisualEditor" is installed and by the entry ...

wfLoadExtension ('VisualEditor');

... were activated in the file LocalSettings.php.

As a first test, the extension was activated as an editor; only when redeeming a page content there were problems. Since the publisher stopped loading.

Can someone be active with me again, like the Ediror?

There is no button on the website, with the editor you can also activate this entry.

Reply to "Extension VisualEditor"
Ciciban (talkcontribs)

Dear All,

I have another problem pretty similar to this one:

here there is a template intro. I employed it e.g. here with the argument value 2.4. It produces a flag and a link to Category:Intro/2.4 (that should in the end be hidden).

Why does Category:Intro/2.4 remain empty?

Thank you in advance for your help.

AhmadF.Cheema (talkcontribs)
192.69.65.16 (talkcontribs)

I have been having this problem for years, running the jobs does not solve the problem, setting $wgRunJobsAsync to false doesn't solve the problem, truncating the jobs table doesn't solve the problem, and running maintenance/refreshLinks.php not only doesn't help, it unlists articles that were already correctly listed on category pages, making the problem worse.

I'm dealing with that right now and none of the advice works for it. 1.27, 1.29, 1.30, 1.31, doesn't matter

192.69.65.16 (talkcontribs)

in fact the only thing that DOES work is to stop applying categories via templates and write them manually into every page, which defeats a pretty big part of the reason why we want to use MW at all.

we're still on MySQL, not MariaDB, and probably won't ever get actual support for this issue. PHP 7.0, ubuntu 16.04 and 18.04, doesn't matter. wikimedia left us in the dirt

Reply to "Category stays empty"
Peh2000 (talkcontribs)

Hi, I read the Help:Categories support and I tried but I don't understand how to create subcategories... Anyone who uses them could explain it to me?

I just need some parent categories and then many subcategories for each parent category.

Also, if you can answer this question: Is it possible to have different subcategories with same name? Its parent category would be different but the name would be the same.

Thanks

Reply to "Subcategories help"
Ciciban (talkcontribs)

Dear All,

I use a certain template that puts pages where it is employed into a maintenence category.

It would be helpful if I could add a certain argument into the category list, namely the program version to which the page refers according to parameter {{{version}}} of the template. So if page foo refers to version 3.8, then in category bar the entry of page foo should be "foo (3.8)".

Is there a way to chieve that?

Off course I could instead call [[category:bar/{{{version}}}]], but then I run into danger of overlooking a category ...

Calling [[category:bar|{{{version}}}]] wasn't a solution because then Pages refering to v3.8 and v3.9 will be indistinguishable under the headline "3" :(

Thank you in advance for your answer. Ciciban (talk) 13:46, 11 October 2018 (UTC)

Bawolff (talkcontribs)

So one way is to use something like Extension:CategorySortHeaders.

Another way is to put it both in [[category:bar/{{{version}}}]] and [[category:bar]] So you have it both in a general category and a specific version category.

Ciciban (talkcontribs)

Thank you for the hint – Ciciban (talk) 16:57, 15 October 2018 (UTC)

Reply to "edit category entries"
Newman2 (talkcontribs)

I have been working in PuTTY to fix the problems I have with my second wiki (as a part of a larger wiki family) and fixing the separate database. However, there is one problem. I tried to run rebuildall.php as stated in [[Manual:Maintenance scripts]], but I got the following message: It is not possible to determine the wiki ID.

Also, I want assistance from another error. How do I fix Error: 1142 SELECT command denied to user 'gjlxrtap_mw34555'@'localhost' for table 'mwd50q_user' (localhost)? How do I get my user to have access to user table 'mwd50q_user'? Thank you for reading this.

Bawolff (talkcontribs)

If you run maintenance scripts for a wikifamily, you may have to specify --server and/or --wiki options so it knows which wiki you want to use. What precisely you have to do depends on how you have your wikifarm setup.

Reply to "PuTTY fails to run rebuildall.php"

Database query error and error 1142 on my second wiki

4
Newman2 (talkcontribs)

Hello guys. I have been working on a wiki family, and the second wiki that I created had problems with having its own database. After I granted permissions to my second database's user, my select permission was denied. Any way to fix this? I tried running cd maintenance on PuTTY, and it said that there was no such file or directory. This is how the error looks:

[W702Vu0kj5bBYBU1eCUslwAAARU] /mw19/ Wikimedia\Rdbms\DBQueryError from line 1149 of /home/gjlxrtap/public_html/mw19/includes/libs/rdbms/database/Database.php: A database query error has occurred. Did you forget to run your application's database schema updater after upgrading?

Query: SELECT user_id,user_name,user_real_name,user_email,user_touched,user_token,user_email_authenticated,user_email_token,user_email_token_expires,user_registration,user_editcount FROM `gjlxrtap_mw19758`.`mwd50q_user` WHERE user_id = '1' LIMIT 1

Function: User::loadFromDatabase

Error: 1142 SELECT command denied to user 'gjlxrtap_mw34555'@'localhost' for table 'mwd50q_user' (localhost)

2001:16B8:1028:C100:B8D7:1BAF:F797:54C7 (talkcontribs)

You need to change the MySQL configuration: User gjlxrtap_mw34555 needs to have access to table mwd50q_user.

Newman2 (talkcontribs)

How can I enable access to mwd50q_user?

Bawolff (talkcontribs)

his is normally setup by the MediaWiki installer. If you need to do it manually, see mariadb docs:

https://mariadb.com/kb/en/library/grant/

Probably, you will want to issue the SQL command:

GRANT ALL PRIVILEGES ON gjlxrtap_mw19758.* TO 'gjlxrtap_mw34555'@'localhost'
Reply to "Database query error and error 1142 on my second wiki"
Liuxinyu970226 (talkcontribs)

Will Commons files that are about GFDL licensed extensions be affected due to the updated Commons policy? Will those be automatically dual-licensed tomorrow?

If not, then can we move them back to this wiki?

Malyacko (talkcontribs)
Bawolff (talkcontribs)

Are there any GFDL licensed extensions? That's not an appropriate license for the extension

(Also, this is more on topic for project:Current Issues

Liuxinyu970226 (talkcontribs)
Reply to "c:Commons:Licensing#GNU Free Documentation License and GFDL extensions"

Installing a Farm with Symlinks - PHPVersionCheck.php not found

3
Bidesclown (talkcontribs)

Hey all,

im trying to install a farm via the Symlinks method. I had a look on the Farming Articles (tbh it is a mess) and also found the https://sharkysoft.com/wiki/how_to_configure_multiple_MediaWiki_instances_on_a_single_host .

I have a SLES 12 and since i symlinked the Directory "/srv/www/htdocs/wiki" with all the stuff of my MediaWiki Installation from "/opt/MediaWiki/". I dont know why but it says:

[Mon Oct 15 11:58:08.956570 2018] [:error] [pid 2027] [client 10.111.93.194:56524] PHP Warning:  require_once(/opt/mediawiki/../includes/PHPVersionCheck.php): failed to open stream: No such file or directory in /opt/mediawiki/index.php on line 27

[Mon Oct 15 11:58:08.956668 2018] [:error] [pid 2027] [client 10.111.93.194:56524] PHP Fatal error:  require_once(): Failed opening required '/opt/mediawiki/../includes/PHPVersionCheck.php' (include_path='.:/usr/share/php7:/usr/share/php7/PEAR') in /opt/mediawiki/index.php on line 27

I tryed to add the path to the php.ini with the include_path but it gave me the "opt/MediaWiki/opt/mediawiki". -> No luck.

I tryed to copy the whole "/includes" directoy, instead of symlinking, but it also says it will not find the PHPVersionCheck.php

User and Group are wwwrun / WWW so this should not be the Problem.

What am I missing / overseeing ?

Best regards and thanks in advice !

This post was hidden by Bidesclown (history)
Bidesclown (talkcontribs)

Hey all,

I found something:

as I edited the index.php of "/opt/MediaWiki/" on line 27 from "require_once dirname( __FILE__ ) . '/../includes/PHPVersionCheck.php';" to "require_once dirname( __FILE__ ) . '/includes/PHPVersionCheck.php';" and line 39 from "require dirname( __DIR__ ) . '/includes/WebStart.php';" to "require dirname( __DIR__ ) . '/mediawiki/includes/WebStart.php';" I got rid of these Errors.

But now it says in the Error-Log that I already declared "wfInstallerMain();" on Line 41:

PHP Fatal error:  Cannot redeclare wfInstallerMain() (previously declared in /opt/mediawiki/index.php:44) in /opt/mediawiki/mw-config/overrides/index.php on line 41

Should I start over with a fresh Server or what are your advice ?

Best regards!

Reply to "Installing a Farm with Symlinks - PHPVersionCheck.php not found"

Wiki Structure is all broken after updating mediawiki from v1.27 to v1.31.1

3
24.207.137.35 (talkcontribs)

Hello my wiki is all broke up after upgrading from v1.27 to v1.31.1. See the link for further information on this: https://i.imgur.com/l8ocBJf.png

Steps that I have taken:

Updated php5 to php7.0

Transfer my MySQL database over to my MariaDB

Updated all extensions to latest

Ran update.php from CLI

Website display like what you see in the screenshot that I have attached. I have tried disabling all extensions but the issue persists. Any ideas?

Malyacko (talkcontribs)
24.207.137.35 (talkcontribs)

I was able to resolve this. I had the Nginx file recreated and the path was pointed within the directory instead of /html

Why my urlencode string is not encoded?

3
Automatik (talkcontribs)

Hello,

I am trying to encode a string, but it is not working. Here it is: {{urlencode:insource:/[^*:#['}|(>++]\[\[[a-z-]{2,}:[^]]+\]\]/+-insource:"[[image:"+-insource:"[[file:"+-insource:"[[fichier:"}}

Would anyone know what would be a solution to this?

Bawolff (talkcontribs)

So 2 things:

  • First of all, replace | with {{!}}
  • The unclosed link [[ open screws up the parser function

So you could try something like: {{urlencode:insource:/[^*:#['}{{!}}(>++]\[\[[a-z-]{2,}:[^]]+\]\]/+-insource:"[<nowiki/>[image:"+-insource:"[<nowiki/>[file:"+-insource:"[<nowiki/>[fichier:"}}

Automatik (talkcontribs)

I had tried indeed with {{!}} instead of |. But thanks for the nowiki trick, it solved the problem! :-)