Jump to content

Project:Support desk/Flow/2016/10

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


Not getting Tab View of headings on mobile view

Hi, I installed the extension MobileFrontend to make the site responsive. I have noticed in Wikipedia that when you view it in mobile, you have a collapsible heading. I need the same UI. Do you know what i need to do. I assumed that the extension would handle it. 115.97.33.85 (talk) 05:26, 1 October 2016 (UTC)

Js stopped working

Hey. After upgrading to the latest mediawiki version on xampp, on my testwiki, Javascript stopped working. Not only that, but even extensions such as tabber or comments stopped working, as well. Additionally, all tables are expanded by default and so is the table of contents and the button to collapse them is gone. When opening the browser console, these are the errors that I get:

[867d9880b15ce13ae9bbf291] 2016-10-01 08:13:44: Fatal exception of type LogicException

[867d9880b15ce13ae9bbf291] 2016-10-01 08:13:44: Fatal exception of type LogicException

Problematic modules: {"startup":"error"}

I set $wgShowExceptionDetails to true, but it doesn't give me more details.

I must mention I ran into errors when upgrading to the latest version, as well. Here's my previous topic, maybe it helps: Project:Support desk/Flow/2016/09#h-Upgrading_mediawiki_version-2016-09-26T16:40:00.000Z 92.83.196.215 (talk) 08:37, 1 October 2016 (UTC)

Any way to limit search rate in total or for each visitor?

Hi guys,

Our wiki sites using elasticsearh with Extension:CirrusSearch. Recently there is a moron script kiddie keep attacking our MW sites by submit huge amount of search request from considerable amount of proxy servers.

We turned off the search VM now to avoid site down. We'd like to get search function back by limiting total search rate or search query by each visitor. Is there Any way to limit search rate?

Thank you for your reply in advance!!! We really appreciate your help! Deletedaccount4567435 (talk) 09:39, 1 October 2016 (UTC)

Not an easy one.
There is an Apache module, mod_security, which can be used to detect attacks and to prevent further access afterwards.
If this only is one (static) IP address, then it might already be enough to block it in .htaccess. 87.123.11.131 (talk) 14:59, 1 October 2016 (UTC)
The answer is Extension:PoolCounter. However, only Ubuntu have the server pack available to installed from http://apt.wikimedia.org/wikimedia.
You can install manually for Debian system. It is almost impossible to get this thing running in Centos. So my final solution is to use rate_limit mod in nginx. Deletedaccount4567435 (talk) 06:32, 15 October 2016 (UTC)

Error writing to CDB file

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.


Gochiusa (talk) 15:40, 1 October 2016 (UTC)

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

Snippets/Photo Slider

Hi,

I'd like to install thiss snippet on my Wiki, but... I don't know where I should make jCarousel.js and carousel.css files. In main namespace? Mediawiki space? Maybe as files in main MediaWiki folder? This is my first experience with snippets. Adam Rędzikowski (talk) 16:00, 1 October 2016 (UTC)

The "j" in "jC arousel.js" appears to be a typo. Wikivoyage appears to have these two pages here:
https://en.wikivoyage.org/wiki/MediaWiki:Gadget-Carousel.js
https://en.wikivoyage.org/wiki/MediaWiki:Gadget-Carousel.css AhmadF.Cheema (talk) 18:27, 1 October 2016 (UTC)
Thank you for your answer, but template still doesn't look like this in Wikivoyage.
[1] [2] Adam Rędzikowski (talk) 19:29, 1 October 2016 (UTC)
As this is a gadget (the Extension:Gadgets will also have to be activated), have you copied this page:
and the relevant "carousel" line from this one?
Or you can directly export and then import the gadget through:
You probably have already done this, but in case you didn't, you will also have to copy this template too:
You're right, gadget wasn't copied, but now, when I did it and even refreshed for many times, template and template using still looks the same, as on previously attached screens, no any change. Adam Rędzikowski (talk) 21:23, 3 October 2016 (UTC)
  • Is the gadget activated? (Check in Preferences > Gadgets)
  • Maybe it is a cache problem, try opening the page inside another browser.
Unfortunately, I can't think of anything else at the moment. AhmadF.Cheema (talk) 05:07, 4 October 2016 (UTC)
Onviously gadget was activated previously, have no idea what may be still wrong. Adam Rędzikowski (talk) 21:27, 4 October 2016 (UTC)

unable to log in with password reset

I can't log in - None of the user name combos work despite asking for and using a password reset

every password reset sent form Wiki fails.

Does anybody know what's going on? 2602:306:31B7:8F50:8DE0:C73C:232B:A0C8 (talk) 17:18, 1 October 2016 (UTC)

Are you on an Wikimedia Foundation wiki or your own Wiki? Zppix (Volunteer Dev) (talk) 19:04, 1 October 2016 (UTC)

Hook TitleMoveComplete broken in MW 1.27.1??

$newtitle > $newTitle

Manual:Hooks/TitleMoveComplete reads that in MW 1.27.1 you should use $user instead of &$user.

But then $newtitle is broken:

 They all give me Notice: Undefined variable: newtitle

with

public static function onTitleMoveComplete( Title &$title, Title &$newTitle, User $user, $oldid, $newid, $reason, Revision $revision ) {
   $ns = $newtitle->getNamespace();
   ...
}

or

public static function onTitleMoveComplete( $title, $newTitle, $user, $oldid, $newid, $reason, Revision $revision )  {
   $ns = $newtitle->getNamespace();
   ...
}

How can this be fixed? :( Subfader (talk) 14:05, 2 October 2016 (UTC)

How to recreate the "30/500" protection

I was curious, how does someone recreate the "30/500" type of protection that is found on Wikipedia on their own wiki? NeedAGoodUsername (talk) 18:08, 2 October 2016 (UTC)

> 30/500 protection prevents editing by users without 30 days tenure and 500 edits on the English Wikipedia. It is applied to combat any form of disruption where semi-protection has proven to be ineffective.
I do not positively know the technical background, but that might be some kind of autoconfirmation. See Manual:Autoconfirmed users for more details! 87.123.54.185 (talk) 01:55, 3 October 2016 (UTC)
I don't believe it is from Manual:Autoconfirmed users, mainly because that effects the whole wiki. This protection implies that it's only on specific articles where semi-protection hasn't worked against vandalism, NeedAGoodUsername (talk) 11:14, 3 October 2016 (UTC)
One piece of the puzzle: Manual:$wgRestrictionLevels AhmadF.Cheema (talk) 14:18, 3 October 2016 (UTC)

Insert query not working on HOOK Callback?

I am using Hook to save data in database. but data is not save in table and also i am not getting any error. below is the my query.

$wgHooks['LocalUserCreated'][] = 'onLocalUserCreated';

function onLocalUserCreated( $user, $autocreated ) {

$UserId=$user->mId;

$dbw = wfGetDB( DB_MASTER );

$insert_rows[] = [

'up_user' => $UserId,

'up_property' => 'dob',

'up_value' => $_REQUEST['dob'],

];

$dbw->insert( 'user_properties', $insert_rows, '', [ 'IGNORE' ] );

}

Please let me what's the problem in query??? Jainuddin786 (talk) 08:19, 3 October 2016 (UTC)

Maybe MediaWiki has already committed all changes to DB at this point, and your insert doesn't get automatically committed at the end of the request. Try to wrap your insert inside a transaction with a commit. Ciencia Al Poder (talk) 09:52, 3 October 2016 (UTC)

How to get current user login information??

I want to get current login user id in mediawiki??? Jainuddin786 (talk) 11:50, 3 October 2016 (UTC)

Where do you want to get that information? Inside a PHP file? Or in a wiki page? Or somewhere else? 87.123.41.75 (talk) 13:32, 3 October 2016 (UTC)
I want to get on LocalSetting.php file. below is the is code
global $wgUser;
print_r($wgUser);
but nothing output. Jainuddin786 (talk) 14:10, 3 October 2016 (UTC)
$wgUser is an object. If you are just calling it at a random place in LocalSettings.php, then chances are, it has not yet been initialized, with other words: It does not yet exist. You can however use different hooks, which allow you to access this object.
Then, you can use $wgUser by calling the different functions, which are defined in User.php. See Manual:$wgUser for an example and for a link to the source code! 87.123.41.75 (talk) 14:15, 3 October 2016 (UTC)
Thanks i got it ;) 182.74.178.178 (talk) 05:28, 4 October 2016 (UTC)

How to re-position of Captcha (SimpleCaptcha) ?

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 customized my signup page, Like i have added dob, country,state and city. everything is working fine but the problem is all these fields are showing after Captcha.

Please see the below link:

http://demo.php.otssolutions.com/livelihood_new/index.php/Special:CreateAccount

Thanks,

Zain Jainuddin786 (talk) 14:18, 3 October 2016 (UTC)

Should you want to solve this using CSS, you might have to set Manual:$wgAllowSiteCSSOnRestrictedPages to true. (Another option might be to change the order using JavaScript/jQuery. Obviously there is no such variable for the use of JavaScript on those special pages.) 87.123.41.75 (talk) 14:35, 3 October 2016 (UTC)
You can include scripts even on such restricted pages using Snippets/Load an additional JavaScript or stylesheet file on all pages Ciencia Al Poder (talk) 21:03, 3 October 2016 (UTC)
Thanks for your reply, I have solve the problem using hook
$wgHooks['AuthChangeFormFields'][] = 'ResponsibilityHooks::onAuthChangeFormFields';
public static function onAuthChangeFormFields( $requests, $fieldInfo, &$formDescriptor, $action ) {
$tmpArr=array();
if(!empty($formDescriptor['captchaId'])) {
$tmpArr['captchaId']=$formDescriptor['captchaId'];
unset($formDescriptor['captchaId']);
}
if(!empty($formDescriptor['captchaInfo'])) {
$tmpArr['captchaInfo']=$formDescriptor['captchaInfo'];
unset($formDescriptor['captchaInfo']);
}
if(!empty($formDescriptor['captchaWord'])) {
$tmpArr['captchaWord']=$formDescriptor['captchaWord'];
unset($formDescriptor['captchaWord']);
}
if(is_array($tmpArr) && !empty($tmpArr )) {
foreach($tmpArr as $key=>$val) {
$formDescriptor[$key]=$val;
}
}
} Jainuddin786 (talk) 08:10, 4 October 2016 (UTC)
The discussion above is closed. Please do not modify it. No further edits should be made to this discussion.

MediaWiki:Sidebar

Hi all,

is there any way how to simply add two or more elements into sidebar in one line.

I mean like this: ** target|link text ** target|link text ** target|link text

and not: ** target|link text

** target|link text

** target|link text

Thanks

Luboš Lobokn (talk) 06:21, 4 October 2016 (UTC)

If you mean having more than one link in the same line/item of the sidebar: no, it's not possible. Ciencia Al Poder (talk) 09:42, 4 October 2016 (UTC)

How can i add custom field on edit article page?

I want to add Media field on edit article page, from there user can upload media to article pages.

Please see attached image of edit article page : File:Editing Main Page Livelihood.png

{{File:Editing_Main_Page_Livelihood.png}}

Thanks, Jainuddin786 (talk) 09:36, 4 October 2016 (UTC)

Getting error while creating new page in ECM WIKI

HI, I am trying to create new page in https://ecmcmwiki.azurewebsites.net/index.php?title=Main_Page. When i am editing it and saving it I am getting Database error.

Could some one suggest me how can I resolve this issue? 167.220.238.19 (talk) 13:02, 4 October 2016 (UTC)

Add
$wgShowSQLErrors = true;
$wgDebugDumpSql = true;
$wgShowDBErrorBacktrace = true;
to LocalSettings.php and see what the exact error message is! 87.123.18.64 (talk) 13:22, 4 October 2016 (UTC)
I am getting below error
= Database error =
Jump to: navigation, search
A database query error has occurred. This may indicate a bug in the software. 167.220.238.19 (talk) 14:11, 4 October 2016 (UTC)

File upload Problem

Hello!

So I don't why but when we try to use the File Uploader on our Wiki it throws the following problem:

[dfd151da] /wiki/Special:Upload MWException from line 1868 of /file/LocalFile.php: Could not acquire lock for 'PD-icon.svg.png.'

Backtrace:

<code>Backtrace:

Backtrace:

#0 /includes/filerepo/file/LocalFile.php(1147): LocalFile->lock()

#1 /includes/upload/UploadBase.php(708): LocalFile->upload(string, string, string, integer, array, boolean, User)

#2 /includes/specials/SpecialUpload.php(486): UploadBase->performUpload(string, string, boolean, User)

#3 /includes/specials/SpecialUpload.php(197): SpecialUpload->processUpload()

#4 /includes/specialpage/SpecialPage.php(384): SpecialUpload->execute(NULL)

#5 /includes/specialpage/SpecialPageFactory.php(553): SpecialPage->run(NULL)

#6 /includes/MediaWiki.php(281): SpecialPageFactory::executePath(Title, RequestContext)

#7 /includes/MediaWiki.php(714): MediaWiki->performRequest()

#8 /includes/MediaWiki.php(508): MediaWiki->main()

#9 /index.php(41): MediaWiki->run()

#10 {main}</code>

MediaWiki 1.26.4

PHP 5.3.3

MySQL 5.1.73 186.94.110.121 (talk) 14:47, 4 October 2016 (UTC)

This error is because of permissions. You need to make sure the server can write to the upload directory defined in MediaWiki. For example, try temporarily giving permissions to all users on the upload folder, recursively, and see if this fixes the problem. Tune those permissions to make it secure enough. Ciencia Al Poder (talk) 09:55, 5 October 2016 (UTC)

Updating an existing page when it's about your company

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'm trying to handle this in the most above-board way possible, so I'm turning to this forum. I'm an employee at a company that has a Wiki page. I got an email from someone today with this message: " "Thought you'd be interested to know there's a flag on your Wikipedia page. This calls the integrity of your page into question, and negatively impacts your company's credibility." (They claim they can fix this problem -- presumably for a fee). Indeed, the page has these messages on it:

This article contains content that is written like an advertisement(August 2015)
The topic of this article may not meet Wikipedia's notability guidelines for companies and organizations.(August 2015)

Furthermore, the page is way out of date.

What's the best way to handle this? Make edits myself? Hire an outside person to make edits? Ask a customer to make edits? The page really should be updated, but I don't know how to do so in a way that's acceptable.

All guidance is appreciated!

~Thad Thadp5 (talk) 19:38, 4 October 2016 (UTC)

First of all, I would suggest looking at the history of that page to make sure that this person who contacted you did not simply add these messages themselves. If they were added very recently, and you are quite sure these tags are inaccurate, you could probably follow the guidelines for removing this template.
I also suggest first making any edits you can make without adding major bias that would bring the page up-to-date. Inevitably, some bias is going to slip in but other people can help with that. Asking customers to help edit directly might not necessarily be a good idea because it sounds like a daunting task, but requesting feedback and incorporating it into the article might help you avoid bias.
Lastly, it's certainly reasonable to charge money for improving a company's image, but there's no definite guarantee that this individual is unbiased, and any significant amount of money seems unreasonable for improving a company's page on such an easily editable site as Wikipedia. MTres19 (talk) 00:06, 5 October 2016 (UTC)
Thanks for the thoughtful response Thadp5 (talk) 00:55, 5 October 2016 (UTC)
You could update the page yourself; however be aware of https://en.wikipedia.org/wiki/Wikipedia:COI and general expectations on https://en.wikipedia.org/wiki/Wikipedia:Notability and providing references/sources for statements. Please see the corresponding village pumps on the Wikipedia site that you refer to (maybe English Wikipedia?) for more information. Malyacko (talk) 11:06, 5 October 2016 (UTC)
The discussion above is closed. Please do not modify it. No further edits should be made to this discussion.

Class not found in SpecialPageFactory.php

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 just getting started developing an extension, the source for which is hosted here. The purpose of the extension is to allow wiki editing through Git. Unfortunately, I haven't been able to progress to actually working on that part since I've run into a problem accessing the special page my extension should create: whenever I access Special:GitAccess or Special:SpecialPages on my wiki (http://hcstechwiki.homenet.org/mw/index.php) I get:

Fatal Error: Class 'SpecialGitAccess' not found in /...<path>.../specialpage/SpecialPageFactory.php on line 396

I've enabled the Renameuser extension without any trouble, so obviously this is something I'm doing wrong in my extension, but I can't figure out what it might be. I can't find any typos in my extension.json or SpecialGitAccess.php, but it seems that SpecialGitAccess.php isn't being included somehow...

I am running MediaWiki 1.27.1 with MySQL 5.1.73, PHP 5.6.13, and lighttpd 1.4.36.

Thanks in advance, and sorry if this is a waste of time... MTres19 (talk) 20:58, 4 October 2016 (UTC)

paladox helped me on IRC. I had "AutoLoadClasses" instead of "AutoloadClasses" in extension.json. MTres19 (talk) 20:35, 5 October 2016 (UTC)
The discussion above is closed. Please do not modify it. No further edits should be made to this discussion.

trouble logging into new account from ipad ios10

I created an account on a borrowed pc, confirmed it. created a public group page, confirmed editable, but i have not been able to log in again from my ipad. safari, cookies on, i finally see the captcha. i sent password reset but temp password isn't working and i can't log on.

user page: Victoria Kushnir

Topic page: SCIS Fleet 47.18.33.177 (talk) 04:02, 5 October 2016 (UTC)

Have you tried Wikipedia's app (I'm assuming you're talking about wikipedia if i'm incorrect please correct me)? If not, I suggest trying that first. Zppix (Volunteer Dev) (talk) 17:35, 8 October 2016 (UTC)

I was wondering if there was a way to filter on content in description in YouTube, for example, I want to block dog and cat videos

I have Pf-sense with squid guard working so the client gets the cert from the pf-sense server so it can see what otherwise would be encrypted traffic.

IF i do a search with Cat|dog in the filter it will stop the YouTube from showing results, however say i went to a car search and watched a video which had a car video but on the recommendations from YouTube column there was a cat or dog video and i clicked on it , that video will play thru.

is there a way to scan the description of the video etc to see if keywords could be blocked?

Regards,

Medi 139.230.245.23 (talk) 06:49, 5 October 2016 (UTC)

Welcome to the support desk for the MediaWiki software. Could you elaborate how your question is related to the MediaWiki software? Thanks in advance! AKlapper (WMF) (talk) 11:01, 5 October 2016 (UTC)

How can i upload file by PHP code in wiki?

I want to upload file by php code and insert into "image" table.

Please somebody explain me.

Thanks, Jainuddin786 (talk) 07:11, 5 October 2016 (UTC)

You should use API:Upload (using a web request to MediaWiki api) or the importImages.php maintenance script. Ciencia Al Poder (talk) 09:50, 5 October 2016 (UTC)
How can i call API and Pass filename to it from Hook???
api.php?action=upload&filename=Test.txt&file=file_contents_here&token=+
Thanks, Jainuddin786 (talk) 11:45, 5 October 2016 (UTC)
You can look at API:Calling internally, but for file uploads it may be better if you look at the code of the importImages.php maintenance script, since you apparently have already the file contents somewhere in the filesystem of the server. Calling the api internally may not work here since it may expect the file to come from the web request. Ciencia Al Poder (talk) 20:28, 5 October 2016 (UTC)

Multipane Editting and Rendering

Hi everyone!

I am working on a wiki project for translating music lyrics from language A to language B. I would want the editors to be able to edit the content side by side similar to how Content Translation works. Unlike Content Translation, no new pages should to be created. The content should appear side by side on the same page when viewed by readers.

I would like to ask if there are extensions our there that support this type of editing. If not, is it possible to customize Content Translation to behave in the manner I described above?

Thanks! 2601:646:C302:820D:7CAA:ACB1:DA8F:11A3 (talk) 10:43, 5 October 2016 (UTC)

email invite, guess haven't recieve it

my friends have not got the invite and it says the invite has been delivered. i sent it to myself and nothing. help! 68.196.48.255 (talk) 16:12, 5 October 2016 (UTC)

Have you configured the email settings in $wgSMTP? Ciencia Al Poder (talk) 09:43, 7 October 2016 (UTC)

Difficulty of migrating wikimedia server to Windows Server 2008

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 client that runs a small mediawiki server using php and mysql that would like us to host the site for them on a windows server. Is there a way to backup the data for an easy migration? Efs5030 (talk) 16:35, 5 October 2016 (UTC)

We have Manual:Backing up a wiki, which explains how to do a backup of a MediaWiki installation! 87.123.5.1 (talk) 22:06, 5 October 2016 (UTC)
Or more specific: Manual:Moving a wiki Ciencia Al Poder (talk) 09:15, 6 October 2016 (UTC)
The discussion above is closed. Please do not modify it. No further edits should be made to this discussion.

Upgrade PHP

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. We have MediaWiki 1.26.0 and PHP that was installed about a year ago is 5.6.14. Recently we started to get a lot of PHP-related alerts as security issues on the server where Wiki is running. We think to upgrade PHP from 5.6.14 to the more recent. QUESTION: is it safe to upgrade PHP-software to the most recent one OR would you recommend to upgrade to certain version of PHP, which one? Thank you! 198.232.185.11 (talk) 18:20, 5 October 2016 (UTC)

MediaWiki 1.26 will work with PHP 5.6, the minor version is not relevant. You can upgrade PHP to e.g. version 5.6.26. This should not cause problems.
However, MediaWiki 1.26 - at least officially - is not compatible with PHP 7. So, if you want to upgrade PHP to version 7, you will have to upgrade MediaWiki (and extensions, which you might use) to version 1.27 first. 87.123.5.1 (talk) 22:03, 5 October 2016 (UTC)
The our server where WIkI is running has OS Windows Server 2008 R2 64-bit, from where would you recommend to install PHP 5.6.26? We looked at the web site http://windows.php.net/downloads/releases/archives/ and did not find that version. Any recommendation from where to download and install it? Thank you! 198.232.184.254 (talk) 21:47, 6 October 2016 (UTC)
In fact, the latest version they are offering there is PHP 5.6.25 from this August.
If you want to know, why version 5.6.26 is not there (yet), you should ask the PHP guys. If someone knows, and if someone can change this, then it's them! 87.123.57.13 (talk) 23:07, 6 October 2016 (UTC)
The latest version does not get archived. Instead, it always is available from here: http://windows.php.net/downloads/releases/ Jörgi123 (talk) 21:43, 8 October 2016 (UTC)
The discussion above is closed. Please do not modify it. No further edits should be made to this discussion.

Best way to include/embed an interactive map?

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 new to media wiki and webhosting in general. I have the most baseline knowledge of how it works, so please forgive me as I stumble through this question and try to figure out what information I should be providing here...

I want to create an interactive map of some kind to feature on the front page of my wiki. Not like a google map. More like, an image where you can hover over certain regions and click them to go to its respective wiki page.

I'm assuming I'd need to create something in java? Or perhaps I could create a flash .swf and embed it that way; though flash is becoming outdated and many people seem to dislike it.

Any advice in this matter would be extremely helpful. MyTriforce (talk) 01:27, 6 October 2016 (UTC)

There are tagcloud extensions for MediaWiki, but from what you describe, that is not exactly, what you want... 87.123.5.1 (talk) 07:36, 6 October 2016 (UTC)
You probably want Extension:ImageMap Ciencia Al Poder (talk) 09:13, 6 October 2016 (UTC)
The discussion above is closed. Please do not modify it. No further edits should be made to this discussion.

Categories not 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.


Hello all together,

we've recently updated our internal Mediawiki to version 1.27.0 and now when we add new pages with a "category"-tag, these pages are listed under "Special:UncategorizedPages".

We've tested any method, but they are not listed unter the desired category.

I hope anyone can help me with this problem. Maninblack1986 (talk) 06:39, 6 October 2016 (UTC)

See Manual:$wgRunJobsAsync! 87.123.5.1 (talk) 07:32, 6 October 2016 (UTC)
The discussion above is closed. Please do not modify it. No further edits should be made to this discussion.

how to create a text box the same as on the mediawiki homepage?

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

i started today with mediawiki. i want to create a text box like on the homepage of Mediawiki.org. It's the box with the name: Using MediaWiki, System Administration, Developing & Extending. The "square text box". I don't know the name of it. I have searched for the code but can't find. 185.106.152.209 (talk) 12:26, 6 October 2016 (UTC)

From the page source, you can see that it is using the CSS class .mainpage_hubbox. They layout is given in Template:Main page and the CSS is in MediaWiki:Gadget-site.css. MarkAHershberger(talk) 14:41, 6 October 2016 (UTC)
The discussion above is closed. Please do not modify it. No further edits should be made to this discussion.

After editing a page including URL link, 'save action submit' presents : HttpFunctions.php Error setting curl options.

Without any URL links, save actions of the page are normal.

Please, help me...

Thank you in advance.

MediaWiki 1.27.1

PHP 5.5.17p1 (apache)

MySQL 5.1.45p1-log

webhosting server OS : Linux version 4.1.13 ..... (gcc version 4.1.2 20080704 (Red Hat 4.1.2-48)) #1 SMP Wed Dec 9 18:43:00 KST 2015

URL http://kadhlab130.com/wiki/

Exception details are as follows.

[2a582b450beb5536ad5a7d7e] /wiki/index.php?title=%EB%8C%80%EB%AC%B8&action=submit MWException from line 823 of /home/hosting_users/kadhlab130/www/wiki/includes/HttpFunctions.php: Error setting curl options.

Backtrace:

#0 /home/hosting_users/kadhlab130/www/wiki/includes/HttpFunctions.php(76): CurlHttpRequest->execute()

#1 /home/hosting_users/kadhlab130/www/wiki/includes/HttpFunctions.php(111): Http::request(string, string, array, string)

#2 /home/hosting_users/kadhlab130/www/wiki/extensions/SpamBlacklist/BaseBlacklist.php(345): Http::get(string)

#3 /home/hosting_users/kadhlab130/www/wiki/extensions/SpamBlacklist/BaseBlacklist.php(308): BaseBlacklist->getHttpText(string)

#4 /home/hosting_users/kadhlab130/www/wiki/extensions/SpamBlacklist/BaseBlacklist.php(271): BaseBlacklist->buildSharedBlacklists()

#5 [internal function]: BaseBlacklist->{closure}(boolean, integer, array)

#6 /home/hosting_users/kadhlab130/www/wiki/includes/libs/objectcache/WANObjectCache.php(851): call_user_func_array(Closure, array)

#7 /home/hosting_users/kadhlab130/www/wiki/includes/libs/objectcache/WANObjectCache.php(779): WANObjectCache->doGetWithSetCallback(string, integer, Closure, array)

#8 /home/hosting_users/kadhlab130/www/wiki/extensions/SpamBlacklist/BaseBlacklist.php(273): WANObjectCache->getWithSetCallback(string, integer, Closure)

#9 /home/hosting_users/kadhlab130/www/wiki/extensions/SpamBlacklist/BaseBlacklist.php(205): BaseBlacklist->getSharedBlacklists()

#10 /home/hosting_users/kadhlab130/www/wiki/extensions/SpamBlacklist/SpamBlacklist_body.php(49): BaseBlacklist->getBlacklists()

#11 /home/hosting_users/kadhlab130/www/wiki/extensions/SpamBlacklist/SpamBlacklistHooks.php(76): SpamBlacklist->filter(array, Title)

#12 [internal function]: SpamBlacklistHooks::filterMergedContent(RequestContext, WikitextContent, Status, string, User, boolean)

#13 /home/hosting_users/kadhlab130/www/wiki/includes/Hooks.php(195): call_user_func_array(string, array)

#14 /home/hosting_users/kadhlab130/www/wiki/includes/EditPage.php(1558): Hooks::run(string, array)

#15 /home/hosting_users/kadhlab130/www/wiki/includes/EditPage.php(1947): EditPage->runPostMergeFilters(WikitextContent, Status, User)

#16 /home/hosting_users/kadhlab130/www/wiki/includes/EditPage.php(1392): EditPage->internalAttemptSave(NULL, boolean)

#17 /home/hosting_users/kadhlab130/www/wiki/includes/EditPage.php(578): EditPage->attemptSave(NULL)

#18 /home/hosting_users/kadhlab130/www/wiki/includes/actions/EditAction.php(59): EditPage->edit()

#19 /home/hosting_users/kadhlab130/www/wiki/includes/actions/SubmitAction.php(38): EditAction->show()

#20 /home/hosting_users/kadhlab130/www/wiki/includes/MediaWiki.php(503): SubmitAction->show()

#21 /home/hosting_users/kadhlab130/www/wiki/includes/MediaWiki.php(288): MediaWiki->performAction(Article, Title)

#22 /home/hosting_users/kadhlab130/www/wiki/includes/MediaWiki.php(745): MediaWiki->performRequest()

#23 /home/hosting_users/kadhlab130/www/wiki/includes/MediaWiki.php(519): MediaWiki->main()

#24 /home/hosting_users/kadhlab130/www/wiki/index.php(43): MediaWiki->run()

#25 {main} Oriental.neo (talk) 09:20, 7 October 2016 (UTC)

This is caused by Extension:SpamBlacklist, you can disable that extension if you can't fix the problem...
The error happens because the call to curl_setopt_array returns false, which means one of the settings for curl failed to be set. It may be a restriction imposed by your host, but difficult to say because we don't know which one is failing :( Ciencia Al Poder (talk) 09:41, 7 October 2016 (UTC)
You may modify the code, removing the cURL options and enabling them one by one to see, which on/which ones are causing trouble. Another workaround might be to prepend the calls to curl_setopt_array with an "@" sign to disable error reporting for them. 87.123.35.54 (talk) 10:22, 7 October 2016 (UTC)
Thank you! I'll try it. ^^ Oriental.neo (talk) 10:36, 7 October 2016 (UTC)
It worked! I appreciate your help. ^^! Moreover I'll try to find out the specific cause. ^^ Oriental.neo (talk) 10:34, 7 October 2016 (UTC)

generating reports

I want to generate reports of:

·        Generating a list of all pages and when they were created & last updated

Generating a list of all deleted pages

Putting search results into an excel list

The ability for leaders to see the number of *unique* visitors to their pages, not just absolute view count.

Can you please help me with this. Ashni rai (talk) 12:24, 7 October 2016 (UTC)

Best way is to use API wargo (talk) 12:33, 7 October 2016 (UTC)

Modules

How can I let my wiki using modules as a code elements of system, is it extension, gadget? Adam Rędzikowski (talk) 05:40, 8 October 2016 (UTC)

If I remember correctly, for running modules you will need Extension:Scribunto. AhmadF.Cheema (talk) 07:25, 8 October 2016 (UTC)

Is there a way of managing Kodi movie sets using EMM?

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.


There seems to be a tab for Sets, but I cant see how to scan in sets, and I cant find anything in the help files and wiki. Is there w way to do this please? 211.27.254.224 (talk) 08:37, 8 October 2016 (UTC)

This support desk is about MediaWiki software. You probably want to ask in Kodi community forum Ciencia Al Poder (talk) 09:52, 10 October 2016 (UTC)
The discussion above is closed. Please do not modify it. No further edits should be made to this discussion.

Can't load the skin that own make

MediaWiki internal error.

Original exception: [a99df85a32383b72b38cc86e] /index.php?title=%E9%A6%96%E9%A1%B5&useskin=Bilibili SkinException from line 94 of D:\wamp\www\includes\skins\SkinFactory.php: No registered builder available for bilibili.

Backtrace:

#0 D:\wamp\www\includes\context\RequestContext.php(435): SkinFactory->makeSkin(string)

#1 D:\wamp\www\includes\context\ContextSource.php(154): RequestContext->getSkin()

#2 D:\wamp\www\includes\parser\ParserOutput.php(249): ContextSource->getSkin()

#3 [internal function]: ParserOutput->{closure}(array)

#4 D:\wamp\www\includes\parser\ParserOutput.php(257): preg_replace_callback(string, Closure, string)

#5 D:\wamp\www\includes\OutputPage.php(1838): ParserOutput->getText()

#6 D:\wamp\www\includes\OutputPage.php(1857): OutputPage->addParserOutputText(ParserOutput)

#7 D:\wamp\www\includes\page\Article.php(607): OutputPage->addParserOutput(ParserOutput)

#8 D:\wamp\www\includes\actions\ViewAction.php(44): Article->view()

#9 D:\wamp\www\includes\MediaWiki.php(503): ViewAction->show()

#10 D:\wamp\www\includes\MediaWiki.php(288): MediaWiki->performAction(Article, Title)

#11 D:\wamp\www\includes\MediaWiki.php(745): MediaWiki->performRequest()

#12 D:\wamp\www\includes\MediaWiki.php(519): MediaWiki->main()

#13 D:\wamp\www\index.php(43): MediaWiki->run()

#14 {main}

Exception caught inside exception handler: [a99df85a32383b72b38cc86e] /index.php?title=%E9%A6%96%E9%A1%B5&useskin=Bilibili SkinException from line 94 of D:\wamp\www\includes\skins\SkinFactory.php: No registered builder available for bilibili.

Backtrace:

#0 D:\wamp\www\includes\context\RequestContext.php(435): SkinFactory->makeSkin(string)

#1 D:\wamp\www\includes\context\ContextSource.php(154): RequestContext->getSkin()

#2 D:\wamp\www\includes\OutputPage.php(2296): ContextSource->getSkin()

#3 D:\wamp\www\includes\exception\MWException.php(204): OutputPage->output()

#4 D:\wamp\www\includes\exception\MWException.php(244): MWException->reportHTML()

#5 D:\wamp\www\includes\exception\MWExceptionHandler.php(69): MWException->report()

#6 D:\wamp\www\includes\exception\MWExceptionHandler.php(180): MWExceptionHandler::report(SkinException)

#7 D:\wamp\www\includes\MediaWiki.php(528): MWExceptionHandler::handleException(SkinException)

#8 D:\wamp\www\index.php(43): MediaWiki->run()

#9 {main}

——~ 112.98.26.240 (talk) 12:26, 10 October 2016 (UTC)

You might be interested in this bug report, where someone had exactly the same problem:
https://phabricator.wikimedia.org/T88095
In his case, he had a typo in the definition of $wgValidSkinNames. See Manual:$wgValidSkinNames for more information! 87.123.24.161 (talk) 12:33, 10 October 2016 (UTC)

How to edit layout / css of pages

Hi, I need to change the layout of content pages, but I am unable to find which file toedit. Since there is not a php file with the page name, I tried to find out where the call isriding the page but not found. Can anybody help me. Analistacavanha (talk) 20:18, 10 October 2016 (UTC)

Have a look at Manual:Interface/Stylesheets!
MediaWiki:Common.css might be a candidate for you! 87.123.60.8 (talk) 21:05, 10 October 2016 (UTC)
ok thank you very much, I could make the changes I wanted. Analistacavanha (talk) 13:38, 11 October 2016 (UTC)

Does Extension:SpamBlacklist catch host names?

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.


Does Extension:SpamBlacklist catch edits where a spammer uses host name instead of URL, eg. www.spam.com instead of http://www.spam.com? Of course we assume that there is \bspam\.com\b regexp in the blacklist. jdx Re: 07:48, 11 October 2016 (UTC)

www.spam.com is not an URL (it's not magically autolinked) so it won't be caught by Extension:SpamBlacklist Ciencia Al Poder (talk) 09:12, 11 October 2016 (UTC)
Thanks. That's what I've thought. And this is a problem because spammers often use a phrase like "more info at my.wonderful.site.com". jdx Re: 09:25, 11 October 2016 (UTC)
I suppose Extension:AbuseFilter, although more complicated to setup, would be much more effective. AhmadF.Cheema (talk) 11:03, 11 October 2016 (UTC)
The discussion above is closed. Please do not modify it. No further edits should be made to this discussion.

Wrong categorization of 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.


pages in category are coming under the wrong letters:

for example:

Pages in category "NWD"

C

how to rectify this issue and resolve it? Ashni rai (talk) 09:22, 11 October 2016 (UTC)

See if the sources of the page have piped category links, or if they use the DEFAULTSORT parser function. Jackmcbarn (talk) 01:26, 12 October 2016 (UTC)
we are using piped category links ..so we are getting it in an unsorted manner.is there any way to sort this accordingly. Ashni rai (talk) 05:58, 12 October 2016 (UTC)
The point of using piped category links is to make pages sort differently than their name. If you don't want that to happen, just change them to regular category links. Jackmcbarn (talk) 16:13, 12 October 2016 (UTC)
thanks jack.. Ashni rai (talk) 06:42, 13 October 2016 (UTC)
The discussion above is closed. Please do not modify it. No further edits should be made to this discussion.

Problem with watchlist - maybe due to some extension ?

Versions : IIS 7 MediaWiki 1.27.1 PHP 5.6.26 (cgi-fcgi) MySQL 5.7.15-log ICU 57.1

Hi,

I am using many MediaWiki extensions, and am puzzled by one bug I get in Watchlist feature, which I think occur due to those many extensions.

When I click on "List", the URL submitted lacks the parameter "title=Special:Watchlist" and brings me to "Edit" the page I am launching it on. If I add it, it works.

Which extension might be the culprit ?

Here are the suspects :

 ConfirmAccount
 Echo
 MLEB
 UserMerge
 Babel
 Comments
 DynamicPageList
 InputBox
 MsUpload
 ParserFunctions
 ApprovedRevs
 CLDR
 Flow
 MobileFrontend
 

Thanks for help. Tuxxic (talk) 14:45, 11 October 2016 (UTC)

None of them should be causing this problem, but if in doubt, you can disable all of them and enable them one by one, trying to reproduce the problem, until you find the problematic one. Ciencia Al Poder (talk) 14:20, 12 October 2016 (UTC)
You are right, that's what I did, and none of them was involved, as I still get the problem.
I also hooked a few functions, such as :
 $wgHooks['SkinTemplateOutputPageBeforeExec'][]
 $wgHooks['MediaWikiPerformAction'][]
 $wgHooks['SkinBuildSidebar'][]
 $wgHooks['InternalParseBeforeLinks'][]
Which might also be culprits. Still, after inactivating them all at once, the problem remains.
What can I look for then ? Tuxxic (talk) 15:02, 12 October 2016 (UTC)
Also, I thought it could be my customized $wgScriptPath = "/." - but even when I am setting /wiki it doesn't work. Tuxxic (talk) 15:21, 12 October 2016 (UTC)

Gmail "less secure apps" and MediaWiki

Is there any way of using Gmail as the $wgSMTP mail service without having to set "allow access to less secure apps" in Gmail settings to on? I have had a look at the OAuth extension, but I'm guessing that as an OAuth 1.0 implementation, that won't do the trick since Google is now on OAuth 2.0. I am running MW1.26.2/PHP5.6.23/MariaDB5.5.52/ICU 56.1 Thanks. CharlesSpencer (talk) 18:48, 11 October 2016 (UTC)

Can you tell, what a "secure enough" app is? What are the requirements, which have to be fulfilled in order for Google to consider it secure enough? 87.123.33.161 (talk) 22:52, 11 October 2016 (UTC)
Very good question! Google's "support" pages appear to be deliberately evasive on this point (I've asked for clarification) but there is a view out there that it means OAuth2.0... CharlesSpencer (talk) 23:09, 11 October 2016 (UTC)

ePub

Yo !

I wondered why there are ePub conversions for the french and english Wikisource, and not for the spanish, so I ask and they told me it was because there aren't any tools in MediaWiki to convert wikitext into epub. It would be great if you could make it.

I'm not sure you can just copy without asking, but a French administrator of Wikisource, named Tpt, made a program that does exactly that. And the English found a trick too (though honestly, I tried both, and Tpt's program is far better for it converts the entire book while the English one just converts one page).

Hope someone will be entertained by the idea, is all. 80.12.35.86 (talk) 22:44, 11 October 2016 (UTC)

Phab:T97672 ? AKlapper (WMF) (talk) 09:22, 12 October 2016 (UTC)

Custom reports

Can we generate a custom report which has ability to extract all URLs from wiki pages and to see which pages the URL’s are on. Ashni rai (talk) 08:53, 12 October 2016 (UTC)
Have you checked API:Exturlusage
? AKlapper (WMF) (talk) 09:19, 12 October 2016 (UTC)
or is there any existing reports as such? Ashni rai (talk) 08:53, 12 October 2016 (UTC)
Thanks for your help..But isnt that what links here does.. Ashni rai (talk) 09:28, 12 October 2016 (UTC)
"What links here" does not list external but internal URLs, afaiu. AKlapper (WMF) (talk) 10:06, 12 October 2016 (UTC)
We need a list of urls for the wiki pages not just the links.. Ashni rai (talk) 09:29, 12 October 2016 (UTC)
Did you read API:Exturlusage ? It says "Get a list of pages that link to a certain URL". So it's not just the links. AKlapper (WMF) (talk) 10:08, 12 October 2016 (UTC)
yes i read it..it gives a list of external links..we need it for internal links..lets say we have a page which has a link to a sharepoint documnet library and we want to fetch the url of the document library.. Ashni rai (talk) 10:32, 12 October 2016 (UTC)
can anyone please guide me on this? Ashni rai (talk) 06:30, 17 October 2016 (UTC)
For MediaWiki, "external" links means links to pages, documents, etc *outside* of MediaWiki.
If you want a list of external links of a given page, use API:Extlinks Ciencia Al Poder (talk) 10:00, 17 October 2016 (UTC)

search results in an excel list

Is there any way we can put search results into an excel list Ashni rai (talk) 09:31, 12 October 2016 (UTC)

Copy & Paste?! 87.123.33.161 (talk) 09:48, 12 October 2016 (UTC)
report to generate search results into an excel list Ashni rai (talk) 10:48, 12 October 2016 (UTC)
is there export to excel feature for the search results? Ashni rai (talk) 06:27, 17 October 2016 (UTC)
No Ciencia Al Poder (talk) 09:58, 17 October 2016 (UTC)

Generate a list of all pages and when they were created & last updated

·    Is there a way to Generate a list of all pages and when they were created & last updated Ashni rai (talk) 09:32, 12 October 2016 (UTC)

I don't know of an extension, which could do that, but this information is available in the page table, columns page_namespace, page_title. For information on the latest revision, you will need to do a JOIN on the revision table based on the value of page_latest. 87.123.33.161 (talk) 09:47, 12 October 2016 (UTC)
You can retrieve the latest revision for all pages quite easily with this API query: action=query&prop=revisions&generator=allpages&rvprop=timestamp
However retrieving the date created is more difficult. You'd first have to get a list of all pages with list=allpages, then make an individual request to prop=revisions&rvprop=timestamp&rvdir=newer&rvlimit=1 for each title. 120.144.180.185 (talk) 12:28, 12 October 2016 (UTC)
list=allpages 109.37.150.97 (talk) 16:01, 1 January 2023 (UTC)
This would be possible using Extension:Cargo. Jonathan3 (talk) 10:38, 24 September 2023 (UTC)

generate a list of all deleted pages

Is there a way to generate a list of all deleted pages Ashni rai (talk) 09:33, 12 October 2016 (UTC)

Special:Undelete might help. Otherwise, just look into the database; database table archive has all the names in column ar_title (together with ar_namespace). 87.123.33.161 (talk) 09:43, 12 October 2016 (UTC)
it says You do not have permission to view this page's deleted history. Ashni rai (talk) 10:26, 12 October 2016 (UTC)
Enter on that page on your wiki. Or check Special:Log/delete. wargo (talk) 13:23, 12 October 2016 (UTC)

Bulk find and replace

·    Is there a way to do Bulk find and replace in media wiki? Ashni rai (talk) 09:34, 12 October 2016 (UTC)

See Extension:ReplaceText! 87.123.33.161 (talk) 09:39, 12 October 2016 (UTC)

number of *unique* visitors to their pages, not just absolute view count.

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.


The ability for page owners to see the number of *unique* visitors to their pages, not just absolute view count. Ashni rai (talk) 09:36, 12 October 2016 (UTC)

Install analytics software like piwik or google analytics Ciencia Al Poder (talk) 13:47, 12 October 2016 (UTC)
We cant use 3rd party software.Can it be done in mediawiki without 3rd party software. Ashni rai (talk) 10:13, 13 October 2016 (UTC)
No. 3rd party software can be integrated into MediaWiki, but without anything, it won't be possible. I would use Piwik. 87.123.6.149 (talk) 11:37, 13 October 2016 (UTC)
ok thanks Ashni rai (talk) 05:11, 14 October 2016 (UTC)
how to implement and integrate it? Ashni rai (talk) 05:33, 14 October 2016 (UTC)
See Extension:Piwik Integration! 87.123.38.252 (talk) 08:05, 14 October 2016 (UTC)
I tried it.it showed unique user till the user was logged in.but if the same user is logging out and then logging in it takes him as a new user and incremenmts the count.We want view count of unique users regardless of how many times they have logged in. 125.18.177.100 (talk) 09:44, 14 October 2016 (UTC)
we have authoriztion in our media wiki. 125.18.177.100 (talk) 09:47, 14 October 2016 (UTC)
For questions regarding the functionalities of the Piwik Analytics tool, please see https://forum.piwik.org. 87.123.38.252 (talk) 10:16, 14 October 2016 (UTC)
The discussion above is closed. Please do not modify it. No further edits should be made to this discussion.

Background highlighting inside a designated code snippet?

Is there a way to background highlight certain words/characters within a code snippet?  I've been using <pre> and <nowiki> for defining code snippets but they don't allow code to be parsed. I have a lot of code to display but need to bring attention only to small portions of it for the reader's convenience. 208.167.254.13 (talk) 13:29, 12 October 2016 (UTC)

There's no easy way to do that. Most you can do is start each line with at least one space. This will use monospace font similar to <pre> but will allow markup to be parsed. You'll probably need to use <nowiki> when needed to prevent special markup on the code from being parsed. Ciencia Al Poder (talk) 14:26, 12 October 2016 (UTC)
Highlighting single characters in preformatted text contradicts the principle of preformatting. Since it's preformatted, there should not be other styles for that text.
Another option is installing and using the Extension:SyntaxHighlight, which provides syntax highlighting for complete languages, e.g. for PHP or SQL code. 87.123.33.161 (talk) 14:27, 12 October 2016 (UTC)

False. <pre> just means "don't mess with the white-space"; you're allowed to have HTML inside to add additional formatting. In fact the W3C even uses a <pre> tag with a <code> tag inside it to mark up pre-formatted blocks of code as an example. 121.214.39.65 (talk) 02:57, 13 October 2016 (UTC)

You can use the comment hack to make pre tags be interpreted as plain HTML rather than an extension tag, which allows HTML and wikitext inside.

<pre<!---->>
Text
<span style=background:lightblue>'''Highlighted''' text</span>
</pre>
Text
Highlighted text

121.214.39.65 (talk) 02:40, 13 October 2016 (UTC)

However it appears to not work with VisualEditor. It does work on a real wiki page though. 121.214.39.65 (talk) 02:42, 13 October 2016 (UTC)

Mediawiki with InstantCommons enabled is very slow

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 enabled it on my wiki and pages take more than a minute to load with commons images on it. If I disable InstantCommons, same page loads within 2 seconds and here's the caching I've applied on LocalSettings.php - https://dpaste.de/d3BJ

I see that other wikis using InstantCommons on the Internet don't take so much time to load. Not sure what I have missed, any pointers would help. 49.207.60.101 (talk) 06:44, 13 October 2016 (UTC)

This wiki is running MediaWiki -v 1.26.2 with PHP -v5.5.38 (cgi-fcgi) and MySQL -v 5.5.52-cll 49.207.60.101 (talk) 06:48, 13 October 2016 (UTC)
In MediaWiki 1.26 and before, the wiki will download requested images from commons on the server, and generate thumbnails as needed, which may be the reason for the slowdown. However, once the images are downloaded one, the next page load should be fast.
You can try using this setting instead of $wgUseInstantCommons = true, which is the new way it works since MediaWiki 1.27 and does a hotlinking of those images to commons, so your wiki doesn't need to fetch and thumbnail the images:
 $wgForeignFileRepos[] = [
   'class'                   => 'ForeignAPIRepo',
   'name'                    => 'wikimediacommons',
   'apibase'                 => 'https://commons.wikimedia.org/w/api.php',
   'url'                     => 'https://upload.wikimedia.org/wikipedia/commons',
   'thumbUrl'                => 'https://upload.wikimedia.org/wikipedia/commons/thumb',
   'hashLevels'              => 2,
   'transformVia404'         => true,
   'fetchDescription'        => true,
   'descriptionCacheExpiry'  => 43200,
   'apiThumbCacheExpiry'     => 86400,
 ];
Ciencia Al Poder (talk) 10:02, 13 October 2016 (UTC)
@Ciencia Al Poder: Thank you, I tried this from https://phabricator.wikimedia.org/T114098 but didn't fix the issue.
So ended up installing latest 1.27.1 and seems better now. 106.51.131.76 (talk) 17:11, 16 October 2016 (UTC)
The discussion above is closed. Please do not modify it. No further edits should be made to this discussion.

Suggestion for improving print view page - add Qr Code

Hello!

I have an idea for improving print view page (when in URL added parameter &printable=yes).

On each such wikipedia page at the bottom of the page there is Source link, like that one «https://ru.wikipedia.org/w/index.php?title=JSON&oldid=81158804»

It would be very useful if there was a Qr Code of that link too.

Could anybody add Qr code to print view page?

Thank you! VladGum (talk) 08:37, 13 October 2016 (UTC)

Thanks for your idea. My first thought was about QRpedia (with feature requests such as phab:T61726). I don't know how your request would get technically implemented (first step), and it might also be up to each community to decide whether to display by default (second step and entirely separate from the first step). See https://mediawiki.org/wiki/How_to_report_a_bug AKlapper (WMF) (talk) 09:10, 13 October 2016 (UTC)

User login fail.

In one special computer, one user login with wrong password, and then I reset his password.

The problem is , he still can't login with system message: changeemail-throttled.

The strange thing is:

  1. I login this account in my computer, it's OK,
  2. I login my own account in his computer, it's OK
  3. I login this account in his computer, the changeemail-throttled message still display and login failed.

Of course, I wait till the 5min pass.

After check the source by changeemail-throttled, som function is here:

incLoginThrottle: I think it is a counter to record user login failed. (this use IP and username)

clearLoginThrottle: I think it is used to clear the failed records

attemptReset: this call clearLoginThrottle in file SpecialChangePassword.php

I'm not sure, tried changepasswork.php to reset password of this account again, but in the computer login this account , changeemail-throttled still display.

I'm totally confuse, how could I do?

By the way, my wiki run without email serverice. Redlz250 (talk) 08:42, 13 October 2016 (UTC)

How to implement Nav boxes,Top tool bar and info boxes in media wiki? Ashni rai (talk) 10:39, 13 October 2016 (UTC)

Modify what is there using the hooks! 87.123.6.149 (talk) 11:35, 13 October 2016 (UTC)

Deleting Templates

hey Everyone,

I just have a quick question:

How do I delete Templates?

I imported an infobox template from wikipedia, however, I noticed something was wrong, so I edited the file (altered it to fit a German site), and now I want to re-upload it, but it isn - of course - not overwriting the installed version. Anyway to change this? Delete, overwrite, whatever rows the boat, as long as I can update the template.

Thank you very much in advance.

Regards

Zero 62.156.151.10 (talk) 11:00, 13 October 2016 (UTC)

The problem with importing XML dumps is that it inserts revisions at the timestamp they were created, so if a page exists and the last edit is newer than the imported one, the imports won't be the last revision of the page.
If you're sysop on the wiki, you can delete the template like any other page. But since imports will be in the page history anyway, you can also go to the page history and edit an old revision to bring it as the most recent one. Ciencia Al Poder (talk) 09:39, 14 October 2016 (UTC)
I have the same question. How can I delete from shell or from MySQL database? I got error "generated invalid XML" when I go to the template in browser. 73.93.154.253 (talk) 11:17, 16 July 2018 (UTC)
You can go to the history and click delete, instead of going to the template page itself. Ciencia Al Poder (talk) 12:43, 16 July 2018 (UTC)
It will have the same error once I deleted or recovery. Still need a way to delete template forcibly from database. 73.93.154.253 (talk) 16:42, 16 July 2018 (UTC)
The backtrace message will be something like below.
[4c6821f0ef36a6eea8e623f8] /index.php?title=Template:Infobox_officeholder&action=edit&undoafter=2969&undo=2970 MWException from line 183 of /var/www/mediawiki/includes/parser/Preprocessor_DOM.php: Preprocessor_DOM::preprocessToObj generated invalid XML
Backtrace:
#0 /var/www/mediawiki/includes/parser/Parser.php(2881): Preprocessor_DOM->preprocessToObj(string, integer)
#1 /var/www/mediawiki/includes/parser/Parser.php(3492): Parser->preprocessToDom(string, integer)
#2 /var/www/mediawiki/extensions/Scribunto/includes/engines/LuaCommon/LuaCommon.php(710): Parser->getTemplateDom(Title)
#3 /var/www/mediawiki/extensions/Scribunto/includes/engines/LuaStandalone/LuaStandaloneEngine.php(476): Scribunto_LuaEngine->expandTemplate(string, string, array)
#4 /var/www/mediawiki/extensions/Scribunto/includes/engines/LuaStandalone/LuaStandaloneEngine.php(453): Scribunto_LuaStandaloneInterpreter->callback(string, array)
#5 /var/www/mediawiki/extensions/Scribunto/includes/engines/LuaStandalone/LuaStandaloneEngine.php(501): Scribunto_LuaStandaloneInterpreter->handleCall(array)
#6 /var/www/mediawiki/extensions/Scribunto/includes/engines/LuaStandalone/LuaStandaloneEngine.php(377): Scribunto_LuaStandaloneInterpreter->dispatch(array)
#7 /var/www/mediawiki/extensions/Scribunto/includes/engines/LuaCommon/LuaCommon.php(296): Scribunto_LuaStandaloneInterpreter->callFunction(Scribunto_LuaStandaloneInterpreterFunction, Scribunto_LuaStandaloneInterpreterFunction) 73.93.154.253 (talk) 16:48, 16 July 2018 (UTC)
The error is from /index.php?title=Template:Infobox_officeholder&action=edit&undoafter=2969&undo=2970
not from /index.php?title=Template:Infobox_officeholder&action=delete Ciencia Al Poder (talk) 16:53, 16 July 2018 (UTC)

internal server error 500 after install

Hey guys,

i installed mediawiki before some minutes on my linux debian jessie server to /usr/share/mediawiki.

i created a apache2 conf that create the alias fqdn.tld/mediawiki

does a symlink from /etc/apache2/conf-available to /etc/mediawiki/apache.conf (there i saved the alias conf)

enabled the conf

reloading apache2

installed mediawiki via browser without any interrupts

after install i loaded up directly the downloaded LocalSettings.php to the root directory of mediawiki (where index.php is)

going to fqdn.tld/mediawiki and he gives me a interal server error 500

dont know what i've done false. Anybody can help? 2A02:8108:4C3F:EDC8:AD94:DDCA:2935:364C (talk) 12:08, 13 October 2016 (UTC)

The only thing that worked for me was downloading it to my PC and then upload it via FTP. 5.146.176.193 (talk) 19:16, 13 October 2016 (UTC)
In case of an error 500, the web server error log will contain more information!
Glad you could solve the issue! 87.123.38.252 (talk) 20:27, 13 October 2016 (UTC)

TwoFactorAuthentication

Hi,

I justed upgraded from 1.19 to 1.27 on ubuntu. I used the LocalSettings.php from the old dir and put it in the new dir. Mediawiki loads up correctly with the articles. I added the TwoFactorAuthentication extension and as instructed for 1.27 I loaded this to the bottom of the LocalSettings.php file:

wfLoadExtension( 'TwoFactorAuthentication' )

But when I go to the main url mediawiki doesn't load up, I looked in the apache logs and it says:

Uncaught exception 'Exception' with message '/var/lib/newmediawiki/extensions /TwoFactorAuthentication/extension.json does not exist!' in /var/lib/newmediawiki/includes/registration/ExtensionRegistry.php:106\nStack trace:\n#0 /var/lib/newmediawiki/includes/GlobalFunctions.php(115): ExtensionRegistry->queue('/var/lib/newmed...')\n#1 /var/lib/newmediawiki/LocalSettings.php(171): wfLoadExtension('TwoFactorAuthen...')\n#2 /var/lib/newmediawiki/includes/WebStart.php(124): require_once('/var/lib/newmed...')\n#3 /var/lib/newmediawiki/index.php(40): require('/var/lib/newmed...')\n#4 {main}\n  thrown in /var/lib/newmediawiki/includes/registration/ExtensionRegistry.php on line 106

I have verified that extensions.json does NOT exists in the '/newmediawiki/extensions/TwoFactorAuthentication'

When I use 'require_once "$IP/extensions/TwoFactorAuthentication/TwoFactorAuth.php";'

in the Localsettings.php mediawiki loads up fine but I don't see the extra box to input the pin number. I must be missing something here. Thanks in advance. 99.27.53.185 (talk) 15:07, 13 October 2016 (UTC)

In this case, using require_once is correct.
Does the extension show up on the wiki page Special:Version in your wiki? 87.123.6.149 (talk) 15:11, 13 October 2016 (UTC)
Yes, I did verify that the extension is in the Special:Version page of my wiki. 50.202.0.194 (talk) 15:18, 13 October 2016 (UTC)

Vector search box autocomplete don't work without read group permission for anonymous

Hi,

I've just upgrade from 1.24 to 1.27 and the autocomplete in search box with Vector theme no longer works.

After some test I saw that the API return "Permissiondenied" to the request while I was connected.

I found a workaround in setting read permission for anonymous ($wgGroupPermissions['*']['read']= true;) but it's not great because I don't want all the world to see all pages (I have group permissions configured)

Do you have another solution ?

Thanks 163.116.6.90 (talk) 15:43, 13 October 2016 (UTC)

I've added this to a MediaWiki 1.27:
$wgGroupPermissions['*']['read']= false;
Then after logging in, I typed on the search bar, and suggestions came up as usual. Please describe what extensions do you have installed or settings that may change behavior on permissions. Ciencia Al Poder (talk) 18:14, 16 October 2016 (UTC)
I use the Lockdown extension with restrictions on namespaces.
I did not change the permissions configuration in the version change
Thanks for your help 163.116.6.90 (talk) 16:43, 20 October 2016 (UTC)

Issue with SSL Certificate

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.


Good Morning,

It looks like you are having an issue with your SSL cert. It seems to have been revoked.

Thanks

Tanja 184.69.204.178 (talk) 16:21, 13 October 2016 (UTC)

The certificate for mediawiki.org (serial number ‎1121a225ba0402d791854854c8ba60686a9b) is not listed on the CRL of GlobalSign, so it's unlikely, that the vcertificate is revoked ;) WHat error message do you get? Florianschmidtwelzow (talk) 17:57, 13 October 2016 (UTC)
Btw.: Could be related to this T148045. Florianschmidtwelzow (talk) 18:20, 13 October 2016 (UTC)
This problem should be worked around now. It's a problem of GlobalSign: https://twitter.com/globalsign/status/786505261842247680 AKlapper (WMF) (talk) 10:31, 14 October 2016 (UTC)
The discussion above is closed. Please do not modify it. No further edits should be made to this discussion.

Does not display content

Good afternoon

I have installed an mediawiki on a server, and migrated to a new one.

On the main page, displays no content. Being that I'm going to edit, shows the contents there. Douglasls (talk) 19:19, 13 October 2016 (UTC)
See Manual:Errors_and_symptoms#All_pages_have_no_content.2C_but_when_editing_a_page_the_wiki_text_is_there! 87.123.38.252 (talk) 19:24, 13 October 2016 (UTC)
Thanks for the answer.
Reading what you gave me, if I understand well, the only solution is to downgrade to version pcre 8:33?
I'm trying to do this but I do not think information how it's done. Do you have any tips? Douglasls (talk) 20:10, 13 October 2016 (UTC)
Try to purge cache wargo (talk) 20:21, 13 October 2016 (UTC)
The only solution is not to downgrade PCRE. In fact, you should use a current version of MediaWiki. All currently supported versions of MediaWiki are not affected by this problem. 87.123.38.252 (talk) 20:26, 13 October 2016 (UTC)

Cannot get Mediawiki LDAP working

I need my Mediawiki to be able to pull user logins from our Intranet Active Directory but I'm unsure where my problem is. I need it to automatically sign in using the credentials from the Active Directory. Any help would be greatly appreciated. This is whats in my LocalSetting.php

##LDAP Authentication Plugin

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

$wgLDAPDomainNames       = array("RADEUS");

$wgLDAPGroupBaseDNs      = array("RADEUS"=>"ou=groups,DC=radeus,DC=com");

$wgLDAPAutoAuthDomain        = "RADEUS";

$wgLDAPGroupUseFullDN        = array( "RADEUS"=>true );

$wgLDAPServerNames           = array( 'RADEUS' => 'doccenter.radeus.com' );

$wgLDAPSearchStrings         = array( "RADEUS" => "RADEUS\USER-NAME" );

$wgLDAPSearchAttributes      = array("RADEUS"=>"sAMAccountName");

$wgLDAPBaseDNs           = array("RADEUS"=>"dc=domain,dc=org");

$wgLDAPEncryptionType        = array( "RADEUS" => "ssl" );

$wgMinimalPasswordLength     = 1;

#Configure LDAP Group settings

$wgLDAPUseLDAPGroups         = array( "RADEUS"=>true );

$wgLDAPGroupObjectclass      = array( "RADEUS"=>"group" );

$wgLDAPGroupAttribute        = array( "RADEUS"=>"member" );

$wgLDAPGroupNameAttribute    = array( "RADEUS"=>"cn" );

#Restrict anonymous users

$wgGroupPermissions['*' ]['createaccount']  = false;

$wgGroupPermissions['*' ]['read']       = false;

$wgGroupPermissions['*' ]['edit']       = false;

#Remove the domain portion of the displayed username. Example: "DOMAIN\username" to "username"

list($dom,$userid) = split('[\]',$_SERVER['REMOTE_USER']); 

$wgLDAPAutoAuthUsername = $userid; 

108.175.221.34 (talk) 19:51, 13 October 2016 (UTC)

Just done a quick comparison of your config and my working one. I have these defined:
$wgLDAPProxyAgent  = array( 'example' => 'ldap_user@example.co.uk' );
$wgLDAPProxyAgentPassword = array( 'example' => 'ldap_user_password' );
Add something like this for debugging:
# Debug 1-3
$wgLDAPDebug = 3;
$wgDebugLogGroups['ldap'] = '/tmp/ldapdebug.log';
Cheers
Jon Gerdesj (talk) 22:37, 13 October 2016 (UTC)
Thanks for the quick reply!
It now gives me a blank screen and says
A database query error has occurred. This may indicate a bug in the software.

I ran into the same problem earlier and am unclear at which point this error is happening. I am not sure if it matters that I'm running my web server on a NAS but can't seem to find any specific examples of this setup anywhere to reference so. My active directory is through Windows server 2008. 108.175.221.34 (talk) 23:28, 13 October 2016 (UTC)

How to work with Media wiki Donation Interface plugin

I am new to media wiki and i am creating aan application with media wiki.

Right now, I was trying to work with Donation interface plugin

Extension:DonationInterface

The problem is that, I am able to do all this told in the page. Installed the plug in and added relevant lines in LocalSettings.php

My problem is I could not understand how can I show this plug in in a page just like there example at https://donate.wikimedia.org/w/index.php?title=Special:FundraiserLandingPage&country=IN&uselang=en-gb&utm_medium=spontaneous&utm_source=fr-redir&utm_campaign=spontaneous

Please help Shayasmk (talk) 20:21, 13 October 2016 (UTC)

how do I create a wikipedia page about an artist? Will you be able to google the artists name and see there is a wikipedia 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.


how do I create a wikipedia page about an artist? Will you be able to google the artists name and see there is a wikipedia page? Rad c6 (talk) 20:38, 13 October 2016 (UTC)

Google will find the page by itself. Every Wikipedia user can create a new article. Note however, that the person you write about has to be notable! See en:wp:notability for more information!
If the person is not notable according to these guidelines, the article is very likely to be deleted again in the future. 87.123.38.252 (talk) 08:34, 14 October 2016 (UTC)
Wikipedia has LOTS of rules about content and most new users will not be able to write an article about an artist that will pass those rules. My advice is to always start by becoming a Wikipedian, and fixing smaller things in many other articles before attempting to write an article on your own.
But besides that. this is the help desk for the software that runs Wikipedia, not for Wikipedia itself. The Help desk for the English Wikipedia can be found here. —TheDJ (Not WMF) (talkcontribs) 09:31, 14 October 2016 (UTC)
The discussion above is closed. Please do not modify it. No further edits should be made to this discussion.

What is the "local object cache" mentioned in Manual:Performance_tuning?

Hi guys!

I am trying to set up a new environment for a old medium MW site with about 15 servers. This site used to throw everything into Memcached. However, I saw the Manual:Performance tuning state that: "We recommend bytecode cache for PHP, APCu as local object cache, Memcached for main cache; this is what the Wikimedia Foundation uses for Wikipedia et al.".

I understand the $wgMainCacheType should use CACHE_MEMCACHED. But what exactly the "local object cache" referring to? Is it Localisation cache? How should I set the localsettings.php file to implement the best practice?

Thank you in advance! Deletedaccount4567435 (talk) 05:18, 14 October 2016 (UTC)

Translate Wiki Export only changed texts

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 use the MediaWiki Extension Translate to translate articles into another language. If, however, texts are changed and I want to export the article to a .po file, I can always only export the entire article. I would like to export only the changed texts in a .po file. Is that possible? Rontronic (talk) 09:00, 14 October 2016 (UTC)

ping @NikerabbitTheDJ (Not WMF) (talkcontribs) 09:27, 14 October 2016 (UTC)
is there an email adress??? i 'cant contact him... Rontronic (talk) 09:54, 14 October 2016 (UTC)
TheDJ pinged him already and the provided link has a discussion page where you can also contact the user and in the sidebar there is also an item "Email this user". AKlapper (WMF) (talk) 10:28, 14 October 2016 (UTC)
I replied via email. Summary is: no, but check which items have the fuzzy tag. Nikerabbit (talk) 19:23, 17 October 2016 (UTC)
The discussion above is closed. Please do not modify it. No further edits should be made to this discussion.

special pages->Data and tools ->statistics

In statistics we already have Views total under view statistics.Is there any way to get total no of unique hits to all the pages that is made by individual users.(If the same user hits a page more than once it should be still be considered as single hit). Ashni rai (talk) 11:18, 14 October 2016 (UTC)

Did the answer in Project:Support desk/Flow/2016/10#h-number_of_*unique*_visitors_to_their_pages,_not_just_absolute_view_count.-2016-10-12T09:36:00.000Z not satisfy your needs? 87.123.38.252 (talk) 11:54, 14 October 2016 (UTC)
does it add any report under statistics as I m not getting reply from piwik team. Ashni rai (talk) 08:19, 16 October 2016 (UTC)
It is a bridge to your Piwik installation. Use Piwik to view the Piwik data! 87.123.45.196 (talk) 11:07, 16 October 2016 (UTC)
which special page it adds? Ashni rai (talk) 05:39, 17 October 2016 (UTC)

Download PDF file

Is possibile download PDF file with MediaWiki? 93.54.87.36 (talk) 12:37, 14 October 2016 (UTC)

PDF files can be uploaded to a site running on MediaWiki and then, that PDF file can also be downloaded by others. Was this, what you were asking? AhmadF.Cheema (talk) 15:23, 14 October 2016 (UTC)
@AhmadF.Cheema thank you for your replay: I solve my problem autonomy with the URL of uploaded file 93.54.87.36 (talk) 15:55, 14 October 2016 (UTC)

Using a template on my local MediaWiki installation

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 interested in using routemaps:

https://en.wikipedia.org/wiki/Template:Routemap

on my local MediaWiki. From what I understand, I think I need my own parser or module?

If I copy example 1.2 into a template on my own system, it does nothing. A box on that page lists 3 modules it uses. It also seems like I would need the graphics themselves. I don't see any routemap addon that someone has created, like some other features I added to my local install, like Google Map functionality.

What's the best way forward with this? Thanks. Nydepot (talk) 18:18, 14 October 2016 (UTC)

You will at-least need Extension:Scribunto and to import the template page (i.e. Template:Routemap) along with other templates used on this page. This can be done by using Special:Export and checking the "Include templates" option before export. Then, import the exported file into your own Wiki. AhmadF.Cheema (talk) 01:02, 15 October 2016 (UTC)
Thank you Ahmad. 24.97.197.43 (talk) 16:32, 17 October 2016 (UTC)
The discussion above is closed. Please do not modify it. No further edits should be made to this discussion.

Visual Editor - Insert - Media

In order to get the visual editor to recognize an uploaded image file, we have to upload the file with the file name having the first letter followed by an underscore in order to get the image file to appear using the Media settings window. For example, "Dog.jpg" will not come up in the display if the letter d is entered, but if we load the file using the file name "D_Dog.jpg" it will appear. Has anyone else experienced this? If so, is there a fix?

We are using Wikimedia & visual editor v1.27 with PHP v5.5.31 Haskinslabs (talk) 19:17, 14 October 2016 (UTC)

Automatic log out

Hi, A few weeks ago I started a Wikitravel account. I had the problem that it kept logging me out and pretending that my user didn't exist (MegaMgala) so I cannot ask for a new password. Then suddenly I stopped having the problem.

Now it logs me in just fine in Spanish but when I switch languages it logs me out again. Also the Spanish version pretends I never made a contribution which isn't the case. Before I could enter the English and Dutch version just fine without the system logging me out. Now I can only log-in to the English and Spanish version seperately and the Dutch version I cannot access at all.

Can anyone tell me what keeps happening? It is really frustrating. It shouldn't be that hard. I can't even

Thank you so much,

Cheers,

MegaMgala MegaMgala (talk) 00:03, 15 October 2016 (UTC)

While your account exists in the Spanish and English versions, there is no account named MegaMgala in the Dutch one. WikiTravel obviously is not using one single user table, but multiple user tables.
I think this also is the reason for why you think it logs you out again when you change to a different language: Because it in fact is a different account, which you are using there and while you are logged in with the one, you are not necessarily also logged in with the other. In fact I think this is not even a log out - you just have not been logged in. 87.123.12.224 (talk) 00:46, 15 October 2016 (UTC)
So do you think there is a way of adding info in multiple languages with the same account. I swear it worked once before but I'm not too sure now.
Thank you, MegaMgala (talk) 00:07, 2 November 2016 (UTC)

Bug in parser

109.172.58.99 (talkcontribs)

Hello. I think I found a bug in the parser. For example: article about Imam Shamil:https://en.wikipedia.org/wiki/Imam_Shamil. When I try to parse full article it's okay:

https://en.wikipedia.org/w/api.php?action=parse&disabletidy&disabletoc&disableeditsection&disablelimitreport&page=Imam_Shamil&formatversion=2

Please see second section (Family and early life). Its wrapped to p tag. But I try to get only second section (index = 1), last paragraph is not wrapped to p tag:

https://en.wikipedia.org/w/api.php?action=parse&disabletidy&disabletoc&disableeditsection&disablelimitreport&page=Imam_Shamil&formatversion=2&section=1

Because of this, I can not properly handle HTML. 109.172.58.99 (talk) 13:19, 15 October 2016 (UTC)

Putting wiki in subdirectory

Currently I have my Wiki at http://52.26.118.44/index.php/Main_Page. I would like for the wiki to be in IPaddress/wiki/ instead of IPaddress/index.php/. In other words, I would like to have the wiki in a subdomain. Currently the site is in the root site directory, which is /var/www/html. Is it as simple as creating a directory "wiki" in the html directory and moving everything there? If there is documentation, could someone point me to them? I found Manual:Short URL, but that did not seem to be up to date. I am using a EC2 instance on AWS and there is no apache2 (or apache) directory in etc. Jasonbunnell (talk) 18:43, 15 October 2016 (UTC)

Which Operating System does your Amazon EC2 instance running?
Depending upon your OS, apache(httpd) files may be at different location. 49.207.55.8 (talk) 19:41, 15 October 2016 (UTC)
Why do you think that Manual:Short URL would not be up to date?
You will need to update some of the configuration variables in LocalSettings.php. Manual:$wgScript is a candidate here. 87.123.45.196 (talk) 19:53, 15 October 2016 (UTC)

Database error changing password on 1.27.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.


http://ballistipedia.com/

Product Version
MediaWiki 1.27.1
PHP 5.6.26 (cgi-fcgi)
MySQL 5.1.73-log

I just patched to 1.27.1. Was prompted to choose a longer password, but every time I try to change my password I get:

Database error

A database query error has occurred. This may indicate a bug in the software. Dbooksta (talk) 19:57, 15 October 2016 (UTC)
Also getting the same issue on the wiki we have set up. Upon account creation with a temporary password, login it asks you to set a new password. Then getting the exact same error: A database query error has occured. This may indicate a bug in the software.
Any solutions? 124.191.159.39 (talk) 22:09, 15 October 2016 (UTC)
Run the database updater Reedy (talk) 20:18, 16 October 2016 (UTC)
The discussion above is closed. Please do not modify it. No further edits should be made to this discussion.

API stopped getting wikipedia article

Hi,

I have written a python script to extract content using this api: 'https://en.wikipedia.org/w/api.php?action=query&format=json&prop=extracts&titles='+urllib2.quote(line)+'&explaintext=1&exsectionformat=wiki'

This is where urllib2.quote(line) is a list of keywords of valid article titles. But after a short while it stopped working. It used to be able to extract all the contents but now it stopped. Please help me.

I have posted a thread in stackoverflow which shows my code and test file:

http://stackoverflow.com/questions/40066414/re-extracting-content-from-api-stops-halfway

Thank you Jseng001 (talk) 03:34, 16 October 2016 (UTC)

Importing

On this page https://anjuna.miraheze.org/wiki/Anjunabeats_Volume_3, I have imported a page from Wikipedia to get the infobox.

At the top of the page is '</td></tr>' which I cannot expunge. It isn't in the code either. Anjuna (talk) 05:43, 16 October 2016 (UTC)

Page isn't working after changing localsettings.php

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 installed mediawiki on ubuntu 14.04. Everything was working great until I tried changing the logo image in localsettings.php.

After I did that my wiki wont load and i get the error:

"the page isn't working

(IP) is currently unable to handle this request.

http error 500"

It is quite possible I messed up some other settings in the localsettings.php file. My question is, can I just replace the localsettings.php file or is there some other way to solve this?

Thank you in advance for any help. 216.139.2.136 (talk) 06:10, 16 October 2016 (UTC)

This error probably indicates you made some syntax error while making the changes. Try to get back to how the LocalSettings.php file originally was and see if that solves the problem. Also, is the logo image file readable? AhmadF.Cheema (talk) 07:26, 16 October 2016 (UTC)
Any ideas on how to get the localsettings.php file back? I'm using digitalocean's one click install for mediawiki if that helps.
As far as the logo image, it was a imgr link.
Thanks 216.139.2.136 (talk) 07:40, 16 October 2016 (UTC)
or even how to revert to the old Localsettings.php? 216.139.2.136 (talk) 08:47, 16 October 2016 (UTC)
Try commenting out the code lines which define the logo image, see if the problem gets solved. That way we can be sure this is the code line causing the issue. AhmadF.Cheema (talk) 08:59, 16 October 2016 (UTC)
Hi,
I commented out the code lines which I changed and I still get the http error 500, I tried to open the page on another web browser and just get a blank white screen. Do you think updating mediawiki would help? 216.139.2.136 (talk) 21:33, 16 October 2016 (UTC)
RESOLVED-
I accidentially changed the syntax of $wgEmergencyContact to the wrong IP, changed it and now it works thank you! 216.139.2.136 (talk) 21:47, 16 October 2016 (UTC)
The discussion above is closed. Please do not modify it. No further edits should be made to this discussion.

$wgUserEmailUseReplyTo is ignored

Hi,

Im on 1.26.3 and use $wgUserEmailUseReplyTo = true, $wgPasswordSender = "foo@bar.foobar" and $wgSMTP.

The problem is, that wgUserEmailUseReplyTo gets ignored. The user to user email still just sets the from adress to the users email.

How to change this?

Thanks! 89.14.106.189 (talk) 18:35, 16 October 2016 (UTC)

If it's not working as documented please report a bug. See also T114084, affecting only on your email copies. Ciencia Al Poder (talk) 10:17, 17 October 2016 (UTC)

How to upload image to a remote shared wiki?

Hi girls and guys,

Due to some government regulation problem in China. We have to move some wikis with simplified-Chinese to China while others stay in US. We used to use ForeignDBRepo in $wgForeignFileRepos to get all wikis upload and access shared image in common.moegirl.org. Since all different wikis stay together and they can access same database and same file directory, this setting work fine.

However, now we got 2 databases and 2 servers separate from each other about 7,000 miles. By using $wgForeignFileRepos with ForeignAPIRepo in local wikis and $wgThumbnailScriptPath with thumb.php settings in common.moegirl.org, we can access existed images. But can't upload images to same file directory as we used to do.

I saw there are mw.ForeignStructuredUpload and mw.ForeignStructuredUpload.BookletLayout function and $wgUploadDialog setting become available since MW ≥ 1.27.

Can some one explained or provide help and/or documents on how to use these cross-wiki uploads settings?

Thank you!!!!!!!

Manual:$wgUploadDialog Upload dialog Deletedaccount4567435 (talk) 02:04, 17 October 2016 (UTC)

@Krinkle could you please be kind to provide little help on the cross-wiki uploads function? I saw you answered a $wgForeignFileRepos about 5 years ago. Sorry for bother you. Deletedaccount4567435 (talk) 02:08, 17 October 2016 (UTC)
See Manual:$wgUseInstantCommons#Details for a configuration example that you can use for InstantCommons. You can adapt it to your needs. It will basically hotlink images stored in common.moegirl. You need to configure common.moegirl to thumbnail images with a 404 handler, or maybe setting also thumbScriptUrl (see $wgForeignFileRepos) would also work. Ciencia Al Poder (talk) 10:13, 17 October 2016 (UTC)

How to require users to confirm their email address before being allowed to login in MediaWiki

How to require users to confirm their email address before being allowed to login in MediaWiki Jainuddin786 (talk) 08:07, 17 October 2016 (UTC)

Maybe $wgEmailConfirmToEdit would serve your purposes. See this. Or you can use Extension:ConfirmAccount to require the account to be confirmed by an admin. AhmadF.Cheema (talk) 13:21, 17 October 2016 (UTC)

Site not displaying content

In the site http://www.foodprocessmodel.org/index.php?title=Main_Page, the contents have suddenly stopped displaying. For example, the Main Page is empty. However, if one does View Source, all the content is there. I have not used the site for a while so I do not know if this is due to version change of software. The same is true for all pages in the site. 64.134.128.74 (talk) 13:45, 17 October 2016 (UTC)

See Manual:Errors_and_symptoms#All_pages_have_no_content.2C_but_when_editing_a_page_the_wiki_text_is_there! 87.123.12.180 (talk) 13:55, 17 October 2016 (UTC)

VisualEditor and WikiEditor not working in 1.27.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.


We have recently upgraded to MediaWiki 1.27.1 but have found that neither the VisualEditor or WikiEditor extensions work in this version.

For VisualEditor I have tried using a known working configuration from our previous version (1.24.3) and clicking on the Edit link simply redirects to the same page (with veaction=edit appended to the url). The very latest version of VisualEditor was also tried without success.

After giving up on VisualEditor I decided to fall back on WikiEditor which sounded like a more established platform (but perhaps with less features). Again, I tried a known working configuration from the earlier version of MediaWiki and the toolbar was not shown. The very latest version of WikiEditor was also tried without success.

Do you have any comments? 62.255.136.202 (talk) 14:58, 17 October 2016 (UTC)

WikiEditor works for me.
Open developer tools of your browser (hit F12) and look for any error displayed in the error console.
If your wiki is publicly accessible that would help incredibly Ciencia Al Poder (talk) 20:04, 17 October 2016 (UTC)
Thanks for your reply. The only errors that I get are these (but they happen whether or not WikiEditor is enabled):
[70301b78d7414677605a0ccc] /mediawiki/load.php?debug=false&lang=en-gb&modules=startup&only=scripts&skin=vector   LogicException from line 709 of /opt/mediawiki/includes/resourceloader/ResourceLoaderModule.php: getDefinitionSummary must call parent method
[70301b78d7414677605a0ccc] /mediawiki/load.php?debug=false&lang=en-gb&modules=startup&only=scripts&skin=vector   LogicException from line 709 of /opt/mediawiki/includes/resourceloader/ResourceLoaderModule.php: getDefinitionSummary must call parent method
Problematic modules: {"startup":"error"}
By the way, we are using PHP7. Which version are you using? 62.255.136.202 (talk) 08:12, 18 October 2016 (UTC)
PHP 5.6
May be the same problem as Project:Support desk/Flow/2015/11#h-[solved]_ResourceLoader_failed_after_upgrade_to_MW1.26.0-2015-11-26T20:58:00.000Z? Ciencia Al Poder (talk) 09:25, 18 October 2016 (UTC)
Thanks, it does look similar but we are not using the EventLogging module that they refer to. Maybe we need to to look at some of the other modules. F1alan (talk) 12:42, 18 October 2016 (UTC)
Disable all other extensions, and see if the error is fixed. Then enable one by one until you find the culprit. Ciencia Al Poder (talk) 09:33, 19 October 2016 (UTC)
It turned out to be the SyntaxHighlight_GeSHi extension. Upgrading to the latest version of this allows WikiEditor to work. F1alan (talk) 11:24, 24 October 2016 (UTC)
The discussion above is closed. Please do not modify it. No further edits should be made to this discussion.

api

How to check if the api is enabled in mediawiki? Ashni rai (talk) 07:08, 18 October 2016 (UTC)

Manual:$wgEnableAPI. Note that although enabled, it may be restricted to some user groups. Ciencia Al Poder (talk) 09:27, 18 October 2016 (UTC)

Mediawiki Localization + common database

Hello all. I have an idea to make my wiki at least on two-three languages just like ar wikipedia, i.e.:

  • en.mywiki.com - English
  • de.mywiki.com - German
  • ru.mywiki.com - Russian

+ common media files that can be used at all localized wikis + one user for all localizations + interwiki that allows to make links between one article, but at different languages Could someone give a link or explain how to make it? Fokebox (talk) 14:43, 18 October 2016 (UTC)

See Manual:Wiki family#Multiple wikis sharing common resources Ciencia Al Poder (talk) 09:45, 19 October 2016 (UTC)
Yes, I saw the instruction but not all clear for me ... now I just installed two wikis: English and German and have to LocalSettings files (LocalSettings_en.php and LocalSettings_de.php) and made general LocalSettings.php file with code listed in the instruction, but now it is not clear for me what I shall do next to make working wikis at subdomains% de.mywiki.com and en.mywiki.com. What is the next step? Fokebox (talk) 10:12, 19 October 2016 (UTC)
I also would like to know your opinion what is better to have one core of mediawiki and make subdomains for each localization (I still don't know how to do that) OR install mediawiki separately from yeach to its subdomain (en.mywiki.com, de.mywiki.com etc.) What do you think? Fokebox (talk) 14:27, 19 October 2016 (UTC)
If you own the mywiki.com domain, you need to set up DNS for subdomains. This is usually handled by editing the DNS records in the domain registrar where do you have the domain, or maybe in your hosting. You may specify each subdomain the same IP of the server, or set it so any subdomain goes to the same IP.
On the web server, you need to configure a virtual host setting to handle each subdomain. If installations are different, make the document root point to each installation.
Having separate installs is easier (or safer) to setup if you generally don't know how to share the same install. Otherwise, you can point all to the same installations, have common settings in the LocalSettings file, and then maybe include additional settings depending on the subdomain. Ciencia Al Poder (talk) 09:52, 20 October 2016 (UTC)
Thank you for clarification. I just don't know what to do next, so what I have already done:
Installed mediawiki to the root directory of mywiki.com as usual (I chose English) and uploaded LocalSettings.php file and renamed it according to manual to LocalSettings_en.php and start the installation again, but chose German language and indicated the same database, but added prefix to the tables "_de". Downloaded LocalSettings php file and renamed it to LocalSettings_de.php.
Now I created subdomains at my hosting de.mywiki.com and en.mywiki.com
... and now I don't know if I have done all correct and what should I do the next.
I would be thankful greatly for your help. Fokebox (talk) 13:07, 20 October 2016 (UTC)
you should publish each installation on their own domain. Note that, if you've installed all in the same subdomain by renaming LocalSettings.php, you should fix at least $wgServer because they'll be pointing to the same one. Ciencia Al Poder (talk) 21:20, 20 October 2016 (UTC)
Do you mean that at any case I shall upload all installing files to subdomains and make an installation? If so, I indicate one database for usage and shall mark prefix for tables at database like "de_", "en_" etc, and if so how to make one database of users so that I can use one account for all subdomains?
and one more question I do want create additional wiki for uploading files (images etc.) to files.mywiki.com and to make one file accessible for all subdomains. How to make it? Fokebox (talk) 07:53, 21 October 2016 (UTC)

Users are logged out too often

Before upgrading to 1.27.1, users were signed in for more than half an hour at least if they check Keep me logged in on previous 1.26 but now it just logs out only after 2mins of gap!

Is there a way to configure there somewhere?

I've not set any values for $wgSessionsInObjectCache and $wgSessionCacheType. Also the $wgMainCacheType = CACHE_NONE; without any caching. 49.207.60.101 (talk) 14:49, 18 October 2016 (UTC)

Try explicitly setting
$wgSessionCacheType = CACHE_DB; Ciencia Al Poder (talk) 09:42, 19 October 2016 (UTC)
I am having the same problem. I have tried setting the above config line, along with a host of other settings and variables, all to no effect. As best I can tell from the debug log, the session cookie is being set with a 0 expiry time, specifically by mediawiki (other cookies set by MW have the correct expiry time). Expanding $wgCookieExpiration, $wgExtendedLoginCookieExpiration and $wgObjectCacheSessionExpiry has had no effect. Can anyone help? Thanks. 122.58.55.127 (talk) 09:23, 24 October 2016 (UTC)
Expiry time of 0 means it will expire at the end of the session (when the browser is closed), so it's fine as is. Ciencia Al Poder (talk) 02:39, 25 October 2016 (UTC)
Not really, I am experiencing frequent logouts (after only 5 minutes) and my users are complaining of the same. The "keep me logged in" option doesn't work. 122.58.55.127 (talk) 13:12, 25 October 2016 (UTC)

Does MediaWiki 1.27 work well in Ubuntu 16.04LTS?

Does MediaWiki 1.27 work well in Ubuntu 16.04LTS? My current build is Ubuntu 11.04 and Mediawiki 1.16.4. I plan to standup a new Virtual server, Install media wiki and Migrate mediawiki over to the new one.m in Vjsuarez2002 (talk) 15:33, 18 October 2016 (UTC)

As long as the fitting versions (Apache, PHP, MySQL/MariaDB) from compatibility are there, that should not be a problem! 87.123.45.172 (talk) 20:20, 18 October 2016 (UTC)
Awesome, thank you! One more question, is 64-but Ubuntu compatible? Vjsuarez2002 (talk) 19:57, 20 October 2016 (UTC)
MediaWiki is not compiled byte-code hence 32bit or 64bit should not be relevant. Malyacko (talk) 09:41, 21 October 2016 (UTC)
I've got a wiki on 16.04 LTS and have nothing to complain about :D 213.207.123.215 (talk) 10:18, 21 October 2016 (UTC)

How to edit Comment on an uploaded Image file?

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, it's the first time I've run my own wiki, I have MediaWiki 1.27.1,

I uploaded an image that had a long Comment description, then noticed I had worded it wrongly. I don't see a way to edit the Comment itself.

If I "Upload a new version of this file", users still see the original Comment (the bad one) directly beneath the image, on the image page. In other words, the image can be updated , but the Comment can't (?). Not in the place it is most visible. Yes, it was changed in the File History field for Comments. But like I say, it is a long comment which it truncated in the File History. Having it be wrong where it can be easily seen in full right below the image, but right where it can't be seen (cutoff in the File History), is unacceptable.

The core problem is that users only see the original Comment underneath the picture. Am I doing something wrong?

This is not a caching issue. Forcing action=purge will update the image, but it still has that original comment directly below it on the image page. No matter how many times I Upload a new version of the image.

Is my only recourse, the workaround of making an entirely new image from the same image? This seems very poor if someone wants to attach, edit, and update detailed supporting comments for images.

Thanks if you can help! RedKnight7 (talk) 15:55, 18 October 2016 (UTC)

You should be able to go to the file page, and use the Edit link at the top. Editing an image won't actually edit the bitmap itself, but let you edit the comment. TheAlmightyGuru (talk) 18:47, 18 October 2016 (UTC)
Darn, I can't believe I didn't notice that. I was focussed on the image controls. That's all I needed! Problem solved, thanks! RedKnight7 (talk) 18:55, 18 October 2016 (UTC)
The discussion above is closed. Please do not modify it. No further edits should be made to this discussion.

Resize 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.


Hi, I'm trying to resize the images posted to maximum 800px wide, but I use the FRAME parameter in order to put the subtitles below, so I can not use the Wiki images variables.

So I was doing debug here to find out where the call occurs in loading the image to direct power to change the source code.

And I came to the Linker.php file.

The line "$ s =" <div class = \ "thumb t {$ fp ['align']} \"> <div class = \ "thumbinner \" style = \ "width: {$ outerWidth} px; \" > ";"

It has $ outerWidth parameter that from what I understand, determines the image size when you will be charged.

So I was wondering if anyone can help me change the source code so that if the user upload a larger image than 800px wide, this image is automatically with only 800px wide to be displayed. Analistacavanha (talk) 17:38, 18 October 2016 (UTC)

why don't use |thumb| instead of |frame|, which allows to specify a width? Ciencia Al Poder (talk) 09:50, 19 October 2016 (UTC)
Humm le´me see, i´ll try. Analistacavanha (talk) 10:46, 19 October 2016 (UTC)
Yeah, got it, thank you bro.
Very happy. Analistacavanha (talk) 10:56, 19 October 2016 (UTC)
The discussion above is closed. Please do not modify it. No further edits should be made to this discussion.

Category count decreases when not logged in.

Known bug with MediaWiki and anonymous users.

Versions = Wiki: 1.26.2, PHP: 5.4.43, MySQL: 5.5.51-38.2.

Site = http://www.vgmpf.com

I created a new page with a category tag and it shows up in the category page like it should. However, it only appears in the category to logged in users. For users who are logged out, the page is not in the category, and the total page count of the category decreases reflecting the missing page. I can still navigate to the page directly when logged out. I don't have any extensions to hide pages and most of the pages I created in the past show up properly in the category while logged out.

The only major changes I've made to the Wiki in the past year are upgrading from 1.25 to 1.26.2 and switching from manual user account creation to using the ConfirmEdit extension.

If you know why the pages aren't showing up in their categories for logged out users, please let me know, thanks! TheAlmightyGuru (talk) 18:45, 18 October 2016 (UTC)

This looks like a caching problem. Does the wrong number appear also when navigating using the "private browsing" feature of your browser? Ciencia Al Poder (talk) 09:49, 19 October 2016 (UTC)
I get the same result when I use a private browser. 172 pages in the category while logged out, 176 while logged in (similar results in other categories). My site uses caching, but I haven't changed the setting in a long time, and this problem seems to have appeared within the past 30 days. Thank you for the reply! TheAlmightyGuru (talk) 12:22, 19 October 2016 (UTC)
Sadly, this is broken when $wgUseFileCache T26575 Ciencia Al Poder (talk) 20:17, 19 October 2016 (UTC)
Thank you Ciencia Al Poder. I'm assuming the pages will migrate their way into their proper categories for anonymous users as the cache updates. In the meantime, I will patiently wait for a fix. TheAlmightyGuru (talk) 13:31, 20 October 2016 (UTC)

Extension:MsUpload

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.


while uploading it says internal error occured.Can anyone guide me on this issue Ashni rai (talk) 07:20, 19 October 2016 (UTC)

Does normal upload (through Special:Upload) work? Ciencia Al Poder (talk) 09:34, 19 October 2016 (UTC)
when we tried to upload(through Special:Upload) it throws Could not create directory "mwstore://local-backend/local-public/c/c7". Ashni rai (talk) 10:11, 19 October 2016 (UTC)
you should fix permissions on your upload folder (configured by $wgUploadDirectory, defaults to the folder /images inside the MediaWiki installation folder). Be sure it's writable by the webserver Ciencia Al Poder (talk) 19:40, 19 October 2016 (UTC)
thank u Ciencia. Ashni rai (talk) 05:02, 20 October 2016 (UTC)
The discussion above is closed. Please do not modify it. No further edits should be made to this discussion.

SimpleBatchUpload

is SimpleBatchUpload supported in 1.23.5 version of mediawiki? Ashni rai (talk) 08:07, 19 October 2016 (UTC)

jQuery is not defined when upgrade from 1.20 to 1.25

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 written my extension when I use 1.20, and there is some Javascript in the code, for example

<?php

class Example

{

public static function onBeforePageDisplay( OutputPage &$out, Skin &$skin )

{

echo '<script>';

echo '$(function() { console.log("test") });'

echo '</script>';

}

It works perfectly in 1.20, but after I upgrade MediaWiki to 1.25, I got message jQuery is not defined(…), I am pretty sure jQuery is loaded, because I type $('body').length on console panel, it returns 1, how to fix it? Chan15tw (talk) 09:46, 19 October 2016 (UTC)

I don't know, what you are actually trying to do. However, if you need jQuery, then the right way is not to output your JavaScript code into the page directly. Instead, include your code inside a ResourceLoader module. 87.123.45.172 (talk) 11:57, 19 October 2016 (UTC)
You can't just insert scripts that depend on other scripts like that, as everything is loaded asynchronously since 1.26. As said above, making a RL module is the best way. If there is some reason you really have to have an inline script, then in currently supported versions of MW (1.26+) you can add your script to the RL queue, so it will be executed after the core modules (mediawiki and jQuery) are ready.
(window.RLQ=window.RLQ||[]).push(function(){
$(function() { console.log("test") });
}); 137.147.144.56 (talk) 06:15, 20 October 2016 (UTC)
ResourceLoader solve my problem, I will also try RLQ, thanks all Chan15tw (talk) 22:12, 20 October 2016 (UTC)
The discussion above is closed. Please do not modify it. No further edits should be made to this discussion.

Extension:SimpleBatchUpload

To download this extension the recommended way to download this extension is by using Composer. To do that, i was asked to add the following to the MediaWiki composer.local.json file and run php composer.phar update mediawiki/simple-batch-upload from the MediaWiki installation directory. But i am not able to find the composer.local.json file. So i tried this in composer.json. Has anyone faced a similar issue. Kindly guide me through this. Ashni rai (talk) 10:49, 19 October 2016 (UTC)

How to use Description2

Hello.

I installed Description2.

How now to use it? Does it generate metadata by itself? TraaBBIT (talk) 11:19, 19 October 2016 (UTC)

The extension is working on the page text, extracts data from there and sets the result as content of the meta tag. 87.123.45.172 (talk) 11:53, 19 October 2016 (UTC)
OK.
Is there any way to setup meta description on some page? I wan't to have some meta description on my main page. TraaBBIT (talk) 10:48, 20 October 2016 (UTC)

Which addons (other than editor) are helpful making formats to make new pages in?

I just started Mediowiki and only have Editor. What can help me to make standard pages following my own constructed format? Irene van Oostrum (talk) 12:41, 19 October 2016 (UTC)

You can use templates. These are boilerplates, which you can use and fill with content on multiple pages. See Help:Templates for details! 87.123.45.172 (talk) 13:11, 19 October 2016 (UTC)

how do you write text to make an clickable email adress?

how do you write text to make an clickable email adress? Irene van Oostrum (talk) 12:42, 19 October 2016 (UTC)

[mailto:info@example.org email me] should be working.
See also Help:Links#External links! 87.123.45.172 (talk) 13:12, 19 October 2016 (UTC)

need help trying to combined old acct with new acct

my old log in is under stephanie stewart password i done forget however i can't seem to locate info in system -this is the problem with having your own computer and letting the computer keep the password

anyway new name is now stephaniergoodwin Stephaniergoodwin (talk) 13:00, 19 October 2016 (UTC)

If you are speaking about an account in Wikipedia, then two accounts can be combined. However, this requires you to do an according request and to post a confirmation with the other account. So you will need the password of the old account.
The name of the old account obviously is not "stephanie stewart". An account with that name does not exist. However, you will be able to find your old account, if you view an article, which you have once edited. Then use the history of that article to find your old username.
If you have an email address attached to the old account, you will be able to use Special:PasswordReset to reset the password!
You can also use the "Email new password" feature on the Special:UserLogin page! 87.123.45.172 (talk) 13:09, 19 October 2016 (UTC)

Explicitly disable autocomplete?

Hi,

When scanning my wiki with Rapid7 Nexpose I get the following vulnerability:

Form with action https://wiki.example.url/index.php/Special:UserLogin does not explicitly disable autocomplete for the following sensitive fields: wpPassword

Is there a simple way to fix this? I looked at LoginSignupSpecialPage.php, but found no easy way to fix it myself. Any help regarding this issue is highly appreciated.

Best regards.

Paddy 213.207.123.215 (talk) 13:45, 19 October 2016 (UTC)

It’s questionable how well this actually works — many browsers seem to ignore it — but it’s probably
what you want to add:
autocomplete=“off”

However, if you ask me, this is not a security problem. It is a company trying to make money from people's fears, which the company created itself. 87.123.45.172 (talk) 18:49, 19 October 2016 (UTC)

Since LoginSignupSpecialPage.php is not plain php it's not easy to add autocomplete="off" (I would not know where to add it, anyway). Another thing is that any modification made to such files are likely to be gone after updating MediaWiki.
About your comment ... (in my case) it's not fear. It's a simple case of risk management where in this case I have to assess likelyhood and impact. When a simple modification can be made to make things safer, it's worth a try :D 213.207.123.215 (talk) 08:14, 21 October 2016 (UTC)
If you are on latest mediawiki, change value of $mAutocomplete in this line from false to off - https://github.com/wikimedia/mediawiki/blob/a65a3516055e5fe3e4d44ee1efd84d4754946a58/includes/htmlform/HTMLForm.php#L219
This will turn off autocomplete for all forms 106.51.29.162 (talk) 16:00, 15 November 2016 (UTC)

Hooks.php in line 195

CENTOS 7.2 + nginx 1.10 + php 7.1

Warning: Parameter 1 to ExtVariables::init() expected to be a reference, value given in /usr/share/nginx/html/ll/includes/Hooks.php on line 195

Warning: Parameter 1 to ImageMap::onParserFirstCallInit() expected to be a reference, value given in /usr/share/nginx/html/ll/includes/Hooks.php on line 195

Warning: Parameter 1 to InputBoxHooks::register() expected to be a reference, value given in /usr/share/nginx/html/ll/includes/Hooks.php on line 195

Warning: Parameter 1 to Poem::init() expected to be a reference, value given in /usr/share/nginx/html/ll/includes/Hooks.php on line 195

Warning: Parameter 1 to SyntaxHighlight_GeSHi::onParserFirstCallInit() expected to be a reference, value given in /usr/share/nginx/html/ll/includes/Hooks.php on line 195

Warning: Parameter 1 to ExtVariables::onParserClearState() expected to be a reference, value given in /usr/share/nginx/html/ll/includes/Hooks.php on line 195

Warning: Parameter 1 to Cite::clearState() expected to be a reference, value given in /usr/share/nginx/html/ll/includes/Hooks.php on line 195

Warning: Parameter 1 to MobileFrontendHooks::onOutputPageBeforeHTML() expected to be a reference, value given in /usr/share/nginx/html/ll/includes/Hooks.php on line 195

Warning: Parameter 1 to ExtVariables::onParserClearState() expected to be a reference, value given in /usr/share/nginx/html/ll/includes/Hooks.php on line 195

Warning: Parameter 1 to Cite::clearState() expected to be a reference, value given in /usr/share/nginx/html/ll/includes/Hooks.php on line 195

Warning: Parameter 1 to ExtVariables::onParserClearState() expected to be a reference, value given in /usr/share/nginx/html/ll/includes/Hooks.php on line 195

Warning: Parameter 1 to Cite::clearState() expected to be a reference, value given in /usr/share/nginx/html/ll/includes/Hooks.php on line 195

Warning: Parameter 1 to MobileFrontendHooks::onBeforePageDisplay() expected to be a reference, value given in /usr/share/nginx/html/ll/includes/Hooks.php on line 195

Warning: Parameter 1 to TimedMediaHandlerHooks::pageOutputHook() expected to be a reference, value given in /usr/share/nginx/html/ll/includes/Hooks.php on line 195

Warning: Parameter 1 to ExtVariables::onParserClearState() expected to be a reference, value given in /usr/share/nginx/html/ll/includes/Hooks.php on line 195

Warning: Parameter 1 to Cite::clearState() expected to be a reference, value given in /usr/share/nginx/html/ll/includes/Hooks.php on line 195

Warning: Parameter 1 to ExtVariables::onParserClearState() expected to be a reference, value given in /usr/share/nginx/html/ll/includes/Hooks.php on line 195

Warning: Parameter 1 to Cite::clearState() expected to be a reference, value given in /usr/share/nginx/html/ll/includes/Hooks.php on line 195

Warning: Parameter 1 to ExtVariables::onInternalParseBeforeSanitize() expected to be a reference, value given in /usr/share/nginx/html/ll/includes/Hooks.php on line 195

Warning: Parameter 2 to Cite::checkRefsNoReferences() expected to be a reference, value given in /usr/share/nginx/html/ll/includes/Hooks.php on line 195

Warning: Parameter 2 to Cite::checkRefsNoReferences() expected to be a reference, value given in /usr/share/nginx/html/ll/includes/Hooks.php on line 195

Warning: Parameter 1 to ExtVariables::onParserClearState() expected to be a reference, value given in /usr/share/nginx/html/ll/includes/Hooks.php on line 195

Warning: Parameter 1 to Cite::clearState() expected to be a reference, value given in /usr/share/nginx/html/ll/includes/Hooks.php on line 195

Warning: Parameter 1 to MwEmbedResourceManager::registerModules() expected to be a reference, value given in /usr/share/nginx/html/ll/includes/Hooks.php on line 195

Warning: Parameter 1 to TimedMediaHandlerHooks::resourceLoaderRegisterModules() expected to be a reference, value given in /usr/share/nginx/html/ll/includes/Hooks.php on line 195

Warning: Parameter 1 to GadgetHooks::registerModules() expected to be a reference, value given in /usr/share/nginx/html/ll/includes/Hooks.php on line 195

Warning: Parameter 1 to MobileFrontendHooks::onResourceLoaderRegisterModules() expected to be a reference, value given in /usr/share/nginx/html/ll/includes/Hooks.php on line 195

Warning: Parameter 1 to ExtVariables::onParserClearState() expected to be a reference, value given in /usr/share/nginx/html/ll/includes/Hooks.php on line 195

Warning: Parameter 1 to Cite::clearState() expected to be a reference, value given in /usr/share/nginx/html/ll/includes/Hooks.php on line 195

Warning: Parameter 1 to ExtVariables::onInternalParseBeforeSanitize() expected to be a reference, value given in /usr/share/nginx/html/ll/includes/Hooks.php on line 195

Warning: Parameter 2 to Cite::checkRefsNoReferences() expected to be a reference, value given in /usr/share/nginx/html/ll/includes/Hooks.php on line 195

Warning: Parameter 2 to Cite::checkRefsNoReferences() expected to be a reference, value given in /usr/share/nginx/html/ll/includes/Hooks.php on line 195

Warning: Parameter 1 to CiteThisPageHooks::onSkinTemplateBuildNavUrlsNav_urlsAfterPermalink() expected to be a reference, value given in /usr/share/nginx/html/ll/includes/Hooks.php on line 195

Warning: Parameter 1 to ExtVariables::onParserClearState() expected to be a reference, value given in /usr/share/nginx/html/ll/includes/Hooks.php on line 195

Warning: Parameter 1 to Cite::clearState() expected to be a reference, value given in /usr/share/nginx/html/ll/includes/Hooks.php on line 195

Warning: Parameter 1 to Avatar\Hooks::onSkinTemplateOutputPageBeforeExec() expected to be a reference, value given in /usr/share/nginx/html/ll/includes/Hooks.php on line 195

Warning: Parameter 1 to MobileFrontendHooks::onSkinTemplateOutputPageBeforeExec() expected to be a reference, value given in /usr/share/nginx/html/ll/includes/Hooks.php on line 195

Warning: Parameter 1 to ExtVariables::onParserClearState() expected to be a reference, value given in /usr/share/nginx/html/ll/includes/Hooks.php on line 195

Warning: Parameter 1 to Cite::clearState() expected to be a reference, value given in /usr/share/nginx/html/ll/includes/Hooks.php on line 195

Warning: Parameter 1 to Avatar\Hooks::onBaseTemplateToolbox() expected to be a reference, value given in /usr/share/nginx/html/ll/includes/Hooks.php on line 195 Tunglinwu (talk) 18:52, 19 October 2016 (UTC)

You obviously have a huge number of extensions, which are passing a value instead of a reference to call_user_func_array() (however this may not work in PHP 5.3 and beyond, the manual is not clear at that point). 87.123.45.172 (talk) 19:13, 19 October 2016 (UTC)
And note that a final version of PHP 7.1 has not yet been released. Also currently there is no version of MediaWiki, which would officially be working with PHP 7.1. This might (should) change for MediaWiki 1.28, but 1.27 LTS version is not compatible with PHP 7.1. 87.123.45.172 (talk) 19:16, 19 October 2016 (UTC)
Will this be resolved in 1.29? Still and issue in 1.28. Thanks. 2601:40F:C102:2720:4D42:B382:AE5F:7802 (talk) 22:12, 8 January 2017 (UTC)
PHP message: PHP Warning: Parameter 1 to Cite::clearState() expected to be a reference, value given in /usr/share/nginx/html/includes/Hooks.php on line 195
MW version 1.28, nginx 1.11.5, mariadb 10.1, php 7.1 2601:40F:C102:2720:4D42:B382:AE5F:7802 (talk) 22:16, 8 January 2017 (UTC)
It's likely to be addressed in 1.29. Is this the same issue as https://phabricator.wikimedia.org/T153505? This, that and the other (talk) 06:55, 9 January 2017 (UTC)
Could be. I'll try replacing all &$this, with $this 2601:40F:C102:2720:DF3:16AB:263B:7EE (talk) 00:54, 11 January 2017 (UTC)
Correction...
&$this, with $this, 2601:40F:C102:2720:DF3:16AB:263B:7EE (talk) 00:57, 11 January 2017 (UTC)
Any solution found for this? I have the same problem after adding VisualEditor to extensions. 212.108.34.97 (talk) 08:12, 3 July 2017 (UTC)

[Solved]How to separate file description page from database?

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 trying to separate files in about 20 wikis into one combined wiki. The file can be easily combined into one place but the description pages are much harder.

It seems that Mediawiki store image description in table "text" along with other normal article, Is there any way to select and export file description page? Deletedaccount4567435 (talk) 04:27, 20 October 2016 (UTC)

Don't mess with the database unless you really know what are you doing. There are tools for importing and exporting the data.
You can use importImages.php to place images in the right directory structure of the wiki and also create the required database rows. Note that you need to import description pages before importing images: read next step.
For the description pages, export an XML dump of those description pages with dumpBackup.php and then import them on the target wiki. Read Manual:Importing XML dumps. Ciencia Al Poder (talk) 09:38, 20 October 2016 (UTC)
Thank you Ciencia,
In my case for a wiki with fairly large amount of image, export with dumpBackup.php work not very well. What I did, instead of using dumpBackup.php &  importImages.php. is to dump the database record directly with mysqldump. I have those code posted here to help others who need to separate file description page from database.
*following process only suit with medium size wiki where the database size is process-able with complex SQL selection commands. AND it only work when you dump these description to a new wiki.
#lock your database, forbid editing and runJob.php during database export.
#Dump following three tables directly to new wiki database
image
oldimage
filearchive
Because Mediawiki store pages in following sequence: "To retrieve the text of an article, MediaWiki first searches for page_title in the page table. Then, page_latest is used to search the revision table for rev_id, and rev_text_id is obtained in the process. The value obtained for rev_text_id is used to search for old_id in the text table to retrieve the text." ( Manual:Page table )
You will need some records but not all from these three tables: page, revision, and text.
#export only the files in page table
mysqldump -uroot -p --where=" page_namespace  = 6" wiki page > page-imagedump.sql
#export revision table
mysqldump -uroot -p --where=" rev_id IN ( SELECT page_latest FROM page WHERE page_namespace = 6 ) " --skip-lock-tables wiki revision > revision-imagedump.sql
#export text table
mysqldump -uroot -p --where "old_id IN ( SELECT rev_text_id FROM revision WHERE rev_id IN ( SELECT page_latest FROM page WHERE page_namespace = 6 ) )" --skip-lock-tables wiki text > text-imagedump.sql
#import image.sql oldimage.sql filearchive.sql page-imagedump.sql revision-imagedump.sql text-imagedump.sql with mysql source command.
#php wiki/maintenance/update.php
#You may still have some small wikis with about hundreds to thousands of images, transfer these images by dumpBackup.php &  importImages.php to the new wiki.
If you need old version of files to be transferred, you may need to dump more data from database. You might need to write some extra code for that purpose. Deletedaccount4567435 (talk) 14:05, 25 October 2016 (UTC)
The discussion above is closed. Please do not modify it. No further edits should be made to this discussion.

Language switching

I've got MW 1.23 plus the LanguageSelector extension. I arranged things so that language & links of the Sidebar menu entries change when the user switches the language via the Language selector. This works. But the current page does not change, so the user has to change it manually. AFAIK this is by design.

My goal: The current page should be refreshed automatically, e. g. from MyPage/de to Mypage or to Mypage/fr whenever the user changes the language via the language selector.

Is there any way to accomplish this?  84.151.230.224 (talk) 10:17, 20 October 2016 (UTC)

I implemented the UNC Links using WIKI editor. When i switched from WIKI to RICH text editor, it's adding some extra codes or something which navigates to a file upload page.When in WIKI, [file://\\server1\abc\3.docx Word].When moved to RICH text and again moved back to WIKI editor, [[File:File://\\server1\abc\3.docx]].This makes the link to navigate to file upload page. Has anyone faced a similar issue. Kindly help me with this. Ashni rai (talk) 11:06, 20 October 2016 (UTC)

I implemented the UNC Links using WIKI editor. When i switched from WIKI to RICH text editor, it's adding some extra codes or something which navigates to a file upload page.When in WIKI, [file://\\server1\abc\3.docx Word].When moved to RICH text and again moved back to WIKI editor,[[File:File://\\server1\abc\3.docx]].This makes the link to navigate to file upload page. Has anyone faced a similar issue. Kindly help me with this. Ashni rai (talk) 11:09, 20 October 2016 (UTC)
File:File://\\server1\abc\3.docx Ashni rai (talk) 11:10, 20 October 2016 (UTC)
File:file://\\server1\abc\3.docx|Word Ashni rai (talk) 11:11, 20 October 2016 (UTC)
can anyone please help me on this? Ashni rai (talk) 04:36, 21 October 2016 (UTC)
What is "RICH text editor" exactly? Which MediaWiki version is this about? What are "the UNC Links"? Malyacko (talk) 09:38, 21 October 2016 (UTC)
rich text editor is wysiwyg editor.version is 1.23.5.UNC links/de Ashni rai (talk) 10:05, 21 October 2016 (UTC)
can anyone guide me on this? Ashni rai (talk) 04:51, 25 October 2016 (UTC)

Extension:Collection

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.


extension:collection is not getting downloaded.Ha anyone faced this issue? Ashni rai (talk) 12:00, 20 October 2016 (UTC)

*has Ashni rai (talk) 12:00, 20 October 2016 (UTC)
for 1.23 version Ashni rai (talk) 12:07, 20 October 2016 (UTC)
The "site can't be reached" error does sometimes show, but the extension, nevertheless, begins downloading. AhmadF.Cheema (talk) 12:13, 20 October 2016 (UTC)
thanks was able to downlload the extension Ashni rai (talk) 06:58, 21 October 2016 (UTC)
The discussion above is closed. Please do not modify it. No further edits should be made to this discussion.

No images

Produkt Version
MediaWiki 1.27.1
PHP 5.6.26 (cgi-fcgi)
MySQL 5.7.11
ICU 4.4.1

Any ideas of which reasons could cause that I can't display images uploaded to my site?

http://www.sejlerwiki.dk/index.php?title=Speciel:Filer Jesper Bonde (talk) 14:59, 20 October 2016 (UTC)

The page you linked should contain a few preview images, but these images do not display. There is no error, in fact there is a reference to each image, but that is all.
When I try calling such an image with its URL, e.g. http://www.sejlerwiki.dk/images/thumb/f/f7/Pantry.jpg/180px-Pantry.jpg, I get this error:
No input file specified
The same does not only happen for preview images, but also for the originals.
An explanation of this error can be found at http://stackoverflow.com/questions/14555996/no-input-file-specified
As this somehow seems to be related to PATH_INFO, the configuration variable Manual:$wgUsePathInfo might also be relevant for you. 87.123.19.84 (talk) 15:45, 20 October 2016 (UTC)
Thanks a lot for the answer although it doesn't solve the problem directly. I will use your ideas to see if I can get on track of a solution though.
Best
Jesper Jesper Bonde (talk) 20:56, 21 October 2016 (UTC)
@Jesper Bonde: I have opinions. How if the wikimedia foundations have a global patroller or add right to member SWMT to global patroller? How? Murbaut (talk) 02:40, 22 October 2016 (UTC)

Logo help

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.


Can anyone tell me what I'm doing wrong with my local settings to get my logo to work? I've tried to copy exactly what the help documents say but just can't seem to get it to work. Here is line from my LocalSettings.PHP.

$wgLogo = "$wgScriptPath/wiki/images/ThanoTechLogoGREY.jpg";

What am I missing? Do I need to add public_html before wiki in the path?

Thanks in advance! 166.70.49.115 (talk) 18:50, 20 October 2016 (UTC)

$wgScriptPath by default points to the folder, in which you have MediaWiki installed. From what you have set there, I guess that you installed MediaWiki into a folder called wiki/? This folder will by default already be part of $wgScriptPath. Try with
$wgLogo = "$wgScriptPath/images/ThanoTechLogoGREY.jpg";
The file ThanoTechLogoGREY.jpg then belongs into the images/ folder. 87.123.19.84 (talk) 18:58, 20 October 2016 (UTC)
Still nothing...it's just a blank white box. I just realized though that the image I'm trying to use is huge so I'll need to resize it. Would that effect if it works? 166.70.49.115 (talk) 20:15, 20 October 2016 (UTC)
Is your wiki public so that I can have a look?
If the image is to huge, it can be cut off showing only little part of the actual image.
You should be reading Manual:$wgLogo! It will contain hints on most of the issues, which might arise. 87.123.56.23 (talk) 20:19, 20 October 2016 (UTC)
Yes it's currently public. Just in the beginning stages of developing it for the company I work for.
http://wiki.thanotech.com/ 166.70.49.115 (talk) 20:35, 20 October 2016 (UTC)
Yeah I was using that page to help me figure it out but I've kinda hit a wall. I was even using this youtube video to learn how to do it: https://www.youtube.com/watch?v=C2279y_LMDc 166.70.49.115 (talk) 20:37, 20 October 2016 (UTC)
Actually, I think it's all on the page already:
Your image is present at the right location, this location can be accessed and the source code is also pointing to it. But the image is - Donald Trump - huuuuge. ;-) Recommended size is 135x135 pixels. Yours is around 3000 pixels too big - in either direction. What you see is just a white part of your image. 87.123.56.23 (talk) 21:37, 20 October 2016 (UTC)
Resizing it did work. Thanks for your help! 166.70.49.115 (talk) 21:46, 20 October 2016 (UTC)
The discussion above is closed. Please do not modify it. No further edits should be made to this discussion.

Randomly being logged out

I've just upgraded from 1.25 to 1.27. Now every few edits I get a message (in german) that says something like "sorry, we couldn't save, session data has been lost. Please verify that you are still logged in" 79.212.228.219 (talk) 18:58, 20 October 2016 (UTC)

See 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) 02:19, 21 October 2016 (UTC)

Install Extension

When I try install extension "Validator" on the site says:"Exception encountered, of type "Exception" Vlaaaaaaad (talk) 19:49, 20 October 2016 (UTC)

set $wgShowExceptionDetails to true in LocalSettings.php Ciencia Al Poder (talk) 09:26, 21 October 2016 (UTC)

MediaWiki become very slow when migrating to new server

I migrated the mw project to new server, the environment is the same (php apache mysql version), just move to another virtual machine, it takes over 30 seconds to open page, but if I install a new mw project on the same server, it opens very quick, anything need to tuning after migration? Chan15tw (talk) 22:17, 20 October 2016 (UTC)

You may enable Profiling to see which part is taking too long.
Monitoring CPU usage and process list may also help, if problem is in database or apache+php.
If it's database, after importing the database, maybe you need to rebuild database indices. See After importing sql files indexes in place, but not actually indexed Ciencia Al Poder (talk) 09:32, 21 October 2016 (UTC)

How to make new wiki?

How to make new wiki? ㅂㄱㅇ (talk) 06:05, 21 October 2016 (UTC)

Installation! 87.123.56.23 (talk) 08:37, 21 October 2016 (UTC)
87.123.56.23, It's too hard to understand that link. Can you say that easy? ㅂㄱㅇ (talk) 05:00, 20 November 2016 (UTC)
Not in English, I'm afraid. However, the basic steps are unchanged since years. They have not changed. So you can also follow an old installation guide. Maybe you find some docs in Korean... 87.123.5.177 (talk) 10:53, 20 November 2016 (UTC)
As a first step, where do you intend to host the "new wiki"? AhmadF.Cheema (talk) 12:21, 20 November 2016 (UTC)

Extension:Collection

I have installed the extension as mention. But when i try to download as PDF, it's showing as '

Book rendering failed

There was an error while attempting to render your book

Return to Main Page

Has anyone faced a similar issue?

Thanks in advance.

(Note: My wiki site is accessible in internet)

' Ashni rai (talk) 06:57, 21 October 2016 (UTC)

[Offtopic] Your URL implies that you installed MediaWiki version 1.23.5. If that is true, please install a secure version (like 1.23.15) instead: https://www.mediawiki.org/wiki/Download Malyacko (talk) 09:36, 21 October 2016 (UTC)
thanks.we have 1.26.2 version as well.but it doesnt work though. Ashni rai (talk) 09:57, 21 October 2016 (UTC)
using windows 7 Ashni rai (talk) 11:42, 21 October 2016 (UTC)
Can anyone please guide me on this? Ashni rai (talk) 04:50, 25 October 2016 (UTC)

I am getting JS error "TypeError: $.debounce is not a function".

I am getting JS error and jquery scripts or not working

Error : "TypeError: $.debounce is not a function"

Please help...

File:TypeError- $.debounce is not a function.png

[3] Jainuddin786 (talk) 09:58, 21 October 2016 (UTC)

What Mediawiki version?
Also try adding ?debug=true to the URL (&debug=true if the URL already contains a question mark), it should display the module that throws the error (or at least identify the file) Ciencia Al Poder (talk) 15:37, 21 October 2016 (UTC)
I am using 1.27.1 version Jainuddin786 (talk) 05:55, 24 October 2016 (UTC)

Does Manual:searchindex_table used in MW 1.27 when elasticsearch enabled?

Does Manual:Searchindex table used in MW 1.27 when elasticsearch enabled?Can I safely truncate searchindex table in database?

Extension:CirrusSearch Deletedaccount4567435 (talk) 10:52, 21 October 2016 (UTC)

The extension code does not contain any mention of the searchindex table. So I would guess that a. it does not modify how this table is used and b. it does not prevent MediaWiki from storing/updating records inside that table when a page is changed.
But you can check that easily: Truncate the table and then edit and save a page. If a record gets added to the searchindex table, then this table obviously is still in use. Then use the rebuildall.php maintenance script to populate the table again. 87.123.56.23 (talk) 11:21, 21 October 2016 (UTC)
I'm pretty sure Elasticsearch uses it's own database engine for performing searches. Ciencia Al Poder (talk) 15:28, 21 October 2016 (UTC)

I need to back up a geneaolgy website(freepages.ancestry.rootsweb) website badly. need help using Filezilla.

I need to back up a geneaolgy website(freepages.ancestry.rootsweb) website badly. need help using Filezilla. Jaschr71 (talk) 13:24, 21 October 2016 (UTC)

For help about backing up a wiki, see Manual:Backing up a wiki. For help about filezilla please read the filezilla manual or ask the filezilla forums Ciencia Al Poder (talk) 15:26, 21 October 2016 (UTC)

Estou com problema ao realizar um upload

[6dc92bf9] /wiki/index.php/Especial:Carregar_arquivo MWException from line 1868 of /home/sisfer/htdocs/wiki/includes/filerepo/file/LocalFile.php: Could not acquire lock for 'Ata_de_reuniao_de_analise_critica.docx.'

Backtrace:

#0 /home/sisfer/htdocs/wiki/includes/filerepo/file/LocalFile.php(1147): LocalFile->lock()

#1 /home/sisfer/htdocs/wiki/includes/upload/UploadBase.php(708): LocalFile->upload(string, string, string, integer, array, boolean, User)

#2 /home/sisfer/htdocs/wiki/includes/specials/SpecialUpload.php(486): UploadBase->performUpload(string, string, boolean, User)

#3 /home/sisfer/htdocs/wiki/includes/specials/SpecialUpload.php(197): SpecialUpload->processUpload()

#4 /home/sisfer/htdocs/wiki/includes/specialpage/SpecialPage.php(384): SpecialUpload->execute(NULL)

#5 /home/sisfer/htdocs/wiki/includes/specialpage/SpecialPageFactory.php(553): SpecialPage->run(NULL)

#6 /home/sisfer/htdocs/wiki/includes/MediaWiki.php(281): SpecialPageFactory::executePath(Title, RequestContext)

#7 /home/sisfer/htdocs/wiki/includes/MediaWiki.php(714): MediaWiki->performRequest()

#8 /home/sisfer/htdocs/wiki/includes/MediaWiki.php(508): MediaWiki->main()

#9 /home/sisfer/htdocs/wiki/index.php(41): MediaWiki->run()

#10 {main} JohnnyFreitas42 (talk) 17:52, 21 October 2016 (UTC)

Fix file permissions on the upload folder. The webserver must be able to write on it. You can try giving all permissions to everybody (chmod 777) and if it fixes the issue, reduce it to the minimum that makes it work Ciencia Al Poder (talk) 11:05, 22 October 2016 (UTC)

How to acquire Global file usage with $wgForeignFileRepos?

Hi,

I am trying to use Manual:$wgForeignFileRepos with ForeignAPIRepo as following settings. I can get file description from source commons wiki. However, the source commons wiki can't show which wiki used this file ("Global file usage") as commons.wikimedia.org does.

I do find a extension called Extension:GlobalUsage, but it says it was outdated. So how to acquire global file usage under Mediawiki 1.27 environment?

$wgForeignFileRepos[] = array(

'class'                   => 'ForeignAPIRepo',

'name'                    => 'commons', // Must be a distinct name

'apibase'                 => 'https://commons.mywiki.org/api.php',

'hashLevels'              => 2,

'fetchDescription'        => true, // Optional

'descriptionCacheExpiry'  => 43200, // 12 hours, optional (values are seconds)

'apiThumbCacheExpiry'     => 86400, // 24 hours, optional, but required for local thumb caching

); Deletedaccount4567435 (talk) 05:26, 22 October 2016 (UTC)

Extension:GlobalUsage is what's being used in commons, see commons:Special:Version. The extension page says the page is outdated, not the extension. Ciencia Al Poder (talk) 11:03, 22 October 2016 (UTC)

Lua error

Lua error: Cannot create process: proc_open is not available. Check PHP's "disable_functions" configuration directive.Lua error: Cannot create process: proc_open is not available. Check PHP's "disable_functions" configuration directive.

So this is coming from Scribunto I think. I had lots of problems until recently when I finally fixed the constant script errors but now I am getting this? Can anyone explain simply what I can do and what it is. Im not great with computing language so could someone do it simply for me? Althist (talk) 20:48, 22 October 2016 (UTC)

When searching for that error message, discussions like Extension talk:Scribunto/2013#c-90.218.183.65-2013-08-06T14:03:00.000Z-Error_with_scribunto or Project:Support desk/Flow/2014/04#c-Ciencia_Al_Poder-2014-04-18T10:10:00.000Z-80.56.90.149-2014-04-17T15:30:00.000Z show up and explain what to do. :) Malyacko (talk) 10:03, 24 October 2016 (UTC)

Fatal error: Uncaught Cdb\Exception: Error writing to CDB file

Warning: rename(/tmp/l10n_cache-en.cdb.tmp.1457297703,/tmp/l10n_cache-en.cdb): Operation not permitted in /home/u96904/wiki.test.ru/vendor/wikimedia/cdb/src/Writer/PHP.php on line 89

Warning: fclose(): supplied resource is not a valid stream resource in /home/u96904/wiki.test.ru/vendor/wikimedia/cdb/src/Writer/PHP.php on line 236

[WAzq4VvZCasAAEsECPEAAAAU] 2016-10-23 16:52:49: Fatal exception of type MWException

Warning: fwrite(): supplied resource is not a valid stream resource in /home/u96904/wiki.test.ru/vendor/wikimedia/cdb/src/Writer/PHP.php on line 100

Warning: fclose(): supplied resource is not a valid stream resource in /home/u96904/wiki.test.ru/vendor/wikimedia/cdb/src/Writer/PHP.php on line 236

Warning: unlink(/tmp/l10n_cache-en.cdb.tmp.1457297703): No such file or directory in /home/u96904/wiki.test.ru/vendor/wikimedia/cdb/src/Writer/PHP.php on line 237

Fatal error: Uncaught Cdb\Exception: Error writing to CDB file "/tmp/l10n_cache-en.cdb.tmp.1457297703". in /home/u96904/wiki.test.ru/vendor/wikimedia/cdb/src/Writer/PHP.php:239 Stack trace: #0 /home/u96904/wiki.tets.ru/vendor/wikimedia/cdb/src/Writer/PHP.php(102): Cdb\Writer\PHP->throwException('Error writing t...') #1 /home/u96904/wiki.test.ru/vendor/wikimedia/cdb/src/Writer/PHP.php(215): Cdb\Writer\PHP->write('\x00\x00\x00\x00\x00\x00\x00\x00') #2 /home/u96904/wiki.test.ru/vendor/wikimedia/cdb/src/Writer/PHP.php(82): Cdb\Writer\PHP->finish() #3 /home/u96904/wiki.test.ru/vendor/wikimedia/cdb/src/Writer.php(88): Cdb\Writer\PHP->close() #4 [internal function]: Cdb\Writer->__destruct() #5 {main} thrown in /home/u96904/wiki.test.ru/vendor/wikimedia/cdb/src/Writer/PHP.php on line 239 180.150.157.62 (talk) 16:54, 23 October 2016 (UTC)

The problem is that the cache directory is not writable.
Two possible solutions:
Also check your disk space :^) Valerio Bozzolan (talk) 15:11, 20 February 2021 (UTC)

Wiki site broken after PHP upgrade from 5.3.3 to 5.6.27

I'm a beginner in this area. I needed to upgrade php to I can upgrade MediaWiki and add Visual Editor extension, ultimately. I upgraded php from 5.3.3 to 5.6.27 with a success message. But, my wikisite will not come up and I get a 500 error. Looking further I found that php was giving an error like configuration option "php_ini" is not set to php.ini location for module intl. I used pecl to uninstall and re-install intl and got to the point where there is no error returned. But, my wikisite is still not responding.

Could anyone give me some ideas about how to debug what is wrong and fix it that a beginner would be able to understand??

I appreciate any help!

Glenn Alwaysprepared (talk) 01:00, 24 October 2016 (UTC)

See blank page for how you can get the actual error message! 87.123.27.215 (talk) 09:58, 24 October 2016 (UTC)

Acer CB5-571

I bought a chromebook specifically to install Linux on it. This one has the latest firmware. Am I just out of luck? Janderegg2002 (talk) 03:19, 24 October 2016 (UTC)

Welcome to the MediaWiki support desk. If you have problems with installing MediaWiki on your hardware, please provide more information. If you have problems installing "Linux" (whatever distribution that might be), please ask in a support forum of your Linux distribution instead. Malyacko (talk) 10:01, 24 October 2016 (UTC)

How to send Email ?

I have configure SMTP in my localsetting.php

$wgSMTP = array(
        'host' => 'ssl://smtp.gmail.com',
        'IDHost' => 'gmail.com',
        'port' => 465,
        'username' => 'yourEmailAccount@gmail.com',
        'password' => 'yourEmailPassword',
        'auth' => true
);

How what function i have to call to send email with attachment? Jainuddin786 (talk) 06:09, 24 October 2016 (UTC)

Where in the MediaWiki software can you see any function to allow sending emails with attachment? AKlapper (WMF) (talk) 09:58, 24 October 2016 (UTC)
I haven't seen in MediaWiki. i have created custom extension in MediaWiki and i want to send email using SMTP. Can u please let me know how can i sent email using SMTP ? Jainuddin786 (talk) 05:36, 26 October 2016 (UTC)
Manual talk:$wgSMTP#Example using Google Mail AKlapper (WMF) (talk) 12:38, 26 October 2016 (UTC)

How to write MediaWiki scripts

I've learned JavaScript, but yet I don't know how to use it when writing MediaWiki scripts...

Is there any tutorial from which I can learn how to write JS scripts for MediaWiki? Guycn2 (talk) 09:54, 24 October 2016 (UTC)

Gadget kitchen would be my guess. AKlapper (WMF) (talk) 09:57, 24 October 2016 (UTC)

Getting crazy amount of session error while users editing after upgrade to 1.27

Tried redis volatile-lru, separate redis that only store session, store session in DB.

None of them solve this problem :(

help Deletedaccount4567435 (talk) 12:00, 24 October 2016 (UTC)

See 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) 12:43, 24 October 2016 (UTC)

Call wfMessage from a template

I have a template that needs to be used in multiple languages. How do I make a call to wfMessage() from within that template? 52.9.166.178 (talk) 18:16, 24 October 2016 (UTC)

If with "template" you mean a page inside the "Template:" namespace, then it is not possible to use PHP functions from there.
However, system messages can be translated into different languages. Maybe you want to display the according system message... 87.123.62.114 (talk) 20:08, 24 October 2016 (UTC)
Yep, "system message" was the thing I was missing. Thanks! 52.9.166.178 (talk) 21:05, 24 October 2016 (UTC)

plural magic word in multilingual projects

Is it possible to force 4-argument version of plural (mentioned on Help:Magic words#Localization) to work properly in multilingual projects such as Commons, Meta or MediaWiki.org? jdx Re: 19:35, 24 October 2016 (UTC)

Invitation for review: Technical Collaboration Guideline

Wikimedians, please review something we are working on for the Wikimedia Foundation, the mw:Technical Collaboration Guideline.

The Technical Collaboration Guideline (TCG) is a set of best practice recommendations, for planning and communicating product and project information to Wikimedia communities, in order to work better, together. The TCG allows Wikimedia Foundation (WMF) Product teams and Wikimedia communities to work together in a systematic way in the product development and deployment cycle. It is hoped that the TCG is useful enough to be utilized in planning and communications regarding any project, from anyone. The TCG is intended to be flexible as plans and products change in development; it is a guide whose contents will help build collaborative relationships.

The initial draft of the TCG was written after discussions in small groups with members of the Community Liaisons and Product Management teams, to identify successes and failures in communication, and what we can do to encourage collaboration with the communities. Over the next month, we are seeking review and feedback from Wikimedia community members. All feedback that is left will be read; if there is a case for immediate action, it will be made. All feedback will be taken into consideration when editing the next draft of the TCG. Please keep in mind that the TCG is intended to be lightweight information and instruction and will not be completely comprehensive. The TCG and the conversations about it are in English, but comments from all languages are welcome. We look forward to reading your comments at mw:Talk:Technical Collaboration Guideline. Thanks. Quiddity (WMF) (talk) 20:40, 24 October 2016 (UTC)

User Experience with Word Documents

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 wondering if it's possible to add a direct to download link when uploading Word documents.

Currently, we have users in a Wiki document, they click on Word link, are sent to the Wiki file manager, and then can download the file.

We would like to have the user download the document directly from the Wiki, without the upload screen. Is there any other way we can avoid this screen?

Thank you for your help. PaleoIsh (talk) 21:11, 24 October 2016 (UTC)

Use <code>Media:</code> instead of <code>File:</code> for the link. 137.147.144.56 (talk) 06:46, 25 October 2016 (UTC)
Love it... thank you. PaleoIsh (talk) 14:00, 25 October 2016 (UTC)
The discussion above is closed. Please do not modify it. No further edits should be made to this discussion.

Need help installing Extension:Maps

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.


Adding the Maps extension is crucial to my wiki site but I'm having a hard time figuring out how to install it.

The install instructions are here:https://github.com/JeroenDeDauw/Maps/blob/master/INSTALL.md

It mentions installing Composer and installing Maps through Composer. My problem is that's gibberish to me. I'm guessing it's a git thing which I've never used and it makes no sense to me. Are there any easy ways to install Maps or where should I look to learn how to install using Git? I'm 110% lost on how to 'run' Composer through my webserver. Any help is extremely appreciated. Thanks. Kr580 (talk) 05:15, 25 October 2016 (UTC)

Doing a quick search in your favorite search engine wouldn't hurt, but anyway, see Composer Ciencia Al Poder (talk) 18:14, 26 October 2016 (UTC)
Thanks for the reply but that's my issue. I can find all the documentation in the world and it's still gibberish. Looking for help finding a guide or something to get me started. All the Git guides I find jump right into it and I end up more confused than when I had zero knowledge of it. Kr580 (talk) 19:56, 28 October 2016 (UTC)
The page you first linked to has the exact commands you need to run on your server, you don't even need to run git!! Ciencia Al Poder (talk) 02:04, 29 October 2016 (UTC)
So I'm an idiot and figured out shell access. Had it installed within 5 minutes once it clicked in my head. Thank you for the reply! 2601:645:101:DAF:F5BA:1439:4918:3E71 (talk) 18:09, 1 November 2016 (UTC)
It's a bit old but [0] shows a video from start to finish for a "Fresh MW 1.26 + Composer + SMW + Maps ".
[0] https://www.youtube.com/watch?v=zY5ugnyq7ig MWJames (talk) 03:16, 29 October 2016 (UTC)
The discussion above is closed. Please do not modify it. No further edits should be made to this discussion.

Having issues with "Lua error in mw.site.lua: table index is nil."

Finally got this page up and running:

http://furrybasketball.net/mediawiki/index.php?title=Main_Page

However, on several pages, I get the error message: Lua error in mw.site.lua at line 32: table index is nil.

I checked the mw.site.lua file in $IP/Scribunto/engines/LuaCommon/lualib/ but it seems to be fine.

Anyone else run into this problem before? Any insight how to go about troubleshooting next? Any help is greatly appreciated. Thanks! Dorourkie (talk) 06:25, 25 October 2016 (UTC)

One of your namespaces is incorrectly configured, and it is causing an error as Scribunto tries to read them. 137.147.144.56 (talk) 06:40, 25 October 2016 (UTC)
Are there any efficient ways to troubleshoot where the error might be? This is a site moved over from another URL, and everything was/is working at the original Dorourkie (talk) 19:23, 26 October 2016 (UTC)

Issue 'Could not determine the remote IP address due to multiple values'

Some users are facing this message 'Could not determine the remote IP address due to multiple values.' when trying to connect to our Wiki.

I don't understand what is the root cause of this error. And i don't known how to correct it.

Some help will be greatly appreciated... Bmontet (talk) 11:41, 25 October 2016 (UTC)

Your problem is that $_SERVER['REMOTE_ADDR'] is not set correctly.
Make sure that it contains exactly one value, not multiple values separated by comma! Also, it may not be an array! 87.123.62.114 (talk) 17:08, 25 October 2016 (UTC)
$_SERVER['REMOTE_ADDR'] can't be set by the user, so basically this will require technical changes to server configuration.
REMOTE_ADDR shouldn't be, under any circumstance, an array, or having multiple addresses. If that's the case, there's a bug in your PHP installation, or there's a PHP extension somewhere that's interfering with the correct value. Ciencia Al Poder (talk) 18:08, 26 October 2016 (UTC)

API

I have made an API request. I got some kind of scripts. I am pretty new to this so i am not sure how to use it.Should i add these scripts somewhere or is this the final output i get in API. Can anyone please guide me how to work with this, like what should i do after making the request. Thanks! Ashni rai (talk) 12:29, 25 October 2016 (UTC)

After making request you will get reply which you can process. Examples and parameters are in documentation. wargo (talk) 15:30, 26 October 2016 (UTC)

Problem with runJobs.php with multiple processes

I wasn't running runJobs.php for a while, and it now has a large queue to work. I would like to run several processes to get the job queue processes, but when I use --procs=8, it fails with:

PHP Fatal error: Call to undefined function pcntl_signal() in /opt/app/www/html/mediawiki-1.25.6/includes/ForkController.php on line 76

This is proceeded with several messages about undefined constants like: PHP Notice: Use of undefined constant SIGFPE - assumed 'SIGFPE' in /opt/app/www/html/mediawiki-1.25.6/maintenance/runJobs.php on line 64

I'm running MediaWiki 1.25.6 and PHP 5.3.21. Is this error easily fixed? Alternatively, is it safe to run several instances of runJobs.php in parallel? Bluechalk2 (talk) 13:20, 25 October 2016 (UTC)

Your server doesn't have the pcntl PHP extension installed, so you can't run the script with multiple processes. You'll have to use only one instead, or install the pcntl PHP extension Ciencia Al Poder (talk) 18:11, 26 October 2016 (UTC)

Is it possible to share templates across wiki farm wikis?

It looks like sharing database tables directly will be a really bad idea. Then is there any settings or extensions could get template shared across wiki families? Deletedaccount4567435 (talk) 13:33, 25 October 2016 (UTC)

Somewhat, see Manual:$wgEnableScaryTranscluding Ciencia Al Poder (talk) 18:09, 26 October 2016 (UTC)

Warning before installation

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. Please I have copied source files into web server under www_root/wiki folder. I would like to start installation. After starting i receive next warning. What should I do?

Warning: file_exists(): open_basedir restriction in effect. File(/tmp) is not within the allowed path(s): (/home/dd013900:/usr/share/pear) in /home/dd013900/www_root/wiki/includes/GlobalFunctions.php on line 2132 Pavol.spacil (talk) 21:08, 25 October 2016 (UTC)

Do you receive that warning during the installation process, or once it's installed and you got the LocalSettings.php file?
See http://php.net/manual/en/ini.core.php#ini.open-basedir for description about open_basedir. If the wiki is installed and you got the LocalSettings.php file, you can set $wgTmpDirectory to a folder under your user, like /home/dd013900/tmp (you must create the folder and give it permissions) Ciencia Al Poder (talk) 17:56, 26 October 2016 (UTC)
thank you, i have done it with my provider, he set the rights for temp folder Pavol.spacil (talk) 14:34, 28 October 2016 (UTC)
The discussion above is closed. Please do not modify it. No further edits should be made to this discussion.

Moving to 64 bit from 32 bit

I have a life time key for a version of MM that I installed with a DVD I will need to port my music files to a new W7 64 bit computer Will the key still work? What is the best way to move my music files? I assume the DVD is of no value as it is for 32 bit install.

I am talking about mediamonkey software some how I feel I am in the wrong place Dwight Norris (talk) 06:57, 26 October 2016 (UTC)

Yepp, that's right. This is the support desk for MediaWiki, the software used to run wikis like Wikipedia. You should ask your question on mediamonkey in a mediamonkey forum instead! 87.123.32.180 (talk) 08:40, 26 October 2016 (UTC)

Can't access mw.config from js file

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 can't access the mw.config object from my javascript file (all.js). I have it included in MediaWIki:Common.js as follows:

/* Any JavaScript here will be loaded for all users on every page load. */

mw.loader.load('/mediawiki/resources/all.js'); 52.9.166.178 (talk) 19:22, 26 October 2016 (UTC)
Actually, I seems I now can? Must have been a caching issue. Apologies for the spam :) 52.9.166.178 (talk) 19:27, 26 October 2016 (UTC)
The discussion above is closed. Please do not modify it. No further edits should be made to this discussion.

What is the difference between "save" and "publish"?

Our organization uses MediaWiki, and I cannot see any difference when I edit a page and use the PUBLISH button at the top or the SAVE button at the bottom. Curiously, I also cannot seem to find any information about this on the MediaWiki wiki! Is it just too obvious to spell out? 134.79.46.120 (talk) 02:25, 27 October 2016 (UTC)

Publish is added by the WikiEditor extension. It is exactly the same as Save, except it opens a dialog to enter the summary rather than using the one already on the page. It's really a non-feature which you should disable globally by setting $wgDefaultUserOptions['wikieditor-publish'] = 0; in LocalSettings.php. 120.144.23.217 (talk) 06:12, 29 October 2016 (UTC)

Wiki Contributor Certification

Hi all, not a system-based question, but I'm wonder if anyone has implemented or have seen a certification program for internal MediaWikis. Almost like a White/Green/Black Belt system, that encourages star contributors to really work on the Wiki.

Thanks for your help. PaleoIsh (talk) 02:45, 27 October 2016 (UTC)

Is it possible to share Localisation messages across wiki farm wikis?

Extension:LocalisationUpdate can grab new localizations for MediaWiki messages. However, It require a git repositories or at least a local file copy of modified message files.

Then, how to create message files from wiki interface? (like translatewiki.net)

Or is it possible to share the CBD localisation cache so that all wikis read the localisation messages from one wiki? Deletedaccount4567435 (talk) 03:20, 27 October 2016 (UTC)

Is there any $wg setting that can remove unwanted language from Special:Preferences Internationalisation?

If there aren't one, which file or files should I edit to remove extra languages from list? Deletedaccount4567435 (talk) 03:49, 27 October 2016 (UTC)

MediaWiki 1.27

Hi,

I have recently installed Mediawiki 1.27 and I am getting some difficulties in it.

1) The preference tab does not function properly.. When I try to switch between Appearing editing or anything, the URL changes, but nothing comes in, only the user profile load.

http://<mediawiki_site>index.php?title=Special:Preferences#mw-prefsection-rc

2) Also, the extensions like the Visual Editor or any other does not work when installed.

I would like to know if I am doing something wrong that anyone can point out thoee to me.

Regards, Jayant.danech (talk) 07:06, 27 October 2016 (UTC)

Maybe there are JavaScript errors preventing the site from working properly. Open the developer console of your browser (hit F12) and look at the console for any error that may help bringing more information about the issue. It's recommended that you add &debug=true to the URL when trying this, like http://<mediawiki_site>index.php?title=Special:Preferences&debug=true Ciencia Al Poder (talk) 18:06, 27 October 2016 (UTC)
Hi,
I tried debugging and occurs nothing :(
------------------ ------------------
index.php?title=Special:Preferences&debug=true#mw-prefsection-rendering
index.php?title=Special:Preferences&debug=true#mw-prefsection-editing
index.php?title=Special:Preferences&debug=true#mw-prefsection-watchlist
index.php?title=Special:Preferences&debug=true#mw-prefsection-rc
index.php?title=Special:Preferences&debug=true#mw-prefsection-watchlist
------------------ ------------------
Mediawiki 1.27 or 1.28 does not work, so I used media wiki1.26 worked but I am not able to use any extensions on it too.
At least in Mediawiki 1.26 , preference works.. Jayant.danech (talk) 17:19, 30 October 2016 (UTC)

Experimental support?

What is meant by " Experimental support" for samba 4.5 schema 69? Bertrgi (talk) 07:21, 27 October 2016 (UTC)

Welcome on the support desk for MediaWiki, the software used to run wikis like Wikipedia!
You should ask that in the samba wiki at wiki.samba.org, where you found that information. Maybe the talk page of the according article https://wiki.samba.org/index.php/Talk:AD_Schema_Version_Support is a possibility... 87.123.4.36 (talk) 09:35, 27 October 2016 (UTC)

Can't access config.js file

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 transferred my older Wiki Ver. 1.22 to the latest version.

Everything is working as expected as far I can say - except one thing: When I try to access Common.js by entering Mediawiki:Common.js in the search bar, the system throws an error:

Exception encountered, of type "Error"

What could be the problem here?

Many thanks!

This is the backtrace of the error:

[WBH1OVUNje0AADczvV0AAAAC] /index.php?title=MediaWiki:Common.js Error from line 283 of /www/htdocs/w00997ce/hvg-wiki-2016-10/extensions/SyntaxHighlight_GeSHi/SyntaxHighlight_GeSHi.class.php: Class 'Symfony\Component\Process\ProcessBuilder' not found

Backtrace:

#0 /www/htdocs/w00997ce/hvg-wiki-2016-10/extensions/SyntaxHighlight_GeSHi/SyntaxHighlight_GeSHi.class.php(423): SyntaxHighlight_GeSHi::highlight(string, string)

#1 /www/htdocs/w00997ce/hvg-wiki-2016-10/includes/Hooks.php(195): SyntaxHighlight_GeSHi::onContentGetParserOutput(JavaScriptContent, Title, NULL, ParserOptions, boolean, ParserOutput)

#2 /www/htdocs/w00997ce/hvg-wiki-2016-10/includes/content/AbstractContent.php(491): Hooks::run(string, array)

#3 /www/htdocs/w00997ce/hvg-wiki-2016-10/includes/page/Article.php(830): AbstractContent->getParserOutput(Title)

#4 /www/htdocs/w00997ce/hvg-wiki-2016-10/includes/page/Article.php(644): Article->showCssOrJsPage()

#5 /www/htdocs/w00997ce/hvg-wiki-2016-10/includes/actions/ViewAction.php(44): Article->view()

#6 /www/htdocs/w00997ce/hvg-wiki-2016-10/includes/MediaWiki.php(503): ViewAction->show()

#7 /www/htdocs/w00997ce/hvg-wiki-2016-10/includes/MediaWiki.php(288): MediaWiki->performAction(Article, Title)

#8 /www/htdocs/w00997ce/hvg-wiki-2016-10/includes/MediaWiki.php(745): MediaWiki->performRequest()

#9 /www/htdocs/w00997ce/hvg-wiki-2016-10/includes/MediaWiki.php(519): MediaWiki->main()

#10 /www/htdocs/w00997ce/hvg-wiki-2016-10/index.php(43): MediaWiki->run()

#11 {main} Sochin67 (talk) 08:17, 27 October 2016 (UTC)

Your new version of MediaWiki needs some prerequisites. You are currently missing them, e.g. the Symfony package.
If you installed MediaWiki from Git, you should run composer install in geshi's directory.
Another, and maybe the better option, is to download MediaWiki from releases.wikimedia.org. The downloaded package (.e.g mediawiki-1.27.1.tar.gz) will contain the required requisites already. Jörgi123 (talk) 13:01, 27 October 2016 (UTC)
The discussion above is closed. Please do not modify it. No further edits should be made to this discussion.

The revision #27930 of the page named "Main Page" does not exist.

Hello,

I inherited a wiki when taking over http://japan-legend.com/wiki but the Wiki is broken. When I try to access any page I get an error similar to:

The revision #27930 of the page named "Main Page" does not exist.

This is usually caused by following an outdated history link to a page that has been deleted. Details can be found in the deletion log

If someone could point me in the right direction to getting this fixed I'd be grateful.

Kind Regards,

Brian 206.212.89.232 (talk) 09:11, 27 October 2016 (UTC)

Hi Brian!
MediaWiki has a certain structure inside the database. There are the database tables "page", "revision" and "text". These contain the data needed to display the content of a certain page. The introduction on Manual:page table explains, how they are connected.
You are most likely missing the according row(s) inside the revision table. According to what I found in your wiki, there should be 27940 rows inside the revision table. Without these rows it will nearly be impossible to make the wiki work again. 87.123.4.36 (talk) 09:33, 27 October 2016 (UTC)
Hello again,
I've checked the database:
Showing rows 0 - 29 (27718 total, Query took 0.0058 sec)
From `wiki_revision`
Showing rows 0 - 29 (21538 total, Query took 0.0058 sec)
From `wiki_page`
MySQL returned an empty result set (i.e. zero rows). (Query took 0.0002 sec)
FROM `wiki_text`
Time to check the backup files I was given :/ 206.212.89.232 (talk) 09:48, 27 October 2016 (UTC)
Showing rows 0 - 29 (2187 total, Query took 0.0011 sec)
FROM `wiki_text`
I've retored that table. But still am getting the same error. 206.212.89.232 (talk) 10:25, 27 October 2016 (UTC)
Please check the value of the table prefix in $wgDBprefix! The entries in your wiki_page table are found, but is this really the table which MediaWiki is using? All the table names are starting with "wiki_", but is $wgDBprefix set to "wiki" as well?
The problem is not caused by missing rows in the text table (although your number there is suspiciously low as well). But the problem are missing rows in the revision table. The entries in your page table reference revisions up to rev_id 27940. At this point the complete revision table will have an entry with rev_id = 27940 as highest value. The number of rows in that table should be around 27940 - it might be a bit lower, because MediaWiki can be used to remove certain rows manually, but it should be around that number of rows. 87.123.4.36 (talk) 11:28, 27 October 2016 (UTC)
$wgDBprefix         = "wiki_";
I'm going to check the backup files I have and create another database and see if I can get the numbers like what you suggest. 206.212.89.232 (talk) 12:51, 27 October 2016 (UTC)
FYI I was trying to run php rebuildall.php and it gives the following error at the very end:
Refreshing links tables.
Starting from page_id 1 of 21705.
A database query error has occurred.
Query: INSERT  INTO `wiki_job` (job_cmd,job_namespace,job_title,job_params,job_id,job_timestamp,job_sha1,job_random) VALUES ('refreshLinks','6','Kaleido_star_01.jpg','a:6:{s:5:\"table\";s:10:\"imagelinks\";s:9:\"recursive\";b:1;s:13:\"rootJobIsSelf\";b:1;s:16:\"rootJobSignature\";s:40:\"6d320a97f3b8a1ac118d53b52ea29fe9e2e54bb4\";s:16:\"rootJobTimestamp\";s:14:\"20161027105345\";s:9:\"requestId\";s:24:\"ed2964124e31245c20ea82c0\";}',NULL,'20161027105345','8szsawjiusjo41jixnxaeqi2wur6wvj','971716753')
Function: JobQueueDB::doBatchPush
Error: 1048 Column 'job_id' cannot be null (localhost) 206.212.89.232 (talk) 12:55, 27 October 2016 (UTC)
The rebuildall.php cannot help you. THis script cannot be used to recreate missing entries in the page, revision or text tables.
The error "Column 'job_id' cannot be null" shows that inside the job table, the column job_id does not have the auto_increment information set. This can be fixed by making this column an auto_increment. However, it will not solve the issue with missing revisions.
Do you not have a working backup of the database? Like an SQL file of it, which someone once exported? 87.123.4.36 (talk) 13:07, 27 October 2016 (UTC)
> The rebuildall.php cannot help you.
...except you have menawhile imported a backup and now the revision errors are solved. 87.123.4.36 (talk) 13:10, 27 October 2016 (UTC)
I've restored a different copy of the database. I've still the same error. 46.7.34.82 (talk) 19:24, 27 October 2016 (UTC)
What you have used now obviously suffers from the same problem as the one, which you used in your first try...
Have you used a different backup for that restore process? Or do you still have another one? 87.123.39.2 (talk) 00:39, 28 October 2016 (UTC)

Cache Error

MediaWiki1.27.1

PHP7.0.0 (cgi-fcgi)

MySQL5.5.43-log

wiki.syslife.com.br

Hey guys, this message keeps showing on top of my page, can any one tell me what it is? "Warning: wincache_ucache_cas() expects parameter 2 to be integer, string given in D:\web\localuser\syslife\www\wiki\includes\libs\objectcache\WinCacheBagOStuff.php on line 58" 179.185.48.124 (talk) 18:09, 27 October 2016 (UTC)

pages not adding to the categories

Hello,

According to manuals, i placed ((Category:Name of category)) in multiple pages, created that Category, but it's empty. Used [ instead of ( ofcourse.

Null edit and refreshLinks.php didn't help, Category is still empty. Made other categories with other pages - same result. 79.104.21.74 (talk) 11:56, 28 October 2016 (UTC)

See Manual:$wgRunJobsAsync! 87.123.39.2 (talk) 12:28, 28 October 2016 (UTC)

Error with cache

MediaWiki1.27.1

PHP7.0.0 (cgi-fcgi)

MySQL5.5.43-log

wiki.syslife.com.br

Hey guys, this message keeps showing on top of my page, can any one tell me what it is? "Warning: wincache_ucache_cas() expects parameter 2 to be integer, string given in D:\web\localuser\syslife\www\wiki\includes\libs\objectcache\WinCacheBagOStuff.php on line 58" Llordelo (talk) 12:13, 28 October 2016 (UTC)

Tracked in T120896 but apparently WinCache is broken since MediaWiki 1.26 Ciencia Al Poder (talk) 03:01, 29 October 2016 (UTC)

I can't change back in to my local default language after I change $wgLanguageCode

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.


  1. For the beginning i am using $wgLanguageCode = 'zh_cn' in LocalSettings.php;
  2. And I have changed into $wgLanguageCode = 'en' in LocalSettings.php,
  3. and then change back into $wgLanguageCode = 'zh_cn' in LocalSettings.php

Actual Results: 

The name of namespace , Mainpage. and the defult mainpage can't change into my before localizing namespace or mainpage. 

Before it is change automatically, right now it's just separated pages! seeking for help~

Expected Results: 

I want change back to localization and the namespace and mainpage can change automatically.

eg:

Category:$ <> 分类:$ 

Mainpage <> 首页

Product Version

MediaWiki 1.27.1

PHP 5.6.27 (apache2handler)

MySQL 5.7.16

Lua 5.1.5 Jackeymai32 (talk) 13:13, 28 October 2016 (UTC)

You can try running rebuildLocalisationCache.php (with --force) and Manual:rebuildmessages.php Ciencia Al Poder (talk) 02:47, 29 October 2016 (UTC)
Dear Ciencia:
Thank you for your reply, I have try the following command in Centos bash:
  1. php ./maintenance/rebuildLocalisationCache.php --force
  2. php ./maintenance/rebuildmessages.php --force
but after that, I have try it, but it still there when i log into index.php
  • I want to log into /wiki/index.php/首页 not /wiki/index.php/Main_Page
  • and the Namespace like help:, before it can change to my local language, but till now I can't I am thinking maybe the database problem, could you tell me how to do it ~
Thanks. Jackeymai32 (talk) 05:54, 29 October 2016 (UTC)
sorry I finally found that is my local setting fault, in the:
".languages/data/Names.php"
'zh' => '中文', # (Zhōng Wén) - Chinese
'zh-classical' => '文言', # Classical Chinese/Literary Chinese -- (see bug 8217)
'zh-cn' => "中文(中国大陆)\xE2\x80\x8E", # Chinese (PRC)
If I type the wrong name 'zh_cn' must be fault.sorry about that~ Thank you for your reply~ Jackeymai32 (talk) 06:24, 29 October 2016 (UTC)
The discussion above is closed. Please do not modify it. No further edits should be made to this discussion.

PHP Fatal error: Uncaught MWException: Unable to determine IP.

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.


root@ip-172-31-43-112:/web/hotowiki/w# php index.php
PHP Fatal error:  Uncaught MWException: Unable to determine IP. in /web/hotowiki/w/includes/WebRequest.php:1185
Stack trace:
#0 /web/hotowiki/w/includes/db/loadbalancer/LBFactory.php(429): WebRequest->getIP()
#1 /web/hotowiki/w/includes/db/loadbalancer/LBFactory.php(58): LBFactory->newChronologyProtector()
#2 /web/hotowiki/w/includes/db/loadbalancer/LBFactorySimple.php(37): LBFactory->__construct(Array)
#3 /web/hotowiki/w/includes/db/loadbalancer/LBFactory.php(86): LBFactorySimple->__construct(Array)
#4 /web/hotowiki/w/includes/GlobalFunctions.php(3174): LBFactory::singleton()
#5 /web/hotowiki/w/includes/exception/MWExceptionHandler.php(138): wfGetLBFactory()
#6 /web/hotowiki/w/includes/exception/MWExceptionHandler.php(169): MWExceptionHandler::rollbackMasterChangesAndLog(Object(MWException))
#7 [internal function]: MWExceptionHandler::handleException(Object(MWException))
#8 {main}
  thrown in /web/hotowiki/w/includes/WebRequest.php on line 1185
PHP Fatal error:  Uncaught MWException: Unable to determine IP. in /web/hotowiki/w/includes/WebRequest.php:1185
Stack trace:
#0 /web/hotowiki/w/includes/user/User.php(2096): WebRequest->getIP()
#1 /web/hotowiki/w/includes/session/SessionBackend.php(702): User->getName()
#2 /web/hotowiki/w/includes/session/SessionBackend.php(197): MediaWiki\Session\SessionBackend->save(true)
#3 /web/hotowiki/w/includes/session/SessionManager.php(465): MediaWiki\Session\SessionBackend->shutdown()
#4 [internal function]: MediaWiki\Session\SessionManager->shutdown()
#5 {main}
  thrown in /web/hotowiki/w/includes/WebRequest.php on line 1185

Fatal error: Uncaught MWException: Unable to determine IP. in /web/hotowiki/w/includes/WebRequest.php:1185
Stack trace:
#0 /web/hotowiki/w/includes/db/loadbalancer/LBFactory.php(429): WebRequest->getIP()
#1 /web/hotowiki/w/includes/db/loadbalancer/LBFactory.php(58): LBFactory->newChronologyProtector()
#2 /web/hotowiki/w/includes/db/loadbalancer/LBFactorySimple.php(37): LBFactory->__construct(Array)
#3 /web/hotowiki/w/includes/db/loadbalancer/LBFactory.php(86): LBFactorySimple->__construct(Array)
#4 /web/hotowiki/w/includes/GlobalFunctions.php(3174): LBFactory::singleton()
#5 /web/hotowiki/w/includes/exception/MWExceptionHandler.php(138): wfGetLBFactory()
#6 /web/hotowiki/w/includes/exception/MWExceptionHandler.php(169): MWExceptionHandler::rollbackMasterChangesAndLog(Object(MWException))
#7 [internal function]: MWExceptionHandler::handleException(Object(MWException))
#8 {main}
  thrown in /web/hotowiki/w/includes/WebRequest.php on line 1185

Fatal error: Uncaught MWException: Unable to determine IP. in /web/hotowiki/w/includes/WebRequest.php:1185
Stack trace:
#0 /web/hotowiki/w/includes/user/User.php(2096): WebRequest->getIP()
#1 /web/hotowiki/w/includes/session/SessionBackend.php(702): User->getName()
#2 /web/hotowiki/w/includes/session/SessionBackend.php(197): MediaWiki\Session\SessionBackend->save(true)
#3 /web/hotowiki/w/includes/session/SessionManager.php(465): MediaWiki\Session\SessionBackend->shutdown()
#4 [internal function]: MediaWiki\Session\SessionManager->shutdown()
#5 {main}
  thrown in /web/hotowiki/w/includes/WebRequest.php on line 1185
root@ip-172-31-43-112:/web/hotowiki/w#
Gochiusa (talk) 13:48, 28 October 2016 (UTC)
What is the value of $_SERVER['REMOTE_ADDR']?
Please make sure that $_SERVER['REMOTE_ADDR'] is set. It may not be unset or null - your error message sounds like that is the case for you! (Also it may not contain multiple values or an array. It should just be one value.) 87.123.39.2 (talk) 15:11, 28 October 2016 (UTC)
that value showing my ip.
https://hoto.wiki/remote_addr.php Gochiusa (talk) 15:56, 28 October 2016 (UTC)
The discussion above is closed. Please do not modify it. No further edits should be made to this discussion.

User groups broken after updating from 1.23.6 to 1.27.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.


Hello!

I've ran into issues with a MediaWiki instance after updating from 1.23.6 to 1.27.1.

I cannot edit any wiki page anymore and the error is

You do not have permission to edit this page, for the following reason:

The action you have requested is limited to users in the group: Users.

Some additional info:

  1. Update process was
    1. Unpacking 1.27.1 release into a new directory
    2. Adjusting LocalSettings from previous installation to match new plugin and skins loading method
    3. Replacing old htdocs with the new one
    4. Launching mw-config update script through Chrome Browser
    5. Setting $wgSessionInsecureSecrets = true;
  2. "Member of groups" field in user preferences is empty for all users, even for new accounts, although Special:ListUsers lists all users properly
  3. When removing $wgGroupPermissions['*']['edit'] = false; or changing it to "true", whole wiki page gets inaccessible and runs into redirection loop

Special:Version:

MediaWiki 1.27.1
PHP 5.6.5 (apache2handler)
MySQL 5.1.34sp1-enterprise-gpl-advanced
Lua 5.1.5 

The wiki is in a closed network, thus I cannot give the URL.

I don't know how to fix it, besides restoring the old one from backup.

Thanks in advance for any advice. Dmarszk (talk) 17:05, 28 October 2016 (UTC)

The steps you did during upgrade are looking good.
When you say
> "Member of groups" field in user preferences is empty for all users
then this is not ok. It should list all groups, which a given user is member of.
There basically are two different kinds of groups: The one, which a user is member of automatically. An example is the "user" group, which you mention. Membership of these automatic groups is not stored anywhere inside the database; instead it is added at runtime. The other kind are groups, which a user must have been made member of. "sysop" is an example for this kind of groups.
Obviously your user is not member of any groups, not even of the automatic one - which is not to be expected and which is a mistake. Every registered user should at least be member of the "user" group. The fact that also these groups are missing makes me think that the problem is not in the database. Are you using any extensions, which are modifying user rights? Maybe you still have to update them?
Using the API should btw always give you current and uncached information, e.g. with a query like this one:
> api.php?action=query&list=users&ususers=Dmarszk&usprop=groups 87.123.39.2 (talk) 17:37, 28 October 2016 (UTC)
Try disabling all extensions, as the error you have indicated is pretty much exactly similar to a bug caused by an older iteration of Extension:Lockdown for MediaWiki v1.27 and above. AhmadF.Cheema (talk) 18:33, 28 October 2016 (UTC)
Thank you for the responses guys.
The only 2 non-default (not provided in the release package) extensions we're using are Scribunto and DynamicPageLists. I'll try disabling all of the default and extra ones and see if it helps on Monday. Dmarszk (talk) 20:40, 28 October 2016 (UTC)
The culprit was DynamicPageList - by mistake I pulled the third-party one instead of intersection. That's what you get when doing an update on Friday. ;) Dmarszk (talk) 11:23, 31 October 2016 (UTC)
The discussion above is closed. Please do not modify it. No further edits should be made to this discussion.

Does git downloading leave some things out?

I downloaded a new mediawiki install and turned on <tt>$wgNamespacesWithSubpages[NS_MAIN] = true;</tt>. I get subpage behavior but the titles of all pages are just the ending subpage name (e.g. Article/Sub only has an H1 of "Sub"). Also, the breadcrumbs are missing. I have also noticed that going through redirects does not produce the little "redirected from ____" that I am used to seeing. How can I diagnose this problem?

MediaWiki 1.29.0-alpha (b6c3fc9)
PHP 5.6.24 (cgi-fcgi)
MySQL 5.6.28-log

The only things I've done different than normal is get everything via git. Thank you for any help you can offer. Aquatiki (talk) 00:16, 29 October 2016 (UTC)

Downloading from git requires you to also use composer, as explained in Download from Git. For debugging JavaScript problem hit F12 and look in the error console. If you temporarily set $wgShowExceptionDetails to true you may get more information.
I'm not sure what could be the problem with subpages though. Maybe is a feature of the skin you're using? If your wiki is public, a link to it would help. Ciencia Al Poder (talk) 18:53, 29 October 2016 (UTC)
"It is recommended that you have composer installed to download and install third party libraries, but not required." 120.144.23.217 (talk) 21:32, 29 October 2016 (UTC)
I think that's wrong. You need composer to get the dependencies for the vendor/ folder. And also things like the SyntaxHighlight extension won't be working, if you don't run composer inside the extension folder. 87.123.49.208 (talk) 22:17, 29 October 2016 (UTC)
I have to correct myself: As Download_from_Git explains, composer is not ncessarily needed.
In fact getting the vendor stuff can also be done using git.
However, according to Extension:SyntaxHighlight, composer is needed for the SyntaxHighlight extension. So in that regard Download from Git#Download all extensions is not correct. 87.123.49.208 (talk) 22:37, 29 October 2016 (UTC)

MediaWiki 1.27

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 upgrading to MW 1.27 from 1.25.1, I got an error similar to this: Project:Support desk/Flow/2016/07#h-Can't_login_or_create_user_after_upgrade_to_1.27-2016-07-05T08:20:00.000Z

Adding $wgSessionCacheType = CACHE_DB; seems to have fixed the problem (I was forced to change my password, though). Since our wiki has its cache running on memcached, I found no difference between using cache_db or memcached for the sessioncachetype value.

Anyway, even though login now works, it won't allow me to edit the wiki and I am getting an HTTP Error 500 whenever I click the edit button. Additionally, it seems that all the user groups that I have been in have disappeared. There's simply next to Member of groups:

Might it be an individual issue or is it related to the fact that Javascript stopped working and so have some extensions (Tabber, MW editor)?

Would anyone please tell me a fix for it? │Star-Warden09:59, 29 October 2016 (UTC)

Be sure you upgraded your extensions as well, and you haven't extracted the 1.27 installation files over the old 1.25.
See blank page, which may not be the exact same issue but should help. You need at least a descriptive error message to start diagnosing the problem. If you're seeing the generic HTTP 500 error from your server you may need to look at the error log of the server to see what went wrong.
For debugging JavaScript problem hit F12 and look in the error console. If you temporarily set $wgShowExceptionDetails to true you may get more information. Ciencia Al Poder (talk) 12:25, 29 October 2016 (UTC)
Hi. The instructions under blank page didn't reveal any error, nor I was able to find anything in the log. Same goes for ShowExceptionDetails. As for the console, these are the errors I have encountered: http://prnt.sc/d0h3wnStar-Warden15:12, 29 October 2016 (UTC)
Information on the error 500 will be in the webserver's error log.
What you showed in the screenshot is "ReferenceError: importScript is not defined". Apparently you have calls to importScript() somewhere in your installation. That JavaScript code is now not loaded by default (in fact, it's deprecated).
Add debug=true to your URL and check that error again to get more information about it, especially about where it is coming from! Also see ResourceLoader/Developing_with_ResourceLoader#Toggle_debug_mode! 87.123.9.86 (talk) 15:26, 29 October 2016 (UTC)
Hi. What should I do about importScript?
I have used debug=true and I received this: Fatal error: Call to a member function getLocalURL() on a non-object in /srv/dml-wiki/includes/skins/Skin.php on line 1051
When I went to check what's on that line, I found: return $title->getLocalURL( $urlaction );
Also, I used tail /var/log/nginx/error.log.1 in putty to pull the latest error log, but the latest I can see is from the 24th of this month... maybe I am not accessing the correct webserver log?
Enabling $wgResourceLoaderDebug = true; won't give me more information... │Star-Warden16:21, 29 October 2016 (UTC)
Giving the link to your wiki would probably help incredibly, if it's public.
/var/log/nginx/error.log.1 looks like an archived/rotated log, the current one may be under /var/log/nginx/error.log. Still, PHP errors probably won't go there, so you should check if there's an error_log directive configured for PHP, or configure it. See http://stackoverflow.com/questions/5127838/where-does-php-store-the-error-log-php5-apache-fastcgi-cpanel (and remember to give permissions to write to that file/folder) Ciencia Al Poder (talk) 16:46, 29 October 2016 (UTC)
Hi. This is the link to the wiki: http://dragon-mania-legends-wiki.mobga.me/Main_Page
I opened the error.log as you told me, but there's a huge amount of information, so I just copied everything from today, from the last hour shown: 16:00 until the end: http://pastebin.com/rGbTRzaY
I tried copying everything from today, but PasteBin said I exceeded the size limit. Still not sure if that's the correct one, but I hope so! │Star-Warden17:05, 29 October 2016 (UTC)
The error Call to a member function getLocalURL() on a non-object in /srv/dml-wiki/includes/skins/Skin.php on line 1051 is happening when $title is not set correctly. This is the case when $title = SpecialPage::getSafeTitleFor( $name ); did not return a title object.
I have now visited a few special pages in the wiki and I did not see an error.
Your log shows a number of things; most are notices: The Tabber extension is throwing a number of notices, e.g. for undefined indeces. You should see, if you can use an updated version, where these things are fixed.
2016/10/29 16:23:31 [error] 1379#0: *1706177 FastCGI sent in stderr: "PHP message: PHP Warning: require_once(/srv/dml-wiki/extensions/LastUserLogin/LastUserLogin.php): failed to open stream: No such file or directory in /srv/dml-wiki/LocalSettings.php on line 404
this means that you are trying to use the LastUserLogin extension, but its file is not present. You should either put the extension into place again, or you should remove its call in LocalSettings.php line 404.
2016/10/29 16:29:53 [error] 1379#0: *1707402 FastCGI sent in stderr: "PHP message: PHP Warning: file_put_contents(/srv/dml-wiki/images/cache/4/40/Category%3ADragons.html): failed to open stream: Permission denied in /srv/dml-wiki/includes/cache/FileCacheBase.php on line 171" while reading response header from upstream, client: 52.71.155.178, server: dragon-mania-legends-wiki.mobga.me, request: "GET /index.php?title=Category:Dragons HTTP/1.1", upstream: "fastcgi://127.0.0.1:9000", host: "dragon-mania-legends-wiki.mobga.me"
points to a permission problem with the folder /srv/dml-wiki/images/cache/. You should make sure that the webserver user has read and write access to the /srv/dml-wiki/images/ folder and to all subfolders! 87.123.9.86 (talk) 17:36, 29 October 2016 (UTC)
I saw that you (I think) edited a page and it worked for you. I asked someone else (a moderator) to try it, as well, and they weren't able to edit it. The edit interface opened for them and they were forced to hit preview (preview is disabled for under autoconfirmed), but even though they hit preview, the save button was greyed out and they weren't able to save their edit. The same exact thing happens to me, as well. Both they and I have blank (literally, nothing is there) shown next to 'member of groups' (i.e. we are not in any user groups). Also, the moderator was able to log in, even though their password is made of under 8 characters. I made another account (a regular user one) and I was able to edit a page (by going through preview, first, then hitting save - the save button was made available after I was forced to preview). That account, as well, had blank next to 'member of groups'. I am not sure if this is an issue related to staff members or to accounts made before this version of mediawiki.... │Star-Warden17:41, 29 October 2016 (UTC)
I deleted the LastUserLogin extension and removed its call in localsettings. I changed to that folder (dml-wiki/images) in putty (cd /srv/dml-wiki/images) then used chown -R www-data:www-data /srv/dml-wiki/images (while using root) to make the folder writable by the server. The Tabber extension should be up to date, as I downloaded every single extension through git, right as of today, as Ciencia advised me, to make sure every extension is up to date. (I used git clone https://gerrit.wikimedia.org/r/p/mediawiki/extensions/Tabber.git for Tabber). With the exception of LastUserLogin, PageImages, and DynamicPageList3 (which gave numerous errors, so I downloaded them manually), every extension was pulled from git using putty and the command above.
What should I do from here on and how to set $title correctly? │Star-Warden17:48, 29 October 2016 (UTC)
This is getting weirder: It won't allow me to use the chat saying "You are not allowed to chat, try logging in first." which is something only users that aren't logged in are able to see, even though I am logged in....
The same happens to my regular user account and to the moderator's account. │Star-Warden17:56, 29 October 2016 (UTC)
> What should I do from here on and how to set $title correctly?
As I said, I have visited a few special pages, but I did not get this error. Should this error still be happening, it would be useful to know, which special page the visitor tried to view. You should find that in the Apache log by looking for something close to the timestamp, at which the error happened. 87.123.9.86 (talk) 18:14, 29 October 2016 (UTC)
All right, maybe $title isn't the big issue here, but what about the parts about trying to edit and javascript still not working? The extensions seem to be working now, all of them (comments, tabber etc). │Star-Warden18:17, 29 October 2016 (UTC)
Before knowing the URL of the wiki, I already visited that wiki (by searching for dml-wiki in google) and I saw it was in version 1.25, and JavaScript was not working. Now I see it's on 1.27, and editing a page displays the edit toolbar as normal, so it should be almost resolved.
However, I see a JavaScript error about importScript not defined, which comes from your MediaWiki:Commons.js, which btw crashes badly when viewed, with Fatal error: Class 'Symfony\Component\Process\ProcessBuilder' not found in /srv/dml-wiki/extensions/SyntaxHighlight_GeSHi/SyntaxHighlight_GeSHi.class.php on line 283.
You'll need to replace importScript with mw.loader.load and the full URL to action=raw&ctype=text/javascript (see ResourceLoader/Legacy_JavaScript#importScript)
> every extension was pulled from git using putty and the command above.
Well, that may not work for you because you should download the REL1_27 branch of such extensions, not master, since master is now several months ago from when MediaWiki 1.27 came out and you may find incompatibilities. Also note that when downloading from git, some extensions require to use also composer, which is the case for Extension:SyntaxHighlight and the cause of the error when viewing MediaWiki:Common.js on your site Ciencia Al Poder (talk) 18:39, 29 October 2016 (UTC)
It was in version 1.25 because I continuously swapped between versions to be able to edit it, but I let it be in 1.27 when you decided to see it for yourself.
I am, honestly, lost when it comes to do the latter tasks you suggested.
How do I replace importScript with mw.loader? Where exactly do I have to go and what do I have to replace? I really can't tell from that link...
I downloaded from git following the instructions here: Download from Git#Download an extension
I didn't know they were going to have the master versions downloaded. I can switch them to 1.27, but how? What do I need to add to this command (git clone https://gerrit.wikimedia.org/r/p/mediawiki/extensions/<EXT>.git) for it to download 1.27?
Also, how do I know which extensions need to be downloaded through composer? And is this the right way to download through composer? Composer/For extensions#Specify the extensions to be installed
Many many thanks so far for all the help you have given me and for all the patience! A month ago, I wasn't even able to log in on the 1.27 version and now the wiki is closer than ever to finally running the latest version. │Star-Warden18:59, 29 October 2016 (UTC)
UPDATE: I figured out how to install 1_27 branches of extensions. Please confirm if it's correct: I simply add -b REL1_27 after 'git clone' (ex: git clone -b REL1_27 https://gerrit.wikimedia.org/r/p/mediawiki/extensions/<EXT>.git).
I also deleted SyntaxHighlight, downloaded the 1_27 version, then followed this exact part (taken from here: Extension:SyntaxHighlight#Installation):
"Alternatively as well as preferably add the line "extensions/SyntaxHighlight_GeSHi/composer.json" to the "composer.local.json" file it the root directory of your wiki like e.g.
{
"extra": {
"merge-plugin": {
"include": [
"extensions/SyntaxHighlight_GeSHi/composer.json"
]
}
}
}
Now run composer update --prefer-source. Voilà!"
There was no mention of SyntaxHighlight in putty while the composer update command was doing its part, so I hope SyntaxHighlight now works with composer.
I still don't know how to do the others, though... │Star-Warden19:34, 29 October 2016 (UTC)
UPDATE 2: All extensions are now 1.27. The only exception is MediaWikiChat, WikiForum and Comments because they seem to be able to run only on master. On 1.27 I get some fatal errors.
Also, it seems I am able to edit again! The only persisting problem seems to be JavaScript not working and importScript issue. │Star-Warden20:13, 29 October 2016 (UTC)
When I viewed and edited your wiki a few hours ago, I always had JavaScript disabled. Maybe that was the reason why I was able to do it, while others saw errors.
importFile() calls in fact are in your MediaWiki:Common.js page. They can be replaced like so:
Old:
importScript('MediaWiki:CustomModal.js');
New:
mw.loader.load( '/index.php?title=MediaWiki:CustomModal.js&action=raw&ctype=text/javascript' );
(untested)
See ResourceLoader/Default_modules#mediaWiki.loader and ResourceLoader/Migration_guide_(users)#mw.loader for details! 87.123.49.208 (talk) 22:09, 29 October 2016 (UTC)
Above you wrote that your users were displayed as if they would not be in any user group. Do you still recall, how you fixed that issue? If you still know that, please add a note to Project:Support desk/Flow/2016/10#h-User_groups_broken_after_updating_from_1.23.6_to_1.27.1-Book_rendering_failed-2016-10-28T17:05:00.000Z! 87.123.49.208 (talk) 22:40, 29 October 2016 (UTC)
Ooo, I understand. That importScript. But why did they make that horrible change? It looked so simple before and now it's just complicated.... MW should be about simplicity and user friendliness, sigh. Anyway, I changed them all (http://dragon-mania-legends-wiki.mobga.me/index.php?title=MediaWiki:Common.js&curid=788&diff=92623&oldid=91880), but still nothing.
As for the user groups, I honestly have no idea how I did it. It just fixed itself while applying one of Ciencia's fixes in his latest comment. It was out of nowhere. │Star-Warden23:27, 29 October 2016 (UTC)
I don't see errors in the JavaScript console now, apart from a warning, and those scripts are being imported, at least as a not-logged-in user. Do you see any error? Ciencia Al Poder (talk) 01:58, 30 October 2016 (UTC)
Actually the links inside the MediaWiki:Common.js page are wrong now:
You have:
/index.php?title=Jquery.js&action=raw&ctype=text/javascript
You should have
/index.php?title=MediaWiki:Jquery.js&action=raw&ctype=text/javascript
After you add the missing "MediaWiki:", the scripts should be found again.
(I just realize that this mistake came from my example - sorry for that!) 87.123.49.208 (talk) 09:13, 30 October 2016 (UTC)
Hi again. I am happy to say that JavaScript is now working! Thanks so much for all of your help!
There is one minor thing left, that might be related to JS. You see, every script loads except for this one: http://dragon-mania-legends-wiki.mobga.me/MediaWiki:Toggle.js
This script basically enables toggling between images in three InfoBoxes I created. As you can see in this image (http://prnt.sc/d0rt4i), normally, you can swap between the Baby and Egg images by simply clicking on them (works only PC - > http://dragon-mania-legends-wiki.mobga.me/Crystal_Dragon). But, the console says it cannot import the toggle script and here's why: http://prnt.sc/d0rudt That line is the very last line in the Toggle script. Is it something that needs to be changed as importScript was changed? If so, what should I replace it with? │Star-Warden10:45, 30 October 2016 (UTC)
Your error message reads "addOnloadHook is not defined". The hook is deprecated (or even got removed by now) and the replacement is jQuery.
On ResourceLoader/Legacy JavaScript#wikibits.js you will find that the replacement for this line is something like this:
jQuery( document ).ready( function( $ ) {
	/* your inline code to be executed after the page is loaded */
} );
87.123.49.208 (talk) 11:14, 30 October 2016 (UTC)
Still not working... I even tried the other two functions provided there..
Might it be related to our Jquery script on the wiki? http://dragon-mania-legends-wiki.mobga.me/MediaWiki:Jquery.jsStar-Warden11:32, 30 October 2016 (UTC)
Replace /* your inline code to be executed after the page is loaded */ with toggleInit();
ANd yes, I'd remove the loading of that MediaWiki:Jquery.js page, since MediaWiki already contains jQuery, a different version that can cause other errors. Ciencia Al Poder (talk) 12:08, 30 October 2016 (UTC)
Done both and it's working now! Thanks a lot for all this amazing help! It's truly appreciated. │Star-Warden12:16, 30 October 2016 (UTC)
The discussion above is closed. Please do not modify it. No further edits should be made to this discussion.

Hi, All of my sites now enforced HTTP Strict Transport Security, where users must connected with secured SSL connection.

Therefore, there is no need to jump to https login page since it is https. How can I remove the "Use secure connection" link in login page?

Thanks! Deletedaccount4567435 (talk) 05:55, 30 October 2016 (UTC)

Maybe you can control that with $wgSecureLogin Ciencia Al Poder (talk) 12:37, 30 October 2016 (UTC)
If your site uses a secure connection, you should check, why MediaWiki doesn't recognize this. E.g. if you've a frontend cache, please make sure, that it correctly sends the HTTP_X_FORWARDED_PROTO header (https), so MediaWiki recognizes the probably internal http-only traffic (e.g. varnish can't handle https traffic, so it has to be terminated by nginx and varnish forwards the request as http traffic to MediaWiki) as originally coming from https. Florianschmidtwelzow (talk) 07:40, 31 October 2016 (UTC)
Quick hack: Comment out the if ( $this->mSecureLoginUrl ) { ... } block in LoginSignupSpecialPage.php 143.169.49.169 (talk) 18:23, 9 February 2021 (UTC)
No hack is needed. What Florianschmidtwelzow said is the solution you need. Alternatively, you can try to force that request header in your server before passing it to PHP Ciencia Al Poder (talk) 18:57, 10 February 2021 (UTC)

Fatal error: Uncaught Cdb\Exception: Unable to move the new CDB file into place.

Did anyone have the same kind of Problem? 77.9.220.39 (talk) 08:37, 30 October 2016 (UTC)

Have you checked if your user has rights to write "into place"? (In any case, more info such as version and steps to reproduce needed.) Malyacko (talk) 12:11, 30 October 2016 (UTC)

Permission error

All pages (except the main page) in my wiki show permission error. Shouldn't they be publically visible? 84.227.117.193 (talk) 16:42, 30 October 2016 (UTC)

As a first step, try disabling all extensions and see if that solves the problem. AhmadF.Cheema (talk) 19:23, 31 October 2016 (UTC)
Whether a wiki should be publicly viewable depends on what the wiki adminsitrator wants to have. In a private wiki where viewing pages is restricted exactly this kind of "error" is happening. However, it is not an actual error - it is wanted behaviour. 87.123.0.100 (talk) 20:40, 31 October 2016 (UTC)

Visual Editor 500 error

Hi. Visual Editor refuses to work on my wiki (http://dragon-mania-legends-wiki.mobga.me/Main_Page). It keeps giving me this error: http://prnt.sc/d0xkk4. I installed parsoid and node.js correctly and even installed curl and php5-curl as specified here: Extension:VisualEditor#Troubleshooting

I assume php7.0 is not needed since the wiki is on PHP 5. The setMwApi should be configured properly: parsoidConfig.setMwApi({ prefix: 'localhost', uri: 'http://67.205.134.73/api.php', domain: 'localhost' });

and so should the local settings.php one

wfLoadExtension( 'VisualEditor' );

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

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

'domain' => 'localhost',

'prefix' => 'localhost'

);

The server runs nginx and not apache, but I am not sure if there is a rewrite rule (nor how to check it).

I checked the error.log and this is what I pulled from it: http://pastebin.com/UViRtMTq

I am not sure where I am going wrong. Would anyone please point me in the right direction? │Star-Warden19:03, 30 October 2016 (UTC)

There are two different fatal errors in your log:
PHP Fatal error:  Call to undefined function curl_multi_init() in /srv/dml-wiki/includes/libs/MultiHttpClient.php on line 418" while reading response header from upstream, request: "GET /api.php?action=visualeditor&format=json&paction=parse&page=Treater_Dragon&uselang=en
This error can prevent VisualEditor from loading. Please make sure that cURL is installed and activated in your PHP installation!
The other error, ''PHP Fatal error:  Call to undefined method QuestyCaptcha::getFormInformation()'' most likely is not related to issues with VisualEditor. Maybe the ConfirmEdit extension still needs an update; function getFormInformation() has been added to the code of the master branch in July this year. Please make sure that you are using the code for version 1.27, not the one from master! 87.123.21.53 (talk) 00:59, 31 October 2016 (UTC)
Hi. I ran apt-get install curl and apt-get install php5-curl, then ran service nginx restart and service php5-fpm restart, all while using root in the shell (putty). Both times it said that curl and php5-curl are up to date. Then I followed the instructions here: http://stackoverflow.com/questions/23233460/how-do-i-enable-curl-for-php and here: http://stackoverflow.com/questions/15089871/php-why-php-curl-is-not-working-with-nginx to make sure curl is enabled and it was already enabled, yet I am still getting http 500 errors. Here are the latest that I pulled from the error.log (http://pastebin.com/22XnAHRN).
As for ConfirmEdit, I am using the 1.27 branch. When I switched to the 1.27 mw software, I downloaded all extensions (except four: Comments, MediaWikiChat, WikiForum, Widgets) using git clone -b REL1_27 https://gerrit.wikimedia.org/r/p/mediawiki/extensions/<EXT>.git and ConfirmEdit was one of them. I just checked the extension, in the shell, using git branch and it returned REL1_27. │Star-Warden10:36, 31 October 2016 (UTC)
The cURL error no longer is in your logs now.
You still have some "7250 recv() failed (104: Connection reset by peer) while reading response header from upstream" errors in the log. I do't really know what that means - I am seeing this kind of error on my servers as well. They just happen like every 10.000th request. I don't know why.
The error "Call to undefined method QuestyCaptcha::getFormInformation() in /srv/dml-wiki/extensions/WikiForum/WikiForumClass.php on line 359"" is happening inside the WikiForum extension. Please use the version for MW 1.27 - the one, which you are using currently, obviously is not compatible. 87.123.0.100 (talk) 20:33, 31 October 2016 (UTC)
The problem with using REL1_27 of WikiForum is that I am getting this error:
Fatal error: Uncaught exception 'Exception' with message '/srv/dml-wiki/extensions/WikiForum/extension.json does not exist!' in /srv/dml-wiki/includes/registration/ExtensionRegistry.php:106 Stack trace: #0 /srv/dml-wiki/includes/GlobalFunctions.php(115): ExtensionRegistry->queue('/srv/dml-wiki/e...') #1 /srv/dml-wiki/LocalSettings.php(241): wfLoadExtension('WikiForum') #2 /srv/dml-wiki/includes/WebStart.php(124): require_once('/srv/dml-wiki/L...') #3 /srv/dml-wiki/index.php(40): require('/srv/dml-wiki/i...') #4 {main} thrown in /srv/dml-wiki/includes/registration/ExtensionRegistry.php on line 106
I am not getting this error with the master branch.
Similar errors happen for any 1.27 versions of Comments and MediaWikiChat (as a matter of fact, Comments is faulty even in previous versions, having to rely on the master branch all the time).
Honestly, I have no idea how to fix those issues regarding MWChat, wikiforum and comments.
If there's a fix for it, please tell me what to do. Currently, I commented out the line for WikiForum in LocalSettings as it was bringing the wiki down.
Also, what should I do about VisualEditor? I am still getting the same error.... │Star-Warden21:01, 31 October 2016 (UTC)
MWChat, wikiforum and comments doesn't support REL1_XX branches, sadly: https://phabricator.wikimedia.org/T149508#2754752 Ciencia Al Poder (talk) 02:33, 1 November 2016 (UTC)
Well, even if they don't, I don't think it can affect Visual Editor.
So, is there any fix to my issue? Anything at all? What could it be causing? What should I check? │Star-Warden09:51, 1 November 2016 (UTC)
I managed to make Visual Editor work, following the instructions here: https://www.mediawiki.org/wiki/Parsoid/Troubleshooting
But now there is another problem. Whenever saving a page after editing it with Visual Editor, the page will 'break' hooks from Tabber and Comments (the ones I noticed, so far). In this edit, you can see how it changed everything on its own, while my sole edit was adding a number in a table:
http://dragon-mania-legends-wiki.mobga.me/index.php?title=Demonic_Dragon&curid=85&diff=92686&oldid=91250
There seems to be no edit to the <comments /> hook, but it kills the comment section and makes the hook visible on the page. What might be the cause of all this? │Star-Warden17:39, 1 November 2016 (UTC)
Not only that, but all edits made through VE are marked as unpatrolled.. even though my edits are automatically patrolled. │Star-Warden18:13, 1 November 2016 (UTC)
Error: 42P01 ERROR: relation "Comments" does not exist LINE 1 115.113.69.206 (talk) 08:54, 9 March 2017 (UTC)
Hi all...please healp me....i am trying to configure comment extension but i have getting error ..please look below
= Database error =
A database query error has occurred. This may indicate a bug in the software.
  • Query: SELECT Comment_Username,Comment_IP,Comment_Text,Comment_Date,UNIX_TIMESTAMP(Comment_Date) AS timestamp,Comment_user_id,CommentID,Comment_Parent_ID FROM "Comments" WHERE Comment_Page_ID = '774'
  • Function: CommentsPage::getComments
  • Error: 42P01 ERROR: relation "Comments" does not exist LINE 1: ...Comment_user_id,CommentID,Comment_Parent_ID FROM "Comments" 115.113.69.206 (talk) 08:57, 9 March 2017 (UTC)
Follow the installation instructions, specially the part "Run the update script which will automatically create the necessary database tables that this extension needs." Ciencia Al Poder (talk) 10:33, 9 March 2017 (UTC)

Restricting wiki access to AD group

Hi, we set up Mediawiki using OAM webgate for SSO and Auth remoteuser. Currently, an account is created for anyone who has a smartcard and accessed the wiki. We would like to restrict access to the whole wiki to 1 AD group. I have tried in the local settings file but because the authentication is through webgate (headers) it is not working. Any ideas on how to get this accomplished would be very much appreciated. I am trying to somehow modify initUser function (Auth_remoteuser.body.php) to validate userid in LDAP before doing anything else..

basically, if user exists in LDAP group, proceed as normal (create user and log them in) and if not, exit; user will not be created,

Thanks in advance 150.148.14.96 (talk) 01:04, 31 October 2016 (UTC)

I guess this may not be the best way to go with this.. Any suggestions?? 150.148.14.96 (talk) 12:23, 1 November 2016 (UTC)
Greetings. I am guessing this is not the best way to do this. Any/all assistance is appreciated 150.148.14.96 (talk) 16:44, 1 November 2016 (UTC)
sorry for double message computer froze on me. 150.148.14.96 (talk) 16:45, 1 November 2016 (UTC)

Anyone have memory size exhausted problem with runJobs.php?

Hi, after upgrade to MW 1.27 with PHP 7.0.12-1~dotdeb+8.1, we noticed that while running php /wiki/maintenance/runJobs.php we will get following error:

PHP Fatal error:  Allowed memory size of 209715200 bytes exhausted

(209715200 bytes equal to 200mb)

We also tried php /wiki/maintenance/runJobs.php --memory-limit 512M, and  --memory-limit 5M. Both of them return:

PHP Fatal error:  Allowed memory size of 2097152 bytes exhausted

(YES! RIDICULOUS 2MB MEMORY LIMIT!)

Meanwhile, php -i | grep memory_limit will return:

memory_limit => 512M => 512M

Anyone having same runJobs problem? Is this a php bug or MW error? Deletedaccount4567435 (talk) 01:51, 31 October 2016 (UTC)

Works for me. The amount of emory needed depends on the job being run at that time. Depending on the job, more or less memory will be needed. 87.123.0.100 (talk) 20:34, 31 October 2016 (UTC)
This looks like a bug, indeed. From all the pending jobs, it's probably one of them which is causing the problem. Try to identify it and then report a bug Ciencia Al Poder (talk) 02:36, 1 November 2016 (UTC)

Extension:InterWiki

Hi guys, I am having a problem with this extension because I installed and I try to make communication between the wikis but always gives error in database, how do I solve this? WikiUser22222 (talk) 02:55, 31 October 2016 (UTC)

What is the database error that you see? This, that and the other (talk) 07:04, 31 October 2016 (UTC)
I'm not sure how to use this extension completely, to be honest, because I try to use for internal communication in the project of two wikis that I have on the server and gives a problem stating that there was a BUG in the software and a communication error with databank of server showing a page asking to search on google. I want to know where solve this problem? WikiUser22222 (talk) 14:47, 31 October 2016 (UTC)
Please give full and exact error messages so we can diagnose the problem. Ciencia Al Poder (talk) 18:16, 31 October 2016 (UTC)

Database Error

MediaWiki 1.27.1

PHP 5.5.9-1ubuntu4.20

PostgreSQL 9.3.14

https://wiki.tfcmud.com/index.php/Deletetest

I get an error when I attempt to delete a page. I get the following error:

Query:

INSERT INTO "cu_changes" (cuc_id,cuc_namespace,cuc_title,cuc_minor,cuc_user,cuc_user_text,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 ('6481','0','Deletetest','0','2','Tynian','Tynian deleted page Deletetest','Deletion test','0','0','3','2016-10-31 05:35:33 GMT','68.106.57.89','446A3959',0,NULL,'Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Ubuntu Chromium/53.0.2785.143 Chrome/53.0.2785.143 Safari/537.36','4364')

  • Function: CheckUserHooks::updateCheckUserData
  • Error: 23503 ERROR: insert or update on table "cu_changes" violates foreign key constraint "cu_changes_cuc_page_id_fkey" DETAIL: Key (cuc_page_id)=(4364) is not present in table "page".

If I comment out the CheckUser extension, I am able to delete the page. I have upgraded CheckUser from Git, but get the same results.

Any ideas how I fix this? 68.106.57.89 (talk) 05:42, 31 October 2016 (UTC)

Which exact CheckUser version is used? AKlapper (WMF) (talk) 14:51, 31 October 2016 (UTC)
I'm not sure why, but Checkuser for postgres use foreign key constraints (!) while the mysql version and MediaWiki core doesn't. Postgres isn't usually tested and it's probably a bug. If you want to workaround that, simply remove the "cu_changes_cuc_page_id_fkey" foreign key constraint from your database. But please also open a BUGREPORT about that. Ciencia Al Poder (talk) 18:14, 31 October 2016 (UTC)
Thanks for the assistance. I'll drop the constraint. I'll also look at filing a bug report. 68.106.57.89 (talk) 02:21, 4 November 2016 (UTC)

WikiEditor tools

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've installed WikiEditor but it is quite different from the one used in wikipedia.en. I would like to have the lower toolbar too, where you can add wiki marup, symbols and so on. How can I do?

Many thanks! Loman87 (talk) 08:59, 31 October 2016 (UTC)

Do probably refer to Extension:CharInsert, which one usually adds to MediaWiki:Edittools Ciencia Al Poder (talk) 18:18, 31 October 2016 (UTC)
The following section detailed the exact steps to follow, for Wikipedia CharInsert menu:
Extension:CharInsert#English Wikipedia CharInsert menu AhmadF.Cheema (talk) 19:11, 31 October 2016 (UTC)
Thanks guys! It works now.
Bye! Loman87 (talk) 08:35, 2 November 2016 (UTC)
The discussion above is closed. Please do not modify it. No further edits should be made to this discussion.

What does the PPFrame_DOM::expand usually does?

I notice there are lots of page executed very slow. I tried to dig out the reason, but all my clue stop at the "PPFrame_DOM::expand".

What PPFrame_DOM::expand does and any better way to debug performance problem? The php will die randomly, and I can't figure out why. Deletedaccount4567435 (talk) 15:06, 31 October 2016 (UTC)

onAlternateEditPreview question

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.


New to PHP, not to coding, puzzled by why the code in this extension doesn't work. I know the handler gets called, because if I uncomment the //$previewHTML="TEST"; line and comment out the other logic, the preview page displays accordingly. However, as written, all I get is a blank preview page. My understanding is that $previewHTML contains the HTML to be displayed - what am I doing wrong?

public static function onAlternateEditPreview( $editor, &$content, &$previewHTML, &$parserOutput ) {

$color = '#F9FF33';

$words = array(

'would',

'could',

'should',

'i.e',

'e.g.',

'vs.',

'ad hoc',

'vice versa',

'via',

'etc.',

'don\'t',

'won\'t',

'can\'t',

'shouldn\'t',

'out of the box',

'on the fly',

'will',

'Warning:'

);

foreach( $words as $word )

{

$replace = '<span style="background-color: ' . $color . ';">' . $word . '</span>';

$previewHTML= str_replace( $word, $replace, $previewHTML);

}

//$previewHTML="TEST";

return false;

} Anthony Jay Corman (talk) (talk) 16:14, 31 October 2016 (UTC)

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

It is ok to delete the contents of the 'cache' folder?

I want to purge the cache for all pages. Is it safe to delete the contents of the 'cache' folder altogether? Or is there another method I should be using? 52.53.225.146 (talk) 18:09, 31 October 2016 (UTC)

I am not sure about that folder, but you can use purgeList.php to purge all the pages. │Star-Warden19:11, 31 October 2016 (UTC)
The cache/ folder can contains different things and usually you can just delete them. E.g. there might be cached language files, cached less files or cached version of page content files. These can be deleted and will be regenerated automatically as far as that is needed.
However, it finally depends on what is in there. 87.123.0.100 (talk) 20:37, 31 October 2016 (UTC)

Who are the nice people who are answering these questions?

Is it WikiMedia staff? 52.53.225.146 (talk) 18:13, 31 October 2016 (UTC)

For the biggest part it's volunteers. People, who are using MediaWiki and who know how it is working. Some of these guys are affiliated with the Wikimedia Foundation, many are not. 87.123.0.100 (talk) 20:19, 31 October 2016 (UTC)

Cannot access the database: No such file or directory (localhost)

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 running Mediawiki in a Docker container with a separate MySQL container as the DB. I have set up my DB via the install wizard but no matter what I do I get the Cannot access the database: No such file or directory (localhost) error.

I am positive my settings for Mediawiki are all correct but I still will have the localhost error. It even says localhost when my DB is NOT on localhost. Are there any known issues for using Mediawiki in a Docker Container? I have the containers linked and both can talk to each other. I can access the db from the browser using a DB connection test script on the mediawiki container. The mysql client can also connect just fine from the mediawiki container.

Also why does it say localhost when it's not a local db?

Thanks, 2601:193:8302:1FA5:25FB:ECB7:D3E4:CD04 (talk) 19:38, 31 October 2016 (UTC)

Your Localsettings.php should have settings like this in it:
$wgDBtype = "mysql";
$wgDBserver = "localhost";
$wgDBname = "mediawiki";
$wgDBuser = "mediawiki";
$wgDBpassword = "mediawiki";
I suspect that your $wgDBserver is not set correctly. Gerdesj (talk) 01:59, 1 November 2016 (UTC)
Or maybe you had a typo when specifying $wgDBserver and the wiki is using the default value. Be sure the case is correct. Ciencia Al Poder (talk) 02:28, 1 November 2016 (UTC)
SOLVED THE ISSUE! :)
my docker-entrypoint.sh file was setting the wgDBserver value in the LocalSettings.php file but it had a typo in a sed command. :P
Thanks for your help you made the difference so I could find the typo! 2601:193:8302:1FA5:25FB:ECB7:D3E4:CD04 (talk) 13:02, 1 November 2016 (UTC)
The discussion above is closed. Please do not modify it. No further edits should be made to this discussion.

image url extraction via wikidata toolkit

i am pulling P18 image property statement. all i get is the commons media page

e.g https://commons.wikimedia.org/wiki/File:Cobie_Smulders(1).jpg

i need the direct url. can anyone tell me the right way to do so ? 64.236.4.3 (talk) 21:18, 31 October 2016 (UTC)

Exact steps to reproduce how are you pulling P18 image property statement are welcome Ciencia Al Poder (talk) 02:30, 1 November 2016 (UTC)