Jump to content

Project:Support desk/Flow/2017/12

Add topic
From mediawiki.org
This page is an archive.
Please ask questions on the current support desk.


can I use 64,527 but from other wikis onto my own?

The following discussion is closed. Please do not modify it. Subsequent comments should be made on the appropriate discussion page. No further edits should be made to this discussion.


Well, can I? Sabelöga (talk) 09:35, 1 December 2017 (UTC)

No, you can't request the number of articles from other wiki. Ciencia Al Poder (talk) 10:38, 1 December 2017 (UTC)
Okay, that's a shame.
Thanks for your reply :) Sabelöga (talk) 13:51, 1 December 2017 (UTC)
The discussion above is closed. Please do not modify it. No further edits should be made to this discussion.

MediaWiki installation with SQLite crashes when sharing tables

The following discussion is closed. Please do not modify it. Subsequent comments should be made on the appropriate discussion page. No further edits should be made to this discussion.


I have multilanguage Wiki (tried 1.27.4 LTS, 1.29.2, last snapshot 1.29) where each language has DB file "en.sqlite", "fr.sqlite", etc. I want to share (safe) tables and they will reside in "en" DB file.

I set parameter $wgSharedDB = "en";. But I keep getting error:

Original exception: [375c9086ffee3a81b773c183] /wiki-en/index.php Wikimedia\Rdbms\DBQueryError from line 1075 of C:\Dev\Web\MediaWiki\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 rev_id,rev_page,rev_text_id,rev_timestamp,rev_comment,rev_user_text,rev_user,rev_minor_edit,rev_deleted,rev_len,rev_parent_id,rev_sha1,rev_content_format,rev_content_model,page_namespace,page_title,page_id,page_latest,page_is_redirect,page_len,user_name FROM revision INNER JOIN page ON ((page_id = rev_page)) LEFT JOIN en.user ON ((rev_user != 0) AND (user_id = rev_user)) WHERE rev_page = '1' AND page_id = '1' AND rev_id = '1' LIMIT 1 Function: Revision::fetchFromConds Error: 1 no such table: en.user Czech.Fox (talk) 12:23, 1 December 2017 (UTC)

Trying to use $wgSharedDB with sqlite means you'll probably run into problems. It looks like the syntax is trying to join across DBs using MySQL syntax.
There may be a way to make it work. If you want to try, you should file a task in Phabricator.
I would try MySQL, though, if you really need to use $wgSharedDB. MarkAHershberger(talk) 00:38, 2 December 2017 (UTC)
Thanks, I understood it the same way. Unfortunately, I'm not allowed to use MySQL and MariaDB in our company environment. I'll file a task in Phabricator. Czech.Fox (talk) 08:28, 4 December 2017 (UTC)
https://phabricator.wikimedia.org/T181962 AKlapper (WMF) (talk) 12:54, 4 December 2017 (UTC)
The discussion above is closed. Please do not modify it. No further edits should be made to this discussion.

Upgrade from 1.27.1 to 1.29.2 failed

The following discussion is closed. Please do not modify it. Subsequent comments should be made on the appropriate discussion page. No further edits should be made to this discussion.


Hi everybody,

I have tried to upgrade my from a 1.27.1 installation to the latest available version. I made backups of the db, LocalSettings.php, extensions and images folders. After restoring everything, I run the update script and this is the result

[ca6a4dfc97c7c3ad3074e1fe] [no req]   Error from line 2905 of .../mediawiki/includes/libs/rdbms/database/Database.php: Class 'Wikimedia\Timestamp\ConvertibleTimestamp' not found

Backtrace:
#0 .../mediawiki/includes/objectcache/SqlBagOStuff.php(546): Wikimedia\Rdbms\Database->timestamp(integer)
#1 .../mediawiki/includes/objectcache/SqlBagOStuff.php(535): SqlBagOStuff->getMaxDateTime(Wikimedia\Rdbms\DatabaseMysqli)
#2 .../mediawiki/includes/objectcache/SqlBagOStuff.php(310): SqlBagOStuff->isExpired(Wikimedia\Rdbms\DatabaseMysqli, string)
#3 .../mediawiki/includes/objectcache/SqlBagOStuff.php(256): SqlBagOStuff->getMulti(array)
#4 .../mediawiki/includes/objectcache/SqlBagOStuff.php(252): SqlBagOStuff->getWithToken(string, NULL, integer)
#5 .../mediawiki/includes/libs/objectcache/BagOStuff.php(185): SqlBagOStuff->doGet(string, integer)
#6 .../mediawiki/includes/cache/MessageCache.php(316): BagOStuff->get(string)
#7 .../mediawiki/includes/cache/MessageCache.php(976): MessageCache->load(string)
#8 .../mediawiki/includes/cache/MessageCache.php(905): MessageCache->getMsgFromNamespace(string, string)
#9 .../mediawiki/includes/cache/MessageCache.php(873): MessageCache->getMessageForLang(Language, string, boolean, array)
#10 .../mediawiki/includes/cache/MessageCache.php(813): MessageCache->getMessageFromFallbackChain(Language, string, boolean)
#11 .../mediawiki/includes/Message.php(1275): MessageCache->get(string, boolean, Language)
#12 .../mediawiki/includes/Message.php(842): Message->fetchMessage()
#13 .../mediawiki/includes/Message.php(934): Message->toString(string)
#14 .../mediawiki/extensions/SemanticGlossary/extensions/Lingo/src/Hooks.php(108): Message->text()
#15 .../mediawiki/includes/Setup.php(827): Lingo\Hooks::initExtension()
#16 .../mediawiki/maintenance/doMaintenance.php(98): require_once(string)
#17 .../mediawiki/maintenance/update.php(237): require_once(string)
#18 {main}

Any suggestions?

Thanks,

Lorenzo Loman87 (talk) 15:15, 1 December 2017 (UTC)

Hi Lorenzo,
how are you installing MediaWiki?
If you used Composer, maybe you still have to run composer update before you can run update.php. That would be what happened in https://phabricator.wikimedia.org/T166738. 2003:CC:ABC7:3B00:44E5:5972:CE6:17B (talk) 18:14, 1 December 2017 (UTC)
If you installed via the tarball, it probably means that you still have the old folder of your vendor directory. Try and re-install, making sure to extract mediawiki in an empty directory. Bawolff (talk) 21:03, 3 December 2017 (UTC)
Hi, thanks for your answers.
I am installing using the tarball and I have updated composer before running update.php. Everything works fine if I upgrade from 1.27.1 to 1.27.4, so there are some issues with 1.29.2 only.
@User:Bawolff the directory seems fine to me. Loman87 (talk) 08:57, 4 December 2017 (UTC)
Did you extract mediawiki in an empty directory (instead of extracting it over the old 1.27 files)? Ciencia Al Poder (talk) 10:27, 4 December 2017 (UTC)
Hi,
I made the extraction using tar -xvzf mediawiki-1.29.2.tar.gz, then I have renamed the folder mediawiki-1.29.2 to mediawiki, that is my root folder. So I did not extract the new folder into the old one. Loman87 (talk) 11:03, 4 December 2017 (UTC)
You said you "updated composer" before running upgrade.php. Do you mean you ran composer update --no-dev or something else?. Normally you don't need to update composer if you are installing via a tarball (However, normally it wouldn't hurt anything either). Are the composer files (composer.json, composer.lock and composer.local.json) directly from the tarball or have they been modified in any way? Bawolff (talk) 16:15, 4 December 2017 (UTC)
Hi, I guess the problem was related to composer.json. Initially, I used the old one from my 1.27.1 installation; then I manually updated that one in the 1.27.4 tarball and everything works fine. Now I have another problem with upload wizard, but I will post it in another thread.
Thanks for your help! Loman87 (talk) 11:12, 5 December 2017 (UTC)
The discussion above is closed. Please do not modify it. No further edits should be made to this discussion.

Mediawiki does not auto redirect to target page anymore?

So after upgrade to MW 1.29, all the redirect page failed.

Where PAGE_A #REDIRECT [[PAGE_B]] will not automatically open page B when visiting url of page A. Users have to click the link in page. Change $wgMaxRedirects value does not help.

Is this a bug or a new feature meant to be in MW1.29? Deletedaccount4567435 (talk) 00:20, 2 December 2017 (UTC)

If you visit $wg here you'll be redirected and it uses the syntax you have. Something else must be going on. MarkAHershberger(talk) 00:28, 2 December 2017 (UTC)

Users require confirmation

The following discussion is closed. Please do not modify it. Subsequent comments should be made on the appropriate discussion page. No further edits should be made to this discussion.


Hello,

I need to set up OAuth consumers for some bot accounts that I manage:

However when I log in as one of these accounts and try to propose a consumer, I receive the message:

   You do not have permission to propose new OAuth consumers, for the following reason:
   The action you have requested is limited to users in one of the groups: Autoconfirmed users, Confirmed users.

Is it possible for an administrator to confirm these users so that I can propose the OAuth consumers, please? Thanks. Smith609 (talk) 13:19, 2 December 2017 (UTC)

I've set them as bots and confirmed here. I don't think that affects other wikis, though. MarkAHershberger(talk) 17:18, 2 December 2017 (UTC)
Many thanks for that. I forgot to add User:Citation bot test to the list, if you wouldn't mind confirming that one too. This'll let me get the tokens that I need to use the bots on en Wikipedia, I believe. Smith609 (talk) 17:34, 2 December 2017 (UTC)
In fact, I've just visited Special:OAuthConsumerRegistration/propose as User:Citation bot 4, and still receive the same error message. Any idea what may be causing this? Could the distinction between meta.wikimedia.org and www.wikimedia.org have any relevance? Smith609 (talk) 17:36, 2 December 2017 (UTC)
I think you'd have to get the bots confirmed on meta, not here. MarkAHershberger(talk) 16:55, 5 December 2017 (UTC)
The discussion above is closed. Please do not modify it. No further edits should be made to this discussion.

mw-config/index.php not working

I need help. I am trying to install mediawiki but every time I run index.php it just outputs the code. Can anyone help, please!
example of output:
startSession() ) { if ( $installer->request->getVal( "css" ) ) { // Do not display errors on css pages $installer->outputCss(); exit; } $errors = $installer->getPhpErrors(); $installer->showError( 'config-session-error', $errors[0] ); $installer->finish(); exit; } $fingerprint = $installer->getFingerprint(); if ( isset( $_SESSION['installData'][$fingerprint] ) ) { $session = $_SESSION['installData'][$fingerprint]; } else { $session = array(); } if ( !is_null( $wgRequest->getVal( 'uselang' ) ) ) { $langCode = $wgRequest->getVal( 'uselang' ); } elseif ( isset( $session['settings']['_UserLang'] ) ) { $langCode = $session['settings']['_UserLang']; } else { $langCode = 'en'; } $wgLang = Language::factory( $langCode ); $installer->setParserLanguage( $wgLang ); $wgMetaNamespace = $wgCanonicalNamespaceNames[NS_PROJECT]; $session = $installer->execute( $session ); $_SESSION['installData'][$fingerprint] = $session; } Mackintoshman (talk) 14:51, 2 December 2017 (UTC)
Did you get solution? Stuck in the same place; exact error! Ravikiran prao (talk) 11:28, 1 April 2018 (UTC)
The same answer: Your web server does not properly interpret the PHP code, may misconfigured. 星耀晨曦 (talk) 07:07, 2 April 2018 (UTC)
Indeed, so I had to do issue the following commands on a Ubuntu 18.04:
sudo a2dismod mpm_event
sudo apachectl graceful
sudo a2enmod mpm_prefork
sudo a2enmod php7.2
sudo apachectl graceful
Basically this adds the ability for the Apache webserver to handle PHP. [[kgh]] (talk) 12:27, 15 July 2019 (UTC)
You should not properly set PHP environment. or, you use file:// to access files on the file system. 星耀晨曦 (talk) 16:56, 2 December 2017 (UTC)
This happens when .php files are not parsed by the PHP interpreter. Your system needs to be configured so that PHP is actually parsing .php files! 2003:CC:ABD4:C200:985C:A531:126C:B1D6 (talk) 18:12, 2 December 2017 (UTC)
apache/your webserver is misconfigured. Bawolff (talk) 20:59, 3 December 2017 (UTC)

Can't deactivate extension or log in

The following discussion is closed. Please do not modify it. Subsequent comments should be made on the appropriate discussion page. No further edits should be made to this discussion.


Yesterday I activated the Inputbox extension. Today I can't log in into my account:

"There seems to be a problem with your login session; this action has been canceled as a precaution against session hijacking. Go back to the previous page, reload that page and then try again."

I tried deactivating the extension, by deleting "wfLoadExtension( 'InputBox' );" from localsetting.php, but that gave me this error:

"[WiL8XrmwKzsAACaYCMUAAABG] 2017-12-02 19:17:51: Fatal exception of type "Wikimedia\Rdbms\DBQueryError""

What am I supposed to do?

I'm using:

MediaWiki 1.29.1

PHP 5.6.32

MySQL 5.7

This is my website. I don't use caching. Alex Swak (talk) 19:21, 2 December 2017 (UTC)

Look up the stacktrace for [WiL8XrmwKzsAACaYCMUAAABG]. See Manual:How to debug Malyacko (talk) 21:34, 2 December 2017 (UTC)
You should enable exception details to be sure what the issue is, but most common cause is you probably need to run update.php Bawolff (talk) 20:59, 3 December 2017 (UTC)
The discussion above is closed. Please do not modify it. No further edits should be made to this discussion.

Wiki farm

The following discussion is closed. Please do not modify it. Subsequent comments should be made on the appropriate discussion page. No further edits should be made to this discussion.


Is it necessary to have server access to create a wiki farm, or it can be made using a hosting service? 190.140.177.198 (talk) 21:37, 2 December 2017 (UTC)

Depends on what you mean by "hosting service".
As long as you have ftp access, its technically possible, although it will be much easier if you have SSH access. Bawolff (talk) 20:58, 3 December 2017 (UTC)
The discussion above is closed. Please do not modify it. No further edits should be made to this discussion.

Back to top

Hi. I'd like to add a back to top button like the one from this wiki: https://www.sorumu.com/S%C3%B6zl%C3%BCk:Anasayfa

I've seen they've used the exact same example from here: https://www.w3schools.com/howto/howto_js_scroll_to_top.asp

I added what needed to be added to common.css and common.js, but I am not exactly sure where and how to add the HTML element. I have read this article and then added the HTML element inside common.js, as seen here under 'back to top': http://dragon-mania-legends-wiki.mobga.me/MediaWiki:Common.js

Would anyone please shed a little bit of light as to where I am going wrong? │Star-Warden23:00, 2 December 2017 (UTC)

See Project:Support desk/Flow/2012/09#h-Button_Go_to_Top-2012-09-25T05:01:00.000Z and Project:Support desk/Flow/2017/04#h-Back_to_top_and_search_suggestions-2017-04-07T10:15:00.000Z Ciencia Al Poder (talk) 10:31, 4 December 2017 (UTC)
Those topics only offer a back to top next to the headers. But I need a button that floats exactly like the one from the wiki I linked in my first reply. I've followed all the steps to adding the CSS and JS, but I don't know where to add the HTML part. I couldn't find it on that wiki either. │Star-Warden20:08, 4 December 2017 (UTC)

Alphabetically sorted multi-column content

I would like to list all categories using a layout similar to Special:AllPages. I have experimented with the <div> and am able to list the manually typed categories. But I could not figure out how to sort them alphabetically. Can you please help? Bisherbas (talk) 21:10, 3 December 2017 (UTC)

What are you using to list all categories? Ciencia Al Poder (talk) 10:29, 4 December 2017 (UTC)

Protection levels

The following discussion is closed. Please do not modify it. Subsequent comments should be made on the appropriate discussion page. No further edits should be made to this discussion.


Hi, I have two questions:

  1. Is it possible to protect a page with a level beyond sysop. For example, instead of edit for sysops, edit for bureaucrats. If so, how?
  2. I've seen that some wikis have something called checkuser-limited that allows to check only our own IPs. I'd like to know how to enable it.

Thank you. 190.140.177.198 (talk) 16:02, 4 December 2017 (UTC)

For your first query, yes it is possible, see Manual:$wgRestrictionLevels.
Regarding "checkuser-limited", can't say for sure but judging from its presence on MythTV Official Wiki and Wikifashion, it was probably a feature for an older version of Extension:CheckUser (v2.3), which has now been removed. AhmadF.Cheema (talk) 00:43, 5 December 2017 (UTC)
The discussion above is closed. Please do not modify it. No further edits should be made to this discussion.

Trying to recover earlier user account

The following discussion is closed. Please do not modify it. Subsequent comments should be made on the appropriate discussion page. No further edits should be made to this discussion.


Hello

I had an earlier account connected to zejjb@yahoo.co.uk - I still receive Wikimedia e-mails under that address.

However, I have requested a replacement password about a dozen times and while the request was acknowledged, no password replacement e-mail ever arrives there.

Please can somebody help me.

Many thanks. Lejjb (talk) 19:00, 4 December 2017 (UTC)

At the bottom of the email you should see links to the wiki. Follow them to be sure you're requesting a replacement password for the correct wiki Ciencia Al Poder (talk) 10:38, 5 December 2017 (UTC)
The discussion above is closed. Please do not modify it. No further edits should be made to this discussion.

Help me correct false information on a page about a relative! No one knows who created this page?

The following discussion is closed. Please do not modify it. Subsequent comments should be made on the appropriate discussion page. No further edits should be made to this discussion.


Hi,

After seeing this bizarre page, insisting my PORTAIT PAINTER grandfather was a 'music teacher and had his own music school in Manhattan"... my mother and I created a proper page, which Wikipedia rejected..since there is already a page on him.

Fine, I thought...I will just add the information and clean up his page (along with adding multiple citations proving the facts, etc.). Anyway, the wiper-bot must think I am some dodgy fake news person or another bot since it wiped the whole thing and now, he's a music teacher again?! Please help. Who do I contact?

When WIkiipedia started, I had added a page on my father and it was super easy...now...hmmm.

Is this code in any sort of Content Language I can learn? Is this VRA?

many thanks,

A Von T Thedecentone (talk) 19:47, 4 December 2017 (UTC)

The article in question is Jean Theslöf.
This forum is primarily for technical help with the software on which Wikipedia runs, for informal help related to editing at Wikipedia, a better platform is the Wikipedia:Teahouse,
To see which Wikipedia user reverted your edits, you can take a look at your article in question's history, i.e. this page. The users who reverted your edits are User:Kleuske (talk) and User:Lugnuts (talk). You can ask your questions at their linked talk pages.
Your first main edit was reverted by User:Kleuske because of lack of citations as is mentioned on your talk page. Your second main edit was reverted probably due to the citations not being in the proper format.
For new editors, it might be easier to use the VisualEditor for making edits. This link will open up the VisualEditor for your article. For citation, using the "Cite" tab on the VisualEditor makes the work easy. For further help on citations through VisualEditor see, Help:VisualEditor/User guide/Citations.
If you need it, your previous "deleted" work is available here.
For further editing help, it will be more efficient to make your queries at Wikipedia:Teahouse. AhmadF.Cheema (talk) 02:06, 5 December 2017 (UTC)
Thank you - I provided citations with <ref> opening and closing each but I also got a weird response from a 'bot'
I will contact the other content editors. Out of curiosity, what is the content standard used on Wikipedia?
Thank you. 160.39.241.164 (talk) 18:42, 6 December 2017 (UTC)
Don't understand what you mean exactly by "content standard". For help in adding references see Help:Referencing for beginners. AhmadF.Cheema (talk) 19:11, 6 December 2017 (UTC)
The discussion above is closed. Please do not modify it. No further edits should be made to this discussion.

Special:Linksearch is case sensitive?

The following discussion is closed. Please do not modify it. Subsequent comments should be made on the appropriate discussion page. No further edits should be made to this discussion.


Help:Linksearch says "Linksearch is case-sensitive". On Wikipedia I used Linksearch to do an export of the links to *.dailymail.co.uk to a text file. While writing up a post summarizing the results I saw that the file contained five references to www.DailyMail.co.uk and so included that in my summary. However https://en.wikipedia.org/w/index.php?title=Special:LinkSearch&target=http://www.DailyMail.co.uk includes dailymail.co.uk in the results.

Is the Special:Linksearch help on both Wikipedia and here on Mediawiki outdated? Marc Kupper (talk) 19:58, 4 December 2017 (UTC)

On Internet, domain names are case insensitive. However, paths and filenames are (usually) not. Maybe what's case sensitive is any path, file or fragment of the URL, but not the domain itself. Ciencia Al Poder (talk) 10:37, 5 December 2017 (UTC)
Thank you Ciencia Al Poder. I realized I could do some testing to confirm that.
I tried to update Help:Linksearch but it's complaining about the translation marks though they appeared to be syntactically correct to me.
Existing text:
  • Even if multiple URLs lead to the same target, with regard to capitalisation, multiple underscores, and using "index.php" or not, Linksearch is case-sensitive after the first slash (/) and also does not find alternatively written URLs.
Therefore, when creating an external link, for optimal use of Linksearch, use a canonical form for the URL.
In particular, if after following a link the address bar shows a modified URL, change the URL in the link to that.
Proposed text:
  • Even if multiple URLs lead to the same target, with regard to capitalisation, multiple underscores, and using "index.php" or not, Linksearch is case-sensitive after the slash (/) that separates the host or domain part of a domain name from the [/path][?query][#fragment] parts. The domain name part is not case sensitive meaning a search for http://www.mediawiki.org/ returns the same results as a search for http://www.MediaWiki.org/
  • Linksearch does not find alternatively written URLs. Therefore, when creating an external link, for optimal use of Linksearch, use a canonical form for the URL. In particular, if after following a link the address bar shows a modified URL, change the URL in the link to that.
Along with the rewording I tried to separate out the part about link normalisation into its own bullet. Marc Kupper (talk) 16:44, 8 December 2017 (UTC)
Ok, done Ciencia Al Poder (talk) 12:08, 10 December 2017 (UTC)
The discussion above is closed. Please do not modify it. No further edits should be made to this discussion.

How do I edit the appearance of the read | edit | view history tabs?

The following discussion is closed. Please do not modify it. Subsequent comments should be made on the appropriate discussion page. No further edits should be made to this discussion.


I'm on a Wiki using CSS, I am trying to edit these tabs so that they mesh better with the appearance of the Wiki. How would I best go about doing this? Would I need to put in a plugin or would it be easier to edit the .css?

Wiki: https://wikia.lordofthecraft.net/index.php?title=Main_Page 2samspan (talk) 22:10, 4 December 2017 (UTC)

The .CSS changes should be placed on your Wiki's MediaWiki:Common.css or MediaWiki:Vector.css pages.
The relevant element selectors here should be,
#ca-view > span
#ca-viewsource > span
#ca-history > span AhmadF.Cheema (talk) 00:28, 5 December 2017 (UTC)
Okay, thank you! 2samspan (talk) 14:04, 5 December 2017 (UTC)
The discussion above is closed. Please do not modify it. No further edits should be made to this discussion.

install stopped at Creating administrator user account...

so yeah im unable to install as it just stops at Creating administrator user account...

any ides? 208.7.138.227 (talk) 03:33, 5 December 2017 (UTC)

How are you installing, by Git or tarball?
Which OS are you using? Which PHP version, which database type?
What kind of hosting are you using? AhmadF.Cheema (talk) 04:06, 5 December 2017 (UTC)

Wikieditor doesn't have toolbar

The following discussion is closed. Please do not modify it. Subsequent comments should be made on the appropriate discussion page. No further edits should be made to this discussion.


Why doesn't my wikieditor show the toolbar? 123.231.121.216 (talk) 13:01, 5 December 2017 (UTC)

Is your Wiki public, so that you can provide a link for it?
Open browser developer tools (F12) and open the Console tab to see whether it displays any errors that might be blocking the editor toolbar. AhmadF.Cheema (talk) 13:40, 5 December 2017 (UTC)
You should set $wgDefaultUserOptions['usebetatoolbar'] = 1; in LocalSettings.php 星耀晨曦 (talk) 14:26, 5 December 2017 (UTC)
The discussion above is closed. Please do not modify it. No further edits should be made to this discussion.

Add category via database insert

The following discussion is closed. Please do not modify it. Subsequent comments should be made on the appropriate discussion page. No further edits should be made to this discussion.


Hi there,

i wanna insert a category via a database insert.

my insert: INSERT INTO category (cat_title, cat_pages, cat_subcats, cat_files) VALUES ('$newcat', '1', '0', '0');

When I run this insert, I can see the category and click on it. There comes a Editor and i can edit a page but wehn I save the page I lose both category and the page. 89.244.189.243 (talk) 13:15, 5 December 2017 (UTC)

Why do you want to do this? Categories that don't have anything in them don't make sense. By the way, I've found it more useful to think of MediaWiki categories as tags rather than your traditional category. MarkAHershberger(talk) 16:28, 5 December 2017 (UTC)
Hi there, we have a textfile with categories and want to sync these with the categories in MediaWiki 217.8.50.154 (talk) 18:54, 5 December 2017 (UTC)
You would be better off using a bot to add the categories to the wiki by editing the appropriate Category page. MarkAHershberger(talk) 21:38, 5 December 2017 (UTC)
The discussion above is closed. Please do not modify it. No further edits should be made to this discussion.

Empty pages after XML dump import

The following discussion is closed. Please do not modify it. Subsequent comments should be made on the appropriate discussion page. No further edits should be made to this discussion.


I am using MediWiki 1.27.4. If I import an XML dump by Special:Import the pages are imported but  no content is available. In the revision table I can find two revisions for each imported page. The first has the timestamp of the original revision and the name of the original user. This revision refers into the text table to the original content. That is fine. The second revision has the timestamp of the import and the importing user and the comment 1 revision imported, but it refers into the text table to old_id (rev_text_id) 0 with empty text. Unfortunately this revision is the last revision in the page table. What can I do that the first one is the latest or better that the second refers to the original content in the text table? RotagivaN (talk) 16:54, 5 December 2017 (UTC)

This sounds like a bug. Please report it as a task in Phabricator and link to the task here. MarkAHershberger(talk) 16:56, 5 December 2017 (UTC)
Thanks for the answer. I have created a bug report [1]. RotagivaN (talk) 08:29, 6 December 2017 (UTC)
The discussion above is closed. Please do not modify it. No further edits should be made to this discussion.

Classroom loginissue

The following discussion is closed. Please do not modify it. Subsequent comments should be made on the appropriate discussion page. No further edits should be made to this discussion.


If a,student fails logging into our mediwiki z,e 5 times it not only blocjs that user but every student in that classroom 2600:1003:B112:3E0B:9001:AE04:39B7:76DC (talk) 19:54, 5 December 2017 (UTC)

Is this on your personal wiki? Maybe you need to get the autoblock whitelist updated? MarkAHershberger(talk) 21:46, 5 December 2017 (UTC)
The discussion above is closed. Please do not modify it. No further edits should be made to this discussion.

How to change the MediaWiki configuration ($wgRestrictDisplayTitle)?

The following discussion is closed. Please do not modify it. Subsequent comments should be made on the appropriate discussion page. No further edits should be made to this discussion.


Hello,

In the https://als.wikipedia.org/, we voted for a change in our MediaWiki configuration: we want to have wgRestrictDisplayTitle = false

Who can do this change? Where can we make a request for it?

Thanks for help. MireilleLibmann (talk) 21:32, 5 December 2017 (UTC)

You need to create a task in Phabricator asking the WMF staff to do this. MarkAHershberger(talk) 21:41, 5 December 2017 (UTC)
The discussion above is closed. Please do not modify it. No further edits should be made to this discussion.

Installatron messed me up!

The following discussion is closed. Please do not modify it. Subsequent comments should be made on the appropriate discussion page. No further edits should be made to this discussion.


Okay, so I decided to upgrade from 1.28.2 to 1.29 and now I'm regretting it. I made a full backup of the site earlier in the day so I didn't feel the need to do another before Installatron started. I used it to upgrade and right before finishing it popped up telling me it couldn't log on the database. All of my settings got changed. I changed them back and it seems to be working. But now I'm having problems. When I log out and log in I'm given errors (like it inserts "localhost" between the site name and index.php in the url or upon logging in the page won't refresh) and then when you edit the page doesn't reload but rather stays on the ?action=submit page. When trying to create a new account the site displays several more errors, despite having created the account. As for the backup I didn't do a "home backup" and "database backup", rather I did a "full backup" so now I don't know how to fix anything! 173.92.120.228 (talk) 05:41, 6 December 2017 (UTC)

Special:Random no longer works as well. 173.92.120.228 (talk) 05:45, 6 December 2017 (UTC)
This is my post, I just couldn't log in on the desktop so I posted anonymously. My login's saved on my phone so I'm able to post under my actual name now. Ugh. Haven't had this many problems in years! Bttfvgo (talk) 06:45, 6 December 2017 (UTC)
What errors are you seeing? Are you sure that the LocalSettings.php is the same? MarkAHershberger(talk) 03:05, 7 December 2017 (UTC)
Right now the only errors that I see are blank pages. For instance, Special:Random stays on that page and is blank, when you log out and log in the page freezes on a blank page with a header which reads "Log in" (&returnto= and &returntoquery= do not work - they don't redirect - but when you go to a page you are logged in), when you edit a page and submit it hangs on a blank page (action=submit doesn't redirect - but apparently the edit is saved).
I've updated all of my extensions. Creating an account now seems to work with no errors. Uploading a file will upload a file, but the page doesn't redirect. Well, it does, but the page is blank except for the header which reads "Upload file". I haven't really noticed anything else... Bttfvgo (talk) 03:38, 7 December 2017 (UTC)
Also, running the update.php script yields "Undefined variable" errors on Extensions Babel, Universal Language Selector and Translate. - I've gotten the ones in Babel to stop by adding the $wmg variables it alludes to (versus $wg). Bttfvgo (talk) 04:06, 7 December 2017 (UTC)
What errors are you seeing in the log file? MarkAHershberger(talk) 16:50, 7 December 2017 (UTC)
Hi sir! Which log file? The three in the logs directory only contain a jumbled mass of all page requests and my ftp uploads. I didn't see anything that looked useful... I checked a file named "error_log" but it only had about a thousand lines, all reading the same thing [07-Dec-2017 22:30:01 UTC] PHP Warning: PHP Startup: Unable to load dynamic library '/usr/local/lib/php/extensions/no-debug-non-zts-20100525/imagick.so' - /usr/local/lib/php/extensions/no-debug-non-zts-20100525/imagick.so: cannot open shared object file: No such file or directory in Unknown on line 0 but the same message goes back to October, so I don't think that could be it. I don't want to have reinstall if I don't have to. LocalSettings is unchanged. I enabled "display_errors" but it isn't showing anything. Am I overlooking something? Thank you for taking the time to help! Bttfvgo (talk) 23:42, 7 December 2017 (UTC)
My server logs only say the same thing: <code>PHP:  syntax error, unexpected '$' in /home/trumpipedia/public_html/php.ini on line 12</code> but that can't be it. Bttfvgo (talk) 00:54, 8 December 2017 (UTC)
php.ini contains $ ? 星耀晨曦 (talk) 08:35, 8 December 2017 (UTC)
It comes from a few lines that start with "$mail" - it's code I had found when I was trying to get my mail server to install. Bttfvgo (talk) 13:05, 8 December 2017 (UTC)
I messed up because I did a full site backup but before I used installatron I didn't do its backup (like I usually do). It seemed like everything was working great but then it popped up with an error message which read "<code>Upgrading: Error: mysql database connection failed: host = http://www.trumpipedia.com database = [ username = > true, password = **HIDDEN** errstr = Could not connect to 'http://www.trumpipedia.com' using the username '> true,' and password **HIDDEN** (mysql) -- Unknown MySQL server host 'http' (1)</code>" I clicked edit and changed everything although it took about three times to get the information to stick. I got an email saying the install failed. I went to try it again and it wouldn't let me do it because it said I was running the current version.
And then it started acting up... Also, during my create user test, clicking on the confirm email link brings me to nothing on the desktop (a blank page - "about:blank") and a "Safari cannot open the page because it is a local file." error on mobile. User account creation has completely stopped (ever since the upgrade). when I was getting a fairy decent daily influx of users. Bttfvgo (talk) 02:32, 8 December 2017 (UTC)
Sir I know you are busy so I won't bug you. I had everything so messed up it about got deleted. Luckily I was able to restore the working 1.28.2 version from the full backup I had done earlier that day. I accidentally removed my install from installatron so I guess it's like a standalone copy now. That's okay. I think if I go through the upgrade guide and upgrade the site myself, I think I'll have much better luck doing it that way. And seeing it's no longer on installatron, I guess I'll just have to do all of the upgrading myself (which I would rather do if it would save me all the hassle!) I've even had several new user signups since the site went back online so hopefully that's a good sign that everything's up and running. Thanks again sir! Bttfvgo (talk) 07:08, 8 December 2017 (UTC)
One more thing - I did notice when I finally got the old site running and was able to run the update script (the new version gave me a plethora of problems as far as running maintenance scripts) was that it said my php needed an upgrade (it's 5.4 and I needed at least 5.5). I can get my hosting company to up it to 7.1 in the morning, but it makes me wonder if that could have been the problem all along. The funny thing is I was going to upgrade my php first but seeing I couldn't do it without contacting my hosting company I chose to upgrade the site first. I think that was my biggest mistake. I'll try upgrading by hand tomorrow and if that doesn't work I'll let you know! Thanks again! Bttfvgo (talk) 07:45, 8 December 2017 (UTC)
The discussion above is closed. Please do not modify it. No further edits should be made to this discussion.

Session Hijacking and not able to login or create new account MW 1.29.1

The following discussion is closed. Please do not modify it. Subsequent comments should be made on the appropriate discussion page. No further edits should be made to this discussion.


Hi,

I am using

  • MW 1.29.1
  • PHP 5.6.31
  • Mysql 5.7.19
  • Apache 2.4

I am getting the following error message and not able to login and create any new user account.

Error : There seems to be a problem with your login session; this action has been canceled as a precaution against session hijacking. Go back to the previous page, reload that page and then try again.

I searched through the web and tried couple of solutions that are listed below, but I am not able to get the issue cleared. Following are the solution I tried.

1. Adding different combinations of the below listed.

$wgMainCacheType = CACHE_ACCEL;, CACHE_NONE;, CACHE_ANYTHING;
$wgSessionCacheType = CACHE_DB;

2. Setting cookie secure to false.

$wgCookieSecure = false;

3. Setting tmp folder under MW installation and referring it under Localsettings.php

I am running this setup in my local machine.

Thanks for the help. CurlyCurly (talk) 06:52, 6 December 2017 (UTC)

Do you use cache? E.g. apcu or opcache.
If you use cache, please click this document to configure. 星耀晨曦 (talk) 11:02, 7 December 2017 (UTC)
The discussion above is closed. Please do not modify it. No further edits should be made to this discussion.

404 when upgrading from MediaWiki 1.28.2 to 1.29.2

The following discussion is closed. Please do not modify it. Subsequent comments should be made on the appropriate discussion page. No further edits should be made to this discussion.


I have read several dozen webpages regarding upgrading MediaWiki, especially Manual:Upgrading

I followed the instructions but in the end I get:

 404
 The page you are looking for cannot be found.

The current Wiki is here: https://wiki<dot>XXX<dot>com<dot>sg

This is working well.

The upgraded Wiki is at another subdomain: https://mirror<dot>XXX<dot>com<dot>sg

So I changed in LocalSettings.php file:

 $wgServer = "https://mirror<dot>XXX<dot>com<dot>sg";

It is using a duplicated database.

The previous creator of the wiki had used short URLs with .htaccess file.

$wgArticlePath = "/wiki/$1";
$wgUsePathInfo = true;

He had placed all the files at the web document root so

$wgScriptPath = "";

I commented some namespaces that were not used.

Database:

The database is using phpMyAdmin MariaDB10.

The old database dataXXX1 had collation utf8_general_ci

 time mysqldump -h localhost --socket /run/mysqld/mysqld10.sock -u userXXX1 -p --default-character-set=utf8 dataXXX1 -r backup_dataXXX1_`date +%Y-%m-%d_%H_%M`.sql

Then I imported into a new MariaDB10 database with collation utf8_unicode_ci.

In LocalSettings.php file:

# MySQL table options to use during installation or update
$wgDBTableOptions = "ENGINE=InnoDB, DEFAULT CHARSET=binary";

changed to -->

$wgDBTableOptions = "ENGINE=InnoDB, DEFAULT CHARSET=utf8";

I commented:

## Shared memory settings
$wgMainCacheType = CACHE_ACCEL;
$wgMemCachedServers = array();

Copying the required files:

I used the Vector skin, so commented all other skins.

I used the same extensions, all downloaded matching the WikiMedia version 1.29.2.

The images and extensions are placed inside the new wiki.

The .htaccess and new LocalSettings.php are inserted in the new wiki.

I am using Synology NAS.

I set owner and permissions:

time chown -R http.http /web/document/root/
cd /web/document/root/
time find . -type f -exec chmod 664 {} \;
time find . -type d -exec chmod 775 {} \;
time chown http.http /web/document/root
time chown http.http /web/document/root/*
time chown http.http /web/document/root/.*
cd /web/document/root/
chmod 775 *
chmod 775 .*

Running update script:

I transferred the new wiki to online.

I ran the update script in the maintenance directory using the shell command:

php56 update.php

It completed successfully with no errors.

When accessing the new wiki, I get this error page:

 404
 The page you are looking for cannot be found.

The .htaccess file is:

# Expires Caching Start #
## EXPIRES CACHING ##
<IfModule mod_expires.c>
ExpiresActive On
ExpiresByType image/jpg "access 1 year"
ExpiresByType image/jpeg "access 1 year"
ExpiresByType image/gif "access 1 year"
ExpiresByType image/png "access 1 year"
ExpiresByType text/css "access 1 month"
ExpiresByType application/pdf "access 1 month"
ExpiresByType application/javascript "access 1 month"
ExpiresByType application/x-javascript "access 1 month"
ExpiresByType application/x-shockwave-flash "access 1 month"
ExpiresByType image/x-icon "access 1 year"
ExpiresDefault "access 2 days"
## EXPIRES CACHING ##

# Enable the rewrite engine
RewriteEngine On
RewriteCond %{DOCUMENT_ROOT}%{REQUEST_URI} !-f
RewriteCond %{DOCUMENT_ROOT}%{REQUEST_URI} !-d
RewriteRule ^/?wiki(/.*)?$ %{DOCUMENT_ROOT}/index.php [L]
RewriteRule ^/*$ %{DOCUMENT_ROOT}/index.php [L]
# Redirect / to Main Page
</IfModule>

I deleted the .htaccess file. I get the same 404 result.

Hope somebody can help. N S Christian (talk) 09:55, 6 December 2017 (UTC)

It may be that the mod_expires apache module isn't installed on the new server. What happens if you replace the .htaccess with the following:
# Enable the rewrite engine
RewriteEngine On
RewriteCond %{DOCUMENT_ROOT}%{REQUEST_URI} !-f
RewriteCond %{DOCUMENT_ROOT}%{REQUEST_URI} !-d
RewriteRule ^/?wiki(/.*)?$ %{DOCUMENT_ROOT}/index.php [L]
RewriteRule ^/*$ %{DOCUMENT_ROOT}/index.php [L]
# Redirect / to Main Page
MarkAHershberger(talk) 03:23, 7 December 2017 (UTC)
Thank you very much!!! The upgraded wiki is working now.
I have returned to recommended permissions.
cd web/document/root/
time find . -type f -exec chmod 644 {} \;
time find . -type d -exec chmod 755 {} \;
N S Christian (talk) 03:01, 8 December 2017 (UTC)
The discussion above is closed. Please do not modify it. No further edits should be made to this discussion.

My Text disappeared

The following discussion is closed. Please do not modify it. Subsequent comments should be made on the appropriate discussion page. No further edits should be made to this discussion.


I was publishing my text so i clicked publish. It said that an error occured and when i came back to the text it was all gone. How can i get the text back? Lillespark (talk) 11:14, 6 December 2017 (UTC)

Might be possible to get the text back from browser cache. Don't open the webpage again, as it might remove the earlier cached content.
If you were using Firefox, browse to about:cache and find (Ctrl+F) the URL of the Wiki you were editing.
For Chrome, as it stores its cache in HEX format, you'll need to use Nirisoft's ChromeCacheView. In the application (Ctrl+F) a part of the relevant URL. After selecting the desired file, use the option on the Copy Selected Cache Files To... toolbar option. AhmadF.Cheema (talk) 12:33, 6 December 2017 (UTC)
The discussion above is closed. Please do not modify it. No further edits should be made to this discussion.

Encountering a [307ae516] 2017-12-06 18:33:02: Fatal exception of type MWException

The following discussion is closed. Please do not modify it. Subsequent comments should be made on the appropriate discussion page. No further edits should be made to this discussion.


I am encountering the following error with two notices when I try to reset user password, create a new account or Change email address. I was able to perform these in the past but on latest XAMPP package update this was found to be broken. I am able to login to wiki page and creat new pages with no issues. Can someone please tell me what changed that is causing the issue I am encountering and how I can fix it?

########################################################################################################################################

Internal error

[307ae516] 2017-12-06 18:33:02: Fatal exception of type MWException 

Notice: Uncommitted DB writes (transaction from DatabaseBase::query (User::loadFromDatabase)). in C:\xampp\htdocs\includes\db\Database.php on line 3944

Notice: DB transaction callbacks still pending (from Title::invalidateCache). in C:\xampp\htdocs\includes\db\Database.php on line 3953

########################################################################################################################################

Last XAMPP package where this was still working "xampp-win32-7.0.4-0-VC14-installer.exe". Since then I have updated to "xampp-win32-7.1.10-0-VC14-installer.exe" and "xampp-win32-7.1.11-0-VC14-installer.exe". Abeltran1973 (talk) 18:40, 6 December 2017 (UTC)

What errors are reported in your error log? Is downgrading to the working version of xamp an option? MarkAHershberger(talk) 03:09, 7 December 2017 (UTC)
Set $wgShowExceptionDetails to true in LocalSettings.php, so it prints a more detailed error message instead of a "Fatal exception of type MWException " Ciencia Al Poder (talk) 10:17, 7 December 2017 (UTC)
MarkAHershberger, downgrading to the working version of xampp is not an option.
Ciencia Al Poder, $wgShowExceptionDetails isn't in my LocalSettings.php. I added it manually ----> Thanks for the suggestion.
It's erroring out with "Pear mail package not installed"
Seems Pear was part of Xampp package in the past that was installed automatically but is no longer.
Root cause was "C:\xampp\htdocs\includes\UserMailer.php: PEAR mail package is not installed"
I followed instructions to install it and now all is well ... https://www.arclab.com/en/kb/php/xampp-windows-how-to-install-pear-mail-package-class.html
Thanks Guys! Abeltran1973 (talk) 20:22, 7 December 2017 (UTC)
The discussion above is closed. Please do not modify it. No further edits should be made to this discussion.

I’m not able to login or to reset the password

The following discussion is closed. Please do not modify it. Subsequent comments should be made on the appropriate discussion page. No further edits should be made to this discussion.


Hello,

I cannot login or to reset the passwork on mywiki.

I get this error message

There seems to be a problem with your login session; this action has been canceled as a precaution against session hijacking. Go back to the previous page, reload that page and then try again.

Any ideea how to fix it ?

Thanks Adrianevs (talk) 19:17, 6 December 2017 (UTC)

As a starting point, see Project:Support desk/Flow/2016/07#h-Login_error_(session_hijacking_protection)-2016-07-11T08:56:00.000Z and Project:Support desk/Flow/2016/07#h-Can't_login_or_create_user_after_upgrade_to_1.27-2016-07-05T08:20:00.000Z. AhmadF.Cheema (talk) 21:25, 6 December 2017 (UTC)
The discussion above is closed. Please do not modify it. No further edits should be made to this discussion.

HTTP 500 Error on LDAP Authentication Success

The following discussion is closed. Please do not modify it. Subsequent comments should be made on the appropriate discussion page. No further edits should be made to this discussion.


On correct active directory login attempts, I am served a HTTPD 500 error and the following in my logs:

[Wed Dec 06 10:51:30.970624 2017] [:error] [pid 3369] [client [redacted]] PHP Notice:  Use of undefined constant DB_REPLICA - assumed 'DB_REPLICA' in /usr/share/mediawiki123/extensions/LdapAuthentication/LdapAuthenticationPlugin.php on line 2111, referer: http://[redacted]/index.php/Special:UserLogin
[Wed Dec 06 10:51:30.970654 2017] [:error] [pid 3369] [client [redacted]] PHP Notice:  Undefined index: DB_REPLICA in /usr/share/mediawiki123/includes/db/LoadBalancer.php on line 591, referer: http://[redacted]/index.php/Special:UserLogin
[Wed Dec 06 10:51:30.970661 2017] [:error] [pid 3369] [client [redacted]] PHP Notice:  Undefined index: type in /usr/share/mediawiki123/includes/db/LoadBalancer.php on line 720, referer: http://[redacted]/index.php/Special:UserLogin
[Wed Dec 06 10:51:30.970972 2017] [:error] [pid 3369] [client [redacted]] PHP Fatal error:  Call to a member function setLBInfo() on a non-object in /usr/share/mediawiki123/includes/db/LoadBalancer.php on line 727, referer: http://[redacted]/index.php/Special:UserLogin

On incorrect active directory login attempts, I get the normal incorrect username or password message. Both with a proxy agent and without a proxy agent, I get the same issue. Also, nothing is showing in /tmp/debug.log.

I am running MediaWiki 1.23, PHP 5.4.16, MySQL 5.5.56, and CentOS 7.4.

$wgAuth = new LdapAuthenticationPlugin();

$wgLDAPDomainNames      = array('[redacted]');
$wgLDAPServerNames      = array('[redacted]' => '[redacted]');
$wgLDAPEncryptionType   = array('[redacted]' => 'clear');

$wgLDAPSearchStrings    = array('[redacted]' => "USER-NAME@[redacted]" );

$wgLDAPBaseDNs          = array('[redacted]' => '[redacted]');
$wgLDAPSearchAttributes = array('[redacted]' => 'samaccountname');

#$wgLDAPProxyAgent      = array('[redacted]' => '[redacted]');
#$wgLDAPProxyAgentPassword = array('[redacted]' => '[redacted]');

$wgLDAPDebug = 3;
$wgDebugLogGroups["ldap"] = "/tmp/debug.log";
192.195.67.2 (talk) 19:55, 6 December 2017 (UTC)
Looks like you have installed an LDAP extension for the latest MediaWiki version, while you're using MediaWiki 1.23. That won't work. You should download the extension for the 1.23 version of MediaWiki, or even better, upgrade MediaWiki to one of the supported versions since 1.23 is no longer supported. Ciencia Al Poder (talk) 10:20, 7 December 2017 (UTC)
The discussion above is closed. Please do not modify it. No further edits should be made to this discussion.

Loading + Searching PowerPoint Presentations

The following discussion is closed. Please do not modify it. Subsequent comments should be made on the appropriate discussion page. No further edits should be made to this discussion.


Hello,

I was wondering whether MediaWiki supports loading PowerPoint presentations and making the contents searchable in the search function.

Thanks,

Jeff 199.85.22.100 (talk) 22:53, 6 December 2017 (UTC)

As far as I know, there is no extension that will make PowerPoint presentations content available. MarkAHershberger(talk) 17:02, 7 December 2017 (UTC)
The Extension:ExtendedSearch, which is part of the BlueSpice MediaWiki distribution uses Lucene/SOLR to index uploaded files. It can handle a range of office types (doc, docx, xls, xlsx, ppt, pptx, pdf). Fulltext search is possible. With a little effort you can also install it without the rest of the distribution extensions. Osnard (talk) 07:24, 8 December 2017 (UTC)
The discussion above is closed. Please do not modify it. No further edits should be made to this discussion.

Category under namespace

The following discussion is closed. Please do not modify it. Subsequent comments should be made on the appropriate discussion page. No further edits should be made to this discussion.


I want to create a category which is only for specific namespace. Is it possible? Czech.Fox (talk) 13:34, 7 December 2017 (UTC)

no, this isn't possible. MarkAHershberger(talk) 17:00, 7 December 2017 (UTC)
The discussion above is closed. Please do not modify it. No further edits should be made to this discussion.

VisualEditor times out after upgrade

The following discussion is closed. Please do not modify it. Subsequent comments should be made on the appropriate discussion page. No further edits should be made to this discussion.


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 (talk) 16:13, 7 December 2017 (UTC)

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 MadTownDavid (talk) 16:16, 7 December 2017 (UTC)
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. MarkAHershberger(talk) 16:58, 7 December 2017 (UTC)
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... MadTownDavid (talk) 21:19, 11 December 2017 (UTC)
The discussion above is closed. Please do not modify it. No further edits should be made to this discussion.

Installation script does not progress

The following discussion is closed. Please do not modify it. Subsequent comments should be made on the appropriate discussion page. No further edits should be made to this discussion.


Trying to install MediaWiki 1.29.2 on CentOS Linux release 7.4.1708 (Core)

PHP 5.6

open index.pxp in the browser (Firefox) , got message "LocalSettings.php not found. Please set up the wiki first." I click to this link and nothing happend

Already did

find . -type f -exec chmod 644 {} \;

find . -type d -exec chmod 755 {} \;

chown -R apache:apache *

What can I do? Baruch.gudesblat (talk) 16:20, 7 December 2017 (UTC)

Can you see if there is an error in your web server's error log? MarkAHershberger(talk) 17:00, 7 December 2017 (UTC)
YES: PHP Fatal error:  Class 'DOMDocument' not found in /var/www/html/wiki/includes/cache/localisation/LocalisationCache.php on line 661, referer: http://172.20.110.79/index.php 82.80.126.198 (talk) 17:04, 7 December 2017 (UTC)
Tried to add DOMDocument: yum install php-xml. It gave errors:
Error: php56w-common conflicts with php-common-5.4.16-43.el7_4.x86_64 Baruchgu (talk) 17:28, 7 December 2017 (UTC)
Installed - Package php56-php-xml-5.6.32-1.el7.remi.x86_64 already installed and latest version
But still have an error Class 'DOMDocument' not found Baruchgu (talk) 18:12, 7 December 2017 (UTC)
solved by yum install php56w-xml Baruchgu (talk) 18:15, 7 December 2017 (UTC)
To get php56w on our system (think CentOS 7), I had to remove ALL php-* rpms, and then install the php56w set (including php56w-xml). There's one dangling dependency to kdesk (so use rpm -e --nodeps ...), but other than that everything seemed fine after swapping out php-* for php56w*. MadTownDavid (talk) 19:12, 7 December 2017 (UTC)
thanks. Now I have an issue with PECL
Warning: The intl PECL extension is not available to handle Unicode normalization,
Which package should install? there are a lot of php-pecl* packs. Baruchgu (talk) 09:21, 10 December 2017 (UTC)
Install the php-intl package. See also how-to-install-extenion-php-intl-in-centos7 Ciencia Al Poder (talk) 10:26, 11 December 2017 (UTC)
The discussion above is closed. Please do not modify it. No further edits should be made to this discussion.

Can't Save or Preview article that has the word "Update"

The following discussion is closed. Please do not modify it. Subsequent comments should be made on the appropriate discussion page. No further edits should be made to this discussion.


I have a strange issue where any page that contains the word update will not save, nor can you preview. If you click save or preview the edit page is reloaded.

MediaWiki 1.29, PHP 7.0 and Maria DB 10.1.29 50.249.175.245 (talk) 18:41, 7 December 2017 (UTC)

Also if it contains the word "from". Seems like its having an issue with some sql command words? 50.249.175.245 (talk) 18:46, 7 December 2017 (UTC)
Is your wiki public? If so, can you point to it?|
If not, which extensions do you have installed? MarkAHershberger(talk) 19:15, 7 December 2017 (UTC)
oh, and does the word "select" cause a problem? MarkAHershberger(talk) 19:16, 7 December 2017 (UTC)
This is a typical problem with ModSecurity. Ask your hosting provider. Ciencia Al Poder (talk) 15:48, 8 December 2017 (UTC)
The discussion above is closed. Please do not modify it. No further edits should be made to this discussion.

When will the "create a book" option be working ?

When will the "create a book" option be working ? 72.168.128.73 (talk) 03:55, 8 December 2017 (UTC)

Where and why does it not work? Malyacko (talk) 13:09, 8 December 2017 (UTC)

About mediawiki major version number

The following discussion is closed. Please do not modify it. Subsequent comments should be made on the appropriate discussion page. No further edits should be made to this discussion.


According to my research, I found that the major version of mediawiki has remained at 1 for more than a decade.

Is there any special meaning for this? 星耀晨曦 (talk) 08:52, 8 December 2017 (UTC)

No. Malyacko (talk) 13:09, 8 December 2017 (UTC)
See also MediaWiki 2.0 Ciencia Al Poder (talk) 15:45, 8 December 2017 (UTC)
The discussion above is closed. Please do not modify it. No further edits should be made to this discussion.

Not able to create new account on wiki using API

The following discussion is closed. Please do not modify it. Subsequent comments should be made on the appropriate discussion page. No further edits should be made to this discussion.


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? Dan.aluas (talk) 12:46, 8 December 2017 (UTC)

Be sure you're passing the cookies you receive in previous requests Ciencia Al Poder (talk) 15:46, 8 December 2017 (UTC)
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. Dan.aluas (talk) 07:34, 12 December 2017 (UTC)
The discussion above is closed. Please do not modify it. No further edits should be made to this discussion.

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

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 ? Adrianevs (talk) 10:16, 9 December 2017 (UTC)

Did you configure Manual:$wgPasswordSender (and Manual:$wgSMTP) correctly? Reception123 (talk) 08:59, 10 December 2017 (UTC)
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). Bawolff (talk) 13:46, 11 December 2017 (UTC)
I'm encountering this as well. The SMTP settings are correct (and verified using smtper.net), but despite everything being configured in LocalSettings the Special:PasswordReset page still gives the error, "The password reset was not handled. Maybe no provider was configured?" No custom auth extensions or other customizations are in place, and the installation is up-to-date at 1.30.0. Any thoughts on what might be happening? Thanks! Huwmanbeing (talk) 14:08, 22 January 2018 (UTC)

LDAP configuration on CentOS 7

The following discussion is closed. Please do not modify it. Subsequent comments should be made on the appropriate discussion page. No further edits should be made to this discussion.


Hi

Who can help, please?

I set Configuration for AD domains as it is describe in MediaWiki pages 1.29.2

But it is still not recognizes the users. How to debug it? Baruchgu (talk) 14:20, 10 December 2017 (UTC)

Please provide a link which exact tutorial you are following. Malyacko (talk) 21:43, 10 December 2017 (UTC)
I mean Extension:LDAP Authentication/Examples#Configuration for AD domains
but our IT already solved the issue :-) Baruchgu (talk) 12:40, 11 December 2017 (UTC)
The discussion above is closed. Please do not modify it. No further edits should be made to this discussion.

DF Robot digital push button yellow, fritzing part?

The following discussion is closed. Please do not modify it. Subsequent comments should be made on the appropriate discussion page. No further edits should be made to this discussion.


Hi,

Do you guys have the fritzing download for the yelloe digital push button expansion board available as i cannot find it on your site?

Thanks

Regards 83.136.45.184 (talk) 17:50, 10 December 2017 (UTC)

I'm not sure that you are referring to something regarding MediaWiki? Reception123 (talk) 19:25, 10 December 2017 (UTC)
Hi, the question is not regarding MediaWiki, its that I am doing up a circuit diagram in Fritzing and noticed that your site for the has the graphic for the button. It is the one here from your site: https://www.dfrobot.com/wiki/index.php/File:DFR0029_Diagram.png
I was wondering whether you provide a Fritzing or Eagle CAD file so it could be used in a drawing?
thanks 83.136.45.184 (talk) 19:40, 10 December 2017 (UTC)
dfrobot.com uses the MediaWiki software for their website itself. This is the forum for the MediaWiki software. If you have questions boaut Fritzing, you need to ask in a Fritzing forum. Malyacko (talk) 21:42, 10 December 2017 (UTC)
The discussion above is closed. Please do not modify it. No further edits should be made to this discussion.

I just installed media wiki on my website, want a text editor

The following discussion is closed. Please do not modify it. Subsequent comments should be made on the appropriate discussion page. No further edits should be made to this discussion.


to type normal, visual editor seems good but from the FAQ's and other information, I'm not sure if it is something I can download that all users to the site will be able to use?

Beyond that, there are only three versions in the download section, 1.27 is one, but mine is 1.27.4, is that the right one to download.

So is the visual editor not what I should use to set up a website where visual editor is enabled for all users, and if should my installation of 1.27.4 be paired with 1.27 in the download visual editor? 1stplebian (talk) 00:30, 11 December 2017 (UTC)

Depends on who the target audience for your Wiki is. If they are people new to Wikis, Extension:VisualEditor would be the preferred option, for experienced users the Extension:WikiEditor would be fine.
VisualEditor 1.27 is the correct version for MediaWiki 1.27.4 too.
Whether you'll be able to make VisualEditor work for your Wiki depends a lot on the kind of hosting you are using. Shared hosting plans will, in many cases, make it impractical. to use. AhmadF.Cheema (talk) 04:10, 11 December 2017 (UTC)
The discussion above is closed. Please do not modify it. No further edits should be made to this discussion.

Better method for backing up the wiki.

The following discussion is closed. Please do not modify it. Subsequent comments should be made on the appropriate discussion page. No further edits should be made to this discussion.


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? 212.204.84.138 (talk) 14:26, 11 December 2017 (UTC)

You can edit the document. 星耀晨曦 (talk) 16:53, 11 December 2017 (UTC)
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. 212.204.84.138 (talk) 08:07, 12 December 2017 (UTC)
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. Malyacko (talk) 08:15, 12 December 2017 (UTC)
Why this site will have edit war? 星耀晨曦 (talk) 08:50, 12 December 2017 (UTC)
He obviously is not convinced of his idea. At least he makes it sound that way. 2001:16B8:1083:A400:10F1:ADBA:4A02:FA6E (talk) 18:44, 12 December 2017 (UTC)
No worries, I forget at times that I'm not in the jungle that is wikipedia where tribal territories can be easily crossed. I probably should get an account, I've participated here enough over the years, I think I'm due for it. 212.204.84.138 (talk) 08:02, 14 December 2017 (UTC)
The discussion above is closed. Please do not modify it. No further edits should be made to this discussion.

Remove license messages

The following discussion is closed. Please do not modify it. Subsequent comments should be made on the appropriate discussion page. No further edits should be made to this discussion.


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 MAzZY (talk) 19:04, 11 December 2017 (UTC)

Hi MAzZY! You can change the text displayed by editing the contents of MediaWiki:Copyrightwarning. Bttfvgo (talk) 00:43, 12 December 2017 (UTC)
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. Bawolff (talk) 23:34, 12 December 2017 (UTC)
Super cool!!! Bttfvgo (talk) 00:56, 13 December 2017 (UTC)
Unfortunately nothing of this doesn't help. I still see this text and checkbox
How can I _completely_ remove it? MAzZY (talk) 19:56, 14 December 2017 (UTC)
It might be easier if you can provide a link to your wiki. That'll help us track down the page pulling in the checkbox. Not all wikis come with that option. Bttfvgo (talk) 00:22, 15 December 2017 (UTC)
This was submitted as a bug a year ago but it doesn't seem to have been resolved: https://phabricator.wikimedia.org/T140068 Bttfvgo (talk) 01:08, 15 December 2017 (UTC)
This link looks promising: https://www.mediawiki.org/wiki/Upload_dialog Bttfvgo (talk) 01:10, 15 December 2017 (UTC)
The discussion above is closed. Please do not modify it. No further edits should be made to this discussion.

Javascript is sketchy

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! Bttfvgo (talk) 00:53, 12 December 2017 (UTC)

Yes: What the message says: Please use "mediawiki.ui.button" or "oojs-ui" instead.
ResourceLoader/Migration guide (users) Malyacko (talk) 18:55, 12 December 2017 (UTC)
While you should upgrade your dependencies, its likely the js "half-working" is caused by something else. Bawolff (talk) 23:33, 12 December 2017 (UTC)
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 (talk) 00:59, 13 December 2017 (UTC)
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 (talk) 02:28, 13 December 2017 (UTC)
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 (talk) 03:10, 13 December 2017 (UTC)
Please explain why you think of random languages not used in MediaWiki (like Java) when asking if this could be a Java problem. There must have been a thought process that you have not shared. Malyacko (talk) 10:57, 13 December 2017 (UTC)
I figured Java - Javascript. You know. Bttfvgo (talk) 04:03, 18 January 2018 (UTC)
I also receive the following (additional) error on the Main Page: Uncaught TypeError: $.debounce is not a function Bttfvgo (talk) 03:41, 13 December 2017 (UTC)
I don't mean those types of dependencies, I mean the dependencies written into the script.
Uncaught TypeError: $.debounce is not a function
is highly likely related to the issues you are seeing (Likely caused by dependency jquery.throttle-debounce not being declared correctly, with it sometimes being loaded in wrong order). Bawolff (talk) 18:19, 13 December 2017 (UTC)
I finally just moved my hosting from shared hosting to VPS. It has been a chore to get right but everything seems to be running great again. I was able to install JDK so I don't have to worry about that anymore. I did need to update Java on my device. It had been reminding me for awhile. It hasn't given me a problem since. It still displays the errors but only if you go into Chrome's Developer Tools. Everything works good now, though, so I'm not going to complain!
@Bawolff, you mention dependencies being declared in the wrong order. Do they load in the order in which the extension calling for them is listed in LocalSettings.php? I only ask because I decided to organize my settings file by alphabetizing all of the extensions. I did make notes throughout as certain extensions (like Scribunto, Syntax Highlighter, and Visual Editor) do say that items needed to be listed in a certain order. In that case I changed the order of the extension attribute declarations (like $wgScribuntoUseGeSHi = true; and $wgScribuntoUseCodeEditor = true;). For some reason I feel I'm doing it wrong but I'm not complaining! It works again! Yea! Bttfvgo (talk) 04:17, 18 January 2018 (UTC)
Java and Javascript are entirely separate things (Calling it javascript was a marketing ploy by Netscape back in the 90's because they thought java had a lot of positive buzz), so upgrading the jdk should have no affect.
For dependencies, I don't mean LocalSettings.php. In the code of the gadget javascript (that is what the programmer made), having things in wrong order could cause problems. Order should mostly not matter in LocalSettings.php, and anywhere it does matter your site will probably totally not work at all so it will be really noticable Bawolff (talk) 05:57, 19 January 2018 (UTC)

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

The following discussion is closed. Please do not modify it. Subsequent comments should be made on the appropriate discussion page. No further edits should be made to this discussion.


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 (talk) 10:39, 12 December 2017 (UTC)

Hang on... After I typed this, I look over and see the login screen for the wiki. There is obviously a terrible lag issue. 212.204.84.138 (talk) 10:40, 12 December 2017 (UTC)
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. 星耀晨曦 (talk) 14:38, 12 December 2017 (UTC)
See Manual:Errors and symptoms#You see a Blank Page Malyacko (talk) 18:54, 12 December 2017 (UTC)
Thank you very much. Can one of the 'annointed' please add this link to the upgrading page? I think it would be a value to future readers 212.204.84.138 (talk) 07:59, 14 December 2017 (UTC)
The discussion above is closed. Please do not modify it. No further edits should be made to this discussion.

Trouble with dynamic tables

The following discussion is closed. Please do not modify it. Subsequent comments should be made on the appropriate discussion page. No further edits should be made to this discussion.


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 Tozeos (talk) 17:01, 12 December 2017 (UTC)

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? Malyacko (talk) 18:53, 12 December 2017 (UTC)
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 Tozeos (talk) 20:10, 12 December 2017 (UTC)
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 :( —TheDJ (Not WMF) (talkcontribs) 08:50, 13 December 2017 (UTC)
Normally, if you edit the page, and hit preview, at the bottom there should be a list of templates used on the page. If you see red links on the list, those are the missing templates on your wiki. Ciencia Al Poder (talk) 10:43, 13 December 2017 (UTC)
I understand. I'll see what i can do Tozeos (talk) 12:19, 13 December 2017 (UTC)
The discussion above is closed. Please do not modify it. No further edits should be made to this discussion.

contacting other users

The following discussion is closed. Please do not modify it. Subsequent comments should be made on the appropriate discussion page. No further edits should be made to this discussion.


what is the best way to contact another user to ask for help and or clarification Alexwmunro1992 (talk) 05:05, 13 December 2017 (UTC)

Each user has a talk page, see Help:Talk pages. In the page history you can reach the talk page of the users that edited a given page. Ciencia Al Poder (talk) 10:45, 13 December 2017 (UTC)
The discussion above is closed. Please do not modify it. No further edits should be made to this discussion.

'NS_MODULE' constant not found

The following discussion is closed. Please do not modify it. Subsequent comments should be made on the appropriate discussion page. No further edits should be made to this discussion.


These days I plan to upgrade MW from 1.29.1 to 1.30. After I installed all required extensions, I run php tests/phpunit/phpunit.php, shell show an error:

PHP Warning:  Use of undefined constant NS_MODULE - assumed 'NS_MODULE' (this will throw an Error in a future version of PHP) in mediawiki-1.30.0/LocalSettings.php on line 324

Now my wiki config are:

Mediawiki 1.29.1
PHP 7.2.0 (cgi-fcgi)
MariaDB 10.2.11-MariaDB-log
ICU 52.1
Lua 5.1.5

What happened? 星耀晨曦 (talk) 10:07, 13 December 2017 (UTC)

Do you have Scribunto? wargo (talk) 10:09, 13 December 2017 (UTC)
I have installed Scribunto extension. Which file defined NS_MODULE constant? 星耀晨曦 (talk) 10:11, 13 December 2017 (UTC)
And you have line with "$IP/extensions/Scribunto/Scribunto.php" before any text like "NS_MODULE" in LocalSettings.php ? wargo (talk) 10:21, 13 December 2017 (UTC)
"$IP/extensions/Scribunto/Scribunto.php" on line 273. But error on 324 line, this line is $wgNamespacesWithSubpages[NS_MODULE] = true;. The same config file does not have any errors under MW 1.29.1. 星耀晨曦 (talk) 10:24, 13 December 2017 (UTC)
You'll have to use the numeric value instead of the constant. Even if the extension is included, the constant may not be accessible yet at this point. Ciencia Al Poder (talk) 10:41, 13 December 2017 (UTC)
I set $wgNamespacesWithSubpages[828] = true;, the warning disappear. 星耀晨曦 (talk) 12:31, 13 December 2017 (UTC)
The discussion above is closed. Please do not modify it. No further edits should be made to this discussion.

Error Message when i try to reset my password

The following discussion is closed. Please do not modify it. Subsequent comments should be made on the appropriate discussion page. No further edits should be made to this discussion.


Hello, i've got a problem when i will «Reset my Password». I receive the following error message: 

Es ist ein Datenbankabfragefehler aufgetreten. Dies könnte auf einen Fehler in der Software hindeuten.

[dbffef61105490c7ac8f6c7c] 2017-12-13 10:18:45: Fataler Ausnahmefehler des Typs „DBQueryError“ 46.14.153.220 (talk) 10:19, 13 December 2017 (UTC)

See Manual:How to debug with instructions to get a detailed exception message. Ciencia Al Poder (talk) 10:41, 13 December 2017 (UTC)
The discussion above is closed. Please do not modify it. No further edits should be made to this discussion.

Wikiscience competition

The following discussion is closed. Please do not modify it. Subsequent comments should be made on the appropriate discussion page. No further edits should be made to this discussion.


I went to the link and made a mistake clicking on my country instead of the 'categories' and uploaded my entries there. How do I know if my photos were entered in the competition? Anna Varona (talk) 23:59, 13 December 2017 (UTC)

Hi Anna, iIf there is some "Wikiscience competition" somewhere then you'll have to go to that somewhere and bring up your question there. It is not a competition on mediawiki.org, I am afraid. :) Malyacko (talk) 09:18, 14 December 2017 (UTC)
The discussion above is closed. Please do not modify it. No further edits should be made to this discussion.

Restore from old server

The following discussion is closed. Please do not modify it. Subsequent comments should be made on the appropriate discussion page. No further edits should be made to this discussion.


Hi, I'd like to migrate my wiki DB from old server to new one

old: CentOS 5, MySQL Distrib 5.1.30, for pc-linux-gnu (i686), MediaWiki 1.17

new CentOS 7, MySQL Distrib 5.5.56-MariaDB, for Linux (x86_64), MediaWiki 1.29.2

I ran on old server: mysqldump -u root -pxxx DB > DB.dump.sql

on new : mysql -u root -pxxx -D DB < DB.dump.sql ; withour errors and warnings!

And the Wiki system was down - present some XML or SQL errors.

I succeed to restore the original DB from older backup.

Any suggestions, please!? Baruchgu (talk) 08:23, 14 December 2017 (UTC)

Added and $wgShowDBErrorBacktrace = true;
see an see Error: 1054 Unknown column 'page_links_updated' in 'field list' Baruchgu (talk) 08:32, 14 December 2017 (UTC)
You have upgraded MediaWiki, so you need to Manual:Upgrading#Run the update script Ciencia Al Poder (talk) 08:41, 14 December 2017 (UTC)
No. I installed new MediWiki on new server from scratch. If I still need update script ? Baruchgu (talk) 08:50, 14 December 2017 (UTC)
You UPGRADED from MediaWiki 1.17 to MediaWiki 1.29.2, so yes, you need to run the update script! Ciencia Al Poder (talk) 09:16, 14 December 2017 (UTC)
New versions = new database schemes. Yes, obviously. Malyacko (talk) 09:16, 14 December 2017 (UTC)
also Error: 1054 Unknown column 'page_content_model' in 'field list' Baruchgu (talk) 08:49, 14 December 2017 (UTC)
After run php update.php and restore again I got
Error: 1054 Unknown column 'ug_expiry' in 'field list' Baruchgu (talk) 08:57, 14 December 2017 (UTC)
Rerun php update.php solved the issue! Thanks ALL! Baruchgu (talk) 09:22, 14 December 2017 (UTC)
The discussion above is closed. Please do not modify it. No further edits should be made to this discussion.

Fatal exception of type "TypeError"

The following discussion is closed. Please do not modify it. Subsequent comments should be made on the appropriate discussion page. No further edits should be made to this discussion.


I upgraded from 1.29.2 and my home page shows the above error. When adding $wgShowExceptionDetails = true; to LocalSettings.php it shows:

[WjJJfceL4-oH1A7c06pIeQAAAEs] index.php?title=Main_Page TypeError from line 4711 of /home/../includes/parser/Parser.php: Argument 2 passed to Parser::setHook() must be callable, string given, called in /home/../includes/StubObject.php on line 111

Backtrace:

#0 /home/../includes/StubObject.php(111): Parser->setHook(string, string)

#1 /home/../includes/StubObject.php(137): StubObject->_call(string, array)

#2 /home/../LocalSettings.php(181): StubObject->__call(string, array)

#3 /home/../includes/Setup.php(855): wfMathtag()

#4 /home/../includes/WebStart.php(114): require_once(string)

#5 /home/../index.php(40): require(string)

#6 {main}

The mw-config web upgrade shows that it completed the upgrade successfully, but I can't reach any pages. Any ideas? QW-IT (talk) 09:54, 14 December 2017 (UTC)

This looks like at least one of your installed extensions is not compatible with your MediaWiki version. When upgrading MediaWiki, be sure to upgrade your extensions as well. Ciencia Al Poder (talk) 10:45, 17 December 2017 (UTC)
The discussion above is closed. Please do not modify it. No further edits should be made to this discussion.

Auto login with Username and Password

The following discussion is closed. Please do not modify it. Subsequent comments should be made on the appropriate discussion page. No further edits should be made to this discussion.


How can I auto login user with username and password.

For example If I hit to this URL, how wikimedia will login the user?

URL - http://localhost/mediawiki/

POST Method - username=abc&password=abc Sms.keval (talk) 10:56, 14 December 2017 (UTC)

Currently you'll need 2 requests: One to get a valid login token, and a second to provide the credentials with the previous login token and session cookie. If you want to do it programmatically you should use Api:Login Ciencia Al Poder (talk) 10:44, 17 December 2017 (UTC)
The discussion above is closed. Please do not modify it. No further edits should be made to this discussion.

Access Denied Error when VisualEditor is enabled

The following discussion is closed. Please do not modify it. Subsequent comments should be made on the appropriate discussion page. No further edits should be made to this discussion.


I Know this is really vague, but I am honestly not sure what data would be useful.

I have a working 1.27.4 installation, that I am trying to add VisualEditor to. I 've found a few guides online and have followed them and whenever I add the 'VisualEditor' piece to my LocalSettings.php file I see a 403 Access Denied error when I try to access my wiki by IP address. If I try to access a specific page (ie.e. not just the home page) I get a 500 Error.

I can comment out hte visual editor piece in the LocalSettings.php doc and everythign starts working again, and I CAN access parsoid through IP:8000

Any assistance would be appreciated. 74.81.182.2 (talk) 23:31, 14 December 2017 (UTC)

Appears to be hosting issue.
You server logs should detail the reasons for the 500 errors. Could be due to file permissions problems. AhmadF.Cheema (talk) 09:26, 15 December 2017 (UTC)
The discussion above is closed. Please do not modify it. No further edits should be made to this discussion.

The following discussion is closed. Please do not modify it. Subsequent comments should be made on the appropriate discussion page. No further edits should be made to this discussion.


Hello -I am currently in version 1.25.3 on a hosted server (http://yan.clot.free.fr/wiki/index.php?title=Accueil) -I am trying to create a page where the user could click on a link to download a file. (for example, on a page dedicated to the hike, the user could download a rando.gpx file which he could then load into his GPS to view a trace) -I have an example of this type of link in mediawiki (https://www.mediawiki.org/wiki/Extension:MaintenanceShell), but I can not implement it (see my page http://yan.clot.free.fr/wiki/index.php?title=Cap_du_Dramont) -Can anyone help me ? Greetings Ycsoft (talk) 12:46, 15 December 2017 (UTC)

This is not something MediaWiki can do directly, because that is a direct link to a file on the server. You should configure it on the webserver.
I see the .gpx file is served with Content-Type: text/plain. You probably want to tell the webserver (apache, apparently), to serve it with an appropriate content-type, which apparently should be "application/gpx+xml". See this little guide that I found: http://www.htaccess-guide.com/adding-mime-types/
With this change, normally the browser won't understand how to open that type of file and offer it for download directly. Ciencia Al Poder (talk) 10:38, 17 December 2017 (UTC)
Isn't the Media namespacw ehat you want?
E.g. You upload your file through the uplod function of MediaWiki (which might need some configuration to allow your file type/mime type). Then you can link the file directly using the Media namespace like so: Media:Wiki.png. This will link to the file directly instead of to the description page. 2001:16B8:103C:5F00:D822:1420:377A:A3C5 (talk) 21:34, 18 December 2017 (UTC)
The discussion above is closed. Please do not modify it. No further edits should be made to this discussion.

Internal Error

The following discussion is closed. Please do not modify it. Subsequent comments should be made on the appropriate discussion page. No further edits should be made to this discussion.


Website: http://list.wiki/

Hi, we're considered new to mediawiki. We bought a godaddy hosting a week ago with mediawiki installed, but after a week or so we received the Internal error "Fatal exception of type "DBQueryError" when we access our website (it's a sudden error and we didn't change any code or install extensions, just input data normally).

We called hosting support, they checked it's not their problem, and tried to solve but failed to so they asked us to contact mediawiki support.

Opening up the error log, we saw mostly of the erorrs are:

PHP Deprecated:  Function mcrypt_create_iv() is deprecated in /home/listwiki/public_html/includes/libs/CryptRand.php on line 256"

We're not sure how to solve this problem, does anyone face this issue and know how to solve this issue? Thanks a lot for the help. Ljianyih (talk) 06:19, 16 December 2017 (UTC)

Th site appears to be accessible now.
Anyway, set the following in your LocalSettings.php to receive a more descriptive "Fatal exception" error message:
error_reporting( -1 );
ini_set( 'display_errors', 1 );
$wgShowSQLErrors = true;
$wgDebugDumpSql = true;
See Manual:How to debug for more information. AhmadF.Cheema (talk) 08:42, 16 December 2017 (UTC)
The discussion above is closed. Please do not modify it. No further edits should be made to this discussion.

Visual Editor

The following discussion is closed. Please do not modify it. Subsequent comments should be made on the appropriate discussion page. No further edits should be made to this discussion.


Hi. Do I need server access in order to install VisualEditor? 190.140.177.39 (talk) 20:07, 16 December 2017 (UTC)

To run the required parsoid service, you will need SSH access (unless your hosting provider can install and run it for you).
OR you could try using VisualEditor/Installation on a shared host option which will limit the editor use, but wouldn't require "server access" on your host. AhmadF.Cheema (talk) 06:28, 17 December 2017 (UTC)
The discussion above is closed. Please do not modify it. No further edits should be made to this discussion.

Categorys are not shown

The following discussion is closed. Please do not modify it. Subsequent comments should be made on the appropriate discussion page. No further edits should be made to this discussion.


I have a following problem: My categorys are not shown at the bottom of my pages, why is this and how do I fix this? SeventhDragonMercur (talk) 23:26, 16 December 2017 (UTC)

I fixed it. Somehow there where ".catlinks { display: none; }" in the common.css by default SeventhDragonMercur (talk) 23:41, 16 December 2017 (UTC)
The discussion above is closed. Please do not modify it. No further edits should be made to this discussion.

Edit MediaWiki HTML and CSS template

The following discussion is closed. Please do not modify it. Subsequent comments should be made on the appropriate discussion page. No further edits should be made to this discussion.


Hello everyone, good morning.

I recently installed MediaWiki Software on my localhost for testicles. I'd like to know more stuff before activating it on my site.

1ª I would like to know how I can edit the template of my MediaWiki, and I speak the tags in HTML, I can not find, where it is. I want to add some things on the homepage and login and on other pages as well. I'm using the MonoBook theme.

2ª I would also like to know where I can edit the CSS of my theme.

3ª I would like to know if it is possible to put the same editor as the Wikipedia encyclopedia.

Thank you in advance. Paulo.adrp (talk) 05:30, 17 December 2017 (UTC)

  1. You should be more specific about what do you want to do. The "main page" is a page like any other, you can edit it. If you want to add something to the existing interface, there are some Hooks you can use to add specific HTML to certain places. Editing the existing PHP files is generally discouraged.
  2. See Manual:Interface/Stylesheets
  3. See Extension:VisualEditor Ciencia Al Poder (talk) 10:30, 17 December 2017 (UTC)
The discussion above is closed. Please do not modify it. No further edits should be made to this discussion.

PHP Warning: posix_uname() has been disabled for security reasons in /includes/GlobalFunctions.php on line 1496

PHP Warning: posix_uname() has been disabled for security reasons in /includes/GlobalFunctions.php on line 1496

Is the following fix safe/ok?

/includes/GlobalFunctions.php

put

if ( function_exists( 'posix_uname' ) ) {

// This function not present on Windows

$uname = /*posix_uname()*/ false;

} else {

instead of

if ( function_exists( 'posix_uname' ) ) {

// This function not present on Windows

$uname = posix_uname();

} else { 2A04:2413:8300:8480:4C8A:204B:9AD4:1FFF (talk) 16:32, 17 December 2017 (UTC)

Make sure you do not turn on safe mode or disable this function in php.ini. 星耀晨曦 (talk) 00:19, 18 December 2017 (UTC)
If a safe function like posix_uname is disabled on your installation, I imagine others will be as well. You probably won't be able to run MediaWiki on that host. Ciencia Al Poder (talk) 10:26, 18 December 2017 (UTC)
@ Ciencia Al Poder Media wiki 1.30 works just fine. That function is blocked on my shared host. 2A04:2413:8300:8480:B585:F64D:2BEF:8506 (talk) 18:11, 18 December 2017 (UTC)
@星耀晨曦 I'm on a shared host and this function is disabled. Is my modification ok or not? Until now I don't see any errors or warnings in the logs. 2A04:2413:8300:8480:B585:F64D:2BEF:8506 (talk) 18:14, 18 December 2017 (UTC)
Your modification seems ok, although this is very weird Ciencia Al Poder (talk) 21:44, 18 December 2017 (UTC)

Hire someone to customize Media Wiki for me

The following discussion is closed. Please do not modify it. Subsequent comments should be made on the appropriate discussion page. No further edits should be made to this discussion.


Hello,

I was wondering if there's a service available (or maybe an individual) that can help me setup a Media Wiki with custom Special Pages and all that?

My PHP is existent, and I am struggling to get what I need out of Media Wiki.

Thanks!

Best

Michael MichaelSel (talk) 19:55, 17 December 2017 (UTC)

See Professional development and consulting#Individual professional developers and consultants. AhmadF.Cheema (talk) 21:19, 17 December 2017 (UTC)
The discussion above is closed. Please do not modify it. No further edits should be made to this discussion.

The following discussion is closed. Please do not modify it. Subsequent comments should be made on the appropriate discussion page. No further edits should be made to this discussion.


Hi, I would like to add an onclick event to all external links on my wiki so that I can track the clicks with google analytics. My problem is that I can't find the php page and function where the external links are generated. Could anyone point me in the right direction?

thanks Yonidebest (talk) 07:07, 18 December 2017 (UTC)

You could probably use Manual:Hooks/LinkerMakeExternalLink hook. Osnard (talk) 13:07, 18 December 2017 (UTC)
I'm not actually proficient in php, I can't build new extensions and I have no idea where and how to use hooks. I thought I could just add the needed text to the php page which parses the external links - there must be a function for that somewhere? Is it not a good idea? Yonidebest (talk) 13:17, 18 December 2017 (UTC)
Modifying the source code is evil - don't do that. It will e.g. make updates harder or even impossible.
Using the LinkerMakeExternalLink hook also sounds like an idea to me. According to the manual page, you can add your code in the &$attribs variable inside the hook function... 2001:16B8:103C:5F00:1912:75CC:7173:6850 (talk) 21:28, 18 December 2017 (UTC)
Instead of adding an "onclick" property, you should add it programmatically from JavaScript itself, see for example https://stackoverflow.com/questions/12284168/adding-onclick-event-dynamically-using-jquery
See Manual:Interface/JavaScript for places where you can add your scripts. Ciencia Al Poder (talk) 09:51, 19 December 2017 (UTC)
MediaWiki already has too many scripts loading, I don't think I should add another. Where do i place the LinkerMakeExternalLink hook? LocalSettings? Yonidebest (talk) 12:45, 19 December 2017 (UTC)
$wgHooks['LinkerMakeExternalLink'][] = 'addOnclickToExternalLinks';
function addOnclickToExternalLinks (&$url, &$text, &$link, &$attribs, $linktype)
{
  $onclickAttrib = "blah";
 
  $link = sprintf('<a href="%s" onclick="%s"%s>%s</a>', $url, $onclickAttrib, $attribs, $text);
 
  return false;  
}
Would this work in LocalSettings? Am I missing something? Yonidebest (talk) 20:23, 19 December 2017 (UTC)
A script would be required to create the function that the onclick handler would call, so you might as well just add an event handler to the script rather than cluttering up your page source. It would slow the page down less too. 108.171.134.161 (talk) 02:30, 21 December 2017 (UTC)
You can add the following to your LocalSettings.php
$wgHooks['LinkerMakeExternalLink'][] = 'addOnclickToExternalLinks';
function addOnclickToExternalLinks (&$url, &$text, &$link, &$attribs, $linktype) {
	$attribs['onclick'] = 'alert("I am here!");';
	return true;
}
Osnard (talk) 14:13, 21 December 2017 (UTC)
The discussion above is closed. Please do not modify it. No further edits should be made to this discussion.

Certain Articles With Coordinates Not Showing in Location API Queries

The following discussion is closed. Please do not modify it. Subsequent comments should be made on the appropriate discussion page. No further edits should be made to this discussion.


Hello, I'm currently working on a project using the MediaWiki Location API to find locations near a specific GPS coordinate. The API works great! Edits to an article's coordinates are updated immediately using the API which is also great. But there are some articles which have GPS coordinates, but don't show up in the API queries. An example would be The Mont Royal Chalet in Montreal. I was wondering how to go about editing the page to ensure it shows up when using the API.

Thanks, PhilEH (talk) 22:04, 18 December 2017 (UTC)

Hi, it seems there is a bug in the code that handles the coordinates when they are specified in the article in this particular format. I have now changed the format and I think that this should fix it for now. I've asked someone who knows a lot about this to double check this problem and hopefully he can solve it for all other occurrences. —TheDJ (Not WMF) (talkcontribs) 12:11, 19 December 2017 (UTC)
That worked! Thank you for your help PhilEH (talk) 23:46, 20 December 2017 (UTC)
The discussion above is closed. Please do not modify it. No further edits should be made to this discussion.

Several "ResourceLoader warnings" and "npp_ajax_request is not defined" issues

The following discussion is closed. Please do not modify it. Subsequent comments should be made on the appropriate discussion page. No further edits should be made to this discussion.


Hello,

I have setup a MediaWiki site several months ago. Its version is 2.9.1. I installed the following extensions:

Cite / CiteThisPage / Gadgets / ImageMap / InputBox / Interwiki / LocalisationUpdate / Nuke / ParserFunctions / PdfHandler / Poem / Renameuser /   SpamBlacklist / SyntaxHighlight_GeSHi / TitleBlacklist / WikiEditor / VisualEditor / Scribunto / TemplateData / AbuseFilter / GettingStarted / PageImages / SyntaxHighlight_GeSHi / MassMessage / Linter / Echo / CategoryTree / ReplaceText / GeoData / Popups / TextExtracts / BetaFeatures

When I access any wiki page, I get the following warnings and errors on my browser console. I wonder if somebody knows what causes the browser to generate such warnings and errors. Is there any conflict between extensions I have installed? Do I use an obsolete extension?

Thanks,

This page is using the deprecated ResourceLoader module "jquery.ui.widget".

This page is using the deprecated ResourceLoader module "jquery.ui.position".

This page is using the deprecated ResourceLoader module "jquery.tipsy".

mw.loader.implement.css

This page is using the deprecated ResourceLoader module "jquery.ui.core".

Please use "mediawiki.ui.button" or "oojs-ui" instead.

mw.loader.implement.css

2/w/load.php?debug=false&lang=fa&modules=jquery%2Cmediawiki&only=scripts&skin=vector&version=1ghvyum:153 Use of "skin" is deprecated. Use mw.config instead.

get @ /w/load.php?debug=false&lang=fa&modules=jquery%2Cmediawiki&only=scripts&skin=vector&version=1ghvyum:153

Uncaught ReferenceError: npp_ajax_request is not defined Niagarafalls (talk) 08:43, 19 December 2017 (UTC)

searching the web for npp_ajax_request looks like it's in some custom scripts. This is caused by some JavaScript loaded from your personal scripts or something in MediaWiki:Common.js or similar. Ciencia Al Poder (talk) 09:48, 19 December 2017 (UTC)
I imported MediaWiki:Common.js from Wikipedia without touching it. BTW, I deleted MediaWiki:Common.js, but I still get the same error. Niagarafalls (talk) 10:01, 19 December 2017 (UTC)
The warnings are not a problem (it just takes long for all the existing modules to be rewritten to use the newer methodologies). The npp_ajax_request is more problematic.
npp_ajax_request() is part of a userscript or gadget however and not part of the main software. You should therefore check those. It's probably best to completely remove the offending code, or you have to search for a newer version of it (that is also actively supported) on wikipedia or something and copy it from there. —TheDJ (Not WMF) (talkcontribs) 10:58, 19 December 2017 (UTC)
The issue is resolved.
There was a gadget as @TheDJ mentioned that caused npp_ajax_request error. I disabled it and everything looks good now.
There was also another gadget that generated all warning messages. I disabled that gadget as well. No warning anymore. Niagarafalls (talk) 11:33, 19 December 2017 (UTC)
The discussion above is closed. Please do not modify it. No further edits should be made to this discussion.

Crop Image

The following discussion is closed. Please do not modify it. Subsequent comments should be made on the appropriate discussion page. No further edits should be made to this discussion.


I wanted to crop this image and use it in this article. Should I crop and reupload it or there is a better way? SlowManifesto (talk) 10:16, 19 December 2017 (UTC)

Yes, that seems to be the correct. You should use the commons:Template:Extracted from to indicate it was cropped from another image. Ciencia Al Poder (talk) 10:39, 19 December 2017 (UTC)
The discussion above is closed. Please do not modify it. No further edits should be made to this discussion.

Subcategories are not listed in parent category page

The following discussion is closed. Please do not modify it. Subsequent comments should be made on the appropriate discussion page. No further edits should be made to this discussion.


I have a MediaWiki installed on a standalone server. I created many categories and organized all categories into a hierarchy with a single top level category. 

In MediaWiki software, if the category contains subcategories, they should be listed under the content and above the list of the pages that are directly assigned to the parent category. But it does not happen in my installed software; subcategories are not listed in their parent category page. Does anybody know possible causes?

Thanks, Niagarafalls (talk) 14:52, 19 December 2017 (UTC)

To give more information of the issue, I imported categories from another wiki using Special:Export/Special:Import. 
Each category had several subcategories. I hoped that importing category from another wiki would preserve category's hierarchy. But that didn't work. To my understanding, the "categorylinks" table keeps category->subcategory relationships and hierarchy. But that table was not populated properly during the import. Is there any way to fix that? Niagarafalls (talk) 22:57, 19 December 2017 (UTC)
Populating this table after an edit or import is done through a background process called Manual:Job queue. By default it picks one job on each page load, so it may take a while if your wiki has too few visits. Or it may not work at all if it has problems executing those jobs (specially since MediaWiki 1.22). See the manual page for some diagnostics and solutions. Ciencia Al Poder (talk) 10:18, 20 December 2017 (UTC)
The discussion above is closed. Please do not modify it. No further edits should be made to this discussion.

'ContextSource' not found

The following discussion is closed. Please do not modify it. Subsequent comments should be made on the appropriate discussion page. No further edits should be made to this discussion.


I deleted every file on my hosting provider because there were thousands of bogus files. (I've done this before with no issue).

I rebuilt all of my website files and uploaded them by FTP- all is good.

I copied all of my MediaWiki files from the backup, and now I am getting this error:

Fatal error: Class 'ContextSource' not found in /home/....../html/vegastips/includes/OutputPage.php on line 38

Any clues where to look would be appreciated.

EDIT

Nevermind. There was a problem in the backup. SteveRMann (talk) 18:43, 19 December 2017 (UTC)

Imane 105.152.8.107 (talk) 14:38, 20 December 2017 (UTC)
The discussion above is closed. Please do not modify it. No further edits should be made to this discussion.

Article Templates

Hello everyone!

How can I activate the Wikipedia templates?

Example: https://en.wikipedia.org/wiki/Template:Infobox_government_agency

Thanks in advance. Paulo.adrp (talk) 21:08, 19 December 2017 (UTC)

To import the Infobox template into your Wiki, see Manual:Importing Wikipedia infoboxes tutorial.
Other more simpler templates can be imported by simply exporting them from Wikipedia, using Special:Export. AhmadF.Cheema (talk) 02:32, 20 December 2017 (UTC)
Did not quite understand.
I just want to make the Wikipedia box info? Could you teach me? Paulo.adrp (talk) 05:03, 20 December 2017 (UTC)
See Manual:Importing Wikipedia infoboxes tutorial. AhmadF.Cheema (talk) 08:16, 20 December 2017 (UTC)
Hello again.
I'm still confused, I do not understand the tutorial very well.
Can you explain to me in more detail, what do I have to do?
From what I understand I need to install these two extensions: Extension: ParserFunctions & Extension: Scribunto.
I installed and enabled the "$wgUseInstantCommons = true;"
But {{info}} does not work, what am I doing wrong?
Thank you in advance, and sorry for anything. Paulo.adrp (talk) 14:24, 20 December 2017 (UTC)
Exactly which step on Manual:Importing Wikipedia infoboxes tutorial are you having problems with?
Up-to which step have you followed the tutorial? AhmadF.Cheema (talk) 15:59, 20 December 2017 (UTC)
I just did the required
Extension: ParserFunctions
Extension: Scribunto
Manual:Importing Wikipedia infoboxes tutorial#Extensions
The rest I did not understand. What do I have to do? Windows. Paulo.adrp (talk) 16:33, 20 December 2017 (UTC)
Go to Wikipedia's Special:Export page and enter the full page names of the infobox templates, for example:
Template:Infobox_government_agency
Be sure to check the Include templates checkbox to include other necessary templates AhmadF.Cheema (talk) 10:25, 21 December 2017 (UTC)
Hello good day.
Please help me, I'm new to Wikipedia and I do not understand these procedures, I apologize for the lack of knowledge, I do not speak English, I use Google Translate, and it's very difficult to understand the tutorial.
Manual:Importing Wikipedia infoboxes tutorial#Extensions
I downloaded the following extensions and installed it on my Wikipedia, the extensions are: ParserFunctions and Scribunto.
I exported the template this way, like you said:
Template:Infobox_government_agency
Paulo.adrp (talk) 06:46, 22 December 2017 (UTC)
But it makes a mistake to import it into my Wikipedia.
Fatal error: Maximum execution time of 120 seconds exceeded in C:\xampp\htdocs\wiki\includes\http\CurlHttpRequest.php on line 36
Could you explain to me in detail what I'm doing wrong? If you have a video teaching how to install I'm grateful, or even an extension to get all INFO Templates.
ParserFunctions
I installed ParserFunctions in this way. I downloaded the file, put it in my extension folder. After these procedures I open the LocalSettings.php and added the following lines at the end of the code and saved.
wfLoadExtension( 'ParserFunctions' );
$wgPFEnableStringFunctions = true;
Paulo.adrp (talk) 06:46, 22 December 2017 (UTC)
Scribunto
I installed Scribunto this way. I downloaded the file, put it in my extension folder. Open LocalSettings.php and I added these codes at the end of every code after I saved it.
require_once "$IP/extensions/Scribunto/Scribunto.php";
$wgScribuntoDefaultEngine = 'luastandalone';
After these procedures I will expose the template as you said but gave the error quoted above, please help me.
Thank you in advance for your patience and dedication. Paulo.adrp (talk) 06:47, 22 December 2017 (UTC)
"Maximum execution time of 120 seconds exceeded"
This probably means your wiki is too slow, maybe you're on a very slow machine, or database hasn't been configured properly Ciencia Al Poder (talk) 10:24, 22 December 2017 (UTC)
Hello again.
Is there any manual import method? Well apparently I can not import the Wiki itself. If it exists, please tell me.
Thanks in advance. Paulo.adrp (talk) 04:55, 23 December 2017 (UTC)
For a more "manual import method", go to: Template:Infobox government agency&action=edit, beneath the edit box, there should be a "Pages transcluded onto the current version of this page" section.
Open the first page under this section.
Create a page by the same name on your Wiki.
Copy the code from the Wikipedia page.
Paste the code inside the page you created on your Wiki and save the page.
Perform these steps on all the pages in the "Pages transcluded onto the current version of this page" section. AhmadF.Cheema (talk) 07:10, 23 December 2017 (UTC)
Look at me again!
It looks like I'm getting the hang of it, but once I apologize for the inconvenience and the inconvenience, but I also ask you to help me resolve my situation.
- The Wiki was on localhost, now I put it on a dedicated server. I am able to export / import perfectly, no limit error appears, thank you for help, because I solved my problem. But now there is another problem and doubts.
1. I have a problem when importing, an error appears in my Wiki, saying, the import failed, how can I solve this problem?
https://i.imgur.com/TRpYAwC.png
2. I have a question about importing INFO from Wikipedia. I'm putting the following codes in "Add pages manually" this way, is that so, or am I doing something wrong?
https://i.imgur.com/AUVZ8sm.png
Template:Info
Template:Info/doc
Template:Infobox
Template:Infobox/doc
Template:Infobox software
Template:Infobox software/doc
Template:Infobox software license
Template:Infobox software/sandbox
Template:Infobox software/testcases
Template:Infobox software platform
Template:Infobox software/simple
Template:Infobox software/stacked
Template:Infobox software license/sandbox
Template:Infobox software license/doc
3. I want to know if it is possible to add all the INFO of Wikipedia, if there is any code for it or even an extension. If it does not exist it could help me implement the Software INFO. If there is a request please send me the download link for export, to import me to my Wiki.
4. Is it possible to undo an import? If yes, how?
I leave my thank you right away. Paulo.adrp (talk) 08:46, 23 December 2017 (UTC)
problem when importing → It says the lua binary is not executable. You should give that file executable permissions. On unix you usually do that by issuing this command: chmod a+x (the full path to the file)
Adding all pages from Wikipedia on your own wiki is possible, but note that Wikipedia has so many pages that you'll need a lot of disk space to store that, the import will take several days, and your wiki will be probably slow unless you're on a big server. You can get dumps of Wikipedia from https://dumps.wikimedia.org/
Undoing an import is not straightforward. Imports usually create pages, you'd need to manually delete them. If the page exists before the import, it will have revisions added to it, which may be difficult to determine which ones came from the import. Ciencia Al Poder (talk) 10:10, 23 December 2017 (UTC)
  1. Answered above. An example of the chmod a+x command, which you will need to run through SSH (command line terminal linked to your hosting server), is present at Extension:Scribunto#Manual installation.
  2. This is fine, but you don't need to enter each page's name in the text box. On the Special:Export page, when you just insert Template:Notice and check the "Include templates" checkbox, it will automatically download all the other relevant templates. The "relevant templates" would be the ones which can be seen in the "Pages transcluded onto the current version of this page" section on the edit page. AhmadF.Cheema (talk) 10:49, 23 December 2017 (UTC)
Just one problem, where I add this code?: <code>chmod a+x (the full path to the file)</code>
My operating system is Windows, I use FileZilla to edit the files on my Wiki, my server has a CPanel, I need to do what?
Thank you again. Paulo.adrp (talk) 10:52, 23 December 2017 (UTC)
Which hosting provider are you using for your "dedicated server"?
You will have to connect with your account on the server through a secured command line terminal, termed as SSH. The Windows application to use for this would be PuTTY.
You will need to read the documentation from your hosting provider for the exact way to connect through SSH. AhmadF.Cheema (talk) 13:51, 23 December 2017 (UTC)
Hello!
I recently purchased a hosting at HostGator.
extensions/Scribunto/engines/LuaStandalone/binaries/yourOS/lua
I accessed my Scribunto folder, looking for yourOS/lua, but these folders do not exist in my extension, it is important to note that my Wiki is in version 1.29.
https://i.imgur.com/bgpwZqT.png
Because the folder does not exist I can not insert the following code into my SSH.
chmod a+x /path/to/extensions/Scribunto/engines/LuaStandalone/binaries/yourOS/lua
chcon -t httpd_sys_script_exec_t /path/to/extensions/Scribunto/engines/LuaStandalone/binaries/yourOS/lua
Thanks again. Paulo.adrp (talk) 15:56, 23 December 2017 (UTC)
yourOS means the operating system (OS) you are running MediaWiki on, such as Windows, Linux, or Mac OS.
Assuming you are running Linux on your HostGator account, the simplest way is to ask the support staff of your hosting provider, whether Linux OS is 32 bit or 65 bit.
If your OS is 32 bit, replace yourOS from the above command with lua5_1_5_linux_32_generic.
If your OS is 64 bit, replace yourOS from the above command with lua5_1_5_linux_64_generic. AhmadF.Cheema (talk) 17:09, 23 December 2017 (UTC)
If you don't want to wait for a response, you can also use the trial & error method. Try the first one and, if it fails, try the second one ;) Ciencia Al Poder (talk) 11:44, 24 December 2017 (UTC)
I did not understand, explaining myself better? Paulo.adrp (talk) 16:42, 26 December 2017 (UTC)
Basically, you have to replace "yourOS" with lua5_1_5_linux_32_generic or lua5_1_5_linux_64_generic.
If in doubt, try using lua5_1_5_linux_32_generic first, and if it's still failing, try with lua5_1_5_linux_64_generic Ciencia Al Poder (talk) 17:12, 26 December 2017 (UTC)
It is working, but it is working with error, this error appears to me.
Error in Lua: internal error: the interpreter was terminated with the sign "11" Error in Lua: internal error: the interpreter was terminated with the sign "11" Script error: module not found
https://i.imgur.com/mpfCXkd.png
Look how it is, it's on the left side and should be on the right side, and it's also bugged.
Could you send me the download link for me to download the info and info software package? Paulo.adrp (talk) 17:59, 26 December 2017 (UTC)
Which "yourOS" did you choose?
This error might be occurring because you chose the wrong one (Project:Support desk/Flow/2013/09#h-Lua_error:_Internal_error:_The_interpreter_has_terminated_with_signal_"11".-2013-09-17T19:59:00.000Z). Try attempting with the other one. AhmadF.Cheema (talk) 18:09, 26 December 2017 (UTC)
I will contact you to solve this problem and you sent me.
But please, send me the INFO CSS code? Paulo.adrp (talk) 04:39, 28 December 2017 (UTC)
Can't be sure, but the following should be enough:
/* Navbar styling when nested in infobox and navbox */
.infobox .navbar {
	font-size: 100%;
}
/* Infobox template style */
.infobox {
	border: 1px solid #a2a9b1;
	border-spacing: 3px;
	background-color: #f8f9fa;
	color: black;
	/* @noflip */
	margin: 0.5em 0 0.5em 1em;
	padding: 0.2em;
	/* @noflip */
	float: right;
	/* @noflip */
	clear: right;
	font-size: 88%;
	line-height: 1.5em;
}
.infobox caption {
	font-size: 125%;
	font-weight: bold;
	padding: 0.2em;
	text-align: center;
}
.infobox td,
.infobox th {
	vertical-align: top;
	/* @noflip */
	text-align: left;
}
.infobox.bordered {
	border-collapse: collapse;
}
.infobox.bordered td,
.infobox.bordered th {
	border: 1px solid #a2a9b1;
}
.infobox.bordered .borderless td,
.infobox.bordered .borderless th {
	border: 0;
}
.infobox.sisterproject {
	width: 20em;
	font-size: 90%;
}
.infobox.standard-talk {
	border: 1px solid #c0c090;
	background-color: #f8eaba;
}
.infobox.standard-talk.bordered td,
.infobox.standard-talk.bordered th {
	border: 1px solid #c0c090;
}
/* styles for bordered infobox with merged rows */
.infobox.bordered .mergedtoprow td,
.infobox.bordered .mergedtoprow th {
	border: 0;
	border-top: 1px solid #a2a9b1;
	/* @noflip */
	border-right: 1px solid #a2a9b1;
}
.infobox.bordered .mergedrow td,
.infobox.bordered .mergedrow th {
	border: 0;
	/* @noflip */
	border-right: 1px solid #a2a9b1;
}
/* Styles for geography infoboxes, eg countries,
   country subdivisions, cities, etc.            */
.infobox.geography {
	border-collapse: collapse;
	line-height: 1.2em;
	font-size: 90%;
}
.infobox.geography  td,
.infobox.geography  th {
	border-top: 1px solid #a2a9b1;
	padding: 0.4em 0.6em 0.4em 0.6em;
}
.infobox.geography .mergedtoprow td,
.infobox.geography .mergedtoprow th {
	border-top: 1px solid #a2a9b1;
	padding: 0.4em 0.6em 0.2em 0.6em;
}
.infobox.geography .mergedrow td,
.infobox.geography .mergedrow th {
	border: 0;
	padding: 0 0.6em 0.2em 0.6em;
}
.infobox.geography .mergedbottomrow td,
.infobox.geography .mergedbottomrow th {
	border-top: 0;
	border-bottom: 1px solid #a2a9b1;
	padding: 0 0.6em 0.4em 0.6em;
}
.infobox.geography .maptable td,
.infobox.geography .maptable th {
	border: 0;
	padding: 0;
}
/* Fix for hieroglyphs specificality issue in infoboxes ([[Phabricator:43869]]) */
table.mw-hiero-table td {
	vertical-align: middle;
}
AhmadF.Cheema (talk) 11:24, 28 December 2017 (UTC)
Hello!
Some of my templates are giving Lua error. It says the following:
Error in Moon: internal error: the interpreter was finalized with the signal "11"
But my machine is 64 bits, how can I fix this problem?
Thank you very much in advance. Paulo.adrp (talk) 02:46, 30 December 2017 (UTC)
The value of yourOS from the above comments, which one are you using?
Is it lua5_1_5_linux_32_generic OR lua5_1_5_linux_64_generic? AhmadF.Cheema (talk) 07:06, 30 December 2017 (UTC)
Hello!
I used lua5_1_5_linux_64_generic.
And I changed the permission to 0777. And now what do I do? Paulo.adrp (talk) 16:10, 30 December 2017 (UTC)
Are you still receiving the signal "11" error? AhmadF.Cheema (talk) 16:58, 30 December 2017 (UTC)
Yes. Paulo.adrp (talk) 21:09, 30 December 2017 (UTC)
What happens when you use lua5_1_5_linux_32_generic? AhmadF.Cheema (talk) 02:09, 31 December 2017 (UTC)

VisualEditor 1.30 truncates data and repeats them

Caused by bug in curl (fixed in libcurl 7.56.1) in Windows binaries of PHP (any version). We have to wait for future versions.

Last version of VisualEditor for MW 1.30 truncates data. When I create or edit a page which contains long code (can be just Lorem ipsum), which is more than ~10kB (size is changing around this size), it truncates data after this size. Instead of the subsequent data, it prints the following code (I present only part because of this editor limitation) followed by the first 10kB of code from page (Lorem ipsum text), and again and again until it reaches the original size of code.

... <meta charset="utf-8" /> <meta property="mw:pageNamespace" content="0" /> <meta property="mw:pageId" content="1" /> <meta property="dc:modified" content="2017-12-19T11:43:54.000Z" /> <meta property="mw:revisionSHA1" content="52037c2060186c3b757682d49c79c681de3a92b6" /> <meta property="isMainPage" content="true" /> <meta property="mw:html:version" content="1.5.0" /> [1]<title>Main_Page</title><base href="https://domain.com/wiki/company/index.php?title=" />[//domai ...

It looks to me like some timeout problem. I use MW 1.30 on Windows Server with IIS 7.5 and PHP 7.0. Czech.Fox (talk) 09:28, 20 December 2017 (UTC)

Command line "node bin/server.js" returns these messages when this issue occurs:
{"name":"lib/index.js","hostname":"DEVELOPER","pid":6324,"level":50,"logType":"error/html2wt/link","wiki":"wiki$0","title":"Main_Page","oldId":"31","reqId":null,"userAgent":"VisualEditor-MediaWiki/1.30.0","msg":"Encountered <link rel=\"dc:replaces\" resource=\"mwr:revision/30\"> -- serializing as extlink and dropping <a> attributes unsupported in wikitext.","longMsg":"Encountered\n<link rel=\"dc:replaces\" resource=\"mwr:revision/30\">\n-- serializing as extlink and dropping <a> attributes unsupported in wikitext.","levelPath":"error/html2wt/link","time":"2017-12-21T09:07:50.488Z","v":0}
or
{"name":"lib/index.js","hostname":"DEVELOPER","pid":6324,"level":30,"logType":"info/html2wt","wiki":"wiki$0","title":"Main_Page","oldId":"27","reqId":null,"userAgent":"VisualEditor-MediaWiki/1.30.0","msg":"Incompatible constraints (merge): {\"a\":{},\"b\":{\"min\":0,\"max\":1},\"min\":1,\"max\":1} {\"a\":{},\"b\":{\"min\":2,\"max\":2},\"min\":2,\"max\":2,\"constraintInfo\":{\"onSOL\":false,\"sepType\":\"sibling\",\"nodeA\":\"P\",\"nodeB\":\"P\"}} {\"a\":{\"min\":1,\"max\":2},\"b\":{\"min\":0,\"max\":1},\"min\":1,\"max\":1}","longMsg":"Incompatible constraints (merge):\n{\"a\":{},\"b\":{\"min\":0,\"max\":1},\"min\":1,\"max\":1}\n{\"a\":{},\"b\":{\"min\":2,\"max\":2},\"min\":2,\"max\":2,\"constraintInfo\":{\"onSOL\":false,\"sepType\":\"sibling\",\"nodeA\":\"P\",\"nodeB\":\"P\"}}\n{\"a\":{\"min\":1,\"max\":2},\"b\":{\"min\":0,\"max\":1},\"min\":1,\"max\":1}","levelPath":"info/html2wt","time":"2017-12-21T09:05:57.474Z","v":0} Czech.Fox (talk) 09:12, 21 December 2017 (UTC)
Hi Czech,
Did you find any solution to this problem? Pankaj79kumar (talk) 14:28, 8 January 2018 (UTC)
Trying to find the problem with others in task ticket https://phabricator.wikimedia.org/T183356 . If you experience the same problem, join the discussion please. Czech.Fox (talk) 16:27, 11 January 2018 (UTC)
We found the problem. It's caused by bug in curl in Windows binaries of PHP (any version). We have to wait for future versions of PHP. Czech.Fox (talk) 09:08, 12 January 2018 (UTC)
Thanks for your help!
I have build the curl-7.57.0 with PHP Version 7.0.27 and that is working fine.
Please find the URL to create a build of php_cul.dll.
URL:https://wiki.php.net/internals/windows/stepbystepbuild
Thanks,
Pankaj Pankaj79kumar (talk) 13:20, 17 January 2018 (UTC)
I am also facing the same issue.
Am using the MW 1.29 and PHP of 7.0.25.
My data gets truncated while adding through visual editor.
Any one help me sort it out?? 58.68.103.186 (talk) 10:44, 1 March 2018 (UTC)
Update PHP to 7.0.27+ Czech.Fox (talk) 22:43, 6 March 2018 (UTC)
iam using bitnami package in windows
How can i update php? my current version is.0.25. ..
Please help me SoorajNair (talk) 12:01, 7 March 2018 (UTC)

Help me! In what place can I paste : require_once "$IP/extensions/ApiFeatureUsage/ApiFeatureUsage.php"; LocalSettings.php: ? Insert at the end, and the site stops working https://www.mediawiki.org/wiki/Extension:ApiFeatureUsage

Help me! In what place can I paste : require_once "$IP/extensions/ApiFeatureUsage/ApiFeatureUsage.php"; LocalSettings.php: ? Insert at the end, and the site stops working https://www.mediawiki.org/wiki/Extension:ApiFeatureUsage Pavliukdanila (talk) 14:41, 20 December 2017 (UTC)

Hi. You can refer to Manual: How to debug, for pre-investigation. After that, you can tell us what you found so that we can help you solve the problem. Finally, please post your wiki information (e.g. mediawiki and PHP version). 星耀晨曦 (talk) 15:31, 20 December 2017 (UTC)

Math extension gets PHP Parse error on load

The following discussion is closed. Please do not modify it. Subsequent comments should be made on the appropriate discussion page. No further edits should be made to this discussion.


Apologies if this isn't the right place to ask about an extension. Trying to enable Math extension, get blank page on startup with this error:

PHP Parse error:  syntax error, unexpected '[' in /var/www/html/extensions/Math/Math.hooks.php on line 12

OS is RHEL 6.7, Mediawiki 1.26.4, PHP 5.3.3.

Have tried Math vers. 23, 27 and 30, same symptom.

Hints? 104.153.218.163 (talk) 16:20, 20 December 2017 (UTC)

Mediawiki requires at least php 5.4 since Mediawiki 1.20. And even MediaWiki 1.26 is rather ancient honestly. —TheDJ (Not WMF) (talkcontribs) 07:34, 21 December 2017 (UTC)
Yeah, I know, but I'm pretty much limited to running what I can on RHEL's "stock" version of PHP (5.3.3 at this OS level), and according to the version compatibility matrix MW 1.26 was as high as I could go with that PHP.
I'll see what my upgrade options are. Thanks for the reply. 104.153.218.163 (talk) 09:51, 21 December 2017 (UTC)
The discussion above is closed. Please do not modify it. No further edits should be made to this discussion.

Can't edit pages. I get "It appears that your browser does not support Unicode. It is required to edit pages, so your edit was not saved."

The following discussion is closed. Please do not modify it. Subsequent comments should be made on the appropriate discussion page. No further edits should be made to this discussion.


Have tried in Chrome, Edge, and Firefox. Unicode is definitely on in Firefox, and I added extension for it in chrome, but still no luck. Is it perhaps the website or host? Workaround suggestions? Thanks. 2601:58C:C200:1B0:581:9252:72B4:73E (talk) 17:15, 20 December 2017 (UTC)

The edit page of MediaWiki sends a unicode test-string to and compares it with an internal constant. So either the HTTP request actually contains a wrong string or the serverside has an issue.
Is is possible that your network traffic is being modified? By a proxy maybe?
Is the wiki a public (WMF) wiki or a private wiki? Osnard (talk) 13:56, 21 December 2017 (UTC)
It is in development, but it is public. On a shared server plan at major host. I will forward your comments to my developer since it is a little beyond my understanding. Thanks. Philiclese (talk) 18:04, 21 December 2017 (UTC)
The discussion above is closed. Please do not modify it. No further edits should be made to this discussion.

ChangePassword.php error

The following discussion is closed. Please do not modify it. Subsequent comments should be made on the appropriate discussion page. No further edits should be made to this discussion.


I'm setting up a Mediawiki installation and somehow got into a state where my password is not accepted. Since I hadn't yet gotten email configured, I tried to reset my password using the instructions at Manual:ChangePassword.php, but encountered this error:
PasswordError from line 62 of /var/www/mywiki/public_html/maintenance/changePassword.php: * The supplied credentials cannot be changed, as nothing would use them.
<nowiki>*</nowiki> The authentication data change was not handled. Maybe no provider was configured?
Backtrace:
<nowiki>#</nowiki>0 /var/www/mywiki/public_html/maintenance/doMaintenance.php(111): ChangePassword->execute()
<nowiki>#</nowiki>1 /var/www/mywiki/public_html/maintenance/changePassword.php(73): require_once(string)
<nowiki>#</nowiki>2 {main}
Does anyone know how to go about diagnosing this, or what the cause might be? Any advice is greatly appreciated since at the moment I'm unable to administer my wiki. Thanks very much!
MediaWiki=1.29.1, PHP=7.0.22, MySQL=5.7.20. Huwmanbeing (talk) 21:42, 20 December 2017 (UTC)
I am tracking the error. 星耀晨曦 (talk) 14:48, 19 February 2018 (UTC)
Due to my lack of ability, I can only give you a suggestion. Try download a new tarball that match your current version from this site, then extract the includes/auth/ directory to overwrite your existing directory of the same name. 星耀晨曦 (talk) 15:39, 19 February 2018 (UTC)
I just downloaded a fresh copy of MediaWiki 1.30.0 (the version my installation is now on), and replaced the contents of my includes/auth/ directory with the contents of that directory in the download. Unfortunately the error still persists; this is now the response:
[a4df1cc376641f0cce5b784c] [no req]   PasswordError from line 62 of /var/www/mywiki/public_html/mediawiki-1.30.0/maintenance/changePassword.php: * The supplied credentials cannot be changed, as nothing would use them.
<nowiki>*</nowiki> The authentication data change was not handled. Maybe no provider was configured?
Backtrace:
#0 /var/www/mywiki/public_html/mediawiki-1.30.0/maintenance/doMaintenance.php(92): ChangePassword->execute()
#1 /var/www/mywiki/public_html/mediawiki-1.30.0/maintenance/changePassword.php(73): require_once(string)
#2 {main}
Huwmanbeing (talk) 18:37, 19 February 2018 (UTC)
I need more debug information. Please edit mediawiki/includes/auth/AuthManager.php, add var_dump($status); behind $any = $any || $status->value !== 'ignored'; on line 860. Then rerun changePassword.php and observe its behavior, and post error response here.
Note: Do not to modify the file in the production environment. Because it will output debugging information to your web page. 星耀晨曦 (talk) 19:23, 19 February 2018 (UTC)
Sure thing; here is the full dump of the response:
Extended content
object(StatusValue)#148 (6) {
  ["ok":protected]=>
  bool(true)
  ["errors":protected]=>
  array(0) {
  }
  ["value"]=>
  NULL
  ["success"]=>
  array(0) {
  }
  ["successCount"]=>
  int(0)
  ["failCount"]=>
  int(0)
}
object(StatusValue)#149 (6) {
  ["ok":protected]=>
  bool(true)
  ["errors":protected]=>
  array(0) {
  }
  ["value"]=>
  string(7) "ignored"
  ["success"]=>
  array(0) {
  }
  ["successCount"]=>
  int(0)
  ["failCount"]=>
  int(0)
}
object(StatusValue)#148 (6) {
  ["ok":protected]=>
  bool(true)
  ["errors":protected]=>
  array(0) {
  }
  ["value"]=>
  string(7) "ignored"
  ["success"]=>
  array(0) {
  }
  ["successCount"]=>
  int(0)
  ["failCount"]=>
  int(0)
}
object(StatusValue)#149 (6) {
  ["ok":protected]=>
  bool(true)
  ["errors":protected]=>
  array(0) {
  }
  ["value"]=>
  string(7) "ignored"
  ["success"]=>
  array(0) {
  }
  ["successCount"]=>
  int(0)
  ["failCount"]=>
  int(0)
}
object(StatusValue)#148 (6) {
  ["ok":protected]=>
  bool(true)
  ["errors":protected]=>
  array(0) {
  }
  ["value"]=>
  string(7) "ignored"
  ["success"]=>
  array(0) {
  }
  ["successCount"]=>
  int(0)
  ["failCount"]=>
  int(0)
}
object(StatusValue)#149 (6) {
  ["ok":protected]=>
  bool(true)
  ["errors":protected]=>
  array(0) {
  }
  ["value"]=>
  string(7) "ignored"
  ["success"]=>
  array(0) {
  }
  ["successCount"]=>
  int(0)
  ["failCount"]=>
  int(0)
}
object(StatusValue)#148 (6) {
  ["ok":protected]=>
  bool(true)
  ["errors":protected]=>
  array(0) {
  }
  ["value"]=>
  NULL
  ["success"]=>
  array(0) {
  }
  ["successCount"]=>
  int(0)
  ["failCount"]=>
  int(0)
}
object(StatusValue)#149 (6) {
  ["ok":protected]=>
  bool(true)
  ["errors":protected]=>
  array(0) {
  }
  ["value"]=>
  string(7) "ignored"
  ["success"]=>
  array(0) {
  }
  ["successCount"]=>
  int(0)
  ["failCount"]=>
  int(0)
}
object(StatusValue)#148 (6) {
  ["ok":protected]=>
  bool(true)
  ["errors":protected]=>
  array(0) {
  }
  ["value"]=>
  string(7) "ignored"
  ["success"]=>
  array(0) {
  }
  ["successCount"]=>
  int(0)
  ["failCount"]=>
  int(0)
}
object(StatusValue)#149 (6) {
  ["ok":protected]=>
  bool(true)
  ["errors":protected]=>
  array(0) {
  }
  ["value"]=>
  string(7) "ignored"
  ["success"]=>
  array(0) {
  }
  ["successCount"]=>
  int(0)
  ["failCount"]=>
  int(0)
}
object(StatusValue)#147 (6) {
  ["ok":protected]=>
  bool(true)
  ["errors":protected]=>
  array(0) {
  }
  ["value"]=>
  string(7) "ignored"
  ["success"]=>
  array(0) {
  }
  ["successCount"]=>
  int(0)
  ["failCount"]=>
  int(0)
}
object(StatusValue)#149 (6) {
  ["ok":protected]=>
  bool(true)
  ["errors":protected]=>
  array(0) {
  }
  ["value"]=>
  string(7) "ignored"
  ["success"]=>
  array(0) {
  }
  ["successCount"]=>
  int(0)
  ["failCount"]=>
  int(0)
}
object(StatusValue)#147 (6) {
  ["ok":protected]=>
  bool(true)
  ["errors":protected]=>
  array(0) {
  }
  ["value"]=>
  string(7) "ignored"
  ["success"]=>
  array(0) {
  }
  ["successCount"]=>
  int(0)
  ["failCount"]=>
  int(0)
}
object(StatusValue)#149 (6) {
  ["ok":protected]=>
  bool(true)
  ["errors":protected]=>
  array(0) {
  }
  ["value"]=>
  string(7) "ignored"
  ["success"]=>
  array(0) {
  }
  ["successCount"]=>
  int(0)
  ["failCount"]=>
  int(0)
}
object(StatusValue)#147 (6) {
  ["ok":protected]=>
  bool(true)
  ["errors":protected]=>
  array(0) {
  }
  ["value"]=>
  string(7) "ignored"
  ["success"]=>
  array(0) {
  }
  ["successCount"]=>
  int(0)
  ["failCount"]=>
  int(0)
}
[93c813483873d32b2ec10490] [no req]   PasswordError from line 62 of /var/www/mywiki/public_html/mediawiki-1.30.0/maintenance/changePassword.php: * The supplied credentials cannot be changed, as nothing would use them.
<nowiki>*</nowiki> The authentication data change was not handled. Maybe no provider was configured?
Backtrace:
#0 /var/www/mywiki/public_html/mediawiki-1.30.0/maintenance/doMaintenance.php(92): ChangePassword->execute()
#1 /var/www/mywiki/public_html/mediawiki-1.30.0/maintenance/changePassword.php(73): require_once(string)
#2 {main}
The command I run is php changePassword.php --user=UserName --password=NewPassword. Huwmanbeing (talk) 19:53, 19 February 2018 (UTC)
Ok. Then, in the same place, modify as such:
public function allowsAuthenticationDataChange( AuthenticationRequest $req, $checkData = true ) {
        $any = false;
        $providers = $this->getPrimaryAuthenticationProviders() +
            $this->getSecondaryAuthenticationProviders();
        foreach ( $providers as $provider ) {
            $status = $provider->providerAllowsAuthenticationDataChange( $req, $checkData );
            if ( !$status->isGood() ) {
                return Status::wrap( $status );
            }
            $any = $any || $status->value !== 'ignored';var_dump($any);
        }echo "test\n"
        if ( !$any ) {
            $status = Status::newGood( 'ignored' );
            $status->warning( 'authmanager-change-not-supported' );
            return $status;
        }
        return Status::newGood();
}
Rerun changePassword.php. 星耀晨曦 (talk) 10:03, 20 February 2018 (UTC)
The result is as follows:
bool(true)
bool(true)
bool(true)
bool(true)
bool(true)
test
bool(false)
bool(true)
bool(true)
bool(true)
bool(true)
test
bool(false)
bool(false)
bool(false)
bool(false)
bool(false)
test
Huwmanbeing (talk) 10:37, 20 February 2018 (UTC)
I think your LocalPasswordPrimaryAuthenticationProvider have a problem. Most likely is database query problem. Can you access your database directly via command line interface or other connectors? 星耀晨曦 (talk) 11:38, 20 February 2018 (UTC)
That's interesting. Yes, I can easily access the database via phpMyAdmin. Huwmanbeing (talk) 12:39, 20 February 2018 (UTC)
Try select action SELECT user_id FROM user WHERE user_name='<UserName>' via phpMyAdmin. (<UserName> is you want to change username) Can you select out a number?
Now I think it is unlikely that the database problem. Maybe other in LocalPasswordPrimaryAuthenticationProvider. 星耀晨曦 (talk) 13:09, 20 February 2018 (UTC)
For the user whose password I'm trying to reset, the user_id is 1. Huwmanbeing (talk) 15:17, 20 February 2018 (UTC)
Looks like not a database problem. Edit mediawiki/includes/auth/LocalPasswordPrimaryAuthenticationProvider.php, add var_dump($row); behind ); on line 222., then rerun changePassword.php. 星耀晨曦 (talk) 15:26, 20 February 2018 (UTC)
OK, I've made that addition to LocalPasswordPrimaryAuthenticationProvider.php; below is the result from running changePassword. (Nothing extra seems to appear from the dump.)
[2f16bf0d63423d2400ce46db] [no req]   PasswordError from line 62 of /var/www/mywiki/public_html/mediawiki-1.30.0/maintenance/changePassword.php: * The supplied credentials cannot be changed, as nothing would use them.
<nowiki>*</nowiki> The authentication data change was not handled. Maybe no provider was configured?
Backtrace:
#0 /var/www/mywiki/public_html/mediawiki-1.30.0/maintenance/doMaintenance.php(92): ChangePassword->execute()
#1 /var/www/mywiki/public_html/mediawiki-1.30.0/maintenance/changePassword.php(73): require_once(string)
#2 {main}
Huwmanbeing (talk) 16:00, 20 February 2018 (UTC)
Oh, now. Edit mediawiki/includes/auth/LocalPasswordPrimaryAuthenticationProvider.php, add var_dump($username);behind $username = User::getCanonicalName( $req->username, 'usable' ); on line 215., then rerun changePassword.php. 星耀晨曦 (talk) 16:21, 20 February 2018 (UTC)
The response is bool(false). Huwmanbeing (talk) 17:20, 20 February 2018 (UTC)
What username did you input when you run changePassword.php? 星耀晨曦 (talk) 18:16, 20 February 2018 (UTC)
Huwmanbeing is the username I'm inputting. Huwmanbeing (talk) 19:17, 20 February 2018 (UTC)
Please use the following code to edit your line 1092-1141 in includes/user/User.php.
Extended content
public static function getCanonicalName( $name, $validate = 'valid' ) {
    // Force usernames to capital
    global $wgContLang;
    $name = $wgContLang->ucfirst( $name );
    # Reject names containing '#'; these will be cleaned up
    # with title normalisation, but then it's too late to
    # check elsewhere
    if ( strpos( $name, '#' ) !== false ) {
        return false;
    }
echo "test1\n";
    // Clean up name according to title rules,
    // but only when validation is requested (T14654)
    $t = ( $validate !== false ) ?
        Title::newFromText( $name, NS_USER ) : Title::makeTitle( NS_USER, $name );
    // Check for invalid titles
    if ( is_null( $t ) || $t->getNamespace() !== NS_USER || $t->isExternal() ) {
        return false;
    }
echo "test2\n";
    // Reject various classes of invalid names
    $name = AuthManager::callLegacyAuthPlugin(
        'getCanonicalName', [ $t->getText() ], $t->getText()
    );
    switch ( $validate ) {
        case false:
            break;
        case 'valid':
            if ( !self::isValidUserName( $name ) ) {
                $name = false;
            }
        break;
        case 'usable':
            if ( !self::isUsableName( $name ) ) {
                $name = false;
            }
            break;
        case 'creatable':
            if ( !self::isCreatableName( $name ) ) {
                $name = false;
            }
            break;
        default:
            throw new InvalidArgumentException(
                'Invalid parameter value for $validate in ' . __METHOD__ );
            }
        return $name;
}
星耀晨曦 (talk) 19:56, 20 February 2018 (UTC)
The response:
test1
test2
test1
test2
bool(false)
Huwmanbeing (talk) 21:12, 20 February 2018 (UTC)
Maybe, I find the problem point. Are you set $wgReservedUsernames in LocalSettings.php? Or do you installed an extension that blocks users from logging in or registering? 星耀晨曦 (talk) 21:53, 20 February 2018 (UTC)
I don't have any $wgReservedUsernames defined in LocalSettings.
I do have new account creation turned off for unregistered users ($wgGroupPermissions['*']['createaccount'] = false;). I tried re-enabling account creation and re-running changePassword but the result is the same.
I have several extensions installed, but none specifically for blocking logins or registrations. Other than the three automatically-installed "spam prevention" extensions (ConfirmEdit, SpamBlacklist, and TitleBlacklist), I have two others: Abuse Filter and AntiSpoof. I've tried disabling them both and re-running changePassword but that also didn't seem to change anything. Huwmanbeing (talk) 11:24, 21 February 2018 (UTC)
Very strange. Add var_dump($reservedUsernames); to line 912 in includes/user/User.php. 星耀晨曦 (talk) 11:37, 21 February 2018 (UTC)
Yes, it's very odd — I really appreciate all your help with trying to track it down. Here's the result from var_dump($reservedUsernames):
array(12) {
  [0]=>
  string(17) "MediaWiki default"
  [1]=>
  string(17) "Conversion script"
  [2]=>
  string(18) "Maintenance script"
  [3]=>
  string(40) "Template namespace initialisation script"
  [4]=>
  string(14) "ScriptImporter"
  [5]=>
  string(12) "Unknown user"
  [6]=>
  string(25) "msg:double-redirect-fixer"
  [7]=>
  string(22) "msg:usermessage-editor"
  [8]=>
  string(16) "msg:proxyblocker"
  [9]=>
  string(20) "msg:spambot_username"
  [10]=>
  string(23) "msg:autochange-username"
  [11]=>
  string(25) "msg:newusermessage-editor"
}
Huwmanbeing (talk) 12:12, 21 February 2018 (UTC)
Add echo "test\n"; to line 921 in mediawiki/includes/user/User.php behind behind }.
This should be the last debugging if you get test. Since, this is not logical. 星耀晨曦 (talk) 16:53, 21 February 2018 (UTC)
I added that echo to the end of line 921; the result appears unchanged. Here's the full response:
Extended content
array(12) {
  [0]=>
  string(17) "MediaWiki default"
  [1]=>
  string(17) "Conversion script"
  [2]=>
  string(18) "Maintenance script"
  [3]=>
  string(40) "Template namespace initialisation script"
  [4]=>
  string(14) "ScriptImporter"
  [5]=>
  string(12) "Unknown user"
  [6]=>
  string(25) "msg:double-redirect-fixer"
  [7]=>
  string(22) "msg:usermessage-editor"
  [8]=>
  string(16) "msg:proxyblocker"
  [9]=>
  string(20) "msg:spambot_username"
  [10]=>
  string(23) "msg:autochange-username"
  [11]=>
  string(25) "msg:newusermessage-editor"
}
[722c407595dc086df92e31ac] [no req]   PasswordError from line 62 of /var/www/mywiki/public_html/mediawiki-1.30.0/maintenance/changePassword.php: * The supplied credentials cannot be changed, as nothing would use them.
* The authentication data change was not handled. Maybe no provider was configured?
Backtrace:
#0 /var/www/mywiki/public_html/mediawiki-1.30.0/maintenance/doMaintenance.php(92): ChangePassword->execute()
#1 /var/www/mywiki/public_html/mediawiki-1.30.0/maintenance/changePassword.php(73): require_once(string)
#2 {main}
Do you suspect it's something amiss with reserved usernames? Huwmanbeing (talk) 19:50, 21 February 2018 (UTC)
Yes, there should be have a problem. This should a last test: add var_dump($reserved);var_dump($name); to line 919 in the same file before return false;. 星耀晨曦 (talk) 20:59, 21 February 2018 (UTC)
Here's the result:
Extended content
array(12) {
  [0]=>
  string(17) "MediaWiki default"
  [1]=>
  string(17) "Conversion script"
  [2]=>
  string(18) "Maintenance script"
  [3]=>
  string(40) "Template namespace initialisation script"
  [4]=>
  string(14) "ScriptImporter"
  [5]=>
  string(12) "Unknown user"
  [6]=>
  string(25) "msg:double-redirect-fixer"
  [7]=>
  string(22) "msg:usermessage-editor"
  [8]=>
  string(16) "msg:proxyblocker"
  [9]=>
  string(20) "msg:spambot_username"
  [10]=>
  string(23) "msg:autochange-username"
  [11]=>
  string(25) "msg:newusermessage-editor"
}
string(11) "Huwmanbeing"
string(11) "Huwmanbeing"
Huwmanbeing (talk) 21:33, 21 February 2018 (UTC)
That is it. You situation that due $reserved == $name so User::isUsableName() return false and cause you can't change the password. But I do not know why your name will be in $reservedUsernames array. Please add var_dump($reservedUsernames); to line 919 in the same file before return false;. Oh, previous code for debugging can be remove. 星耀晨曦 (talk) 22:35, 21 February 2018 (UTC)
How interesting. When at first I couldn't log in I wondered how my password could have gotten changed without my knowledge; perhaps the answer is that it never did, and instead it's this strange connection to $reservedUsername that's blocking my login.
With just var_dump($reservedUsernames); added to line 919, this is the result:
array(12) {
  [0]=>
  string(17) "MediaWiki default"
  [1]=>
  string(17) "Conversion script"
  [2]=>
  string(18) "Maintenance script"
  [3]=>
  string(40) "Template namespace initialisation script"
  [4]=>
  string(14) "ScriptImporter"
  [5]=>
  string(12) "Unknown user"
  [6]=>
  string(25) "msg:double-redirect-fixer"
  [7]=>
  string(22) "msg:usermessage-editor"
  [8]=>
  string(16) "msg:proxyblocker"
  [9]=>
  string(20) "msg:spambot_username"
  [10]=>
  string(23) "msg:autochange-username"
  [11]=>
  string(25) "msg:newusermessage-editor"
}
Huwmanbeing (talk) 09:56, 22 February 2018 (UTC)
Although impossible, but check these pages in your wiki:
does it include your name. And use index.php?search=Huwmanbeing&title=Special:Search&profile=advanced&fulltext=1&ns8=1 URL to search your wiki, if you find your name included in these pages... 星耀晨曦 (talk) 10:19, 22 February 2018 (UTC)
One of those messages has been customized to Huwmanbeing presumably? Tgr (WMF) (talk) 22:50, 21 February 2018 (UTC)
Set $wgReservedUsernames = []; in LocalSettings.php should can fix it. 星耀晨曦 (talk) 06:04, 22 February 2018 (UTC)
Success! Thank you so much for your diligence in diagnosing this problem — I greatly appreciate it.
Here's the coda to the story. After setting $wgReservedUsernames = [] I re-ran changePassword.php and saw this:
array(1) {
  [0]=>
  string(25) "msg:newusermessage-editor"
}
NewUserMessage is an extension that automatically posts a message to the talk pages of newly-created users. After disabling that extension, I was able to log in without issue — and I verified that changePassword worked fine too. The source of the problem was apparently the MediaWiki:Newusermessage-editor setting, which was set to "Huwmanbeing". I've now set up a separate account just for that extension to use for posting welcome messages.
Thanks again! Huwmanbeing (talk) 10:24, 22 February 2018 (UTC)
Yes, I see Set the username of the user that makes the edit on user talk pages. If this user does not exist, "MediaWiki default" will show up as editing user. The user set here is marked as reserved and won't be able to login! in Extension:NewUserMessage#In-wiki configuration. I'm not sure if I want to add this case to Manual:changePassword.php as troubleshooting note. 星耀晨曦 (talk) 10:48, 22 February 2018 (UTC)
Just pinging for a response. Any thoughts? Huwmanbeing (talk) 20:52, 18 January 2018 (UTC)
Do you have an authentication provider enabled? Do you use any authentication extensions? OAuth? Osnard (talk) 08:57, 19 January 2018 (UTC)
No, I haven't installed anything authentication-related. I just upgraded from 1.29.1 to 1.30.0 to see if that might address the problem, but unfortunately no luck. I'm baffled about how to diagnose and solve this. Huwmanbeing (talk) 13:52, 21 January 2018 (UTC)
1: Reset your localsettings.php to as basic as you can
2: Make sure you ran maintainance/update.php
3: Follow Manual:How_to_debugTheDJ (Not WMF) (talkcontribs) 17:43, 21 January 2018 (UTC)
I've run update.php and temporarily pared out as much as I can from LocalSettings. I also set up a $wgDebugLogFile to get more detail, and attempted to make the change via both changePassword.php and the Special:PasswordReset page, but it doesn't seem to shed much light. There's one relevant line which notes...
[authentication] User1 attempted password reset of User2 but failed
...but otherwise gives no indication of exactly why it failed, and concludes with "the request ended normally". Huwmanbeing (talk) 15:01, 22 January 2018 (UTC)
Is it possible that email needs to be set up and working in order to use changePassword? (Since I'm having some problems with SMTP, just wondered if that might affect this.) Might be no connection, but I'm grasping at straws... Huwmanbeing (talk) 10:42, 25 January 2018 (UTC)
Email isn't necessary to run changePassword.php. You can try Manual:CreateAndPromote.php to change the password, but it looks like you have some sort of alternative for user authentication set up. MarkAHershberger(talk) 01:27, 31 January 2018 (UTC)
Good thought; I just tried CreateAndPromote with --force to try resetting a password for the account, but unfortunately the result is the same:
The authentication data change was not handled. Maybe no provider was configured?
Backtrace:
#0 ...mediawiki-1.30.0/maintenance/doMaintenance.php(92): CreateAndPromote->execute()
#1 ...mediawiki-1.30.0/maintenance/createAndPromote.php(154): require_once(string)
#2 {main}
I don't recall establishing anything out of the ordinary for user authentication. (I normally have new account creation turned off, but the error also occurs when it's on.) What does it mean by "no provider configured"? Do you know of any way to determine what's happening? Huwmanbeing (talk) 15:34, 31 January 2018 (UTC)
Sounds like you have disabled local password authentication. Check $wgAuthManagerConfig / $wgAuthManagerAutoConfig. (The easiest way is probably to run maintenance/shell.php and then just type in the names of those variables.) Tgr (WMF) (talk) 19:52, 21 February 2018 (UTC)
The discussion above is closed. Please do not modify it. No further edits should be made to this discussion.

Wikipedia Main Page

The following discussion is closed. Please do not modify it. Subsequent comments should be made on the appropriate discussion page. No further edits should be made to this discussion.


Hello!

In Wikipedia Brazil, the main page is very attractive, I would like to do the same or something similar in my wiki, how can I do it?

https://pt.wikipedia.org/

https://i.imgur.com/3iihjrI.png

Thank you very much in advance. Paulo.adrp (talk) 06:23, 21 December 2017 (UTC)

Have a look at the Template:Página principal/Cabeçalho. There you can see how the colored bars are being made (see comment <!-- CABEÇALHO FIM -->). Osnard (talk) 13:26, 21 December 2017 (UTC)
Thanks, a principle worked, but with some small bugs. How to solve this problem?
https://i.imgur.com/DzYd2ry.png
And how can I add this to the main header of my wiki? I want to keep it protected, so nobody can edit it, only with permission. Paulo.adrp (talk) 17:13, 21 December 2017 (UTC)
You will need to copy the .CSS rules related to hlist from MediaWiki:Common.css to your Wiki's MediaWiki:Common.css page.
For protecting pages, see Help:Protecting and unprotecting pages. AhmadF.Cheema (talk) 23:05, 21 December 2017 (UTC)
The discussion above is closed. Please do not modify it. No further edits should be made to this discussion.

VisualEditor error: "apierror-visualeditor-docserver-http-error: (curl error: 7) Couldn't connect to server."

After updating from version 1.29.1 to 1.30.0 I get "apierror-visualeditor-docserver-http-error: (curl error: 7) Couldn't connect to server." error when I try to start to edit in VisualEditor. In version 2.29.1 everything worked. Can somebody tell me what changed. I do not see any related messages in error.log.

I use Ubuntu server, web is www.enviwiki.cz Jirka Dl (talk) 09:45, 21 December 2017 (UTC)

Solved: after upgrad of parsoid from version 0.7.1 to 0.8 VisualEditor works again. Jirka Dl (talk) 16:41, 22 December 2017 (UTC)
@Jirka Dl How can I check the version of my parsoid installation? AslanFrench (talk) 07:29, 19 October 2018 (UTC)

how do I speak to a support tech

The following discussion is closed. Please do not modify it. Subsequent comments should be made on the appropriate discussion page. No further edits should be made to this discussion.


I need to speak to a support tech J J Grabow (talk) 17:49, 21 December 2017 (UTC)

I can not set up an account or open one that I have J J Grabow (talk) 17:50, 21 December 2017 (UTC)
On what wiki? Note this is a support desk for MediaWiki software in general, we do not have control to servers or configurations where MediaWiki runs. Ciencia Al Poder (talk) 10:26, 22 December 2017 (UTC)
The discussion above is closed. Please do not modify it. No further edits should be made to this discussion.

I want to have Special:NewPages give me new pages for all content namespaces

I came up with this hack where Special:NewPages will have a new parameter that lets you display all the pages that are in $wgContentNamespaces, using {{Special:NewPages/contentnamespaces}}. It's:

In /includes/specials/pagers/NewPagesPager.php add to the getQueryInfo() function, after the other statements setting the value of $conds['rc_namespace'], add:

global $wgContentNamespaces;
.
.
.
if ( $this->opts->getValue( 'contentnamespaces' ) ) {
	$conds['rc_namespace'] = $wgContentNamespaces;
}

In /includes/specials/SpecialNewpages.php add to the setup() function:

$opts->add( 'contentnamespaces', false );

Then add to the parseparams() function:

if ( 'contentnamespaces' == $bit ) {
	$this->opts->setValue( 'contentnamespaces', true );
}

I was wondering if there's a better way to do this, though? Geneticrecombination (talk) 09:33, 22 December 2017 (UTC)

Error after moving to new server and update

The following discussion is closed. Please do not modify it. Subsequent comments should be made on the appropriate discussion page. No further edits should be made to this discussion.


Hello,

at the moment we are updating our linux servers at work and we have a mediawiki running on one of those servers.

I already moved the files and databases to the new server and did the update to version 1.30 from mediawiki 1.25.

The update.php script ran fine but now I get an error when I go to the main page of my wiki:

Notice: Only variables should be passed by reference in /var/www/html/mediawiki/extensions/SemanticMediaWiki/resources/Resources.php on line 19

Notice: Only variables should be passed by reference in /var/www/html/mediawiki/extensions/SemanticMediaWiki/includes/Setup.php on line 245

[414b1626] /mediawiki/index.php/Hauptseite MWException from line 226 of /var/www/html/mediawiki/includes/Hooks.php: Detected bug in an extension! Hook SFParserFunctions::registerFunctions has invalid call signature; Parameter 1 to SFParserFunctions::registerFunctions() expected to be a reference, value given

Backtrace:

#0 /var/www/html/mediawiki/includes/parser/Parser.php(310): Hooks::run(string, array)
#1 /var/www/html/mediawiki/includes/cache/MessageCache.php(1009): Parser->firstCallInit()
#2 /var/www/html/mediawiki/includes/cache/MessageCache.php(986): MessageCache->getParser()
#3 /var/www/html/mediawiki/includes/Message.php(1058): MessageCache->transform(string, boolean, Language, Title)
#4 /var/www/html/mediawiki/includes/Message.php(726): Message->transformText(string)
#5 /var/www/html/mediawiki/includes/Message.php(789): Message->toString()
#6 /var/www/html/mediawiki/includes/OutputPage.php(928): Message->text()
#7 /var/www/html/mediawiki/includes/OutputPage.php(975): OutputPage->setHTMLTitle(Message)
#8 /var/www/html/mediawiki/includes/page/Article.php(512): OutputPage->setPageTitle(string)
#9 /var/www/html/mediawiki/includes/actions/ViewAction.php(44): Article->view()
#10 /var/www/html/mediawiki/includes/MediaWiki.php(395): ViewAction->show()
#11 /var/www/html/mediawiki/includes/MediaWiki.php(273): MediaWiki->performAction(Article, Title)
#12 /var/www/html/mediawiki/includes/MediaWiki.php(566): MediaWiki->performRequest()
#13 /var/www/html/mediawiki/includes/MediaWiki.php(414): MediaWiki->main()
#14 /var/www/html/mediawiki/index.php(41): MediaWiki->run()
#15 {main}
We are using Debian 9 with Apache2, PHP7.1 and MariaDB 10.1 ThomasV218 (talk) 09:44, 22 December 2017 (UTC)
When you upgrade MediaWiki, you should also upgrade your extensions as well. Be sure you get the version of SMW extension that is compatible with 1.30 Ciencia Al Poder (talk) 10:19, 22 December 2017 (UTC)
Thanks, now there seems to be just a problem with the LDAP authentication, but I guess I just need to upgrade the extension as well. ThomasV218 (talk) 10:59, 22 December 2017 (UTC)
The discussion above is closed. Please do not modify it. No further edits should be made to this discussion.

Uncaught Error: Unknown dependency: oojs-ui-core

The following discussion is closed. Please do not modify it. Subsequent comments should be made on the appropriate discussion page. No further edits should be made to this discussion.


Hello,

After I upgrading MW 1.30, I only found this error in Chrome console. My wiki url is https://gakuencity.org. If you try to edit a page or search any pages, the console will display this error.

What't happening here? 星耀晨曦 (talk) 10:19, 22 December 2017 (UTC)

Don't know if it's related or not, but looks like (Special:版本) you didn't update your extensions along-with MediaWiki core update. AhmadF.Cheema (talk) 12:15, 22 December 2017 (UTC)
I first extract the new version to an empty folder, and then according to the config of LocalSettings.php one by one to download extensions from this website.
I think this is not a problem of extensions. 星耀晨曦 (talk) 12:27, 22 December 2017 (UTC)
If it helps, here is a list of files with that name on my wiki. You said that you get the error when trying to edit, so check that your VisualEditor (if you use it) is the correct version.
root@wiki:/var/www/html/mediawiki# find ./ -name "oojs-ui-core*"
./resources/lib/oojs-ui/oojs-ui-core-apex.css
./resources/lib/oojs-ui/oojs-ui-core.js.map
./resources/lib/oojs-ui/oojs-ui-core-wikimediaui.css
./resources/lib/oojs-ui/oojs-ui-core.js
./extensions/VisualEditor/lib/ve/lib/oojs-ui/oojs-ui-core-apex.css
./extensions/VisualEditor/lib/ve/lib/oojs-ui/oojs-ui-core-apex.rtl.css
./extensions/VisualEditor/lib/ve/lib/oojs-ui/oojs-ui-core-wikimediaui.rtl.css
./extensions/VisualEditor/lib/ve/lib/oojs-ui/oojs-ui-core.js.map
./extensions/VisualEditor/lib/ve/lib/oojs-ui/oojs-ui-core-wikimediaui.css
./extensions/VisualEditor/lib/ve/lib/oojs-ui/oojs-ui-core.js Gerdesj (talk) 13:20, 22 December 2017 (UTC)
Thank you for your help. I found
./w/resources/lib/oojs-ui/oojs-ui-core-mediawiki.css
./w/resources/lib/oojs-ui/oojs-ui-core.js.map
./w/resources/lib/oojs-ui/oojs-ui-core-wikimediaui.css
./w/resources/lib/oojs-ui/oojs-ui-core-apex.css
./w/resources/lib/oojs-ui/oojs-ui-core.js
./w/extensions/VisualEditor/lib/ve/lib/oojs-ui/oojs-ui-core-mediawiki.css
./w/extensions/VisualEditor/lib/ve/lib/oojs-ui/oojs-ui-core.js.map
./w/extensions/VisualEditor/lib/ve/lib/oojs-ui/oojs-ui-core-mediawiki.rtl.css
./w/extensions/VisualEditor/lib/ve/lib/oojs-ui/oojs-ui-core-apex.rtl.css
./w/extensions/VisualEditor/lib/ve/lib/oojs-ui/oojs-ui-core-wikimediaui.css
./w/extensions/VisualEditor/lib/ve/lib/oojs-ui/oojs-ui-core-apex.css
./w/extensions/VisualEditor/lib/ve/lib/oojs-ui/oojs-ui-core.js
./w/extensions/VisualEditor/lib/ve/lib/oojs-ui/oojs-ui-core-wikimediaui.rtl.css
In addition, my wiki WikiEditor extension can't work normally, it can't display toolbar.(See also https://gakuencity.org/w/index.php?title=%E5%AD%A6%E5%9B%AD%E9%83%BD%E5%B8%82:%E6%B2%99%E7%9B%92&action=edit)
My wiki button has also become weird. 星耀晨曦 (talk) 15:22, 22 December 2017 (UTC)
oojs-ui-core is defined in Resources.php. Check if that file is correct.
It may be that resources from the old version are still cached. Did you run update.php? It should take care of the cache. Ciencia Al Poder (talk) 10:44, 25 December 2017 (UTC)
Thank you for your help.
I think I found the problem. I found that my Resources.php does not have the line you said. At first, I suspect the problem is tarball. After I remembered, when I upgrade, I directly to the old version of resources directory copied to the new version of the root directory. 星耀晨曦 (talk) 12:48, 25 December 2017 (UTC)
But now there are new problem, when I fix the above problem.
Original exception: [6e968a3960c76262b6b45989] /wiki/%E9%A6%96%E9%A1%B5 RuntimeException from line 57 of /w/extensions/MobileFrontend/includes/MobileFrontend.hooks.php: wgMFDefaultSkinClass is not setup correctly. It should point to the class name of a valid skin e.g. SkinMinerva, SkinVector
Backtrace:
#0 /w/extensions/MobileFrontend/includes/MobileFrontend.hooks.php(126): MobileFrontendHooks::getDefaultMobileSkin(RequestContext, MobileContext)
#1 /w/includes/Hooks.php(177): MobileFrontendHooks::onRequestContextCreateSkin(RequestContext, NULL)
#2 /w/includes/Hooks.php(205): Hooks::callHook(string, array, array, NULL)
#3 /w/includes/context/RequestContext.php(406): Hooks::run(string, array)
#4 /data/www/gakuencity/w/includes/context/ContextSource.php(154): RequestContext->getSkin()
#5 /w/includes/OutputPage.php(2402): ContextSource->getSkin()
#6 /w/includes/MediaWiki.php(858): OutputPage->output(boolean)
#7 /w/includes/MediaWiki.php(870): MediaWiki->{closure}()
#8 /w/includes/MediaWiki.php(523): MediaWiki->main()
#9 /w/index.php(43): MediaWiki->run()
#10 {main}
星耀晨曦 (talk) 13:01, 25 December 2017 (UTC)
phab:T172640 星耀晨曦 (talk) 13:12, 25 December 2017 (UTC)
The discussion above is closed. Please do not modify it. No further edits should be made to this discussion.

ImageMagick Convert No Longer Working

The following discussion is closed. Please do not modify it. Subsequent comments should be made on the appropriate discussion page. No further edits should be made to this discussion.


Apparently, quite a few people may have an issue executing ImageMagick convert (6.8.9-9) on OVH environments (PHP 7.0 and 7.1).

After some debugging, I found that I had to add single quotes around the -set comment [']File Source: http ....['] without which it would not work.

  • MediaWiki\Shell\Command::execute: /bin/bash '/home/caplancizg/wikien/includes/shell/limit.sh' 'OMP_NUM_THREADS='\''1'\'' '\''/usr/bin/convert'\'' '\''-quality'\'' '\''80'\'' '\''-background'\'' '\''white'\'' '\''-define'\'' '\''jpeg:size=160x240'\'' '\''/home/caplancizg/wikien/images/c/c5/MANN1730.jpg'\'' '\''-thumbnail'\'' '\''160x240!'\'' '\''-set'\'' '\''comment'\'' '\''File source: https://wiki.lesgrandsvoisins.com/index.php?title=File:MANN1730.jpg'\'' '\''+set'\'' '\''Thumb::URI'\'' '\''-depth'\'' '\''8'\'' '\''-sharpen'\'' '\''0x0.4'\'' '\''-rotate'\'' '\''-0'\'' '\''-sampling-factor'\'' '\''2x2,1x1,1x1'\'' '\''/tmp/transform_83e6582b865d.jpg'\''' 'MW_INCLUDE_STDERR=1;MW_CPU_LIMIT=180; MW_CGROUP='\'''\''; MW_MEM_LIMIT=600000; MW_FILE_SIZE_LIMIT=102400; MW_WALL_CLOCK_LIMIT=180; MW_USE_LOG_PIPE=yes'
  • [thumbnail] thumbnail failed on webd304.cluster023.gra.hosting.ovh.net: error -1 "" from "'/usr/bin/convert' '-quality' '80' '-background' 'white' '-define' 'jpeg:size=160x240' '/home/caplancizg/wikien/images/c/c5/MANN1730.jpg' '-thumbnail' '160x240!' '-set' 'comment' 'File source: https://wiki.lesgrandsvoisins.com/index.php?title=File:MANN1730.jpg' '+set' 'Thumb::URI' '-depth' '8' '-sharpen' '0x0.4' '-rotate' '-0' '-sampling-factor' '2x2,1x1,1x1' '/tmp/transform_83e6582b865d.jpg'"
  • [thumbnail] Removing bad 12341-byte thumbnail "/tmp/transform_83e6582b865d.jpg". unlink() succeeded

The line below doesn't work on the command line:

/usr/bin/convert -quality 80 -background white -define jpeg:size=160x240 /home/caplancizg/wikien/images/0/0c/MANN1674.jpg -thumbnail 160x240! -set comment File source: https://wiki.lesgrandsvoisins.com/index.php?title=File:MANN1674.jpg +set Thumb::URI -depth 8 -sharpen 0x0.4 -rotate -0 -sampling-factor 2x2,1x1,1x1 /tmp/transform_48bdbab1cf1b.jpg

This line below does work on the command line:

/usr/bin/convert -quality 80 -background white -define jpeg:size=160x240 /home/caplancizg/wikien/images/0/0c/MANN1674.jpg -thumbnail 160x240! -set comment 'File source: https://wiki.lesgrandsvoisins.com/index.php?title=File:MANN1674.jpg' +set Thumb::URI -depth 8 -sharpen 0x0.4 -rotate -0 -sampling-factor 2x2,1x1,1x1 /tmp/transform_48bdbab1cf1b.jpg

Should there be a patch ? Christopher (talk) 17:10, 22 December 2017 (UTC)

Feel free to file a report in Phabricator. Looks like the file to update is "includes/media/TransformationalImageHandler.php" in MediaWiki core? AKlapper (WMF) (talk) 19:53, 22 December 2017 (UTC)
I don't see why you're using the first command. Note that the command being executed is the first line of MediaWiki\Shell\Command::execute, and it will be executed by the user and group that runs php, which may have different permissions than your user. Ciencia Al Poder (talk) 10:34, 25 December 2017 (UTC)
The discussion above is closed. Please do not modify it. No further edits should be made to this discussion.

when i trying to log in

The following discussion is closed. Please do not modify it. Subsequent comments should be made on the appropriate discussion page. No further edits should be made to this discussion.


No active login attempt is in progress for your session. 105.186.198.173 (talk) 21:08, 22 December 2017 (UTC)

when am trying to log in its answer me....No active login attempt is in progress for your session.why 105.186.198.173 (talk) 21:12, 22 December 2017 (UTC)
Which site is this on? This is a known upstream CentralAuth error: https://phabricator.wikimedia.org/T141482 so please report it on the task. Reception123 (talk) 08:20, 23 December 2017 (UTC)
The discussion above is closed. Please do not modify it. No further edits should be made to this discussion.

Rename a file automatically fixing all pages that refer the file. No redirects

The following discussion is closed. Please do not modify it. Subsequent comments should be made on the appropriate discussion page. No further edits should be made to this discussion.


Hello,

I have a lot of arbitrary-named files on my wiki (for examples, image files from Facebook, Instagram, Pinterest, Tumblr, etc). I consider renaming such files in order to give them more recognizable and human-readable names. However, I would like to avoid redirects, therefore I have to fix the references in all pages that refer those files. Is it possible to rename a file along with all references to the file?

Thanks! 92.253.250.171 (talk) 11:02, 23 December 2017 (UTC)

There's a script to fix automatically double redirects, but there's no automatic way to fix references to images after the rename. Note that some of them may not be direct links, but inserted by templates based on parameters of that template. Ciencia Al Poder (talk) 10:28, 25 December 2017 (UTC)
The discussion above is closed. Please do not modify it. No further edits should be made to this discussion.

returnto parameter for editing

The following discussion is closed. Please do not modify it. Subsequent comments should be made on the appropriate discussion page. No further edits should be made to this discussion.


I need the parameter which returns other page when I submit the edit. But I couldn't found this function in Manual:Parameters to index.php. However, I found "returnto" parameter returns back to before article in Special:UserLogin and Special:UserLogout. I want to use this parameter in editing. Anyone can make this function for editing? Gustmd7410 (talk) 14:22, 23 December 2017 (UTC)

The discussion above is closed. Please do not modify it. No further edits should be made to this discussion.

Usermerge extension not displaying correctly in special pages and

The following discussion is closed. Please do not modify it. Subsequent comments should be made on the appropriate discussion page. No further edits should be made to this discussion.


Have just installed usermerge extension.

In special pages is listed with curly brackets in lower case ⧼usermerge⧽

and its special page displays incorrectly e.g. ⧼usermerge-olduser⧽ ⧼usermerge-olduser⧽

In fact other extensions I now add do the same thing e.g. ⧼newestpages⧽ Leeshore1966 (talk) 15:50, 23 December 2017 (UTC)

Hi there!
Sounds like something might be wrong with the translations of these extension...
Which version of MediaWiki are you using? An which version of e.g. the UserMerge extension are you using? Make sure that both fit together! 2001:16B8:1080:4E00:C1C4:B74C:4223:2698 (talk) 16:42, 23 December 2017 (UTC)
Using1.30.0 and the most up to date extension through the extension distributor ie 1.10.1 Leeshore1966 (talk) 17:22, 23 December 2017 (UTC)
Actually the exteison version has not been changed. So version 1.10.1 is the latest version for MediaWiki 1.30, but also for master. There are however differences in both versions, a number of commits after September 1st 2017 is present in the master branch, while there is none in the version for 1.30... Make sure that you used the version for 1.30 and not the one for master.
After that, I would run rebuildmessages.php from the shell to manually clear and rebuild the message cache. This should not be necessary, but maybe it helps in your case... 2001:16B8:1080:4E00:85A0:B72F:EC1:E270 (talk) 18:49, 23 December 2017 (UTC)
But it is also occurring with the extension newestpages Leeshore1966 (talk) 19:46, 23 December 2017 (UTC)
I understand.
What is the result of follwing my above instructions? 2001:16B8:1080:4E00:9DA3:8A77:6332:5969 (talk) 03:49, 24 December 2017 (UTC)
Finally managed to get ssh access to my server......
Keep getting error:
PHP Notice:  unserialize(): Error at offset 159 of 22180 bytes in ........includes/cache/localisation/LCStoreDB.php on line 55
PHP Warning:  Invalid argument supplied for foreach() in ......includes/cache/localisation/LocalisationCache.php on line 421
Could this be relevant? Leeshore1966 (talk) 17:18, 27 December 2017 (UTC)
P.S. Have run rebuild messages.php Leeshore1966 (talk) 17:19, 27 December 2017 (UTC)
Sorted by using maintenance script:
'php rebuildLocalisationCache.php --force'
--force is important Leeshore1966 (talk) 13:12, 29 December 2017 (UTC)
The discussion above is closed. Please do not modify it. No further edits should be made to this discussion.

How to hide "Parser profiling data:"

The following discussion is closed. Please do not modify it. Subsequent comments should be made on the appropriate discussion page. No further edits should be made to this discussion.


Some versions ago MediaWiki started printing this "Parser profiling data:" box at the bottom of the edit box every time the preview button is clicked.

The biggest problem with that is that it starts expanded, then gets filled in, and then collapses. That takes a second or two, exactly enough to confuse my scrolling and looking at results.

I have my editor set to preview under the edit box, which I guess makes this particularly bad for me. But I can't belive that I'm the only one suffering because of it.

Is there no way to turn that feature off? I've been googling this for a year and haven't found a way.

Thanks in advance. Mig21 (talk) 02:09, 24 December 2017 (UTC)

You can expand it so it stays expanded, or if scrolling past it is too much work, then just hide it in your common.css.
.limitreport {
	display: none;
}
101.160.10.248 (talk) 03:55, 24 December 2017 (UTC)
Thanks, but where do I find common.css? I can't find either a file with that name or anything that contains "limitreport". 2607:FEA8:879F:FBDA:E8B7:130D:4C06:3377 (talk) 22:16, 26 December 2017 (UTC)
Edit the wiki page MediaWiki:Common.css in your wiki. If you want to change only the CSS for the Vector skin, edit the wiki page MediaWiki:Vector.css.
More information on the available wiki pages is on Manual:Interface/Stylesheets! 2001:16B8:1007:2600:E83A:8C65:867E:7534 (talk) 00:27, 27 December 2017 (UTC)
The discussion above is closed. Please do not modify it. No further edits should be made to this discussion.

Comma Instead of Period in SRCSET Breaks IMG Tag

The following discussion is closed. Please do not modify it. Subsequent comments should be made on the appropriate discussion page. No further edits should be made to this discussion.


Hi,

The main image link on the file page in my setup has a "1,5x," in the srcset attribute of the img tag. It should be "1.5x," instead. Because of this, none of my files are showing correctly in the "File:..." pages nor as thumbs in the Wiki pages. The thumb does work correctly in the "File:" page as do links to other image resolutions.

The following test page describes the problem:

http://en.wiki.mann.fr/testimg.html

In the example, the image on

http://en.wiki.mann.fr/index.php?title=File:MANN2098.jpg

has the following dysfunctional img tag

<img alt="File:MANN2098.jpg" src="/images/thumb/3/37/MANN2098.jpg/400px-MANN2098.jpg" width="400" height="600" srcset="/images/thumb/3/37/MANN2098.jpg/600px-MANN2098.jpg 1,5x, /images/thumb/3/37/MANN2098.jpg/800px-MANN2098.jpg 2x">

Whereas if I change "1,5x," to "1.5x,", it works perfectly well, as is to be expected.

<img alt="File:MANN2098.jpg" src="/images/thumb/3/37/MANN2098.jpg/400px-MANN2098.jpg" width="400" height="600" srcset="/images/thumb/3/37/MANN2098.jpg/600px-MANN2098.jpg 1.5x, /images/thumb/3/37/MANN2098.jpg/800px-MANN2098.jpg 2x">

It seems like a bug to me.

In France, where I am physically, but not the language neither of the Wiki nor of the server, the decimal point is a comma. I do not think that pertains to my current problem.

Many thanks,

Chris Christopher (talk) 07:48, 24 December 2017 (UTC)

I replaced
$candidates[$density] = $url . ' ' . $density . 'x';
with
$candidates[$density] = $url . ' ' .  str_replace(",",".",(string)$density) . 'x';
in
includes/Html.php
It works, but it is a hack. Christopher (talk) 08:36, 24 December 2017 (UTC)
It's a bug, clearly. You may want to add this to LocalSettings.php to force an invariant locale for numeric conversions:
setlocale(LC_NUMERIC, "C") Ciencia Al Poder (talk) 12:08, 24 December 2017 (UTC)
I've filed a bug for that: T183659 Ciencia Al Poder (talk) 12:28, 24 December 2017 (UTC)
I guess you have a non-C locale for your php setup...
I've created phab:T183660TheDJ (Not WMF) (talkcontribs) 13:26, 24 December 2017 (UTC)
The discussion above is closed. Please do not modify it. No further edits should be made to this discussion.

I keep having an unknown parameters issue

i try putting in parameters burt it brings up an error message even after i double check the templates Biz4ayo (talk) 22:53, 24 December 2017 (UTC)

Please give us background about your problem, like complete examples of the code being used. A link to the wiki where this happens is welcome. Ciencia Al Poder (talk) 10:19, 25 December 2017 (UTC)
I keep trying to put in | associated_acts
it shows as an unknown parameter Biz4ayo (talk) 00:30, 26 December 2017 (UTC)
You need to mention which template you are using, and provide a link to its code. AhmadF.Cheema (talk) 02:37, 26 December 2017 (UTC)
im not sure , the infobox Biz4ayo (talk) 03:00, 26 December 2017 (UTC)
How are you not sure?
You can at the very least provide the code for it. AhmadF.Cheema (talk) 03:44, 26 December 2017 (UTC)

Skinning: How do I overwrite @colorProgressive, @colorProgressiveHighlight and @colorProgressiveActive?

Hi guys!

I am creating a new skin based on Vector and as part of that, I would like to set my own colors for @colorProgressive, @colorProgressiveHighlight and @colorProgressiveActive so that these colors are then used at different places automatically.

However, when I add these variables to the central variables.less file of my skin, they are not taken into account. They are just not used. What do I have to do differently in order for MediaWiki to use my definition?

Cheers!

Jörg Jörgi123 (talk) 09:29, 25 December 2017 (UTC)

In the meantime I found the definition of @colorProgressive, @colorProgressiveHighlight and @colorProgressiveActive in resources/src/mediawiki.ui/variables.less.
How can I overwrite these variables in my own skin? Jörgi123 (talk) 08:59, 26 December 2017 (UTC)

[UploadWizard] Access the licensing tutorial without enable $wgUseInstantCommons

Can we access the licensing tutorial without enabling $wgUseInstantCommons?

If not, can we develop other ways to access it? 星耀晨曦 (talk) 14:54, 25 December 2017 (UTC)

Can't import pages

The following discussion is closed. Please do not modify it. Subsequent comments should be made on the appropriate discussion page. No further edits should be made to this discussion.


I have exported a template to import it into my wiki but when trying to do appears: La importación ha fallado (Importation has failed): A database query error has occurred. Did you forget to run your application's database schema updater after upgrading? Query: INSERT IGNORE INTO `mw8z_page`  190.140.177.39 (talk) 03:19, 26 December 2017 (UTC)

Part 2: Sometimes it just appears: 504 Gateway Time-out nginx 190.140.177.39 (talk) 03:22, 26 December 2017 (UTC)
Have you already run Update.php? AhmadF.Cheema (talk) 03:45, 26 December 2017 (UTC)
Problem solved, thanks. 190.140.177.39 (talk) 02:05, 27 December 2017 (UTC)
The discussion above is closed. Please do not modify it. No further edits should be made to this discussion.

Installing Visual Editor or any wysiwyg on shared hosting

The following discussion is closed. Please do not modify it. Subsequent comments should be made on the appropriate discussion page. No further edits should be made to this discussion.


I need to install some sort of visual editor or other text editor so people using mediawiki don't have to know all of the syntax to contribute, but the support of the hosting company said it's "shared hosting" which does not allow it because of something about installing on a server that I can't do.

Is there a wysiwyg that I can get for mediawiki, or barring that, another program that could substitute for mediawiki? 1stplebian (talk) 16:21, 26 December 2017 (UTC)

See VisualEditor/Installation on a shared host. However, this method makes use of Heroku application hosting service, whose free account has some limitations. such as limited hours of use within a month and application sleeping, which in the present context means that if no one on your site uses VisualEditor for several hours then the next user who uses it will receive errors and have to reload a few times to get VisualEditor to finally work.
OR, you can try setting up Extension:VisualEditor (BlueSpice).
OR, you can go for a Virtual Private Server hosting plan. Some of them are almost as low cost as shared hosting plans, but they don't come with cPanel, pre-configured backups and other helpful scripts etc. pre-installed. AhmadF.Cheema (talk) 18:02, 26 December 2017 (UTC)
The discussion above is closed. Please do not modify it. No further edits should be made to this discussion.

PHP page error when submitting an edit page

error code: Fatal error: Call to a member function getCode() on null in C:\wamp64\www\mediawiki\includes\user\User.php on line 1578

Call Stack
# Time Memory Function Location
1 1.1250 11678360 MWExceptionHandler::handleException( ) ...\MWExceptionHandler.php:0
2 1.1277 11725296 MWExceptionHandler::report( ) ...\MWExceptionHandler.php:130
3 1.1291 11820848 MWExceptionRenderer::output( ) ...\MWExceptionHandler.php:75
4 1.1299 11838992 MWExceptionRenderer::reportOutageHTML( ) ...\MWExceptionRenderer.php:52
5 2.1749 14343784 MWExceptionRenderer::msg( ) ...\MWExceptionRenderer.php:359
6 2.1752 14344968 Message->text( ) ...\MWExceptionRenderer.php:254
7 2.1752 14345048 Message->toString( ) ...\Message.php:934
8 2.1752 14345048 Message->fetchMessage( ) ...\Message.php:842
9 2.1752 14345048 Message->getLanguage( ) ...\Message.php:1275
10 2.1752 14345048 RequestContext->getLanguage( ) ...\Message.php:380
11 2.1753 14345352 User->getOption( ) ...\RequestContext.php:364
12 2.1753 14345448 User->loadOptions( ) ...\User.php:2859
13 2.1753 14345616 User::getDefaultOptions( ) ...\User.php:5243

219.133.177.100 (talk) 17:33, 26 December 2017 (UTC)

Exact MediaWiki version? What happened before? New fresh installation? Upgrade? Steps to reproduce? Malyacko (talk) 09:40, 27 December 2017 (UTC)
Hello, my mediawiki version is 1.29.2, I migrated my wiki to another computer, and then edit the entry on the new computer to insert the page wiki, this bug will appear, an error occurs 219.133.177.100 (talk) 14:15, 27 December 2017 (UTC)

importing pictures after server moving fails

The following discussion is closed. Please do not modify it. Subsequent comments should be made on the appropriate discussion page. No further edits should be made to this discussion.


Hi,

I reinstalled a server. I made a sql-backup and a htdocs copy from the windows machine and moved the data to linux. Everything worked except the importing of the pictures. I tried following:

sudo php /var/lib/mediawiki/maintenance/importImages.php ./

Import Images

FrauenI-2016.JPG exists, skipping

Found: 1

Skipped: 1

My mediawiki-page says that the file is missing, but the script says it skips it.

So could it be a sql-reference problem? How can I fix it? Bevor using the skript i manually copied the "images"-folder because I thought it could work. And now I can't upload the files manually again because mediawiki recognize it as copy. 84.39.79.20 (talk) 18:15, 26 December 2017 (UTC)

If you take a backup of the database and then restore it, you don't need to run importImages.php, that's used to import NEW images!
You shoud just put the images on the same directory structure MediaWiki expect them to be. By default on the "images" folder under the MediaWiki installation (it can be configured on Manual:$wgUploadDirectory. You should also set correct owner and permissions to those images. Ciencia Al Poder (talk) 10:18, 27 December 2017 (UTC)
The discussion above is closed. Please do not modify it. No further edits should be made to this discussion.

Migrate MindTouch Core 10.1.4 to MediaWiki

Hello,

Is there a guide available with instructions to migrate wiki MindTouch Core 10.1.4 to MediaWiki?

Thanks,

Alex A1exP (talk) 12:36, 27 December 2017 (UTC)

Did you ever get an answer? 158.111.236.61 (talk) 18:17, 12 June 2019 (UTC)
Nope A1exP (talk) 20:37, 8 December 2019 (UTC)

Extension: DeleteHistory (Error)

The following discussion is closed. Please do not modify it. Subsequent comments should be made on the appropriate discussion page. No further edits should be made to this discussion.


I installed this extension and am having trouble solving this problem.

[c6293fe5d8b78cf8348b041e] /mediawiki/index.php?title=Especial:DeleteHistory Error from line 64 of C:\inetpub\wwwroot\mediawiki\extensions\DeleteHistory\DeleteHistory_body.php: Call to undefined function wfMsg()

Backtrace:

#0 C:\inetpub\wwwroot\mediawiki\includes\specialpage\SpecialPage.php(522): DeleteHistory->execute(NULL)

#1 C:\inetpub\wwwroot\mediawiki\includes\specialpage\SpecialPageFactory.php(578): SpecialPage->run(NULL)

#2 C:\ inetpub\wwwroot\mediawiki\includes\MediaWiki.php(287): SpecialPageFactory::executePath(Title, RequestContext)

#3 C:\inetpub\wwwroot\mediawiki\includes\MediaWiki.php(862): MediaWiki->performRequest()

#4 C:\inetpub\wwwroot\ mediawiki\includes\MediaWiki.php(523): MediaWiki->main()

#5 C:\inetpub\wwwroot\mediawiki\index.php(43): MediaWiki->run()

#6 {main} WikiUser22222 (talk) 03:44, 28 December 2017 (UTC)

Looks like that extension is no longer compatible with the current supported MediaWiki versions, sinde wfMsg() function was removed in MediaWiki 1.27.
You should find another extension. I'll mark it as unsupported. Ciencia Al Poder (talk) 10:08, 28 December 2017 (UTC)
The discussion above is closed. Please do not modify it. No further edits should be made to this discussion.

Citation editing block

Hello, I'm working on translation of several articles, but for some reason there is a block on inserting citations. What am I doing wrong? Rdr. Michael (talk) 19:58, 28 December 2017 (UTC)

what does "there is a block on inserting citations" mean? Can you elaborate? Ciencia Al Poder (talk) 10:11, 29 December 2017 (UTC)

Moving pages does not work

Dear All,

It seems that a certain user of our wiki can move pages in his user space but not in the main space. As to my information he is in group users and users have the move permission in our wiki.

What can be the reason?

Thank you in advance for your answer.

Have a nice new year!

yours, Ciciban (talk) 09:05, 29 December 2017 (UTC)

This is difficult to say without providing the exact error message the user gets that prevents him/her to rename the page (which is usually self-explanatory) Ciencia Al Poder (talk) 10:10, 29 December 2017 (UTC)
He simply doesn't get the option. The button is missing in main space (without explanation :).
Yours, Ciciban (talk) 10:21, 29 December 2017 (UTC)
Maybe the page he's trying to move is protected? Does the wiki have an extension providing more fine-grained access control like Extension:Lockdown or similar that could prevent that? Is this happening only to that particular user or does it affect sysop as well? What happens if the user access Special:MovePage/Main_page (try changing Main_page with a real page) on your wiki? Ciencia Al Poder (talk) 10:28, 29 December 2017 (UTC)
Thank you for your answer.
According to
https://wiki.railml.org/index.php?title=Special:Version
Lockdown is not installed.
Yours, Ciciban (talk) 12:07, 29 December 2017 (UTC)
Ok, thanks for the link. I don't see anything strange in the setup.
Well, tell the user to use the Special:MovePage link and see if that lets the user complete the page move or gives an error. If it works, it may be that there may be a problem with the site's JavaScript, since the move link is usually behind a drop-down menu that may fail to work if there's a script error somewhere. Ciencia Al Poder (talk) 17:20, 29 December 2017 (UTC)
Thanks!
I asked him to do so. Let's see what he is going to feed back.
Yours, Ciciban (talk) 18:51, 29 December 2017 (UTC)
As mentioned in Project:Support desk/Flow/2018/01#h-Topic:U4osfk9p3zzhwi3x-2018-01-24T14:40:00.000Z, The user replied to me that on Movepages for the main space (where he misses the move button) he receives a notice that he is not permitted to use that page. :(
What is the next thing to check?
Thank you in advance.
Ciciban (talk) 10:31, 26 January 2018 (UTC)
Oh, now that I notice, you have Extension:FlaggedRevs. In the notes section, it says:

Unable to become contributor

The following discussion is closed. Please do not modify it. Subsequent comments should be made on the appropriate discussion page. No further edits should be made to this discussion.


getting an error when i request to become a contributor

authentication failure [SMTP: Invalid response code received from server (code: 535, response: 5.7.3 Authentication unsuccessful [MWHPR13CA0033.namprd13.prod.outlook.com]) MakerMarc (talk) 00:37, 30 December 2017 (UTC)

Assuming your problem is on a wiki not run by Wikimedia Foundation, you should contact a staff of the wiki where this happens. The problem seems to be with the authentication settings configured to send emails on the wiki, something only a server admin can change. Ciencia Al Poder (talk) 11:19, 30 December 2017 (UTC)
The discussion above is closed. Please do not modify it. No further edits should be made to this discussion.

Wiki redirects to ad sites

The following discussion is closed. Please do not modify it. Subsequent comments should be made on the appropriate discussion page. No further edits should be made to this discussion.


Hello, I have 2 wikis, one using 1.28 and the other using 1.30, both however redirects myself and my members to ad sites every now and then. It's strange because it never happens on any other page on my domain, only my mediawiki.

I enable the <html> tag, but I am the only person with edit permission so no one else can add anything but myself, however, I'm not sure how it would work. It's not a spyware on my computer either because I am experiencing it even on my virtual machine. Does anyone know what might be amiss? Miatoromatic (talk) 10:51, 30 December 2017 (UTC)

If this happens very frequently, you can open the developer console of your browser (hit F12) to capture all traffic (check the "persist logs" so it doesn't clean up when you navigate away to other pages), and maybe you'll be able to see what causes the redirect, if it's a server thing (you get an URL and it sends you a 301 or 302 response code redirecting you to the ad site), or a JavaScript thing (this may get sneaky to check, however).
Assuming you're on a paid server that doesn't inject ads automatically to your site unlike free hostings do, you should probably check that your server hasn't been hacked and some PHP files could have been edited to inject that redirect. An option may be to unpack the same MediaWiki version on another folder and run a diff tool to see what files differ (you may need to do that also for extensions). Ciencia Al Poder (talk) 11:15, 30 December 2017 (UTC)
The discussion above is closed. Please do not modify it. No further edits should be made to this discussion.

у меня взломали ак, пропал прем танк, что мне делать? помогите

у меня взломали ак, пропал прем танк, что мне делать? помогите  188.163.105.229 (talk) 12:44, 30 December 2017 (UTC)

MediaWiki account

I want to delete MediaWiki account. How can I do it? Ssilvca (talk) 14:14, 30 December 2017 (UTC)

Which site do you mean? Are you talking about another site, or mediawiki.org? Reception123 (talk) 15:25, 30 December 2017 (UTC)

Fix this error

The following discussion is closed. Please do not modify it. Subsequent comments should be made on the appropriate discussion page. No further edits should be made to this discussion.


A database error has occurred. Did you forget to run maintenance/update.php after upgrading? See: https://www.mediawiki.org/wiki/Manual:Upgrading#Run_the_update_script

Query: INSERT INTO `cu_changes` (cuc_id,cuc_namespace,cuc_title,cuc_minor,cuc_user,cuc_actiontext,cuc_comment,cuc_this_oldid,cuc_last_oldid,cuc_type,cuc_timestamp,cuc_ip,cuc_ip_hex,cuc_xff,cuc_xff_hex,cuc_agent,cuc_page_id) VALUES (NULL,'6','СТС-Волга_(г._Самара)_(2017-н.в.,_чёрная_надпись).png','0','25372930','Ярослав74 страница «Файл:СТС-Волга (г. Самара) (2017-н.в., чёрная надпись).png» защищена ‎[edit=sysop] (бессрочно) ‎[move=sysop] (бессрочно) ‎[upload=sysop] (бессрочно)',,'0','0','3','20171231052800','31.162.65.208','1FA241D0',,NULL,'Mozilla/5.0 (Windows NT 6.1) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/63.0.3239.108 Safari/537.36','80810')

Function: CheckUserHooks::updateCheckUserData

Error: 1406 Data too long for column 'cuc_actiontext' at row 1 (geo-db-c-master.query.consul) Fix this error pleaseeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee 31.162.65.208 (talk) 05:28, 31 December 2017 (UTC)

The column should be defined as
cuc_actiontext varchar(255) binary NOT NULL default ,
https://github.com/wikimedia/mediawiki-extensions-CheckUser/blame/master/cu_changes.sql#L16
With that definition the error should not be happening... 2001:16B8:1003:3F00:590C:3121:A24B:8D46 (talk) 09:19, 31 December 2017 (UTC)
The discussion above is closed. Please do not modify it. No further edits should be made to this discussion.

DBQueryError when use search function

The following discussion is closed. Please do not modify it. Subsequent comments should be made on the appropriate discussion page. No further edits should be made to this discussion.


When I try search function get "A database query error has occurred. This may indicate a bug in the software."

Debug shows:

[0eb2cd28957409db73ad1126] /w/index.php?search=help&title=Special%3ASearch&go=Go&fulltext=1 Wikimedia\Rdbms\DBQueryError from line 1149 of ....../public_html/w/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 page_id,page_namespace,page_title FROM `page`,`searchindex` WHERE (page_id=si_page) AND ( MATCH(si_title) AGAINST('+help ' IN BOOLEAN MODE) ) AND page_namespace = '0' LIMIT 20  

Function: SearchMySQL::searchInternal

Error: 1191 Can't find FULLTEXT index matching the column list (shareddb-g.hosting.stackcp.net)

Backtrace:

#0 ..../public_html/w/includes/libs/rdbms/database/Database.php(979): Wikimedia\Rdbms\Database->reportQueryError(string, integer, string, string, boolean)

#1 ..../public_html/w/includes/libs/rdbms/database/Database.php(1343): Wikimedia\Rdbms\Database->query(string, string)

#2 .../public_html/w/includes/search/SearchMySQL.php(191): Wikimedia\Rdbms\Database->select(array, array, array, string, array, array)

#3 .../public_html/w/includes/search/SearchMySQL.php(178): SearchMySQL->searchInternal(string, boolean)

#4 ..../public_html/w/includes/specials/SpecialSearch.php(318): SearchMySQL->searchTitle(string)

#5 ..../public_html/w/includes/specials/SpecialSearch.php(185): SpecialSearch->showResults(string)

#6 ..../public_html/w/includes/specialpage/SpecialPage.php(522): SpecialSearch->execute(NULL)

#7 ..../public_html/w/includes/specialpage/SpecialPageFactory.php(578): SpecialPage->run(NULL)

#8 ..../public_html/w/includes/MediaWiki.php(287): SpecialPageFactory::executePath(Title, RequestContext)

#9 ..../public_html/w/includes/MediaWiki.php(851): MediaWiki->performRequest()

#10 ..../public_html/w/includes/MediaWiki.php(523): MediaWiki->main()

#11 ...../public_html/w/index.php(43): MediaWiki->run()

#12 {main}

I have run update.php

Any ideas??? Leeshore1966 (talk) 07:50, 31 December 2017 (UTC)

Hi!
The relevant lines are
> SELECT page_id,page_namespace,page_title FROM `page`,`searchindex` WHERE (page_id=si_page) AND ( MATCH(si_title) AGAINST('+help ' IN BOOLEAN MODE) ) AND page_namespace = '0' LIMIT 20
> Error: 1191 Can't find FULLTEXT index matching the column list
In your database, in table searchindex, do you have a FULLTEXT index there? An easy way to check this would be to run the following SQL query:
SHOW CREATE TABLE searchindex;
and to post the output here again! 2001:16B8:1003:3F00:590C:3121:A24B:8D46 (talk) 09:13, 31 December 2017 (UTC)
Think I did it correct as I am new to SQL but the SQL query showed:
shareddb-g.hosting.stackcp.net/web1-a-med/searchindex/ https://db.ltcp.com/tbl_sql.php?db=web1-a-med&table=searchindex
    
 Current selection does not contain a unique column. Grid edit, checkbox, Edit, Copy and Delete features are not available. 
Your SQL query has been executed successfully.
SHOW CREATE TABLE searchindex
searchindex CREATE TABLE `searchindex` (
  `si_page` int(10) u... Leeshore1966 (talk) 09:45, 31 December 2017 (UTC)
...and what you have not posted would have been the interesting part. ;-)
What I wanted to see is the part starting with CREATE TABLE `searchindex`... and ending with the end of the output.
The complete table definition should look like this here (without the comments):
https://github.com/wikimedia/mediawiki/blob/REL1_30/maintenance/tables.sql#L1361
(These SQL queries are unchanged sine MediaWiki 1.22 at least.) My guess is that you are missing one or both of the FULLTEXT indeces. If your table is missing parts of these queries, you should add them! 2001:16B8:1003:3F00:590C:3121:A24B:8D46 (talk) 10:31, 31 December 2017 (UTC)
Sorry you mean this:
shareddb-g.hosting.stackcp.net/web1-a-med/searchindex/ https://db.mydefaultcp.com/tbl_sql.php?db=web1-a-med&table=searchindex
    
 Current selection does not contain a unique column. Grid edit, checkbox, Edit, Copy and Delete features are not available. 
Your SQL query has been executed successfully.
SHOW CREATE TABLE searchindex
searchindex CREATE TABLE `searchindex` (
  `si_page` int(10) unsigned NOT NULL,
  `si_title` varchar(255) NOT NULL DEFAULT '',
  `si_text` mediumtext NOT NULL,
  UNIQUE KEY `si_page` (`si_page`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1
How do you add the missing parts to the queries? Leeshore1966 (talk) 10:44, 31 December 2017 (UTC)
Exactly.
There are two things to do:
First, the searchindex table cannot use the InnoDB table engine. Instead, it has to use the MyISAM table engine. You can fix this with this query:
ALTER TABLE `searchindex` ENGINE=MyISAM;
After that you can fix the indeces:
First remove the existing si_page index and then add the missing indeces including the two FULLTEXT indeces:
ALTER TABLE `searchindex` DROP INDEX `si_page`;
CREATE UNIQUE INDEX si_page ON searchindex (si_page);
CREATE FULLTEXT INDEX si_title ON searchindex (si_title);
CREATE FULLTEXT INDEX si_text ON searchindex (si_text); 2001:16B8:1003:3F00:4504:F98C:580:2C39 (talk) 10:56, 31 December 2017 (UTC)
Worked a treat!
Thank you for your help
Have a Happy New Year Leeshore1966 (talk) 11:14, 31 December 2017 (UTC)
The discussion above is closed. Please do not modify it. No further edits should be made to this discussion.

I don't receive the confirmation email

Hi, I'm an administrator at http://libraryofaeternus.referata.com/wiki/Main_Page , and I changed my email recently, however, the confirmation email never arrives at my inbox.

I already checked the inbox, spam folders, trash and anything else on my email and it wasn't there.

I tried replicating the issue with a new account as well, and it seems the email for registering the account is sent normally, but no email comes when I try changing the email.

I don't know what I am doing wrong, please help! >.<

Thanks in advance! AliceShiki (talk) 09:50, 31 December 2017 (UTC)

Change from "LocalSettings.php" setting
$wgEnableUserEmail
$wgPasswordSender
Then you will receive a confirmation message رامي 4554 (talk) 15:54, 30 December 2020 (UTC)

Upload OneNote pages to Wiki

We have about 50-60 pages (10 notebooks) wrote in MS-OneNote file. Is there any automatic method to convert and upload them to Wiki pages? Baruchgu (talk) 11:58, 31 December 2017 (UTC)

Try out my new project at https://github.com/imoir/OneNoteWiki that does just that Imoir (talk) 20:54, 16 April 2018 (UTC)
Hi,
i have an *.mht File.
How can i import it?
Best Regards

Bowa79 (talk) 08:50, 15 October 2019 (UTC)

The following discussion is closed. Please do not modify it. Subsequent comments should be made on the appropriate discussion page. No further edits should be made to this discussion.


Hello,

I have runnung on my linux Mediawiki v1.24.1.

Email sending works fine diectly from php. However i have trouble sending from Mediawiki. I get the errormessage [SMTP: Invalid response code received from server (code: -1, response: )]

I kept to Manual. Can someone help with a workaround?

Thank You! Toto987 (talk) 19:08, 31 December 2017 (UTC)

Unrelated: You are running an ancient insecure MediaWiki version. Please upgrade for your own safety: Manual:Upgrading Malyacko (talk) 16:16, 1 January 2018 (UTC)
See also Manual:$wgSMTP Ciencia Al Poder (talk) 10:20, 3 January 2018 (UTC)
Thank you for your help. I had to toggle the switch 'allow insecure apps' in my Google account on and off. After that the error is gone. Toto987 (talk) 06:21, 6 January 2018 (UTC)
The discussion above is closed. Please do not modify it. No further edits should be made to this discussion.

Help needed for MW cache settings under multipe servers condition.

Hi,

I am getting very confused about what cache need to be shared among servers, and what cache does not need to be shared.

Based on what I read from mediawiki.org.

$wgSessionCacheType = 'redis-session'; & $wgParserCacheType = 'redis'; must be shared for continuous login experience, and lower database load by cache parsed page text.

Then how about $wgLanguageConverterCacheType ? Is it cache about page contents converted. Or cache of convention list?

$wgMessageCacheType = CACHE_ACCEL; seems to be all the system message which does not change much. So I set it local memory cache. Is this correct?

A strange thing is, when $wgCacheDirectory were set. There is always some cdb file like l10n_cache-en.cdb appeared in the folder. Does these cdb file contain system message cache? Is it preferred to use file cache over memory cache? Or they are different cache?

By setting all other cacheType location to other place, there are still some items been cached to where $wgMainCacheType pointed to. For all the rest cache follow $wgMainCacheType. Is it better to share them or better to use fast local memory cache?

Finally, for $wgMainStash. What exactly does $wgMainStash do? It seems that $wgMainStash make a local copy of shared cache. Is that correct? Deletedaccount4567435 (talk) 23:33, 31 December 2017 (UTC)