Questions tagged [mediawiki]

A popular wiki software that powers Wikipedia. See https://www.mediawiki.org for more info.

Filter by
Sorted by
Tagged with
0 votes
0 answers
19 views

MediaWiki Session lockout

After restarting my computer and trying to log in to my wiki, I got the following message: There appears to be a problem with your login session. Your operation has been stopped as a precaution ...
1 vote
1 answer
183 views

How to determine if APCu is overall lighter than Memcached in a usecase?

I would say that my personal website is at least currently a "small" website. It is a MediaWiki-based all-core website without images at all and of about 750 webpages of generally no more ...
5 votes
2 answers
102 views

Block certain namespace webpages for anonymous users (non registered users)

For each general audience webpage (i.e. any main-namespace page such as an article page or Category: page), the MediaWiki content management system creates about 10 or 100 or 1,000 if not more ...
0 votes
1 answer
30 views

CommonsMetadata extension: tracking categories not updating

I have enabled the CommonsMetadata extension on a Miraheze wiki I administer. My hope was that it would generate a Files with no readable license category, as in Wikimedia Commons and related projects....
1 vote
1 answer
29 views

How do I enable edit button on Mobile for the Main Page of a MediaWiki?

I've enabled editing and it is available to all users on all pages but on mobile it is only available to users on all the pages except the Main Page.
5 votes
4 answers
8k views

How to get visits statistics from mediawiki page, without asking this from the admin?

I want to log / track unique page visits to a page in a mediawiki wiki, but I can't ask the this mediawiki admin to give me the data. If this was a page on my website I would just use statcounter.com....
2 votes
0 answers
52 views

I can't seem to be able to access my articles through my Mediawiki wiki anymore

Recently I decided to create a wiki using Mediawiki for my personal project. Everything was working beautifully, so I tried to set up file uploads. I eventually found that I have to edit the ...
1 vote
1 answer
116 views

How do I restart mediawiki on namecheap's shared hosting?

I just made a change for my mediawiki configuration in the LocalSettings.php file but I don't know how to restart mediawiki so that it picks up the configuration change. I installed mediawiki using ...
4 votes
1 answer
448 views

Is it possible to use the "Pages in category..." list in mediawiki in a template without an extension?

I would like to use a category page as a template to show the "Pages in category..." on another page, but when I attempt to template the category page it only shows the details written on ...
5 votes
2 answers
234 views

Suggestions for tracking a MediaWiki wiki with Git version control?

In my research I found that there seems to be no "single source of truth" for where to post MediaWiki questions. MediaWiki questions have been posted on these many Stack Exchange network ...
1 vote
3 answers
427 views

When MediaWiki has symbolic links to contents then LocalSettings.php is not found

I use Ubuntu 20.04, Apache/2.4.41 (Ubuntu), PHP 8.0.3 and mediawiki-1.35.1. I extracted mediawiki-1.35.1 archive in /var/www/html/, created symbolic link to its contents in another directory, for ...
2 votes
4 answers
480 views

How to set the keep me logged in box to true in Mediawiki Special:UserLogin

Can you force (or at least prompt) new users to keep themselves logged in? In order to reduce the likelihood of losing work, I would like the Special:UserLogin page to appear as
3 votes
1 answer
186 views

How to get a notification whenever a user creates a MediaWiki account?

I'm an administrator and bureaucrat on a few wikis. One wiki allows users to create their own account without approval. Spammers are taking advantage of it and spamming in their profiles. I checked ...
6 votes
3 answers
1k views

Why can't update.php connect to my database when my site connects to it just fine?

I'm trying to upgrade my MediaWiki installation. My site runs just fine locally at http://localhost:8888/. I can connect to my database using the "Socket" connection on Sequel Pro on port 8888. My ...
0 votes
0 answers
29 views

"Cannot Modify Header" error when moving MediaWiki to a subfolder on localhost

I installed, configured, and populated MediaWiki on localhost and have been maintaining my wiki locally for 4 years. Today I simply dragged the mediawiki folder into a subfolder I created for better ...
1 vote
1 answer
120 views

How do I redirect from an old domain to a new domain in MediaWiki and nginx?

I'm going to move from old domain to new domain. I fixed all the settings, but none worked. While entering the old domain name in the url, I will encounter the message of not redirecting to the new ...
2 votes
2 answers
239 views

MediaWiki setup is unable to log into root@localhost DB, but I can log into it via SSH

I'm setting up MediaWiki on an Ubuntu 18.04 server. After installing the mediawiki package I went to web installer and got to the "Connect to database" step. I'm using the following settings:...
4 votes
1 answer
475 views

Is it possible to hide Mediawiki redirect pages from showing in Special:AllPages?

Is it possible to hide redirect pages from showing in Special:AllPages when linked to in the sidebar? They currently are displayed italicized, which is the default.
3 votes
1 answer
265 views

mediawiki - make thumbnails of external images

So I have the code [[File:example.jpg|thumb|caption]]. This works fine for local images and files, but I want to host some images externally. I can't just replace example.jpg with a link though, ...
3 votes
1 answer
758 views

ServerAlias directive not working on Apache 2.4.49

I have an instance of WordPress set up at https://wordpressinstance.example. I have an instance of MediaWiki set up at https://mediawiki.wordpressinstance.example. The MediaWiki instance is ...
2 votes
1 answer
32 views

Updated MediaWiki to version 1.31. Now Spam Blacklist and Title Blacklist are causing errors

I had (I think) version 1.23 because that's what the auto-installer on my host put there. So I uploaded the files for 1.31 and ran the update.php script. The site seemed to run fine until I tried to ...
3 votes
1 answer
244 views

File ownership for mediawiki and semantic media wiki

I installed mediawiki & semantic mediawiki on a laptop with Ubuntu 20.04. Questions Should the www-data user own every file of mediawiki? Is it better to let root own the files? Should I run ...
0 votes
0 answers
54 views

How to use mathscr font in Mediawiki

I set up MediaWiki in Ubuntu under Windows 10 WSL2 environment with the math extension up and running. Everything seems fine but I cannot get the latex format \mathscr working. Software setup Ubuntu (...
1 vote
1 answer
29 views

How can I create a user that is not allowed to change its own password on mediawiki?

I am currently creating a mediawiki where there are administrators and writers, and everyone else in the project only needs read access. Our current approach is having all the read-only users share a ...
2 votes
2 answers
144 views

Do short URLs obligate 301 redirects?

Some content management systems such as WordPress and Drupal have Short URLs by default (if the webserver allows it), but at least one other --- MediaWiki, doesn't. Before I continue with the process ...
2 votes
0 answers
80 views

How to make a content management system to load webpages without a PHP loader and its query strings? [duplicate]

I have a MediaWiki 1.35.2 Hebrew website which is principally all core; I host that website on a shared Apache, Nginx (as reverse proxy), PHP and MySQL hosting environment. The default behavior of ...
1 vote
0 answers
81 views

I consider if I should delete a /load.php?lang= URL resource and I don't know if it would cause a problem

I have an Hebrew 1.35.1 all-core MediaWiki website; generally I have no significant performance problems reported in Google Page Speed insights with that website besides one problem which occurs in ...
0 votes
0 answers
111 views

Is it SEO problematic to create footnotes with frontend JavaScript?

I have an RTL (Hebrew) MediaWiki 1.34.0 website in which I am having a serious problem creating footnotes for articles with the core Extension:Cite because its de facto lack of support in Hebrew, as ...
6 votes
1 answer
637 views

Mediawiki: How to escape '=' in Template parameter values

I want to pass an URL to my Mediawiki template as a parameter, but if it contains =, it treats the URL as a named parameter. Therefore, the following does not find and replace the template parameter {{...
6 votes
1 answer
1k views

MediaWiki Error: Lua error: Internal error: The interpreter has terminated with signal "11"

I have a MediaWiki deployement at: http://wiki.tankpedia.org/ I have been importing templates from Wikipedia and am receiving a Lua error for the Convert template; the error is: Lua error: ...
2 votes
1 answer
227 views

How can I ban mediawiki logins from IPs that persistently fail?

I have a MediaWiki website and someone is trying to login as my WikiSysop user by guessing lots of passwords. What can I do to ban IPs if they exceed a threshold of failed login attempts? (Okay, no-...
1 vote
1 answer
93 views

Who is <admin> for install.php during Mediawiki install?

I'm installing Mediawiki 1.31 on CentOS 7. I'm following the instructions at Manual:Installing_MediaWiki. I'm having a trouble running install.php. An earlier step had me create the MySQL database ...
1 vote
0 answers
27 views

How to automate a tag for generating print-only and no-print Images in a specific Mediawiki skin?

I have multiple images in my wiki page that have to be set to 728px for the online version. I want these images to be printed with full resolution. I have long searched for a solution and in the end ...
1 vote
1 answer
125 views

Disable third-party composer scripts when running through composer.phar?

We have a MediaWiki update procedure at Website | mediawiki-install.txt. MediaWiki requires the use of developer tools like Composer on a production server. It is a bad idea, but we cannot change it. ...
1 vote
1 answer
66 views

Use a MediaWiki template argument both parsed and unparsed

Suppose I have a simple template Foo The wikitext {{{1}}} renders as <blockquote>{{{2}}}</blockquote> So including {{Foo|<nowiki>'''bold''' and ''italics''</nowiki>|'''...
3 votes
1 answer
50 views

Mediawiki - Method for $wgActionPaths on nginx

I'm trying to set up action path rewriting on my mediawiki 1.33 install with nginx 1.14.0 on Ubuntu 18.04 with php 7.2fpm. All the documentation I've been able to find on mediawiki.org and via ...
1 vote
0 answers
61 views

Cleanup after deleteArchivedFiles.php?

Running deleteArchivedFiles.php --delete produces hundreds of these: Searching for and deleting archived files... Notice - file '2oh3r45yhkkolh6rkar4vva7d31e1at.zip' not found in group 'deleted' ...
3 votes
1 answer
882 views

Delete all the pages on mediawiki

I am trying to delete all the pages, created on my mediawiki. I tried "Special:Nuke" , and these scripts: php maintenance/nukeNS.php --delete --all php deleteArchivedRevisions.php --delete php ...
5 votes
1 answer
78 views

Can it be destructive to disallow all MediaWiki:Special pages in robots.txt?

I consider preventing indexation of all of MediaWiki 1.33.0's Special pages; (In Hebrew, "מיוחד" means "special"): Disallow: /מיוחד:* Disallow: /index.php?title=מיוחד:* Disallow: /index.php%3Ftitle%...
3 votes
1 answer
99 views

<pre> tag generates a blue box behind the pre-formatted text and a table around it on the printable version. How to disable this?

I use Pre tags to embed code lines into my MediaWiki page. Problem is that Pre tag generates a blue-ish box behind the pre-formatted text which is parsed into a table when you set printable=yes in the ...
2 votes
0 answers
104 views

Is there a problem in adding Adsense verification code via JavaScript?

I work with a certain CMS (MediaWiki) in which there is no direct control over HTML (as there is in Drupal Twig files for example); Hence, in this case, I have to load my Adsense verification code via ...
1 vote
1 answer
327 views

MediaWiki: Hiding certain HTML elements for non-logged-in users

In a MediaWiki-based non-communal website there are some HTML elements that should be presented only for logged-in-users (an administration menu or some of its links). Usually if I want to hide ...
4 votes
5 answers
321 views

How are the sitemaps of big MediaWiki sites generated?

This question is related to my questions about things the filesystem of Wikipedia and generating sitemap for Wikipedia. It is more general. Problem: Suppose a site on MediaWiki with about 10,000 ...
0 votes
1 answer
189 views

MediaWiki: Avoid multiple page redirects

I have an all default MediaWiki website: No added CSS/JS, No added extensions or custom PHP. I run the homepage of that website in Google Pagespeed Insights and I get: MediaWiki: Avoid multiple ...
5 votes
1 answer
9k views

What is a "data-ad-slot" for Google Adsense and why is inline styling required?

I have this adsense ad code: <script async src="http://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js"></script> <ins class="adsbygoogle" style="display:inline-block;width:...
0 votes
1 answer
148 views

MediaWiki destroys CSS aesthetics for <code> tag

In MediaWiki:Common.css I gave these essential directives: code { display: block; } then I created an article with this content: <code> <x> <y> <z></z> ...
0 votes
1 answer
250 views

Adding HTML into the <head> HTML tag for all MediaWiki web pages

How to add HTML into the HTML tag for all MediaWiki web pages? In /skins/mySkin/includes/mySkinTemplate.php I didn't find anything that does with <head>. I found no global template file and I ...
2 votes
1 answer
147 views

How to know what are all the MediaWiki web pages without categories?

In some large wikis one might find some rare web pages that don't have categories (for example, when these pages were created, the creator forgot to add a category). How to know what are all the ...
0 votes
2 answers
121 views

What makes MediaWiki's LocalSettings.php file blank in web browsers?

I have a MediaWiki website; like any other MediaWiki website, it has a LocalSettings.php file. If I navigate in a browser to: https://example.com/LocalSettings.php either when logged in as an admin or ...
1 vote
2 answers
88 views

MediaWiki: How to find all web pages with a certain HTML tag?

Some of my MediaWiki web pages has the <pre> HTML tag and I need to replace generally all <pre> tags in the <code> tags. How to find all web pages with a certain HTML tag?

1
2 3 4 5 6