Project:Support desk/Flow/2017/02

This page is an archive.
Please ask questions on the current support desk.
Category:Support desk archives#Flow%20Archive%20Support%20desk/Flow/2017/02

Wiki pages not editable due to token_suffix_mismatch

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.


In a personal wiki I cannot edit pages anymore. After clicking on "save changes" I am redirected to the preview page and get an error message:

german verison:

Deine Bearbeitung wurde zurückgewiesen, da dein Browser Zeichen im Bearbeiten-Token verstümmelt hat. Eine Speicherung kann den Seiteninhalt zerstören. Dies geschieht bisweilen durch die Benutzung eines anonymen Proxy-Dienstes, der fehlerhaft arbeitet.

english version:

Your edit has been rejected because your client incorrectly handled the punctuation characters in the edit token. The edit has been rejected to prevent corruption of the page text. This sometimes happens when you are using a defective web-based anonymous proxy service.

The internal error code is token_suffix_mismatch. In PHP the option magic_quotes_gpc is activated by the provider.

I don't know how I can solve this problem. Do I have to adjust the configuration?

Produkt Version
MediaWiki 1.15.1
PHP 5.2.17 (cgi-fcgi)
MySQL 5.1.73-log

Thanks in advance!

Ole OleOJumper (talk) 06:21, 1 February 2017 (UTC)

Can you try turning off magic_quotes_gpc in an .htaccess?
MediaWiki 1.15 is very old, you should try to find a host with a more recent PHP version and upgrade MediaWiki. Ciencia Al Poder (talk) 10:53, 1 February 2017 (UTC)
Thank you for your suggestions, I will try that. OleOJumper (talk) 13:49, 1 February 2017 (UTC)
I created a php.ini in my wiki server folder which contains
magic_quotes_gpc = Off
Now it works again!
Ciao Ole OleOJumper (talk) 02:31, 7 February 2017 (UTC)
The discussion above is closed. Please do not modify it. No further edits should be made to this discussion.

Error in special pages

Hi,

when I visit the Special Pages this error is shown:

Notice: Did not find alias for special page 'GetData'. Perhaps no aliases are defined for it? [Called from SpecialPageFactory::getLocalNameFor in /var/lib/mediawiki/includes/specialpage/SpecialPageFactory.php at line 688] in /var/lib/mediawiki/includes/debug/MWDebug.php on line 300

It seems to be a missing alias. Any ideas to solve the issue?

Thanks,

Lorenzo Loman87 (talk) 11:34, 1 February 2017 (UTC)

Which special page are you visiting? If your wiki is public, can you give us the URL? If not, which extensions do you have installed? MarkAHershberger(talk) 16:21, 1 February 2017 (UTC)
Hi,
my wiki is at this link. The problem is in Special:SpecialPages Loman87 (talk) 18:19, 1 February 2017 (UTC)
Looks like an issue with ExternalData. Filed a bug with some more info. MarkAHershberger(talk) 21:38, 1 February 2017 (UTC)

Will RESTful API available for other wikis?

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.


https://www.mediawiki.org/api/rest_v1/ This RESTBase API is excellent ! :-)

Will it available for non-wikimedia wikis? Ken Ookami Horo (talk) 13:48, 1 February 2017 (UTC)

RESTBase has a link to the source code and installation instructions. MarkAHershberger(talk) 16:24, 1 February 2017 (UTC)
Thanks . =w= Ken Ookami Horo (talk) 09:26, 2 February 2017 (UTC)
The discussion above is closed. Please do not modify it. No further edits should be made to this discussion.

Upgrade to 1.28 to use slideshow but doesn't work

I upgraded to this version, only to use this new option but doesn't work.

Options like below works normally.:

  • traditional is the original gallery type used by MediaWiki.
  • nolines is similar to traditional, but with no border lines.
  • packed causes images to have the same height but different widths, with little space between the images. The rows in this responsive mode organize themselves according to the width of the screen.
  • packed-overlay shows the caption overlaid on the image, in a semi-transparent white box.
  • packed-hover is similar to packed-overlay, but with the caption and box only showing up on hover.

Need help.

Thanks. Acardos0 (talk) 16:18, 1 February 2017 (UTC)

Thank you for asking about this -- I wasn't aware of this feature in 1.28. It looks like a killer one. I'll test it and see if I can find out what you need.
Are you saying that none of the slideshow options works for you? MarkAHershberger(talk) 16:31, 1 February 2017 (UTC)
All options in this page: Help:Images/pt-br works like a charm.
Only this new option "slideshow" don't.
I want to implement this in my wiki to people here in my company, use this.
Observation: English it's not my first language, so sorry about misunderstanding. Acardos0 (talk) 16:37, 1 February 2017 (UTC)
Someone tested this function? Thanks. Acardos0 (talk) 15:34, 2 February 2017 (UTC)

enable visualeditor mobilefrontend

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


Hi! i am struggeling to find out how i can enable visualeditor in mobilefrontend, 148.122.45.128 (talk) 16:27, 1 February 2017 (UTC)

What have you tried? If your wiki is public, can you link to it? MarkAHershberger(talk) 16:36, 1 February 2017 (UTC)
i have installed the extensions, but when i go to mobilesite and tries to edit, it just shows sorce
virkeramex.com/wiki 148.122.45.128 (talk) 16:41, 1 February 2017 (UTC)
figured it out :) i also ad an other wysiwyg editor enabled that crached it. 148.122.45.128 (talk) 16:57, 1 February 2017 (UTC)
Ah, maybe that was what I first saw. Awesome! MarkAHershberger(talk) 17:15, 1 February 2017 (UTC)
Works for me under Chrome.
However, under FF, your site is showing JS errors that are probably getting in the way of VE. I see a couple of these:
Fatal exception of type "BadMethodCallException"
Unfortunately, I can't get a stacktrace in FF, so I'm not sure what is causing it.
What browser are you using? MarkAHershberger(talk) 17:04, 1 February 2017 (UTC)
Actually, I just tried again (anonymously) and was able to switch to VE by clicking the gear and switching. By default it shows source editing. MarkAHershberger(talk) 17:13, 1 February 2017 (UTC)
The discussion above is closed. Please do not modify it. No further edits should be made to this discussion.

how do I change my username?

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 change my username (from AbaloneBay to DonnaMartinez)? I wish to have my contributions in line with terms of use. Donna Martinez 18:20, 1 February 2017 (UTC)

See en:Wikipedia:Changing username! 87.123.251.85 (talk) 18:40, 1 February 2017 (UTC)
The discussion above is closed. Please do not modify it. No further edits should be made to this discussion.

Error after Upgrade 1.26 to 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.


After upgrading from 1.26 to 1.27 my Wiki does not work anymore. Die Content is visible for a second and then it disappears. There are no php errors shown. In Chrome Developer Tools I see the javascript arrors on the picture attached..

The same happens if i import the database from this site in an new clean Wiki.

All extensions are disabled

php version: 7.0.13

10.1.19-MariaDB Ravelli67 (talk) 21:10, 1 February 2017 (UTC)

If your wiki is public, please link to it so we can see the problem.
Also, it looks like the problem is because you're depending on some js from de.wikipedia.org ... what happens if you remove that js? MarkAHershberger(talk) 01:35, 2 February 2017 (UTC)
document.write is causing the page blank. It should not be used anymore on modern browsers! Ciencia Al Poder (talk) 11:07, 2 February 2017 (UTC)
Thanks for the reply.
Unfortunately the wiki is not public.
I made an xml dump from the DB and found the following entrys several times. Can you tell me how to remove them from the database?
})});</text>
      <sha1>m0bdi680shdhv6fk57f8siuc11u7p74</sha1>
    </revision>
    <revision>
      <id>1836</id>
      <parentid>1833</parentid>
      <timestamp>2013-12-02T15:56:55Z</timestamp>
      <contributor>
        <username>Username</username>
        <id>11</id>
      </contributor>
      <comment>Änderung 1833 von [[Special:Contributions/username|User]] ([[User talk:username|Diskussion]]) rückgängig gemacht. Geht nicht und braucht es auch nicht. Es gibt eine Wikitable Calls, die denselben Zweck erfüllt</comment>
      <model>javascript</model>
      <format>text/javascript</format>
      <text xml:space="preserve" bytes="2469">/* Das folgende JavaScript wird für alle Benutzer geladen. */
/* Typografie-Tool */
document.write('&#x3C;script type=&#x22;text/javascript&#x22; src=&#x22;'
 + 'http://de.wikipedia.org/w/index.php?title=Benutzer:Jowereit/typografie.js'
 + '&#x26;action=raw&#x26;ctype=text/javascript&#x26;dontcountme=s&#x22;&#x3E;&#x3C;/' + 'script&#x3E;');
/* Einfaches Signatur-Nachtragen */
document.write('&#x3C;script type=&#x22;text/javascript&#x22; src=&#x22;http' + '://de.wikipedia.org/w/index.php?title=User:lustiger_seth/unsigned.js' + '&#x26;action=raw&#x26;ctype=text/javascript&#x26;dontcountme=s&#x22;&#x3E;&#x3C;/script&#x3E;');
/* Sperrstatus von Seiten */ document.write('&#x3C;script src=&#x22;' + 'http://de.wikipedia.org/w/index.php?title=Benutzer:Stefan/Sperrstatus.js' + '&#x26;action=raw&#x26;ctype=text/javascript&#x22;&#x3E;&#x3C;/script&#x3E;');
Ravelli67 (talk) 13:49, 2 February 2017 (UTC)
It looks like that may be in your MediaWiki:Common.js page. MarkAHershberger(talk) 13:59, 2 February 2017 (UTC)
Unfortunately i cannot edit this page using the wiki. Is it possible to change that in the Database directly? Ravelli67 (talk) 14:08, 2 February 2017 (UTC)
You should have an on-wiki user to do that. If you can edit the db, you can run createAndPromote.php to create an administrative user or give your user administrative privileges. MarkAHershberger(talk) 14:16, 2 February 2017 (UTC)
I have the administrative privileges and can edit the database. But i cannot do that Editing using the wiki page because it only shows blank pages. Ravelli67 (talk) 14:25, 2 February 2017 (UTC)
Turn off JS and you'll be able to edit the page. MarkAHershberger(talk) 14:33, 2 February 2017 (UTC)
Thank you very much. I removed the external links from the common.js. Now it is working again. Ravelli67 (talk) 15:18, 2 February 2017 (UTC)
The discussion above is closed. Please do not modify it. No further edits should be made to this discussion.

IPB to wiki

is there a integration that works with latest ipb i tried 2 different one and neither of them work past ipb 3 and I'm on ipb 4.1. Daisyanne1380 (talk) 00:33, 2 February 2017 (UTC)

What is ipb? MarkAHershberger(talk) 01:32, 2 February 2017 (UTC)
invision power board its a forum. both projects Extension:IPBAuth use to link both together but its outdated.it doesnt work in ipb 4.1 Daisyanne1380 (talk) 10:59, 2 February 2017 (UTC)
I'm not sure what sort of integration is provided. It looks like Extension:IPBAuthLogin is much newer, but may not work with your version. MarkAHershberger(talk) 14:05, 2 February 2017 (UTC)
its basically to share login so member dont have to create 2 different accounts. This is the 3rd project that does not support 4.1 Daisyanne1380 (talk) 15:50, 2 February 2017 (UTC)
"share login" -- ok, but how? How new is 4.1? It seems like you might ask @FHannes if he plans to support 4.1 since that extension was updated only a few months ago. MarkAHershberger(talk) 16:13, 2 February 2017 (UTC)
ipb 4 been out a while like over a year.
If anybody know a more updated project that support ipb4 i would appreciate a link thanks. Daisyanne1380 (talk) 16:30, 2 February 2017 (UTC)
Hi, the version I created does not offer support for IPB 4.1, but could be modified to work with it. I'm personally still running IPB 3, which is why I haven't added support for it yet. You can send a pull request if you do though. My goal in writing this was to provide an extension which is compatible with the newer versions of MediaWiki, which changed some key aspects of the authentication system. FHannes (talk) 22:00, 7 February 2017 (UTC)
Do you know where the differences between IPB 3 and 4 authentication are covered? MarkAHershberger(talk) 22:25, 7 February 2017 (UTC)
The only relevant information is the software's source code. The plugin authenticates directly from the forum database, so all that's needed is to replicate the authentication process (given that no OAuth system is used of course). FHannes (talk) 03:09, 19 February 2017 (UTC)
the forked version of Extension:IPBAuthLogin works great with IPS 4.x, but MW 1.38 broke it, so now I can't upgrade to LTS 1.39.1 until there's a fix. It should be very simple to update for a PHP coder, since it's really a simple method.
I'm a hack and have made some headway, but the issue is detailed here for anyone interested. ~z929669 Talk 06:58, 10 February 2023 (UTC)

Filters

Hi everybody,
I am a newbie so I hope that this question will not sound as very stupid. I am thinking to realize a wiki for my website and I would like to give opportunity to have a kind of advanced research bar. My website is about old cars and what I want is that the user could filter the research for "model", "color", "year", is this possible ? Dagh1985 (talk) 07:33, 2 February 2017 (UTC)
I think that you can create a special page with a table with the list of all cars and their specifications, then users can set filters by criteria at the table. Fokebox (talk) 14:28, 2 February 2017 (UTC)
What you ask would be a feature of a relational database, however wiki pages don't have structured data, unless you run a Wikibase instance or you have Extension:Semantic MediaWiki, so this is not possible to do with search. With Semantic MediaWiki and a few other extensions like Ask and Semantic Forms you may be able to do something like this, but it's probably somewhat complex. Ciencia Al Poder (talk) 11:21, 2 February 2017 (UTC)

MediaWiki with auto LDAP authentication

Hello folks,

We are using MediaWiki 1.23.5 on Ubuntu 14 for 2 years and we are very pleased with it.Users are authenticate with LDAP credentials, but now everyone explain that they need to enter their usernames and password everytime when they login.Is there auto LDAP extension, when users click on button/link, to login them auto? Stefan.bakurdzhiev (talk) 08:08, 2 February 2017 (UTC)

To be automatically logged in upon entering the website, on a windows environment, the server needs to support NTLM/Kerberos. You say your server is Ubuntu, and I don't know if your users are on windows or linux, but I don't think that's possible on unix environments. Ciencia Al Poder (talk) 11:15, 2 February 2017 (UTC)
It is possible to do passwordless SSO for Chrome/MSIE users against an Apache webserver running on Linux using SPNEGO (which means kerberos underneath). Firefox doesn't have very good (any?) SPNEGO support.
It isn't trivial, but it does provide SSO if they are signed into a computer that has authenticated on your domain. I wrote PluggableSSO to manage the (more trivial) MediaWiki side of this.
It is also possible to have another authentication mode besides SPNEGO. Cindy's work on PluggableAuth will be instructive here. MarkAHershberger(talk) 14:14, 2 February 2017 (UTC)
Hi Mark,
Thanks for this hint, i'll probably test this extension, but i'm little confused with configuration.
Does i need to install and config prerequisite for Kerberos and SSO mods in Ubuntu (something like that: http://nickes.net/implementing-kerberos-ad-integration-for-single-sign-on-in-apache/ ) Stefan.bakurdzhiev (talk) 07:25, 3 February 2017 (UTC)
Yes, you'll need to do something like that. Feel free to email me if you need help troubleshooting. MarkAHershberger(talk) 01:05, 4 February 2017 (UTC)

I noticed I always have jobs left in the jobs queue. Had a look at the table and they are all either refreshLinks or refreshLinksPriority jobs. I figured that running runJobs.php should clean them up, but it doesn't.

I have tried setting jobattemtps = 0 on all, and that doesn't fix the issue. I also tried clearing them all out, but they re-appear.

The reason I even started looking at this was that categories and wanted pages and similar don't seem to be updating.

Stumped :-( Tenbergen (talk) 17:56, 2 February 2017 (UTC)

I'm not sure why categories wouldn't be updated, but it is normal to have refreshLinks jobs. You can run down the queue, but it might take longer than you think.
In any case, I'm pretty sure that is not why your categories, etc are not updating. MarkAHershberger(talk) 18:34, 2 February 2017 (UTC)
I agree that it's not why categories are not updating, but am trying to get to a point where I can look one thing at a time. I wanted to start with a clean jobs queue to see what happens in there when an article is added to a category. I was almost not going to mention that part lest we get lost down that trail.
I understand that it can take time to empty the jobs queue, but I don't think that is the issue here. If I run runJobs.php manually it takes a bit of time the first time and shows text as it runs. Subsequent times are quick and no text shows. So, I think something gets stuck. I have emptied the table manually but after a bit I again have stuck jobs.
Is there any general maintenance/fix script I could run? EG something that would just re-parse all the markup? The wiki just has <3000 articles, and even if this took a few hours I would be fine with it if it fixed the problem. (sorry got logged out, this edit was by Tenbergen as well) 142.233.200.21 (talk) 20:10, 2 February 2017 (UTC)
Running refreshLinks.php will fix categories and links, and you can remove those refreshLinks* jobs from the database. After that, still categories may take a while to update on new edits, because they're populated using the job queue. If using MediaWiki 1.27 or earlier, be sure to set $wgRunJobsAsync = false; Ciencia Al Poder (talk) 20:20, 2 February 2017 (UTC)
I am using 1.28.0.
I just ran refreshLinks. Now I have >5000 jobs on the list, mostly of type refreshLinks. If I run runJobs.php again, I still have 800 jobs left. Repeated running of runjobs doesn't remove the remaining 800 jobs. Tenbergen (talk) 22:07, 2 February 2017 (UTC)
I wonder if this might be related to another error I get: Manual talk:Orphans.php Tenbergen (talk) 22:16, 2 February 2017 (UTC)
What is the kind of job that does not get executed by runJobs.php? The column job_cmd in the job table inside the database will give you more information on what kind of job it is. 87.123.252.80 (talk) 22:30, 2 February 2017 (UTC)
job_cmd is mostly refreshLinks or refreshLinksPriority Tenbergen (talk) 17:45, 6 February 2017 (UTC)
You can delete all rows with refreshLinks in it and instead run the refreshLinks.php maintenance script. 87.123.249.115 (talk) 21:53, 6 February 2017 (UTC)
When I run refreshLinks.php I end up with '''more''' refreshlinks jobs. The wiki only has about 2700 pages, after refreshlinks I have >4000 jobs in queue, of which 861 resp 13 are Refreshlinks resp refreshlinksprioritized. The remaining 2093 are htmlCacheUpdate.
If I then run runJobs.php to clean up the htmlCacheUpdates get dealt with but the refreshlinks remain.
I have been going back and forth with the maintenance tasks for days to see if I can come up with a series that will clean this up, but no luck so far, and so I am here. Tenbergen (talk) 17:28, 7 February 2017 (UTC)
This looks like a bug in 1.28. I've reported it as T157545 Ciencia Al Poder (talk) 10:57, 8 February 2017 (UTC)
I am so glad you said that. I was starting to think I am loosing my marbles. Thanks! Tenbergen (talk) 00:48, 9 February 2017 (UTC)
Maybe this will also address that I can run runJobs repeatedly and still end with refreshlinks on the list? Tenbergen (talk) 00:49, 9 February 2017 (UTC)
The thing about getting refreshlinks after runJobs is not the same issue, apparently, although it may be very well another bug. If clearing the job queue, making some edits on pages adding/removing links, and running runJobs.php still has those on the table, you probably should file a bug about that. Ciencia Al Poder (talk) 10:29, 9 February 2017 (UTC)
Clearing the job queue through runJobs doesn't work, so do you mean deleting the records in the table directly and then doing some edits and trying to clear the newly generated jobs through runJobs? Tenbergen (talk) 16:18, 9 February 2017 (UTC)
I emptied the jobs table, and then edited one article to put it into a category. A "RefreshLinksPrioritized" job appeared in the jobs table. Ran runJobs, and the line doesn't disappear. Also, the article doesn't show up in the Category. api.php?action=query&meta=siteinfo&siprop=statistics&format=jsonfm lists 0 Jobs but the table still has the job.
Running refreshLinks, then runJobs.php. That makes the article appear in the category, but now I have >500 jobs left in the queue again.
I created task T157716 Thanks for sending me that way. Tenbergen (talk) 19:06, 9 February 2017 (UTC)

Thanks extension

I installed thanks, but when I go to thank someone I get an error. It is as follows:

Thank action failed (error code: internal_api_error_Exception). Please try again.

Help would be appreciated 67.244.49.134 (talk) 22:28, 2 February 2017 (UTC)

I've installed the extension, too, but I haven't seen that error. Could you turn on the debug log and see if it reveals anything?
It would also help if you can point to your wiki if it is public. MarkAHershberger(talk) 23:28, 2 February 2017 (UTC)

Updating 1.25 to 1.28

I think I have done everything correctly. I now have two directories. wiki and wiki.1.28. I changed wiki.1.28 to wiki and wiki to wiki.archive. Then the wiki did not work. When I changed back it worked again. The owner, group, and permissions are the same. I think the issue is the .htaccess file? There is not a .htaccess file in the wiki directory or the root directory. I get this error when I try to run wiki.1.28 as wiki:

The sitename.org page isn’t working

sitename.org is currently unable to handle this request.

HTTP ERROR 500

Any ideas? Jasonbunnell (talk) 01:31, 3 February 2017 (UTC)

If there's no .htaccess then it shouldn't be the issue :)
Best you can do is looking at the error logs of the server (using Apache? they may be in /var/log/apache/) to see a descriptive error message. Check that system requirements are met. Ciencia Al Poder (talk) 10:27, 3 February 2017 (UTC)

How to download Mediawiki 1.19

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,

Need to move our wiki to some new hardware, but unfortunately it will not work on the latest version of the mediawiki software - we've tried.

So, this does not seem to be in the FAQ, maybe it should be.

Oh, to make life more interesting, I'm on a ship in the Pacific with very limited bandwidth, so whatever is the most efficient method :-) Would love an http link to a tarball, but cannot seem to find one.

Thanks!

Paul. G7kes (talk) 02:35, 3 February 2017 (UTC)

Latest 1.19: https://releases.wikimedia.org/mediawiki/1.19/mediawiki-1.19.24.tar.gz (18MB) Ciencia Al Poder (talk) 10:24, 3 February 2017 (UTC)
If your bandwith is limited and if the server with the MediaWiki installation on it is not on your ship, then it might be the fastest solution to move the files from one server to the other using tools like rsync or wget. With e.g. wget you will also be able to transfer the tarball to the new server - without having to download it to the ship and without having to upload it again from the ship. 83.135.224.54 (talk) 14:28, 3 February 2017 (UTC)
Hi,
Thanks for the replies - I don't understand why I could not find the download link. I know I looked down realeases.wikimedia.org.
Yes, do like wget - use it a lot, especially with the -c option - transfers tend to die a lot here, especially when we loose the link totally.
In the meantime, one of our shoreside people believes he has got the old Wiki to run on the new Mediawiki software... I just can't see it yet.
Thanks again!
Paul. G7kes (talk) 01:17, 4 February 2017 (UTC)
The discussion above is closed. Please do not modify it. No further edits should be made to this discussion.

how to add images

Hi

Could you please help me with adding images in different pages?

Thanks Ghooshchif (talk) 07:24, 3 February 2017 (UTC)

Help:Images Ciencia Al Poder (talk) 10:21, 3 February 2017 (UTC)

How to embed Special:AllPages on front page

Hi. My mediawiki loads the front page (Main_Page) where I've written some introduction stuff, but I want to list all the pages below it. Google tells me to put {{Special::AllPages}} in but this does not work, I'm doing this through the wysiwg editor should I be doing it somewhere else? Any advice appreciated thanks. 195.171.221.154 (talk) 11:44, 3 February 2017 (UTC)

Try {{Special:AllPages}} with a single colon instead of double. AhmadF.Cheema (talk) 13:33, 3 February 2017 (UTC)
Thanks Ahmad, I tried that but it does the same thing and just shows $1 on the page. Its quite an old version 1.23 is this why? 195.171.221.154 (talk) 14:33, 3 February 2017 (UTC)
I don't believe so.
MediaWiki v1.23 was released in 2014 and according to this topic Special:AllPages has been working at-least since 2012. AhmadF.Cheema (talk) 15:28, 3 February 2017 (UTC)

Clean Short URLS for files

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.


Using the short URL builder tool at Redworks (http://shorturls.redwerks.org/) my Wiki pages render great with short URLs, however the file pages do not, and show a white screen. My version is up to date, and I have the wiki in a root and not a /wiki/ directory. I'm using Apache, everything seems fine; I've tried editing .htaccess too, but the same result. Where might the issue be? Heffloaf (talk) 23:57, 3 February 2017 (UTC)

See this FAQ: You see a Blank Page MarkAHershberger(talk) 01:08, 4 February 2017 (UTC)
I have tried again and don't see a blank page but now I get my 404 page when I look at an image.
The file path is good, and is eg: http://mywiki.com/File:My_image.png which would be great if I could get it to display that page and have that URL.
Article URLs are great using the redwerks method and are eg: - - http://mywiki.com/Main_Page and so on.Special pages etc also work well.
I'm using Apache, so can I fix this in .htaccess?
I have this pasted in Local Settings:
$wgScriptPath       = "";
$wgScriptExtension  = ".php";
$wgArticlePath = "/$1";
$wgUsePathInfo = true; 87.123.251.123 (talk) 20:18, 5 February 2017 (UTC)
If you can give me the url to your wiki, I can probably help more.
It looks like the webserver is looking for actual files when it sees that the URL ends with a file extension instead of letting MediaWiki handle it. If you don't control your web server, you should talk to whoever manages it. MarkAHershberger(talk) 15:31, 6 February 2017 (UTC)
Hello!
Thanks for your offer of help. This wiki is at the address: http://wikinormal.com
It is a shared hosting package, so I don't have root access, but they will make configurations for me. Heffloaf (talk) 17:13, 6 February 2017 (UTC)
Thanks, I looked at your site and also added it to WikiApiary. Since thumbnails are working, but the "File:" page isn't, I think you need to talk to your hosting support and see if they can make an adjustment. MarkAHershberger(talk) 17:24, 6 February 2017 (UTC)
Thank you once more. I presented the issue to them, they are normally good, but had no idea what to adjust in order to render my file URLs and ultimately said they couldn't do anything.
I have not got the expertise but can this issue not be solved in the .htaccess file? Heffloaf (talk) 12:35, 7 February 2017 (UTC)
Your hosting provider uses nginx, so an .htaccess file won't help you.
You will need to follow these instructions to get your short urls. You will probably have to ask support for help. MarkAHershberger(talk) 16:49, 7 February 2017 (UTC)
Hello,
It looks like this in .htaccess works:
RewriteEngine On
RewriteCond %{DOCUMENT_ROOT}%{REQUEST_URI} !-f
RewriteCond %{DOCUMENT_ROOT}%{REQUEST_URI} !-d
RewriteRule ^(.*)$ %{DOCUMENT_ROOT}/index.php [L]
For Example:
http://wikinormal.com/File:Loch_Ness_Monster_Inverness.jpg Heffloaf (talk) 12:19, 12 February 2017 (UTC)
Interesting. Glad you got it working. MarkAHershberger(talk) 17:46, 12 February 2017 (UTC)
The discussion above is closed. Please do not modify it. No further edits should be made to this discussion.

Configuration of About, Disclaimer, Privacy and similar pages in the page footer?

You once deleted the MediaWiki:Aboutpage I came there after quite some search from mw:Manual:Page customizations in the hope to learn, how I could configure the general layout of my wiki regarding those kind of pages. Now, where does one find those information? I wanted to temove some of this links in the footer or rename them. --Manorainjan (talk) 09:30, 4 February 2017 (UTC)

See Manual:Footer. AhmadF.Cheema (talk) 14:42, 4 February 2017 (UTC)

Purge asks for confirmation

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


I've just upgraded to MW 1.28.0 and now when I purge a page (being logged in as WikiSysop) I am asked for a confirmation as if I was an anonymous user. I guess that there must be some new configuration setting introduced but there is no such mention in Manual:Purge or in what's-new pages. Ioannis Protonotarios 11:41, 5 February 2017 (UTC)

In Manual:Purge there is a section "Requests must be confirmed". FriedhelmW (talk) 15:46, 5 February 2017 (UTC)
Thanks, I had already read that but after you pointing out that again, I noticed a small reference https://gerrit.wikimedia.org/r/#/c/304157/ which eventually led me to https://phabricator.wikimedia.org/T135170 So I see that now purging must be confirmed by all (anonymous or not) unless you go via the API, or use some JS gadget.
So I mark this as solved and for more answers I may continue this talk in Phabricator. Ioannis Protonotarios 18:11, 5 February 2017 (UTC)
The discussion above is closed. Please do not modify it. No further edits should be made to this discussion.

Unable to see the correct URL translation

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


Hi All,

I have upgrade mediawiki from 1.12.0 to 1.27.1. I have also installed Visual Editor in new wiki. But later I have noticed that external URL links are not opening.

Previously "|_new" is added to make the URL open in new tab but now that is being taken by wiki as "%7C" and URL is not opening.

Could any on suggest what can be done?e 165.225.106.75 (talk) 10:41, 6 February 2017 (UTC)

First, was your previous version really 1.12? That's amazing. I'm glad you upgraded.
You should look at Manual:$wgExternalLinkTarget and see if that addresses your use case. MarkAHershberger(talk) 15:37, 6 February 2017 (UTC)
Thanks for your reply..
But that extension is to open all the links in new window. we need specific links to open in new window which have "|_new" as suffix to the link. 165.225.106.75 (talk) 17:07, 6 February 2017 (UTC)
As I recall, the "|_new" syntax was not in MW by default but was something that could be added. Have you checked to see if how the syntax was implemented in your old wiki? MarkAHershberger(talk) 17:28, 6 February 2017 (UTC)
I have gone through Linker.php file in old wiki and new wiki. I noticed there is much difference between those two files.
Is it the culprit I'm checking for?? 165.225.106.75 (talk) 10:50, 7 February 2017 (UTC)
I'm not sure what you're looking for. Check extensions first since I could be wrong and it may be there.
If that doesn't turn up anything, then what I would do is use git to check out MediaWiki on the REL1_12 branch and then copy your old wiki's includes directory over your checked out code's includes directory. There will be some differences that aren't related to your changes since there were four releases of 1.12 besides your installed copy, but one of the changes should be what you're looking for.
If all else fails, just use "grep -R _new ." in your old wiki installation. MarkAHershberger(talk) 17:03, 7 February 2017 (UTC)
what is the alternative getExternalLinkAttributes function in new mediawiki? I guess it is unable to parse the given link in new miediawiki Jprakash402 (talk) 11:07, 14 February 2017 (UTC)
getExternalLinkAttributes was removed in 1.25. In 1.24, the documentation says:
Deprecated:
since 1.18 Just pass the external class directly to something using Html::expandAttributes. MarkAHershberger(talk) 15:28, 16 February 2017 (UTC)
Please make sure that if you use this you do not hack on MW core so that you will be able to upgrade easily. If you need help, just ask here. MarkAHershberger(talk) 15:29, 16 February 2017 (UTC)
The discussion above is closed. Please do not modify it. No further edits should be made to this discussion.

Titles with escaped characters are not resolved

An API request, such as https://fr.wikipedia.org/w/api.php?format=xml&action=parse&page=Un_meurtre_est-il_facile_%3F&prop=text, with an encoded question mark in the title, will not be resolved in my mediawiki installation.

This is true for any escaped character. The corresponding entry is available in the mysql database.

Any suggestion how to resolve this issue? 139.18.241.76 (talk) 14:16, 6 February 2017 (UTC)

What is your webserver and version? How have you configured it? MarkAHershberger(talk) 15:38, 6 February 2017 (UTC)

Cannot access GSSHA even after Successful 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.


Good day all,

I recently downloaded the GSSHA 70 Windows 64-bit Installer. After SUCCESSFUL installation using the Wizard, I cannot find the actual installed program anywhere on my computer, not even in Program Files or looking under Installed Programs. I have tried re-installing several times, all of which were again successful but I still cannot find the actual program to start it up.

Is this a common occurrence? Is there any way to fix this?

Thanks in advance. 64.28.140.231 (talk) 15:08, 6 February 2017 (UTC)

This is a question you need to ask on GSSHAWiki, but I went and downloaded the installer and saw that it installed it under C:\Program Files\U.S. Army\gssha70_setup\.
Running the executable I found there showed the following:
C:\Program Files\U.S. Army\gssha70_setup>gssha70.exe
Parallel version of GSSHA (7.0 ) with SCE (OpenMP), 4 total threads.
Usage: gssha [-option] [inputfile]
 where -option is one of:
      -c = SCE calibration mode (input file is the calibration control file)
      -m = Monte Carlo calibration mode (input file is the calibration control f
ile)
      -b = batch mode (input file is the batch control file)
      -s = sensitivity mode (input file is the sensitivity control file)
      -v = display version information (no project will be run)
  The c, m, b, and v commands are optional and if not present the input file is
 treated as the project file
  For the -b option, the command line should be:
      gssha -b[num_batch] gssha_inputfile
  For the -c option, the command line should be:
      gssha -c sce_inputfile
  For the -m option, the command line should be:
      gssha -m[num_batch] mc_inputfile
  For the -s option, the command line should be:
      gssha -s sen_inputfile
  For the -t option (and -tv), the command line should be:
      gssha -t[v]
  where [num_batch] is the number of batch runs to make, sce_inputfile is the SC
E input file, mc_intputfile is
  the Monte Carlo input file, and sen_inputfile is the sensitivity input file.
C:\Program Files\U.S. Army\gssha70_setup>
Good luck! MarkAHershberger(talk) 15:50, 6 February 2017 (UTC)
Thank you for the help.
I found the application, but when I opened it, the screen you included above flashes for a fraction of a second and disappears. I still cannot access the system to make the changes as mentioned above. 190.58.249.7 (talk) 03:36, 9 February 2017 (UTC)
Good morning,
I need to retrieve my text I wrote 'Oswaldo Oropeza'. I received a selected for deletion but did not have the time to respond before it desapeared from my page.
Please help.
My username: Caribana10
My e-mail: caribanacards@Hotmail.com
Thank you, Caribana10 (talk) 14:19, 9 February 2017 (UTC)
The discussion above is closed. Please do not modify it. No further edits should be made to this discussion.

Mail problem

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. It seems there's a problem with email confirmation on our wiki (http://dragon-mania-legends-wiki.mobga.me/Main_Page). Everytime I try to have a confirmation code emailed, I get this error:


Dragon Mania Legends Wiki could not send your confirmation mail. Please check your email address for invalid characters.

Mailer returned: Unknown error in PHP's mail() function.

And I am not the only one getting it. Is there any solution to it? │Star-Warden│ 15:46, 6 February 2017 (UTC)

Have you tried contacting the people who run the wiki? MarkAHershberger(talk) 16:00, 6 February 2017 (UTC)
Also, you should ask your question on that site's forum. MarkAHershberger(talk) 16:04, 6 February 2017 (UTC)
I am one of the people who run the wiki. │Star-Warden│ 16:39, 6 February 2017 (UTC)
Turn on the debug log and see if it tells you anything more about the error. MarkAHershberger(talk) 17:34, 6 February 2017 (UTC)
No such file was generated in that folder, but I did find some mail log files in var/log and the most recent one had these lines: http://pastebin.com/mPsdcJJH
I googled the error, which lead me to using dpkg-reconfigure postfix, but I get stuck at the terminal. As in, I have no idea what to configure. This is what I see: http://prnt.sc/e5mnpmStar-Warden│ 13:26, 7 February 2017 (UTC)
You should set up the system as an internet site.
You might also try "sudo apt-get -f install". MarkAHershberger(talk) 16:38, 7 February 2017 (UTC)
Setting it up as an internet site worked. Thanks a lot! │Star-Warden│ 19:04, 7 February 2017 (UTC)
The discussion above is closed. Please do not modify it. No further edits should be made to this discussion.

Website is offline error

I've been trying to access the papyrus tutorials as I'm just now learning the CK. I've gotten a "website is offline, error 502: bad gateway" notice for about a week now, starting to wonder if the issue is on my end. 2601:154:C200:8E3B:8D90:4B71:2EFE:319A (talk) 17:02, 6 February 2017 (UTC)

Are you talking about these tutorials for the UML creator for Eclipse? If so, the site works for me and this isn't the place to ask for help. MarkAHershberger(talk) 17:31, 6 February 2017 (UTC)

404 page not found error on Main Page

I had a mediawiki installation on an old website, still have the database and all the info that the wiki contained. I basically did a direct FTP transfer of all the old directories to a new website.

I changed in LocalSettings.php the following to account for my new locations:

$wgScriptPath       = '/forge';
$wgArticlePath = '/forge/$1';
$wgRunJobsAsync = false;
$wgScriptExtension  = ".php";

Really the only thing I had to do was update the script path and the article path to be different from what they were before. All the db login info is the same. Yet I am getting a 404 page not found error when I try to access the site. Something is working properly because when I type in the URL with /forge, it comes up as /forge/Main_Page. Is there some other setting I need to be changing? 70.59.205.60 (talk) 17:10, 6 February 2017 (UTC)

You're probably missing an htaccess file. See Manual:Short URL. MarkAHershberger(talk) 17:35, 6 February 2017 (UTC)

Creating an extension using ParserFirstCallInit

Hi. I'm trying to create an extension, using ParserFirstCallInit hook and creating a tag, like this:

public static function onParserFirstCallInit( &$parser ) {
    $parser->setHook( 'foo', 'FooHooks::DoWork' );
    return true;
}

public static function DoWork( $input, $args = array(), Parser $parser, $frame ) {
    global $wgUser;
    return $wgUser->mName;		
}

And the result is the editor's name. But, I don't want the editor's name, I need the logged user's name.

How can I solve this situation?

Thanks Crismagnabosco (talk) 18:31, 6 February 2017 (UTC)

I don't understand the difference between the editor's name and the logged in user's name. Could you clarify? MarkAHershberger(talk) 18:41, 6 February 2017 (UTC)
Sure.
After I edit the page, it is rendered such "Lorem ipsum MyName lorem ipsum".
But, if another user logged at wiki, I wish the text would be "Lorem ipsum HisName lorem ipsum".
Maybe I'd be using the wrong hook, but it's something like this I need. Crismagnabosco (talk) 18:56, 6 February 2017 (UTC)
The text of the wiki isn't meant to be dynamically changed like that. You could have elements of the UI change (like the toolbar) but not the text of the page.
If you want this use case, you probably want to use JS to dynamically re-write a portion of the page. You could use the DoWork function to return something (say "username " that the JS could identify and replace. MarkAHershberger(talk) 21:06, 6 February 2017 (UTC)
Are you trying to reinvent the wheel? :) Extension:USERNAME Ciencia Al Poder (talk) 10:12, 7 February 2017 (UTC)
Ciencia, I need to do other things in the parser, but my difficult is about the username.
Mark, thanks. I'll try to do it. Crismagnabosco (talk) 11:57, 7 February 2017 (UTC)

Purge page cache internally?

How can I purge a page's cache internally, i.e. inside an extension? Subfader (talk) 19:21, 6 February 2017 (UTC)

The code of the extension will not run if the cache is still valid. FriedhelmW (talk) 18:20, 7 February 2017 (UTC)

[WJjaQozltnayfh6D9DUlfQAAABI] 2017-02-06 20:19:14: Fatal exception of type MWException

http://correos.numancia.ml/mw19/index.php

Upgrading from .19 to .27 through Softaculous 37.134.43.95 (talk) 20:19, 6 February 2017 (UTC)

See How to debug MediaWiki ... it contains information on how to get information about the exception. MarkAHershberger(talk) 20:55, 6 February 2017 (UTC)
I just visited http://correos.numancia.ml/mw19/api.php and got a little more info:
Exception Caught: Unable to create the localisation store directory
You probably need to make sure your cache and tmp directories are writable. MarkAHershberger(talk) 20:58, 6 February 2017 (UTC)

Fatal error: Maximum function nesting level of '100' reached, aborting!

Hello,

I have a problem for importing template, when i try to import a template, i have this that appears

"Fatal error: Maximum function nesting level of '100' reached, aborting! in C:\wamp\www\mediawiki-1.28.0\includes\parser\Preprocessor_DOM.php on line 1076"

Why ?

Thank you :) Sebunian (talk) 21:32, 6 February 2017 (UTC)

See this StackOverflow answer. MarkAHershberger(talk) 23:59, 6 February 2017 (UTC)
Hello, Thank you for answering, but where can I find the php.ini of my mediawiki file ?
And where does XDebug find it?
It seems to me that I never install this extension
And I forgot to warn, that I am under a local server (Localhost) and Mediawiki 1.28.0
Thank you :) Sebunian (talk) 23:11, 8 February 2017 (UTC)
Another StackOverflow page has the answer for you: Edit php.ini file.

The wampmanager icon, which sits in the system tray has a menu system.

Use that to edit your php.ini file that is used with Apache.
So its
(left click ) wampmanager icon -> PHP -> php.ini
MarkAHershberger(talk) 18:57, 11 February 2017 (UTC)

Confusing artikel path

how to change http://mysite.com/index.php?title=Main_Page to http://mysite.com/wiki/Main_Page Help me? :) Murbaut (talk) 08:39, 7 February 2017 (UTC)

See Manual:Short URL. Mainframe98 talk 08:40, 7 February 2017 (UTC)
@Mainframe98: I'm confusing can you explain per page for clear.
I already have wiki in /home/public_html/wiki and I create .htaccess, I fill file .htaccess and give broken. How to work. Can you explain for clear step. Thanks before Murbaut (talk) 14:18, 7 February 2017 (UTC)
Aside from passing you that link, I can't really help you, as I've never gotten it working correctly, neither using .htaccess nor using rewrite rules, Sorry. Mainframe98 talk 14:53, 7 February 2017 (UTC)
@Mainframe98: I confusing about that link. Can you explain step to do it. My server Apache. Murbaut (talk) 15:40, 7 February 2017 (UTC)
Not really, since I haven't been able to do the process itself. There's a guide for Apache though: Manual:Short URL/Apache. Mainframe98 talk 16:13, 7 February 2017 (UTC)
If your wiki is public, could you provide the URL?
Also, paste your .htaccess file here and we may be able to help some more. MarkAHershberger(talk) 17:20, 7 February 2017 (UTC)

@MarkAHershberger: this is url myhome wiki http://ckmp.ga/wiki/index.php/Halaman_Utama and I have .htaccess on

/wiki/.htaccess

this is code on .htaccess

RewriteEngine On
RewriteRule ^/?wiki(/.*)?$ %{DOCUMENT_ROOT}/index.php [L] 

Murbaut (talk) 04:17, 8 February 2017 (UTC)

I used RedWerks url shortner helper and it produced a configuration that you can use. Please try it out and let me know if you have any questions.
(Sorry for the delay -- I got busy this week.) MarkAHershberger(talk) 18:48, 11 February 2017 (UTC)
How @Mainframe98 and MarkAHershberger:  ? Murbaut (talk) 08:52, 8 February 2017 (UTC)
@Mainframe98, @MarkAHershberger
Can you guys please have a look at my issue as well over here: #Short URL not working for files My short URL is not working only for files. Where can I set it so my files should open up instead of 404 not found error? 101.50.71.230 (talk) 10:35, 8 February 2017 (UTC)

404 page with nginx

Hi, i am using mediawiki-1.23 version with nginx-1.4.6, i have configured nginx with php-fpm sock, for that i am getting 404 error page even though the path is correct, but i am not able to see any logs in nginx?

this is my nginx configuration file

server {
    server_name domain name;
    root /var/www/html/mediawiki;
    access_log /var/log/nginx/access.log;
    error_log  /var/log/nginx/error.log;
    location /mediawiki/ {
      index index.php5;
      error_page 404 = @mediawiki;
    }
    location @mediawiki {
         rewrite ^ /index.php?request_uri;
    }
     location ~* \.php$ {
      include /etc/nginx/fastcgi_params;
      fastcgi_pass unix:/var/run/php5-fpm.sock;
      fastcgi_index index.php5;
      fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
    }
  }

122.171.230.41 (talk) 13:36, 7 February 2017 (UTC)

Did you restart nginx after you made the changes? Are you sure it is reading the configuration file? MarkAHershberger(talk) 17:18, 7 February 2017 (UTC)

Media Wiki Restore from Backup

I am using Cpanel and am trying to restore my Media Wiki, I created a backup with Cpanel and have all files. I am having a lot of trouble and I wondered if someone could assist. I tried following the instructions but I am not the most techie person. 212.139.96.42 (talk) 14:16, 7 February 2017 (UTC)

Did you back up your database, too?
What problems are you running into? MarkAHershberger(talk) 17:13, 7 February 2017 (UTC)

Login expires altough session.gc_maxlifetime is set

Hi,

my login expires after update from MW 1.25 to 1.28. In the old version i configured the php parameter session.gc_maxlifetime in my PHP settings. Is this parameter without an effect in the new MW Version?

Here my software releases :

Software Version
MediaWiki 1.28.0
PHP 5.6.29-0+deb8u1 (apache2handler)
MySQL 5.5.54-0+deb8u1-log

Kind Regards Seltesh (talk) 14:30, 7 February 2017 (UTC)

any ideas? :-( Seltesh (talk) 12:56, 8 February 2017 (UTC)

<

Hello! Citation from Help:Export#Export_format:

If you don't use a special XML editor "<" and ">" appear as &lt; and &gt;, to avoid a conflict with XML tags; to avoid ambiguity, "&" is coded as "&amp;".

Is '&' symbol always coded as "&amp"? In russian page https://ru.wikipedia.org/wiki/Тетрахлороаурат(III)_водорода there is text "... &lt; ...". In exported xml it appears as is, instead of correct "... &amp;lt; ...". Thanks if answer something! Here is exported xml: https://ru.wikipedia.org/wiki/Special:Export/Тетрахлороаурат(III)_водорода Дима74 (talk) 16:50, 7 February 2017 (UTC)

& is not always coded as &amp;. If it were, then you would never see &amp; because &amp; would need to be coded as &amp;amp; which would need to be coded as &amp;amp;amp; which would need to be coded as &amp;amp;amp;amp;... ad infinitum.
Also, I'm not sure where you see & on that page. MarkAHershberger(talk) 17:10, 7 February 2017 (UTC)
Thank you, it is my error. Дима74 (talk) 17:18, 7 February 2017 (UTC)

Configuring LDAP Media Wiki 1.28, XAMMP, Windows 2012 R2

I am setting up media wiki 1.28 on Windows 2012R2

I have XAMMP and MediaWiki installed and am now working on getting ldap authentication working.

I am a little confused, on Linux Distro's it is an extension that has to be installed. Is this not true in the windows install?

I found some instructions but they dont feel complete:

  1. On the Windows server, open "System Properties" and "Environment Variables" Add ";C:\xampp\php" to the end of the PATH variable
  2. Open the file "C:\xampp\php\php.ini" and uncomment the following line:  ;extension=php_ldap.dll (remove the ";")
  3. Create the folder "C:\OpenLDAP\sysconf" and create a blank file with name "ldap.conf" Edit the ldap.conf and add the text "TLS_REQCERT never"
  4. Restart Apache service

Once that is done should I be entering the ldap authentication information in the localsetting.php? Vjsuarez2002 (talk) 18:13, 7 February 2017 (UTC)

If you mean that on Linux you would have to install something like php-mod-ldap, then no, that isn't needed since it comes with php. MarkAHershberger(talk) 21:36, 7 February 2017 (UTC)

Parser extension in wfMessage() not working on index.php?curid=X

When I use redirects to index.php?curid=1, some tag and parser extensions don't work.

In CategoryViewer.php I include a message that has some parser extension

wfMessage( 'myMessage', $Foo )->parse();

MediaWiki:MyMessage:

{{#dpl:
     |namespace=1
     |count=1
    }}

On a category page called with /wiki/index.php?curid=X I see the parser tag in plain text.

Calling categories normally executes the parser tag just fine.

log:
    Start request GET /db/index.php?curid=452953
    HTTP HEADERS:
    ...
    [caches] main: MemcachedPhpBagOStuff, message: MemcachedPhpBagOStuff, parser: MemcachedPhpBagOStuff
    [caches] LocalisationCache: using store LCStoreCDB
    Unstubbing $wgParser on call of $wgParser::setHook from wfCreateArticle
    Parser: using preprocessor: Preprocessor_DOM
    Fully initialised
    Connected to database 0 at localhost
    Title::getRestrictionTypes: applicable restrictions to 
   [[Category:Me Test]] are {edit,move}
    [ContentHandler] Created handler for wikitext: WikitextContentHandler
    Revision::loadText: got id 2565085 from cache
    Title::getRestrictionTypes: applicable restrictions to 
   [[Category:Me Test]] are {edit,move}
    User: got user 1 from cache
    User: loading options for user 1 from override cache.
    User: logged in from session
    User: loading options for user 1 from override cache.
    Invalid user language code
    [MessageCache] MessageCache::load: Loading en... got from local cache
    OutputPage::checkLastModified: client did not send If-Modified-Since header
    Article::view using parser cache: yes
    Unstubbing $wgLang on call of $wgLang::_unstub from ParserOptions::__construct
    [Preprocessor] Loaded preprocessor XML from memcached (key MyWiki:preprocess-xml:0b855dd9fe7f2977b3537892e24841f7:0)
    Title::getRestrictionTypes: applicable restrictions to [[Template:Searchbox/Category]] are {edit,move}
    Title::getRestrictionTypes: applicable restrictions to [[Template:Searchbox/Category]] are {edit,move}
    Revision::loadText: got id 2068351 from cache
    Revision::loadText: got id 2524305 from cache
    [Preprocessor] Loaded preprocessor XML from memcached (key MyWiki:preprocess-xml:e9d596a50f619f19db24e8179ca8018c:1)
    Parser output marked as uncacheable.
    Title::getRestrictionTypes: applicable restrictions to [[Template:Link]] are {edit,move}
    Title::getRestrictionTypes: applicable restrictions to [[Template:Link]] are {edit,move}
    Revision::loadText: got id 1869571 from cache
    Title::getRestrictionTypes: applicable restrictions to [[Template:Link]] are {edit,move}
    Revision::loadText: got id 1869571 from cache
    Title::getRestrictionTypes: applicable restrictions to [[Template:CategoryHeaderYear/From/FormOpen]] are {edit,move}
    Title::getRestrictionTypes: applicable restrictions to [[Template:CategoryHeaderYear/From/FormOpen]] are {edit,move}
    Revision::loadText: got id 1453560 from cache
    Title::getRestrictionTypes: applicable restrictions to [[Template:CategoryHeaderYear/From]] are {edit,move}
    Title::getRestrictionTypes: applicable restrictions to [[Template:CategoryHeaderYear/From]] are {edit,move}
    Revision::loadText: got id 2524306 from cache
    Title::getRestrictionTypes: applicable restrictions to [[Template:HTML/FormClose]] are {edit,move}
    Title::getRestrictionTypes: applicable restrictions to [[Template:HTML/FormClose]] are {edit,move}
    Revision::loadText: got id 686595 from cache
    Parser output marked as uncacheable.
    Parser output marked as uncacheable.
    Revision::loadText: got id 2543536 from cache
    [Preprocessor] Loaded preprocessor XML from memcached (key MyWiki:preprocess-xml:700a31fce85789f10da18af1b20feee5:1)
    Parser output marked as uncacheable.
    [Preprocessor] Loaded preprocessor XML from memcached (key MyWiki:preprocess-xml:0b855dd9fe7f2977b3537892e24841f7:0)
    Title::getRestrictionTypes: applicable restrictions to 
   [[Category:Me Test]] are {edit,move}
    Parser options key expired, touched 20170207192856, epoch 20170207194057, cached 20170207192902
    Article::view: doing uncached parse
    Parser cache options found.
    Saved in parser cache with key MyWiki:pcache:idhash:452953-0!*!*!*!*!*!* and timestamp 20170207194059 and revision id 2636677
    ImageGalleryBase::factory called without context. Using RequestContext::getMain() for sanity
    DatabaseBase::query: Writes done: INSERT IGNORE INTO `category` (cat_id,cat_title) VALUES (NULL,'X')
    [DBPerformance] [GET] Expectation (writes <= 0) by MediaWiki::main not met:
    query: INSERT IGNORE INTO `category` (cat_id,cat_title) VALUES (NULL,'X') [TRX#f90db5f48543]
    TransactionProfiler.php line 271 calls wfBacktrace()
    TransactionProfiler.php line 181 calls TransactionProfiler->reportExpectationViolated()
    Database.php line 1165 calls TransactionProfiler->recordQueryCompletion()
    Database.php line 2087 calls DatabaseBase->query()
    Category.php line 331 calls DatabaseBase->insert()
    CategoryViewer.php line 787 calls Category->refreshCounts()
    CategoryViewer.php line 451 calls CategoryViewer->getCountMessage()
    CategoryViewer.php line 98 calls CategoryViewer->getPagesSection()
    CategoryPage.php line 117 calls CategoryViewer->getHTML()
    CategoryPage.php line 76 calls CategoryPage->closeShowCategory()
    ViewAction.php line 44 calls CategoryPage->view()
    MediaWiki.php line 395 calls ViewAction->show()
    MediaWiki.php line 273 calls MediaWiki->performAction()
    MediaWiki.php line 566 calls MediaWiki->performRequest()
    MediaWiki.php line 414 calls MediaWiki->main()
    index.php line 10 calls MediaWiki->run()
    [GlobalTitleFail] MessageCache::parse called by CategoryViewer::getPagesSection/Message::parse/Message::toString/Message::parseText/MessageCache::parse with no title set.
    Revision::loadText: got id 2339959 from cache
    [Preprocessor] Loaded preprocessor XML from memcached (key MyWiki:preprocess-xml:32453332a4bfb862c1f777e5333798db:1)
    Revision::loadText: got id 487182 from cache
    Revision::loadText: got id 2543536 from cache
    [Preprocessor] Loaded preprocessor XML from memcached (key MyWiki:preprocess-xml:700a31fce85789f10da18af1b20feee5:1)
    [GlobalTitleFail] MessageCache::parse called by CategoryViewer::getCategoryTop/Message::parse/Message::toString/Message::parseText/MessageCache::parse with no title set.
    Revision::loadText: got id 2565026 from cache
    [Preprocessor] Loaded preprocessor XML from memcached (key MyWiki:preprocess-xml:7323426627da67e9da2b9e0909008ec5:1)
    Parser output marked as uncacheable.
    User::getBlockedStatus: checking...
    [resourceloader] ResourceLoaderModule::getDefinitionMtime: New definition for module user in context "en|ltr|monobook|Me|||||scripts|"
    Title::getRestrictionTypes: applicable restrictions to 
   [[Category:Me Test]] are {edit,move}
    Title::getRestrictionTypes: applicable restrictions to 
   [[Category:Me Test]] are {edit,move}
    [resourceloader] ResourceLoaderModule::getDefinitionMtime: New definition for module user in context "en|ltr|monobook|Me|||||styles|"
    Pulling file metadata from cache key MyWiki:file:0f51bd74ea8fae4a43714a350e631945
    Title::getRestrictionTypes: applicable restrictions to [[Category:Me Test]] are {edit,move}
    Title::getRestrictionTypes: applicable restrictions to [[Category:Me Test]] are {edit,move}
    OutputPage::sendCacheControl: private caching; Tue, 07 Feb 2017 19:40:57 GMT **
    Request ended normally

Subfader (talk) 19:46, 7 February 2017 (UTC)

Short URL not working for files

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.


Your server is misconfigured somehow. If you add ".jpg" at the end of *any url* it gives that 404 error instead of displaying an empty wiki page. Unless you've done this deliberately in your rewrite rules, you should ask your hosting support to fix that. Ciencia Al Poder (talk) 10:42, 8 February 2017 (UTC)
It's not a MediaWiki related problem. MediaWiki doesn't handle this 404 error, it's being handled by the webserver, meaning MediaWiki isn't even being called here. You can test that enabling a debug log and seeing that those URLs don't get logged. Ciencia Al Poder (talk) 20:49, 8 February 2017 (UTC)
@Ciencia Al Poder My domain is on root and doesn't have any htaccess as for some reason htaccess is not working as I tried testing it from the tutorial over here: https://docs.bolt.cm/3.4/howto/making-sure-htaccess-works So is it compulsory for MediaWiki to handle permalinks using htaccess too which could be one reason why image files my server is sending to not found or it has nothing to do with htaccess and there is something wrong with the server and I need to contact my hosting provider. I am using shared hosting on just host by the way. 101.50.71.230 (talk) 23:06, 8 February 2017 (UTC)
Turns out the issue had to do with my htaccess and its fixed now. Thank you for your help. 101.50.71.230 (talk) 23:20, 8 February 2017 (UTC)
The discussion above is closed. Please do not modify it. No further edits should be made to this discussion.

Delete a user

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 could I delete a user? Pvicentemovicoders (talk) 10:25, 8 February 2017 (UTC)

@Pvicentemovicoders I'm not an expert, but with Extension:UserMerge you can delete old users when merging them into a new one, or deleting one user completly merging their edits into an "anonymous" one. Regards. MarcoAurelio (talk) 10:31, 8 February 2017 (UTC)
Thank you for the information. Pvicentemovicoders (talk) 07:23, 9 February 2017 (UTC)
The discussion above is closed. Please do not modify it. No further edits should be made to this discussion.

Upload fIle fail,catch exception:could not open lock file

I have use 1.28.0,and today i enable file upload,then,when i upload a image,catch an excetion,like this:

[WJr5RCeDB2FU37RNUcxD@AAAAAA] Exception Caught: Could not open lock file for "mwstore&#58;//local-backend/local-public/8/8d/Gitlab_001.png".

what should i do to fix it? please help me~ 210.74.131.200 (talk) 11:02, 8 February 2017 (UTC)

Either you don't have given write permissions to the images folder for the webserver to write to it, or you have SELinux enabled and need to tune it. Ciencia Al Poder (talk) 10:36, 9 February 2017 (UTC)

How to make an account expire after a certain date ?

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


Hi,

I am using MW 1.28, and I want to set expiration dates for user accounts, which may block them from logging in if the date is passed.

Is there any way to do this in MediaWiki, either with an extension or built-in ?

Thanks in advance. Tuxxic (talk) 13:10, 8 February 2017 (UTC)

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

map frame and SPARQL

How can I use this SPARQL map using mapframe? Mikey641 (talk) 15:23, 8 February 2017 (UTC)

Prevent Anonymous users from viewing pages except for Login

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


Trying to prevent anonymous users from being able to see our Wiki. However, adding the following to the LocalSettings.php does not quite do the trick.

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

$wgWhitelistRead = array( "Special:UserLogin", "Special:UserLogout");

$wgGroupPermissions['user']['read'] = true;

$wgGroupPermissions['sysop']['read'] = true;

In fact, it is blocking EVERYONE from being able to read, including members of the user or sysop group, which I have confirmed I am part of.

What are we doing wrong? 96.83.164.249 (talk) 23:35, 8 February 2017 (UTC)

You should only need $wgGroupPermissions['*']['read'] = false;
$wgWhitelistRead = array( "Special:UserLogin", "Special:UserLogout");
Users are given read by default and there's no need to give it to sysops when logged in users already have the read permission. MacFan4000 (talk) 01:35, 15 February 2017 (UTC)
We have tried that but then it just says Permissions error for not being a member of the users group. It doesn't matter what we do it doesn't recognize members of the group even though we have verified that the users in question are members of the group in question. Skylance30 (talk) 14:05, 15 February 2017 (UTC)
Are you logged in? Because it sounds like your not. Could you post a link to the wiki? MacFan4000 (talk) 16:34, 15 February 2017 (UTC)
The discussion above is closed. Please do not modify it. No further edits should be made to this discussion.

file:xxx.pdf page doesn't report the used pagename

1- I import one myfile.pdf file

2- I display it with syntax <pdf>myfile.pdf</pdf> (extension pdfEmbed) in another page

3-I return into the File:myfile.pdf page

and I have no report under the history about the pagename using this pdf file

This functionality is working only into the File:exemple.jpg

when iI import an exemple.jpg. Later in the "File:exemple.jpg" page I have under the history the list of pagename using this media

How it is possible to have the same report for a pdf ? Chantoune (talk) 00:56, 9 February 2017 (UTC)

All my roads have an error and I'm told to build a road to main hall

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've been playing on Khelonaar with Screen name Missdh1 for several months.

all of a sudden, after upgrading a residence.. all my residences have an error red circle and the message says' connect with a road to the Main Hall" .. I tried to click on the residence I just chose to upgrade to cancel the upgrade.. but I'm frozen from initializing the residence. I tried to add 'ornate streets' on top of my current cultural streets and nothing is releasing these error codes.

please help Missdh1 (talk) 05:21, 9 February 2017 (UTC)

BTW, here is the link to my city
https://us4.elvenar.com/game Missdh1 (talk) 05:23, 9 February 2017 (UTC)
Welcome to the help desk for the MediaWiki software. As your question is unrelated to MediaWiki I'm closing this thread. AKlapper (WMF) (talk) 10:23, 9 February 2017 (UTC)
The discussion above is closed. Please do not modify it. No further edits should be made to this discussion.

Write Article Button 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.


Hi everyone!
I recently downloaded a SKin called Bluesky for my Wiki. I installed the version 1.27 if not mistaken because I tried installing their latest version and I could not get the gray skin installed. Anyways, now when I click on the "Write Article" button it wont work. It send me to this page: /wiki/Help:Creating_a_new_page which is completely empty, no editor,m no option to write an article or anything like that. Anyone ever had this issue?
Thanks in advance! Thejoyofawriter (talk) 08:05, 9 February 2017 (UTC)
Try to the last mediawiki version 1.34 Geekworm (talk) 12:01, 30 March 2020 (UTC)
I dont know if you guys need any more details to try to help me but this is so frustrating. If you download and install the skin you will see the issue. I am running he latest mediawiki software. Thejoyofawriter (talk) 14:01, 9 February 2017 (UTC)
What is your exact full MediaWiki version number (see "Special:Version") on your wiki)? If you "could not get the skin installed", what was the error message, in which stage of installing? Malyacko (talk) 09:39, 10 February 2017 (UTC)
Hi there! There was no error message. The skin once I changed the settings in LocalSettings.php simply never made the chance. However the skin did change once I downloaded the version1.27.
This is what I have:
MediaWiki 1.28.0
PHP 5.6.30 (cgi-fcgi)
MySQL 5.6.35
Skins:
Skin Versão Licença Descrição Autores
BlueSky 1.1 (1c9302c)00h26min de 5 de maio de 2016 GPL-2.0+ Skin based on the current version (late 2013) of wikiHow's skin wikiHow e Jack Phoenix
This is the wiki link.
Thanks! Thejoyofawriter (talk) 11:29, 10 February 2017 (UTC)
The link is pointing to the page defined by MediaWiki:Bluesky-write-article-url, you can customize that message to point to where you want, or just create that help page inserting Extension:Inputbox on it with instructions about how to create an article.
That's how it works. If it's confusing or not is another thing :) Ciencia Al Poder (talk) 19:30, 12 February 2017 (UTC)
I know this is an old thread I started but I've been having issues in handling images on wikiajuda.com.br
And how can I block my images from been crawled or scraped by other websites? Thejoyofawriter (talk) 03:33, 30 March 2020 (UTC)
Please open a new thread if the issue is not related to the skin. Ciencia Al Poder (talk) 20:30, 1 April 2020 (UTC)
The discussion above is closed. Please do not modify it. No further edits should be made to this discussion.

Extension:pdfHandler - Restrict rendering of pdf

I have a Wiki wich contains a lot of pages wich list a larger amount of uploaded pdf-files (by semantic mediawiki). I tried to activate Extension:PDFHandler but it acquired so much system resource when calling that pages that errors come up. I think thats some timeout and the initial rendering is very slow. There is no problem with pages that contain only some pdf-files and / or even smaller ones. I'm not very interrested in having thumbnails for each pdf on everywhere but I like the preview on the File:-pages. Is it somehow possible to control where pdf-handler should render the pdf-s and where not. Maybe a magicword like __nopdfhandler__ on the pages which contain larger number of links to pdf files or the like would help. One could include this to templates. Carchaias (talk) 08:33, 9 February 2017 (UTC)

What is the exact error that comes up? That should be the first thing to investigate, not necessarily some ideas for random workarounds... AKlapper (WMF) (talk) 10:22, 9 February 2017 (UTC)
The message is
"This page is experiencing technical difficulties. " Carchaias (talk) 12:17, 9 February 2017 (UTC)
You get a completely blank page and the only single thing that is displayed literally says "This page is experiencing technical difficulties" in English, and nothing else at all? I'm asking as I can imagine that's not an error created by MediaWiki. Malyacko (talk) 09:42, 10 February 2017 (UTC)
In Extension:PdfHandler there's a configuration variable called $wgPdfCreateThumbnailsInJobQueue. Have you tried that? It should queue the thumbnails so they're rendered one at a time. This should mitigate the issue when a page contains lots of embedded PDFs and all need to be rendered, speeding the load, but the thumbnails in this case may be delayed (not all PDFs would have thumbnails). Ciencia Al Poder (talk) 10:44, 10 February 2017 (UTC)
I doublechecked what happens when I turn pdfHandler on. On pages that contain a larger amount of links to uploaded pdf-files (by semantic mediawiki #ask) -> It take about 2 minutes with a white screen and the the following message appears (on the white screen)
"An internal server error occurred. Please try again later."
I found out that some of the pdf that have to be rendered cause errors. I checked this by calling the file:-pages one by one. One error is
"An internal server error occurred. Please try again later."
as above.
Another errror is the File:-Page loads but there is something like
"Fehler beim Erstellen des Vorschaubildes: convert: unable to acquire cache view `File too large' @ fatal/cache-view.c/AcquireAuthenticCacheView/121."
instead of the thumbnail.
Yes I think that message is not generated by mediawiki but at least it is related to pdfHandler (and it's environment), cause there are no problems when turning it of.
I tried $wgPdfCreateThumbnailsInJobQueue = true and = false but I can't see any difference . Carchaias (talk) 16:24, 20 February 2017 (UTC)

The supplied credentials are not associated with any user on this wiki.

Hi all, i have configured mediawiki-1.28, php-5.5.9 with nginx-1.4.6 now i am adding google login, i have followed this doc Extension:GoogleLogin/PostAuthManager for google login and after logged in with google account i am getting this error "The supplied credentials are not associated with any user on this wiki"

my LocalSettings.php contain

require_once "$IP/extensions/GoogleLogin/GoogleLogin.php";

$wgGLSecret = ' ';

$wgGLAppId = ' ';

require_once "$IP/extensions/GoogleAppsAuthentication/GoogleAppsAuthentication.php";

$wgWhitelistRead = array( 'Special:GoogleLogin', 'Special:GoogleLoginReturn');

$wgAuthManagerAutoConfig['primaryauth'] = [];

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

$wgGLAllowAccountCreation = true;

$wgGLReplaceMWLogin = true;

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

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

$wgGroupPermissions['user']['edit'] = true;

$wgGroupPermissions['user']['edit'] = true; Monikajayanna (talk) 10:02, 9 February 2017 (UTC)

Extension talk:GoogleLogin ? AKlapper (WMF) (talk) 10:21, 9 February 2017 (UTC)
I have followed that link, it did not resolve my issue. Monikajayanna (talk) 12:00, 9 February 2017 (UTC)
Posting on that page might make the extension maintainer aware... AKlapper (WMF) (talk) 12:01, 9 February 2017 (UTC)

How to look users's email?

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, I would like to know how can I look user's email provided during registration? Fokebox (talk) 10:30, 9 February 2017 (UTC)

Unless you have database access, you can't. That information is private. Ciencia Al Poder (talk) 10:31, 9 February 2017 (UTC)
I do have database access ) and wonder if sysop can access it using some mediawiki tool Fokebox (talk) 10:40, 9 February 2017 (UTC)
There's Extension:WikiUserInfo which could do it, but its code is rather old. Use at your own risk. Regards. MarcoAurelio (talk) 11:08, 9 February 2017 (UTC)
I also found this extension: Extension:LookupUser which can help me probably Fokebox (talk) 11:14, 9 February 2017 (UTC)
Probably better, yes. Regards. MarcoAurelio (talk) 11:18, 9 February 2017 (UTC)
The discussion above is closed. Please do not modify it. No further edits should be made to this discussion.

Got huge amount of /ResourceLoaderImageT7tIBq like file in /tmp folder, which filled up entire disk

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.


Got huge amount of /ResourceLoaderImageT7tIBq like file in /tmp folder, which filled up entire disk. Tried to delete them in /tmp folder but filled up again very quick. Looks like a bug or config error. What is it and how to fix it?

Using MW 1.28.0 with php7 Deletedaccount4567435 (talk) 14:36, 9 February 2017 (UTC)

Apparently this comes from ResourceLoaderImage. SVG images embedded in CSS with ResourceLoader get rasterized in a temp filename to get properties and such, and then the temp file is deleted, but apparently they aren't deleted on your installation... Maybe the SvgHandler is crashing badly leaving those leftovers there... Ciencia Al Poder (talk) 11:06, 10 February 2017 (UTC)
> Maybe the SvgHandler is crashing badly leaving those leftovers there...
If so, please confirm to us, maybe we can make that problem less confusing. —TheDJ (Not WMF) (talkcontribs) 14:17, 10 February 2017 (UTC)
Any useful way to track svgHandler? Currently all page load normally and I can't find any related error logged in php error log.... Deletedaccount4567435 (talk) 17:53, 12 February 2017 (UTC)
Still can't find why, so installed imagemagick instead of using php's GD. Now MW work normally.
I will try to find out the reason.
Using: MW 1.28.0
PHP: 7.0.15-1~dotdeb+8.1 (fpm-fcgi) Deletedaccount4567435 (talk) 18:21, 12 February 2017 (UTC)
The discussion above is closed. Please do not modify it. No further edits should be made to this discussion.

Extension:LDAP Authentication/AD Configuration

First, I am apologize if any existing or resolved my problem in the blogs that I'd missed. I had a server installing RHEL 7.3 with latest updates. In the process to complete mediawiki123.15, I have a struggle with Extension:LDAP Authentication/AD Configuration, but I could not figure it out. I followed the instruction, Extension:LDAP Authentication/AD Configuration Examples to install the correct plugin,https://www.mediawiki.org/wiki/Special:ExtensionDistributor?extdistname=LdapAuthentication&extdistversion=REL1_23.

I am unable to login AD with user and password either SSL or Clear. Login error, Incorrect password entered. Please try again.

For an example, The section setting forLDAPAuthentication extension my in LocalSettings is:

# -------- Make the following edits --------

# The following permissions were set based on your choice in the installer

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

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

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

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

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

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

# Enabled Extensions. Most extensions are enabled by including the base extension file here

# but check specific extension documentation for more details

# The following extensions were automatically enabled:

require_once "$IP/extensions/Cite/Cite.php";

require_once "$IP/extensions/ConfirmEdit/ConfirmEdit.php";

require_once "$IP/extensions/Gadgets/Gadgets.php";

require_once "$IP/extensions/ImageMap/ImageMap.php";

require_once "$IP/extensions/InputBox/InputBox.php";

require_once "$IP/extensions/Interwiki/Interwiki.php";

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

require_once "$IP/extensions/LocalisationUpdate/LocalisationUpdate.php";

require_once "$IP/extensions/Nuke/Nuke.php";

require_once "$IP/extensions/ParserFunctions/ParserFunctions.php";

require_once "$IP/extensions/PdfHandler/PdfHandler.php";

require_once "$IP/extensions/Poem/Poem.php";

require_once "$IP/extensions/Renameuser/Renameuser.php";

require_once "$IP/extensions/SpamBlacklist/SpamBlacklist.php";

require_once "$IP/extensions/SyntaxHighlight_GeSHi/SyntaxHighlight_GeSHi.php";

require_once "$IP/extensions/TitleBlacklist/TitleBlacklist.php";

require_once "$IP/extensions/WikiEditor/WikiEditor.php";

# End of automatically generated settings.

# Add more configuration options below.

# Set logo

$wgLogo = "/wiki/images/lsu2k130.png";

# ISU AD

$wgAuth = new LdapAuthenticationPlugin();

$wgLDAPDomainNames = array( 'ISU');

$wgLDAPServerNames = array( 'ISU' => 'isu-dc.isu.edu' );

# I recommend using a Global Catalog server for this.

$wgLDAPSearchStrings = array( 'ISU' => 'ISU\\USER-NAME' );

$wgLDAPEncryptionType = array( 'ISU' => 'ssl' );

$wgLDAPUseLocal = true;

$wgMinimalPasswordLength = 1;

$wgLDAPBaseDNs = array( 'ISU' => 'cn=Users,ou=ECE,ou=CENG,ou=Departments,dc=isu,dc=edu' );

$wgLDAPGroupUseFullDN = array('ISU'=> true );

$wgLDAPGroupObjectclass = array( 'ISU'=>'group' );

$wgLDAPGroupAttribute = array( 'ISU'=>'member' );

$wgLDAPGroupSearchNestedGroups = array( 'ISU'=>true );

$wgLDAPGroupNameAttribute = array( 'ISU'=>'cn' );

$wgLDAPBaseDNs = array( 'ISU'=>'dc=isu,dc=edu' );

$wgLDAPSearchAttributes = array( 'ISU' => 'sAMAccountName' )

# -------- Save and close the file --------

This configuration is working with RHEL 5 32-bit and Mediawikie 1.1.2.

  1. How do I debug php error?
  2. Any suggestion, I am really appreciate it Thank you, -Tim Timqnguyen (talk) 18:32, 9 February 2017 (UTC)
I figured it out myself by correcting the line below.
$wgLDAPDisableAutoCreate = array( 'ISU'=>false );
$wgLDAPEncryptionType = array( 'ISU'=>'clear' ); Timqnguyen (talk) 01:54, 13 February 2017 (UTC)

Why my visual editor Insert menu missing many items?

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.


My meidawiki version:1.28.0

My visual editor version: 0.1.0 (93528b7)

When I use visual editor, only few items are in the Insert menu, but the code block an many other items are missing. Yuyongji1987 (talk) 09:11, 10 February 2017 (UTC)

Those "many items" may require extensions. For example, Extension:SyntaxHighlight#VisualEditor_integration for the code blocks Ciencia Al Poder (talk) 10:49, 10 February 2017 (UTC)
thanks for your reply. And your answer solved my problem. Yuyongji1987 (talk) 14:05, 10 February 2017 (UTC)
The discussion above is closed. Please do not modify it. No further edits should be made to this discussion.

Create a new page from the main menu

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


Is it possible to create a link in the left menu of the main page (where is located Tools for example) and create a new page with this link? Pvicentemovicoders (talk) 11:26, 10 February 2017 (UTC)

New pages are created by using the search box. FriedhelmW (talk) 18:49, 12 February 2017 (UTC)
You can add links to the sidebar, if you look at Manual:Interface/Sidebar, just not inside the tools section. You can add a link there pointing anywhere you want.
MediaWiki doesn't provide a page for creating new pages (like a form where to fill the title and content), but you can create a help page giving a few recommendations to people that want to create a new page and use Extension:Inputbox to provide a form to enter the page name and direct users to the edit form. Ciencia Al Poder (talk) 19:34, 12 February 2017 (UTC)
Thank you very much!!! Pvicentemovicoders (talk) 07:40, 13 February 2017 (UTC)
The discussion above is closed. Please do not modify it. No further edits should be made to this discussion.

Create a template for a 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.


Is it possible to create a new page with a template?. I´d like to create a new page with the next structure and just complete it.

For example:

=Description=

Write your description

=Issue=

Write down your issue

=Solution=

Write down your solution Pvicentemovicoders (talk) 11:26, 10 February 2017 (UTC)

Manual:Creating pages with preloaded textTheDJ (Not WMF) (talkcontribs) 14:16, 10 February 2017 (UTC)
Thank you very much!!! Pvicentemovicoders (talk) 07:40, 13 February 2017 (UTC)
Solution:
I use the extension WikiEditor, so I found how to show this structure in the editor of the page that the user can edit.
The path is: extensions > WikiEditor > modules > ext.wikiEditor.preview.js
And I added the next lines within the jquery code:
if (!$( 'textarea#wpTextbox1' ).val() )
{
$( 'textarea#wpTextbox1' ).val('Editable structure');
} Pvicentemovicoders (talk) 15:08, 13 February 2017 (UTC)
The discussion above is closed. Please do not modify it. No further edits should be made to this discussion.

No users present

Hello. I created a new MediaWiki 1.28 site on a fresh server, and used the "please set up the wiki first" button. I am unable to log into the Wiki site, and http://WIKINAME//api.php?action=query&list=allusers gives me no results. How do I create a new admin user? 207.250.18.198 (talk) 18:07, 10 February 2017 (UTC)

If you have command line access, you can use createAndPromote.php. MarkAHershberger(talk) 19:22, 11 February 2017 (UTC)

I have just setup mediawiki 1.28 for the first time and I’m having issues with trailing slash

I am using centos/httpd setup, with virtual host and multiple services

The mediawiki is under:

<Directory /var/www/mediawiki>

AllowOverride All

</Directory>

alias /mediawiki /var/www/mediawiki/

which has the following output for the URL:

AddressURL:      https://<domain>/mediawiki

ResolvedURL:    https://<domain>/mediawiki/index.php/Main_Page

There are no issues with the site itself or the other sites/services on the same Apache

Only when trying to link to a template from a template

Using the mediawiki’s Main Page as an example

I have the Main Page that links to Template:Main page .. which works fine … as far as I can tell

Under the Template:Main page I have the code (exactly the same as mediawiki’s page)

<div id="mainpage_pagetitle">'''{{Main page/include|welcome|{{{1|}}}|3=[[MediaWiki|<span id="mainpage_mwtitle">MediaWiki.org</span>]]}}'''</div>

For this example, this should call the Template:Main page/welcome  … (no trailing slash), however on the “read” page for Template:Main page, gives me a red link for this and show the trailing “/”

{{#if:

| 

I can correctly search and bring up the page,

https://<domain>/mediawiki/index.php/Template:Main_page/welcome

I am not sure how to fix this, as I don’t necessarily have a trail slash Apache issue

thanks 99.243.52.4 (talk) 19:18, 10 February 2017 (UTC)

i notice that a section of code response was missing in the post:
{{#if:
{{#ifexist: Template:Main page/welcome/
  | Template:Main page/welcome/
  | Welcome to MediaWiki.org
  }}
99.243.52.4 (talk) 18:01, 11 February 2017 (UTC)
Is the problem solved? MarkAHershberger(talk) 19:20, 11 February 2017 (UTC)
Not at this time, issue still persists 162.208.80.1 (talk) 15:26, 14 February 2017 (UTC)
after some trial and error, i notice that the issue is around the "include" in the template link:
Main page/include|welcome
Can any point me to a link or an explanation on what "include" is doing 99.243.52.4 (talk) 00:22, 16 February 2017 (UTC)
{{Main page/include is just including [[Template:Main page/include]]. What is doing it we can't tell, since it depends on what's its contents.
Maybe you copied all those templates from another wiki and you're missing some of them? Ciencia Al Poder (talk) 10:20, 16 February 2017 (UTC)

Problems with importing wikipedia dumps with mwdumper

Hi, I have mediawiki 1.28 and I'm trying to import wikipedia dump "ruwiki-20170120-pages-articles.xml.bz2" with mwdumper.

First i had a problem like Project:Support desk/Flow/2015/11#h-Unknown_column_'page_counter'_in_'field_list'_in_mediawiki_1.25.3?-2015-11-21T05:54:00.000Z, but I solved it by manually adding the field 'page_counter'.

But now I'm getting the "Error 1062: Duplicate entry 'some_long_string_of_characters' for key 'name_title'". As far as I know it can happen if MediaWiki tables do not use binary charset, but I re-checked it in LocalSettings.php and I am sure that they do use it by default.

So I've got a question: is there any way to solve it? Or maybe there are any other opportunities to import dumps? (apart from "importDump.php", because it is waaay to slow) 109.172.15.7 (talk) 20:31, 10 February 2017 (UTC)

There have been recent changes to MW's DB schema that are not captured MWDumper. It looks like the problem you're hitting is ERROR 1062: Duplicate entry for key 'name_title' (mwDumper failed to insert data into mysql). MarkAHershberger(talk) 19:17, 11 February 2017 (UTC)

Infobox that badly displayed

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


Hello, I have a problem with displaying infobox. Instead of displayed in the top right and framed, my infobox take the whole page.

Screen of the problem : http://hpics.li/a4c8b61

I have installed Scribunto and ParserFunctions, Inputbox and TemplateData are also installing, my Infobox this ends well}} Where can my problem come from?

And I followed the instructions on the page, Manual:Importing Wikipedia infoboxes tutorial Sebunian (talk) 22:12, 10 February 2017 (UTC)

update Mediawiki.css 47.31.5.64 (talk) 18:36, 11 February 2017 (UTC)
Thank you for your help Sebunian (talk) 22:24, 11 February 2017 (UTC)
The discussion above is closed. Please do not modify it. No further edits should be made to this discussion.

PSR-3

Hi. I was installing MW 2.8 and a message appeared that said I need PSR-3 logging library. I installed it but I don't what to do now. 190.218.131.226 (talk) 03:48, 11 February 2017 (UTC)

How did you install MediaWiki? It looks like you are using git to install it. You'll need to run "composer update" to install the PSR-3 logging library. MarkAHershberger(talk) 19:06, 11 February 2017 (UTC)

Warnings and Fatal error!

I am trying to install MW on "Hostinger" without xCache (Error 503 - Service Unavailable). After all I can't open my wikisite cause,

Warning: rename(/tmp/l10n_cache-en.cdb.tmp.335721450,/tmp/l10n_cache-en.cdb): Operation not permitted in /home/u523183123/public_html/vendor/wikimedia/cdb/src/Writer/DBA.php on line 59

[WJ9KOl28oG0AAGQtx7QAAABX] 2017-02-11 17:30:34: Fatal exception of type MWException

Warning: dba_close(): supplied resource is not a valid DBA identifier resource in /home/u523183123/public_html/vendor/wikimedia/cdb/src/Writer/DBA.php on line 54

Warning: rename(/tmp/l10n_cache-en.cdb.tmp.335721450,/tmp/l10n_cache-en.cdb): Operation not permitted in /home/u523183123/public_html/vendor/wikimedia/cdb/src/Writer/DBA.php on line 59

Fatal error: Uncaught Cdb\Exception: Unable to move the new CDB file into place. in /home/u523183123/public_html/vendor/wikimedia/cdb/src/Writer/DBA.php:60 Stack trace: #0 /home/u523183123/public_html/vendor/wikimedia/cdb/src/Writer.php(88): Cdb\Writer\DBA->close() #1 [internal function]: Cdb\Writer->__destruct() #2 {main} thrown in /home/u523183123/public_html/vendor/wikimedia/cdb/src/Writer/DBA.php on line 60

What do I do wrong?

Thanks! 31.173.85.251 (talk) 18:04, 11 February 2017 (UTC)

You need to fix the "Operation not permitted". Since your wiki can't write to /tmp, you need to adjust $wgTmpDirectory. You could set it to "{$wgUploadDirectory}/tmp" in your php.iniLocalSettings.php file. MarkAHershberger(talk) 19:03, 11 February 2017 (UTC)
> You could set it to "{$wgUploadDirectory}/tmp" in your php.ini file.
Mark does not mean the php.ini file. What he actually means is "in your LocalSettings.php file". 83.135.236.31 (talk) 23:38, 11 February 2017 (UTC)
oops! thanks for catching that! MarkAHershberger(talk) 23:47, 11 February 2017 (UTC)
Thanks a lot! 31.173.81.112 (talk) 08:26, 12 February 2017 (UTC)
This problem is coming up more and more often on the Support Desk. Seems like with MW 1.27 or with 1.28 at least, the code has been changed in a way, which is causing trouble in more cases then it did before. I have improved Manual:$wgTmpDirectory to mention this problem and the solution. 87.123.255.22 (talk) 10:45, 12 February 2017 (UTC)
Is there a phab task tracking this? Could you write one? MarkAHershberger(talk) 17:44, 12 February 2017 (UTC)
There's T126736 Ciencia Al Poder (talk) 18:03, 12 February 2017 (UTC)

Can't edit certain pages; edit interfaces instantly reverting changes

I frequently edit on Gamepedia and there are some pages (both mainspace and talk) where, if I go into the source editor, automatically erases any changes I make as soon as I type them and if in the visual editor, causes the formatting to become jumbled and also automatically erases any changes. Does anyone know what's causing this? Tenryuu (talk) 04:16, 13 February 2017 (UTC)

I don't. This is a question better asked on Gamepedia. If you need help finding someone, I believe @Alexia E. Smith is someone who could help you with Gamepedia issues. MarkAHershberger(talk) 16:51, 13 February 2017 (UTC)

Can't make html an uploadable file type?

Hi, I am working on my own personal Wikimedia site. It's just for me right now to document my past work (only I can edit), and I have allowed a lot of different file types to be uploaded. But Wikimedia doesn't seem to want to allow html or htm to be allowed.

I know I am editing localsettings.php section correctly:

  $wgFileExtensions = array_merge(
      $wgFileExtensions, array(
          'zip', 'xls', 'xlsx', 'doc','docx', 'mdb', 'accdb', 'ppt', 'pptx', 'csv', 'txt', 'html', 'pdf'
          )
       );

If I take out or add in other extensions, changes are immediately reflected in allowed extensions on my Upload file page. But html or htm simply won't show as allowed extensions, and give an error that they are not allowed if I try to upload.

I realize I can simply upload the html pages to my site, outside of Wikimedia. But I am creating an archive of projects and as such, I want to take advantage of all the nice file tracking and commenting features of Wikimedia.

Google doesn't seem to help. The Wikimedia page on file types doesn't say they're not allowed.

I believe I have Wikimedia 1.27.1 (install files dated Aug. 23, 2016). I used my SiteGround hosts' installer.

Can anyone help? RedKnight7 (talk) 15:31, 13 February 2017 (UTC)

See $wgFileBlacklist. As that page suggests, if you want to allow HTML files, you'll have to do something like the following:
$wgFileExtensions[] = 'html';
$wgFileBlacklist = array_diff( $wgFileBlacklist, array ('html') );
MarkAHershberger(talk) 16:47, 13 February 2017 (UTC)
Also see $wgMimeTypeBlacklist for text/html. MarkAHershberger(talk) 17:22, 13 February 2017 (UTC)
Thank you very much, it's been very helpful and enlightening...
Even after all that (and it was needed), I still get the Upload Warning:

This file contains HTML or script code that may be erroneously interpreted by a web browser.

And it won't let me upload even if I checkmark Ignore Any Warnings.
There isn't really any reason to think there's a problem with the html. It is over 6 years old, came from a game wiki I knew well then (above the board), and modern Chrome displays it fine; my AV and malwarebytes does not have any problem.
Any idea on what to do next? RedKnight7 (talk) 01:09, 14 February 2017 (UTC)
Followup:
I looked into temporarily deactivating all safeguards. (At this point in time, I am the only person with write access to my wiki.) There seems to be a history of SVG files causing this error as seen here, where they also talk about using detectScript in SpecialUploads.php, and just adding an IF phrase to jump out of the security check if it's SVG.
Of course, anything like this has to be used with extreme caution. But there's an exception to every rule, too.
Still, my SpecialUpload.php does not have any detectScript function. Apparently SVGs can load scripts. Plus the article is from 2009, so maybe that issue is obsolete anyway.
It is also possible that there are actually numerous triggers in my html files that Wikimedia Upload won't like. Not that my html is particularly suspicious (I know it isn't), but because Wikimedia is very cautious. In short, it may be a wild goose chase to try to find every specific problem. I may need a general way around the problem.
Some might say, why not change the extension and trick Wikimedia? No, I would rather just post the htmls outside Wikimedia than force readers to play a game of "download and rename extension in order to view it". And I still like Wikimedia's tracking capabilities. Finally, the warning itself is really about the contents of the file, not its extension.
Anyway. Does anyone have insights now? I can temporarily over-ride warnings... I have exactly 10 old htmls I want to upload, and that's it. This is for a very specific old project I am trying to document on my wiki.
Thanks if you can help! RedKnight7 (talk) 18:02, 14 February 2017 (UTC)
Solution:
As discussed by Joel Lipman in 2009 (but detectScript is not in SpecialUpload.php any more) and also in particular under Manual:MIME Type Detection / Forbidden Files,

MediaWiki rejects all files that look like scripts that could be accidentally executed on either the web server or the user's browser. Notably, anything that looks like one of the following formats will be rejected, regardless of detected mime type or file extension: HTML, JavaScript, PHP, shell scripts. Note that the detection of HTML and JavaScript is rather broad, and may report false positives — this is so because the Microsoft Internet Explorer is known to interpret files that look like HTML, regardless of file extension or MIME type reported by the web server, which would lead to the site being vulnerable to cross-site scripting attacks. If you really want to allow even such dangerous files, you can hack the detectScript function in the UploadBase.php file to always return false.

So I am temporarily doing exactly what it said. I did find detectScript in UploadBase.php (not SpecialUpload) and I simply added

return false;

Now I can upload the html. Of course, I will take it out as soon as the 10 htmls are uploaded.
Thanks for getting me started, Mark! RedKnight7 (talk) 23:59, 14 February 2017 (UTC)
You can zip the file and upload it zipped Coffeejunkie6128 (talk) 13:00, 6 March 2020 (UTC)

how to access to next/previous special:allpages

In my Accueil page I use one mw-collapsible-content to view by clic the special:Allpages

but as the list is long , it displays only the page having an A to M title

if I write special:Allpages#2 in the template

I get again the beginning

how to report the "next special page" with a link as it is performed when we access directly by the right menu tools Chantoune (talk) 16:43, 13 February 2017 (UTC)

Synology ds214play

The mediawiki program seems to be broken for the synology device. When I try to access the page I get

Exception encountered, of type "InvalidArgumentException"

or

"Notice: Object of class Closure could not be converted to int in /volume1/web/MediaWiki/includes/libs/objectcache/WANObjectCache.php on line 801 Exception encountered, of type "InvalidArgumentException""

which has a little more information, but not enough for me to get it working again. 83.254.130.87 (talk) 20:34, 13 February 2017 (UTC)

Which MediaWiki version is this about? To get a stacktrace for the exception, see Manual:How to debug AKlapper (WMF) (talk) 13:23, 14 February 2017 (UTC)
Mediawiki version 1.27.1-0117.
DSM 6.0.2-8451 Update 9
DSM date 2017/01/16. 83.254.130.87 (talk) 22:04, 14 February 2017 (UTC)
Note to myself: It seems that "Synology" and "DSM" are these things: https://www.synology.com/en-us/dsm/6.0 AKlapper (WMF) (talk) 09:22, 15 February 2017 (UTC)
I have installed mediawiki thru the synology package center. 85.235.12.53 (talk) 08:47, 17 February 2017 (UTC)

Error "there seems to be a problem with login" on nas

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


Hi!

I have a Synology DS116 and I installed MariaDB 5.5.53-0070, PHP 5.6.28-0050 and MediaWiki 1.27.1-0117 on it. When logging in to the wiki, MediaWiki returns an error message.

Occurance: When logging in to wiki (ip address/MediaWiki/index.php)

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

Browser: Chrome (also tried in cognito) and IE

Sources on the internet say it could have to do with cache-type (changing $wgMainCacheType = CACHE_ACCEL; into ANYTHING or DB) or cache save location (adding session_save_path("tmp");), but this didn't help me.

Thanks in advance!

Lian Liannnnn (talk) 21:45, 13 February 2017 (UTC)

I've got the same problem. 37.18.163.242 (talk) 16:09, 24 March 2017 (UTC)
Try changing $wgMainCacheType from CACHE_ACCEL to CACHE_ANYTHING.
It worked for me. 37.18.163.242 (talk) 16:12, 24 March 2017 (UTC)
The discussion above is closed. Please do not modify it. No further edits should be made to this discussion.

What's the extension in use for editing user pages here?

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.


So I was looking to create a user page and noticed a modern editor. I'm talking about the thing that shows up when I click here - what extension is it? Is it VisualEditor, WikiEditor, or something else? What's the difference between VisualEditor and WikiEditor? Thanks. Monitorio (talk) 22:19, 13 February 2017 (UTC)

See https://www.mediawiki.org/wiki/Extension:WikiEditor and https://www.mediawiki.org/wiki/Extension:VisualEditor for a start :) AKlapper (WMF) (talk) 13:23, 14 February 2017 (UTC)
WikiEditor Provides the Edit Toolbar that you see by default. VisualEditor is a visual alternative to editing the wiki code. It eliminates that need to learn WikiCode. MacFan4000 (talk) 01:14, 15 February 2017 (UTC)
The discussion above is closed. Please do not modify it. No further edits should be made to this discussion.

Normalizing email before storage

Hi,

I'm noticing a lot of spammers use variants of the same email address to bypass my email confirmation requirement. For example, they're using spammeremail1@gmail.com, spammer.e.mail.1@gmail.com, spammer.email1@gmail.com, etc. They're just moving the period around so MediaWiki things it's a new email address when in reality all those account confirmation emails are going to the same Gmail inbox. Gmail treats periods as optional. Is there any way to normalize the email so all periods before the @ are removed for specific domains? i.e. I know Google doesn't take into account the period for emails, so I'd like the period to be removed to avoid this type of email confirmation bypass spam. Thanks. Stringers2 (talk) 01:27, 14 February 2017 (UTC)

You can prevent spam account creations altogether by configuring ConfirmEdit to use a stronger CAPTCHA. (namely QuestyCaptcha and ReCaptchaNoCaptcha) MacFan4000 (talk) 01:18, 15 February 2017 (UTC)

Broken and double redirects

Hi. There's a problem with the redirects on my wiki. They won't get updated, no matter what I try. http://dragon-mania-legends-wiki.mobga.me/Special:DoubleRedirects http://dragon-mania-legends-wiki.mobga.me/Special:BrokenRedirects

php runJobs, refreshLinks, updateSpecialPages fixDoubleredirects and so on other maintenance scripts won't help.

Any solution to this? │Star-Warden│ 01:48, 14 February 2017 (UTC)

It looks like they've been solved. At least all the entries on Special:BrokenRedirects are crossed out. MarkAHershberger(talk) 01:13, 18 February 2017 (UTC)
They've been crossed out for weeks. I really don't understand what's causing it. │Star-Warden│ 02:02, 18 February 2017 (UTC)
Could you file a bug in phabricator? MarkAHershberger(talk) 21:55, 11 March 2017 (UTC)
I thought of that, but I wasn't unsure if I should do it only because it's specific to my wiki or it's persistent across other wikis, as well. I will file one and get back to you. │Star-Warden│ 13:47, 12 March 2017 (UTC)
Here it is: https://phabricator.wikimedia.org/T160278Star-Warden│ 13:50, 12 March 2017 (UTC)

There were no results matching the query.

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


Hi , I am working on my own wiki site. I installed it using MS SQL Server as DB.

The only problem is it failed to do content full-text searching, no matter what key words I typed in (I am pretty sure some pages contains the key words), it just gave 'There were no results matching the query.' No searching results shown.

What's wrong with it? Could somebody help me?

Best Regards,

Richard 110.142.220.167 (talk) 03:11, 14 February 2017 (UTC)

Plus, I use
Nginx 1.10.2 + Microsoft Sql Server 10.50.2550.0 + PHP 7.0.15-nts-Win32-VC14-x86 + MediaWiki 1.27.1
The only extra modification I made is I cut the oi_name,oi_archive_name length from 255 to 225 because of the problem
Error: 1945 [SQLSTATE 01000][Error Code 1945][Microsoft][ODBC Driver 13 for SQL Server][SQL Server]Warning! The maximum key length is 900 bytes. The index 'oi_name_archive_name' has maximum length of 1020 bytes.
I am not sure if this is the cause for that.
Thanks in advance.
Best Regards
Richard Lk richard (talk) 03:15, 14 February 2017 (UTC)
Can anyone help me? Lk richard (talk) 04:24, 14 February 2017 (UTC)
Hi guys,
When I check the table 'searchindex' , I found all content is messy code.
Is it the problem of failing to make full text searching? How may I fix it? Lk richard (talk) 04:32, 15 February 2017 (UTC)
SQL Server has poor support in MediaWiki, that's probably a bug. Try to bugreport it Ciencia Al Poder (talk) 10:50, 15 February 2017 (UTC)
@Lk richard: Did you file a bug? MarkAHershberger(talk) 01:15, 18 February 2017 (UTC)
@Ciencia Al Poder Thanks very much. Have posted one.
@MarkAHershberger Yes, https://phabricator.wikimedia.org/T158530  :-) Lk richard (talk) 08:24, 20 February 2017 (UTC)
Sounds more like a configuration issue with charset or collation to me (see more info in the bug report) AKlapper (WMF) (talk) 11:23, 21 February 2017 (UTC)
The discussion above is closed. Please do not modify it. No further edits should be made to this discussion.

Linking to pages via their PageID or some kind of short name / wildcard?

Hello!

I have a wiki that has very long page names (generated by a script), which makes linking between them unpractical and harder than it should be. I'd like to know if there's a way to somehow shorten the names — by using some kind of wildcards, aliases, or maybe by their PageID? Or what other alternative solutions to my problem might exist?

Thank you in advance! Pchr8 (talk) 11:48, 14 February 2017 (UTC)

Does job record get deleted after ran when store in redis?

Due to this bug https://phabricator.wikimedia.org/T124196 we were unable to store job table in mysql. So we use Redis instead. We set the "Job Queue" as instruction here: https://github.com/wikimedia/mediawiki-extensions-CirrusSearch

$redisPassword = '<password goes here>'; $wgJobTypeConf['default'] = array( 'class' => 'JobQueueRedis', 'order' => 'fifo', 'redisServer' => 'localhost', 'checkDelay' => true, 'redisConfig' => array( 'password' => $redisPassword, ), ); $wgJobQueueAggregator = array( 'class' => 'JobQueueAggregatorRedis', 'redisServer' => 'localhost', 'redisConfig' => array( 'password' => $redisPassword, ), );

We successfully store job queue in redis and runjob without problem. However, it seems that redis would not delete finished job after it been ran. Once the ram get filled up we get error message like these: "Redis server error: Could not insert 1 EchoNotificationDeleteJob Job(s)."

We got limited 1GB ram for redis. Redis is using volatile-lru maxmemory_policy Deletedaccount4567435 (talk) 16:27, 14 February 2017 (UTC)

Hide Search Bar for single page?

We have our wiki set up so that the sidebar isn't shown until after a user logs in. This is our way of securing our wiki from unauthorized users as the permissions way doesn't work. Unfortunately they can still search via the search bar so was trying to find a way to simply hide the search bar for our Main page, is this possible? Skylance30 (talk) 18:18, 14 February 2017 (UTC)

It's a terrible way to protect something, but every page has it's own class on the body of a page, so you can use CSS to display:none the element (and you can place this CSS into your installations MediaWiki:Common.css page) —TheDJ (Not WMF) (talkcontribs) 10:07, 15 February 2017 (UTC)
Ideally you should implement one of the Hooks about search and throw an exception or abort the search if the user is not logged in. This would catch search from the api, opensearch or direct URL access to the search page. I think Manual:Hooks/SpecialSearchSetupEngine would match all of those entry points. Ciencia Al Poder (talk) 10:49, 15 February 2017 (UTC)
See https://www.mediawiki.org/wiki/Project%3ASupport%20desk/Flow/2018/11#h-Hide_search_box_on_Main_Page-2018-11-05T11%3A34%3A00.000Z for resolved that topic. Ency (talk) 15:23, 17 March 2020 (UTC)
To delete the search bar type:
#p-search { display:none; }
In MediaWiki:Common.css Infinitepeace (talk) 07:00, 27 January 2021 (UTC)

Move extension Spec to Pickle

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 translated page Extension:Spec should be moved to Extension:Pickle, and likewise Help:Spec should be moved to Help:Pickle. Having a names beginning with "Spec" is pretty awkward, as it hits on "Special" for all sorts of searches. The extension is also about more types of testing styles than just spec (aka Rspec).

Additional pages to move are Help:Spec/Glossary and Help:Spec/FAQ.

I'll do additional clean up of the pages later on when they are moved. Jeblad (talk) 00:20, 15 February 2017 (UTC)

And Template:Spec Navigation MacFan4000 (talk) 02:16, 15 February 2017 (UTC)
Yes, had a stack overflow on that one! I'll fix the links. Jeblad (talk) 06:45, 15 February 2017 (UTC)
That one was already fixed! =) Jeblad (talk) 06:47, 15 February 2017 (UTC)
Failed to move Help:Spec because of the following errors:
The translatable page cannot be moved to a new name because of the following errors:
The target subpage "Help:Pickle/Activities" exists.
The target subpage "Help:Pickle/Basic idea" exists.
The target subpage "Help:Pickle/Describe-Context-It" exists.
The target subpage "Help:Pickle/Documentation" exists.
The target subpage "Help:Pickle/Expect" exists.
The target subpage "Help:Pickle/Hello World" exists.
The target subpage "Help:Pickle/Notes" exists.
The target subpage "Help:Pickle/Notifications" exists.
The target subpage "Help:Pickle/Page indicators" exists.
The target subpage "Help:Pickle/Quick tour" exists.
The target subpage "Help:Pickle/Rollout" exists.
The target subpage "Help:Pickle/Signature" exists.
The target subpage "Help:Pickle/Sources" exists.
The target subpage "Help:Pickle/Statistics" exists.
The target subpage "Help:Pickle/Test anything protocol" exists.
The target subpage "Help:Pickle/Test log" exists.
The target subpage "Help:Pickle/Timing" exists.
The target subpage "Help:Pickle/Tracking categories" exists.
The target subpage "Help:Pickle/Vagrant" exists.
The target subpage "Help:Pickle/background" exists.
The target subpage "Help:Pickle/glossary/continuous integration" exists.
The target subpage "Help:Pickle/glossary test" exists.
Shirayuki (talk) 12:09, 15 February 2017 (UTC)
Yes Done by moving Help:Pickle/Activities and its friends to Help:Spec/Activities manually and by moving Help:Spec to Help:Pickle including its subpages. Shirayuki (talk) 12:33, 15 February 2017 (UTC)
I shall make a note to later that moving other non-translatable pages underneath a translatable page can create problems.
Thanks! Jeblad (talk) 15:21, 15 February 2017 (UTC)
Note that you could have unchecked the "move subpages" box. 24.39.1.139 (talk) 16:32, 15 February 2017 (UTC)
The discussion above is closed. Please do not modify it. No further edits should be made to this discussion.

Any reason to be using $wgSpamRegex

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


Is there any reason to be using $wgSpamRegex instead of the abuse filter? $wgSpamRegex applies to all user groups while the abuse filter can be further customized to limit false positives. They both use regular expressions and pattern matching to prevent abuse which fits certain patterns, so I'm not sure under what circumstances I'd use $wgSpamRegex instead of the abuse filter?

There's also the spam blacklist extension - yet another regular expressions based anti-spam feature. Between the abuse filter and spam blacklist, there doesn't seem to be any reason for $wgSpamRegex?

Thanks. Stringers2 (talk) 05:08, 15 February 2017 (UTC)

Thats right. Its not very useful. Most of the high traffic projects don't use it. MacFan4000 (talk) 16:37, 15 February 2017 (UTC)
The discussion above is closed. Please do not modify it. No further edits should be made to this discussion.

LDAP Authentication

Hi,

I have installed the mediawiki version 1.28 and the LDAP authentication but it seems not to work.

The ldap server works fine with other services and the ldap request is fired ...

Feb 15 10:00:48 XXXX kernel: RULE 3 -- ACCEPT IN= OUT=eth0 SRC=192.168.139.191 DST=192.168.139.47 LEN=60 TOS=0x00 PREC=0x00 TTL=64 ID=50216 DF PROTO=TCP SPT=60526 DPT=389 WINDOW=14600 RES=0x00 SYN URGP=0

but when I try to authenticate I obtain the following:

Auto-creation of a local account failed

Automatic account creation is not allowed.

Now ... How can i disable the auto-creation?

Thanks. 193.43.200.194 (talk) 09:20, 15 February 2017 (UTC)

How to change color of all background...

Hi, please, help me. I just install MediaWiki through XAMPP. How to change color of all background, text, internal and external links? I can't find it anywhere. I mean something like this: image

Thanks a lot. Zipacna1 (talk) 14:11, 15 February 2017 (UTC)

In your MediaWiki:Common.CSS page, use something of the sort:
#content { background-color: #e6ffb4; }
Details: https://www.hostknox.com/knowledgebase/681/How-to-change-background-colors-in-MediaWiki.html AhmadF.Cheema (talk) 16:03, 15 February 2017 (UTC)
Thank you very much, Ahmad. It was very helpful. But I still have problem with "edit, read, view history etc." buttons. How to change their color? Also, I change color of external links, but i can't change color of internal links (all in Vector skin). Can you please help me one more time? Thanks a lot. Zipacna1 (talk) 11:38, 16 February 2017 (UTC)
For links, use CSS similar to:
.mw-body .ThemeGreen a:link { font-weight: bold; color: #00ad4e; } /* normal unvisited links */
.mw-body .ThemeGreen a:link:visited { font-weight: bold; color: #00ad4e; } /* visited links */
.mw-body .ThemeGreen a:link:active { font-weight: bold; color: #008039; } /* active links */
.mw-body .ThemeGreen a:link.new { color: #FF0000; } /* new links */
Details: https://en.wikipedia.org/wiki/Help:Link_color
Remember that because of cached items, it might take some time for the changes to actually show.
For tabs, something like the following should work:
/* change background of unselected tabs */
#p-cactions ul li a { background: #C7FDC7; }
/* change background of selected tabs */
#p-cactions ul li.selected a { background: white; }
/* change border background of selected tabs */
#p-cactions li.selected { border-color: #aaaaaa; }
/* tab bottom not removed on hover */
#p-cactions li a:hover { z-index: 0; text-decoration: none; }
#p-cactions li.selected a:hover { z-index: 3; }
Details: https://meta.wikimedia.org/wiki/Help:User_style#Samples AhmadF.Cheema (talk) 12:12, 16 February 2017 (UTC)

License

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. My wiki is already installed but it has no a Creative Commons license. Is there a way to add one from LocalSettings?

Thanks 190.218.131.226 (talk) 17:47, 15 February 2017 (UTC)

See and MacFan4000 (talk) 18:42, 15 February 2017 (UTC)
The discussion above is closed. Please do not modify it. No further edits should be made to this discussion.

Dúvidas sobre bloqueio

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.


Boa tarde,
Recentemente fiz várias edições no Wikipédia, nas atualizações dos títulos do Botafogo. A minha conta foi bloqueada e acusada de vandalismo, realmente eu não entendi, pois, só estava editando e colocando o que realmente era real, eu sou botafoguense e só estava atualizando, se eu fiz alguma coisa de errado, gostaria de saber o que foi, jamais colocaria inverdades ou coisas de vandalismo. A pessoa que bloqueou foi o EVinente, porém, não consigo falar com ele, alguém poderia me ajudar?, Por favor.
Atenciosamente. Túlio Rossoni Prando (talk) 19:38, 15 February 2017 (UTC)
See https://pt.wikipedia.org/wiki/Usu%C3%A1rio(a)_Discuss%C3%A3o:T%C3%BAlio_Rossoni_Prando where you received several warnings that you potentially ignored. On mediawiki.org we cannot help you with policies of pt.wikipedia.org. Malyacko (talk) 11:44, 16 February 2017 (UTC)
English translation: Good afternoon,
I recently made several editions on Wikipedia, in the updates of Botafogo titles. My account was blocked and accused of vandalism, I really did not understand, because I was just editing and putting what was really real, I'm Botafogo and I was just updating, if I did something wrong, I'd like to know what it was , Would never put untruths or things of vandalism. The person who blocked was EVinente, but I can not talk to him, could anyone help me? Please.
Kind regards. MacFan4000 (talk) 19:57, 15 February 2017 (UTC)
The discussion above is closed. Please do not modify it. No further edits should be made to this discussion.

Dúvidas sobre o desbloqueio

See https://en.m.wikipedia.org/wiki/Wikipedia:Unblock_Ticket_Request_System

I understood, however, that you could please send a message to the EVinente, because I can not help anyone, it was he who blocked me, I would like to talk to him and explain what happened. I really need this unlocked page to be able to update what's missing.

Thank you

Com qual pessoa poderei tratar sobre esse assunto? Pois não estou conseguindo falar com ninguém. Túlio Rossoni Prando (talk) 20:01, 15 February 2017 (UTC)

Nope that is the only way if you are blocked from editing your talk page. MacFan4000 (talk) 15:54, 16 February 2017 (UTC)

User login takes to specific page

Is there a way to make it so that after a user logs in, it takes them to a specific page that I designate instead of the main page? I want the main page to mainly just be used for pre-login purposes. Skylance30 (talk) 22:26, 15 February 2017 (UTC)

Apparently you can do that by hooking Manual:Hooks/PostLoginRedirect Ciencia Al Poder (talk) 10:21, 16 February 2017 (UTC)

Shared Database

Hi. I have 3 wikis and I'm trying to install Extension:GlobalUserGroups to the main wiki to be able to use userrights-interwiki. My wikis are not connected, and each one have a different MySQL database.

The problem is that I don't know how to created a shared database to add it to $wgSharedDB = 190.218.131.226 (talk) 03:09, 16 February 2017 (UTC)

The shared database is usually one of the database of the other wikis, not a "dedicated" one. So for example, choose which one of the three wikis is the "main" one (the oldest, the most generic, whatever) and use it as the shared database.
Note that if those 3 wikis already exist and have users, and weren't sharing the user table, you can't do that, since each user has a different ID in each wiki, and would cause users to mix up ones with others. Ciencia Al Poder (talk) 10:17, 16 February 2017 (UTC)

Wie führe ich ein update meines vorhandenen Systems durch?

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 update my existing system?

"Existing Wiki"

&

Update an existing installation

Is simply skipped

wie führe ich ein update meines vorhandenen Systems durch?

"Vorhandenes Wiki"

&

Eine vorhandene Installation aktualisieren

wird einfach übersprungen 84.183.31.246 (talk) 14:36, 16 February 2017 (UTC)

genau dass muss ich wissen 84.183.31.246 (talk) 14:46, 16 February 2017 (UTC)
See Manual:Upgrading. MacFan4000 (talk) 15:52, 16 February 2017 (UTC)
The discussion above is closed. Please do not modify it. No further edits should be made to this discussion.

Logging DNSBL hits?

Using $wgEnableDnsBlacklist and $wgDnsBlacklistUrls we can set DNSBLs to use, but there doesn't seem to be any built in logging mechanism. Is there any easy way or maybe some config option to log hits somewhere? It'll be useful to know how effective individual blacklists are, and if they're not even getting hits we can use the information to disable use of certain lists. Would the debug features be useful in this setting? Cats legs (talk) 16:48, 16 February 2017 (UTC)

Any way to list out all images from Wikimedia Commons been used in current wiki now?

For wiki enabled InstantCommons, what is the best way to get a list of files' name that cite from Wikimedia Commons? Deletedaccount4567435 (talk) 19:14, 16 February 2017 (UTC)

From Wikimedia Commons. Kizule (talk) 23:07, 20 February 2017 (UTC)
Apparently, there's no information about which files are in local file repository or in external repository in the database, or at least I was unable to find that info in the image table. Ciencia Al Poder (talk) 10:31, 22 February 2017 (UTC)

Template Information

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


I know this is probably over-asked, but I'm running out of time. I'm having trouble finding information on creating Templates, specifically for Infobox, for a private MediaWiki site. I understand the hesitation to offer the information, due to the chance someone may take it as license to make changes to public sites. However, as a private site, I have some specific needs.

I attempted to follow the Import/Export process spelled out here (below), but I get a Server 500 error when I do the import. (The XML appears well-formed to me, though.)

Manual:Importing Wikipedia infoboxes tutorial

Any direction that can be provided would be appreciated.

MediaWiki version 1.28.0 (release 83)

PHP version 5.4

MySQL version -- unsure

My proof of concept site (my testing for compatibility with the full need) is lisbona.trianglemoon.com CSchrieb (talk) 04:09, 17 February 2017 (UTC)

Please, see here: https://en.wikijournal.org/wiki/How_to_create_website_on_MediaWiki#Using_of_templates_in_articles Fokebox (talk) 08:56, 17 February 2017 (UTC)
Thank you. I may be misunderstanding the topic. It looks like this is where I needed to start. CSchrieb (talk) 15:08, 17 February 2017 (UTC)
Unfortunately, this primarily shows how to consume a template. I'm looking to create a template, (and additionally, figure out how to format it so that it moves to the right, like you see on MediaWiki pages).
Any further direction greatly appreciated! CSchrieb (talk) 07:34, 20 February 2017 (UTC)
The server 500 error you are getting is likely because of some server side configuration issue. Take a look at this: Manual:How to debug, in order to get more error information. AhmadF.Cheema (talk) 09:42, 20 February 2017 (UTC)
I'm still having trouble understanding the relationship between "Template:Infobox" and "Template:Infobox connector", for example. Is Infobox required to create a template like Infobox connector?
I'm literally just trying to create something simple that gets offset to the right:
Name = Bob_File
Location = GLBS22\peer
Acceptance Date = Mar 22, 1988
Am I perhaps not looking for the right object? CSchrieb (talk) 16:21, 20 February 2017 (UTC)
If you just a basic infobox on the right then you don't need anything complex; make a div with style="float:right", and include a table within it for your fields. An example is on User:Clump. Clump (talk) 22:43, 20 February 2017 (UTC)
Thank you Clump. I'll start there. Can this be made into a template, to be reused in multiple places? Seems like that would just be a matter of making some of the fields parameters, right? CSchrieb (talk) 22:49, 20 February 2017 (UTC)
Yes, just replace the text you want to pass in with the template call with {{{1}}}, {{{2}}}, etc. Clump (talk) 22:54, 20 February 2017 (UTC)
The discussion above is closed. Please do not modify it. No further edits should be made to this discussion.

Extensions CentralAuth Bug

[WKbEl1aR8cf8hFdPI5b6-QAAAMc] /w/index.php?title=Istimewa%3AOtoritas+pusat&target=Test

Exception from line 687 of .../w/extensions/CentralAuth/includes/specials/SpecialCentralAuth.php: Invalid wiki: ckmpga_db1-mw_
Backtrace:
#0 .../w/extensions/CentralAuth/includes/specials/SpecialCentralAuth.php(462): SpecialCentralAuth->foreignUserLink(string)
#1 [internal function]: SpecialCentralAuth->listWikiItem(array)
#2 .../w/extensions/CentralAuth/includes/specials/SpecialCentralAuth.php(433): array_map(array, array)
#3 .../w/extensions/CentralAuth/includes/specials/SpecialCentralAuth.php(368): SpecialCentralAuth->listAccounts(array)

Murbaut (talk) 09:43, 17 February 2017 (UTC)

Versions ? New issue ? Upgrade issue ? —TheDJ (Not WMF) (talkcontribs) 09:53, 17 February 2017 (UTC)
@TheDJ: Vesions 1.28 New issue after instal Murbaut (talk) 10:47, 17 February 2017 (UTC)
Did you run the maintenance/update.php script ? —TheDJ (Not WMF) (talkcontribs) 10:48, 17 February 2017 (UTC)
Done Murbaut (talk) 11:03, 17 February 2017 (UTC)
What wrong?/public_html/w/extensions/CentralAuth/includes/specials Murbaut (talk) 11:03, 17 February 2017 (UTC)
What mean "Invalid wiki: ckmpga_db1-mw_"? Murbaut (talk) 11:05, 17 February 2017 (UTC)
Do you know what is ID for wiki? Murbaut (talk) 11:49, 17 February 2017 (UTC)
Can you help me @MarkAHershberger and TheDJ: ? Murbaut (talk) 05:18, 18 February 2017 (UTC)
sorry I missed this. Are you still having the problem? MarkAHershberger(talk) 16:40, 4 March 2017 (UTC)
@MarkAHershberger: Yes. Can you solve this? Murbaut (talk) 16:43, 4 March 2017 (UTC)
I don't know. Is your wiki public? Would you mind posting your LocalSettings.php somewhere? MarkAHershberger(talk) 21:50, 4 March 2017 (UTC)
@MarkAHershberger: yes. http://ckmp.ga/wiki
some setting in Local Setting.php
<?php
# This file was automatically generated by the MediaWiki 1.28.0
# installer. If you make manual changes, please keep track in case you
# need to recreate them later.
#
# See includes/DefaultSettings.php for all configurable settings
# and their default values, but don't forget to make changes in _this_
# file, not there.
#
# Further documentation for configuration settings may be found at:
# https://www.mediawiki.org/wiki/Manual:Configuration_settings
# Protect against web entry
if ( !defined( 'MEDIAWIKI' ) ) {
	exit;
}
## Uncomment this to disable output compression
# $wgDisableOutputCompression = true;
$wgSitename = "TESTING";
## The URL base path to the directory containing the wiki;
## defaults for all runtime URL paths are based off of this.
## For more information on customizing the URLs
## (like /w/index.php/Page_title to /wiki/Page_title) please see:
## https://www.mediawiki.org/wiki/Manual:Short_URL
$wgScriptPath = "/wiki";
## The protocol and server name to use in fully-qualified URLs
$wgServer = "http://ckmp.ga";
## The URL path to static resources (images, scripts, etc.)
$wgResourceBasePath = $wgScriptPath;
## The URL path to the logo.  Make sure you change this from the default,
## or else you'll overwrite your logo when you upgrade!
$wgLogo = "$wgResourceBasePath/resources/assets/wiki.png";
## UPO means: this is also a user preference option
$wgEnableEmail = true;
$wgEnableUserEmail = true; # UPO
$wgEmergencyContact = "apache@ckmp.ga";
$wgPasswordSender = "apache@ckmp.ga";
$wgEnotifUserTalk = false; # UPO
$wgEnotifWatchlist = false; # UPO
$wgEmailAuthentication = true;
## Database settings
$wgDBtype = "****";
$wgDBserver = "****";
$wgDBname = "***";
$wgDBuser = "****";
$wgDBpassword = *****
# MySQL specific settings
$wgDBprefix = "";
# MySQL table options to use during installation or update
$wgDBTableOptions = "ENGINE=InnoDB, DEFAULT CHARSET=binary";
# Experimental charset support for MySQL 5.0.
$wgDBmysql5 = false;
## Shared memory settings
$wgMainCacheType = CACHE_NONE;
$wgMemCachedServers = [];
## To enable image uploads, make sure the 'images' directory
## is writable, then set this to true:
$wgEnableUploads = true;
$wgUseImageMagick = true;
$wgImageMagickConvertCommand = "/usr/bin/convert";
# InstantCommons allows wiki to use images from https://commons.wikimedia.org
$wgUseInstantCommons = true;
# Periodically send a pingback to https://www.mediawiki.org/ with basic data
# about this MediaWiki instance. The Wikimedia Foundation shares this data
# with MediaWiki developers to help guide future development efforts.
$wgPingback = true;
## If you use ImageMagick (or any other shell command) on a
## Linux server, this will need to be set to the name of an
## available UTF-8 locale
$wgShellLocale = "en_US.utf8";
## Set $wgCacheDirectory to a writable directory on the web server
## to make your wiki go slightly faster. The directory should not
## be publically accessible from the web.
$wgCacheDirectory = "$IP/cache";
# Site language code, should be one of the list in ./languages/data/Names.php
$wgLanguageCode = "id";
# Site upgrade key. Must be set to a string (default provided) to turn on the
## For attaching licensing metadata to pages, and displaying an
## appropriate copyright notice / icon. GNU Free Documentation
## License and Creative Commons licenses are supported so far.
$wgRightsPage = ""; # Set to the title of a wiki page that describes your license/copyright
$wgRightsUrl = "https://creativecommons.org/licenses/by-sa/4.0/";
$wgRightsText = "Creative Commons Atribusi Berbagi Serupa";
$wgRightsIcon = "$wgResourceBasePath/resources/assets/licenses/cc-by-sa.png";
# Path to the GNU diff3 utility. Used for conflict resolution.
$wgDiff3 = "/usr/bin/diff3";
## Default skin: you can change the default skin. Use the internal symbolic
## names, ie 'vector', 'monobook':
$wgDefaultSkin = "monobook";
# Enabled skins.
# The following skins were automatically enabled:
wfLoadSkin( 'CologneBlue' );
wfLoadSkin( 'Modern' );
wfLoadSkin( 'MonoBook' );
wfLoadSkin( 'Vector' );
# Right
$wgGroupPermissions['steward']['centralauth-merge'] = true;
$wgGroupPermissions['steward']['centralauth-rename'] = true;
# Debug
$wgShowExceptionDetails = true;
$wgShowDBErrorBacktrace = true;
# Enabled extensions. Most of the extensions are enabled by adding
# wfLoadExtensions('ExtensionName');
# to LocalSettings.php. Check specific extension documentation for more details.
# The following extensions were automatically enabled:
wfLoadExtension( 'Cite' );
wfLoadExtension( 'CiteThisPage' );
wfLoadExtension( 'ConfirmEdit' );
wfLoadExtension( 'Gadgets' );
wfLoadExtension( 'ImageMap' );
wfLoadExtension( 'InputBox' );
wfLoadExtension( 'Interwiki' );
wfLoadExtension( 'LocalisationUpdate' );
wfLoadExtension( 'Nuke' );
wfLoadExtension( 'ParserFunctions' );
wfLoadExtension( 'PdfHandler' );
wfLoadExtension( 'Poem' );
wfLoadExtension( 'Renameuser' );
wfLoadExtension( 'SpamBlacklist' );
wfLoadExtension( 'SyntaxHighlight_GeSHi' );
wfLoadExtension( 'TitleBlacklist' );
wfLoadExtension( 'WikiEditor' );
require_once "$IP/extensions/CentralAuth/CentralAuth.php";
$wgCentralAuthDatabase = $wgDBname;
$wgCentralAuthAutoMigrate = true;
$wgCentralAuthAutoNew = true;
$wgCentralAuthAutoMigrateNonGlobalAccounts = true;
$wgCentralAuthEnableUserMerge = true;
$wgCentralAuthEnableGlobalRenameRequest = true;
# End of automatically generated settings.
# Add more configuration options below.
Murbaut (talk) 22:36, 4 March 2017 (UTC)
Sorry, I just noticed this, but do you *need* CentralAuth? It isn't really supported for non-WMF servers. MarkAHershberger(talk) 02:06, 5 March 2017 (UTC)
@MarkAHershberger: yes I need. Murbaut (talk) 03:32, 5 March 2017 (UTC)
@MarkAHershberger: Do you know about Manual:$wgConf? I very confused use suffix. I have database name ckmpga_wiki1, ckmpga_wiki2, ckmpga_wiki3, and etc. How I use suffix? What I use prefix in $wgconf->prefix?? or else. Can you explain to me. Many Thanks :) Murbaut (talk) 04:48, 5 March 2017 (UTC)
I don't see it in your LocalSettings.php. What is it currently set to? MarkAHershberger(talk) 13:58, 9 March 2017 (UTC)
I don't make wgConf. Murbaut (talk) 14:10, 9 March 2017 (UTC)
So you just want help setting it up? MarkAHershberger(talk) 16:07, 9 March 2017 (UTC)
I need help with setting it up Murbaut (talk) 20:27, 9 March 2017 (UTC)
I don't have experience with CentralAuth, so my help may be worthless. That said, have you read the setup instructions? What did you try? What didn't work? MarkAHershberger(talk) 21:06, 11 March 2017 (UTC)

Server is slow loading Instant Commons

I configured server to fetch pictures from commons, but when I edit and add a picture, it times out. How should I improve it ? Mohammad (talk) 12:02, 17 February 2017 (UTC)

version is 1.28 Mohammad (talk) 12:02, 17 February 2017 (UTC)
Mohammad (talk) 10:19, 18 February 2017 (UTC)

Search suggestions (autocomplete) not working

Hi. For some reason, when trying to look up things on the wiki using the search bar (http://dragon-mania-legends-wiki.mobga.me/Main_Page), search suggestions aren't displayed. Ajax is enabled on the wiki and I've also tried fixing the issue based on some former complaints of the same kind right here on this support desk, but to no avail. What might be causing this issue and is there any solution to fix it? │Star-Warden│ 13:30, 17 February 2017 (UTC)

What wrong?

Warning: array_key_exists(): The first argument should be either a string or an integer in/home/ckmpga/public_html/w/includes/site/SiteList.phpon line141Fatal error: Call to a member function getCanonicalServer() on null in/home/ckmpga/public_html/w/extensions/CentralAuth/includes/CentralAuthHooks.phponline1046 Murbaut (talk) 15:40, 17 February 2017 (UTC)

Manual:Shared database

Hi. Where should I put all those variables (SharedDB, SharedPrefix, etc) if I want my wikis to be linked? 186.188.144.132 (talk) 17:53, 17 February 2017 (UTC)

$wgSharedDB, $wgSharedTables and $wgSharedPrefix are configuration variables. Those belong into your LocalSettings.php file! 83.135.226.133 (talk) 09:00, 18 February 2017 (UTC)

Using wgUseInstantCommons in non-Wikimedia-wiki broken

Since this morning using images from Commons is (mostly) broken in my wiki InkluPedia.de without any changes in configuration and enough disk space. wgUseInstantCommons is set to true, installed is MediaWiki 1.28.0. Strange is, that it is not totally broken, pictures from commons appears after hours in https://inklupedia.de/wiki/Kopenhagen after purging page from cache, but all others are still broken since more than 12 hours. Any idea what I can check or what changed possibly in Commons? InkluPedia (talk) 18:43, 17 February 2017 (UTC)

As I am using local pictures too, here an example for broken pictures from commons: https://inklupedia.de/wiki/Oslo InkluPedia (talk) 18:45, 17 February 2017 (UTC)
Is that related to the fact that Commons has changed from http: URLs to https: URLs? The basic URL to Commons needs to start with https now.
Apart from that I notice that in your page, MediaWiki links to the Upload page instead of to an actual image. It obviously assumes that the image would not be there. 83.135.226.133 (talk) 19:11, 17 February 2017 (UTC)
According to InstantCommons#HTTPS : Starting June 2015, Wikimedia Commons can only be accessed using HTTPS.
So it looks like this changed already 1.5 years ago and it was working in my wiki since today. My wiki links to the upload page because it cannot find the image in commons. But the image links are correct, I have hundreds of affected articles, here are some more affected ones: https://inklupedia.de/wiki/WikiReader, https://inklupedia.de/wiki/Europa.
You can see in https://inklupedia.de/wiki/Kopenhagen and https://inklupedia.de/wiki/Europa that pictures are currently displayed, but when you click on the picture, there is no more picture page. So the thumbs comes from the cache. InkluPedia (talk) 20:25, 17 February 2017 (UTC)
I enabled now $wgDebugToolbar and see some useful errors. Here is an example for article https://inklupedia.de/wiki/Kopenhagen
  • ForeignAPIRepo: HTTP GET: https://commons.wikimedia.org/w/api.php?titles=File%3AInternet-web-browser.svg&iiprop=timestamp%7Cuser%7Ccomment%7Curl%7Csize%7Csha1%7Cmetadata%7Cmime%7Cmediatype%7Cextmetadata&prop=imageinfo&iimetadataversion=2&iiextmetadatamultilang=1&format=json&action=query&redirects=true&uselang=de
  • [http] Error fetching URL:
  • ForeignAPIRepo: HTTP GET: https://commons.wikimedia.org/w/api.php?titles=File%3AGreater_coat_of_arms_of_Copenhagen.svg&iiprop=timestamp%7Cuser%7Ccomment%7Curl%7Csize%7Csha1%7Cmetadata%7Cmime%7Cmediatype%7Cextmetadata&prop=imageinfo&iimetadataversion=2&iiextmetadatamultilang=1&format=json&action=query&redirects=true&uselang=de
  • [http] Error fetching URL:
  • ForeignAPIRepo: HTTP GET: https://commons.wikimedia.org/w/api.php?titles=File%3ACopenhagen_Collage.jpg&iiprop=timestamp%7Cuser%7Ccomment%7Curl%7Csize%7Csha1%7Cmetadata%7Cmime%7Cmediatype%7Cextmetadata&prop=imageinfo&iimetadataversion=2&iiextmetadatamultilang=1&format=json&action=query&redirects=true&uselang=de
  • [http] Error fetching URL:
  • ForeignAPIRepo: HTTP GET: https://commons.wikimedia.org/w/api.php?titles=File%3ACommons-logo.svg&iiprop=timestamp%7Cuser%7Ccomment%7Curl%7Csize%7Csha1%7Cmetadata%7Cmime%7Cmediatype%7Cextmetadata&prop=imageinfo&iimetadataversion=2&iiextmetadatamultilang=1&format=json&action=query&redirects=true&uselang=de
  • [http] Error fetching URL:
  • ForeignAPIRepo: HTTP GET: https://commons.wikimedia.org/w/api.php?titles=File%3AWikivoyage-logo.svg&iiprop=timestamp%7Cuser%7Ccomment%7Curl%7Csize%7Csha1%7Cmetadata%7Cmime%7Cmediatype%7Cextmetadata&prop=imageinfo&iimetadataversion=2&iiextmetadatamultilang=1&format=json&action=query&redirects=true&uselang=de
  • [http] Error fetching URL:
Any ideas what is the reason for this? Installed is PHP Version 7.0.15 : https://inklupedia.de/info.php InkluPedia (talk) 17:37, 27 February 2017 (UTC)
Maybe your firewall is blocking outgoing connections from your webserver, or they're prevented by SELinux if it's enabled on your server Ciencia Al Poder (talk) 10:28, 28 February 2017 (UTC)
Wiki is hosted on a managed server beyond my control. And the support from the hoster is very bad.
Strange is, that Commons usage works sometimes for some minutes, but every time when it works, 10 minutes later it will no longer work. Most of the time it is not working. Here is some output of main page https://inklupedia.de/wiki/Hauptseite related to Commons files when it was working for some minutes from debug addon:
  [MessageCache] MessageCache::load: Loading de... local cache is empty, global cache is expired/volatile, loading from database
    Unstubbing $wgLang on call of $wgLang::getDatePreferenceMigrationMap from Language->dateFormat
    ForeignAPIRepo: HTTP GET: https://commons.wikimedia.org/w/api.php?titles=File%3AMario_Sixtus_2009c.jpg&iiprop=url%7Ctimestamp&iiurlwidth=320&iiurlheight=240&iiurlparam=320px&prop=imageinfo&format=json&action=query&redirects=true&uselang=de
    ForeignAPIRepo::getThumbUrl got remote thumb https://upload.wikimedia.org/wikipedia/commons/thumb/8/82/Mario_Sixtus_2009c.jpg/135px-Mario_Sixtus_2009c.jpg
    ForeignAPIRepo::getThumbUrlFromCache Thumbnail was already downloaded before
    ForeignAPIRepo: HTTP GET: https://upload.wikimedia.org/wikipedia/commons/thumb/8/82/Mario_Sixtus_2009c.jpg/135px-Mario_Sixtus_2009c.jpg
    ForeignAPIRepo::getThumbUrlFromCache got local thumb https://upload.wikimedia.org/wikipedia/commons/thumb/8/82/Mario_Sixtus_2009c.jpg/135px-Mario_Sixtus_2009c.jpg, saving to cache
    TransformationalImageHandler::doTransform: creating 135x240 thumbnail at bogus using scaler im
    TransformationalImageHandler::doTransform: Transforming later per flags.
    Unstubbing $wgParser on call of $wgParser::firstCallInit from MessageCache->parse
    Parser: using preprocessor: Preprocessor_DOM
    ForeignAPIRepo: HTTP GET: https://commons.wikimedia.org/w/api.php?titles=File%3AMario_Sixtus_2009c.jpg&iiprop=url%7Ctimestamp&iiurlwidth=640&iiurlheight=480&iiurlparam=640px&prop=imageinfo&format=json&action=query&redirects=true&uselang=de
    ForeignAPIRepo::getThumbUrl got remote thumb https://upload.wikimedia.org/wikipedia/commons/thumb/8/82/Mario_Sixtus_2009c.jpg/270px-Mario_Sixtus_2009c.jpg
    ForeignAPIRepo::getThumbUrlFromCache Thumbnail was already downloaded before
    ForeignAPIRepo: HTTP GET: https://upload.wikimedia.org/wikipedia/commons/thumb/8/82/Mario_Sixtus_2009c.jpg/270px-Mario_Sixtus_2009c.jpg
    ForeignAPIRepo::getThumbUrlFromCache got local thumb https://upload.wikimedia.org/wikipedia/commons/thumb/8/82/Mario_Sixtus_2009c.jpg/270px-Mario_Sixtus_2009c.jpg, saving to cache
    TransformationalImageHandler::doTransform: creating 270x480 thumbnail at bogus using scaler im
    TransformationalImageHandler::doTransform: Transforming later per flags.
    ForeignAPIRepo: HTTP GET: https://commons.wikimedia.org/w/api.php?titles=File%3AMario_Sixtus_2009c.jpg&iiprop=url%7Ctimestamp&iiurlwidth=800&iiurlheight=600&iiurlparam=800px&prop=imageinfo&format=json&action=query&redirects=true&uselang=de
    ForeignAPIRepo::getThumbUrl got remote thumb https://upload.wikimedia.org/wikipedia/commons/thumb/8/82/Mario_Sixtus_2009c.jpg/337px-Mario_Sixtus_2009c.jpg
    ForeignAPIRepo::getThumbUrlFromCache Thumbnail was already downloaded before
    ForeignAPIRepo: HTTP GET: https://upload.wikimedia.org/wikipedia/commons/thumb/8/82/Mario_Sixtus_2009c.jpg/337px-Mario_Sixtus_2009c.jpg
    ForeignAPIRepo::getThumbUrlFromCache got local thumb https://upload.wikimedia.org/wikipedia/commons/thumb/8/82/Mario_Sixtus_2009c.jpg/337px-Mario_Sixtus_2009c.jpg, saving to cache
and so on. Is this a possible problem with local cache? How can I check / fix this? I cannot run maintenance scripts that will run more than some minutes because of managed hosting where I have no root access. InkluPedia (talk) 17:03, 28 February 2017 (UTC)
Maybe the firewall has some throttling and if several images are requested in a small period, then further connections are banned during some time... just guessing. The error message just tells about a connectivity problem, so there are many options here. Ciencia Al Poder (talk) 22:07, 28 February 2017 (UTC)

Is it possible to use redis cluster with $wgJobTypeConf & $wgJobQueueAggregator?

So the usual setting would be:

$redisPassword = '<password goes here>'; $wgJobTypeConf['default'] = array( 'class' => 'JobQueueRedis', 'order' => 'fifo', 'redisServer' => 'localhost', 'checkDelay' => true, 'redisConfig' => array( 'password' => $redisPassword, ), ); $wgJobQueueAggregator = array( 'class' => 'JobQueueAggregatorRedis', 'redisServer' => 'localhost', 'redisConfig' => array( 'password' => $redisPassword, ), );

(from https://github.com/wikimedia/mediawiki-extensions-CirrusSearch )

However, we don't have large enough ram to store job all in one redis instant. We tried to set it as "'redisServerArr' => array( 'redis1:6379', 'redis2:6379', 'redis3:6379' ),"

But receive lots of error message like: substr() expects parameter 1 to be string, array given in /includes/libs/redis/RedisConnectionPool.php on line 213

We also tried 'redisServer' => 'redis1:6379', However, this setting give us PHP Notice:  JobQueueGroup::__destruct: 1 buffered job(s) of type(s) RefreshLinksJob never inserted. in /includes/jobqueue/JobQueueGroup.php on line 449

Is redis cluster not supported for Jobqueue? Deletedaccount4567435 (talk) 22:12, 17 February 2017 (UTC)

Display the newest page in category

I want the link and title to the latest page within a category automatically displayed on an article. How do I need to go about that? Or what extension do I need to use for that? Innosflew (talk) 00:25, 18 February 2017 (UTC)

How to load alternative common.less in Vector skin

I want to be able to load an alternative common.less file (common.less is part of Vector). However it's very unclear to me how the skins are loading the .less files listed in skin.json?

Is there any way to make it switch, based on the originating IP address, such that it will load common_test.less instead of common.less under certain circumstances? 52.9.166.178 (talk) 01:51, 18 February 2017 (UTC)

It depends on what you want to achieve:
You should not edit the files of the Vector skin as this will make updating MediaWiki harder than needed. Instead, you can use different wiki pages in your wiki to adjust the design of the wiki. These pages are named and described on Manual:Interface/Stylesheets.
You could create a wiki page named User:Example/Vector.css with "Example" replaced by your actual username. On that page you can then put styles and rules, e.g. rules for testing, which should be in effect for your account.
If the rules should during testing not only be in effect for one user, but for multiple users, I could also imagine that you create a new user group for the users, who should see the styles for testing. Let's say this group would be called "test". Then you add the according users, who should be in that group, to user group "test".
More information on how to work with user groups is on Manual:User rights!
And you create the wiki page MediaWiki:Group-test.css and put your rules there! 83.135.226.133 (talk) 08:57, 18 February 2017 (UTC)

log out

how can i log out from wiki Poonam2180 (talk) 10:02, 18 February 2017 (UTC)

Visit Special:Userlogout. Mainframe98 talk 10:09, 18 February 2017 (UTC)

Sinim Lodge Page

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


I am the current Junior Warden for Sinim Lodge and I would like to make a few changes to the Sinim page. How can I do this? I am unable to make an account. 115.176.222.158 (talk) 13:08, 18 February 2017 (UTC)

Please delete this thread, I have figured things out. MichaelSinim (talk) 13:20, 18 February 2017 (UTC)
The discussion above is closed. Please do not modify it. No further edits should be made to this discussion.

Single quotes in title seem to send Mediawiki in a redirect loop

https://www.pchr8.net/f/index.php/Betteridge%27s_law_of_headlines_-_Wikipedia For example, here.

I see that multiple consecutive apostrophes are not allowed: https://en.wikipedia.org/wiki/MediaWiki:Titleblacklist-forbidden-apostrophes

This seems to happen in all browsers, even curl, and with single quotes too; a relevant bug is here: https://phabricator.wikimedia.org/T106793

MediaWiki 1.27.1
PHP 5.6.30-nfsn1 (NFGI)
MariaDB 5.3.12-MariaDB
ICU 57.1

Any ideas? Pchr8 (talk) 14:11, 18 February 2017 (UTC)

Fixed in 1.27.2 but nobody knows when it will be released... see T106793 Ciencia Al Poder (talk) 15:13, 18 February 2017 (UTC)

Please helpme I can't merge account

[WKh3KCIHZHYk6Nd7FZdCPQAAAEI] /w/index.php?title=Istimewa:Gabungkan_akun
Exception from line 516 of .../w/extensions/CentralAuth/includes/specials/SpecialMergeAccount.php: Invalid wiki: ckmpga_wiki-A_
Backtrace:
#0 .../w/extensions/CentralAuth/includes/specials/SpecialMergeAccount.php(495): SpecialMergeAccount->foreignUserLink(string)
#1 [internal function]: SpecialMergeAccount->listWikiItem(string, string)
#2 .../w/extensions/CentralAuth/includes/specials/SpecialMergeAccount.php(480): array_map(array, array, array)
#3 .../w/extensions/CentralAuth/includes/specials/SpecialMergeAccount.php(460): SpecialMergeAccount->formatList(array, array, array)
#4 .../w/extensions/CentralAuth/includes/specials/SpecialMergeAccount.php(442): SpecialMergeAccount->listWikis(array, array)
#5 .../w/extensions/CentralAuth/includes/specials/SpecialMergeAccount.php(415): SpecialMergeAccount->listAttached(array)
#6 .../w/extensions/CentralAuth/includes/specials/SpecialMergeAccount.php(382): SpecialMergeAccount->showStatus(array, array)
#7 .../w/extensions/CentralAuth/includes/specials/SpecialMergeAccount.php(115): SpecialMergeAccount->showCleanupForm()
#8 .../w/extensions/CentralAuth/includes/specials/SpecialMergeAccount.php(102): SpecialMergeAccount->showFormForExistingUsers(CentralAuthUser)
#9 .../w/includes/specialpage/SpecialPage.php(522): SpecialMergeAccount->execute(NULL)
#10 .../w/includes/specialpage/SpecialPageFactory.php(576): SpecialPage->run(NULL)
#11 .../w/includes/MediaWiki.php(283): SpecialPageFactory::executePath(Title, RequestContext)
#12 .../w/includes/MediaWiki.php(851): MediaWiki->performRequest()
#13 .../w/includes/MediaWiki.php(512): MediaWiki->main()
#14 .../w/index.php(43): MediaWiki->run()
#15 {main}

Murbaut (talk) 16:38, 18 February 2017 (UTC)

mediawiki v 1.28 (stable), new issue Murbaut (talk) 16:39, 18 February 2017 (UTC)
anyone? 157.185.130.2 (talk) 23:56, 3 January 2018 (UTC)
You're running into a problem with the wikis you're using CentralAuth on: "Invalid wiki: ckmpga_wiki-A_"
Does that look like any wiki you have? MarkAHershberger(talk) 15:54, 4 January 2018 (UTC)
yes, that the db name of wiki I have Murbaut (talk) 17:06, 5 January 2018 (UTC)
This error is happening here: https://github.com/wikimedia/mediawiki-extensions-CentralAuth/blob/aa0cb394128d84441b436ab130fc3070f03cb4ba/includes/specials/SpecialMergeAccount.php#L524
Obviously, WikiMap::getWiki( $wikiID ); is not returning the right result in your case... Jörgi123 (talk) 18:25, 5 January 2018 (UTC)

Move wiki to another server problem

Hello,

i have follow: Manual:Moving a wiki but images doesn't display and i don't have template loaded... Login impossible (error 500)) Special page not found

/var/www/wiki (www-data:www-data)

nginx -V
nginx/1.10.3
built by gcc 4.9.2 (Debian 4.9.2-10)
built with OpenSSL 1.0.1t 3 May 2016
TLS SNI support enabled
configure arguments: --prefix=/etc/nginx --sbin-path=/usr/sbin/nginx --modules-path=/usr/lib/nginx/modules --conf-path=/etc/nginx/nginx.conf --error-log-path=/var/log/nginx/error.log --http-log-path=/var/log/nginx/access.log --pid-path=/var/run/nginx.pid --lock-path=/var/run/nginx.lock --http-client-body-temp-path=/var/cache/nginx/client_temp --http-proxy-temp-path=/var/cache/nginx/proxy_temp --http-fastcgi-temp-path=/var/cache/nginx/fastcgi_temp --http-uwsgi-temp-path=/var/cache/nginx/uwsgi_temp --http-scgi-temp-path=/var/cache/nginx/scgi_temp --user=nginx --group=nginx --with-file-aio --with-threads --with-ipv6 --with-http_addition_module --with-http_auth_request_module --with-http_dav_module --with-http_flv_module --with-http_gunzip_module --with-http_gzip_static_module --with-http_mp4_module --with-http_random_index_module --with-http_realip_module --with-http_secure_link_module --with-http_slice_module --with-http_ssl_module --with-http_stub_status_module --with-http_sub_module --with-http_v2_module --with-mail --with-mail_ssl_module --with-stream --with-stream_ssl_module --with-cc-opt='-g -O2 -fstack-protector-strong -Wformat -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fPIC' --with-ld-opt='-Wl,-z,relro -Wl,-z,now -Wl,--as-needed -pie'

php -v
PHP 5.6.30-0+deb8u1 (cli) (built: Feb 8 2017 08:50:21)
Copyright (c) 1997-2016 The PHP Group
Zend Engine v2.6.0, Copyright (c) 1998-2016 Zend Technologies
    with Zend OPcache v7.0.6-dev, Copyright (c) 1999-2016, by Zend Technologies

nginx.conf:

user www-data;
worker_processes 2;
pid /var/run/nginx.pid;

events {
    worker_connections 1024;
    use epoll;
}

http {
	limit_conn_zone $binary_remote_addr zone=conn_limit_per_ip:10m;
	limit_req_zone $binary_remote_addr zone=req_limit_per_ip:10m rate=5r/s;
	
	include /etc/nginx/mime.types;
    default_type  application/octet-stream;

    access_log /var/log/nginx/access.log combined;
    error_log /var/log/nginx/error.log error;
    server_names_hash_bucket_size 64;
    sendfile on;
    keepalive_timeout 15;
    keepalive_disable msie6;
    keepalive_requests 100;
    tcp_nopush on;
    tcp_nodelay on;
    server_tokens off;

    gzip on;
    gzip_comp_level 5;
    gzip_min_length 512;
    gzip_buffers 4 8k;
    gzip_proxied any;
    gzip_vary on;
    gzip_disable "msie6";
    gzip_types
        text/css
        text/javascript
        text/xml
        text/plain
        text/x-component
        application/javascript
        application/x-javascript
        application/json
        application/xml
        application/rss+xml
        application/vnd.ms-fontobject
        font/truetype
        font/opentype
        image/svg+xml;

    include /etc/nginx/sites-enabled/*.conf;
	
	server {
		limit_conn conn_limit_per_ip 10;
		limit_req zone=req_limit_per_ip burst=10 nodelay;
	}
}

wiki.conf:

server {
    server_name wiki-tanki.changeip.net;
    root /var/www/wiki;

    client_max_body_size 10m;
    client_body_timeout 60;
	
    index  index.php index.html index.htm;
	
	access_log /var/log/nginx/wiki-access.log combined;
	error_log /var/log/nginx/wiki-error.log error;
	
	error_page 500 502 503 504 /50x.html;
	location = /50x.html { root /usr/share/nginx/html; }
	
	location = /favicon.ico {
		access_log off;
		log_not_found off;
	}
	
	location / {
        try_files $uri $uri/ @rewrite;
    }

    location @rewrite {
        rewrite ^/(.*)$ /index.php?title=$1&$args;
    }

    location ^~ /maintenance/ {
        return 403;
    }

    location ~ \.php$ {
    #location ~ \.php(/|$) {
            # Unmodified fastcgi_params from nginx distribution.
            include fastcgi_params;
            # Necessary for php.
            fastcgi_split_path_info ^(.+\.php)(/.*)$;
            fastcgi_param PATH_INFO $fastcgi_path_info;
            fastcgi_param SCRIPT_FILENAME $realpath_root$fastcgi_script_name;
            fastcgi_param DOCUMENT_ROOT $realpath_root;
            fastcgi_pass unix:/var/run/php5-fpm.sock;

	}
    location ~* \.(js|css|png|jpg|jpeg|gif|ico)$ {
        try_files $uri /index.php;
        expires max;
        log_not_found off;
    }

    location = /_.gif {
        expires max;
        empty_gif;
    }

    location ^~ /cache/ {
        deny all;
    }

    location /dumps {
        root /var/www/wiki/local;
        autoindex on;
    }

    # BEGIN W3TC Browser Cache
    gzip on;
    gzip_types text/css application/x-javascript text/x-component text/richtext image/svg+xml text/plain text/xsd text/xsl text/xml image/x-icon;
    location ~ \.(css|js|htc)$ {
        expires 31536000s;
        add_header Pragma "public";
        add_header Cache-Control "public, must-revalidate, proxy-revalidate";
        add_header X-Powered-By "W3 Total Cache/0.9.2.4";
    }
 
    location ~ \.(html|htm|rtf|rtx|svg|svgz|txt|xsd|xsl|xml)$ {
        expires 3600s;
        add_header Pragma "public";
        add_header Cache-Control "public, must-revalidate, proxy-revalidate";
        add_header X-Powered-By "W3 Total Cache/0.9.2.4";
    }
 
    location ~ \.(asf|asx|wax|wmv|wmx|avi|bmp|class|divx|doc|docx|eot|exe|gif|gz|gzip|ico|jpg|jpeg|jpe|mdb|mid|midi|mov|qt|mp3|m4a|mp4|m4v|mpeg|mpg|mpe|mpp|otf|odb|odc|odf|odg|odp|ods|odt|ogg|pdf|png|pot|pps|ppt|pptx|ra|ram|svg|svgz|swf|tar|tif|tiff|ttf|ttc|wav|wma|wri|xla|xls|xlsx|xlt|xlw|zip)$ {
        expires 31536000s;
        add_header Pragma "public";
        add_header Cache-Control "public, must-revalidate, proxy-revalidate";
        add_header X-Powered-By "W3 Total Cache/0.9.2.4";
        try_files $uri $uri/ @rewrite;
    }
    # END W3TC Browser Cache
	
}
MediaWiki 1.28.0
PHP PHP 5.6.30-0+deb8u1 (cli)
Nginx nginx/1.10.3

Thanks for help me Owned67 (talk) 00:09, 19 February 2017 (UTC)

Nobody can help me? :( Owned67 (talk) 00:58, 21 February 2017 (UTC)
Images not displayed may be a problem with URLs, either you changed the public access path of your wiki (from /w to /wiki or similar) and you haven't updated LocalSettings.php, or nginx is not properly configured.
You should compare LocalSettings.php and nginx configuration from both servers and check what has changed. Ciencia Al Poder (talk) 10:07, 21 February 2017 (UTC)
Path wiki is correctly set.
LocalSettings => updated
Can't check form both server, i don't have access to old server. Nginx conf posted... Owned67 (talk) 13:56, 21 February 2017 (UTC)
I have tested your configuration and I could reproduce the problem that images were no longer loaded.
In my case, the location ~* \.(js|css|png|jpg|jpeg|gif|ico)$ {} and the location ~ \.(asf|asx|.....) {} blocks caused this problem. After I removed these two blocks, images showed up again. 2003:72:6D7B:EF00:4860:FF3F:DD59:A725 (talk) 06:47, 24 June 2017 (UTC)

1910's idea on legibility

I have read the Swedish design company 1910's blog post before trying this Userstyles script, and so far, I like it.

I think the legibility of Wikipedia (and other Wikimedia sites) actually depends on how a MediaWiki skin is designed. So, why don't you let the team at 1910 to design a MediaWiki skin (with some tweaks from their original suggestion), and let the users at all the Wikimedia sites to try it? JSH-alive (talk) 11:04, 19 February 2017 (UTC)

There is nothing to "allow". Mediawiki is open source, anyone can design a MediaWiki skin.
Regarding the skin ending up being used by "all the Wikimedia sites", that is probably decided by a lengthy public voting process. AhmadF.Cheema (talk) 12:48, 19 February 2017 (UTC)
Okay. I better convince them on my own. JSH-alive (talk) 14:55, 26 February 2017 (UTC)

Is it possible to deliver stale content to login user with Varnish?

Hello,

I am trying to server anonymous cached page to login user when back-end down.

So I have read this page Manual:Varnish caching and set up Varnish fro Mediawiki successfully. However the back end were not very stable, especially when high traffic comming in suddenly. Based on this article: CONFIGURE SAINT MODE & GRACE IN VARNISH 4.1, I got the grace mode work for anonymous user. However, due to the fact that login user will pass to back-end. I can't server anonymous page to login user.

if (req.http.Authorization || req.http.Cookie ~ "session" || req.http.Cookie ~ "Token") { return (pass); } #(varnish sitting cite from Manual:Varnish caching)

How should I do to achive this goal?

Thank you! Deletedaccount4567435 (talk) 16:44, 19 February 2017 (UTC)

Does Libre Office have an email client? e.g. Microsoft outlook or outlook express.

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 compile a new SSD drive for my mothers computer, which has crashed. She lives in a different state to me so I need to know what is going to be simple enough for her (74 yrs old), I am installing Windows 7 for her as windows 10 confused the hell out of her. She is not very computer literate . A friend told me about Libre Office and after downloading and installing it , it seems quite good. However, it does not seem to include an email client as a replacement for Outlook or Outlook Express. Is there something that you have or can recommend that is compatible to Libre Office. Please advise ASAP as she has been without her computer for nearly two months now. Kevencraig59 (talk) 03:09, 20 February 2017 (UTC)

Hi. You are asking this at the wrong place. MediaWiki is used for documentation of wiki-related functions, not general support for computer software. Tropicalkitty (talk) 04:13, 20 February 2017 (UTC)
The discussion above is closed. Please do not modify it. No further edits should be made to this discussion.

Is there a way create a file for upload to create mutiple pages with the page name and just a line of basic text in a flat file or other type of basic database file.

Looking to quickly create multiple pages to a new wiki I am working on. Thanks in advance for any suggestions or help. 97.96.38.101 (talk) 06:25, 20 February 2017 (UTC)

Hown to have the same usernames on different wikis?

Without making wiki farms. Basically how Wikipedia is like. If you don't understand what I am saying: For example, my Wikipedia user and mediawiki user is the same exact. If I get a notification on mediawiki and I amust on Wikipedia, a notification for it will show. Kianlolcat99 (talk) 06:41, 20 February 2017 (UTC)

Probably something to do with Extension:OAuth and Extension:OAuthAuthentication. AhmadF.Cheema (talk) 09:46, 20 February 2017 (UTC)
Extension:CentralAuth AKlapper (WMF) (talk) 09:50, 20 February 2017 (UTC)
AKlapper Should I do it with a wikifarm, or no? Kianlolcat99 (talk) 17:37, 20 February 2017 (UTC)

where is create image button???

where is create image button??? 47.203.49.96 (talk) 11:33, 20 February 2017 (UTC)

You need to register to be able to upload files. It is located on the left sidebar. Kizule (talk) 23:04, 20 February 2017 (UTC)

trying to use gimp but keep sending me to other programs

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


trying to use gimp but keeping sent to other sites like this one. pls help a granny 47.203.49.96 (talk) 11:36, 20 February 2017 (UTC)

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

New install of MediaWiki 1.28 on Ubuntu 16.04. Permissions for /var/www/html set to 755, owned by me user:www-data.

Did a Download from Git install, before and after doing composer install, the file and directory permissions are readable and writable but not executable for group. Should I set them to 755 manually? Tommy H (talk) 13:44, 20 February 2017 (UTC)

In your MediaWiki directory, the following SSH commands should work:
find . -type f -exec chmod 644 {} \;
find . -type d -exec chmod 755 {} \;
AhmadF.Cheema (talk) 22:09, 26 February 2017 (UTC)

What is the difference between CentralAuth and a Shared Data Base

Please make the explanation simple. I read the pages, and I think I do know what are the differences, but I am not 100 percent sure however. Please explain it as simple as possible. Thank you. Kianlolcat99 (talk) 17:34, 20 February 2017 (UTC)

How to resolve a database access problem during installation?

Hi everyone,

I'd like to install mediawiki on my website but there seems to be a problem with access to the database with this error message:

[WKtAdgp*********4AwMAA********ABH] /mw-config/index.php?page=Install DBQueryError from line 1054 of /home/****/wiki/includes/libs/rdbms/database/Database.php: A database query error has occurred. Did you forget to run your application's database schema updater after upgrading?

Query: CREATE DATABASE `********`CHARACTER SET utf8

Function: MysqlInstaller::setupDatabase

Error: 1044 Access denied for user '******'@'********* to database '********* (localhost)

I am sure all the details I provided during the installation are accurate, so I don't understand where the problem could come from. Anyone could help me to understand what's going on, please?

Thank you in advance. 2A02:A03F:2810:6700:39D1:6BDA:A83B:EAAB (talk) 19:23, 20 February 2017 (UTC)

The error
Query: CREATE DATABASE `********`CHARACTER SET utf8
> Error: 1044 Access denied for user ... to database ...
means that the user is not allowed to access this database.
A workaround could be to first create a new database in MySQL (or via PHPMyAdmin if you are using this software) and to grant user rights to your MySQL user. After this, provide the credentials of that MySQL user and point the MediaWiki installer to this existing, empty database. 83.135.235.78 (talk) 00:00, 9 April 2017 (UTC)

Help me for pywiki

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 to (on example) word test (on all pages) comes rename on Test2 (on example)? I do not think the rename page, but on changing the word in the text? Kizule (talk) 23:14, 20 February 2017 (UTC)

Extension:Replace Text? Ciencia Al Poder (talk) 10:13, 21 February 2017 (UTC)
@Ciencia Al Poder Thank you! I close topic Kizule (talk) 11:35, 21 February 2017 (UTC)
The discussion above is closed. Please do not modify it. No further edits should be made to this discussion.

How to copy and start a new wiki

I want to create another wiki on my own server, setting is almost the same, just need to connect to another database and a new website name, therefore I want to copy the PHP files to another folder, export the table to another database, but the artiblce content will be new, is there a way to reset the table or which table should I truncate. Chan15tw (talk) 03:29, 21 February 2017 (UTC)

You want to create a new wiki on your server, maintaining the existing one, so both are accessible, or just delete the current one and start from scratch?
If both should coexist, what kind of data you want to share between them (because you say to "copy" content but not article pages)?
If you have 2 subdomains, it's easy to define both to have the same document root, pointing to the same installation, and in LocalSettings set specific wiki-specific settings based on the host, but in any case you can also duplicate the installation files, having one for each wiki (which is probably easier to do if you have few wikis). You can share things like the user table, or images. See Manual:Wiki family Ciencia Al Poder (talk) 10:18, 21 February 2017 (UTC)

CAS update failed?

In MW 1.27, since I use this command "ChangePassword.php" and try to reset password for one of my user. The password changed, but I start to get following error when any of user is trying to modify password or e-mail by Wiki system page:

[2563eeb90d75b862e14660c8] /index.php?title=%E7%89%B9%E6%AE%8A:ChangeCredentials/MediaWiki%5CAuth%5CPasswordAuthenticationRequest&returnto=%E7%89%B9%E6%AE%8A%3A%E5%81%8F%E5%A5%BD%E8%A8%AD%E5%AE%9A MWException from line 3795 of /var/lib/mediawiki/includes/user/User.php: CAS update failed on user_touched for user ID '55' (read from slave); the version of the user to be saved is older than the current version.
Backtrace:
#0 /var/lib/mediawiki/includes/session/SessionManager.php(306): User->saveSettings()
#1 /var/lib/mediawiki/includes/specials/SpecialChangeCredentials.php(219): MediaWiki\Session\SessionManager->invalidateSessionsForUser(User)
#2 /var/lib/mediawiki/includes/specials/SpecialChangeCredentials.php(107): SpecialChangeCredentials->success()
#3 /var/lib/mediawiki/includes/specialpage/SpecialPage.php(479): SpecialChangeCredentials->execute(string)
#4 /var/lib/mediawiki/includes/specialpage/SpecialPageFactory.php(576): SpecialPage->run(string)
#5 /var/lib/mediawiki/includes/MediaWiki.php(282): SpecialPageFactory::executePath(Title, RequestContext)
#6 /var/lib/mediawiki/includes/MediaWiki.php(745): MediaWiki->performRequest()
#7 /var/lib/mediawiki/includes/MediaWiki.php(519): MediaWiki->main()
#8 /var/lib/mediawiki/index.php(43): MediaWiki->run()
#9 {main}

I cannot fix this after lots of study, pls kindly help...Thanks JHK (talk) 07:39, 21 February 2017 (UTC)

See https://phabricator.wikimedia.org/T95839 and https://phabricator.wikimedia.org/T150373 for potential technical background information on the software bug itself. AKlapper (WMF) (talk) 13:50, 21 February 2017 (UTC)
Yes, I've seen these two pages for many times. But I still don't know how to fix it. JHK (talk) 14:59, 21 February 2017 (UTC)
After updating from 1.26 to 1.30 on one of our many wikis we are now also experiencing this problem. Is there any "solution" ? I am quite sure this is related to the current config of php5 / apache2 / debian on our side but I do not know where to look! SmartK (talk) 08:27, 14 February 2018 (UTC)
I just noticed: when I disable the "LastUserLogin" extension this problem is gone. SmartK (talk) 10:09, 14 February 2018 (UTC)
The extension is unmaintained and it has several issues looking at its talk page. You probably should avoid using it. Ciencia Al Poder (talk) 10:22, 14 February 2018 (UTC)
I will talk to the programmer, I am sure we will update it... SmartK (talk) 11:18, 14 February 2018 (UTC)
Just for information, i had now the same issue, and it was solved disabling "LastUserLogin" extension 187.59.32.205 (talk) 15:21, 16 May 2020 (UTC)
I had a similar issue in media wiki 1.34 when I try to change my password after logging in. Th error went away after disabling "LastUserLogin" extension. Charithao (talk) 17:13, 23 July 2020 (UTC)

In our wiki, are emerging errors that are solved at time alone which generates mistrust in the tool, for example (required pages did not appear the pages not created nor when creating them disappeared from the list)

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


No se porque sucede pero al tiempo se solucionan solos los errores, desearia que me apoyaran 201.234.190.154 (talk) 15:18, 21 February 2017 (UTC)

Empieza describiendo detalladamente el problema, pasos para reproducirlo, y si el wiki es público dar un enlace al mismo. Ciencia Al Poder (talk) 10:28, 22 February 2017 (UTC)
Mira, el problema fue mas que todo el de las paginas requeridas que al crear un link inexistente se debería sumar a la lista de las "Paginas Requeridas" pero no funcionaba, ni tampoco cuando creábamos la pagina de esos links inexistentes se eliminaba de la lista de las "Paginas Requeridas", ese fue el problema básicamente el cual estuve investigando y no halle respuesta alguna, al otro día revise la Wiki y ya no estaba el problema; esa es mi pregunta, ¿Por que se soluciono solo?
(la Wiki es privada)
De antemano gracias. 201.234.190.154 (talk) 13:10, 22 February 2017 (UTC)
El resultado de esas páginas se encuentra en caché (como bien debería advertir un mensaje al inicio de la página especial) y se actualizan cuando se ejecuta el script updateSpecialPages.php. Ciencia Al Poder (talk) 20:26, 22 February 2017 (UTC)
Entonces, ¿se actualiza cada vez que tenga un error? 201.234.190.154 (talk) 20:48, 22 February 2017 (UTC)
En principio su actualización es únicamente cuando se ejecuta el script antes mencionado. Si tienes programado en un proceso cron la ejecución diariamente, o lo ejecutas de forma manual, entonces será en ese momento cuando los datos se actualizarán, hasta entonces seguirá mostrando lo mismo que la última vez que se ejecutó (posiblemente tachando algunos de los títulos que fueron corregidos desde la última ejecución). Tendría que revisarlo de nuevo, pero diría que no hay otra forma de que se actualice automáticamente esas páginas si no es por medio del script (y por lo menos nuestra documentación no lo menciona) Ciencia Al Poder (talk) 10:40, 23 February 2017 (UTC)
The discussion above is closed. Please do not modify it. No further edits should be made to this discussion.

Unable to continue login. Your session most likely timed out.

This is a strange one.

Background: We have a Mediawiki instance for internal (engineering-related) documentation. It's behind a VPN and uses the LDAP Authentication plugin. Mediawiki version 1.28.0, PHP version 5.6.29, MariaDB version 10.1.20-MariaDB-1~jessie. I assume that PHP is using 100% default settings because I did not write a php.ini and indeed cannot even find one.

Problem: Most of the time, when I try to log in, it fails, and I get an error message stating, "Unable to continue login. Your session most likely timed out." Attempting to log in again does not work and simply yields the same error. What's weird is that once in a while it works and I can log in. Further, I am the one who set up and manages this wiki and out of hundreds of users, I appear to be the only one with this problem or I would have definitely heard about it by now.

This happens under Chromium 55.0.2883.87. I have tried disabling all extensions. I have tried removing all cookies and local data for the wiki domain multiple times. It even happens in incognito mode. No issues with Firefox but that is not my daily browser and don't need to have yet another browser window open all the time. I have verified that the both server time and local time are correct.

I highly appreciate any and all suggestions. 2620:11E:1000:120:3EA9:F4FF:FE85:CA50 (talk) 17:16, 21 February 2017 (UTC)

i am facing the same issue with 1.29,
i addition i have errors showing up in create account and log in page.
i have been unable to resolve this problem.
ckusro.com 139.167.5.221 (talk) 11:29, 20 July 2017 (UTC)
So no other users are experiencing this error, only you? Reception123 (talk) 11:59, 20 July 2017 (UTC)
I'm also facing this error! after 6 years. Maruf (talk) 03:04, 24 December 2023 (UTC)
See Manual:How to debug/Login problems Malyacko (talk) 02:06, 30 December 2023 (UTC)

Need to restrict editing to a few logged in users

I have been handed a media-wiki (ver 1.25) webserver as a part of a project I took on from an employee who left the company. I don't believe he had much knowledge of setting this thing up other than what the software did at the initial install time. It requires you to login, using the company-wide active directory authentication, but after one logs in, it is free for all as far as editing goes. Even though it is against the idea of wiki, I need to restrict this editing capability to only a handful of people, due to the critical nature of information on this website. This site is intranet only and have no Internet facing parts, if it makes any difference.

On my own, I have researched quite a bit and found the file /var/www/html/includes/DefaultSettings.php and found the section where lines starting with $wgGroupPermissions, followed by some rules, but I could not figure out how to change these lines and how to add people (AD UserIDs) to the groups mentioned, or create new groups if necessary. I need either a document, explaining how this is accomplished step-by-step, or need a light hand-holding as I am a wikimedia beginner.

Thanks in advance Nomad63 (talk) 19:33, 22 February 2017 (UTC)

See Manual:User rights. Also, 1.25 is an ancient unsupported version that is nowadays full of security issues. Please update: Download. Malyacko (talk) 09:46, 23 February 2017 (UTC)
Thank you for your response. I know it might be an old version but this version came bundled in the tool a vendor provided to us and doing an upgrade on my own, may jeopardize the supportability pf the tool. Hence, even though as much as I want to, I can not upgrade/update wikimedia. My saving grace is, tool is not internet facing and only can be accessed by internal people, who should login to their AD accounts to make any changes to the wiki pages.
Having said that, I have read the userrights manual pages, promoted my user id to bureucrat (spelling ??) level. But after that, what I tried to do, did not seem to take a foothold.
Here is what I did:
[snippet below is from the current "DefaultSettings.php" file:]
/** @cond file_level_code */
// Implicit group for all visitors
$wgGroupPermissions['*']['createaccount'] = true;
$wgGroupPermissions['*']['read'] = true;
$wgGroupPermissions['*']['edit'] = false;
$wgGroupPermissions['wikiadm']['edit'] = true; <<--this is the line I added
$wgGroupPermissions['*']['createpage'] = true;
$wgGroupPermissions['*']['createtalk'] = true;
$wgGroupPermissions['*']['writeapi'] = true;
$wgGroupPermissions['*']['editmyusercss'] = true;
$wgGroupPermissions['*']['editmyuserjs'] = true;
$wgGroupPermissions['*']['viewmywatchlist'] = true;
$wgGroupPermissions['*']['editmywatchlist'] = true;
$wgGroupPermissions['*']['viewmyprivateinfo'] = true;
$wgGroupPermissions['*']['editmyprivateinfo'] = true;
$wgGroupPermissions['*']['editmyoptions'] = true;
#$wgGroupPermissions['*']['patrolmarks'] = false; // let anons see what was patrolled
The line I pointed is what I added. And using "https://tool.mycorp.com/index.php?title=Special:UserRights" page, I made my user id a member of this group. By my understanding of lines prior to my addition, I was under the impression that every each group's members are able to read but not able to edit. Lo and behold, my next cubicle coworker, who has no relation to this tool, was able to open a page, click edit and was presented with the editor panel immediately. And yes I have restarted the apache2 instance after making all these changes.
What am I doing wrong here ? Nomad63 (talk) 22:07, 28 February 2017 (UTC)
Logged in users also have the edit permission by default. 2002:43F4:3186:1234:80E0:308E:A7D:E52F (talk) 23:36, 28 February 2017 (UTC)
$wgGroupPermissions['user']['edit'] = false;
Also note that changes should be made in LocalSettings.php and not in DefaultSettings.php, in case you ever upgrade your wiki, your modifications to DefaultSettings.php will be lost. Ciencia Al Poder (talk) 10:23, 1 March 2017 (UTC)
Doesn't the line
$wgGroupPermissions['*']['edit'] = false;
encompass the group 'user' ? I mean, does the line you mention, have to be there explicitly ? If yes, could you possibly tell me why ? Nomad63 (talk) 16:37, 1 March 2017 (UTC)
The line has to be there.
The reason is that group * contains _all_ users of the wiki, even those, who are _not_ logged in.
Group user on the other hand does only contain those users, who _are_ logged in. So you could take edit right away from group * and grant it to group user. This would effectively disallow editing for anonymous users while it still allows editing for those users, who are logged in. 87.123.250.183 (talk) 16:59, 1 March 2017 (UTC)
Btw, Manual:User_rights#List_of_groups has a list of user groups. These groups are available in your MediaWiki installation by default.
With a line like
$wgGroupPermissions['wikiadm']['edit'] = true;
you effectively create a new user group called "wikiadm" and give the edit right to the members of this group. By default however, there are exactly no users in this group. Maybe it is a better idea to stick with the user groups, which are defined by default and to only use those for the beginning? All wiki administrators for example by default are in the group called sysop. So maybe this is what you want to add to the bottom of your LocalSettings.php file:
$wgGroupPermissions['*']['edit'] = false;
$wgGroupPermissions['user']['edit'] = false;
$wgGroupPermissions['sysop']['edit'] = true; 87.123.250.183 (talk) 17:03, 1 March 2017 (UTC)

URLs to Uploaded Files are Being Unintentionally Redirected

Hello all:

I have a MediaWiki installation--viewable at "http://www.alecexposed.org/"--that is running MediaWiki 1.27.1, PHP 5.6.27 and MySQL 5.1.56, and have come across a couple of issues that have me stumped.

1. The URLs to some of the uploaded files are redirecting improperly when accessed without the "www." prefix. For example, when I click on http://alecexposed.org/w/images/c/c8/1R10-Right_to_Work_Act_Exposed.pdf, the "www." prefix is appended, as intended, but the "w/images/" portion is being stripped from the URL.

I have no clue why this is happening, given the current .htaccess file, the contents of which follow:

RewriteEngine On

RewriteCond %{HTTP_HOST} ^alecexposed\.org$ [NC]

RewriteRule ^(.*)$ http://www.alecexposed.org/$1 [L,R=301]

RewriteRule ^/?wiki/(.*)$ /w/index.php?title=$1 [PT,L,QSA]

RewriteRule ^/?wiki/*$ /w/index.php [L,QSA]

RewriteRule ^/*$ /w/index.php [L,QSA]

2. Additionally, it appears that some of the uploaded files are not searchable within the list of uploaded files (http://www.alecexposed.org/wiki/Special:ListFiles), despite the fact that they do appear in the list. I ran rebuildtextindex.php to rebuild the search index but it did not fix the problem.

I'm not sure if these two issues are related or it's just a coincidence that they are occurring simultaneously.

Any assistance you can give me is greatly appreciated.

Thank you! Jordan Barden (talk) 20:56, 22 February 2017 (UTC)

there must be another .htaccess somewhere. Is this one the .htaccess inside the /images folder? in this case, it may be this:
RewriteRule ^(.*)$ http://www.alecexposed.org/$1 [L,R=301]
Although it's a bit strange because this one will append the whole URL at the end of the server name. The [L] will skip processing the rest of the rewrite rules. Ciencia Al Poder (talk) 10:46, 23 February 2017 (UTC)

Load Balancing issue

I Setup a mediawiki in my company, and we think load balancing is needed, but I don't known how to deal with the image, is there a extension can help me fix this issue. If you notice this issue, please help me, thanks very much! Wang.carl (talk) 02:47, 23 February 2017 (UTC)

Conexion con Active Directory

Hola,

Mi pregunta es: ¿se puede conectar Wiki con el directorio activo de microsoft (ldap) ?, he estado investigando e implementando varias extensiones y métodos y ninguno me ha dado solución, ¿me pueden ayudar?....

De antemano gracias. Jcanos (talk) 17:52, 23 February 2017 (UTC)

Existe Extension:LDAP Authentication. Si necesitas ayuda puede ser más conveniente escribir en inglés porque apenas hay usuarios de habla hispana por aquí y yo personalmente no uso LDAP. Ciencia Al Poder (talk) 21:45, 23 February 2017 (UTC)
Esta bien, voy a revisar la extension, y si es verdad deberia ser en ingles, Gracias... Jcanos (talk) 22:03, 23 February 2017 (UTC)

Hide page title

Hi. I'd like to know how to hide the title of a page, like the Wikipedia main page, for example.

Thank you. 186.188.144.132 (talk) 21:49, 23 February 2017 (UTC)

See Manual:FAQ#How do I hide the main page title? Ciencia Al Poder (talk) 10:37, 24 February 2017 (UTC)

Registration

Tried to register three times. never received validation e-mail. ow it says my user name is taken 2602:306:CF0E:7C29:44D5:B931:B6DA:FA67 (talk) 00:51, 24 February 2017 (UTC)

Where? Have you checked the spam folder? Ciencia Al Poder (talk) 10:40, 24 February 2017 (UTC)

How to edit the text inside the toolbox

How to edit the text inside the toolbox 121.58.248.119 (talk) 06:10, 24 February 2017 (UTC)

The toolbox has no text, but links. Do you mean add/remove links? Or change the link text? Ciencia Al Poder (talk) 10:40, 24 February 2017 (UTC)

New Issue on Extensions:CentralAuth

[WLAdr8Cj5xAAABeQ9IUAAAAG] /w/index.php?title=Istimewa%3AOtoritas+pusat&target=F-16 Exception from line 687 of /home/wikitaga/public_html/w/extensions/CentralAuth/includes/specials/SpecialCentralAuth.php: Invalid wiki: wikitaga_db2Backtrace:#0 /home/wikitaga/public_html/w/extensions/CentralAuth/includes/specials/SpecialCentralAuth.php(462): SpecialCentralAuth->foreignUserLink(string)#1 [internal function]: SpecialCentralAuth->listWikiItem(array)#2 /home/wikitaga/public_html/w/extensions/CentralAuth/includes/specials/SpecialCentralAuth.php(433): array_map(array, array)#3 /home/wikitaga/public_html/w/extensions/CentralAuth/includes/specials/SpecialCentralAuth.php(368): SpecialCentralAuth->listAccounts(array)#4 /home/wikitaga/public_html/w/extensions/CentralAuth/includes/specials/SpecialCentralAuth.php(140): SpecialCentralAuth->showWikiLists()#5 /home/wikitaga/public_html/w/includes/specialpage/SpecialPage.php(522): SpecialCentralAuth->execute(NULL)#6 /home/wikitaga/public_html/w/includes/specialpage/SpecialPageFactory.php(576): SpecialPage->run(NULL)#7 /home/wikitaga/public_html/w/includes/MediaWiki.php(283): SpecialPageFactory::executePath(Title, RequestContext)#8 /home/wikitaga/public_html/w/includes/MediaWiki.php(851): MediaWiki->performRequest()#9 /home/wikitaga/public_html/w/includes/MediaWiki.php(512): MediaWiki->main()#10 /home/wikitaga/public_html/w/index.php(43): MediaWiki->run()#11 {main}

Murbaut (talk) 12:03, 24 February 2017 (UTC)

MediaWiki v 1.28 Murbaut (talk) 12:03, 24 February 2017 (UTC)

What editor is this mediawiki using and is it included in the latest mediawiki install package?

What editor is this mediawiki using and is it included in the latest mediawiki install package? 86.17.13.109 (talk) 13:28, 24 February 2017 (UTC)

Ok so looks like its just called visual eidtor, is it part of the latest mediawiki install? 86.17.13.109 (talk) 14:27, 24 February 2017 (UTC)
I could be wrong but I think it uses WikiEditor since 1.26. Cloakedboltz (talk) 15:08, 24 February 2017 (UTC)
what this wiki (mediawiki.org/wiki/) uses wikieditor thats included in the installs since 1.26? 86.17.13.109 (talk) 15:16, 24 February 2017 (UTC)
It appears they are using this extension: VisualEditor
This is not included with MediaWiki. Cloakedboltz (talk) 16:13, 24 February 2017 (UTC)
There are number of "editors" and you can switch between them. For visual editing (WYSIWYG) is VisualEditor but if you mean more advanced toolbar in sourcecode editing, it may be WikiEditor. wargo (talk) 21:19, 24 February 2017 (UTC)
Im wanting my wiki to use the same wiki editor as the one this media wiki is using, just unsure which it is, im thinking it is extension VisualEditor 86.17.13.109 (talk) 08:37, 27 February 2017 (UTC)
Extension:VisualEditor
But describe details to know what you need. wargo (talk) 11:54, 27 February 2017 (UTC)

Translation box doesn't work

https://i.gyazo.com/ff0cf34b3fed9e6a7163b618453ff473.png giving this error. I have Adobe flash player installed and activated on chrome. Olcaorakci (talk) 14:43, 24 February 2017 (UTC)

Question about image formating for procedures

Hello everyone,

I am currently working on an internal wiki and I'm trying to write procedures using numbered lists. I try to display images under each step for visual reference but I seem to be unable to keep the image under each step. I want those images to be thumbnails so it doesn't make the page overly huge. What usually happens is that I can get the image to the left, middle or right but the pictures will ignore the text and just bunch up one after the other on whichever side I picked.

Does anyone know the correct format options to be used in such a case scenario? Cloakedboltz (talk) 14:50, 24 February 2017 (UTC)

Users not receiving confirmation code to validate email

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've just installed 1.27.1 and BlueSpice 2.27. I'm having trouble with users not getting an email with confirmation code. LocalSettings.php has this:

$wgEnableEmail = true;

$wgEnableUserEmail = true; # UPO

$wgEmergencyContact = "AWP.Design@terex.com";

$wgPasswordSender = "admin@AWPDesign";

$wgEnotifUserTalk = true; # UPO

$wgEnotifWatchlist = true; # UPO

$wgEmailAuthentication = true;

The wiki is an internal company wiki and only internal users will be using it. I've been reading about $wgSMTP but am confused about how to make this work.

I'm running the wiki on a Windows 2012 R2 system.

Any help would be appreciated. Jan.Archer (talk) 16:01, 24 February 2017 (UTC)

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

About Encyclopedia Dramatica

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've been to Encyclopedia Dramatica once, and had learned that it is a bad site with inappropriate pics, bad words, and... you guessed it... lots and lots of drama. Can you please take Encyclopedia Dramatica down? 2600:1010:B059:3F8E:9840:A903:4083:D2FD (talk) 16:01, 24 February 2017 (UTC)

It is not part of the Wikimedia Foundation. Kizule (talk) 21:02, 24 February 2017 (UTC)
The discussion above is closed. Please do not modify it. No further edits should be made to this discussion.

Warnings after Migrating from MySql to sqlite3

Due to reasons out of my control I had to move my instance of mediawiki from mysql to sqlite3.

New Version Info:

MW 1.25.1

php 5.6.9 (apache2handler)

SQLite 3.8.8.3 with full-text search support

In doing so it went pretty smooth, I followed the basic directions found at:

http://www.linuxintro.org/wiki/Migrating_mediawiki_from_mysql_to_sqlite

As far as I can tell all the functionality is working. I can browse from page to page, viewing images works, creating new pages works, modifying existing pages works. But on every page I have the following at the top of the page:

Notice: unserialize(): Error at offset 65 of 6279 bytes in /opt/apps/asa/apache/asaSite/htdocs/wiki/includes/cache/LocalisationCache.php on line 1161

Warning: Invalid argument supplied for foreach() in /opt/apps/asa/apache/asaSite/htdocs/wiki/includes/cache/LocalisationCache.php on line 411

This also shows up when trying to add an image to a page when using the WYSIWYG editor. Images do still work though, b/c if I switch over to the Source portion in WYSIWYG, and type in the mediawiki syntax to add an image, the image shows up on the page. Cbo0485 (talk) 20:44, 24 February 2017 (UTC)

Since the localization cache only is a cache, I would try emptying it. I guess you can delete the cache files in folder htdocs/wiki/cache/ and also, as far as there are contents in the database table Manual:L10n cache table, you should be able to clean this table as well.
The maintenance script Manual:RebuildLocalisationCache.php can be used to rebuild the cache.
Manual:LocalisationCache might provide a somewhat deeper insight. 83.135.228.180 (talk) 01:07, 26 February 2017 (UTC)

mail confirmation

I try to register to the wiki and help translate/create and i cannot confirm my email, i always got a message : Failed to connect to smtp.mailgun.org:587 [SMTP: Failed to connect socket: Connection refused (code: -1, response: )]

My mail is immortel71@hotmail.ca

I always use this mail for years now and i am always receiving/sending all my mail from there but your server doesn't seem to be able to send me one. 24.49.231.84 (talk) 23:01, 24 February 2017 (UTC)

No one able to help? 24.49.231.84 (talk) 00:01, 27 February 2017 (UTC)
Apparently you're talking about a MediaWiki installation not hosted by WMF, but you don't seem to be the administrator of that wiki. This looks like a configuration error of that wiki. You should try to contact one of the admins of that wiki so they're able to resolve the issue. Ciencia Al Poder (talk) 10:43, 27 February 2017 (UTC)

Redirects to sections

I'm trying to redirect to a section on my internal Wiki (e.g. #REDIRECT [[target_page#section]]). While the redirect will link to the document, it will not go to the section itself.

Do you know if there's a known issue with respect to this? I have seen JavaScript as a possible cause (https://en.wikipedia.org/wiki/Help_talk:Redirect#Problem_with_redirections_to_sections.2Fanchors), but I have it enabled.

Thank you. PaleoIsh (talk) 00:12, 25 February 2017 (UTC)

LuaSandbox configure script does not find Lua libs

I have MW 1.28 and Lua 5.1 on Arch Linux. I'm trying to build LuaSandbox so I can get Scribunto to work.

I need Scribunto to run the Template:Navbox that Wikipedia uses; that's my goal.

Trying to build with: $ sudo phpize && sudo ./configure && sudo make && sudo make install

but ./configure fails with this message:

checking for lua >= 5.1 lua < 5.2... no

checking for lua5.1... no

checking for lua-5.1... no

checking for luajit... no

configure: error: Package requirements (luajit) were not met:

No package 'luajit' found

Consider adjusting the PKG_CONFIG_PATH environment variable if you

installed software in a non-standard prefix.

Alternatively, you may set the environment variables LUA_CFLAGS

and LUA_LIBS to avoid the need to call pkg-config.

See the pkg-config man page for more details.

I have the required Lua libs:

$ ls /usr/include/lua5.1
lauxlib.h  lua.h  lua.hpp  luaconf.h  lualib.h

And I've tried export LUA_LIBS='-L/usr/include/lua5.1' and export PKG_CONFIG_PATH='/usr/include/lua5.1' but no change.

How do I get LuaSandbox to build? Stromoxpage (talk) 03:20, 25 February 2017 (UTC)

I have just downloaded mediawiki - but no commons file in skins?

I have just downloaded mediawiki - but no commons file in skins? I was wondering if I had done something wrong, or if I was meant to create it myself. At the moment the skins file has only the four basic skins in it. Thanks very much, Milo SpaceGuy32 (talk) 13:45, 25 February 2017 (UTC)

Also, how can I make myself an administrator SpaceGuy32 (talk) 14:01, 25 February 2017 (UTC)
I have since discovered I am a bureacrat. However for some reason I cannot access Special:UserRights SpaceGuy32 (talk) 14:08, 25 February 2017 (UTC)
For userrights try Manual:CreateAndPromote.php . Reception123 (talk) 18:05, 25 February 2017 (UTC)
Common.css will not normally have style rules included, since the skins' css files are entirely separate. You use the Common files for anything you wish to be shared between all of the skins, but there are no entries by default. DSquirrelGM𝓣𝓟𝓒 21:10, 25 February 2017 (UTC)
See Manual:Interface/Stylesheets! 83.135.228.180 (talk) 00:56, 26 February 2017 (UTC)

Wikibase install queries

I know how to use the Wikidata SPARQL Query well enough.  The issue is the install that comes with the Wikibase package is very much tied into Wikidata, and seems impossible to separate.  Is there a way to easily configure the Sparql query engine to allow for defaulting on the local wikibase install? Or are there easy to understand configuration directions to do a query using a wikibase install on a non-wikimedia wiki?

Where say a query like:

#Cats

SELECT ?item ?itemLabel

WHERE

{

?item wdt:P31 wd:Q146 .

SERVICE wikibase:label { bd:serviceParam wikibase:language "en" }

}

could be run on "mediawikidevelopersareawesome.com"?

--~~~~

:: As a follow up,  problem with Sparql query engine on independent Wikibase install is that in trying to run eslewhere for not wikidata is it runs into problems converting to RDF. Wikidata query service/User Manual#Standalone service does does not address this particular issue of how to de-wikidata it. And can't use other sparql engines to try to do the Wikibase data handling aspect. --~~~~

Vanished user adhmfdfmykrdyr (talk) 14:14, 25 February 2017 (UTC)

Session lifetime

Hi! After updating to MediaWiki 1.28 I got an issue with sessions. Everytime (almost) I edit any page and trying to save changes, I getting a message that my session is over and I should re-enter, although I have option "stay in" checked. Tried to set bigger values in php.ini (e.g. session.gc_maxlifetime), although I didn't change them when updated MediaWiki. Seems it doesn't make sense. Sometimes session crashes in a few seconds after start editing (e.g. after editing just one character). What's this and how can I fix it? Please help! Sorry my language. RuSJcD (talk) 14:22, 25 February 2017 (UTC)

Which browser are you using? FriedhelmW (talk) 18:44, 25 February 2017 (UTC)
I am using latest Chrome. And latest mobile Chrome as well. I know about this: https://phabricator.wikimedia.org/T151770
But I have Chrome. And it doesn't allow to edit config settings.
And there are some more users that have this problem in Wikipedia else.
Tried to find any problems in server logs, but there are nothing about it. RuSJcD (talk) 11:29, 28 February 2017 (UTC)

Program local timezone for extension

Hello, I would like to know how I could program the local time zone to show up for https://github.com/miraheze/CreateWiki/blob/master/SpecialRequestWiki.php instead of UTC. For example if my timezone is set as GMT -10 the Special:RequestWiki page should show the GMT - 10 time not the UTC. Reception123 (talk) 18:04, 25 February 2017 (UTC)

@Ciencia Al Poder Any idea about this? Reception123 (talk) 16:47, 19 March 2017 (UTC)
No idea, although you should clarify who is 'my timezone'? server or client Ciencia Al Poder (talk) 19:40, 19 March 2017 (UTC)
Client's timezone Reception123 (talk) 18:08, 23 March 2017 (UTC)
The server has no idea about the client's timezone, that's not information that's sent in the request headers, so it will require JavaScript on the client to grab the timezone, and probably make an ajax call to the server to re-send the entire contents again in the correct timezone, or reparse all dates on the page with JavaScript (scary at best) Ciencia Al Poder (talk) 18:27, 23 March 2017 (UTC)
Hmm. Thanks for the response. Reception123 (talk) 19:15, 23 March 2017 (UTC)
@Ciencia Al Poder Thinking about it, wouldn't it be possible if the clients timezone is set in Special:Preferences? Reception123 (talk) 19:17, 23 March 2017 (UTC)
Yes, you can use the same methods Special:RecentChanges and page histories use to format dates and times Ciencia Al Poder (talk) 20:58, 23 March 2017 (UTC)
@Ciencia Al Poder I'm not exactly sure how I would integrate that into an extension. Reception123 (talk) 06:03, 24 March 2017 (UTC)
You should probably hire a developer if you are not able to copy&paste what other parts of the code are already doing. I'm just a volunteer not actively working on MediaWiki code. Ciencia Al Poder (talk) 10:24, 24 March 2017 (UTC)
@Ciencia Al Poder Sorry for asking so much. If it's not to much bother could you at least point me to a similar extension that uses this type of code? Reception123 (talk) 20:09, 24 March 2017 (UTC)
It's done in MediaWiki core, you can see Special:Log, Special:RecentChanges, Special:Contributions and page histories. It shouldn't be hard to see how the dates are transformed to the user timezone set in preferences... Ciencia Al Poder (talk) 20:56, 24 March 2017 (UTC)
Thank you Reception123 (talk) 10:12, 25 March 2017 (UTC)

Broken Features?

Hello all!

So I recently installed a fresh installation of Mediawiki after my old site provider died, and I went from 1.27 to 1.28, imported all my old files... and ALL of the IF statements seem to be broken now, and aren't behaving in the way they used to. Coding that I did hasn't changed, unless something went weird in the export utility. I'd normally pester my mentor, but, she, unfortunately, is permanently unavailable (before anyone asks, no, there was no falling out & she didn't edit the code just to spite me).

I should also add in that a number of other various commands seem to no longer be working. These include the main page columns commands.

-Karl KMjolnir (talk) 23:02, 25 February 2017 (UTC)

Hi Karl,
the if statements you are speaking about most likely are provided by the Extension:ParserFunctions. You can visit the wiki page Special:Version in your wiki to see, if this extension currently is installed. If it already ''was'' installed: What is it that is broken about the conditions? 83.135.228.180 (talk) 00:54, 26 February 2017 (UTC)
Doesn't appear to be on there. I guess I'll give it a shot and see if it fixes. Thanks!
Edit: It appears in the file lists when I went to install it, but not on the version page. Huh. Figured it out. It was installed, but not activated. Which is curious, because unless it installed with the mediawiki installation, a ghost did it.
So, good news... and bad news. The IF statements are fixed! Yay, that's good. That's a whole lot of progress. The columns, however, remain non-functional.
-Karl KMjolnir (talk) 01:18, 26 February 2017 (UTC)
How do the column commands on the main page look like? 83.135.233.144 (talk) 23:19, 26 February 2017 (UTC)
They look like:
<mainpage-leftcolumn-start />
<mainpage-endcolumn />
 <mainpage-rightcolumn-start />
<mainpage-endcolumn />
It's what worked on the old one and on other wikis. KMjolnir (talk) 00:09, 27 February 2017 (UTC)
This looks like the code that uses Wikia to place ads on the main page. If that were working for you before, you may need to enable/install the extension that provides that functionality. Ciencia Al Poder (talk) 10:41, 27 February 2017 (UTC)
And what extension would that be? I didn't handle much of the setup of the previous wiki. KMjolnir (talk) 22:08, 27 February 2017 (UTC)

Hey there, I am using MediaWiki on a Synology DiskStation for home usage. I updated my MediWiki two weeks ago and since then, the Category Link is not working anymore. If I specify a category on my page with the link to the page example works fine, but there is no reference back to my page, where I set this category. Any idea what is wrong?

I am using MediaWiki 1.27.1, PHP 5.6.28, Maria-DB 5.5.53 and ICU 56.1 Synology is not offering a newer version and myself do not know, how I can upgrade manually.

Thanks for any help.

Ralf from Hamburg/Germany RalliHH (talk) 13:52, 26 February 2017 (UTC)

See Project:Support desk/Flow/2016/07#h-Upgrading_from_1.26_to_1.27_breaks_putting_pages_in_a_category-2016-07-27T19:13:00.000Z. AhmadF.Cheema (talk) 14:03, 26 February 2017 (UTC)
Thanks Ahmad, I tried a lot now but did not succeed. Whenever I want to run the command runJobs.php I get an error. Looks like there is a problem with the database. I need to mention, I used MySQL at the beginning and due to the update changed to MariaDB. All other things working fine. The error says:
MWException from line 612 of ...Database.php: Database::factory no viable database extension found for 'mysql'
This does not say a lot to me (really beginner ...)
Any idea? THANKS!
Ralf RalliHH (talk) 17:49, 26 February 2017 (UTC)
Apparently, MediaWiki is trying (and failing) to find MySQL which is resulting in this error. See this. You can try Manual:How to debug, but someone more experienced will have to answer your query. AhmadF.Cheema (talk) 19:05, 26 February 2017 (UTC)
Thanks so much, Ahmad. Job for the next week :) RalliHH (talk) 20:19, 26 February 2017 (UTC)
If your MediaWiki is working fine from the browser, it may be that PHP has 2 different php.ini configuration files, one for the web server, and another for the command line, and the one for the command line doesn't have the mysql driver enabled. Ciencia Al Poder (talk) 10:36, 27 February 2017 (UTC)

New install: Problem with subdomain settings

Dear all,

I have just installed MediaWiki on a Webspace (preconfigured app-installation on Apache). Basically things work fine, but I have trouble with the configuration of the subdomain.

  • I have a domain mydomain.de,
  • the wiki installation at mydomain.de/wiki,
  • and a subdomain wiki.mydomain.de that refers to mydomain.de/wiki

With the default config (only $wgGroupPermissions was modified), the following works:

  • mydomain.de/wiki is ok, leads to "login required".
  • clicking on LogIn shows an unformatted login-page for 100 ms, then the login-page in correct format
  • Login works, everything seems to be fine.
  • wiki.mydomain.de also leads to "login required", but the page is unformatted.
  • clicking on LogIn brings up an "Internal Server Error" (500), hinting at a misconfiguration error. "More information about this error may be available in the server error log". A serverlog is not accessbile to me (as far as I know).

I did some experiments according to Manual:Short URL/LocalSettings.php, with no success. Any help?

Regards, Karl Karl.jonas (talk) 19:37, 26 February 2017 (UTC)

Internal Error - using /mw-config/index.php

Im getting a Internal Error while going to the initial config file. Searching a lot for something, but couldn't find anything. Can someone help me?

This is the error that is shown, but I cannot relate it to anything specific.

/wiki/mw-config/index.php MediaWiki\Services\ServiceDisabledException from line 340 of /storage/c/12/69/colegiovertice3/public_html/wiki/includes/services/ServiceContainer.php: Service disabled: DBLoadBalancer

Backtrace:

#0 /storage/c/12/69/colegiovertice3/public_html/wiki/includes/MediaWikiServices.php(509): MediaWiki\Services\ServiceContainer->getService(string)

#1 /storage/c/12/69/colegiovertice3/public_html/wiki/includes/GlobalFunctions.php(3089): MediaWiki\MediaWikiServices->getDBLoadBalancer()

#2 /storage/c/12/69/colegiovertice3/public_html/wiki/includes/GlobalFunctions.php(3075): wfGetLB(boolean)

#3 /storage/c/12/69/colegiovertice3/public_html/wiki/includes/cache/LinkCache.php(267): wfGetDB(integer)

#4 /storage/c/12/69/colegiovertice3/public_html/wiki/includes/Title.php(3184): LinkCache->addLinkObj(Title)

#5 /storage/c/12/69/colegiovertice3/public_html/wiki/includes/Title.php(934): Title->getArticleID(integer)

#6 /storage/c/12/69/colegiovertice3/public_html/wiki/includes/content/ContentHandler.php(282): Title->getContentModel()

#7 /storage/c/12/69/colegiovertice3/public_html/wiki/includes/Title.php(4684): ContentHandler::getForTitle(Title)

#8 /storage/c/12/69/colegiovertice3/public_html/wiki/includes/parser/Parser.php(867): Title->getPageLanguage()

#9 /storage/c/12/69/colegiovertice3/public_html/wiki/includes/parser/Parser.php(2110): Parser->getTargetLanguage()

#10 /storage/c/12/69/colegiovertice3/public_html/wiki/includes/parser/Parser.php(2075): Parser->replaceInternalLinks2(string)

#11 /storage/c/12/69/colegiovertice3/public_html/wiki/includes/parser/Parser.php(1290): Parser->replaceInternalLinks(string)

#12 /storage/c/12/69/colegiovertice3/public_html/wiki/includes/parser/Parser.php(441): Parser->internalParse(string)

#13 /storage/c/12/69/colegiovertice3/public_html/wiki/includes/installer/Installer.php(675): Parser->parse(string, Title, ParserOptions, boolean)

#14 /storage/c/12/69/colegiovertice3/public_html/wiki/includes/installer/WebInstaller.php(681): Installer->parse(string, boolean)

#15 /storage/c/12/69/colegiovertice3/public_html/wiki/includes/installer/WebInstaller.php(657): WebInstaller->getInfoBox(string, string, string)

#16 /storage/c/12/69/colegiovertice3/public_html/wiki/includes/installer/WebInstaller.php(401): WebInstaller->getErrorBox(string)

#17 /storage/c/12/69/colegiovertice3/public_html/wiki/mw-config/index.php(54): WebInstaller->showError(string, string)

#18 /storage/c/12/69/colegiovertice3/public_html/wiki/mw-config/index.php(38): wfInstallerMain()

#19 {main} Matcafe (talk) 04:11, 27 February 2017 (UTC)

I solved it. It was a session problem.
My server wasn't configured to handle sessions in php.
I had to edit the php.ini file to handle correctly the sessions with the property "session.save_path".
Actually, in my case, i had to do it on the .htaccess file. Matcafe (talk) 18:32, 2 March 2017 (UTC)

Why is backing up some much harder than installing MediaWiki?

I was attracted to MediaWiki because of TurnKey's package of MediaWiki with a minimal OS.  This avoids licensing another Windows instance without taking on the entire learning curve of Linux.

I've bumped up against Unix and Linux from time to time in my career; but I'm far from proficient. So the simplicity of TurnKey's SW appliance was and is appealing.

But the learning curve steepens drastically when it comes to backing up. The MediaWiki help page offers this whopper: "Most of the critical data in the wiki is stored in the database, which is typically straightforward to back up."

MediaWiki is simple to install, and simple to use. Please, can someone make backing up my work just as easy? Thanks! Brucenmi (talk) 05:21, 27 February 2017 (UTC)

What's the complexity of taking a backup of the database (with mysql you can just run a single command for that) and copy all the contents of the images folder (or the entire MediaWiki installation)? Ciencia Al Poder (talk) 10:39, 27 February 2017 (UTC)
As Ciencia Al Poder says. Database dump and directory download.
That's a two-liner as bash script. Subfader (talk) 13:15, 27 February 2017 (UTC)
Our page Manual:Backing up a wiki, which we are speaking about, could in fact need a cleanup: It in fact does contain the needed lines to create a backup, but these two lines are hidden in a huge number of lines regarding installation of packages, character conversion and so on, although these topics are only prerequisites or -for most installations- are not needed at all. 83.135.224.229 (talk) 15:11, 27 February 2017 (UTC)

Parser issue TEITags

Hi,

I know this is an old extension, however I find it very useful for digital humanities projects (and my wiki is one of these). I installed this extension on:

MediaWiki 1.27.1

PHP 7.0.13-0ubuntu0.16.04.1 (apache2handler)

MySQL 5.7.17-0ubuntu0.16.04.1

ICU 55.1

Lua 5.1.5


The issue occurs when I use a tei tag inside another one, like <head>test <add>text</add></head>. The result is something like

test '"`UNIQ--add-00000004-QINU`"'


I found this and I guess it is certainly related to my issue. My problem is that I am not a devoleper, so I am not sure where to edit the extension code.


In TEITags.body.php I see this:

public function ParserFirstCallInit ( Parser $parser ){

global $wgOut;

$parser->setHook( 'tei'    , array( $this , 'RenderTei' ) );

$parser->setHook( 'lb'     , array( $this , 'RenderLb' ));

$parser->setHook( 'pb'     , array( $this , 'RenderPb' ));

$parser->setHook( 'del'    , array( $this , 'RenderDel' ));

$parser->setHook( 'add'    , array( $this , 'RenderAdd' ));

$parser->setHook( 'gap'    , array( $this , 'RenderGap' ));

$parser->setHook( 'unclear', array( $this , 'RenderUnclear' ));

$parser->setHook( 'note'   , array( $this , 'RenderNote' ));

$parser->setHook( 'hi'     , array( $this , 'RenderHi' ));

$parser->setHook( 'head'   , array( $this , 'RenderHead' ));

$parser->setHook( 'sic'    , array( $this , 'RenderSic' ));

$parser->setHook( 'foreign', array( $this , 'RenderForeign' ));

$wgOut->addModules( 'ext.TEITags' );

I guess I have to edit somehow the bold text, but I have no idea how :(

Can anyone help me, please?

Thanks!

Lorenzo Loman87 (talk) 10:01, 27 February 2017 (UTC)

PHP 7 without memcache(d)?

Google says memcached is not ready yet for PHP 7.

Is it worth it running MW with PHP 7 without memcache(d)?

What cache type should I set then? Subfader (talk) 13:12, 27 February 2017 (UTC)

Bump. Subfader (talk) 09:09, 1 April 2017 (UTC)
For the start, if Google themselves say so, please link to that Google statement. (Especially whether this refers to PHP 7.0 or PHP 7.1.) Malyacko (talk) 10:14, 4 April 2017 (UTC)

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


Hi, Someone could help me with featured articles ?, I need to put them on my main page but I do not know how Jcanos (talk) 13:36, 27 February 2017 (UTC)

Wikipedia apparently transcludes (onto the main page) the featured articles from other Wikipedia pages of the form: Wikipedia:Today's featured article/February 27, 2017 where the date changes automatically everyday by the usage of the template: {{Wikipedia:Today's featured list/{{#time:F j, Y}}}}.
Apparently, these featured articles are readied as subpages to the "Wikipedia:Today's featured article" page, about 15-16 days before their publication on the main page. AhmadF.Cheema (talk) 14:55, 27 February 2017 (UTC)
Then all the pages are predefined? so to speak Jcanos (talk) 15:04, 27 February 2017 (UTC)
What you see on the Wikipedia main page is sort of a re-wrtten summary of the article. This re-written summary is apparently placed as a subpage of "Wikipedia:Today's featured list" (~15 days before its presentation date on Wikipedia main page) where it is edited and improved upon until the reserved date. AhmadF.Cheema (talk) 16:56, 27 February 2017 (UTC)
So yes, this is a very much a curated set of content requiring a lot of manual labor. It's not automated in any way, other than having the template know where to look for each days' fragment. —TheDJ (Not WMF) (talkcontribs) 12:44, 28 February 2017 (UTC)
Thank you Jcanos (talk) 21:14, 28 February 2017 (UTC)
The discussion above is closed. Please do not modify it. No further edits should be made to this discussion.

Insert random page title

Is there a magic word or something that I can use to insert the just the text of the title of a random page on my wiki? Innosflew (talk) 14:08, 27 February 2017 (UTC)

Unable to completely understand your objective here. Are you trying to just write the title of some random page (or a list of pages) on some page of your Wiki? Also, should that included page change with time or is it to remain constant?
Extension:DynamicPageList3 has a feature to allow for presenting "a stable set of random articles for one day and switch to another set every day." AhmadF.Cheema (talk) 14:43, 27 February 2017 (UTC)
I was just trying to write the title of a random article on a page. Innosflew (talk) 15:36, 27 February 2017 (UTC)
The following gives the "title of a random article" on this page:
Manual:Installation guide AhmadF.Cheema (talk) 16:49, 27 February 2017 (UTC)

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


Wiki 1:

Version info: https://www.limswiki.org/index.php/Special:Version

Example page exhibiting issue: https://www.limswiki.org/index.php/User:Shawndouglas/sandbox/sublevel7

Wiki 2:

Version info: https://www.lablynxpress.com/index.php?title=Special:Version

Example page exhibiting issue: https://www.lablynxpress.com/index.php?title=Laboratory_Informatics_Institute

We had someone come in and move several wikis to HTTPS. An unexpected issue has cropped up as a result of the change: internal links appearing in interwiki transcluded content now have malformed URLs. Interwiki transcluded external links work as expected.

In both provided examples, a page is transcluded using interwiki transclusion. Wiki 1 is transcluding a page from Wiki 2, and vice versa. (Different pages.) Both show that when you hover over a transcluded internal link, you see something like this:

Wiki 1 internal link example: https://www.lablynxpress.comhttps//www.lablynxpress.com/index.php?title=ELab

Wiki 2 internal link example: https://www.limswiki.orghttps//www.limswiki.org/index.php/Laboratory_informatics

You'll also note that we experimented with Wiki 2 example, changing the source link to "laboratory" (the first link in the text) from an internal format to an external format. The external link appears correctly: https://www.limswiki.org/index.php/Laboratory

Troubleshooting steps include ensuring the interwiki table URL was updated to HTTPS (originally wasn't), changing those interwiki table URLs to relative (nothing happened), and changing the LocalSettings.php $wgScriptPath, $wgServer, etc. to relative (resulted in https://www.lablynxpress.com//www.lablynxpress.com/index.php?title=ELab).

We also note that there is a colon missing in the example URLs above.

I only have FTP access; I don't manage the server-side stuff nor do I have the skills. If it's something I can fix via FTP, I sure could use the help. If it's server side suggestions, I'll have to forward them on to the server admin. But as of right now, I'm at a loss as to why only the transcluded internal links are appending the full $wgServer output to the front. The only remotely similar item I could find was from 2009: https://phabricator.wikimedia.org/T20664

Thanks for any suggestions you can provide! Lostraven (talk) 20:56, 27 February 2017 (UTC)

*bump* We're really at a loss here. Any suggestions on aspects to check that might be causing the appending of the full $wgServer output to the front of URLs for interwiki transcluded internal links would be greeted with enthusiasm. Lostraven (talk) 17:08, 1 March 2017 (UTC)
Note that when you transclude from other wikis, it's transcluding an URL like this: (action=render). Here you can see the same problem.
On Special:Version I see the full server on each variable (Article path, script path, etc), which shouldn't be there. Be sure in LocalSettings.php they are only paths without including the server. See examples in the documentation pages. Ciencia Al Poder (talk) 23:01, 1 March 2017 (UTC)
That did the trick. Strange that we didn't have problems beforehand, but yes, doing as you suggested seems to have solved the issue. Thanks for taking the time to reply! Lostraven (talk) 17:25, 2 March 2017 (UTC)
The discussion above is closed. Please do not modify it. No further edits should be made to this discussion.

DBLoadBalancer Service Exception on Fresh Install of 1.28

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 MediaWiki Support Team!

I recently installed a fresh version of MediaWiki 1.28 (following the installation requirements and guide provided) on CenOS 6.7, and unfortunately, I have run into an error that I can't seem to get rid of...

What happened was after installing PHP 5.6.30, MySQL 5.1.73, and Apache 2.2.15, I followed the installation steps, making sure to set permissions appropriately on files and folders to make sure I could access the page. Finally I got to the page that begins the installation script, clicked "set up the wiki first", and was greeted by the following error:

[526518699f66c0881f7a63e1] /sysdoc/mw-config/index.php MediaWiki\Services\ServiceDisabledException from line 340 of /var/www/sysdoc/includes/services/ServiceContainer.php: Service disabled: DBLoadBalancer

Backtrace:

#0 /var/www/sysdoc/includes/MediaWikiServices.php(509): MediaWiki\Services\ServiceContainer->getService(string)

#1 /var/www/sysdoc/includes/GlobalFunctions.php(3089): MediaWiki\MediaWikiServices->getDBLoadBalancer()

#2 /var/www/sysdoc/includes/GlobalFunctions.php(3075): wfGetLB(boolean)

#3 /var/www/sysdoc/includes/cache/LinkCache.php(267): wfGetDB(integer)

#4 /var/www/sysdoc/includes/Title.php(3184): LinkCache->addLinkObj(Title)

#5 /var/www/sysdoc/includes/Title.php(934): Title->getArticleID(integer)

#6 /var/www/sysdoc/includes/content/ContentHandler.php(282): Title->getContentModel()

#7 /var/www/sysdoc/includes/Title.php(4684): ContentHandler::getForTitle(Title)

#8 /var/www/sysdoc/includes/parser/Parser.php(867): Title->getPageLanguage()

#9 /var/www/sysdoc/includes/parser/Parser.php(2110): Parser->getTargetLanguage()

#10 /var/www/sysdoc/includes/parser/Parser.php(2075): Parser->replaceInternalLinks2(string)

#11 /var/www/sysdoc/includes/parser/Parser.php(1290): Parser->replaceInternalLinks(string)

#12 /var/www/sysdoc/includes/parser/Parser.php(441): Parser->internalParse(string)

#13 /var/www/sysdoc/includes/installer/Installer.php(675): Parser->parse(string, Title, ParserOptions, boolean)

#14 /var/www/sysdoc/includes/installer/WebInstaller.php(681): Installer->parse(string, boolean)

#15 /var/www/sysdoc/includes/installer/WebInstaller.php(657): WebInstaller->getInfoBox(string, string, string)

#16 /var/www/sysdoc/includes/installer/WebInstaller.php(401): WebInstaller->getErrorBox(string)

#17 /var/www/sysdoc/mw-config/index.php(54): WebInstaller->showError(string, string)

#18 /var/www/sysdoc/mw-config/index.php(38): wfInstallerMain()

#19 {main}

I have tried looking into the error but googling did not return any results other than a post found at:

http://stackoverflow.com/questions/42105209/mediawiki-dbloadbalancer-error-while-setting-up-wiki

Though I looked at the post, it did not seem terribly applicable, but perhaps you think differently. If you could assist me in getting my MediaWiki up and running I would be most appreciative. Thanks and hope to hear from you soon!

J. SystemAssistant (talk) 23:00, 27 February 2017 (UTC)

Also reported on T157890.
Looking at the error stacktrace, looks like it's trying to display an error message, and then the error message contains an internal link somewhere, that it tries to parse (maybe see if it's a red link), and then fails because obviously there's still no database to check for that.
So, basically, the installer is complaining about something, but the error message generates another error itself. Too bad!
There's a qqx trick to display message keys instead of their contents. Maybe you can try appending &uselang=qqx to the URL to see if you can get at least the original error message key to guess what's the original error message. Probably fixing the original error condition you can install it without problems. Ciencia Al Poder (talk) 10:26, 28 February 2017 (UTC)
Hello, Ciencia, thank you for your reply! So I tried looking at the error message using the qqx trick you suggested, but it gives me the same output...by "append to the url", you mean it should look something like:
mywiki.com/index.php/?uselang=qqx
in order to get the messages to display as original errors? Sorry if this seems overly simple, this is the first attempt at getting a new wiki up and running after someone nuked my old wiki :(
Thank you again and hope to hear from you soon!
J. SystemAssistant (talk) 15:44, 28 February 2017 (UTC)
Part of the stack trace reveals it happens when calling $installer->showError( 'config-session-error', $errors[0] );
The original problem has to do with sessions. But the original message is never printed because of the other errors. Maybe there are permission errors trying to write session files like Ciencia Al Poder (talk) 21:44, 28 February 2017 (UTC)
You were absolutely right. The permissions on my php/sessions folder was disallowing writes for users. Fixed the problem immediately. Thank you so much for your help, I would have been stuck for ages otherwise. Thanks again and have a good one!
J. SystemAssistant (talk) 16:18, 1 March 2017 (UTC)
Hi There
I am experiencing the same problem trying to install mediawiki 1.28.1
My stack is Apache 2.4/PHP 7.1/MySQL 5.7 on MacOSX El Capitan
and have ensured that the permissions of the folder that the php session files are written to (session.save_path location) is correct. However I am getting an empty session file put in my sessions folder. I have more details here http://stackoverflow.com/questions/43580767/cryptic-error-dbloadbalancer-error-while-setting-up-mediawiki
I have created a test php script that runs on the same apache server that starts a session and this script has no problems writing a session file to my session.save_path location.
Is there any logging done during the installation that will point me to the root cause of the problem? Because all indications are that the errors being displayed currently are merely red herrings... Eenventer (talk) 01:15, 25 April 2017 (UTC)
There isn't much logging there, since it's on the installer and you can't set up logging variables.
You can try editing the file (make a backup first and restore it after the tests) mw-config/index.php, after this line:
$errors = $installer->getPhpErrors();
You can add a print_r($errors); to see on the page itselft the contents of this variable (in case it has something useful) Ciencia Al Poder (talk) 09:25, 25 April 2017 (UTC)
So I downloaded the latest source (master) from the GIT repo and configured it locally and low and behold the problem does not happen. I am able to do a clean install. So it appears in version 1.29 alpha the problem has been fixed. Eenventer (talk) 00:20, 26 April 2017 (UTC)
The discussion above is closed. Please do not modify it. No further edits should be made to this discussion.

after installed Parsoid and VisualEditor, when click the 'Edit' button on my wiki page, it returns http500 error, any help please!

after installed Parsoid and VisualEditor, when click the 'Edit' button on my wiki page, it returns http500 error, any help please! Chrisyxg1978 (talk) 02:30, 28 February 2017 (UTC)

You can try starting with Manual:How to debug. AhmadF.Cheema (talk) 09:26, 28 February 2017 (UTC)
The same problem happened to me. I had forgotten the installation of php-curl. 193.104.162.7 (talk) 09:51, 28 February 2017 (UTC)
Hmm, that's rather annoying, composer should check such things really. @Jdforrester (WMF) is it true that visual editor depends on the php-curl extension ? —TheDJ (Not WMF) (talkcontribs) 12:30, 28 February 2017 (UTC)
Yes, MediaWiki's multi-http-request whatever has required curl since it was written in ~ 2011, and VisualEditor (technically, MediaWiki's way of talking to Parsoid) is built on that. This is the first answer in Extension:VisualEditor#Troubleshooting for that reason. Jdforrester (WMF) (talk) 18:57, 28 February 2017 (UTC)
@Jdforrester (WMF), we could add a composer file that declares the php curl requirement perhaps ? (i'm guessing that curl is an optional requirement for core.. in which case it should be a 'suggest' for core btw.... ) —TheDJ (Not WMF) (talkcontribs) 15:30, 9 March 2017 (UTC)

Echo

I was installing echo on some wikis and I discovered that when I ran the web updated the echo Database tables did not get created. But when I ran update.php from the command line they did get created. 2002:43F4:3186:1234:919B:A28E:E727:C56B (talk) 03:00, 28 February 2017 (UTC)

This is strange. If that's true, you should bugreport it. Ciencia Al Poder (talk) 10:12, 28 February 2017 (UTC)
Sorry but my phabricator account is disabled. If someone could possibly report it for me then thet would be much appreciated. 2002:43F4:3186:1234:F4FA:59C8:8BC8:C8B (talk) 19:14, 1 March 2017 (UTC)

Login

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.


For All Wiki?  Boobpedia doesn't Allow My Login...is this a glitch? or something I am Doing in Error. I am able to login to all other areas. Halfgoofy (talk) 18:03, 28 February 2017 (UTC)

It sounds like you need to create an account. What error do you see when you try to log in. 24.39.1.139 (talk) 19:03, 28 February 2017 (UTC)
There is no area for create account ... it just has login... I looked to try and see ... but my login works for all other areas/Forums/Sites ... Just wanted to bring that to your attention. Halfgoofy (talk) 23:42, 3 March 2017 (UTC)
You should bring this problem to their forums, they probably disabled the creation of new accounts Ciencia Al Poder (talk) 10:12, 4 March 2017 (UTC)
I Am Unable to find an access point to contact... If You have their Access? Would it be possible for You to relay that information .. or if I had that access information I would contact ... Thanks for the Reply of information ... I appreciate the notice.
Halfgoofy Halfgoofy (talk) 17:20, 5 March 2017 (UTC)
mediawiki.org (this website) is for coordination and general support about the MediaWiki software (the same software that runs Boobpedia) but we don't have any relation with their admins. You probably want to find how to contact them. Searching in google by Boobpedia I see they have a twitter account so you may want to ping them there? You also said that your login works in Forums so if they have a forum that would be the best place to ask. Ciencia Al Poder (talk) 21:42, 5 March 2017 (UTC)
Thank You Halfgoofy (talk) 02:27, 12 March 2017 (UTC)
The discussion above is closed. Please do not modify it. No further edits should be made to this discussion.

Pages you should not see

Is there a way to hide pages for certain users? Jcanos (talk) 21:16, 28 February 2017 (UTC)

You could revoke the read permission and whitelist certain pages. 2002:43F4:3186:1234:80E0:308E:A7D:E52F (talk) 23:37, 28 February 2017 (UTC)
Or you can use a less secure but more convenient method of creating a namespace with restricted access through Extension:Lockdown. AhmadF.Cheema (talk) 09:51, 1 March 2017 (UTC)
it does not work correctly, help me. Jcanos (talk) 13:45, 1 March 2017 (UTC)
Exactly what "does not work correctly"? AhmadF.Cheema (talk) 03:16, 2 March 2017 (UTC)
Look is that I think the extension does not serve me because I need some pages not to be seen and what the extesion tells me is more than everything for permissions or do not understand Jcanos (talk) 13:27, 2 March 2017 (UTC)
Sorry, cannot understand, "...and what the extesion tells me is more than everything for permissions or do not understand..." AhmadF.Cheema (talk) 17:09, 2 March 2017 (UTC)
Individual pages can be blocked? Jcanos (talk) 20:33, 7 March 2017 (UTC)
There are extensions which are designed for per-page access, but most if not all of them are buggy, unmaintained, incomplete, leave some loophole for prohibited access.
See Category:Page specific user rights extensions.
Extension:Lockdown with its namespace restriction method is the most reliable one I know. AhmadF.Cheema (talk) 23:14, 7 March 2017 (UTC)
If lockdown is more reliable
There is a problem with lockdown, it is damaging the search engine with autocomplete, can it be the version of my wiki? Or why? Jcanos (talk) 15:13, 8 March 2017 (UTC)
Category:Support desk archives Category:Support desk archives using deprecated source tags