Jump to content

Project:Support desk/Flow/2022/01

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

Database Error 1176 Key 'page_name_title' doesn't exist

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.


Hey there, I'm running the latest Docker Hub Mediawiki container v 1.37.1, I've got the MinervaNeue, MobileFrontend and DarkMode extensions installed. The database server is another docker container running latest mariaDB. PHP version idk, the one that's bundled with the Mediawiki docker container. The wiki works like a charm, except I'm unable to list all pages using Special Pages > All pages. A key seems to be missing in my database. Unfortunately I could not find other people having this key missing. Do you have any suggestions how to fix this? None of the installed extensions should have altered a page name key in the database, and I don't know what my application's database schema updater is or how to run it.


[xxxxxxxxxxxxxxxxxxxxxxxx] /wiki/Spezial:Alle_Seiten Wikimedia\Rdbms\DBQueryError: A database query error has occurred. Did you forget to run your application's database schema updater after upgrading or after adding a new extension?

Please see https://www.mediawiki.org/wiki/Special:MyLanguage/Manual:Upgrading and https://www.mediawiki.org/wiki/Special:MyLanguage/Manual:How_to_debug for more information.

Error 1176: Key 'page_name_title' doesn't exist in table 'pawiki_page' (xxx.xxx.xxx.xxx)

Function: SpecialAllPages::showChunk

Query: SELECT page_namespace,page_title,page_is_redirect,page_id FROM `pawiki_page` FORCE INDEX (page_name_title) WHERE page_namespace = 0 AND (page_title >= '') ORDER BY page_title LIMIT 346

Backtrace:

from /var/www/html/includes/libs/rdbms/database/Database.php(1809)

#0 /var/www/html/includes/libs/rdbms/database/Database.php(1793): Wikimedia\Rdbms\Database->getQueryException(string, integer, string, string)

#1 /var/www/html/includes/libs/rdbms/database/Database.php(1768): Wikimedia\Rdbms\Database->getQueryExceptionAndLog(string, integer, string, string)

#2 /var/www/html/includes/libs/rdbms/database/Database.php(1327): Wikimedia\Rdbms\Database->reportQueryError(string, integer, string, string, boolean)

#3 /var/www/html/includes/libs/rdbms/database/Database.php(2012): Wikimedia\Rdbms\Database->query(string, string, integer)

#4 /var/www/html/includes/libs/rdbms/database/DBConnRef.php(68): Wikimedia\Rdbms\Database->select(string, array, array, string, array)

#5 /var/www/html/includes/libs/rdbms/database/DBConnRef.php(324): Wikimedia\Rdbms\DBConnRef->__call(string, array)

#6 /var/www/html/includes/specials/SpecialAllPages.php(234): Wikimedia\Rdbms\DBConnRef->select(string, array, array, string, array)

#7 /var/www/html/includes/specials/SpecialAllPages.php(186): SpecialAllPages->showChunk(integer, string, string, boolean)

#8 /var/www/html/includes/specials/SpecialAllPages.php(107): SpecialAllPages->showToplevel(integer, NULL, NULL, boolean)

#9 /var/www/html/includes/specialpage/SpecialPage.php(647): SpecialAllPages->execute(NULL)

#10 /var/www/html/includes/specialpage/SpecialPageFactory.php(1366): SpecialPage->run(NULL)

#11 /var/www/html/includes/MediaWiki.php(314): MediaWiki\SpecialPage\SpecialPageFactory->executePath(string, RequestContext)

#12 /var/www/html/includes/MediaWiki.php(930): MediaWiki->performRequest()

#13 /var/www/html/includes/MediaWiki.php(564): MediaWiki->main()

#14 /var/www/html/index.php(53): MediaWiki->run()

#15 /var/www/html/index.php(46): wfIndexMain()

#16 {main} MagnificentMountain (talk) 02:45, 1 January 2022 (UTC)

Sometimes running update.php will re-add missing inexes. Might be worth a shot. Bawolff (talk) 07:04, 1 January 2022 (UTC)
Script ran 1.9 seconds and fixed it.Thanks a lot, Bawolff! MagnificentMountain (talk) 14:25, 1 January 2022 (UTC)
The discussion above is closed. Please do not modify it. No further edits should be made to this discussion.

Why does my database get smaller when I add pages?

I've been using MediaWiki (1.37.1) for a few days now to manage information for worldbuilding, and I love it! However, one thing I noticed after I set up an automatic backup script was that the size of the backup from mysqldump has been getting smaller, for some reason.

Yesterday (2021-12-31) the compressed (gzip) size of the database was 2MiB, and today (2022-01-01), it was 1.5MiB, despite me adding quite a few pages to the wiki. Even uncompressed, yesterday's was 4.7MiB, todays is 4.1MiB. When I peek at the SQL, I'm seeing names from articles I added today, so it looks like the new data is all in there, and I don't seem to be losing old data either, yet the file size is smaller.

Does anyone know what's going on here? I'm mainly just looking for reassurance that I'm not losing anything, or if I am, how to stop that. Unfortunately, I can't link to the wiki, as it's private. MollyMaclachlan (talk) 18:31, 1 January 2022 (UTC)

Try using the command diff -u on the uncompressed backups to see what was added/removed.
Potentially objectcache table might get smaller (if cache got cleared), but for the most part things should get bigger with time. Bawolff (talk) 19:45, 1 January 2022 (UTC)
Looks like that's it -- the objectache is significantly smaller on today's backup. Thank you! MollyMaclachlan (talk) 21:09, 1 January 2022 (UTC)
just fyi objectcache table is entirely ephemeral. Its probably safe to exclude from backups if you want smaller backups. Bawolff (talk) 23:13, 1 January 2022 (UTC)

Diceble account

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


Recovery 2409:4041:2615:DFB6:C1C:1EE0:BD91:82C5 (talk) 21:53, 2 January 2022 (UTC)

Please do read the sidebar and provide sufficient information. Thanks. Malyacko (talk) 21:54, 2 January 2022 (UTC)
The discussion above is closed. Please do not modify it. No further edits should be made to this discussion.

RewriteRule after moving to a new directory

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 successfully implemented Short URL — and, as part of this, moved my MediaWiki installation into a subdirectory "/w/" (previously it was located directly in "public_html").

Obviously, this renders all the old URLs for every page of my project obsolete — for example, a whole host of Google results reference my old structure and now lead to "404 - not found".

Could someone help me with the RewriteRules I need to place in my .htaccess file? Basically I want to change an old URL such as....

http://wiki.scotlandonair.com/index.php?title=Roundup

and have it altered to...

wiki.scotlandonair.com/wiki/Roundup

I'm not even sure whether I should be getting Apache to redirect to the Short URL address (above) or the longer form version, which is wiki.scotlandonair/com/w/index.php?title=Roundup I need this to work for every page in my installation, not just the example title given. Grahamstewart (talk) 22:49, 2 January 2022 (UTC)

How did you do what you have done so far?
Your answer probably is here: Manual:Short URL/Apache. Jonathan3 (talk) 11:26, 3 January 2022 (UTC)
Yes, it was the standard way as suggested in that link, so in LocalSettings (which sits in my /w directory) I have:
$wgScriptPath = "/w";
$wgArticlePath = "/wiki/$1";
And in my .htaccess file, which sits in the directory above, namely "public_html", I have:
RewriteRule ^/?wiki(/.*)?$ %{DOCUMENT_ROOT}/w/index.php [L]
RewriteRule ^/*$ %{DOCUMENT_ROOT}/w/index.php [L]
This works for me perfectly. But what I'm now looking for is a way redirect all the old URLs that pointed to my root and point them instead to the /w directory. Grahamstewart (talk) 13:51, 3 January 2022 (UTC)
Maybe get rid of the second RewriteRule line? Jonathan3 (talk) 15:31, 3 January 2022 (UTC)
That doesn't solve my problem - the second RewriteRule simply redirects anyone who arrives at the root — ie. wiki.scotlandonair.com/ — to the main page of my wiki, which is /w/index.php.
What I am looking to do is catch URLs which referenced the old location of my wiki which was in the root — ie. wiki.scotlandonair.com/index.php?title=Title_of_Page — and rewrite them to wiki.scotlandonair.com/wiki/Title_of_Page. Grahamstewart (talk) 16:39, 3 January 2022 (UTC)
Oh yes. What about something like RewriteRule "^index.php(.*)" %{DOCUMENT_ROOT}/w/index.php [L]?
Do you really want to have /wiki in the URL? If you wanted to keep it without that, then the following extract from the Short URL page seems relevant. I'm fairly sure it would mean that the old .com/index.php?title=xyz links would work as well as .com/xyz.

If you are using a root url instead of a normal short url you will need to use the following instead (to ensure that existing files and directories are not seen as article, e.g. "/index.php" "/images" etc.):
RewriteCond %{DOCUMENT_ROOT}%{REQUEST_URI} !-f
RewriteCond %{DOCUMENT_ROOT}%{REQUEST_URI} !-d
RewriteRule ^(.*)$ %{DOCUMENT_ROOT}/w/index.php [L] Jonathan3 (talk) 23:50, 3 January 2022 (UTC)
That first RewriteRule works perfectly! Like magic! :-) Thanks so much.
Only reason for having /wiki in the URL is that's what the MediaWiki.org Short URL help page seems to suggest. And it's what Wikipedia has — so I figure I can't be going too far wrong if I follow their example! Grahamstewart (talk) 00:03, 4 January 2022 (UTC)
I'm so pleased, mainly because it's mostly Greek to me too!
I can remember three reasons for them recommending that. The main one seems to be that having /wiki/ leads to fewer support queries :-) I wonder whether that is true. The others I've not found to be a problem - to do with being able to have other software on subdirectories (it is possible quite easily) and server load when people/scripts probe for scripts on the domain (if it's been a problem I've not noticed). Jonathan3 (talk) 08:27, 4 January 2022 (UTC)
The discussion above is closed. Please do not modify it. No further edits should be made to this discussion.

you should make sure you state the inaccuracy of the size of Africa

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 proportion of Africa on this MAP is skewed USA CHINA EUROPE & JAPAN can ALL fit into the LARGE CONTINENT of AFRICA! So why it appears SO small on so many maps is purposely MISLEEDING at best!


FIX THAT! OR AT LEAST MAKE THAT CLEAR 24.190.24.213 (talk) 02:20, 3 January 2022 (UTC)

If some specific page somewhere has some image, then feel free to bring that up on the corresponding talk page of that page. This support desk is about the MediaWiki software, not about content on some unmentioned website. Malyacko (talk) 08:00, 3 January 2022 (UTC)
The discussion above is closed. Please do not modify it. No further edits should be made to this discussion.

text functions

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 my LibreOffice calc text functions are not working, no execution 93.149.132.146 (talk) 07:56, 3 January 2022 (UTC)

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

Change maximum allowed time for DPL3

I see from the recent mailing list email Changes to maximum allowed time for RecentChanges and several other special pages that recent changes is now subject to a maximum database query execution time of 30 seconds, and DPL (Wikimedia) 10 seconds.

I use DPL3 and wonder whether I could do something similar - any ideas? Thanks. Jonathan3 (talk) 10:17, 3 January 2022 (UTC)

All code changes are public and linked, so I don't see why you couldn't. Malyacko (talk) 10:31, 3 January 2022 (UTC)
Cheers. Jonathan3 (talk) 11:14, 3 January 2022 (UTC)
I've had a look and now see that it's a change to the DPL (Wikimedia) extension. I'd initially thought it was a server setting. When I get a chance I'll mention it on the DPL3 talk page. Jonathan3 (talk) 16:18, 3 January 2022 (UTC)
What / why exactly to mention on the talk page? Malyacko (talk) 17:57, 3 January 2022 (UTC)
There are three DPL extensions. One is affected by this change. Another is the one I use. Jonathan3 (talk) 23:52, 3 January 2022 (UTC)

Fatal error when approaching 'category:XXXX'

Error: Class 'TraditionalImageGallery' not found

Backtrace:

from /var/www/clients/client338/web1403/web/includes/gallery/ImageGalleryBase.php(130)

#0 /var/www/clients/client338/web1403/web/includes/CategoryViewer.php(170): ImageGalleryBase::factory()

#1 /var/www/clients/client338/web1403/web/includes/CategoryViewer.php(123): CategoryViewer->clearCategoryState()

#2 /var/www/clients/client338/web1403/web/includes/page/CategoryPage.php(114): CategoryViewer->getHTML()

#3 /var/www/clients/client338/web1403/web/includes/EditPage.php(3660): CategoryPage->closeShowCategory()

#4 /var/www/clients/client338/web1403/web/includes/EditPage.php(3618): EditPage->showPreview()

#5 /var/www/clients/client338/web1403/web/includes/EditPage.php(2948): EditPage->displayPreviewArea()

#6 /var/www/clients/client338/web1403/web/includes/EditPage.php(726): EditPage->showEditForm()

#7 /var/www/clients/client338/web1403/web/includes/actions/EditAction.php(71): EditPage->edit()

#8 /var/www/clients/client338/web1403/web/includes/MediaWiki.php(531): EditAction->show()

#9 /var/www/clients/client338/web1403/web/includes/MediaWiki.php(315): MediaWiki->performAction()

#10 /var/www/clients/client338/web1403/web/includes/MediaWiki.php(913): MediaWiki->performRequest()

#11 /var/www/clients/client338/web1403/web/includes/MediaWiki.php(546): MediaWiki->main()

#12 /var/www/clients/client338/web1403/web/index.php(53): MediaWiki->run()

#13 /var/www/clients/client338/web1403/web/index.php(46): wfIndexMain()

#14 {main}


How can I fix this?

There already are ImageGalleryBase.php and TraditionalImageGallery.php in web/includes/gallery folder. 58.143.152.1 (talk) 17:51, 3 January 2022 (UTC)

Please see "Post a new question" in the sidebar. Malyacko (talk) 17:56, 3 January 2022 (UTC)
Sorry for incomplete quesion.
MediaWiki ver. : 1.36.2
PHP 7.4.25 (fpm-fcgi)
MariaDB : 10.5.12-MariaDB-1:10.5.12+maria~focal
ICU : 66.1 58.143.152.1 (talk) 18:12, 3 January 2022 (UTC)
If you have upgraded from a previous version, please follow Manual:Upgrading#Unpack_the_new_files, specially do not extract the new installation files over the old ones. Ciencia Al Poder (talk) 18:16, 3 January 2022 (UTC)
Yes, I did upgraded my homepage but I didn't extract new files over the old ones. I did install latest mediawiki version on new account and transport DB to new one. is it wrong method? 58.143.152.1 (talk) 18:21, 3 January 2022 (UTC)
That's the correct procedure. However, I don't understand why would you get that error if the file exists there.
Check if that file is not corrupted, and contains actual PHP code. Ciencia Al Poder (talk) 18:52, 3 January 2022 (UTC)
I had a problem on upgrade a while back where some ancient code (from MW 1.6 maybe) that had remained in LocalSettings.php meant that MediaWiki couldn't find files that were present.
It was a bit at the start that set the path variable. Removing that fixed it the problem. I can't remember fully, but I think it only caused a problem when I upgraded to MW 1.34. Jonathan3 (talk) 08:40, 4 January 2022 (UTC)

find the creator of an article with the API

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


I know I can query the contributors of a Wikipedia article using the API with a query like https://en.wikipedia.org/w/api.php?action=query&format=json&prop=contributors&titles=Foo Is there a way to get (only) the creator? Vexations (talk) 19:37, 3 January 2022 (UTC)

See API:Revisions. Example: https://www.mediawiki.org/w/api.php?action=query&prop=revisions&titles=Main%20Page&rvlimit=1&rvprop=user&rvdir=newer Malyacko (talk) 19:46, 3 January 2022 (UTC)
curl "https://en.wikipedia.org/w/api.php?action=query&format=json&titles=Foo&prop=revisions&rvlimit=1&rvprop=user&rvdir=newer" | jq .'query.pages |.[].revisions|.[]|.user'
does exactly what I wanted.
thanks! Vexations (talk) 20:08, 3 January 2022 (UTC)
The discussion above is closed. Please do not modify it. No further edits should be made to this discussion.

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


See title. 2001:569:FE39:5100:5445:7C8F:6828:3DB3 (talk) 00:21, 4 January 2022 (UTC)

Whatever "York's Gallery" is, you need to report that to the website that you refer to. Please read "Post a new question" in the sidebar - thanks. Malyacko (talk) 05:13, 4 January 2022 (UTC)
The discussion above is closed. Please do not modify it. No further edits should be made to this discussion.

Sign up in Wikitech

Hello, I am reading the Gerrit tutorial because I would like to add a pull request to the Semantic Drilldown extension, but when I try to create an account in the Special:CreateAccount page I am not able to register.

The error is:

⧼authmanager-authplugin-create-fail⧽

I tried several combinations of username and UNIX shell name.

Thank you. MarcoFalda (talk) 10:08, 4 January 2022 (UTC)

You should probably bring this up on phabricator Ciencia Al Poder (talk) 10:18, 4 January 2022 (UTC)
Uff. I reported this as phab:T298508 Malyacko (talk) 10:19, 4 January 2022 (UTC)

Don't know if I'm in the right place, let me know if not....

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


I'm in a local band whose description on google is tied to a local music wiki called "MusicWiki Detroit". The problem is that our lineup has changed significantly since the page was last updated but the admin of this particular wiki has been awol for, what looks like, 2 years or so. I can't get a response through the listed email and I can't edit the page without the approval of the admin. Am I totally screwed? is there someone higher up at MediaWiki can contact who can change it for me or delete the page?

I see that most of these are coding questions so I'm sorry this seems so unrelated, I just can't seem to figure out what to do. Seanymackk (talk) 15:47, 4 January 2022 (UTC)

Welcome to the support desk for the MediaWiki software. We have no control over (or contact with) third-party installations of MediaWiki on other websites. You'll have to contact the owners of that website instead. Malyacko (talk) 16:42, 4 January 2022 (UTC)
The discussion above is closed. Please do not modify it. No further edits should be made to this discussion.

On a Synology NAS self installed mediawiki will not display a skin?

I installed mediawiki with the Package Center and it looks fine with a skin but when I install mediawiki from site download it will not display the skin. Everything is moved to the left and no skin. No logo, no format, all the menus are their and the search and go buttons. Any ideas why the skin would not display? Bobhpti (talk) 17:05, 4 January 2022 (UTC)

Which version you installed? ↠Tanbirzx () 02:43, 5 January 2022 (UTC)
Often (but not always) this is a short url config problem. Mediawiki might think load.php is in the wrong place, or load.php is giving some sort of error.
Web browser developer console can be helpful in debugging these types of issues. Bawolff (talk) 05:40, 5 January 2022 (UTC)
See Manual:Common errors and symptoms#The wiki appears without styles applied and images are missing
The URL you posted (which was blocked by the filter) is: crm.ptikw.com
Trying to navigate to the URL crm.ptikw.com/load.php gives an HTTP 404 error page. This means either the file is missing, or the webserver is somewhat mapping it somewhere else Ciencia Al Poder (talk) 09:31, 5 January 2022 (UTC)

Internal Error when Saving page with template as content (due to AccessControl extension)

I run a private wiki running ver 1.37 and came across a weird behaviour when saving a page with a template as content.


The template is rather simple:

[[Media:{{{1}}}|{{{1}}}]]

When saving the wiki returns an Internal error:

[a04582356bb997b8eac995ef] 2022-01-04 18:39:15: Fatal exception of type "InvalidArgumentException"

After that the page can no longer be edited.


The same happens when transcluding a page with {{:Pagename}}


Does anybody can give a hint whats going on? 91.8.107.112 (talk) 18:45, 4 January 2022 (UTC)

Not without a stacktrace. :) See Manual:How to debug. Malyacko (talk) 19:55, 4 January 2022 (UTC)
Here is the stacktrace:
[cecb3d3c488e96553f01c578] /index.php/Test InvalidArgumentException: The given PageIdentity does not represent a proper page
Backtrace:
from /var/www/html/includes/page/WikiPageFactory.php(60)
#0 /var/www/html/includes/page/WikiPage.php(201): MediaWiki\Page\WikiPageFactory->newFromTitle(Title)
#1 /var/www/html/extensions/AccessControl/AccessControl.hooks.php(946): WikiPage::factory(Title)
#2 /var/www/html/extensions/AccessControl/AccessControl.hooks.php(408): AccessControlHooks::getContentPage(integer, string)
#3 /var/www/html/extensions/AccessControl/AccessControl.hooks.php(281): AccessControlHooks::allRightTags(string)
#4 /var/www/html/includes/HookContainer/HookContainer.php(338): AccessControlHooks::onuserCan(Title, User, string, string)
#5 /var/www/html/includes/HookContainer/HookContainer.php(137): MediaWiki\HookContainer\HookContainer->callLegacyHook(string, array, array, array)
#6 /var/www/html/includes/HookContainer/HookRunner.php(4067): MediaWiki\HookContainer\HookContainer->run(string, array)
#7 /var/www/html/includes/Permissions/PermissionManager.php(504): MediaWiki\HookContainer\HookRunner->onUserCan(Title, User, string, string)
#8 /var/www/html/includes/Permissions/PermissionManager.php(464): MediaWiki\Permissions\PermissionManager->checkPermissionHooks(string, User, array, string, boolean, Title)
#9 /var/www/html/includes/Permissions/PermissionManager.php(311): MediaWiki\Permissions\PermissionManager->getPermissionErrorsInternal(string, User, Title, string)
#10 /var/www/html/includes/Permissions/UserAuthority.php(259): MediaWiki\Permissions\PermissionManager->getPermissionErrors(string, User, Title, string)
#11 /var/www/html/includes/Permissions/UserAuthority.php(205): MediaWiki\Permissions\UserAuthority->internalCan(string, string, Title, MediaWiki\Permissions\PermissionStatus)
#12 /var/www/html/includes/user/User.php(4319): MediaWiki\Permissions\UserAuthority->authorizeRead(string, Title, MediaWiki\Permissions\PermissionStatus)
#13 /var/www/html/includes/MediaWiki.php(225): User->authorizeRead(string, Title, MediaWiki\Permissions\PermissionStatus)
#14 /var/www/html/includes/MediaWiki.php(925): MediaWiki->performRequest()
#15 /var/www/html/includes/MediaWiki.php(559): MediaWiki->main()
#16 /var/www/html/index.php(53): MediaWiki->run()
#17 /var/www/html/index.php(46): wfIndexMain()
#18 {main} 91.8.107.112 (talk) 19:10, 5 January 2022 (UTC)
Looks like Extension:AccessControl is not compatible with MediaWiki 1.37 yet... You'll have to uninstall it Ciencia Al Poder (talk) 12:07, 6 January 2022 (UTC)
Thats right. Uninstallng solves the problem. 91.8.107.112 (talk) 17:05, 6 January 2022 (UTC)
Next patch is for branch 'form-support' Extension:AccessControl and tested on LTS MediaWiki 1.39.2
diff --git a/AccessControl.hooks.php b/AccessControl.hooks.php
index 2307650..7b284ff 100644
--- a/AccessControl.hooks.php
+++ b/AccessControl.hooks.php
@@ -798,7 +798,7 @@ class AccessControlHooks {
                                        if ( empty( $array ) ) {
                                                foreach ( $MWgroups as $mwgroup ) {
                                                        if ( $item[0] === $mwgroup ) {
-                                                               foreach ( $wgUser->getEffectiveGroups() as $group ) {
+                                                               foreach ( $wgUser->getUserEffectiveGroups() as $group ) {
                                                                        if ( $group === $item[0] ) {
                                                                            /* Nemá smysl zjišťovat všechny skupiny. Stačí zjistit, jestli do ní patří aktuální uživatel a přidat ho
                                                                            */
@@ -938,8 +938,8 @@ class AccessControlHooks {
                // remove magic keys
                //TODO
 //             $start = microtime(true); // START DEBUG TIMESTAMP
-               $gt = Title::makeTitle( $ns, $title );
-               if ( $gt->isSpecialPage() ) {
+               $gt = Title::makeTitleSafe( $ns, $title, $fragment= '', $interwiki= '');
+               if ( $gt === null || $gt->isSpecialPage() ) {
                        // Can't create WikiPage for special page
                        return '';
                }
Want (talk) 20:27, 23 February 2023 (UTC)

Viewing old MediaWiki site

I had a MediaWiki site up to version 1.21, and have downloaded 2 databases for it onto my local hard drive, one the wikidb, and the other my site's database. The site stopped functioning due to server upgrades and most of the content was migrated to a new server and URL, and is no longer a MediaWiki. I would now just like to see the old MediaWiki site's data on my local drive to remind myself what was there.

Can I download the new MediaWiki software on my local hard drive and see the old site? Or do I need to recreate a "server" somehow?

Thanks. 70.24.10.250 (talk) 19:50, 4 January 2022 (UTC)

You could install a server software locally on your hard drive only. Malyacko (talk) 19:55, 4 January 2022 (UTC)
Thanks, Malyacko. Can you recommend a simple server installation?... 70.24.10.250 (talk) 20:00, 4 January 2022 (UTC)
Manual:Installation guide Malyacko (talk) 21:14, 4 January 2022 (UTC)

MySQL/MariaDB database user privileges

A summary of Project:Support desk/Flow/2020/11#h-Correct_privileges_for_database_user-2020-11-13T22:43:00.000Z from a year ago is that, despite the Manual:Installing MediaWiki (and other) instructions saying to GRANT ALL PRIVILEGES to the (normal) user, it is better to:

  1. For the normal user, just grant SELECT, INSERT, UPDATE, LOCK TABLES and DELETE.
  2. Create an admin user, with less than ALL privileges, and set Manual:$wgDBadminuser.

My questions are (2 and 3 are new):

  1. Is the above still the correct advice for the normal user? (I didn't forgot to do anything about it last year!)
  2. Are there any extensions that would require more than the above (e.g. Cargo, DPL3, External Data, ReplaceText...)
  3. Which exact privileges should the admin user be granted?

Thanks. Jonathan3 (talk) 20:59, 4 January 2022 (UTC)

1. Generally yes - its more secure to grant less privs.
The key privs to restrict are SUPER and FILE which are very dangerous, but the more locked down the better.
2. Yes. Most don't but i think cargo and SMW require more
3. At the very least, privs to create tables, create indexes, and alter tables. There might be others but those are what comes to mind.
Generally you can go restricted, wait for errors, and add things as neccesary. Bawolff (talk) 05:38, 5 January 2022 (UTC)
Thank you.
I expect everybody has used GRANT ALL PRIVILEGES, but if anybody reading this has got MediaWiki working with fewer privileges I would be interested to hear the details :-)
I've asked in relation to Cargo specifically on the Cargo talk page: Extension_talk:Cargo#MySQL/MariaDB_database_user_privileges_required_by_Cargo. Jonathan3 (talk) 11:58, 5 January 2022 (UTC)
My database user has only SELECT,INSERT,UPDATE,DELETE privileges on all objects of the wiki database, while the admin one has all privileges. We don't use Cargo, SMW nor other extensions that would require further privileges. Ciencia Al Poder (talk) 12:11, 6 January 2022 (UTC)

MediaWiki internal error - Illegal mix of collations (latin1_bin,IMPLICIT) and (utf8mb4_unicode_ci,COERCIBLE) for operation '=' (localhost)

Mediawiki 1.35
Mariadb 10.6.5-MariaDB-log

In order to have full utf8mb4 support on my mariadb service, I added the following 2 lines to my.cnf:

[mysqld] character-set-server = utf8mb4
[mysqld] collation-server = utf8mb4_unicode_ci

to my.cfg .. which worked fine for mariadb, but caused mediawiki to generate the following internal error upon login:

Original exception: [YdS6pVK0ozFSTMf9ZuIXPgAAAAQ] /emw/index.php/Main_Page?requestDebug Wikimedia\Rdbms\DBQueryError from line 1699 of /opt/htdocs/mediawiki/includes/libs/rdbms/database/Database.php: A database query error has occurred. Did you forget to run your application's database schema updater after upgrading?

Error 1267: Illegal mix of collations (latin1_bin,IMPLICIT) and (utf8mb4_unicode_ci,COERCIBLE) for operation '=' (localhost)
Function: LinkCache::fetchPageRow
Query: SELECT page_id,page_len,page_is_redirect,page_latest,page_restrictions,page_content_model,page_touched FROM `page` WHERE page_namespace = 8 AND page_title = '≡' LIMIT 1

Backtrace:
#0 /opt/htdocs/mediawiki/includes/libs/rdbms/database/Database.php(1683): Wikimedia\Rdbms\Database->getQueryException(string, integer, string, string)
#1 /opt/htdocs/mediawiki/includes/libs/rdbms/database/Database.php(1658): Wikimedia\Rdbms\Database->getQueryExceptionAndLog(string, integer, string, string)
#2 /opt/htdocs/mediawiki/includes/libs/rdbms/database/Database.php(1227): Wikimedia\Rdbms\Database->reportQueryError(string, integer, string, string, boolean)
#3 /opt/htdocs/mediawiki/includes/libs/rdbms/database/Database.php(1907): Wikimedia\Rdbms\Database->query(string, string, integer)
#4 /opt/htdocs/mediawiki/includes/libs/rdbms/database/Database.php(2007): Wikimedia\Rdbms\Database->select(string, array, array, string, array, array)
#5 /opt/htdocs/mediawiki/includes/libs/rdbms/database/DBConnRef.php(68): Wikimedia\Rdbms\Database->selectRow(string, array, array, string)
#6 /opt/htdocs/mediawiki/includes/libs/rdbms/database/DBConnRef.php(331): Wikimedia\Rdbms\DBConnRef->__call(string, array)
#7 /opt/htdocs/mediawiki/includes/cache/LinkCache.php(330): Wikimedia\Rdbms\DBConnRef->selectRow(string, array, array, string)
#8 /opt/htdocs/mediawiki/includes/cache/LinkCache.php(271): LinkCache->fetchPageRow(Wikimedia\Rdbms\MaintainableDBConnRef, Title)
#9 /opt/htdocs/mediawiki/includes/libs/objectcache/wancache/WANObjectCache.php(1529): LinkCache->{closure}(boolean, integer, array, NULL, array)
#10 /opt/htdocs/mediawiki/includes/libs/objectcache/wancache/WANObjectCache.php(1376): WANObjectCache->fetchOrRegenerate(string, integer, Closure, array, array)
#11 /opt/htdocs/mediawiki/includes/cache/LinkCache.php(276): WANObjectCache->getWithSetCallback(string, integer, Closure)
#12 /opt/htdocs/mediawiki/includes/Title.php(3237): LinkCache->addLinkObj(Title)
#13 /opt/htdocs/mediawiki/includes/Revision/RevisionStore.php(2883): Title->getArticleID()
#14 /opt/htdocs/mediawiki/includes/cache/MessageCache.php(1196): MediaWiki\Revision\RevisionStore->getKnownCurrentRevision(Title)
#15 /opt/htdocs/mediawiki/includes/libs/objectcache/wancache/WANObjectCache.php(1529): MessageCache->{closure}(boolean, integer, array, NULL, array)
#16 /opt/htdocs/mediawiki/includes/libs/objectcache/wancache/WANObjectCache.php(1376): WANObjectCache->fetchOrRegenerate(string, integer, Closure, array, array)
#17 /opt/htdocs/mediawiki/includes/cache/MessageCache.php(1222): WANObjectCache->getWithSetCallback(string, integer, Closure)
#18 /opt/htdocs/mediawiki/includes/libs/objectcache/BagOStuff.php(149): MessageCache->{closure}(integer)
#19 /opt/htdocs/mediawiki/includes/cache/MessageCache.php(1224): BagOStuff->getWithSetCallback(string, integer, Closure)
#20 /opt/htdocs/mediawiki/includes/cache/MessageCache.php(1137): MessageCache->loadCachedMessagePageEntry(string, string, string)
#21 /opt/htdocs/mediawiki/includes/cache/MessageCache.php(1034): MessageCache->getMsgFromNamespace(string, string)
#22 /opt/htdocs/mediawiki/includes/cache/MessageCache.php(1005): MessageCache->getMessageForLang(LanguageEn, string, boolean, array)
#23 /opt/htdocs/mediawiki/includes/cache/MessageCache.php(947): MessageCache->getMessageFromFallbackChain(LanguageEn, string, boolean)
#24 /opt/htdocs/mediawiki/includes/language/Message.php(1304): MessageCache->get(string, boolean, LanguageEn)
#25 /opt/htdocs/mediawiki/includes/language/Message.php(1002): Message->fetchMessage()
#26 /opt/htdocs/mediawiki/includes/skins/BaseTemplate.php(150): Message->exists()
#27 /opt/htdocs/mediawiki/skins/chameleon/src/ChameleonTemplate.php(128): BaseTemplate->getSidebar(array)
#28 /opt/htdocs/mediawiki/skins/chameleon/src/Components/NavMenu.php(53): Skins\Chameleon\ChameleonTemplate->getSidebar(array)
#29 /opt/htdocs/mediawiki/skins/chameleon/src/Components/NavbarHorizontal/NavMenu.php(50): Skins\Chameleon\Components\NavMenu->getHtml()
#30 /opt/htdocs/mediawiki/skins/chameleon/src/Components/NavbarHorizontal.php(203): Skins\Chameleon\Components\NavbarHorizontal\NavMenu->getHtml()
#31 /opt/htdocs/mediawiki/skins/chameleon/src/Components/NavbarHorizontal.php(185): Skins\Chameleon\Components\NavbarHorizontal->buildNavBarElementFromDomElement(DOMElement)
#32 /opt/htdocs/mediawiki/skins/chameleon/src/Components/NavbarHorizontal.php(153): Skins\Chameleon\Components\NavbarHorizontal->buildAndCollectNavBarElementFromDomElement(DOMElement, array)
#33 /opt/htdocs/mediawiki/skins/chameleon/src/Components/NavbarHorizontal.php(123): Skins\Chameleon\Components\NavbarHorizontal->buildNavBarElementsFromDomTree()
#34 /opt/htdocs/mediawiki/skins/chameleon/src/Components/NavbarHorizontal.php(76): Skins\Chameleon\Components\NavbarHorizontal->buildNavBarComponents()
#35 /opt/htdocs/mediawiki/skins/chameleon/src/Components/NavbarHorizontal.php(59): Skins\Chameleon\Components\NavbarHorizontal->buildHtml()
#36 /opt/htdocs/mediawiki/skins/chameleon/src/Components/Modifications/Modification.php(170): Skins\Chameleon\Components\NavbarHorizontal->getHtml()
#37 /opt/htdocs/mediawiki/skins/chameleon/src/Components/Modifications/Modification.php(170): Skins\Chameleon\Components\Modifications\Modification->getHtml()
#38 /opt/htdocs/mediawiki/skins/chameleon/src/Components/Structure.php(54): Skins\Chameleon\Components\Modifications\Modification->getHtml()
#39 /opt/htdocs/mediawiki/skins/chameleon/src/ChameleonTemplate.php(50): Skins\Chameleon\Components\Structure->getHtml()
#40 /opt/htdocs/mediawiki/includes/skins/SkinTemplate.php(129): Skins\Chameleon\ChameleonTemplate->execute()
#41 /opt/htdocs/mediawiki/includes/skins/SkinTemplate.php(144): SkinTemplate->generateHTML()
#42 /opt/htdocs/mediawiki/includes/OutputPage.php(2622): SkinTemplate->outputPage()
#43 /opt/htdocs/mediawiki/includes/MediaWiki.php(952): OutputPage->output(boolean)
#44 /opt/htdocs/mediawiki/includes/MediaWiki.php(965): MediaWiki->{closure}()
#45 /opt/htdocs/mediawiki/includes/MediaWiki.php(548): MediaWiki->main()
#46 /opt/htdocs/mediawiki/index.php(53): MediaWiki->run()
#47 /opt/htdocs/mediawiki/index.php(46): wfIndexMain()
#48 {main}

Removing them resolves the problem, however, I am told utf8mb4 is a requirement for another open-source software application I am trying to run along-side of mediawiki (Moodle). Mediawiki was installed before I tried to make mariadb use utf8mb4.

My question is - Is it possible to switch mediawiki over to full utf8mb4 so there is no Illegal mix of collations?

Thanks!

/Rich Revansx (talk) 21:42, 4 January 2022 (UTC)

I think You would need to switch all the existing tables over as well (with ALTER statements). Probably should also change $wgDBTableOptions
That said, mysql supports having different collations for different dbs and tables, so all this probably isn't neccesary for moodle. Bawolff (talk) 05:35, 5 January 2022 (UTC)

Comments

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.


Isn't there also a MediaWiki extension known as Comments? Because I can't find anything related to it. CheatCodes4ever (talk) 21:56, 4 January 2022 (UTC)

Are you talking about bot reply on commentbox?? ↠Tanbirzx () 02:35, 5 January 2022 (UTC)
Do you mean Extension:Comments? Bawolff (talk) 05:30, 5 January 2022 (UTC)
Yes I mean that. CheatCodes4ever (talk) 12:27, 5 January 2022 (UTC)
Removed CheatCodes4ever (talk) 12:26, 5 January 2022 (UTC)
The discussion above is closed. Please do not modify it. No further edits should be made to this discussion.

MediaWiki not working with InfinityFree

I get this error "Parsoid/RESTBase server (HTTP 400)" on https://nicetools.gq/wiki Webuser123 (talk) 00:27, 5 January 2022 (UTC)

I have the same issue. 31.20.233.39 (talk) 12:37, 27 January 2022 (UTC)

How to make the email input box in the Sign-Up form non-optional

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 would like to know if it is possible to make it mandatory to input an email in the create account form and how to do it instead of it being listed as an optional thing to do? Thanks Guillaume Taillefer (talk) 03:51, 5 January 2022 (UTC)

Set $wgEmailConfirmToEdit to true in your LocalSettings.php file. Note the additional consequences on the manual page. – Ammarpad (talk) 09:41, 5 January 2022 (UTC)
Thank you so much this was a great help! Guillaume Taillefer (talk) 13:54, 5 January 2022 (UTC)
The discussion above is closed. Please do not modify it. No further edits should be made to this discussion.

Non-interactive greyed out citations in the reference area

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 believe this is an issue with the Cite extension, but I have failed to find an answer for it anywhere. In the citation source area marked by <reference />, all the sources appear in a grey uninteractive box that cannot be used to navigate the inline citations. Strangely enough, the section appears to work normally for a few seconds upon loading the page, but once it is fully loaded, it breaks into what it is. I am attaching a picture for demonstration. 2001:1AE9:35C:7600:28F5:B1C:B75B:D11 (talk) 09:59, 5 January 2022 (UTC)

Where are you experiencing this ? —TheDJ (Not WMF) (talkcontribs) 12:40, 5 January 2022 (UTC)
The issue has been resolved. It was caused by the tinyMCE extension. We had to disable it. 2001:1AE9:35C:7600:28F5:B1C:B75B:D11 (talk) 22:22, 5 January 2022 (UTC)
The discussion above is closed. Please do not modify it. No further edits should be made to this discussion.

After migrating to bluehost.com any page with a % in the name no longer works

Greetings. I'm looking for a little help here regarding percent-encoding After migrating to bluehost.com any page with a % in the name no longer works.


Here are 2 pages that should work, but the one with a % does not.


http://www.milkthefunk.com/wiki/Spontaneous_Fermentation


http://www.milkthefunk.com/wiki/100%25_Brettanomyces_Fermentation


I just don't know where to look. it was all working prior to migration to this server and service. Rsteagall (talk) 14:04, 5 January 2022 (UTC)

This one works: http://www.milkthefunk.com/w/index.php?title=100%25_Brettanomyces_Fermentation
The error page is a bluehost one, not a MediaWiki one (e.g., it's different from when you type a non-existing page name). Maybe bluehost has some filter that block suspicious URLs, like the ones with % inside URL paths. Note that pretty URLs make URLs look like they're plain files/folders, rater than a URL parameter.
If you don't find anything in the configuration panel, it would be better to contact Bluehost support Ciencia Al Poder (talk) 14:10, 5 January 2022 (UTC)
The page doesn't work as expected. The page should be found and is a wiki on the site.
I do see what you are saying though about the error page. It's giving an error from the wordpress site that is at the root of the domain
Bluehost did tell me to come here for support like you suggested to go to Bluehost. So... I'm in the middle. :(
I'll go back and ask them about what you mention some kind of filter that might block pages with % inside the url. Rsteagall (talk) 14:51, 5 January 2022 (UTC)
Maybe Wordpress comes with an .htaccess file that's affecting your wiki. It would be interesting to see the root .htaccess and the one in your wiki's directory. Jonathan3 (talk) 16:23, 5 January 2022 (UTC)
I think its likely something to do with short urls or rewrite rule configs. Bawolff (talk) 16:53, 5 January 2022 (UTC)
I'm still not able to figure this out. I even tried creating a new page called "100% Test Page" http://www.milkthefunk.com/wiki/100%25_Test_Page and after creation it no longer works... I just don't understand what's not being allowed concerning a % and Bluehost hasn't been able to figure it out yet either. .htaccess is the same as it was on the server i migrated from.
if anyone has any other ideas, it would be greatly appreciated. Rsteagall (talk) 18:02, 5 January 2022 (UTC)
Jonathan3,
Here is my root .htaccess:
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteRule ^/?wiki(/.*)?$ %{DOCUMENT_ROOT}/w/index.php [L]
RewriteRule ^/?typing(/.*)?$ %{DOCUMENT_ROOT}/typ/index.php [L]
RewriteBase /
RewriteRule ^index\.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
RewriteRule ^/?w/images/thumb/[0-9a-f]/[0-9a-f][0-9a-f]/([^/]+)/([0-9]+)px-.*$ %{DOCUMENT_ROOT}/w/thumb.php?f=$1&width=$2 [L,QSA,B]
RewriteRule ^/?w/images/thumb/archive/[0-9a-f]/[0-9a-f][0-9a-f]/([^/]+)/([0-9]+)px-.*$ %{DOCUMENT_ROOT}/w/thumb.php?f=$1&width=$2&archived=1 [L,QSA,B]
RewriteRule ^/?typ/images/thumb/[0-9a-f]/[0-9a-f][0-9a-f]/([^/]+)/([0-9]+)px-.*$ %{DOCUMENT_ROOT}/typ/thumb.php?f=$1&width=$2 [L,QSA,B]
RewriteRule ^/?typ/images/thumb/archive/[0-9a-f]/[0-9a-f][0-9a-f]/([^/]+)/([0-9]+)px-.*$ %{DOCUMENT_ROOT}/typ/thumb.php?f=$1&width=$2&archived=1 [L,QSA,B]
</IfModule>
The one in my wiki directory doesn't exist just like it didn't exist on the server I migrated from. Rsteagall (talk) 18:05, 5 January 2022 (UTC)
Strange... it was determined that this link works: https://www.milkthefunk.com/w/index.php?title=100%25_Brettanomyces_Fermentation
Feeling more like a RewriteRule issue now, but i don't know what. Rsteagall (talk) 20:24, 5 January 2022 (UTC)
Your rewrite rules look good to me.
The behavior of your website is a bit different now. Instead of a 404 error, it returns a 400 Bad Request error. Ciencia Al Poder (talk) 20:45, 5 January 2022 (UTC)
Yea, that was me messing with it is why you saw the 400 error. Even then, it shouldn't be a 400 because the page does exist.
I put the .htaccess back to the original as I have it on the server (as it is above) I migrated from and still not working. It's just not liking % for some reason in a short url, but when you include the full url., it works like this one
https://www.milkthefunk.com/w/index.php?title=100%25_Brettanomyces_Fermentation
The same shortened url doesn't work - http://www.milkthefunk.com/wiki/100%25_Brettanomyces_Fermentation
Both those pages are the same thing and should display the same Rsteagall (talk) 21:12, 5 January 2022 (UTC)
Here is what I got from Bluehost:
Hello Ryan,

Thank you for contacting the Support. I'm Harshendra and handling the case# 37796616. I understand it is important for you to get the pages of website working. I recognize how important it is to get this resolved at the earliest. From the documented notes, I understand that the website Mediawiki urls of the website aren't loading after migration. Please accept my sincere apologies if you experienced any inconvenience due to this issue. We haven't disabled or blocking the website function to run with the url encoding. I have tried to import the database of WordPress to a separate database named tmntltmy_db and got the same result. This issue can arise if the .htaccess has incorrect permalink script. Also the .htaccess file in public_html/milkthefunk had additional redirect code. I'm afraid commenting that also didn't help. However this indicate that there are some changes made in the files after the migration which could cause this issue. Since the website was recently migrated and this feature was working earlier, I advise you to contact the developer to migrate the website again taking fresh backup from previous host. If there are any changes made to the website to the website apart from wp-config.php(to update database details stored in Bluehost), that should resolve the issue. Please get back to us, if you have any additional questions. We will be happy to look into it and assist you. I appreciate your patience while I answered to your request. Thank you for allowing me the opportunity to assist you today. Regards, Harshendra K. Escalated support

Rsteagall (talk) 13:18, 6 January 2022 (UTC)

Could all of this be because the old server was php5.6 and is now php7.4? Rsteagall (talk) 20:01, 6 January 2022 (UTC)
unlikely. It seems like the issue is happening before php is involved. Bawolff (talk) 01:42, 7 January 2022 (UTC)
Why does this work - http://www.milkthefunk.com/w/index.php?title=100%25_Brettanomyces_Fermentation
But not this - http://www.milkthefunk.com/wiki/100%25_Brettanomyces_Fermentation
Yet anything without a % in the url works like this - http://www.milkthefunk.com/wiki/Kveik and like this https://www.milkthefunk.com/w/index.php?title=Kveik
? I'm going crazy. :( Rsteagall (talk) 20:18, 6 January 2022 (UTC)
Most lkkely because one is involving rewrite rules and one doesn't. Bawolff (talk) 01:44, 7 January 2022 (UTC)
This is just a low-quality, uneducated guess but hopefully no less helpful than the gobbledegook you quoted :-)
Maybe one thing is converting %25 back to % before trying again, and another thing just doesn't allow a % sign in that part of the URL (there's stuff about "unsafe" characters online, e.g. https://www.ietf.org/rfc/rfc1738.txt).
What happens when you put %25 (or %) in a URL in another part of your website, e.g. on Wordpress or just a php file, either in the path part or the query part? Jonathan3 (talk) 22:22, 6 January 2022 (UTC)
PHP has nothing to do with this. The redirect is done before MediaWiki gets hit, on the server level.
Maybe this setting is relevant? I don't think so, but who knows: https://httpd.apache.org/docs/2.4/mod/core.html#allowencodedslashes
Also, I note that not all rewrite rules on your .htaccess are working. For example, the lines about thumbnailing doesn't seem to work:
http://www.milkthefunk.com/w/images/thumb/2/2d/Spontaneous_starters_3.jpeg/90px-Spontaneous_starters_3.jpeg
This should get routed to thumb.php and generate the requested 90px thumbnail but it isn't. Ciencia Al Poder (talk) 22:24, 6 January 2022 (UTC)

How can I integrate "Matomo" in the footer? Example here ("Statistik"). Can't find a solution in the web. Maybe someone have a link. Vincenʈ  15:17, 5 January 2022 (UTC)

There is some information on the Manual:Footer page. Jonathan3 (talk) 16:21, 5 January 2022 (UTC)

Permission denied in SvgHandler.php on line 275

Hello, I'm testing Mediawiki on Windows 10 with Xampp to learn how it works before going live. As Xampp has GD installed regular images works but I can't get it to work with SVG-files and I have a lot of them. I have tried back and forth for a week with both ImageMagick and now with Inkscape but I keep getting this error: Warning: symlink(): Permission denied in C:\xampp\htdocs\Wiki\hjalplosa\includes\media\SvgHandler.php on line 275

What am I missing? Tompet61 (talk) 23:42, 5 January 2022 (UTC)

Symlink probably doesn't work on windows.i would suggest filing a bug at https://phabricator.wikimedia.org as this sounds like a bug. Bawolff (talk) 02:15, 6 January 2022 (UTC)

Mediawiki User Contribution Special Page - how to edit UI?

Hi Guys, I am setting up a private wiki for my superior where every colleague will input some data to this wiki, hence user contribution is important here. He wanted me to change the IP address or username : tab to become a pull down tab like namespace that includes all the available username. I search around the web and many said that it is nearly impossible to do that since need to edit the PHP code. I am newbie in PHP, after looking at the code in SpecialContribution.php, I have no idea what to do. Any method or ideas are most welcome. Thanks. Simuako (talk) 09:11, 6 January 2022 (UTC)

You hire someone who CAN do that.... —TheDJ (Not WMF) (talkcontribs) 11:10, 6 January 2022 (UTC)
I suppose this is not an option for me at the moment, haha. Simuako (talk) 01:47, 7 January 2022 (UTC)
Professional development and consulting Malyacko (talk) 11:14, 6 January 2022 (UTC)
Based on your experience level, hiring someone is probably your best bet. But if you want to learn how, an intro tutorial to php and HTMLForm would be a good starting point. Bawolff (talk) 01:41, 7 January 2022 (UTC)
For special pages, we need to edit the specialxxx.php file right? Simuako (talk) 01:48, 7 January 2022 (UTC)
Generally yes. Sometimes though it can be split across other files.
You can usually find which part of the code base by appending ?uselang=qqx (or &uselang=qqx ) to the url and searching (grepping) the code base for the i18n keys that are near the part you want to search Bawolff (talk) 07:45, 7 January 2022 (UTC)
Hi Bawolff, is there any example to achieve this? It is out of my ability. Simuako (talk) 08:03, 7 January 2022 (UTC)
See for example https://www.mediawiki.org/wiki/Special:Contributions/Malyacko?uselang=qqx . Pick whatever string is close and then search the codebase for that string and find the code you want to change. Malyacko (talk) 12:03, 7 January 2022 (UTC)

global rename requests

Where do they go? Someone reported yesterday they'd filled out the form at https://en.wikipedia.org/wiki/Special:GlobalRenameRequest. Where do those requests go? It's a new user, and I'd like to be able to check to make sure they completed the request correctly, but I can't figure out where the requests go. Valereee (talk) 18:10, 6 January 2022 (UTC)

This seems to be a question about processes on Wikimedia websites so it's probably best asked on meta.wikimedia.org. See also meta:Steward requests/Username changes. Malyacko (talk) 19:36, 6 January 2022 (UTC)
Thanks, @Malyacko. Honestly why is this so hard? Why are there no links to anything helpful? Valereee (talk) 19:50, 6 January 2022 (UTC)
It goes to a special page. I think you need to be a steward to view. Meta:Special:GlobalRenameQueue i think. Bawolff (talk) 01:35, 7 January 2022 (UTC)

Can't edit SMW property? Page is protected and I don't have permission

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.


Hey!

I created a property on my wiki without any issues. However, when I try to edit the same property I see the following message:


"This page is protected to prevent accidental data modification and can only be edited by users with the appropriate edit right ("") or user group.".


I am however signed in with a bureaucrat user that has also all smw admin rights. Is there something else that I need to configure?

EDIT: The strange thing is that I can edit some of the properties while some are protected and impossible to edit. Mukilol2 (talk) 19:42, 6 January 2022 (UTC)

Maybe this helps: https://www.semantic-mediawiki.org/wiki/Help:$smwgChangePropagationProtection Osnard (talk) 08:30, 7 January 2022 (UTC)
I had the same problems. It could only be fixed when deactivating the cache.
Changing the $smwgChangePropagationProtection did not help as long as the cache was active. 92.198.57.114 (talk) 09:12, 25 January 2022 (UTC)
same problem here. I'm using PHP-FPM with APC for caching. SMW gives me the above error message, if I change an attribute/add a poperty. Only a "systemctl restart php7.4-fpm.service" helps me. I think it's a SMW-issue. I'm using Mediawiki v1.35.7 and SMW 4.0.2. Stefan Kaifer (talk) 13:12, 29 July 2022 (UTC)
The discussion above is closed. Please do not modify it. No further edits should be made to this discussion.

LogicException about MessageCache when running update.php

When I add some exts and run update.php, it gives feedback below


Deduplicating ar_rev_id...

LogicException from line 406 of D:\EndWiki\includes\cache\MessageCache.php: Process cache for 'zh-cn' should be set by now.

#0 D:\EndWiki\includes\cache\MessageCache.php(1108): MessageCache->load('zh-cn')

#1 D:\EndWiki\includes\cache\MessageCache.php(1034): MessageCache->getMsgFromNamespace('Mainpage', 'zh-cn')

#2 D:\EndWiki\includes\cache\MessageCache.php(1005): MessageCache->getMessageForLang(Object(LanguageZh_hans), 'mainpage', true, Array)

#3 D:\EndWiki\includes\cache\MessageCache.php(947): MessageCache->getMessageFromFallbackChain(Object(LanguageZh_hans), 'mainpage', true)

#4 D:\EndWiki\includes\language\Message.php(1304): MessageCache->get('mainpage', true, Object(LanguageZh_hans))

#5 D:\EndWiki\includes\language\Message.php(862): Message->fetchMessage()

#6 D:\EndWiki\includes\language\Message.php(954): Message->toString('text')

#7 D:\EndWiki\includes\Title.php(661): Message->text()

#8 D:\EndWiki\maintenance\populateArchiveRevId.php(213): Title::newMainPage()

#9 D:\EndWiki\maintenance\populateArchiveRevId.php(118): PopulateArchiveRevId::makeDummyRevisionRow(Object(Wikimedia\Rdbms\MaintainableDBConnRef))

#10 D:\EndWiki\maintenance\deduplicateArchiveRevId.php(46): PopulateArchiveRevId::checkMysqlAutoIncrementBug(Object(Wikimedia\Rdbms\MaintainableDBConnRef))

#11 D:\EndWiki\maintenance\includes\LoggedUpdateMaintenance.php(45): DeduplicateArchiveRevId->doDBUpdates()

#12 D:\EndWiki\includes\installer\DatabaseUpdater.php(1153): LoggedUpdateMaintenance->execute()

#13 D:\EndWiki\includes\installer\DatabaseUpdater.php(554): DatabaseUpdater->runMaintenance('DeduplicateArch...', 'maintenance/ded...')

#14 D:\EndWiki\includes\installer\DatabaseUpdater.php(517): DatabaseUpdater->runUpdates(Array, false)

#15 D:\EndWiki\maintenance\update.php(181): DatabaseUpdater->doUpdates(Array)

#16 D:\EndWiki\maintenance\doMaintenance.php(107): UpdateMediaWiki->execute()

#17 D:\EndWiki\maintenance\update.php(260): require_once('D:\\EndWiki\\main...')

#18 {main}


MediaWiki 1.35.5

PHP 7.4.27

MySQL 8.0.27 Awosoem (talk) 11:07, 7 January 2022 (UTC)

See phab:T258860 for similar report. No apparent solution yet. – Ammarpad (talk) 17:36, 7 January 2022 (UTC)

Pages lost (?) after upgrading, problem with special characters

Hi,

after upgrading to 1.37.1 all wiki-pages with titles, that contain a special character (like ü, ä, …) are no longer found.

The overview-page only shows blank fields for such pages: https://www.dirk-bechtel.de/wiki/index.php?title=Spezial:Alle_Seiten


Also, searching for any of these pages, like "Verbände", results in this error code:

[df4b1ff3e8eb3223f0f25370] 2022-01-07 14:11:37: Fataler Ausnahmefehler des Typs „Wikimedia\Assert\PreconditionException“

https://www.dirk-bechtel.de/wiki/index.php?search=Verbände


Does anybody know how to fix this?

MediaWiki 1.37.1

PHP 7.4.27

MySQL 8.0.26-16


Thanks in advance

Dirk Dirk Bechtel (talk) 14:16, 7 January 2022 (UTC)

Does this also happen if you disable all extensions temporarily ?
If not, you will have to retrieve the full error report from the logs. See also: Manual:How_to_debug#LoggingTheDJ (Not WMF) (talkcontribs) 20:44, 7 January 2022 (UTC)
Thanks you. Yes, it happens also without any extension.
Unfortunately I don't understand, how to get an error report – the instructions there don't help me. (I don't know if "the directory is writeable" or how to change this.) Dirk Bechtel (talk) 14:45, 9 January 2022 (UTC)

Howto run maintenance scripts in multi-site setup?

I have a multi-site setup. How do I run the maintenance scripts from the command line? 134.215.127.26 (talk) 16:02, 7 January 2022 (UTC)

This Manual:Wiki_family#Updating_wikifarm_from_the_commandline may help – Ammarpad (talk) 17:34, 7 January 2022 (UTC)
Thank you! Very useful link 134.215.127.26 (talk) 18:47, 7 January 2022 (UTC)

Zugriff auf "Autoren"

Ich habe keinen Zugriff mehr auf "Autoren", "Fehler beim Abruf der Wikiwho API: unbekannt."

Was tun? F. Peter Müller (talk) 16:19, 8 January 2022 (UTC)

Please see "Post a new question" in the sidebar, and provide steps to reproduce. Malyacko (talk) 17:55, 8 January 2022 (UTC)
wikiwho.net is broken again. No idea who maintains that, it's not part of Wikimedia at least. —TheDJ (Not WMF) (talkcontribs) 00:40, 9 January 2022 (UTC)
See https://github.com/wikiwho/WikiWho/issues and phab:T293386 for the bigger issue to sort out. Malyacko (talk) 08:54, 9 January 2022 (UTC)

Can't add the warning template to my wiki

I'm trying to add Wikipedia's warning template to my wiki. I exported it using Special:Export and imported it successfully. However, when I open the page Template:Warning, I see the following in bold red text:

Lua error: Internal error: The interpreter exited with status 1. Lua error: Internal error: The interpreter exited with status 1.

My MediaWiki version is 1.37.0, my PHP version is 8.0.13 and my database is MySQL. AnonymousStackOverflow (talk) 17:34, 8 January 2022 (UTC)

What is "Wikipedia's warning template" and where? Please also see "Post a new question" in the sidebar. Malyacko (talk) 17:55, 8 January 2022 (UTC)
I'm referring to the English Wikipedia page "Template:Warning". AnonymousStackOverflow (talk) 17:58, 8 January 2022 (UTC)
Please see "Post a new question" in the sidebar. Malyacko (talk) 18:06, 8 January 2022 (UTC)
Okay, I've added my versions. AnonymousStackOverflow (talk) 18:10, 8 January 2022 (UTC)
I've added the log file and it logged the error '""C:\Program' is not recognized as an internal or external command,
operable program or batch file. three times. Does LUA not work when there are spaces in the path name? AnonymousStackOverflow (talk) 18:33, 8 January 2022 (UTC)
Thanks. See Extension:Scribunto#Troubleshooting. Malyacko (talk) 18:14, 8 January 2022 (UTC)

Test for line return in template parameter

Is it possible to work out whether a template parameter contains a line return? For example:

{{templatename|First paragraph.

Second paragraph.}}

Thanks. Jonathan3 (talk) 01:03, 9 January 2022 (UTC)

I imagine you can with scribunto Bawolff (talk) 08:24, 9 January 2022 (UTC)

Hire developer to setup MediaWiki with Cargo

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


I have installed MediaWiki and been struggling to understand how Cargo works, so I need to hire a freelancer to set it up for me, but I cannot find anyone with this specific skill/experience, only MediaWiki.

Where can I find a freelancer for this job or what skills should I search for except "MediaWiki"? 180.190.30.151 (talk) 10:41, 9 January 2022 (UTC)

You could try the developer of that extension, or more generally look through Professional development and consulting. Clump (talk) 13:55, 9 January 2022 (UTC)
Thank you! 180.190.30.151 (talk) 14:49, 9 January 2022 (UTC)
The discussion above is closed. Please do not modify it. No further edits should be made to this discussion.

Can I use my ssi.php to validate a user's access?

I have a SMF forum that includes an ssi.php file.
I'd like to validate their user group to allow or restrict page access. Is this possible? 47.221.54.51 (talk) 17:06, 9 January 2022 (UTC)
What is "SMF"? Please also see "Post a new question" in the sidebar. Malyacko (talk) 19:04, 9 January 2022 (UTC)
It's Simple Machines Forum, forum software whose link to MediaWiki it its documentation... as is common, its sidebar Help link goes straight to MediaWiki.org's Help page. Jonathan3 (talk) 06:10, 10 January 2022 (UTC)

Replace templates?

Say I have a template "a" ({{a}}) and another template "b" ({{b}}).

Is it possible to replace all instances of {{a}} with {{b}}. I don't just mean so that {{b}} renders instead of {{a}} (done through redirect/subst), but so that {{b}} appears instead of {{a}} when you go to edit the page? Does that make a lick of sense? Thatgaypigeon (talk) 18:58, 9 January 2022 (UTC)

Try extension:ReplaceText Bawolff (talk) 03:59, 10 January 2022 (UTC)

Login for Meza installation

In the very last step of the installation instructions of the MEZA setup (https://www.mediawiki.org/wiki/User:Revansx/meza/Installing_MEZA_on_a_local_VM_from_scratch) , the login "Admin" with password "adminpass" is specified.

I can't log in to the wiki with it. Do "Admin" and "adminpass" stand for the exact login data here or are these placeholders?

thanks for a short hint which login can be used here?

I would love to finally be able to test the wiki ;-) Stefflthal (talk) 19:02, 9 January 2022 (UTC)

Mediawiki Error Message

Hello. I tried to open mediawiki through turning on apache and mySQL, and I noticed MySQL crashed right when I turned it on. I looked into some forums and found that to fix it you needed to move some files in the backups MySQL folder in XAMPP to the data folder. This stopped MySQL from crashing, but afterwards whenever I tried to open my localhost wiki, I got this error message:


[5bb514e99fdf02676f264c32] 2022-01-09 23:10:44: Fatal exception of type Wikimedia\Rdbms\DBQueryError


I was doing some searching and I read that you need to run update.php to do this, but I don't know how. I have little experience with using MediaWiki beyond some simple things or doing anything advanced on a computer. Alternatively, I have thought about just moving my contents in Mediawiki onto a google doc (because I just use it for notekeeping), but I don't know how to. It seems from my searching that the contents of your wiki aren't stored on a text file. How would I either solve this error or access the contents of my wiki? Thanks! 147.92.69.198 (talk) 23:24, 9 January 2022 (UTC)

Please set $wgShowExceptionDetails=true; in LocalSettings.php to get full error message.
However it sounds likely something is broken with your db. Just because it stopped immediately crashing does not mean its fixed. Bawolff (talk) 03:58, 10 January 2022 (UTC)
Thanks for the quick response. I set $wgShowExceptionDetails to true and got the following error message when I tried reopening the wiki again:
[f08fc2ed73c615b8154b1ceb] /mediawiki/mediawiki-1.34.0/index.php/Main_Page Wikimedia\Rdbms\DBQueryError from line 1603 of C:\xampp\htdocs\mediawiki\mediawiki-1.34.0\includes\libs\rdbms\database\Database.php: A database query error has occurred. Did you forget to run your application's database schema updater after upgrading?
Query: SELECT user_id,user_name,user_real_name,user_email,user_touched,user_token,user_email_authenticated,user_email_token,user_email_token_expires,user_registration,user_editcount,user_actor.actor_id FROM `SpectrumProjectuser` JOIN `SpectrumProjectactor` `user_actor` ON ((user_actor.actor_user = user_id)) WHERE user_id = '1' LIMIT 1
Function: User::loadFromDatabase
Error: 1932 Table 'the_spectrum_project.spectrumprojectuser' doesn't exist in engine (localhost)
Backtrace:
#0 C:\xampp\htdocs\mediawiki\mediawiki-1.34.0\includes\libs\rdbms\database\Database.php(1574): Wikimedia\Rdbms\Database->getQueryExceptionAndLog(string, integer, string, string)
#1 C:\xampp\htdocs\mediawiki\mediawiki-1.34.0\includes\libs\rdbms\database\Database.php(1152): Wikimedia\Rdbms\Database->reportQueryError(string, integer, string, string, boolean)
#2 C:\xampp\htdocs\mediawiki\mediawiki-1.34.0\includes\libs\rdbms\database\Database.php(1807): Wikimedia\Rdbms\Database->query(string, string)
#3 C:\xampp\htdocs\mediawiki\mediawiki-1.34.0\includes\libs\rdbms\database\Database.php(1899): Wikimedia\Rdbms\Database->select(array, array, array, string, array, array)
#4 C:\xampp\htdocs\mediawiki\mediawiki-1.34.0\includes\libs\rdbms\database\DBConnRef.php(68): Wikimedia\Rdbms\Database->selectRow(array, array, array, string, array, array)
#5 C:\xampp\htdocs\mediawiki\mediawiki-1.34.0\includes\libs\rdbms\database\DBConnRef.php(333): Wikimedia\Rdbms\DBConnRef->__call(string, array)
#6 C:\xampp\htdocs\mediawiki\mediawiki-1.34.0\includes\user\User.php(1315): Wikimedia\Rdbms\DBConnRef->selectRow(array, array, array, string, array, array)
#7 C:\xampp\htdocs\mediawiki\mediawiki-1.34.0\includes\user\User.php(461): User->loadFromDatabase(integer)
#8 C:\xampp\htdocs\mediawiki\mediawiki-1.34.0\includes\libs\objectcache\wancache\WANObjectCache.php(1424): User->{closure}(boolean, integer, array, NULL)
#9 C:\xampp\htdocs\mediawiki\mediawiki-1.34.0\includes\libs\objectcache\wancache\WANObjectCache.php(1278): WANObjectCache->fetchOrRegenerate(string, integer, Closure, array)
#10 C:\xampp\htdocs\mediawiki\mediawiki-1.34.0\includes\user\User.php(485): WANObjectCache->getWithSetCallback(string, integer, Closure, array)
#11 C:\xampp\htdocs\mediawiki\mediawiki-1.34.0\includes\user\User.php(404): User->loadFromCache()
#12 C:\xampp\htdocs\mediawiki\mediawiki-1.34.0\includes\user\User.php(340): User->loadFromId(integer)
#13 C:\xampp\htdocs\mediawiki\mediawiki-1.34.0\includes\session\UserInfo.php(89): User->load()
#14 C:\xampp\htdocs\mediawiki\mediawiki-1.34.0\includes\session\CookieSessionProvider.php(122): MediaWiki\Session\UserInfo::newFromId(string)
#15 C:\xampp\htdocs\mediawiki\mediawiki-1.34.0\includes\session\SessionManager.php(466): MediaWiki\Session\CookieSessionProvider->provideSessionInfo(WebRequest)
#16 C:\xampp\htdocs\mediawiki\mediawiki-1.34.0\includes\session\SessionManager.php(191): MediaWiki\Session\SessionManager->getSessionInfoForRequest(WebRequest)
#17 C:\xampp\htdocs\mediawiki\mediawiki-1.34.0\includes\WebRequest.php(806): MediaWiki\Session\SessionManager->getSessionForRequest(WebRequest)
#18 C:\xampp\htdocs\mediawiki\mediawiki-1.34.0\includes\session\SessionManager.php(129): WebRequest->getSession()
#19 C:\xampp\htdocs\mediawiki\mediawiki-1.34.0\includes\Setup.php(827): MediaWiki\Session\SessionManager::getGlobalSession()
#20 C:\xampp\htdocs\mediawiki\mediawiki-1.34.0\includes\WebStart.php(81): require_once(string)
#21 C:\xampp\htdocs\mediawiki\mediawiki-1.34.0\index.php(41): require(string)
#22 {main} 199.167.25.114 (talk) 15:58, 10 January 2022 (UTC)
Do you know what extension may want a "the_spectrum_project" database to exist? Also, do you really run old and outdated MediaWiki 1.34.0? If so, then you have a security problem. Malyacko (talk) 16:44, 10 January 2022 (UTC)
its querying the user table so that's probably just their main db name. Bawolff (talk) 04:33, 11 January 2022 (UTC)
@Malyacko I got an account on MediaWiki so I'm no longer posting anonymously. I have 25 different extensions on my wiki but I'm not sure which wants the database to exist. I can't post the screenshot of the list, but the extensions I have are:
CategoryTree, Cite, CiteThisPage, CodeEditor, ConfirmEdit, Gadgets, ImageMap, InputBox, Interwiki, LocalisationUpdate, MultimediaViewer, Nuke, OATHAuth, PageImages, ParserFunctions, PdfHandler, Poem, Renameuder, ReplaceText, Scriblunto, SpamBlacklist, SyntaxHighlight_GeSHi, TextExtracts, TitleBlacklist, and WikiEditor.
And yes, I am running MediaWiki 1.34.0. What are the implications of this? Pyruvat3 ELO (talk) 17:28, 10 January 2022 (UTC)
I think whatever you did to stop your db from crashing deleted all data in it, so now mediawiki won't work (unless you reinstall) Bawolff (talk) 04:34, 11 January 2022 (UTC)

wgUsersNotifiedOnAllChanges

I applied the following commands:

$wgUsersNotifiedOnAllChanges = [ 'Admin' ];

I do not want FuzzyBot edits to be sent to the admin

please guide me

Thanks Sokote zaman (talk) 11:45, 10 January 2022 (UTC)

Would you please guide me? Sokote zaman (talk) 12:07, 11 January 2022 (UTC)
Manual:$wgUsersNotifiedOnAllChanges doesn't tell if it will ignore bot edits. Are FuzzyBot edits marked as bot? Ciencia Al Poder (talk) 12:27, 12 January 2022 (UTC)
Yes, fuzzyboot edits are as robots and this robot works in translation extension. Sokote zaman (talk) 12:48, 12 January 2022 (UTC)
It looks like it can't be done. Maybe ask to skip bots in a feature request? Ciencia Al Poder (talk) 14:13, 12 January 2022 (UTC)

Images not appearing in categories

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.


Hey,

I just inherited the maintenance of https://pathfinderwiki.com and updated it from 1.27 to version 1.35.5.


The problem we have is that images are not shown in their categories. An example is the image https://pathfinderwiki.com/wiki/File:Owlbear_statue.jpg which is not shown in https://pathfinderwiki.com/wiki/Category:Images_of_owlbears. The categories are assigned in the https://pathfinderwiki.com/wiki/Template:File that also uses Extension:ParserFunctions .


The interesting thing is that edited images are added to their categories. When I executed rebuildall.php they disappeared from those categories again, though.


I did try to rebuildall.php and there is no problem with non-executed jobs in the queue.


I am thankful for any help I can get with this. 178.20.94.103 (talk) 17:27, 10 January 2022 (UTC)

Your wiki seems a bit broken. Special:ApiSandbox doesn't work. Special:ExpandTemplates doesn't work. action=purge doesn't work. Trying to make sense of what's happening is very difficult.
Those categories are not registered with the image, according to https://pathfinderwiki.com/mediawiki/api.php?action=query&prop=categories&titles=File:Owlbear%20statue.jpg
The extension you're using that provides the {{#foreach:}} (that's not Extension:ParserFunctions) may have a bug and it's not working as expected Ciencia Al Poder (talk) 18:58, 11 January 2022 (UTC)
I am sorry about it being hard to debug. Those function seem to only work for registered user. I would be happy to provide you a throwaway account if that helps.
The {{#foreach}} function seems to come from Extension:LoopFunctions
The expanded image article looks like this:
== Summary == An [[owlbear]] statue graces a town square. ; &copy; 2010, [[Paizo Publishing, LLC]] ; Artist credit: [[Jon Hodgson]] ; Print source: [[Greg A. Vaughan]]. (2010). The Varnhold Vanishing. ''[[The Varnhold Vanishing]]'', p.&nbsp;4. [[Paizo Publishing, LLC]]. ISBN 978-1-60125-234-0 ; Web source: [[James Jacobs]].<nowiki> </nowiki>(April 19, 2010).<nowiki> </nowiki>''[SOMELINK The Unluckiest Owlbear: Part III]'', Paizo Blog. [[Category:Artwork from The Varnhold Vanishing]] [[Category:2010 artwork]] [[Category:Images of city landscapes]][[Category:Images of owlbears]][[Category:Images of statues]] [[Category:Artwork by Jon Hodgson]] [[Category:Uses File template]] == Licensing == {| class="licensing" | [[File:Green copyright.svg|64px|Copyright symbol]] || This is a '''copyrighted image''' that has been released by [[Paizo Inc.]] as part of their SOMELINK Community Use Policy] allowing reuse of unmodified artwork from approved products posted to the [SOMELINK Paizo Blog].[[Category:Paizo Blog images]] The '''copyright''' for it is owned by '''<span class="plainlinks">[SOMELINK Paizo Inc.]</span>''' and is '''used with permission''' under their '''Community Use Policy'''. Other uses of this image, on this Wiki or elsewhere, may be copyright infringement. For more information about Paizo's Community Use Policy, please visit [SOMELINK SOMELINK]. For more information about Paizo Inc. and Paizo products, please visit [SOMELINK]. ||[[File:CUP.svg|96px|Community Use Policy symbol]] |}[[Category:Community Use Policy images]]
178.20.92.81 (talk) 01:01, 12 January 2022 (UTC)
Looks like its some limitation of the extension, as one can read from Extension:LoopFunctions#Limitation:
> In the loop body, templates, parser functions, and variables are expanded before replacing the index variable by its values.
This probably means the extension can't be used to change categories or templates based on the loop. Even if categories display correctly on the page, this may be by how the MediaWiki parser works, which takes several parsing steps, but those categories seem to be parsed too late when they're no longer tracked inside the links tables and then the page is not populated into the category.
I'd recommend using lua for that (Extension:Scribunto) Ciencia Al Poder (talk) 09:25, 12 January 2022 (UTC)
Thank you very much. Replacing the loop function from that extension with a lua implementation that only processes the wikitext after executing the loop worked. 178.20.90.113 (talk) 14:29, 12 January 2022 (UTC)
The discussion above is closed. Please do not modify it. No further edits should be made to this discussion.

How to add my phone number to the top-left corner of the window?

MediaWiki 1.36.1 with Skin:Timeless.
My header is basically like:
| Search box | Site name |
I want to (responsively) making it like:
| Phone number | Search box | Site name |
But, I want to do so without any PHP and/or CSS customization myself and desirably also without installing any extensions.
Is there any "out of box" solution? 109.64.133.223 (talk) 17:34, 10 January 2022 (UTC)
No, there is not. If you want to change software the behavior of software and there are no "add some random stuff at some random place" configuration settings (which would be hard anyway), you have to adjust some code. Malyacko (talk) 19:11, 10 January 2022 (UTC)
Any suggestions how to do that by customizing Timeless's PHP code? 109.64.133.223 (talk) 19:57, 10 January 2022 (UTC)
Somehere who has done it? Perhaps a "Timeless specialist" in the crowd? 109.64.133.223 (talk) 09:27, 13 January 2022 (UTC)

Can not see my pictures

Hello!

I can not see my pictures. I make an entry like [[File:wiki.png|thumb|Anton Kohlhaas "Zuckertoni"]] but i can't see the picture like downstairs. I see only a white surface. Beulemann (talk) 19:26, 10 January 2022 (UTC)

Please see "Post a new question" in the sidebar, and check the "network" and "console" tab of your web browser's developer tools. Malyacko (talk) 21:09, 10 January 2022 (UTC)

someone created a page about me without my permission and i need to change the information

I am in the process of updating my artist statement and came across this page with incorrect information about me. I need to edit it immediately Jlbaptiste (talk) 19:50, 10 January 2022 (UTC)

@Jlbaptiste Whatever website that is about, please contact that website. This support desk is for questions about using the MediaWiki software itself, not for content on some websites. Thanks! Malyacko (talk) 21:09, 10 January 2022 (UTC)

login and main page

hi i want users to view only main page and create account i can prevent users from going beyond main page but than i cant create login from the outside of admin it keep reverting back to you must login or join and when i select join it goes back to log.


so any user can see main page than login to there own private area and than have pages that have to do with other pages on site viewed by category or user in a group


hope that makes sense! 2604:3D09:F81:FA00:1531:8929:554C:7DDA (talk) 19:54, 10 January 2022 (UTC)

Please see "Post a new question" in the sidebar, and see Manual:Preventing access for what's (not) possible. Malyacko (talk) 21:07, 10 January 2022 (UTC)

How to access Wiki Database

Hello guys!!

I'm currently struggled on how to access wiki database...

before explain my problems, here's my versions of wiki


OS: Ubuntu 20.04 Server

Mediawiki 1.36.2

Apache2

MySQL

PHP 7.3


the only thing that i want is access Wiki Database on DBeaver which is popular dbms

but i couldn't make it.

I wrote right Database name, password, host, port...

but it never worked..


also my coworker trying to access with programm called Xshell

with pem key, EC2 IP, ID with right port number

and he did select * from ~~

but it shows something weird things (looks like encrypted)


can anyone help me...?


ps. sorry for bad english... as a Korean i'll study hard

thank you Need to grow up kr (talk) 01:06, 11 January 2022 (UTC)

Just fyi, DBeaver is not a rdbms. Mysql is the part that is the rdbms.
Its likely either firewall (e.g. security groups or nacl, etc) is set up wrong, or permissions are wrong for dbeaver.
Generally i would reccomend using ssh to connect to the server, and then using the command line mysql program (on the remote server) Bawolff (talk) 04:38, 11 January 2022 (UTC)

Page creation date

How can I add to article Page creation date? I thought that there is a magic word for that, but I found just page recent edit date. Please help. Fokebox (talk) 11:28, 11 January 2022 (UTC)

I use Extension:Cargo for this, and I think Extension:Semantic MediaWiki can do it too.
Extension:DynamicPageList3 has an addfirstcategorydate parameter which might be close enough for you. Jonathan3 (talk) 11:48, 11 January 2022 (UTC)

Generic MediaWiki app for Android/iOS

Is anyone working on a MediaWiki app? Are efforts being made to share the work of the Wikimedia Apps teams with the wider MediaWiki community? Flounder ceo (talk) 13:29, 11 January 2022 (UTC)

No. Unfortunately. 2001:9E8:290B:A400:71EA:9C46:BBC9:28FA (talk) 20:10, 11 January 2022 (UTC)
The apps are open source, but you are probably on your own for adapting them. Bawolff (talk) 06:25, 13 January 2022 (UTC)
ok I started a page because this issue is important to me. I think a lot of users will be interested in moving this forward. MediaWiki Apps Flounder ceo (talk) 15:46, 14 January 2022 (UTC)

Can I use Composer to upgrade MediaWiki?

Trying to use Semantic Mediawiki with Wikidata I installed the latest Wikibase but it says:

Uncaught ExtensionDependencyError: WikibaseClient is not compatible with the current MediaWiki core (version 1.36.2), it requires: >= 1.38. in /home/251650.cloudwaysapps.com/wyvytmmgmu/public_html/includes/registration/ExtensionRegistry.php on line 406

Can I update MediaWiki using Composer? Hyperreview (talk) 17:28, 11 January 2022 (UTC)

Hi, ⁣
have you downloaded the version of WikibaseClient for MediaWiki 1.36? Kizule (talk) 17:35, 11 January 2022 (UTC)
Thanks, the issue was that. May you help me with another issue?
I'm trying to use data from Wikidata in my wiki: https://www.wikidata.org/wiki/Wikidata:Requests_for_comment/Why_the_connection_from_my_MediaWiki_doesn%27t_work%3F Hyperreview (talk) 21:07, 14 January 2022 (UTC)
You're welcome.
Have you imported modules from somewhere? Kizule (talk) 08:09, 15 January 2022 (UTC)
Yes, I think from Wikipedia or Mediawiki (I don't remember for sure exactly)
This is the module source code: https://www.tematichedigenere.com/wiki/Modulo:Wd Hyperreview (talk) 09:51, 15 January 2022 (UTC)

Loading JavaScript for skin that is dependent on jQuery

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 a custom skin I have some JavaScript that is dependent on jQuery. I am loading the code through the ResourceLoader in skin.json like this:

...,

{

  "ResourceModules": {

    "skins.myCustomSkin.css": {

      "class": "ResourceLoaderSkinModule",

      "features": {

         ...

      },

      "styles": [

        "resources/myCustomSkin.css"

      ]

    },

    "skins.myCustomSkin.js": {

      "scripts": [

        "resources/myCustomSkin.js"

      ],

      "dependencies": []

    }

  }

}

...

However when a page loads it will sometimes have an error in the console:

Uncaught ReferenceError: $ is not defined

It would appear that the skin is loading my custom JavaScript before jQuery gets loaded.

Everything I have read says that I can assume jQuery is already loaded and I don't need to declare it as a dependency, but is that also true with skin styles and scripts that are automatically loaded?

Is there some other way I should be loading the custom JavaScript? Lorenmaxwell (talk) 19:01, 11 January 2022 (UTC)

I've tried a new installation and cannot get this issue to duplicate, so I assume I have something in my previous installation causing this issue.
Closing for now . . . Lorenmaxwell (talk) 21:20, 11 January 2022 (UTC)
The discussion above is closed. Please do not modify it. No further edits should be made to this discussion.

Save the Date: Coolest Tool Award 2021: this Friday, 17:00 UTC


Hello all,

The ceremony of the 2021 Wikimedia Coolest Tool Award will take place virtually on Friday 14 January 2022, 17:00 UTC.

This award is highlighting software tools that have been nominated by contributors to the Wikimedia projects. The ceremony will be a nice moment to show appreciation to our tool developers and maybe discover new tools!

Read more about the livestream and the discussion channels.

Thanks for joining! andre (talk) -08:02, 6 January 2022 (UTC) MediaWiki message delivery (talk) 19:47, 11 January 2022 (UTC)

Search suggestions (autocomplete) only show subpages if the parent page is typed first

Hi everyone,


When using the searchbox on mediawiki.org the search suggestion lists parent and subpage articles for keywords.

For example, when typing 'old' the following articles are suggested:

Old Projects

Search/Old


On our internal MediaWiki server this does not work.

For example:

We have a parent and subpage ABC and ABC/DEF.

when typing 'def' or 'DEF' no search suggestions are shown.

When typing ABC there are 2 search suggestions:

ABC

ABC/DEF


We run MediaWiki 1.35.4.

Is there a possibility to get subpage search suggestion articles when only part of the subpage name is typed?


Thank you. RickFromTheNetherlands (talk) 10:37, 12 January 2022 (UTC)

You'll need Extension:CirrusSearch. See Extension:CirrusSearch/CompletionSuggester Ciencia Al Poder (talk) 10:59, 12 January 2022 (UTC)
Extension:TitleKey is alternatively sometimes used by people who dont want to use cirrussearch. Bawolff (talk) 06:24, 13 January 2022 (UTC)
Thanks Ciencia and Bawolff. I did install TitleKey before starting the post. That extension really is an improvement over the default case-sensitive search.
But I would really like the search suggestions to display subpage results so I will continue with installing Cirrussearch. RickFromTheNetherlands (talk) 08:11, 13 January 2022 (UTC)

OBDII Stopped Working

Hi,

I am running a Race Capture Pro MK3 on 2002 Mercedes. The OBDII was working fine until I added the TPMS system to it. I followed the instructions and made sure I have the TPMS wired to CAN1 and changed the setting on the CAN speed. I could never get the TPMS to work and now the OBDII stopped working. I can use a OBDII scanner to see the date, so the vehicle is sending the data. I bought a new dongle and cable and it still isn't working. I tried plugging it into another vehicle, with no success. Is there a setting I screwed up? I confirmed the CAN High and Low for the TPMS are in the correct ports. Mark.homa (talk) 14:07, 12 January 2022 (UTC)

Hi, you are likely in the wrong place. This is the Helpdesk for the MediaWiki software package, and your question seems to pertain to a specific wiki. please contact the wiki in question. —TheDJ (Not WMF) (talkcontribs) 15:27, 12 January 2022 (UTC)

My new public page is still not visible for not-logged-in users

Hello, i need help at adding another public page to our Wiki. I already added my new page at $wgWhitelistRead and set the category public at the end of the article, but the page is still not visible for not-logged-in users. Did i forgot something?

Thank Tobi 217.24.52.98 (talk) 14:23, 12 January 2022 (UTC)

What does set thecategory public mean? Bawolff (talk) 16:40, 12 January 2022 (UTC)

Special Page UserLogin failure

I get the following error when I use the Log in link on the main page (Special:UserLogin). I am using MediaWiki v 1.37.1 on Windows Server 2019. I am using PHP version 8.1 and MariaDB.10.6.5.

Error: Fatal exception of type "BadMethodCallException" Wolfcu69 (talk) 15:35, 12 January 2022 (UTC)

I don't know but the Compatibility page here says:
MediaWiki is not compatible with PHP 8 yet. See task T248925 for more information. Jonathan3 (talk) 15:56, 12 January 2022 (UTC)
Yeah I saw that. I also have tried PHP version 7.33 and got the same error. Wolfcu69 (talk) 16:25, 12 January 2022 (UTC)
Actually beyond the log in link, MediaWiki works pretty well on version 8.1. Wolfcu69 (talk) 16:28, 12 January 2022 (UTC)
Please set $wgShowExceptionDetails=true; to give a full error message. Bawolff (talk) 16:39, 12 January 2022 (UTC)
Thanks. That was very helpful. Apparently I needed to turn on the openssl extension within php. Once it did that the error went away. Wolfcu69 (talk) 17:02, 12 January 2022 (UTC)

Error 1091: Can't DROP 'ar_content_model'

Hi there - i hope someone can help me:

I just updated to Mediawiki 1.37.1. While running the update.php I get the following error. Can somebody give me a hint, where the problem is?


Thanks!


...collations up-to-date.

...index rc_name_type_patrolled_timestamp already set on recentchanges table.

...rev_page_id index not found on revision.

...pl_namespace, tl_namespace, il_to indices are already non-UNIQUE.

...have ct_id field in change_tag table.

...rc_ip in table recentchanges already modified by patch patch-rc_ip_modify.sql.

...have el_index_60 field in externallinks table.

...ug_user_group key doesn't exist.

...have ug_expiry field in user_groups table.

...img_media_type in table image already modified by patch patch-add-3d.sql.

...ip_changes table already exists.

...index PRIMARY already set on categorylinks table.

...index PRIMARY already set on templatelinks table.

...index PRIMARY already set on pagelinks table.

...index PRIMARY already set on text table.

...index PRIMARY already set on imagelinks table.

...index PRIMARY already set on iwlinks table.

...index PRIMARY already set on langlinks table.

...index PRIMARY already set on log_search table.

...index PRIMARY already set on module_deps table.

...index PRIMARY already set on objectcache table.

...index PRIMARY already set on querycache_info table.

...index PRIMARY already set on site_stats table.

...index PRIMARY already set on user_former_groups table.

...index PRIMARY already set on user_properties table.

...comment table already exists.

...revision_comment_temp table already exists.

...have ar_comment_id field in archive table.

...have fa_description_id field in filearchive table.

...img_description field does not exist in image table, skipping modify field patch.

...have ipb_reason_id field in ipblocks table.

...have log_comment_id field in logging table.

...have oi_description_id field in oldimage table.

...have pt_reason_id field in protected_titles table.

...have rc_comment_id field in recentchanges table.

...have img_description_id field in image table.

...index PRIMARY already set on l10n_cache table.

...bot_passwords.bp_user is already unsigned int.

...change_tag.ct_log_id is already unsigned int.

...change_tag.ct_rev_id is already unsigned int.

...page_restrictions.pr_user is already unsigned int.

...user_newtalk.user_id is already unsigned int.

...user_properties.up_user is already unsigned int.

...change_tag.ct_rc_id is already unsigned int.

...slots table already exists.

...have slot_origin field in slots table.

...content table already exists.

...slot_roles table already exists.

...content_models table already exists.

...actor table already exists.

...revision_actor_temp table already exists.

...have ar_actor field in archive table.

...have ipb_by_actor field in ipblocks table.

...have img_actor field in image table.

...have oi_actor field in oldimage table.

...have fa_actor field in filearchive table.

...have rc_actor field in recentchanges table.

...have log_actor field in logging table.

Changing 'revision.rev_text_id' default value.

...table site_stats already modified by patch patch-site_stats-modify.sql.

...index rc_namespace_title_timestamp already set on recentchanges table.

...change_tag_def table already exists.

Running maintenance/deduplicateArchiveRevId.php...

...Update 'DeduplicateArchiveRevId' already logged as completed. Use --force to run it again.

done.

...have ct_tag_id field in change_tag table.

...index ar_revid_uniq already set on archive table.

...index log_type_action already set on logging table.

...type_action key doesn't exist.

...index PRIMARY already set on interwiki table.

...index PRIMARY already set on page_props table.

...index PRIMARY already set on protected_titles table.

...index PRIMARY already set on site_identifiers table.

...index rc_this_oldid already set on recentchanges table.

...transcache doesn't exist.

Running maintenance/populateChangeTagDef.php...

...Update 'PopulateChangeTagDef' already logged as completed. Use --force to run it again.

done.

...change_tag_rc_tag key doesn't exist.

...have ipb_sitewide field in ipblocks table.

...ipblocks_restrictions table already exists.

...change_tag table does not contain ct_tag field.

...valid_tag doesn't exist.

...tag_summary doesn't exist.

...archive table does not contain ar_comment field.

...ipblocks table does not contain ipb_reason field.

...image table does not contain img_description field.

...oldimage table does not contain oi_description field.

...filearchive table does not contain fa_description field.

...recentchanges table does not contain rc_comment field.

...logging table does not contain log_comment field.

...protected_titles table does not contain pt_reason field.

...table job already modified by patch patch-job-params-mediumblob.sql.

...ar_usertext_timestamp key doesn't exist.

...usertext_timestamp key doesn't exist.

...archive table does not contain ar_user field.

...ipblocks table does not contain ip_by field.

...img_user_timestamp key doesn't exist.

...image table does not contain img_user field.

...oldimage table does not contain oi_user field.

...filearchive table does not contain fa_user field.

...recentchanges table does not contain rc_user field.

...logging table does not contain log_user field.

...index un_user_ip already set on user_newtalk table.

...watchlist_expiry table already exists.

...page_restrictions in table page already modified by patch patch-page_restrictions-null.sql.

...index ipb_address_unique already set on ipblocks table.

...have rev_actor field in revision table.

Table archive contains ar_text_id field. Dropping ...

An error occurred:

Error 1091: Can't DROP 'ar_content_model'; check that column/key exists (mysql3.1blu.de)

Function: Wikimedia\Rdbms\Database::sourceFile( /hp/ax/ab/es/www/HuskyWiki/maintenance/archives/patch-archive-MCR.sql )

Query: ALTER TABLE `archive`

DROP COLUMN ar_text_id,

DROP COLUMN ar_content_model,

DROP COLUMN ar_content_format TexasR87 (talk) 18:05, 12 January 2022 (UTC)

Try running each command in /hp/ax/ab/es/www/HuskyWiki/maintenance/archives/patch-archive-MCR.sql seperately. You may have gotten to a state where the update is half applied Bawolff (talk) 02:46, 14 January 2022 (UTC)

500 error when installing a theme or an extension

Hey,

I created a wiki (Using nginx, and php8.0 which is required by another php script running on the server), and whenever I install an extension or theme and add it to my LocalSettings.php, I get an error 500.

I hope someone can help, thanks :) Fizzdev (talk) 19:44, 12 January 2022 (UTC)

Please enable php error reporting and post any error messafes. See How to debug for how.
Posting what you added to LocalSettings.php might help also. Bawolff (talk) 06:21, 13 January 2022 (UTC)

Visual Editor: Adding button to apply smallcaps template to selected text

Hello. I am trying to add a button to Visual Editor, to apply smallcaps template to selected text. So far, I have been able to create the button, following the example at VisualEditor/Gadgets/Add a tool. Now I can insert some fixed text in smallcaps, with this code:

 var myTemplate = [ {
 type: 'mwTransclusionBlock',
 attributes: {
  mw: {
   parts: [ {
    template: {
     target: {
      href: 'Template:Smallcaps',
      wt: 'Smallcaps'
     },
     params: {
      1: {
       wt: 'my parameter'
      }
     }
    }
   } ]
  }
 }
}, {
 type: '/mwTransclusionBlock'
} ];

Now, the next step is replacing the fixed text 'my parameter', with the selected text from the editor.

I have very little knowledge of Javascript, maybe this is a trivial issue but I don't know how to deal with it. Any help is much appreciated. 83.36.48.202 (talk) 14:59, 13 January 2022 (UTC)

Move MediaWiki site to a new server

I am new to MediaWiki and have been tasked with moving an existing wiki on version 1.32.0 to another server in our datacenter. I do not have backend access to the Linux server, but I can SSH and SCP to it. I installed the same version of the MediaWiki on the new server. What is the best way to move the wiki over to the new server? I don't have any of the original passwords used to configure the server as I haven't tried to do anything with the database backup yet. Is there a way to coordinate a session with a migration expert? 70.23.10.226 (talk) 15:04, 13 January 2022 (UTC)

I have done a successful migration just by following the steps of backup and restore at Manual:Backing up a wiki and Manual:Restoring a wiki from backup 83.36.48.202 (talk) 15:07, 13 January 2022 (UTC)
See also Manual:Moving a wiki Ciencia Al Poder (talk) 16:11, 13 January 2022 (UTC)
Thank you I installed the base MediaWiki in preparation for the DB copy. Since this is just to test the new server do I need to put the server in read only mode during the database backup? 70.23.10.226 (talk) 18:13, 13 January 2022 (UTC)
If you plan to test the move first (which is always a good idea), there's no need to put the old wiki in read only mode.
You can copy to the new server, test that everything is OK (including editing pages and uploading files), then you can set the old one as read only and copy the database and uploaded files again to the new server. Ciencia Al Poder (talk) 09:54, 14 January 2022 (UTC)

The "New signature" box on "Special:Preferences" page is not displayed

Hey everyone,

My versions:

MediaWiki 1.37.0

PHP 7.3.19 (apache2handler)

MySQL 5.7.29-log

ICU 62.2

It's a local wiki, accessible only to users of the organization by LDAPAuthentication2. Therefore I can't provide a URL for your review. I hope you'll be able to help anyway... The "New signature" box on the "Special:Preferences" page is not displayed at all. What am I missing?

Thanks, Gveret Tered (talk) 15:09, 13 January 2022 (UTC)

hey, Has anyone encountered this problem? Gveret Tered (talk) 06:09, 20 January 2022 (UTC)

Visual Editor

I loaded the Visual Editor extension. But when I select edit, I get the following error. I am using MediaWiki 1.37.1. According to the documentation (Extension:VisualEditor), it appears that once you load the VisualEditor extension, no further configuration is needed unless I am missing something. Any thoughts?

Error Message

Error contacting the Parasoid/Restbase server: http-bad status. Wolfcu69 (talk) 15:15, 13 January 2022 (UTC)

Parsoid/Debugging Malyacko (talk) 20:17, 13 January 2022 (UTC)
Unfortunately parse.php --help fails with the following error so the debugging tools are not helpful.
D:\VyGuideWiki\vendor\wikimedia\parsoid>php bin/parse.php --help
PHP Warning:  require_once(D:\VyGuideWiki\vendor\wikimedia\parsoid\tools/../vendor/autoload.php): failed to open stream: No such file or directory in D:\VyGuideWiki\vendor\wikimedia\parsoid\tools\Maintenance.php on line 117
PHP Fatal error:  require_once(): Failed opening required 'D:\VyGuideWiki\vendor\wikimedia\parsoid\tools/../vendor/autoload.php' (include_path='.;C:\php\pear') in D:\VyGuideWiki\vendor\wikimedia\parsoid\tools\Maintenance.php on line 117 Wolfcu69 (talk) 21:08, 14 January 2022 (UTC)
I'm facing a similar issue with 1.37.1. The specific error message I get is Parsoid/RESTBase timeout was reached. I am running this through the official docker image with a private wiki setup. I've also tried the parse.php script and got the same error as @Wolfcu69.
I tried the php bin/parse.php --integrated line from the same page and got an error that Parsoid wasn't loaded. I tried loading the Parsoid extension explicitly in LocalSettings.php, but that didn't work. That makes me think the original error that Parsoid wasn't loaded is an issue with the parse.php script.
I found a number of issues with 1.35 that mention the same error, but they all recommend changing the $wgVirtualRestConfig['modules']['parsoid'] value. As far as I understand, that shouldn't be necessary with 1.37.1. (I tried the changes anyway and got nowhere). Toastronaut (talk) 21:48, 18 January 2022 (UTC)
Hello, I have the same with mysql database and the wikimedia 1.37.1, I have a "Parsoid/RESTBase server (HTTP 500)" error , I don't have any other specification. Nicolas senechal (talk) 16:42, 19 January 2022 (UTC)
Same here.
>Private wiki
-Error contacting the Parsoid/RESTBase server: (curl error: 7) Couldn't connect to server
Not a single solution provided worked. 177.200.199.84 (talk) 12:59, 27 January 2022 (UTC)
I resolved it, look to your php should be PHP 7.3 or later (now I have a PHP 8.1.2 and it works well) But I have an error to load with templates (probably me with a bad template) Nicolas senechal (talk) 09:09, 28 January 2022 (UTC)
Gonna try it too, and if it does not work i will do the related by 24.232.179.239 on (Mediawiki 1.35.1 and VisualEditor behind a proxy not working on Project:Support desk).
Also, forgot to say that i'm running a docker instance. It should be something related. 177.200.199.84 (talk) 13:19, 28 January 2022 (UTC)
I work on XAMPP so I can’t help you if it’s still there… Nicolas senechal (talk) 15:12, 28 January 2022 (UTC)
@Nicolas senechal, It looks like the docker image (1.37.1) is using PHP 7.4.27, so I'm guessing that's not the problem/solution for 177.200.199.84 and I. I'm going to try to get something going with the link that 177.200.199.84 linked. I don't like the idea of modifying/extending the base image in order to solve this, this feels like something that should work with only modifications to LocalSettings.php. Toastronaut (talk) 04:30, 2 February 2022 (UTC)
Ok 177.200.199.84 again here. Good news, have tried again today.
I used nginx to give the new container a subdomain like: mediawikitest.mydomain.com
and changed the $wgServer to "mediawikitest.mydomain.com " and now its runing.
just a simple thing and i have lost days at the start of the year, lol. 143.0.87.122 (talk) 13:03, 26 May 2022 (UTC)

Question about LDAP Usage on Special site / Create new user Account

Hi,

I have a question about creating new Users for my restricted Mediawiki. I setup the Wiki with LDAP Authentication. Everything works fine and the user can login with their LDAP (Active Directory) Accounts. When I now want to authorize new LDAP Users on the Special Site – Create new User Account I am not able to “browse” the LDAP Directory to search for the new users. I can put the name into the field and then the User can login, but I would be nice if I could integrate an LDAP browser. I already searched but didn’t find something that points me to the right direction. Can this behavior be archived?


OS: CentOS 8

Mediawiki Version 1.36

MySQL Server 7.4.26

Apache WebServer 2.4.37


Extensions:

LDAPAuthentication2

LDAPAuthorization

LDAPGroups

LDAPProvider

LDAPUserInfo

OAuth

ParserFunctions

PluggableAuth 91.38.157.210 (talk) 15:54, 13 January 2022 (UTC)

Has nobody an idea on this or do you need more information? 91.38.157.210 (talk) 11:35, 17 January 2022 (UTC)
Can anybody help? 91.38.157.210 (talk) 09:17, 21 January 2022 (UTC)
Why don't you let create the users automatically based on the ActiveDirectory Groups?
Our users can enter the wiki with their standard login from windows and they get their privileges based on the active directory group they are member of. MountainGoat92 (talk) 10:16, 21 January 2022 (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, I wanted to have gallery of my own favorite photos - why no working? What am i doing wrong?

https://commons.wikimedia.org/wiki/User:Clemenspool/Gallery 2001:1A81:234A:8500:A041:4246:27C6:1774 (talk) 18:50, 13 January 2022 (UTC)

You're missing a closing gallery tag. Clump (talk) 19:55, 13 January 2022 (UTC)
Thanks! 2001:1A81:234A:8500:A041:4246:27C6:1774 (talk) 20:54, 13 January 2022 (UTC)
The discussion above is closed. Please do not modify it. No further edits should be made to this discussion.

Suppression

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.


Where do I request suppression here on mediawiki.org (hide username/ip address)? --YellowFrogger (talk) () 20:37, 13 January 2022 (UTC)

Do you refer to Manual:RevisionDelete, or what is suppression? Malyacko (talk) 21:48, 13 January 2022 (UTC)
We have no local oversighters, you have to ask a steward at meta.
https://meta.wikimedia.org/wiki/Oversight_policy/Requests_for_oversight#All_Wikimedia_wikis
If you just need admin level revdel,you canask any admin (like me) either on talk page or by email if sensitive (but if really sensitive you probably want real oversight instead) Bawolff (talk) 02:33, 14 January 2022 (UTC)
Thank you, I will see --YellowFrogger (talk) () 21:53, 20 January 2022 (UTC)
The discussion above is closed. Please do not modify it. No further edits should be made to this discussion.

Change the MediaWiki Editor

How can I install an other MediaWiki Editor?


I can't find the LocalSettings.php. where is the file on the server?


Best Regards Dafra1987 (talk) 20:54, 13 January 2022 (UTC)

Depends on the editor, see links on Editor. LocalSettings.php is in the top directory of your MediaWiki installation. Malyacko (talk) 21:48, 13 January 2022 (UTC)

I need to delete images of my paintings. Do not want these to be in the public domain

hi I added some image of my paintings. did not realize they would become public domain. need to delete Richrollins62 (talk) 22:55, 13 January 2022 (UTC)

Do you mean on wikimedia commons, i see a couple images there? some background info https://commons.wikimedia.org/wiki/Commons:Courtesy_deletions - an important note: deleting does not alter copyright status. However, if it was an accident made in good faith, i imagine the license doesn't hold so you are probably fine (i am not a lawyer).
Anyways, go to the image description pages of the files you uploaded and click Nominate for deletion on the left hand side sidebar, and explain the situation. If you need more assistance, start a post on c:COM:Helpdesk (they specialize in image related matters) Bawolff (talk) 02:25, 14 January 2022 (UTC)

I am currently just "exploring" the use of MediaWiki as a platform for managing shared data...

But I have a question: I'm worried that IF I spend a MONTH setting up all the contributor pages (Like Publisher #1, Publisher #2... Publisher #100) that someone like a BOT or even another individual could make CHANGES to those pages ... Ruining the MONTH worth of effort put into the setup of the contributor pages. And also as a full-time solution, I also don't want any BOT or individuals changing those contributor pages ... UNLESS they are the contributor themselves. So what I mean, IF I have a page set-up first time for Publisher #1 ... I want only certain individuals to be able to EDIT this page (like me - an Admin and a user associated with the page).

Does all of this make any sense??? Can anyone answer my concerns?? And is it possible to have accounts setup for individual contributors?

Please remember, I am a noob when it comes to MediaWiki. All I know if that my HOST offers it... And I would need to setup a local copy with all my pages IF I hope to be able to manage everything the FIRST time... What I mean is having a local copy that I SETUP first (off-line) and then configure everything (on-line).

Many thanks for all those who take the time to READ and RESPOND to this thread. Cheers and thank you. 216.246.252.36 (talk) 03:41, 14 January 2022 (UTC)

You can lock pages just to admins (see help:protect)
Locking to admin + specific user is harder. You might need custom extension. Extension:abusefilter might work but is complicated to setup.
In the end you might be happier with something like WordPress or a CMS instead of MediaWiki. Bawolff (talk) 08:17, 14 January 2022 (UTC)
Hello Bawolff, thank you for your honest reply. I have been looking around doing searching and I think PmWiki (a file based wikipedia) might be more in-line with what I need. There is no need for a database, users can be configure in a ini file and passwords are hashed and encrypted. I don't need a database for about 100 pages which are policies and submissions information. But at the same time, I would like to assign a user to a page and allow for admins to make corrections when necessary.
Again thank you for your valuable input. I was searching around and people were stating that MediaWiki works with groups and users should have access to all pages. At least that's how it's done in MediaWiki. Cheers! 216.246.252.36 (talk) 21:50, 14 January 2022 (UTC)
For mediawiki, if you dont want a db you can use sqlite which is more file based.
For more info on access control in mediawiki see Manual:Preventing access Bawolff (talk) 01:46, 15 January 2022 (UTC)

Can we please allow short URLs of Toolforge via m:Special:UrlShortener?

Currently when I type e.g. https://meta.toolforge.org/catanalysis/index.php to m:Special:UrlShortener, it only results warning texts that "URLs to domain https://meta.toolforge.org are not allowed to be shortened". I wonder if there are any reasons hold up us for considering un-freeze Tollforge URLs from shorting. Liuxinyu970226 (talk) 05:16, 14 January 2022 (UTC)

I think this is more a discussion for phabricator or wikitech-l Bawolff (talk) 08:14, 14 January 2022 (UTC)
@Liuxinyu970226: yeah, there are security concerns, see for example phab:T231518 Taavi (talk!) 13:07, 14 January 2022 (UTC)

Error in the last step

[58bf92ae483af92321e4051f] /nice/mw-config/index.php?page=Install Wikimedia\Rdbms\DBQueryError: A database query error has occurred. Did you forget to run your application's database schema updater after upgrading or after adding a new extension?

Please see https://www.mediawiki.org/wiki/Special:MyLanguage/Manual:Upgrading and https://www.mediawiki.org/wiki/Special:MyLanguage/Manual:How_to_debug for more information.

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

Function: MysqlInstaller::setupDatabase

Query: CREATE DATABASE `wiki`CHARACTER SET utf8

The helppage doesn't solve my problem, can anyone help? WaveWSBS (talk) 07:45, 14 January 2022 (UTC)

Mysql username/password are wrong or have incorrect rights.
Usually though that would be caught earlier in the installer. Bawolff (talk) 08:13, 14 January 2022 (UTC)

Can't find file wich contain "é", "à", "è" etc

Hello ,


I recently upgrade my wiki into 1.37.1 version.

Everything works perfectly but if in a subject there is any of this character : "é", "è", etc ... it can't find the file because the url can't code these character .. what to do please ?


Thank you Usermediawik (talk) 10:28, 14 January 2022 (UTC)

You need to be more specific or link to your wiki so we can see for ourselves. Bawolff (talk) 16:39, 14 January 2022 (UTC)

Update MediaWiki in Plesk

Hello MediaWiki,

can you please Update the WikiMedia in Plesk?

The WikiMedia in Plesk is: 1.32.0


Thank you.


Patrick 2003:ED:1702:DF00:48A2:A06D:9B3E:EDF0 (talk) 14:26, 14 January 2022 (UTC)

We don't have any control over plesk. You need to complain to plesk. Bawolff (talk) 16:38, 14 January 2022 (UTC)

Tables automatic width/height adjustment

I'm pretty new at Mediawiki and I am still trying to figure out how tables and templates work, hope you can help me with this short issue.

I have some tables (a variable number), nested in a parent one. I need them to automatically fill all the space (width and height) they have available, sharing it equally, is it possible to do so? MauCavans (talk) 17:00, 14 January 2022 (UTC)

See this [Table alignment.] ↠Tanbirzx () 17:10, 14 January 2022 (UTC)

Thanks for the help. Sadly "margin" doesn't seem to do what I'm looking for.

I need the nested tables to be forced to occupy all the vertical and horizontal space they have available, automatically sharing it equally.

This is similiar to what I have at the moment (the number and order of nested tables variates every time):

{| width="100%" style="text-align: center; border: 3px solid #000; background: #FFF;"
!Table
|-
|
{| style="float: left; min-width: 160px; background: #e1e1e1; border: 1px solid #000;"
|- style="background: #FFF"
|Nested 1
|-
|}
{| style="float: left; min-width: 180px; background: #e1e1e1; border: 1px solid #000;"
|- style="background: #FFF"
|Nested 2
|-
|2
|-
|2
|}
{| style="float: left; min-width: 100px; background: #e1e1e1; border: 1px solid #000;"
|- style="background: #FFF"
|Nested 3
|-
|}
{| style="float: left; min-width: 200px; background: #e1e1e1; border: 1px solid #000;"
|- style="background: #FFF"
|Nested 4
|-
|4
|-
|}
|}

MauCavans (talk) 18:41, 14 January 2022 (UTC)

On my screen those four tables already take up the full screen width, so I guess that maybe you want them to appear side by side. The | character at the start of a line becomes a element, so just add one of those before the 2nd, 3rd and 4th nested tables (you already have one before the 1st). I've added vertical-align: top to each so that they aren't vertically centered. To get them to be of equal width, adding table-layout: fixed seems to work. I'm sure there are better ways but this might get you started.
Edit: It didn't look right on the narrower screen in this reply, so I removed each table's max-width and float elements, and added width.
{| width="100%" style="text-align: center; border: 3px solid #000; background: #FFF; table-layout: fixed"
!Table
|-
| style="vertical-align: top" |
{| style="background: #e1e1e1; border: 1px solid #000; width: 100%"
|- style="background: #FFF"
|Nested 1
|-
|}
| style="vertical-align: top" |
{| style="background: #e1e1e1; border: 1px solid #000; width: 100%"
|- style="background: #FFF"
|Nested 2
|-
|2
|-
|2
|}
| style="vertical-align: top" |
{| style="background: #e1e1e1; border: 1px solid #000; width: 100%"
|- style="background: #FFF"
|Nested 3
|-
|}
| style="vertical-align: top" |
{| style="background: #e1e1e1; border: 1px solid #000; width: 100%"
|- style="background: #FFF"
|Nested 4
|-
|4
|-
|}
|}
It probably won't look right within this reply but I'll give it a go:
Table
Nested 1
Nested 2
2
2
Nested 3
Nested 4
4

Jonathan3 (talk) 09:14, 15 January 2022 (UTC)

Yes! That does the trick perfectly!
I'll have to change things around a bit to make it work with my templates, but that's all I needed to know.
Thank you a lot for the help! MauCavans (talk) 16:36, 15 January 2022 (UTC)

Adding new Javascript script in Common.js ends with "Forbidden"

Hi all,

Very new to this so don't mind me.

I have all the admin rights and have included scripts on common.js before, but for this "ImageMap Highlighter" code,

(this: https://he.wikipedia.org/wiki/%D7%9E%D7%93%D7%99%D7%94_%D7%95%D7%99%D7%A7%D7%99:Imagemap-Highlight.js)

when I press Save I just get sent to a blank page saying "Forbidden" and it doesn't save.


The code is:

mw.loader.load('//he.wikipedia.org/w/index.php?title=Mediawiki:Scripts/Imagemap-Highlight.js&action=raw&ctype=text/javascript');


Does anyone know what's up?

Thank you 2A02:C7E:E59:E700:8C4:D4D2:42CC:A633 (talk) 21:09, 14 January 2022 (UTC)

Are you doing this on your own wiki or on hewikipedia?
If it was your own wiki, then its probably either apache mod_security or a WAF blocking you. Check your webserver error log.
If you are creating this page on he.wikipedia.org, this is super weird and im not sure. Bawolff (talk) 01:41, 15 January 2022 (UTC)

Issue trying to use WikiData in my MediaWiki

I've tried to follow this guide but I get a Lua error on the Module:Wd. Here I'm using the module and getting the error, the error message seems related to the line 196:


cfg.siteID = mw.wikibase.getGlobalSiteId()


The property mw.wikibase is null. Why? Is it a problem? Hyperreview (talk) 21:50, 14 January 2022 (UTC)

It means extension:wikibase is probably not installed (or is disabled) Bawolff (talk) 01:38, 15 January 2022 (UTC)
Thanks for the fast reply. In my wiki's [Special:Version] I see I have:
Semantic Wikibase 0.1.0
Wikibase Import
WikibaseRepository
But In my composer.local.json I already have
"extra": {
"merge-plugin": {
"include": [
"extensions/Wikibase/composer.json"
]
}
And in localsetting.php I have:
wfLoadExtension( 'WikibaseRepository', "$IP/extensions/Wikibase/extension-repo.json" );
require_once "$IP/extensions/Wikibase/repo/ExampleSettings.php";
$wgWBRepoSettings['siteLinkGroups'] = [ 'mywikigroup' ];
$wgLocalDatabases = [ 'enwiki', 'itwiki' ];
$wgWBRepoSettings['localClientDatabases'] = array(
    'en' => 'enwiki',
    'it' => 'itwiki'
); Hyperreview (talk) 10:02, 15 January 2022 (UTC)

Line break is ignored and replaced by '↵' character

MediaWiki - 1.37.1

PHP - 7.4.3 (fpm-fcgi)

MariaDB - 10.3.32-MariaDB-0ubuntu0.20.04.1

ICU - 66.1

Pygments - 2.10.0


Browser - Firefox

Skin - Citizen


When I press 'enter' for paragraph separation, it seems it worked fine in VisualEditor, and right after saving the document.

But when I close the window and re-visit the document, those line breaks are gone, merging into one paragraph.


In paragraph, two line breaks are working, but in VisualEditor, single '↵' character appears at the first place of second paragraph. If I delete that '↵' character, two line breaks are shrink to one line break.

In footnote, line breaks are ignored, merging into one paragraph. I can only see multiple '↵' characters in VisualEditor (but not working at all)


I'd like to provide my wiki page, but I've written there my personal notes so I can't just let people see them. Instead, here is screenshot of those. https://imgur.com/a/V086OK2 TetraTheta (talk) 07:59, 15 January 2022 (UTC)

Try with a different browser and see if it makes any difference when editing using Visual Editor Ciencia Al Poder (talk) 10:36, 15 January 2022 (UTC)

What to exclude from public backup of wiki database

What would you recommend excluding from a publicly available backup of a wiki?

Initially I just thought of the user table. But then I thought I'd only want to exclude some of those fields. And then I thought maybe also the watchlist table, at least the IP fields in the recentchanges table...

Thanks. Jonathan3 (talk) 08:52, 15 January 2022 (UTC)

Unclear documentation for Wikibase configuration

I'm trying to follow the main guide for installing and configuring the client, here the guide asks to add the following line to the LocalSettings.php: Wikibase/Installation#2. Enable Wikibase Client only

$wgWBClientSettings['repoUrl'] = 'https://pool.my.wiki';

$wgWBClientSettings['repoScriptPath'] = '';

$wgWBClientSettings['repoArticlePath'] = '/wiki/$1';

$wgWBClientSettings['repositories']['']['repoDatabase'] = 'poolwiki';

$wgWBClientSettings['repositories']['']['changesDatabase'] = 'poolwiki';

$wgWBClientSettings['siteLinkGroups'] = [ 'mywikigroup' ];

$wgWBClientSettings['siteGlobalID'] = 'en';


But actually it's not clear why a Client should set up a repo... does it mean that the client can read only from one repo? Is it a cache? Also the example is not very clear... https://pool.my.wiki it's not realistic. Which would be a real example? Hyperreview (talk) 10:30, 15 January 2022 (UTC)

https://wikidata.org would be a real example of a repo. Bawolff (talk) 00:52, 16 January 2022 (UTC)
But so I can use Wikidata as a repo for my wiki or not? This guy says no and reading here I thought it was possible. I've lost a lot of time, maybe the documentation could be made more clear. Hyperreview (talk) 13:25, 16 January 2022 (UTC)
If you can choose between random folks on internet forums versus official documentation, what's exactly unclear about the official documentation? Malyacko (talk) 17:00, 16 January 2022 (UTC)
Which part of "If you have your own instance of MediaWiki, you can't use Wikidata's data using these features." (From the page you linked to) was unclear? Bawolff (talk) 18:21, 16 January 2022 (UTC)
I got confused from this part: "However, you can set up your own Wikibase instance and use data from there in the same way."
Let's forget for one second the thesis we like to sustain. If I tell you that your car is not a Ferrari but you can set up your own car and use it in the same way, would you swear that 100% of people would not get confused?
Maybe I'm an idiot, it's possible, or maybe a small comment would avoid other people from losing 3 days of their time. I think the cost / benefit is undoubtely in favor of a clarification. Hyperreview (talk) 15:27, 20 January 2022 (UTC)
If you have a suggestion for a way to make it clearer, i'm sure they would be happy to take suggestions on the talk page (normally i'd offer to edit it myself but looks like i dont have the rights to). However, i wasn't being snarky before. It really is unclear why the page was confusing, and its difficult to fix it if we don't understand the problem. Regardless i can't edit the page so i guess its a moot point for me as you would have to tell that to the wikidata people.
That said, keep in mind that setting up a wikibase instance independent of wikidata is a thing some people want to do, and those people also need to be reassured that what they want to do is possible. There have been quite a few people doing that sort of thing; it is not an obscure usecase. Bawolff (talk) 07:56, 21 January 2022 (UTC)

Rate limit page views?

Is there any way to limit the number of page views per x time by visitors/users? Mostly for reasons of bots/scrapers.

I cannot find something like that in Manual:$wgRateLimits Spiros71 (talk) 18:38, 15 January 2022 (UTC)

There's some stuff here: https://en.wikipedia.org/wiki/Robots_exclusion_standard#Crawl-delay_directive Jonathan3 (talk) 22:32, 15 January 2022 (UTC)
I'm not sure why you need ratelimits on pageviews, but it sounds like maybe you should add edge layer http caching instead. —TheDJ (Not WMF) (talkcontribs) 23:42, 15 January 2022 (UTC)

How to hinder search in transcluded text?

I manage a MediaWiki with a lot of literature lists that users generated using direct links to the wiki pages instead of categorising the wiki pages. This is not optimal, as many pages appear twice or more when searching for title keywords. I fear this cannot be rolled back.

Luckily, most this literature lists are separate pages that are only referenced/transcluded. (See https://www.colliseum.eu/wiki/Splitterwurfweiten for an example.)

Can I somehow exclude such sections from the wiki search? Whugemann (talk) 19:53, 15 January 2022 (UTC)

Probably would need a custom search extension Bawolff (talk) 00:48, 16 January 2022 (UTC)

Newbie needs help setting up a wiki

As the title suggests, I'm new to this and need help setting up a wiki. I have Ubuntu installed so far, but need guidance on all the other stuff needed and I learn best in direct conversation so if anyone's willing to lend a hand you can contact me on Discord, my username's deadgoon64#2443 thanks Goon32 (talk) 20:59, 15 January 2022 (UTC)

See the available documentation on this site. If you have specific questions, feel free to bring them up. Malyacko (talk) 22:58, 15 January 2022 (UTC)
I've tried that but it just ends up making me disoriented so it'd be nice to have someone there to go over it step-by-step with me
And if I were to bring up all my questions here, I'm afraid I'd clog up the feed and bury the questions of others Goon32 (talk) 23:08, 15 January 2022 (UTC)

Wikis closed incorrectly.

The wikis degrowthaotearoa and degrowthgreensaotearoa were recently closed. One was last efited on Dec 21st 2021 and the other on Jan 10th 2022. The notification talked about no edits in the last 60 days. I have reopened them. 122.58.154.222 (talk) 21:42, 15 January 2022 (UTC)

Whatever website you refer to, you need to bring that up on that website. Malyacko (talk) 22:57, 15 January 2022 (UTC)

How to can I use wordpress blog with mediawiki in same ip

I use ubuntu 20.04, apache2, mediawiki, php 8.0.

I was used to mediawiki spesific domain.

and today I want to open wordpress blog same my mediawiki's ip for save money.

I already installed my wordpress files, dns setting goods, sites-available already settings alright, blog floder files locate alright, https done.

but when I enter my blog domain on the browser, connected 'my mediawiki domain'.

I don't know why this happen like this. Can't help google with me.

How do I make my blog's domain appear when I enter my domain in the browser? 180.230.13.129 (talk) 17:13, 16 January 2022 (UTC)

Your webserver virtualhost settings are probably incorrect. Bawolff (talk) 18:15, 16 January 2022 (UTC)
Thanks. I solved myself. 180.230.13.129 (talk) 18:33, 16 January 2022 (UTC)
This is writer. I solved this problem myself. I check with command 'a2query -s' and I edited. It's all worked I want to. 180.230.13.129 (talk) 18:32, 16 January 2022 (UTC)

Why is "Content pages" in Special:Statistics 0?

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.


MediaWiki version: 1.37.0

PHP version: 8.0.13

SQLite version: 3.33.0

When I go to Special:Statistics, "Content pages" is 0 even though I have some mainspace pages, and so is "Active users". All other values are correct. AnonymousStackOverflow (talk) 21:08, 16 January 2022 (UTC)

See Manual:Article count Malyacko (talk) 21:28, 16 January 2022 (UTC)
I set the value to "any" and it still isn't working. It also doesn't explain why the active users count is 0. AnonymousStackOverflow (talk) 21:38, 16 January 2022 (UTC)
Try running initSiteStats.php Bawolff (talk) 22:58, 16 January 2022 (UTC)
That fixed the content pages, but didn't fix active users. AnonymousStackOverflow (talk) 23:03, 16 January 2022 (UTC)
There's a separate --active flag for that:
php maintenance/initSiteStats.php --update --active
Sam Wilson 09:05, 17 January 2022 (UTC)
The discussion above is closed. Please do not modify it. No further edits should be made to this discussion.

Unparenthesized `a ? b : c ?: d` is not supported

Today when I opened my Wiki, I got the following error:

Fatal error: Unparenthesized `a ? b : c ?: d` is not supported. Use either `(a ? b : c) ?: d` or `a ? b : (c ?: d)` in /var/www/lutwik.com/includes/page/Article.php on line 822

I found the following code starting on line 822 of that file:

$pOutput = ( $outputDone instanceof ParserOutput )

// phpcs:ignore MediaWiki.Usage.NestedInlineTernary.UnparenthesizedTernary -- FIXME T203805

? $outputDone // object fetched by hook

: $this->mParserOutput ?: null; // ParserOutput or null, avoid false

I added parens to the last line, which I think is what I'm supposed to do:

: ($this->mParserOutput ?: null);

but I still get the same error.

Stack Overflow has a couple of entries about this: https://stackoverflow.com/questions/61432488/php-error-unparenthesized-a-b-c-d-e-is-deprecated-use-either-a?noredirect=1&lq=1, but I think I did it correctly.

How can I fix this? Salas58 (talk) 01:11, 17 January 2022 (UTC)

Upgrade to at least mediawiki 1.33 Bawolff (talk) 06:27, 17 January 2022 (UTC)
It turned out my host had upgraded PHP to 8.0. Downgrading solved the issue. Salas58 (talk) 02:51, 18 January 2022 (UTC)

İnceleme sorunu???

Sayfamda yapmış olduğum düzeltmeler için sürekli "inceleniyor" mesajı var. Değiştirdiğim resim üçüncü şahısların araması sırasında gösterilen sayfada görünmüyor. Nasıl düzeltebilirim bu aksaklığı? 85.99.180.213 (talk) 14:53, 17 January 2022 (UTC)

Please see "Post a new question" in the sidebar. Malyacko (talk) 14:58, 17 January 2022 (UTC)

How to implement the product of a page builder in MediaWiki?

MediaWiki 1.36.1.

I often work with page builders (Elementor/Gutenberg) to make responsive layout development automation for webpages but sadly such solutions aren't currently available for MediaWiki.

I would like to save web pages created with Elementor/Gutenberg (or any other Page Builder software for that matter) as HTML with everything (all their JavaScript, CSS and images) and then including them in MediaWiki.

Fore example, I would desire to somehow replace the homepage in a MediaWiki website (or, it's inner content), with a webpage developed with Elementor or Gutenberg in Drupal.

I could go to a webpage created in Elementor in my browser, click on "Save as HTML" but then what?

How to implement the webpage (or part of it) inside MediaWiki, preferably in a total conversaion way (everything, including the logo/menus/search box/heading will be replaced). 109.64.133.223 (talk) 17:05, 17 January 2022 (UTC)

Why do you want to use MediaWiki for this, instead of for example Drupal? Malyacko (talk) 18:17, 17 January 2022 (UTC)
@Malyacko
Any article in my website should be MediaWiki, but I got to do somehow make the homepage to seem a bit more "attractive". 79.176.222.75 (talk) 19:26, 17 January 2022 (UTC)
Feel free to play with HTML in the homepage. Maybe also see meta:Small wiki toolkits/Starter kit/Main page customization (though that's targetting Wikimedia communities). Malyacko (talk) 20:18, 17 January 2022 (UTC)

Visual Editor does not Show Recent Uploads List to Insert an Image

MediaWiki 1.37.1 (Mac OS Monterey, install in place with MAMP, standard set of extensions)

Mac OS 12.1, MAMP 6.6 (1211), PHP Apache 7.4.21, MySQL 5.7.34

I am new with just a few days playing with MediaWiki. I am trying to create a media-rich wiki. File uploads work, and Special Pages show the related file statistics correctly. Using the Visual Editor, when I select: Insert -> Image, the table to select a recent uploaded image to insert is empty. If I use the Source Editor, I can successfully add the image explicitly. Any idea about why this is not quite working? Is there a privilege setting I need to make somewhere?

Thanks to anyone who can help me! BCCrowe (talk) 17:28, 17 January 2022 (UTC)

Any ideas, anyone? BCCrowe (talk) 16:24, 19 January 2022 (UTC)

How could I make MediaWiki refer to each page by type and id number?

Hello all,

I am currently trying to create a website that uses MediaWiki which will have certain articles that will have the same exact name as another or others (this mainly includes names of people among other things).

I wanted to know if it was possible for me to separate each kind of page (User pages, Multimedia pages, normal pages/articles, etc) in the pages table so that I could make MediaWiki refer by default to each kind of page separately and by their id number (especially in the url), and the User Pages so that they refer to the User id number instead of its page_id.

So for example if I wanted to go to the profile page of user number 45, the url would be example.com/index.php?User:id=45, or for articles: /index.php?Article:id=2364, or for /index.php?Multimedia:id=52 (this is just a hypothetical for what the url would be, so not what it might look like). And this would occur by default so if you went to the website domain it would just redirect to example.com/index.php?Page:id=1 or something for Main_Page.

The reason for this is because, as I said above, the site will include pages that will have the same title/text name (such as a name like John Smith), and there will be too many to just use Wikipedia’s method of adding parentheses or some other to the name to be more specific. In general this would allow things to be more organized as well. I had asked before if there was any way that I could start making MediaWiki refer (especially in the url) to each page by their page_id instead of their name and someone responded with just using index.php?curid=1 to get to whatever page had that id number. And this seemed to somewhat work until I realized that this also included user and multimedia pages which as I said I would like to identify by a separate id number (by the actual id number of the user for the User pages and file id number or something).

If anyone could tell me how to go about doing this I would be thankful, Thanks. Guillaume Taillefer (talk) 22:25, 17 January 2022 (UTC)

One way you could do it would be to create each page with an ID number, and then use the Display Title extension to change the title that gets displayed. That wouldn't be great for user pages, and for files they'd appear as e.g. File:123.jpg. Also, if you use Page Forms, it has a mechanism for adding sequential integers to page titles.
I think actually I'm not quite understanding your motivation though… :) Sam Wilson 23:53, 17 January 2022 (UTC)
Thank you for the response, I don't think that would really work that well for the reasons that you said among others. What I want is MediaWiki to identify each page by their id number, and not their name. I want to also identify and distinguish each page by type so that if I wanted to request for a specific article by id number, I would get the article that has that id number regardless of what name it has and whether there are other articles that have the same name/title. For example, if I requested for a page by: index.php?Article:id=50, it would give me an article, not a Multimedia page or User page that has the id number of 50. if I requested for index.php?User:id=50, instead of giving me Article:id=50, it would give me the user profile page of the user with the id of 50. The same goes with Multimedia pages.
If there was an Article with the id number of 61 and had the title of "Gaius Julius Caesar", and I requested it by doing index.php?Article:id=61, it would give me the article with the title of Gaius Julius Caesar.
I also made the mistake of not saying this but I want to also create a system of using multiple languages similar to what Wikipedia does (How I will create that system isn't relevant to the question right now) if it helps. Here every single language version of each article is tied to its id number, which links it to the other language versions. so Article 61 in the english version will be the same exact subject as Article 61 in the french, german, spanish, japanese, chinese, etc versions of the website. Guillaume Taillefer (talk) 00:24, 18 January 2022 (UTC)
You can also use ?curid=1234 to refer to articles by their page_id.
You could maybe do something with manual:hooks/InitializeArticleMaybeRedirect but that would be really complex
However it sounds a bit like you are trying to force a square peg in a round hole. Bawolff (talk) 01:10, 18 January 2022 (UTC)
Thanks for the response, I had already said that someone suggested to me to try and use curid but as I said this doesn't set MediaWiki by default to look for pages based on their id instead of their name. You are right that this whole thing seems like it is forcing a square into a circular hole but as Ive seen MediaWiki is modifyable so I just need to know how to get there, if as easily as possible. Guillaume Taillefer (talk) 01:35, 18 January 2022 (UTC)
There are user IDs and page IDs, which could conceivably be used in URLs (e.g. they're available for Special:Redirect), but if you want per-namespace IDs I'm not sure what you could use — everything's a page, and so share the same ID space. Do you really need to support File:id=50 and Article:id=50?
I was going to say you could figure out some sort of URL rewriting, but that'll only work in one direction and would be harder to get working to ensure there's only one canonical form of each URL (i.e. redirecting from title-URL to ID-URL). I wonder if the best solution might not be a custom extension (although you'll still have to figure out what IDs you're using and, if they don't already exist, create them somehow). Sam Wilson 02:25, 18 January 2022 (UTC)
Thanks for your response again, y'all have been of great help. The Article:id=50 things were just one way of representing refering to a specific type of page and id in the url, it could have been something like index.php?article=50 or some other. The referring to each page by their type is more to keep everything more organized. But yes now that you say it an extension might be a good idea. Maybe I could restart the wiki and reprogram (meaning creating an extension) each type of page to include a page type thing in their table and then the id number. In that case I could just disable refering to the title instead of the id all together, and therefore the whole redirecting thing wouldn't be necessary. Guillaume Taillefer (talk) 04:39, 18 January 2022 (UTC)

Image Sprite Sheets

I'm trying to accomplish something similar to the Minecraft wiki, where they use 1 large image with thousands of tiny sprites, only rendering a small section of the image, instead of uploading thousands of images. However, I see that the SpriteSheet extension Extension:SpriteSheet is no longer updated and doesn't work on the newest version. It appears the Minecraft wiki uses a whole bunch of templates, modules, and widgets, and I tried copying them to my wiki, however this didn't seem to work. Are there any other alternatives to accomplish this?


Thanks! 71.218.98.92 (talk) 00:34, 18 January 2022 (UTC)

You can do this with CSS, using the image as a background-image, with a different background-position for each item, and setting a defined width and height to the element that will display the image.
See https://css-tricks.com/css-sprites/
For setting a background-image I'd recommend using Extension:TemplateStyles, although you can define it in MediaWiki:Common.css as well. The other CSS properties can be set inline. You can use a template for this, with a big switch, or even better if you use a Lua module (you can define all the data in json). Ciencia Al Poder (talk) 08:49, 18 January 2022 (UTC)

Upgrading from 1.32 to 1.37.1

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


Looking at Manual:Upgrading, it seems that upgrading from 1.32 to 1.37.1 will be easy.

I have downloaded the entire set of files and my host has multiple backups. Is there a way to find out what extensions I have? It was several years ago when the initial configuration was done and I want to be ready if something goes bad. Salas58 (talk) 03:36, 18 January 2022 (UTC)

You can use the Special:Version special page (on your wiki) to figure out what extensions you have installed. Taavi (talk!) 07:56, 18 January 2022 (UTC)
The discussion above is closed. Please do not modify it. No further edits should be made to this discussion.

Icons in Network Diagram

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.


Product Version
MediaWiki 1.37.1
PHP 7.4.27 (apache2handler)
MariaDB 10.3.32-MariaDB-0ubuntu0.20.04.1

I would like to have Title Icons within the network diagram beside the Article titles.


I have already implemented Title Icon in Page Titles and Search results and it is working perfectly. Any idea how I should go about this? Gachangi (talk) 10:31, 18 January 2022 (UTC)

Cross-posted. Thus closing here. PS Note that you should indicate that you are cross-posting and link to the other post. Thanks. [[kgh]] (talk) 10:24, 21 January 2022 (UTC)
The discussion above is closed. Please do not modify it. No further edits should be made to this discussion.

mPDF Formatting Issues

Hey, i just installed mPDF to convert my MediaWiki pages to a PDF File. Problem ist that all the navigation stuff and other unnecessary things are also exported.
Is there a nice way to remove that stuff? Thanks
Screenshot from generated PDF Page 2 and 3: https://imgur.com/a/WSvNg0O 3498BoyZ (talk) 12:57, 19 January 2022 (UTC)
Please read "Post a new question" in the sidebar. Thanks. Malyacko (talk) 12:10, 20 January 2022 (UTC)
Newer versions of Mediawiki have this printable version inbuilt that is quite neat as you won't need an extension. It appears on the right side when using Timeless skin. Gachangi (talk) 11:14, 20 January 2022 (UTC)
The printable version feature is not new. It has been there since the beginning.
On wikimedia wikis the pdf version cones from extension:Collections. It is not built in. Bawolff (talk) 08:05, 21 January 2022 (UTC)

1.37.1

I wish to add some peripheral links to my MediaWiki website:

  • Horizontal-top menu links
  • Left sidebar menu links
  • Right sidebar menu links
  • Horizontal-bottom menu links (say, inside the footer or between the main content area and the footer)

Each such menu would be a standalone (unique-content) menu.


I need some comfortable GUI way to do so, without touching the PHP and CSS.

Is there any hope? 79.176.222.75 (talk) 10:20, 20 January 2022 (UTC)

For the left side bar search for MediaWiki:Sidebar in your instance then change the entries. As for the rest I do not know how to change as at now. Gachangi (talk) 11:12, 20 January 2022 (UTC)
I seek a general solution, not just for the left sidebar (or just for the right sidebar for that matter). 79.176.222.75 (talk) 11:34, 20 January 2022 (UTC)
There is no hope. Malyacko (talk) 12:10, 20 January 2022 (UTC)

Warning Apache Protocol

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 get some warnings (MediaWiki 1.37.1):

  • Got error 'PHP message: PHP Deprecated: Use of User::getBoolOption was deprecated in MediaWiki 1.35. [Called from AdvancedSearch\\Hooks::onSpecialPageBeforeExecute in /var/www/vhosts/MYWIKI.com/MediaWiki/extensions/AdvancedSearch/includes/Hooks.php at line 35]
  • Got error 'PHP message: PHP Deprecated: Use of wfFindFile was deprecated in MediaWiki 1.34. [Called from PDFEmbed::generateTag in /var/www/vhosts/MYWIKI.com/MediaWiki/extensions/PDFEmbed/PDFEmbed.hooks.php at line 160]

What should I do? 2A00:20:B04B:F11D:61FC:9C94:ECC9:AB61 (talk) 12:54, 20 January 2022 (UTC)

You should hide PHP deprecation warnings and notices from a production website.
Here is a guide to disable them: https://serverfault.com/questions/263167/disabling-php-deprecation-warnings-and-notices Ciencia Al Poder (talk) 13:50, 20 January 2022 (UTC)
Done. Thank you! 2A00:20:B050:8703:8116:7CC0:2839:2C0A (talk) 21:14, 20 January 2022 (UTC)
The discussion above is closed. Please do not modify it. No further edits should be made to this discussion.

How to disable breadcumb links?

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


I have enabled subpages in the namespaces and now every subpage links back to it's parent page(s).

How can I suppress this link? Wiki-wide or just page-wise. PaulaKreuzer (talk) 14:53, 20 January 2022 (UTC)

You could not enable subpages, since that is basically all the subpage feature is.
Or you could hide with css Bawolff (talk) 08:03, 21 January 2022 (UTC)
If I disable subpages then my cool template for language links breaks, which only works thanks to the ROOTPAGENAME link.
Would you happen to know how I can change it with css? I never used css before. PaulaKreuzer (talk) 10:40, 21 January 2022 (UTC)
See Manual:CSS and use the inspector tools of your web browser. Malyacko (talk) 11:27, 21 January 2022 (UTC)
The discussion above is closed. Please do not modify it. No further edits should be made to this discussion.

importing users

I need to set up about 100 users with passwords on our wiki. I was going to use createandpromote.php, but it doesn't have a parameter for email addresses. Extension:ImportUsers is not maintained and looks like it might no longer work in current versions of mediawiki. There also may be a way to do this through API:Account creation, but I would rather not write a program to do this. What would be the most reasonable way to do this? Tenbergen (talk) 15:55, 20 January 2022 (UTC)

Mediawiki 1.35.4


Let us assume the wiki contains articles that use different types of quotation marks:

  1. "human being"
  2. „human being“
  3. »human being«
  4. «human being»


When searching for phrases, you always need to use simple quotation marks, i.e. the seach term is "human being". The fulltext search will only find #1 but it should also find #2-4. 2003:C2:3F24:0:5049:4EB7:4E9D:DDE8 (talk) 16:43, 20 January 2022 (UTC)

Have you tried using cirrus search? It has better normalization. Bawolff (talk) 17:03, 20 January 2022 (UTC)
No, this is the default search engine. CirrusSearch is way too complicated, has additional dependencies (at least ElasticSearch) and consumes lot more space. We have tried to use CirrusSearch some years ago and were not convinced. I think even the simple fulltext search should pay respect to word boundaries. Quotes, whichever type, should never be thought of as part of a word or phrase. But, of course, it's just a suggestion. 2003:C2:3F24:0:5049:4EB7:4E9D:DDE8 (talk) 18:47, 20 January 2022 (UTC)
This is a known bug. I reported it a couple of years ago but it is currently low to no priority. Cannot find the issue id right now. [[kgh]] (talk) 22:54, 20 January 2022 (UTC)
This is the one: T243419. Actually it is not really the same. This on is about all sorts of human beings. If you just search for human being without a quotation mark of any kind no result will be returned. [[kgh]] (talk) 22:59, 20 January 2022 (UTC)
Good to know, thanks. 2003:C2:3F24:0:25EE:B569:DEBA:423F (talk) 15:25, 21 January 2022 (UTC)

How to show all pages in special:allpages?

MediaWiki 1.36.1

index.php?title=special:allpages&limit=5000&offset=0

Doesn't work.

I still get just around 500 pages instead 5,000 and there is a pager. 147.161.12.49 (talk) 18:39, 20 January 2022 (UTC)

Its working as intended. For performance reasons there is a max limit.
The api might go to 5000 if you have api high limits right. Bawolff (talk) 08:02, 21 January 2022 (UTC)
Bawolff, by "if you have the api high limtis" did you mean to something I could set with query strings or in some PHP file?
Thanks, 79.176.222.75 (talk) 09:51, 21 January 2022 (UTC)
Its a user right admins have by default. See manual:User rights. It will only affect API not special:allpages.
If you have the right https://www.mediawiki.org/w/api.php?action=query&list=allpages&aplimit=max&formatversion=2 gives 5000 results otherwise you get only 500.
If you have direct db access,you may want to consider directly querying db with sql. Bawolff (talk) 01:36, 22 January 2022 (UTC)

Please recommend an easily-customizable skin

I need a recommendation from experience for a responsive skin which basically includes only the following:

  • An header with a logo and a search box
  • Left sidebar
  • Main content area
  • Right sidebar
  • Footer

A skin created with the sole purpose of being easy to customize by means of PHP and CSS. 147.161.12.49 (talk) 19:27, 20 January 2022 (UTC)

Have a look here: https://skins.wmflabs.org/#/ Jonathan3 (talk) 22:23, 20 January 2022 (UTC)
I personally like Skin:Medik a lot. The only thing this one does not have is a right sidebar. You could try to use Skin:Chameleon. Indeed at https://skins.wmflabs.org/#/ you can see the whole lot. [[kgh]] (talk) 23:07, 20 January 2022 (UTC)

Error: 1054 Unknown column 'img_description' in 'field list' (localhost)

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


A couple of days ago I ran into this:

Issue
[8627600b9b4136d2a4932017] /PageName Wikimedia\Rdbms\DBQueryError from line 1457 of /../w/includes/libs/rdbms/database/Database.php: A database query error has occurred. Did you forget to run your application's database schema updater after upgrading?
DB error
Query: SELECT img_name,img_size,img_width,img_height,img_metadata,img_bits,img_media_type,img_major_mime,img_minor_mime,img_timestamp,img_sha1,img_description AS `img_description_text`,NULL AS `img_description_data`,NULL AS `img_description_cid`,img_user,img_user_text,NULL AS `img_actor`,img_metadata FROM `01030_image` WHERE img_name = '20110325_WHn_Logo.png' LIMIT 1
Function: ForeignDBFile::loadFromDB
Error: 1054 Unknown column 'img_description' in 'field list' (localhost)
Backtrace
#0 /../w/includes/libs/rdbms/database/Database.php(1427): Wikimedia\Rdbms\Database->makeQueryException(string, integer, string, string)
#1 /../w/includes/libs/rdbms/database/Database.php(1200): Wikimedia\Rdbms\Database->reportQueryError(string, integer, string, string, boolean)
#2 /../w/includes/libs/rdbms/database/Database.php(1653): Wikimedia\Rdbms\Database->query(string, string)
#3 /../w/includes/libs/rdbms/database/Database.php(1730): Wikimedia\Rdbms\Database->select(array, array, array, string, array, array)
#4 /../w/includes/filerepo/file/LocalFile.php(466): Wikimedia\Rdbms\Database->selectRow(array, array, array, string, array, array)
#5 /../w/includes/filerepo/file/LocalFile.php(321): LocalFile->loadFromDB(integer)
#6 /../w/includes/filerepo/file/LocalFile.php(648): LocalFile->loadFromCache()
#7 /../w/includes/filerepo/FileRepo.php(438): LocalFile->load(integer)
#8 /../w/includes/filerepo/RepoGroup.php(159): FileRepo->findFile(Title, array)
#9 /../w/includes/GlobalFunctions.php(2854): RepoGroup->findFile(Title, array)
#10 /../w/includes/GlobalFunctions.php(3241): wfFindFile(string)
#11 /../w/includes/parser/Parser.php(2328): wfIsBadImage(string, Title)
#12 /../w/includes/parser/Parser.php(2091): Parser->replaceInternalLinks2(string)
#13 /../w/includes/parser/Parser.php(1318): Parser->replaceInternalLinks(string)
#14 /../w/includes/parser/Parser.php(443): Parser->internalParse(string)
#15 /../w/includes/content/WikitextContent.php(323): Parser->parse(string, Title, ParserOptions, boolean, boolean, integer)
#16 /../w/includes/content/AbstractContent.php(516): WikitextContent->fillParserOutput(Title, integer, ParserOptions, boolean, ParserOutput)
#17 /../w/includes/poolcounter/PoolWorkArticleView.php(144): AbstractContent->getParserOutput(Title, integer, ParserOptions)
#18 /../w/includes/poolcounter/PoolCounterWork.php(123): PoolWorkArticleView->doWork()
#19 /../w/includes/page/Article.php(604): PoolCounterWork->execute()
#20 /../w/includes/actions/ViewAction.php(68): Article->view()
#21 /../w/includes/MediaWiki.php(500): ViewAction->show()
#22 /../w/includes/MediaWiki.php(294): MediaWiki->performAction(Article, Title)
#23 /../w/includes/MediaWiki.php(818): MediaWiki->performRequest()
#24 /../w/includes/MediaWiki.php(524): MediaWiki->main()
#25 /../w/index.php(42): MediaWiki->run()
#26 {main}
What happened?

I ran into this when using a foreign file repo via the ForeignDBRepo class. The providing wiki was updated to 1.35 the receiving wiki was still at 1.31. After also updating the receiving wiki to 1.35 the error went away. [[kgh]] (talk) 23:03, 20 January 2022 (UTC)

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

is there any guide to configure WIA for authentication?

i am looking for a guide to use WIA when login to the MediaWiki. 106.186.104.157 (talk) 23:46, 20 January 2022 (UTC)

How do I fix revision times on a bunch of contributions to their correct ones?

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


I'm on a Mac and I just moved Mediawiki from a VM to MAMP & MariaDB on Mac. I realized that the VM had the wrong time on it, leading to incorrect times for revisions. The contributions would be several months ahead:


Using the difference between the unix time on my Mac (the correct time) and the unix time in my VM, how could I take all of the contributions starting on July 9th and change the times to the proper ones? I'll take solutions involving SQL as well YousufSSyed (talk) 00:26, 21 January 2022 (UTC)

for history pages that is the rev_timestamp field of revision. The format is YYYYMMDDHHMMSS (all numbers no seperators). It should be safe to change the timestamps. Bawolff (talk) 01:28, 21 January 2022 (UTC)
well, how exactly would I change them? Do you know a way to change them all at once / in bulk instead of each of them manually? YousufSSyed (talk) 04:08, 21 January 2022 (UTC)
The discussion above is closed. Please do not modify it. No further edits should be made to this discussion.

How do I search for specific topics in the support desk?

The search bar at the top "search mediawiki" doesn't seem to work well since it does a sitewide search. YousufSSyed (talk) 04:59, 21 January 2022 (UTC)

I don't know how best to do this. Maybe intitle: operator.
See also help:CirrusSearch Bawolff (talk) 01:32, 22 January 2022 (UTC)

Problem with domain appearing twice in URL when pressing Submit, etc.

I recently connected a new domain to my server via DNS. I updated my LocalSettings.php, etc., and for the most part the site is working okay.

However, in the following circumstances:

  1. Go to main website (ekch.org/wiki/)
  2. Login
  3. Submit

... my website url doubles up as such: ekch.org/wiki/ekch.org/wiki/index.php?title=(PAGE NAME)

And I get the message: "Not Found. The requested URL was not found on this server."

If I edit the URL correctly (ekch.org/wiki/index.php?title=(PAGE NAME)) and press enter, it goes to the page no problem.

If I submit edits or login, the edits and login go through fine, it just redirects to this weird address.

Internal links work fine. This issue seems to only occur when the page has to return to another page, which makes me think it has something to do with the "returnto" function.

This wasn't a problem until I connected the new domain.

Any ideas what the problem might be?


Website information:

ekch.org/wiki

MediaWiki 1.35.0
PHP 7.3.23 (fpm-fcgi)
MariaDB 5.5.68-MariaDB

Lyndsey022 (talk) 05:09, 21 January 2022 (UTC)

What are the values of $wgScriptPath $wgArticlePath and $wgServer from LocalSettings.php
Did you include the https:// part in $wgServer? Bawolff (talk) 07:33, 21 January 2022 (UTC)
Adding the http:// seems to have fixed it! I didn't realize it was so simple. Thanks so much! Lyndsey022 (talk) 08:09, 21 January 2022 (UTC)
$wgScriptPath = "/wiki";
$wgArticlePath // I didn't set this so it must be the default value of {$wgScript}?title=$1
$wgServer = "ekch.org";
I didn't include the http:// part in $wgServer. Should I try adding it? Lyndsey022 (talk) 08:05, 21 January 2022 (UTC)
This is described in the documentation for Manual:$wgServerTheDJ (Not WMF) (talkcontribs) 12:47, 21 January 2022 (UTC)
Also note that 1.35.0 is an outdated insecure version. Please upgrade for your own safety. Malyacko (talk) 18:42, 21 January 2022 (UTC)

Using Extension:UploadWizard withouth Wikibase / self created templates

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


Hello everyone,

i have a MediaWiki 1.35.5 running on Ubuntu 20.04.

We use the extension UploadWizard but i noticed that the picture descriptions get written via Template:Information on the picture detail page.

I did import the template from commons.wikimedia but it seems to use wikibase. We are not using wikibase though.


I know how to tell UploadWizard to use other tempates, but i don't know how my template has to look like to display the information from the UploadWizard form...


Can someone help me out?


Best regards,

Manuel MountainGoat92 (talk) 08:18, 21 January 2022 (UTC)

does help:templates help? You should be able to tell what parameters it takes by uploading a file and seeing how the template is invoked.
You could also copy an older version of the commons template from before wikidata (say from 10 years ago) however commons templates aren't the easiest to work with. Bawolff (talk) 01:03, 22 January 2022 (UTC)
The discussion above is closed. Please do not modify it. No further edits should be made to this discussion.

MediaWiki and PHP 8 on Fedora 35

I have had a Wiki for hobby purposes for a few years. Some days ago I upgraded my Fedora to 35. Now the Wiki doesn't work anymore. Apparently the reason is that Fedora has PHP 8 and MediaWiki wants PHP 7.

What path would you recommend to fix the issue? Should I try to downgrade to 7 or should I try to have both versions installed simultaneously? I'm looking for a solution with a minimum of hassle.

Ok, I know this isn't strictly a MediaWiki question but I think the expertise might live here and an answer might be handy for others here with the same problem. Akhbar zeb (talk) 14:05, 21 January 2022 (UTC)

You also have not listed if this update also updated mediawiki or if it is a tarball/git install and what the version is of that mediawiki install.
While php8 is not officially supported, the areas where it is not supported are pretty esoteric and not likely to be in use by most simple wikis. I'm pretty sure that generally, that should't be a problem. —TheDJ (Not WMF) (talkcontribs) 14:25, 21 January 2022 (UTC)
Thank you for answering. The rpm package is mediawiki-1.36.3-1.fc35.noarch. I get an empty page on https://www.skutan.com/wiki/ Akhbar zeb (talk) 16:08, 21 January 2022 (UTC)
What makes you think that this issue is specifically related to PHP version 8? What are the exact details of that HTTP 500 error in the server log? See also https://phabricator.wikimedia.org/maniphest/query/LRaxV.3Xbb0k/#R for a list of open PHP8 issues (not in MediaWiki only, though). Malyacko (talk) 18:41, 21 January 2022 (UTC)
I upgraded to Fedora 35 and got a blank page on my wiki. First I checked selinux as usual but this time that was not the problem. Then I RTFM and discovered that Media Wiki is not compatible with PHP 8.
I don't get any errors in /var/log/httpd/error_log.
With error reporting (error_reporting( E_ALL );
ini_set( 'display_errors', 1 );) in LocalSettings.php i get: Parse error: syntax error, unexpected token "match", expecting variable in /usr/share/mediawiki/extensions/TemplateStyles/includes/TemplateStylesHooks.php on line 112. That line reads: function ( ComponentValueList $values, Match $match, array $options ) {
I suppose I should contact the author but there is no author name in the file. Akhbar zeb (talk) 11:25, 31 January 2022 (UTC)
Ah, makes sense now. Please see Extension:TemplateStyles, it has an "Issues" section in its infobox; and How to report a bug. Malyacko (talk) 18:42, 31 January 2022 (UTC)
This was already fixed in phab:T268862/gerrit:654968. You just need to update the extension. Dylsss (talk) 18:52, 31 January 2022 (UTC)
Thank you very much for your help! I got some steps forward i.e I got my root page back.
Now pages with infoboxes show an error:
[exception] [YfuwbbShp1jpK8y6yaPecQAAAIc] /wiki/index.php?title=Mall:Faktamall_b
iografi   Error: Call to undefined function GuzzleHttp\Psr7\stream_for()
#0 /usr/share/mediawiki/vendor/guzzlehttp/guzzle/src/Handler/CurlFactory.php(59)
: GuzzleHttp\Handler\CurlFactory->applyHandlerOptions(GuzzleHttp\Handler\EasyHan
dle, array)
Googling showed it has caused problems in Zendesk also. Apparently GuzzleHttp\Psr7\stream_for() should be GuzzleHttp\Psr7\Utils::streamFor.
What should I change? I haven't done much in this environment so I'm quite afraid of touching anything. Akhbar zeb (talk) 13:35, 3 February 2022 (UTC)
The issue looks like https://github.com/guzzle/guzzle/issues/2824 and was fixed in commit https://github.com/guzzle/guzzle/pull/2825/commits/ea2e86346415015fad9f8cce3fac5d31da8201df, you should just be able to bump the version in the composer.json file from 7.2.0 to 7.3.0 and then update with composer. Dylsss (talk) 02:18, 4 February 2022 (UTC)
Thank you for the piece of advice. I tried doing that but updating with composer I get:
Problem 1
   - Root composer.json requires wikimedia/shellbox 1.0.4 -> satisfiable by wikimedia/shellbox[1.0.4].
   - wikimedia/shellbox 1.0.4 requires guzzlehttp/guzzle ~7.2.0 -> found guzzlehttp/guzzle[7.2.0] but it conflicts with your root composer.json require (7.3.0).
I can't find a file with the "guzzlehttp/guzzle ~7.2.0". I tried to manually change stream_for() into Utils::streamFor.
Then I got a new error:
[exception] [YgTnZXD-30A8fjiJzDlmLAAAAME] /wiki/index.php?title=Carl_Petter_Pettersson   Error: Call to a member function getFormattedNamespaces() on null
#0 /usr/share/mediawiki/extensions/Scribunto/includes/engines/LuaCommon/LuaCommon.php(513): Scribunto_LuaSiteLibrary->register()
I don't know if I fixed the previous error and this is the next one or if this is because I didn't update with composer. Akhbar zeb (talk) 10:33, 10 February 2022 (UTC)

Fill in and replace

On a specific forum I frequently come, there is a 'input field' where i can fill in text, and that specific original text gets replaced in the view of the entire page (in this example: domain.com). Does mediawiki has such a functionality or extension?

https://docs.directadmin.com/webservices/ssl/troubleshooting-letsencrypt.html 2A04:4344:F001:1337:CD4B:7353:EED9:DA64 (talk) 14:35, 21 January 2022 (UTC)

Yes. Extension:Replace TextAmmarpad (talk) 14:50, 21 January 2022 (UTC)
Thats a permanent text change throughout the whole wiki. In this case, it should only affect 'the view' 2A04:4344:F001:1337:CD4B:7353:EED9:DA64 (talk) 14:53, 21 January 2022 (UTC)
No, you would have to make it yourself.
Closest is maybe extension:pageForms but it makes a new page. Bawolff (talk) 00:59, 22 January 2022 (UTC)

Google Coverage Server error (5xx)

I run a personal wiki. When I do a google search coverage test I get a bunch of errors, almost all on the extension folder, something like https://<mywiki>/extensions/PageSchemas/PageSchemas.php I have a hunch that it should not try to look there at all, but I don't know how to stop it from doing so.

I should add that this is a git install of 1.38, could that be related? Tenbergen (talk) 05:45, 22 January 2022 (UTC)

If you really wanted you could restrict access with .htaccess.
However, why does it matter what some tool says? The result isn't relavent to the issue the tool is presumably trying to test for. Bawolff (talk) 06:03, 22 January 2022 (UTC)
The tool tests what is covered by google search. That works in mysterious ways (to some degree), so when it shows me errors I suspect that will affect search rankings negatively.
But I was actually more concerned that directory listings are possible from outside. Should that be? Now that I am aware of it, it also means that e.g. viewing .json files like https://<mywiki>/extensions/PageSchemas/extension.json is possible. I don't seem to be able to view e.g. Localsettings.php, so that's something at least.
I guess what I am worried about is whether the directory and files on the web server are locked down enough from outside viewers, and whether there is a clean way to make sure they are. This might be a .htaccess file, or maybe a script that sets chmod/chown for files to the most locked setting that still makes mediawiki work. If I knew exactly what I was looking for I would ask it differently :-) Tenbergen (talk) 20:53, 22 January 2022 (UTC)
The directory listing is a webserver config which is the layer below mediawiki. It should be safe to disable but instructions depend on what webserver you use. (Exception - make sure access is disabled to deleted files directory)
Viewing these files is generally safe, however more paranoid people do lock it down. Some extensions do require certain file assets to be visible - this isn't considered best practise in extension making but some extensions do require it. Wikimedia uses a complex system that only lets certain types through (prob not worth the effort). https://github.com/wikimedia/operations-mediawiki-config/blob/master/w/static.php Bawolff (talk) 23:17, 22 January 2022 (UTC)

Last two days for submitting proposals

Tomorrow is the last day for submitting proposals for the Community Wishlist Survey 2022.

Also, everyone is welcome to translate, promote, and discuss proposals. SGrabarczuk (WMF) (talk) 14:45, 22 January 2022 (UTC)

MediaWiki message delivery (talk) 14:45, 22 January 2022 (UTC)

LIKE TO UPDATE MY PAGE BUT LOGIN NOT POSSIBLE

HI ADMIN PLEASE ASSIST ME WITH TO LOGIN IN 197.188.173.23 (talk) 16:33, 22 January 2022 (UTC)

Please first read "Post a new question" in the sidebar. Malyacko (talk) 12:31, 23 January 2022 (UTC)

404 errors on existing live pages

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


Hi I have (at least) two pages on my wiki that used to exist - as far as I know, do still exist - but which are currently linking to a 404 page (and not even a “that page doesn’t exist yet but you can create it now” page, which is the default for Mediawiki!).

I am not sure how this happened, or how to fix it!

Here is the wiki: https://jollycontrarian.com/

Here is evidence that it thinks the page ("variation margin") exists: Special: All Pages

and here is the page: https://jollycontrarian.com/index.php?title=Variation_margin

Any idea what could be causing this? ElectricRay (talk) 16:30, 22 January 2022 (UTC)

Update: The pages have magically returned. Perhaps something wrong with my webhost. ElectricRay (talk) 17:18, 22 January 2022 (UTC)
The discussion above is closed. Please do not modify it. No further edits should be made to this discussion.

Extension:UserMerge missing

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, this extension is missing for all Wikimedia wikis. Thanks! AlPaD (talk) 18:19, 22 January 2022 (UTC)

Yes, I disabled it last week. There's still a few steps remaining in the undeployment process, updating documentation is one of them. Taavi (talk!) 19:05, 22 January 2022 (UTC)
So it no longer needs to exist? AlPaD (talk) 19:21, 22 January 2022 (UTC)
Well, the extension still exists and may be used by third-party installations, it's just no longer installed on Wikimedia wikis. Taavi (talk!) 19:23, 22 January 2022 (UTC)
OK, thank you very much. AlPaD (talk) 19:26, 22 January 2022 (UTC)
The discussion above is closed. Please do not modify it. No further edits should be made to this discussion.

Why must User pages be capitalized?

Manual:$wgCapitalLinkOverrides explicitly warns "Some namespaces—Special, User and MediaWiki, and their associated talk namespaces—must be capitalized. $wgCapitalLinkOverrides will not affect them." The discussion page has a couple of people asking why that's the case (specifically for Users), without reply.

The OEIS (oeis.org) insists that users register with their real name as it would appear in a formal publication, and then wants to set them up with this name as a wiki user. This causes problems if their real name does not start with a capital letter, and I'd like to find some way to work around that.

Failing that, it would be useful to have some explanation why it must be so (and this explanation could usefully also be added to Manual:$wgCapitalLinkOverrides and Manual:$wgCapitalLinks). Hv (talk) 22:39, 22 January 2022 (UTC)

It caused some compatibility issues with single user login i think. Wiktionary used to be lowercase usernames way long ago. Bawolff (talk) 23:09, 22 January 2022 (UTC)
Thanks, that sounds like a reason not to enable such an option across groups of wikis that want to share users rather than to deny such an option to all MediaWiki installations. Hv (talk) 05:19, 23 January 2022 (UTC)
Ah, in an old local installation I find this comment in includes/MWNamespace.php:
/**
* These namespaces should always be first-letter capitalized, now and
* forevermore. Historically, they could've probably been lowercased too,
* but some things are just too ingrained now. :)
*/
private static $alwaysCapitalizedNamespaces = [ NS_SPECIAL, NS_USER, NS_MEDIAWIKI ];
That leaves me very little hope it could ever change. :( Hv (talk) 06:03, 23 January 2022 (UTC)

You are missing a required extension to PHP that MediaWiki requires to run. Please install:

Hello, I am trying to install MediaWiki 1.37.1 on XAMPP 8.0.14-1 for MacOS version 11.6. When I put it in my htdocs folder and go to localhost, it gives me this message:

MediaWiki 1.37 internal error

Installing some PHP extensions is required.

Required components

You are missing a required extension to PHP that MediaWiki requires to run. Please install:


I click on the link and find that the one provided is horrendously terrible at explaining how to install anything, making it worse of the fact that it only talks about windows and sometimes Linux. I did try to remove the ; in ;extension=php_intl.dll in php.ini and restarted Apache but it didn't do anything. So if someone could help me that would be great. Thanks Guillaume Taillefer (talk) 23:28, 22 January 2022 (UTC)

.dll is the windows extension. Mac uses .so or .dylib.
Most distributions of php have intl compiled in, it may be easier to not use xampp but some other method like homebrew. Bawolff (talk) 02:57, 23 January 2022 (UTC)
I tried using homebrew to download intl but that didn't work. I don't really know how else I would be able to use MediaWiki locally on my computer if I shouldn't use xampp or any other thing like it. Therefore could you elaborate on not using xampp and instead use homebrew? Also could I just switch out the extension=php_intl.dll and do something like extension=php_intl.so or extension=php_intl.dylib given that those file extensions are what mac uses? Guillaume Taillefer (talk) 17:33, 23 January 2022 (UTC)
> Also could I just switch out the extension=php_intl.dll and do something like extension=php_intl.so or extension=php_intl.dylib
These refer to specific files on your computer. If php_intl.so exists already on your computer, then yes.
Does https://medium.com/@JanFaessler/setup-local-lamp-stack-on-mac-with-homebrew-47eb8d6d53ea help? Bawolff (talk) 23:46, 23 January 2022 (UTC)
I use MW 1.37 with Xampp and Windows 10 and i have the same error msg.
==Required components==
You are missing a required extension to PHP that MediaWiki requires to run. Please install:
I use them as local easy workspace.
That we need to do to the installation?
@Bawolff pls dont say use homebrew.
i an many other know the work with Xampp,
We need a solution for that problem.
Thx for any helping informations Shadowslight 21:05, 29 January 2022 (UTC)
If you're on windows the instructions at https://stackoverflow.com/questions/33869521/how-can-i-enable-php-extension-intl will probably work. Bawolff (talk) 04:00, 30 January 2022 (UTC)
Now i have use from MW and Xampp a older version and in the setup check i can read that hint.
  • Warnung: Die PHP-Erweiterung intl ist für die Unicode-Normalisierung nicht verfügbar, so dass stattdessen die langsame pure-PHP-Implementierung genutzt wird.
I hope that help as hint. Shadowslight 23:39, 29 January 2022 (UTC)
Linux? Go to command line. Something like
sudo apt-get install php-intl
Then restart server. Flounder ceo (talk) 21:13, 31 January 2022 (UTC)
Hi!
I'm using Mac OS 11.4 Bigsur and XAMPP 8.1.6.
When I want to install the media wiki, I met the same error
You are missing a required extension to PHP that MediaWiki requires to run. Please install:
  • intl
I follow the instruction in this thread, I change to extension=php_intl.dylib
I restart to web server and still get the same error
Any suggestion how to fix this error? 01mina10cities (talk) 03:46, 1 August 2022 (UTC)

Toolbar for editing missing!?

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 run Wikimedia 1.37.1 on Windows 11.

It works, but it misses the toolbar to edit the style of the text (visual editing or source editing)

1) Did I miss to install an extension in the beginning, or is this just not part of the basic version.

2) At best it would be, to install a similar version like the one from Wikipedia.

Whats the Problem of 1?

Is 2 also possible?

I only have basic knowledge of computer.


Thanks for any usable advice! Eggplantlover (talk) 05:53, 23 January 2022 (UTC)

You probably want extension:WikiEditor and/or extension:VisualEditor.
During the install process there should be a checkbox for this. Bawolff (talk) 07:36, 23 January 2022 (UTC)
Thanks Bawloff for your answer.
So I checked, that both extension are correctly located in C://xampp/htdoc/extensions.
wikieditor and VisualEditor sitting in this folder both.
Then I added the lines
wfLoadExtension( 'WikiEditor' );
wfLoadExtension( 'VisualEditor' );
via NotePad++ in the localsettings.php folder at the end.
But it still doesnt show the toolbar, when I open my local Wiki via Firefox.
Did I miss something? Eggplantlover (talk) 08:49, 23 January 2022 (UTC)
Or should I simply delete and recreate my wiki? Eggplantlover (talk) 08:51, 23 January 2022 (UTC)
Ok, I reinstalled all extensions and now it works.
but there is a new error message when I want to access the settings:
MediaWiki internal error.
Original exception: [765b0854fbd1dca1fb75a82a] 2022-01-23 10:01:14: Fatal exception of type "mysqli_sql_exception"
Exception caught inside exception handler.
Set $wgShowExceptionDetails = true; at the bottom of LocalSettings.php to show detailed debugging information.
???? Eggplantlover (talk) 09:50, 23 January 2022 (UTC)
ok. all works fine till now. I could solve the Problem.
It can be delted/ archivated. Eggplantlover (talk) 10:11, 23 January 2022 (UTC)
The discussion above is closed. Please do not modify it. No further edits should be made to this discussion.

Are you aware that users are getting a Google error message when they try to get onto the Wikipedia site

For several months now, I have been trying to get onto Wikipedia like any user would only to be met with a Google error message. I would like to send you a picture of the error message but I’m not quite sure how. I do not have time to read all of the ways I’m supposed to contact you about this, but it’s quite obvious that you don’t want any emails coming in with problems because I could not find a way other than this to contact you. Anyway I’m just trying to help and I will be happy to send you pics of the error message. Thank you, Dean guitartec@gmail.com 100.10.49.145 (talk) 06:29, 23 January 2022 (UTC)

You could try emailing info-en@wikimedia.org .
Are you sure you are getting a google error message? If so you should probably take that up with google. Unless you mean a google chrome error. In any case you should include the text of the error message. Bawolff (talk) 07:34, 23 January 2022 (UTC)

How can I add sister projects to my wiki?

Today I want to learn how to create my wikis for personal and business projects, I would like to know how I can add a list of sister projects in my first wiki to add my own content, once MediaWiki is installed, like wikipedia, thank you. Lomeno 24 (Contact me here) 07:45, 23 January 2022 (UTC)

@Lomeno 24 What do you think are "sister projects"? Please elaborate way more. Please also check "Post a new question" in the sidebar. Malyacko (talk) 12:30, 23 January 2022 (UTC)

я не могу войти в вики. ответ: такого имени нет в проекте. я не могу вновь зарегистрироваться: ответ такое имя уже есть. Мордашов Юрий

Я не могу войти в Википедию. Ответ: такого имени нет в проекте. Я не могу вновь зарегистрироваться. Ответ: такое имя уже есть. Мордашов Юрий 5.227.24.15 (talk) 09:46, 23 January 2022 (UTC)

Whatever website this is about, please bring this up in a support forum of that website. Please also read "Post a new question" here in the sidebar - thanks. Malyacko (talk) 12:29, 23 January 2022 (UTC)

Special:Import only imports some pages

Hi there,

I have installed a fresh copy of MediaWiki in order to migrate from an old version to a new version. I have exported all pages from the old wiki to a file and when importing into the new wiki, the operation succeeds but only a fraction of the pages are actually imported (only 200 out of almost 2,000). There are no errors in my PHP error logs relating to the import.

If I export each page on its own, the import of that page succeeds so I do not believe it is a problem with the content of any single page.

Additionally, the successfully imported pages do not seem to have any particular order or meaning. It just appears as if it chose pages at random, although attempting another import results in exactly the same pages being imported.

Is there anything else I can try to diagnose the cause of this problem?

Here is my version information:

MediaWiki 1.37.1 PHP 7.4.25 (apache2handler) MariaDB 10.7.1-MariaDB-1:10.7.1+maria~focal 86.0.141.144 (talk) 20:54, 23 January 2022 (UTC)

An update: It seems that a template named "Template:!" was the last successfully imported page. Removing this from the exported XML and retrying the import has resulted in success. 86.0.141.144 (talk) 21:28, 23 January 2022 (UTC)

Direct insertion of .tif images from a mediawiki commons filepath

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


I want to be able to insert mediawiki commons images in my wiki (to display them through the HighslideGallery), so I have a page like http://fortbase.johnbray.org.uk/index.php?title=Problem1 with lines

{{filepath:FRANCHE COMTE TRANSPORT 2.jpg}}

{{filepath:Plan HILLMAN.tif}}

[[Image:Plan HILLMAN.tif]]

The first and last lines work, displaying the jpg and tif inline, but the middle line does not, which causes problems with HighslideGallery. How can I get the tif to be handled like the jpg?

In my LocalSettings.php I have

$wgAllowExternalImages=true;

$wgUseInstantCommons = true;

wfLoadExtension( 'PagedTiffHandler' );

$wgImageMagickIdentifyCommand = '/usr/bin/identify';

$wgTiffUseExiv = false;

$wgTiffUseTiffinfo = false; Vicarage (talk) 11:08, 24 January 2022 (UTC)

try something like {{filepath:Plan HILLMAN.tif|200px}}. You have to specify a width to link to a jpg formatted thumbnail. Otherwise you link to a tiff formatted file which isn't supported by web browsers. Bawolff (talk) 06:03, 25 January 2022 (UTC)
Thanks, that works, but I need to get the image size programaitcally, as it seems the TIFFs are stored at unpredictable JPG sizes, and I have too many images to do it manually. I have asked at Wikimedia, https://commons.wikimedia.org/wiki/Commons:Help_desk#Predicting_the_jpg_sizes_of_a_tiff_image_h Vicarage (talk) 07:40, 25 January 2022 (UTC)
they are rendered on request. All sizes should be valid (as long as its not bigger than the original) Bawolff (talk) 09:04, 25 January 2022 (UTC)
The discussion above is closed. Please do not modify it. No further edits should be made to this discussion.

$wgSMTP["debug"]=1 - redirect mail debug messages to logfile?

I'm using the direct mail server connection for sending mail, see Manual:$wgSMTP


For debugging mail issues, I found it very helpful to add

$wgSMTP["debug"]=1

to LocalSettings.php to be able to see the gory details of the SMTP exchange.


These debug messages are sent through the HTTP connection before the <html> element and this might not be displayed be every browser. I could see them on Chrome using the developer console (network tab -> HTTP response).


However, there's a warning attached: setting debug will show anyone who is using wiki mail the the SMTP exchange which includes the password.


Is it possbile to redirect the debug output of the PEAR Mail module to the debug file?


Thanks! Herrmanthegerman (talk) 11:58, 24 January 2022 (UTC)

Is there any MediaWiki skin which includes a toggle on/off for features?

Is there any MediaWiki skin which includes a toggle on/off for features?


Toggle on/off for say left sidebar / right sidebar / other context boxes? 79.176.222.75 (talk) 13:25, 24 January 2022 (UTC)

Unable to login after moving Wiki to a new server

I am working on moving a server from our clients old provider to our datacenter. I was able to import the database and the wiki directory, but I am unable to login via AD creds. Seems to be open as LDAPS isn't in place. I updated the server in the localsettings.php file but I get bad username and password every time. Could be something easy that I am missing. 70.23.10.226 (talk) 19:34, 24 January 2022 (UTC)

reviewing the ldap log as well 70.23.10.226 (talk) 19:41, 24 January 2022 (UTC)
Please see "Post a new question" in the sidebar. Malyacko (talk) 00:46, 25 January 2022 (UTC)

Allowing the style tag

I used a plugin to allow people to use the <style> tag on my wiki.

I did it so people could style the whole page instead of being limited to divs.

Should i really let people use the style tag? 186.185.123.65 (talk) 21:51, 24 January 2022 (UTC)

Unless it is Extension:TemplateStyles, you should not allow the <style> tag on a wiki where you do not trust absolutely everyone (so definitely not when anonymous users can edit) —TheDJ (Not WMF) (talkcontribs) 22:54, 24 January 2022 (UTC)

Border image and fit content

Putting "fit-content" onto either height or width will not work for some reason and say it's insecure input

Same goes for border image, where it doesnt let you put a url.

Is there a solution to this? 186.185.123.65 (talk) 23:29, 24 January 2022 (UTC)

I'm using TemplateStyles 186.185.123.65 (talk) 23:31, 24 January 2022 (UTC)
Please see "Post a new question" in the sidebar and provide clearer steps to reproduce something. Malyacko (talk) 00:46, 25 January 2022 (UTC)
It seems like css-sanitizer doesn't support all of Level 4 CSS box sizing. It looks like it supports the fit-content() function, but not the new stretch, fit-content, or contains keyword.
This is probably because CSS level 4 box sizing is a draft spec and not a candidate recommendation like level 3 is.
Anyways, try filing a bug in https://phabricator.wikimedia.org making sure to tag it as css-sanitizer. Bawolff (talk) 06:00, 25 January 2022 (UTC)

Extension hooks

In MediaWiki 1.35, the argument $args to HookContainer::callLegacyHook() is passed by value, not by reference. As a result, hooks defined by extensions, cannot change their parameters. Is this intentional? Alexander Mashin talk 03:44, 25 January 2022 (UTC)

That sounds like a very significant breaking change. Unless it is explicitly called out in the RELEASE-NOTES, then probably not. I'd file a bug in https://phabricator.wikimedia.org Bawolff (talk) 05:49, 25 January 2022 (UTC)
I've just made sure that I can override this behaviour by adding & to the arguments to HookContainer::run() call in the extension code. Probably, this is the intended behaviour; so, I raised a false alarm. Thanks for your reply, though.
P.S. Although, I don't yet understand why it works, contrary to PHP docs. Alexander Mashin talk 06:40, 25 January 2022 (UTC)
Oh, PHP references are super confusing.
Per https://www.php.net/manual/en/language.references.whatdo.php - I believe that the by reference is on an element by element basis
so even if the overall array isn't passed by reference, the elements still might be. So you wouldn't be able to replace the entire array, but you can elements (I think. php references confuse me). Bawolff (talk) 07:10, 25 January 2022 (UTC)

Extension:Translate

I have translated several pages. Due to a typographical error on all of these pages, Extension: Replace Text made a series of changes to all of the translated pages. Now I want to update the previous translated pages, I get the following error:

Backtrace:
from /mediawiki/extensions/Translate/tag/TranslatablePage.php(86)
#0 /mediawiki/extensions/Translate/src/PageTranslation/PageTranslationSpecialPage.php(882): TranslatablePage::newFromRevision(Title, integer)
#1 /mediawiki/extensions/Translate/src/PageTranslation/PageTranslationSpecialPage.php(317): MediaWiki\Extension\Translate\PageTranslation\PageTranslationSpecialPage->showPage(TranslatablePage, MediaWiki\Extension\Translate\PageTranslation\ParserOutput, array, array, boolean)
#2 /mediawiki/extensions/Translate/src/PageTranslation/PageTranslationSpecialPage.php(143): MediaWiki\Extension\Translate\PageTranslation\PageTranslationSpecialPage->onActionMark(Title, integer)
#3 /mediawiki/includes/specialpage/SpecialPage.php(647): MediaWiki\Extension\Translate\PageTranslation\PageTranslationSpecialPage->execute(NULL)
#4 /mediawiki/includes/specialpage/SpecialPageFactory.php(1366): SpecialPage->run(NULL)
#5 /mediawiki/includes/MediaWiki.php(314): MediaWiki\SpecialPage\SpecialPageFactory->executePath(string, RequestContext)
#6 /mediawiki/includes/MediaWiki.php(930): MediaWiki->performRequest()
#7 /mediawiki/includes/MediaWiki.php(564): MediaWiki->main()
#8 /mediawiki/index.php(53): MediaWiki->run()
#9 /mediawiki/index.php(46): wfIndexMain()
#10 {main}

Please help as I have translated many pages that have encountered this problem Sokote zaman (talk) 06:05, 25 January 2022 (UTC)

Please see "Post a new question" in the sidebar. Malyacko (talk) 10:30, 25 January 2022 (UTC)
Unfortunately I forgot
MediaWiki 1.37.1 (998e0cf)
‏۲۴ ژانویهٔ ۲۰۲۲، ساعت ۰۹:۴۷
PHP 7.3.29-1~deb10u1 (fpm-fcgi)
MariaDB 10.3.29-MariaDB-0+deb10u1
ICU 63.1
LuaSandbox 3.0.3
Lua 5.1.5
Pygments 2.10.0
My Web site: motocode.ir Sokote zaman (talk) 14:47, 25 January 2022 (UTC)
If anyone knows how to fix this problem, I'd be happy. Please help solve Sokote zaman (talk) 09:26, 28 January 2022 (UTC)
Every guide and suggestion is welcome and thank you Sokote zaman (talk) 22:30, 7 February 2022 (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.


Добрый день! На основании приказа № 738 н отключены неактуальные печатные формы. Как оформить на общественные работы, если гражданин подавал заявление через РВР, МФЦ?   Isxakova17 (talk) 07:41, 25 January 2022 (UTC)
Чувак, ты не туда попал! Это форум о движке Mediawiki Fokebox (talk) 07:42, 26 January 2022 (UTC)
@Isxakova17 Welcome to the help desk of the MediaWiki software. Please see "Post a new question" in the sidebar. For content on random other websites, please contact those websites instead. Malyacko (talk) 10:30, 25 January 2022 (UTC)
The discussion above is closed. Please do not modify it. No further edits should be made to this discussion.

Wikimedia Upgrade to 1.35 and migration to a new xampp environment

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 want to upgrade the mediawiki from 1.27 to 1.35. I moved the installation to a new xampp environment (PHP7.4.27) because on the php version is 5 on the old one.

I tried to run the update with the web installer(mw-config) and get the following error message


Fatal error: Uncaught Error: Class 'Wikimedia\AtEase\AtEase' not found in C:\xampp\htdocs\wiki\includes\registration\ExtensionRegistry.php:171 Stack trace: #0 C:\xampp\htdocs\wiki\includes\GlobalFunctions.php(88): ExtensionRegistry->queue('C:\\xampp\\htdocs...') #1 C:\xampp\htdocs\wiki\LocalSettings.php(154): wfLoadSkin('CologneBlue') #2 C:\xampp\htdocs\wiki\includes\Setup.php(143): require_once('C:\\xampp\\htdocs...') #3 C:\xampp\htdocs\wiki\includes\WebStart.php(89): require_once('C:\\xampp\\htdocs...') #4 C:\xampp\htdocs\wiki\index.php(44): require('C:\\xampp\\htdocs...') #5 {main} thrown in C:\xampp\htdocs\wiki\includes\registration\ExtensionRegistry.php on line 171

The error message form the Shell php update.php

PHP Fatal error:  Cannot redeclare wfGetRusage() (previously declared in C:\xampp\htdocs\wiki\includes\profiler\ProfilerFunctions.php:33) in C:\xampp\htdocs\wiki\includes\GlobalFunctions.php on line 2957

Fatal error: Cannot redeclare wfGetRusage() (previously declared in C:\xampp\htdocs\wiki\includes\profiler\ProfilerFunctions.php:33) in C:\xampp\htdocs\wiki\includes\GlobalFunctions.php on line 2957


Thanks 80.156.2.92 (talk) 08:30, 25 January 2022 (UTC)

It sounds like something is wrong with your mediawiki files. Maybe you have a mix of different versions?
Try redownloading mediawiki Bawolff (talk) 09:06, 25 January 2022 (UTC)
Thanks now I am already one step further the update has worked. Unfortunately I get now a new error message.
Warning: include(C:\xampp\htdocs\wiki\vendor\composer/../liuggio/statsd-php-client/src/Liuggio/StatsdClient/Factory/StatsdDataFactory.php): failed to open stream: No such file or directory in C:\xampp\htdocs\wiki\vendor\composer\ClassLoader.php on line 571
Warning: include(): Failed opening 'C:\xampp\htdocs\wiki\vendor\composer/../liuggio/statsd-php-client/src/Liuggio/StatsdClient/Factory/StatsdDataFactory.php' for inclusion (include_path='C:\xampp\htdocs\wiki\vendor/pear/console_getopt;C:\xampp\htdocs\wiki\vendor/pear/mail;C:\xampp\htdocs\wiki\vendor/pear/net_smtp;C:\xampp\htdocs\wiki\vendor/pear/net_socket;C:\xampp\htdocs\wiki\vendor/pear/pear_exception;C:\xampp\htdocs\wiki\vendor/pear/pear-core-minimal/src;C:\xampp\htdocs\wiki\vendor/pear/mail_mime;C:\xampp\php\PEAR') in C:\xampp\htdocs\wiki\vendor\composer\ClassLoader.php on line 571
Warning: include(C:\xampp\htdocs\wiki\vendor\composer/../liuggio/statsd-php-client/src/Liuggio/StatsdClient/Factory/StatsdDataFactory.php): failed to open stream: No such file or directory in C:\xampp\htdocs\wiki\vendor\composer\ClassLoader.php on line 571
Warning: include(): Failed opening 'C:\xampp\htdocs\wiki\vendor\composer/../liuggio/statsd-php-client/src/Liuggio/StatsdClient/Factory/StatsdDataFactory.php' for inclusion (include_path='C:\xampp\htdocs\wiki\vendor/pear/console_getopt;C:\xampp\htdocs\wiki\vendor/pear/mail;C:\xampp\htdocs\wiki\vendor/pear/net_smtp;C:\xampp\htdocs\wiki\vendor/pear/net_socket;C:\xampp\htdocs\wiki\vendor/pear/pear_exception;C:\xampp\htdocs\wiki\vendor/pear/pear-core-minimal/src;C:\xampp\htdocs\wiki\vendor/pear/mail_mime;C:\xampp\php\PEAR') in C:\xampp\htdocs\wiki\vendor\composer\ClassLoader.php on line 571
Fatal error: Uncaught Error: Class 'Liuggio\StatsdClient\Factory\StatsdDataFactory' not found in C:\xampp\htdocs\wiki\includes\libs\stats\BufferingStatsdDataFactory.php:35 Stack trace: #0 C:\xampp\htdocs\wiki\includes\AutoLoader.php(109): require() #1 [internal function]: AutoLoader::autoload('BufferingStatsd...') #2 C:\xampp\htdocs\wiki\includes\ServiceWiring.php(1194): spl_autoload_call('BufferingStatsd...') #3 C:\xampp\htdocs\wiki\vendor\wikimedia\services\src\ServiceContainer.php(447): Wikimedia\Services\ServiceContainer->{closure}(Object(MediaWiki\MediaWikiServices)) #4 C:\xampp\htdocs\wiki\vendor\wikimedia\services\src\ServiceContainer.php(416): Wikimedia\Services\ServiceContainer->createService('StatsdDataFacto...') #5 C:\xampp\htdocs\wiki\includes\MediaWikiServices.php(1225): Wikimedia\Services\ServiceContainer->getService('StatsdDataFacto...') #6 C:\xampp\htdocs\wiki\includes\ServiceWiring.php(657): MediaWiki\MediaWikiServices->getStatsdDataFactory() #7 C:\xampp\htdocs\wiki\vendor\wikimedia\services\src\ServiceCo in C:\xampp\htdocs\wiki\includes\libs\stats\BufferingStatsdDataFactory.php on line 35 Bfx23 (talk) 11:50, 25 January 2022 (UTC)
Sometimes people had that error when using 7zip to unzip tar files as 7zip sometimes doesn't handle long filenames properly. Bawolff (talk) 08:59, 26 January 2022 (UTC)
I have unpacked the package differently. It works. Thanks the problem is solved Bfx23 (talk) 09:08, 26 January 2022 (UTC)
The discussion above is closed. Please do not modify it. No further edits should be made to this discussion.

Is it possible to hide a sidebar from LocalSettings.php?

Hiding a sidebar with CSS can cause an "empty area" problem if the area containing the sidebar is part of the main content area and won't be removed as well.

Hiding a sidebar with PHP from a skin's template file is problematic because in any upgrade we would have to re-delete it, which interferes with upgrade automation. In contrast, when we upgrade, we would generally keep LocalSettings.php as-is by a backup.


Is it possible to hide a sidebar from LocalSettings.php and if so how to do it? 79.176.222.75 (talk) 11:40, 25 January 2022 (UTC)

I use Skin:Timeless if it matters, but I mainly aim to find a skin-agnostic solution. 79.176.222.75 (talk) 11:41, 25 January 2022 (UTC)
This isn't what LocalSettings.php is for. You'd use CSS and skins to hide stuff, or write/edit PHP code to remove stuff. Malyacko (talk) 11:42, 25 January 2022 (UTC)
@Malyacko okay, but what prevents me from doing so (writing the PHP code you mention) directly in LocalSettings.php?
Perhaps it's that PHP, unlike CSS, is a computer language which doesn't allow hierarchal processing of files (if it were, than PHP code in the last file in the hierarchy could overwrite PHP code in earlier files). 79.176.222.75 (talk) 12:26, 25 January 2022 (UTC)
Nothing in theory (e.g. writing a new skin in LocalSettings.php is technically possible), its just not where the php code is intended to go so it would be more difficult and is undocumented how you would do that so you would be on your own. Bawolff (talk) 08:58, 26 January 2022 (UTC)

Problem patching from 1.35.4 to 1.35.5

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.


Product Version
MediaWiki 1.35.4
PHP 7.4.19 (fpm-fcgi)
MariaDB 10.3.28-MariaDB

We cannot provide the wiki address as it is setup as a public wiki within our internal network.

We are currently working to update the dev version of our wiki from 1.35.3 to 1.35.5 before we repeat the process on our two production instances (they were cloned based off of the dev version). Patching from 1.35.3 to 1.35.4 is successful. In multiple attempts to patch from 1.35.4 to 1.35.5, we continue to encounter the following during the dry run:

checking file vendor/composer/autoload_classmap.php
Hunk #1 FAILED at 6.
Hunk #2 FAILED at 15.
Hunk #3 FAILED at 25.
Hunk #4 FAILED at 185.
Hunk #5 FAILED at 271.
Hunk #6 FAILED at 377.
6 out of 6 hunks FAILED
checking file vendor/composer/autoload_files.php
Hunk #1 FAILED at 14.
1 out of 1 hunk FAILED
checking file vendor/composer/autoload_psr4.php
Hunk #1 FAILED at 22.
1 out of 1 hunk FAILED
checking file vendor/composer/autoload_real.php
Reversed (or previously applied) patch detected!  Assume -R? [n]
We have restored from a snapshot of 1.35.3 several times and tried different approaches, all with the same end result. We've not seen any guidance anywhere on this kind of issue or how to resolve it, so we're turning here.

Thanks in advance for any assistance you can provide. DHillBCA (talk) 15:55, 25 January 2022 (UTC)

If its only vendor directory, its possible to regenerate it with composer update Bawolff (talk) 16:58, 25 January 2022 (UTC)
@Bawolff - We ran composer both from the main directory and the vendor directory as two of the approaches we tried. It did not resolve the issue. DHillBCA (talk) 19:03, 25 January 2022 (UTC)
i mean, you could run it after patching. It wont make the patch apply. Bawolff (talk) 08:55, 26 January 2022 (UTC)
@Bawolff - thank you - this resolved the issue. DHillBCA (talk) 19:16, 27 January 2022 (UTC)
The discussion above is closed. Please do not modify it. No further edits should be made to this discussion.

Arrows not showing in Headings in Mobile

On the MediaWiki and Wikipedia websites, section headings are displayed with down arrows to indicate they can be expanded. However, these are not showing up on our website (link below).

I am getting feedback from users that they aren't sure what to do with the headings (the obvious thing does seem to be to click on them) but having the down arrow displayed for mobile users would mostly fix that problem.

There seems to be no documentation as to whether, or how, this can be turned on or off.

Website: https://en.believethesign.com/

MediaWiki 1.35.5

PHP 7.4.27 (fpm-fcgi)

MySQL 5.7.36-0ubuntu0.18.04.1-log

Mobile skin: MinervaNeue

Extension:MobileFrontend installed Darlig Gitarist (talk) 18:44, 25 January 2022 (UTC)

Only can login with admin account on moved wiki

Product Version

MediaWiki 1.32.0

PHP 7.3.33 (apache2handler)

MariaDB 5.5.68-MariaDB

ICU 69.1


Wiki is only accessible on the internal network so I can't provide the URL.


I was able to restore the wiki files and database to a new server and after troubleshooting LDAP, I was able to successfully login as the domain admin but user accounts are getting the invalid username and password. Getting the failed to bind as user error. 70.23.10.226 (talk) 04:22, 26 January 2022 (UTC)

Composer Error / composer-merge-plugin

I get a Error Message in Composer


The "wikimedia/composer-merge-plugin" plugin was skipped because it requires a Plugin API version ("^1.0") that does not match your Composer installation ("2.2.0"). You may need to run composer update with the "--no-plugins" option


When i run the command composer update --no-plugins i get this error


Script ComposerHookHandler::onPreUpdate handling the pre-update-cmd event terminated with an exception

  [ErrorException]

  Package::setProvides must be called with a map of lowercased package name => Link object, got a indexed array, this

   is deprecated and you should fix your usage.

update [--with WITH] [--prefer-source] [--prefer-dist] [--prefer-install PREFER-INSTALL] [--dry-run] [--dev] [--no-dev] [--lock] [--no-install] [--no-autoloader] [--no-suggest] [--no-progress] [-w|--with-dependencies] [-W|--with-all-dependencies] [-v|vv|vvv|--verbose] [-o|--optimize-autoloader] [-a|--classmap-authoritative] [--apcu-autoloader] [--apcu-autoloader-prefix APCU-AUTOLOADER-PREFIX] [--ignore-platform-req IGNORE-PLATFORM-REQ] [--ignore-platform-reqs] [--prefer-stable] [--prefer-lowest] [-i|--interactive] [--root-reqs] [--] [<packages>]...


How can i solve this issue?

Thanks Bfx23 (talk) 08:54, 26 January 2022 (UTC)

Which MediaWiki version are you working with? You may need to use `composer` version 1 for anything older than MediaWiki 1.36 Osnard (talk) 09:43, 26 January 2022 (UTC)
MediaWiki 1.37.1 and Composer Version 2.2.5 Bfx23 (talk) 12:36, 26 January 2022 (UTC)
I have the same error:
> ComposerHookHandler::onPreUpdate
Script ComposerHookHandler::onPreUpdate handling the pre-update-cmd event terminated with an exception
In Package.php line 784:
Package::setProvides must be called with a map of lowercased package name => Link object, got a indexed array, this is deprecated and you should fix your usage.
> composer diagnose
...
Checking composer version: OK
Composer version: 2.2.5
PHP version: 8.1.1
PHP binary path: C:\xampp\php\php.exe
MediaWiki 1.37.1
I want Semantic MediaWiki 4.0.0 (xampp)
Dmitry 109.252.69.139 (talk) 20:13, 27 January 2022 (UTC)

replaceText in MW 1.35.4

Is there a known issue with the SpecialPage:ReplaceText in 1.35?

The replacements are queued, I can see them in the Siteinfo and in the database's "job" table. the "showJobs" script tells me 60 of them are abandoned; when re-queueing them via "manageJobs", they soon get abandoned again.

Then I try to run them manually by "runJobs". Each replaceText immediately finishes with

error=Error: Class 'MediaWikiServices' not found


Any idea what is missing there? Installation problem? 2003:C2:3F1C:100:75CB:31C2:A582:DFAB (talk) 11:27, 26 January 2022 (UTC)

Do you have the correct version of the extension for your version of mediawiki?
MediaWikiServices is a core class, if its missing, nothing should work. Possibly the extension has a typo and is looking for it in wrong namespace, which would be a very major typo. Bawolff (talk) 11:59, 26 January 2022 (UTC)
A little big mystery. According to your hint I checked the ReplaceText extension version, it was 1.42. The installation was months ago, I cannot remember any particular action regarding the extension. The documentation tells it belongs to the installation bundle, but probably I did it wrong back then.
So I downloaded the Mediawiki installation archive, unfortunately 1.35.5 while we use 1.35.4, but I hope this will not matter. Then I replaced the extension (and only the extension) by the files from the new download. It still seems to be ReplaceText 1.42
But, strike!, when I call the Special:ReplaceText and try another replacement, it runs successfully now. So I am quite sure now I did it wrong during the past installation. Thanks so far! Great!
One last little thing. There are still some jobs remaining in the queue. How can I restart them ?
# php runJobs.php --maxjobs 500
Job queue is empty.
# php showJobs.php --group
replaceText: 0 queued; 115 claimed (50 active, 65 abandoned); 0 delayed
# php manageJobs.php --type replaceText --action repush-abandoned
Last re-push time: 20220126133439; current time: 20220126134150
Re-pushed 0 job(s) [65 skipped].
# php runJobs.php --maxjobs 500
Job queue is empty.
If you had an idea on this topic ... 2003:C2:3F1C:100:75CB:31C2:A582:DFAB (talk) 14:05, 26 January 2022 (UTC)

Problems after Updating xampp with MW 1.35.3

Hello at all,

while trying to Update my xampp from

Xampp mit PHP 7.3.30 Apache 2.4.48 MariaDB 10.4.21 (xampp-windows-x64-7.3.30-0-VC15-installer.exe)

to

Xampp mit PHP 7.4.27 (xampp-windows-x64-7.4.27-1-VC15-installer.exe )

I got an error message like this:

LogicException: Process cache for 'de-formal' should be set by now.

This is an exception which is thrown from the file MessageCache.php in line 408

if ( !$this->isLanguageLoaded( $code ) ) { // sanity throw new LogicException( "Process cache for '$code' should be set by now." ); }

I've copied the htdocs folder and the mysql/data directory with the mediwiki files to the new destination.

Has anyone here an idea?

Thanks in advance

Markus Marben2012 (talk) 12:01, 26 January 2022 (UTC)

Are MediaWiki redirects detectable to search engines?

Let's say I create a webpage on a topic which is mainly named X but in society it is also extremely common to name it Y and also Z.


If I create redirects (Y redirects to X and Z redirects to X) are these detectable anyhow to search engines? 79.176.222.75 (talk) 18:12, 26 January 2022 (UTC)

Generally it doesn't use http redirects which would be ideal, but i think it still uses rel=canonical links which sound be understood by search engines. Bawolff (talk) 01:28, 27 January 2022 (UTC)
How would a search engine find the redirect if the original page exists?
For example,
Article X exists
Page Y redirects to article X.
Is page Y documented somewhere in a way detectable by Google? 79.176.222.75 (talk) 12:11, 27 January 2022 (UTC)
My main sitemap XML file includes about 7,000 lines but the words "redirect" or "canonical" are nowhere to be found in that file.. 79.176.222.75 (talk) 12:14, 27 January 2022 (UTC)
Its in the actual pages, the <link rel="canonical" tag. If google is crawling individual pages, google should see that.
At least, i think it is there. Its possible my knowledge on this is outdated. Bawolff (talk) 18:26, 29 January 2022 (UTC)
Even though there are several redirects in my website. 79.176.222.75 (talk) 13:30, 27 January 2022 (UTC)

How to list all webpages without a redirect?

How to list all webpages without a redirect?

Thanks, 79.176.222.75 (talk) 18:17, 26 January 2022 (UTC)

Special:AllPages has option to filter redirects, similarly the API – Ammarpad (talk) 19:24, 26 January 2022 (UTC)
@Ammarpad
I don't want to list all pages which are not redirects.
I want to list all pages which doesn't have a redirect. 79.176.222.75 (talk) 00:37, 27 January 2022 (UTC)
For example,
  • Article A has a redirect from page B.
  • Article X doesn't have a redirect from any page.
Article A wouldn't appear in my listing but article X would appear in my listing. 79.176.222.75 (talk) 00:39, 27 January 2022 (UTC)
Probably need a direct sql query against the db.
Havent tested but somethinf along the lines of: SELECT page_namespace,page_title from page left join redirect on rd_namespace = page_namespace and rd_title =page_title WHERE rd_namespace is null; Bawolff (talk) 01:27, 27 January 2022 (UTC)

Get rid of word "and" from string

Is is possible to use {{#replace:...}} or similar to convert strings like this:

  • "A and B" --> "A, B"
  • "A, B and C" --> "A, B, C"
  • "A, B, and C" --> "A, B, C"

I get get #replace to search for the word and (with spaces on either side) so it would turn Northumberland into Northumberl. Thanks! Jonathan3 (talk) 22:09, 26 January 2022 (UTC)

Just worked out a way using Page Form's #arraymap and #replace... not fully tested it so won't put it here yet... still keen to hear any other ways. Jonathan3 (talk) 22:13, 26 January 2022 (UTC)
Another way would be using a lua module, which allows for full logic, including string modification. —TheDJ (Not WMF) (talkcontribs) 09:19, 27 January 2022 (UTC)
Good idea. I've used Lua a couple of times but haven't got comfortable with it yet. What I've got for now is {{#replace:{{#arraymap:...|\sand\s|@@|@@}}|,,|,}}. It's a bit "round the houses" but seems to work all right. Jonathan3 (talk) 10:39, 27 January 2022 (UTC)

Access keys not working when changing keyboard language

Using Windows 10, MW 1.31 and clicking ALT+Shift+r for example shows History. If i change the keyboard language to a non-Latin one, i.e. Greek, then nothing happens. Checking Special AllMessages&prefix=accesskey I can see the access keys and change them, however, is it possible to assign two letters to an access key (i.e. one in Latin and the equivalent non-Latin) or make it work no matter the keyboard language? Spiros71 (talk) 08:30, 27 January 2022 (UTC)

accesskeys are a browser feature (which browser are you using btw?), they cannot be multiple letters as far as i know. Are all accesskeys broken when you switch, or just that one particular one ? I only know that if there is a keycombo in the menu, than this takes precedence, I never heard about them changing completely when you change the keyboard layout. —TheDJ (Not WMF) (talkcontribs) 09:16, 27 January 2022 (UTC)
All of them. Tested with Chrome. There is no problem with FF. It is the same in this page and Wikipedias/Wiktionaries. By access keys I mean the MW feature: https://meta.wikimedia.org/wiki/Help:Keyboard_shortcuts I think this is an important accessibility issue. Spiros71 (talk) 10:47, 27 January 2022 (UTC)
While MW defines which letter to use, they way to REACH that letter (using alt/shift etc) is defined by the browser. The whole feature is nothing more than a letter on the Accesskey attribute of a link and the browser then takes care of the rest.
It seems that Chrome has multiple paths actually.. sometimes it is alt+key, and sometimes alt+shift+key. Have you tried alt+key ? —TheDJ (Not WMF) (talkcontribs) 10:54, 27 January 2022 (UTC)
Yes, looks like Chrome binds strictly to the letters and not the keyboard keys. Same problem with Opera. Spiros71 (talk) 11:12, 27 January 2022 (UTC)

I have a template that's used on many pages, and often the parameters contain wikilinks. I'd like to remove [[ and ]] from those parameters, e.g. from {{infobox|parameter1=[[Page1]] and [[Page2]]|parameter2=[[Page3]]}} to {{infobox|parameter1=Page1 and Page2|parameter2=Page3}}.

  1. Can anyone recommend a regex that would do this, before I go down that rabbit hole myself?
  2. I often use Extension:ReplaceText (so, all else being equal, that would be the easiest) but wonder about whether to use Manual:Edit.php or Manual:Pywikibot/replace.py.

Thanks. Jonathan3 (talk) 10:25, 27 January 2022 (UTC)

This seems to work in ReplaceText: (\[\[|\]\])(?=.*}})
It doesn't work where the template call is across multiple lines but fortunately that is rare in this case.
It doesn't discriminate between template calls, and I hope that won't be a problem here either...
Any other ideas? Jonathan3 (talk) 11:16, 27 January 2022 (UTC)

Unable to edit MediaWiki:Mobile.css

When I attempt to edit MediaWiki:Mobile.css (or MediaWiki:Common.css) on my MediaWiki site, I receive the following message:

You do not have permission to edit this page, for the following reason:
You do not have permission to edit this CSS page because it may affect all visitors.
Permissions for editing of sitewide CSS/JS/JSON files were recently separated from the editinterface right. If you do not understand why you are getting this error, see mw:Special:MyLanguage/MediaWiki_1.32/interface-admin.

I have Bureaucrat editing rights so do not understand why I am unable to edit these CSS pages.

MediaWiki 1.35.5
PHP 7.4.27 (fpm-fcgi)
MySQL 5.7.36-0ubuntu0.18.04.1-log Darlig Gitarist (talk) 17:21, 27 January 2022 (UTC)

There's a relatively new interface editor user group - add yourself to that group. Jonathan3 (talk) 18:42, 27 January 2022 (UTC)
Bureaucrat doesn't mean unlimited rights (just the ability to grant those rights). MediaWiki considers the JS/CSS pages to be so dangerous that we only want people who have been explicitly granted these rights to have the ability to change these pages. People who edit these pages should have significant understanding of CSS and JS, especially of the the potential security implications they are exposing themselves to. —TheDJ (Not WMF) (talkcontribs) 21:43, 27 January 2022 (UTC)

$wgServer does not change the url in the browser bar for a redirected domain

I set up http://fortbase.johnbray.org.uk on dreamhost. I then bought fortbase.info from 123-reg and redirected the domain. This works, as I can see the requests in the access_log, and the pages display with fortbase.johnbray.org.uk in the browser bar. I then changed LocalSettings.php

$wgServer = "http://fortbase.info";

$wgCanonicalServer = "http://fortbase.info";

Things continue to work, but the browser bar will not show fortbase.info as I hoped. I have used .htaccess and LocalSettings.php so http://fortbase.johnbray.org.uk/Main_Page shortens the URL to remove wiki in the path, but I don't have access to the apache2.conf file as its a hosted service.

Do I have to move the domain from 123-reg to dreamhost and move the wiki to get the effect I want? Vicarage (talk) 22:20, 27 January 2022 (UTC)

$wgServer isn't meant to do that.
You can probably do it in t
Rewrite rules. In localsettings you'd need so.ething like (untested)
if (WebRequest::detectServer() !== "http://fortbase.info" ) {
  header("location: http://fortbase.info");
  exit();
}
(I didn't really test this, if url is not precisely right it will go into redirect loop) Bawolff (talk) 17:15, 28 January 2022 (UTC)

Problem bei Anmeldung

Guten Tag,

bin neu hier und kann mich nicht anmelden.

es taucht keine Mail auf zur Aktivierung. 84.150.155.191 (talk) 07:51, 28 January 2022 (UTC)

LDAP Login Auto-creation of a local account failed: Automatic account creation is not allowed.

I get this error with a login from a LDAP Account.

Auto-creation of a local account failed: Automatic account creation is not allowed.

How can i solve this?

Thanks Bfx23 (talk) 12:26, 28 January 2022 (UTC)

Upgrade MW from 1.15 to 1.35.

Dear All,

I have problems with upgrading old mediawiki. Is there any possible way to import old database data to newest database? When I follow steps for upgrading existing installation it fails.

How can i fix that issue? Thank you in advance. 89.142.169.184 (talk) 14:27, 28 January 2022 (UTC)

If something fails, then please provide sufficient information. Thanks. Malyacko (talk) 16:03, 28 January 2022 (UTC)

How to print the URL of any redirect I have?

MediaWiki 1.36.1.

My website has several redirects, mainly aimed to help readers find articles with more than one name.


I wish to create a new webpage in which the URL of any redirect I have would be printed.

Some kind of a "mini-sitemap" of redirect-URLs, if you will.

This way, I could help search engine crawlers to find the URL of any redirect referring to an article.


How to do that? 79.176.222.75 (talk) 16:57, 28 January 2022 (UTC)

This post is some kind of a follow up for this one Project:Support desk/Flow/2022/01#h-Are_MediaWiki_redirects_detectable_to_search_engines?-2022-01-26T18:12:00.000Z 79.176.222.75 (talk) 16:58, 28 January 2022 (UTC)
You could use Cargo .
See Extension:Cargo/Storing data#Storing page data Jonathan3 (talk) 16:18, 1 February 2022 (UTC)
See Special:ListRedirects Ciencia Al Poder (talk) 17:15, 1 February 2022 (UTC)
@Ciencia Al Poder
The webpage you linked to includes a noindex meta tag attirubte-value.
<meta name="robots" content="noindex,nofollow"/>
Therefore, it's not what I need, unless there is an easy way to prevent this meta tag from being added, via the backend. 79.176.130.99 (talk) 18:18, 1 February 2022 (UTC)
You should probably ask on a specialized forum about search engines about redirects. I think search engines don't care about redirects at all, and if they find a redirect, they will display the target page and not the redirect on search results. Ciencia Al Poder (talk) 08:39, 2 February 2022 (UTC)
Ciencia Al Poder,
I would assume that up to 3 redirects for up to 3 alternative names would help (a modern compensation for the meta tags of old?) hence I would want search engines to know about them.
That's a classical case of theory in a SEOer's work. 79.176.130.99 (talk) 12:05, 2 February 2022 (UTC)
Search engines will be all over your wiki like a rash. There are plenty of "what links here" and other pages linking everything together. I don't imagine a separate page of redirects will make any difference. But you could create one using a Cargo query. Jonathan3 (talk) 14:42, 2 February 2022 (UTC)
Jonathan3,
I have deleted the "what links here" link from my sidebar and if I am not mistaken its html source contains noindex. 79.176.130.99 (talk) 15:44, 2 February 2022 (UTC)
I don't think noindex would prevent a search engine from following the links, and I doubt removing a page from the sidebar makes much difference. I'm not sure. My main points are that search engines seem to find everything on a MediaWiki site quickly enough, and you can do what you want using the Cargo extension. Good luck! Jonathan3 (talk) 20:50, 2 February 2022 (UTC)

Where to get updated about advancements in MediaWiki theming?

I would like to update myself from time to time about MediaWiki theming / advancements about skin development:

  • Should the next stable MediaWiki release include a new default skin?
  • Were Skin:Vector and Skin:Minerva Neue finally merged into one skin?
  • Someone in the community just created a new custom skin


How could I get such "skin context" news?

Is there any mailing list? Is there any RSS feed? Is there any version control channel? Something else? 79.176.222.75 (talk) 17:20, 28 January 2022 (UTC)

Such things would be announced on wikitech-l, however that has a lot of other content to.
Not much happens in the skin world. Bawolff (talk) 17:25, 28 January 2022 (UTC)

My Special:Contact ContactPage is resulting in my host sending me spam warnings?

Today I got a warning from my host about sending out spam. Looking deeper, it appears that if some spammer submits a contact form which says their email address is, e.g., Fred@SpamAlot.com, then my tiny wiki sends an email to my personal gmail account, saying that the email is from Fred@SpamAlot.com (when it should say it's from something like Admin@MyTinyWiki.com).

So this is where my host is rightly concerned - my wiki (MyTinyWiki.com) appears to be impersonating SpamAlot.com. See? I've looked at the header info for Contact emails and indeed that's what it says; it says the email originated from whatever email address the Contactee put on my Contact form.

I have looked at Extension:ContactPage but I can't make heads or tails of this relative to the issue in question. Almost all my LocalSettings.php are set as shown on Extension:ContactPage. It includes this:

'SenderEmail' => null, // Defaults to $wgPasswordSender, may be changed as required

Mine is indeed set to null and my $wgPasswordSender = admin@MyTinyWiki.com

So ... where are the settings governing the fact that ContactPage says it's sending an email from whatever email was submitted on the form?

And ... can someone correct me if wrong ... doesn't Special:Contact, by default, make every wiki admin that uses it, an email address spoofer? (which could get your own site's email shut down!)

I only get a few spams through my contact form a week, which usually go right to my personal email spam folder (unless it's a legitimate contact request). So contact spam isn't a big deal to me, personally. But the warning from my site provider woke me up and lit a fire. I never thought about the fact that Special:Contact is doing this.

Thanks if you can help! RedKnight7 (talk) 18:14, 28 January 2022 (UTC)

Audio Host Selection

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


Can someone elaborate on the difference between and when use a preferred audio host, i.e. MME, Windows Direct Sound or Windows WASAPI.

Thanks Afen56 (talk) 22:09, 28 January 2022 (UTC)

@Afen56 Please see the sidebar. How is this related to MediaWiki? Malyacko (talk) 23:09, 28 January 2022 (UTC)
Sorry if I am mistaken but I thought this page was a page to ask questions on the program "Audacity". Can you advise on what I am not understanding.
Thanks. Afen56 (talk) 17:25, 29 January 2022 (UTC)
This is for the mediawiki software, which audacity may be using to document their software. However we don't know anything about audacity only mediawiki. You'll have to find an audacity forum to ask at. Bawolff (talk) 18:32, 29 January 2022 (UTC)
The discussion above is closed. Please do not modify it. No further edits should be made to this discussion.

Internal Server Error upon saving many pages

Hi. Upon saving many pages in my wiki, it throws an Internal Server Error. We can bypass it sometimes by editing specific areas of the page but if it's necessary to edit the whole page, it's impossible. We suspect it MIGHT be a poorly encoded character that is on these pages and we also suspect it MIGHT be part of the pages with InfoBoxes or the track-listings (this is a wiki for a band).

I'm at a loss as to figuring out what's throwing the error or how to fix it and my users are tired of not being able to edit.

EXAMPLE PAGE: https://www.hiddeninthesand.com/wiki/index.php?title=Good_%26_Evil

Any help would be appreciated. I will even pay for your time if necessary. Cozbaldwin (talk) 01:33, 29 January 2022 (UTC)

Do webserver error log or php error logs have any errors related to this? Bawolff (talk) 04:31, 29 January 2022 (UTC)
I'm not skilled enough to know where to look or what to look for when it comes to error logs. If you can guide me, that'd be awesome - otherwise I can try to Google how to do it using Dreamhost servers.
Hoping someone can see a glaring error when looking at the page or code though. Cozbaldwin (talk) 06:20, 29 January 2022 (UTC)
Please check Dreamhost's documentation how and where to find logs. Furthermore, you are running an outdated, insecure, and unsupported version of MediaWiki. Please upgrade MediaWiki for your own safety. Malyacko (talk) 09:45, 29 January 2022 (UTC)
Manual:How to debug has some info about error logs, but if you're using dreamhosts shated host product (not the vps product) it can really depend on the company so best to look at their docs.
If its something that goes away after a while, it could be some sort of rate limit made by your host, although that would be unusual. Bawolff (talk) 18:22, 29 January 2022 (UTC)
I found my error logs and they're blank?! So I've written Dreamhost to help.
I also tried @bawolff's HOW TO DEBUG rec and put in a few different things in my LocalSettings according to that page but it didn't print out any errors on the page; just threw me to the 500 Internal Server Error page again. Cozbaldwin (talk) 19:08, 29 January 2022 (UTC)
Following up: ModSecurity adjustments had to be made by Dreamhost. It got rid of the inconsistent 500 Error on certain pages. But now that I've upgraded my wiki and added VisualEditor in, EVERY page throws a 403 error upon trying to save. Google has not proven to be helpful so I'm asking Dreamhost to look at the 403 errors and maybe make more adjustments to ModSecurity. In the meantime, I've simply turned off VisualEditor and left people to edit the source code until a fix has been found. Cozbaldwin (talk) 18:26, 30 January 2022 (UTC)
modSecurity is a pain the causes people a lot of problems. If possible i would reccomend disabling it fully. Bawolff (talk) 08:48, 31 January 2022 (UTC)
This likely is another known issue with mod security. https://phabricator.wikimedia.org/T265043#6866940
It apparently often complains about a missing Content-Length header on VisualEditor Post requests. This is a pass filter (if google is correct) as it is valid behaviour and also would not be a problem if mod_security returned 411, instead of 403 in that case.
Probably a sysadmin went 'paranoid mode' and enabled all rules in mod_security, even though that's not how you should be using mod_security. This 'only' happens for VE posts, because VE uses multipart/form-data to post, and is one of the few places to do so (another place would be certain uploads). —TheDJ (Not WMF) (talkcontribs) 09:51, 31 January 2022 (UTC)
Thank you everyone for your replies.
Well, Dreamhost was not able to help but we did try turning off Mod_security completely and I still got the 403 Error on all pages when editing with VE.
I'm at a loss, now. My users really wanted it and it looks like it makes it so much easier for non-wiki-savvy people to edit, but... I just don't think it's going to be possible. However I'm still very much open to trying anything anyone has to offer in terms of suggestions. Warning, though: I have tried a lot already. Cozbaldwin (talk) 07:10, 1 February 2022 (UTC)

Is there a way to prevent users with a certain rank from logging in?

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


I changed my mind on my wiki being for public use, but users have already signed up on it.

Is there a way to not let them use the wiki on those accounts? I have already disabled editing on them, but they still have other permissions and revoking the * permission does nothing. 186.185.122.79 (talk) 04:25, 29 January 2022 (UTC)

the "user" group is the relavent permission.
You could block them all. Bawolff (talk) 04:30, 29 January 2022 (UTC)
Thanks 186.185.122.79 (talk) 04:36, 29 January 2022 (UTC)
The discussion above is closed. Please do not modify it. No further edits should be made to this discussion.

AuthorProtect extension

I have installed Extension:AuthorProtect and I wonder if simple users can protect their pages. Because I see that sysops have such access and register users do not have. Please let me know if I can set to allow simple users protect their pages. Fokebox (talk) 08:41, 29 January 2022 (UTC)

How to add an hreflang tag to all webpages?

I understand that Google expects people to add an hreflang tag to each webpage of their website.


How to do so in MediaWiki,

Most preferably without installing any extensions? 79.176.130.99 (talk) 14:11, 29 January 2022 (UTC)

If you using a language that was variants and are using language converter, this should happen automatically.
If you need it for something else you would probably need anextension. Bawolff (talk) 18:30, 29 January 2022 (UTC)
The language of my site is Hebrew.
I don't know what variants you meant.
Is there any language converter associated with my website? 79.176.130.99 (talk) 11:51, 30 January 2022 (UTC)
No, hebrew doesn't use that feature.
Its used for languages that have multiple writing systems, e.g. Serbian and Chinese. Bawolff (talk) 00:31, 31 January 2022 (UTC)

Help setting up visual text editor

I installed MediaWiki yesterday onto xampp so I could test the capabilities of the platform.

I have understood from the documentation the visual text editor should be installed by default in the latest version but it is not appearing when I edit the Main page or add a new article.

I have found the installation instructions a little overwhelming and would really appreciate some support. Thank you. 93.107.20.146 (talk) 23:23, 29 January 2022 (UTC)

There should be a checkbox in the installer for it. You might have not checked it. Check to see if it is listed on the page Special:Version on your wiki. Bawolff (talk) 04:16, 30 January 2022 (UTC)
Thanks for your reply, it's not showing in Special:Version so that must be it. I'll reinstall and see if I can find that check box. 93.107.20.146 (talk) 10:46, 30 January 2022 (UTC)

Help with Templates

Hi, I'm trying to use this template, and I just cannot get it to work: https://commons.wikimedia.org/wiki/Template:TemplateBox

I clearly am extremely out of my depth. These are the resulting abominations I made:

https://mothkey.wiki/index.php/Template:TemplateBox

https://mothkey.wiki/index.php/Template:TemplateBox/doc

I tried so many variations of these things for days now. I'm starting to lose my mind. I know I'm probably going to come across as a complete ignoramus but honestly if someone could just point me in a direction of what I'm doing wrong I could at least correct it. 2603:6010:A902:2400:6D00:8528:C799:72FA (talk) 04:36, 30 January 2022 (UTC)

It says "Uses Lua" and "Uses TemplateStyles" so I wouldn't go near it :-) What do you want to achieve? You could probably write a simple template from scratch more easily than get this one to work. Jonathan3 (talk) 19:10, 30 January 2022 (UTC)
Honestly I just need a basic template that will allow me to use the ImageNote Template (it thinks sharing the link is spam for some reason).
It's for the ImageAnnotation gadget. 2603:6010:A902:2400:9CF1:27BF:C02C:4E1E (talk) 01:18, 31 January 2022 (UTC)

How do I edit documentation that shows as gerrit:...

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


I was trying to make an update to Manual:User rights but instead of text I only see gerrit:.... I actually have a gerrit account, so I tried to go and change the content there, but can't find it. Is there documentation of how this setup works somewhere? Thanks! Tenbergen (talk) 19:51, 30 January 2022 (UTC)

What are you trying to update? [[gerrit:]] is used on the page as an interwiki prefix to link to changesets in gerrit. Dylsss (talk) 20:30, 30 January 2022 (UTC)
I figured that it was a link to gerrit, but when I actually go to the gerrit in the link using the search box I was not able to find the content that populates into that spot on the wiki. So, there is fixing the content and understanding how this is set-up for next time.
The specific thing I am trying to do is to add to the editmyprivateinfo right that it also sets whether a user can change their password. Tenbergen (talk) 20:39, 30 January 2022 (UTC)
I'm not really sure what you're clicking on to get just the gerrit change link. The actual text you would want to edit is MediaWiki:Right-editmyprivateinfo, which would be done in git or locally here. But I don't think your change is correct, I revoked that right on my local test wiki and I could still change my password. Also I don't really think it would make sense to have a right that disallows you from changing your password. Dylsss (talk) 21:17, 30 January 2022 (UTC)
is this the part you are trying to edit?
|-
|editmyprivateinfo
|{{int|right-editmyprivateinfo}}
|*
|[[gerrit:67876|1.22+]]
Its a link to gerrit change 67876 (which is where the right was added). Its just a link, it is not populating the content. Bawolff (talk) 00:29, 31 January 2022 (UTC)
I can't believe I didn't see that, of course it's a template call to right-editmyprivateinfo. Facepalm me.
@Dylsss, I have had to set a wiki from public to private, and add a generic account so people can log in to read but not edit. It's not a good solution, and I know it and have presented why it is problematic, and am looking for greener pastures, but for now my workplace wants it this way. So I need a way to make the generic account so the generic users of the account can't change the password for it. I was actually thinking about running a cron job to just set it back to what we want every 5 minutes.
When I change this setting on my wiki ($wgRevokePermissions['generic']['editmyprivateinfo'] = true;) the change password button in preferences disappears. I didn't test whether there are other ways (known URL, API or Special Pages links or something) that would still allow a password change. Are you saying that for you the change didn't make that button go away? Tenbergen (talk) 04:42, 31 January 2022 (UTC)
Yes, it did make the button go away, but you can still change the password by going to Special:ChangeCredentials. Dylsss (talk) 11:27, 31 January 2022 (UTC)
Confirmed @Dylss. Which means even if I managed to hide that from Special Pages, it would still be available via link. Arguably it should not be if the editmyprivateinfo right is revoked, but there likely are more sides to that story.
I still think it would be good to mention on mediawiki:right-editmyprivateinfo that the right controls the presence of that button, with your caveat. I will start a discussion on That discussion belongs on that page's discussion page, though, not here. I have started the conversation at MediaWiki talk:Right-editmyprivateinfo#h-This_also_hides_the_"change_password"_button,_but...-2022-01-31T19:16:00.000Z. Thanks @Dylsss and @Bawolff for pointing me in the right direction! Tenbergen (talk) 19:17, 31 January 2022 (UTC)
The discussion above is closed. Please do not modify it. No further edits should be made to this discussion.

SkinBuildSidebar fails

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


I tested my extensions Extension:AgeClassification‎ and Extension:DonateButton with REL 1.36.3 and REL 1.37.1.

With REL 1.36.3 it works, but with REL 1.37.1 it fails. This is the problem. There is no error message? It just doesn't show up in the sidebar.--WikiForMen (talk) 01:59, 31 January 2022 (UTC)

There be been several changes to the Skin system, so I guess that might e related. Though I do not remember any changes to this hook in particular. —TheDJ (Not WMF) (talkcontribs) 09:11, 31 January 2022 (UTC)
See also Release notes/1.37 Malyacko (talk) 09:30, 31 January 2022 (UTC)
The discussion above is closed. Please do not modify it. No further edits should be made to this discussion.

How to add responsive content boxes to my homepage?

Here in the homepage of mediawiki.org there are several responsive content boxes:

First three

  • Set up and run MediaWiki
  • Edit and use MediaWiki
  • Develop and extend code

Second two

  • Get help and contribute
  • News

What I need

I need a simple, single-webpage source code to work with for such 3-column/2-column boxes, something I could just copy-paste to my homepage's source code and then modify wordly.

My problem

If I go to "View source" in mediawiki.org homepage I get references to various webpages and sub-webpages containing the source code for the boxes but I would prefer not to create so many webpages just for content boxes and I need a simpler same-webpage approach.

My question

What is the simplest approach you would take to put responsive content boxes in your MediaWiki homepage? 79.176.130.99 (talk) 11:28, 31 January 2022 (UTC)

You take the code from Template:Main page/styles.css and Template:Main page and adjust it to your simplifcation needs. Malyacko (talk) 13:58, 31 January 2022 (UTC)
Future readers, please read:
Project:Support desk/Flow/2022/02#h-How_would_you_format_a_webpage_which_you_include_in_your_homepage?-2022-02-02T13:32:00.000Z 79.176.130.99 (talk) 15:45, 2 February 2022 (UTC)

How to add a content box to Timeless sidebar?

In Skin:Timeless I want to add a second content box with some custom text to my sidebar --- just under my navigation box in the sidebar.

How to do that? 79.176.130.99 (talk) 12:27, 31 January 2022 (UTC)

Just a content box... :\\\ 79.176.130.99 (talk) 00:28, 2 February 2022 (UTC)
You can probably modify the content of the navigation menu by editing MediaWiki:Sidebar. See Manual:Interface/Sidebar for more information.
If this is not possible, I'm afraid you'll have to dig into skin source code to add a custom menu in PHP. Tinss (talk) 02:46, 2 February 2022 (UTC)
@Tinss
Thank you but I didn't mean to adding content into the box of the navigation menu, rather, to another new box under it, which I want to create. 79.176.130.99 (talk) 12:06, 2 February 2022 (UTC)
In this case I think you'll have to edit the PHP code of the skin to add another menu. Considering the navigation menu above, you could simply copy and edit the code and it should be pretty straightforward.
The other option, which I don't really recommend, is doing it using JS and jQuery. Tinss (talk) 19:35, 2 February 2022 (UTC)
It can be done with JavaScript directly from MediaWiki:Common.js available inside MediaWiki program GUI itself with the following JavaScript:
document.querySelector("#site-navigation").insertAdjacentHTML('afterend', `
	<div dir="ltr" style="text-align: center;">
		<h2>Call me:</h2>
		<a tel:X>+1 012-3456780</a>
	</div>
`);
Doing so with JavaScript carries the advantage or disadvantage that any phone number added this way might not be crawled by search engines.
Opinions? 79.176.130.99 (talk) 17:17, 6 February 2022 (UTC)
The above JavaScript isn't adjusted to resizes and in mobile display appears outside the sidebar (encapsulated in a burger menu).
From a quick test, this is a corrected code:
function addPhoneNumberBox() {
    document.querySelector("#site-navigation").insertAdjacentHTML('afterend', `
        <div class="phoneNumberBox" dir="ltr" style="text-align: center; background: red;">
            <h2>Call me:</h2>
            <a tel:X>+1 012-3456780</a>
        </div>
    `);
};
if (window.innerWidth >= 850) {
    addPhoneNumberBox();
}
window.addEventListener("resize", function() {
    if (window.innerWidth < 850) {
        document.querySelector(".phoneNumberBox").remove();
    }
});
window.addEventListener("resize", function() {
    if (window.innerWidth >= 850) {
        const [...PhoneNumberBox] = document.querySelectorAll(".phoneNumberBox");
        PhoneNumberBox.forEach( (element)=>{
            element.remove();
        });
        addPhoneNumberBox();
    };
});
Explanation:
  1. Declare a procedure for adding the box
  2. Add the box only on desktop displays
  3. Listen to respective-smallscale-resizing events and in them --- remove the box
  4. Listen to respective-largescale-resizing events and in them --- remove any box that might still appear and present just one box
Please feel free to review this JavaScript code. 79.176.130.99 (talk) 17:01, 7 February 2022 (UTC)
An even shorter JavaScript (and probably faster, performancewise):
const myMedia = `
    <style>
        @media screen and (max-width:850px) {
            #phoneNumberBox {
                display:none;
            }
    </style> 
`;
const parasiteElement = `
    <div id="phoneNumberBox"> 
        Call me: <a href='tel:+1 xxx-xxxxxx'>+1 012-3456780</a>
    </div>
`;
document.querySelector("body").insertAdjacentHTML("beforeend", myMedia);
document.querySelector("#site-navigation").insertAdjacentHTML("afterend", parasiteElement);
79.176.130.99 (talk) 12:31, 9 February 2022 (UTC)
These JavaScript contact solutions should be secondary, not primary.
JavaScript may not load and the phone number will not appear.
Therefore, a backend contact webpage with a contact form at least (and desirably also a phone number) should be available from the main navigation a primary contact method,
Only then, should JavaScript as exampled here be used. 79.176.130.99 (talk) 12:33, 9 February 2022 (UTC)
That's my opinion, at least. 79.176.130.99 (talk) 12:33, 9 February 2022 (UTC)

Problem mit dem Erzeugen von Users (LDAP)

Unser Wiki ist mit einem LDAP verbunden.

Leider können wir keine User anlegen.

Wenn man bei bestehenden User das Passwort im LDAP ändert ist das neue PW auf im Wiki.

Es scheint also eine Verbindung zu bestehen - aber wie gesagt das erzeugen User im Wiki wird abgelehnt. -- Martin Gärtner (talk) 12:29, 31 January 2022 (UTC)

Du meinst ihr seit über LDAP mit einem ActiveDirectory verbunden?
Hast du in der LocalSettings.php $wgGroupPermissions['*']['autocreateaccount'] = true; gesetzt? MountainGoat92 (talk) 12:58, 31 January 2022 (UTC)
Ich prüfe das. -- Martin Gärtner (talk) 10:43, 3 February 2022 (UTC)
Dieser Wert existiert gar nicht.
Nur:
$wgGroupPermission['*']['createaccount']=false;
$wgGroupPermission['*']['edit']=false;
$wgGroupPermission['*']['read']=true; -- Martin Gärtner (talk) 11:14, 3 February 2022 (UTC)
Dann musst du den Wert dort ergänzen ;)
Bei mir hat es funktioniert mit dieser Anleitung:
Manual:Active Directory Integration
Was ich lang gesucht habe und dann als Fehlerquelle identifiziert habe: Im JSON Config File sind die Tags "userinfo" und "authorization" notwendig, auch wenn diese keinen Inhalt in den Klammern haben. MountainGoat92 (talk) 13:12, 3 February 2022 (UTC)
Ist die Änderung nach dem Speicher aktiv, oder muss ich die update.php ausführen, oder /mw-konfig/ ? -- Martin Gärtner (talk) 09:58, 9 February 2022 (UTC)
ich habe $wgGroupPermissions['*']['autocreateaccount'] = true; eingefügt.
Ist die Änderung nach dem Speicher aktiv, oder muss ich die update.php ausführen, oder /mw-konfig/ ? -- Martin Gärtner (talk) 09:07, 4 February 2022 (UTC)
hm ich glaube die Änderung sollte direkt aktiv sein. Aber ein update.php kannst du sicher mal probieren.
Unter LDAP hub ist unten noch eine Sektion mit "Debugging", die 3 php Skripte kannst du mal ausführen dann siehst du ob überhaupt eine Kommunikation mit dem LDAP Server stattfindet oder nicht. MountainGoat92 (talk) 15:07, 9 February 2022 (UTC)
Hallo,
ich habe das gleiche Problem. Ich habe $wgGroupPermissions['sysop']['autocreateaccount'] = true;
gesetzt kann aber leider keine neuen User angeben/ anlegen. 217.70.201.18 (talk) 09:56, 1 February 2022 (UTC)
Mit $wgGroupPermissions['sysop']['autocreateaccount'] = true; darf nur der sysop die Funktionalität autocreateaccount vewenden.
Siehe hier: Manual:User rights MountainGoat92 (talk) 10:36, 1 February 2022 (UTC)
Hallo,
ja das ist natürlich korrekt (und auch so gewollt). Auch wenn ich die Werte:
$wgGroupPermissions['*']['createaccount'] = true;
$wgGroupPermissions['*']['autocreateaccount'] = true;
setze kann ich keine neuen AD User im Wiki anlegen. 217.70.201.18 (talk) 10:58, 1 February 2022 (UTC)
Verstehe ich das richtig, dass du neue User im Wiki anlegen willst welche ins AD synchronisiert werden sollen? MountainGoat92 (talk) 09:07, 2 February 2022 (UTC)
Nein ich möchte User aus dem AD auf das Wiki freischalten (Edit Funktion). Alle anderen dürfen "nur" lesen 91.38.157.210 (talk) 13:58, 2 February 2022 (UTC)
Das kann viele Ursachen haben, ich habe gute Erfahrungen mit der Anleitung gemacht:
Manual:Active Directory Integration MountainGoat92 (talk) 13:16, 3 February 2022 (UTC)
Bei mir soll es so sein, dass User/Pw aus dem AD "geholt" werden und man so im Wiki arbeiten kann. -- Martin Gärtner (talk) 10:44, 3 February 2022 (UTC)

How to add a third column to Timeless header?

My Skin:Timeless header content area has two columns --- one for logo and one for search box.

I want to add a third column with my phone number (preferably, appearing only to desktop users.

How to do that? 79.176.130.99 (talk) 13:53, 31 January 2022 (UTC)

Please tag someone who can help or link to some tutorial. 79.176.130.99 (talk) 11:55, 1 February 2022 (UTC)
You'll likely have to edit your skin source code Malyacko (talk) 10:03, 2 February 2022 (UTC)

How to add a custom header?

I like my website's skin a lot but I need a different header.

Is it somehow possible to create a standalone PHP file containing HTML and PHP only for an header and replace my current header with that one? 79.176.130.99 (talk) 13:55, 31 January 2022 (UTC)

You could always edit the source code to change things the way you like. Malyacko (talk) 10:05, 2 February 2022 (UTC)

Database issue

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


A while ago I updated my Wiki to 1.34.1 and since I have problems.

MediaWiki 1.34.1
PHP 7.3.33 (litespeed)
MariaDB 10.3.28-MariaDB-cll-lve
ICU 63.1


Whenever I try to create a new page, or upload a new image I get the error:

"/wiki/index.php?title=Test&action=edit&redlink=1 Wikimedia\Rdbms\DBQueryError from line 1603 of /home/someblabla/domains/mydomain.org/public_html/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?"


So I tried to run the updater from the browser, since I had no access to a command line. The updater gives no response at all, just a still..


So I moved the entire website to another provider, now I have command line. Today ran the updater from the command line. It runs for a short while until:


Adding log_actor field to table logging ...Wikimedia\Rdbms\DBQueryError from line 1603 of /home/someblabla/domains/mydomain.org/public_html/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: ALTER TABLE `logging`

ADD COLUMN log_actor bigint unsigned NOT NULL DEFAULT 0 AFTER log_user_text

Function: Wikimedia\Rdbms\Database::sourceFile( /home/someblabla/domains/mydomain.org/public_html/wiki/maintenance/archives/patch-logging-log_actor.sql )

Error: 1054 Unknown column 'log_user_text' in 'logging' (localhost)


Checked the database and yes, the log_user_text field is missing, explaining the above result.


So now I am kind of lost in how to proceed from here. I could probably alter the database manually with phpMyAdmin but I fear that it might explode in my face...


So, suggestions are appreciated! Thanks in advance. Theo SVV (talk) 15:07, 31 January 2022 (UTC)

This is a weird situation. Does the log_actor field exists in the logging table? And does it contain data (i.e., not filled with nulls or zeroes)?
Old mediawiki versions had the log_user and log_user_text, but those fields have been replaced with log_actor. MediaWiki is trying to apply this update by adding the new log_actor field relative to the old fields that are no longer used, but failing because it doesn't exist. Ciencia Al Poder (talk) 19:48, 31 January 2022 (UTC)
Thanks for responding. No it is not there. The existing columns are:
O and sorry for slow responding... Job takes a lot of time... :) Theo SVV (talk) 13:02, 2 February 2022 (UTC)
It looks like your wiki was migrated in one-step from a very old version that didn't had the log_user_text column, and the updater is trying to run a newer update without applying older patches first...
For example, your installation is apparently missing this patch: https://github.com/brion/MediaWiki/blob/master/maintenance/archives/patch-log_user_text.sql
After applying this patch, you need to run populateLogUsertext.php, and then try the update.php again Ciencia Al Poder (talk) 14:27, 2 February 2022 (UTC)
Thanks, I checked my logs. The upgrades from the past were:
  1. mediawiki 1.16.1
  2. mediawiki 1.19.4
  3. mediawiki 1.28
  4. mediawiki 1.34.1
I will try your suggested solutions and be back. Would you anticipate more problems in other tables? Theo SVV (talk) 19:00, 3 February 2022 (UTC)
So, I made a backup of the database and ran the suggested patch. That went well. Then I ran the populateLogUsertext.php and it said:
...log_user_text column of logging table already populated.
Now the update.php results in this error:
Table logging contains log_user field. Dropping ...Wikimedia\Rdbms\DBQueryError from line 1603 of /home/someblabla/domains/mydomain.org/public_html/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: ALTER TABLE `archive`
DROP COLUMN ar_user,
DROP COLUMN ar_user_text,
ALTER COLUMN ar_actor DROP DEFAULT
Function: Wikimedia\Rdbms\Database::sourceFile( /home/someblabla/domains/mydomain.org/public_html/wiki/maintenance/archives/patch-drop-user-fields.sql )
Error: 1091 Can't DROP COLUMN `ar_user`; check that it exists (localhost) Theo SVV (talk) 19:39, 3 February 2022 (UTC)
But: The symptoms are solved. I can create new pages, and upload new images... So the only question remaining is: is everything ok now...? Theo SVV (talk) 19:44, 3 February 2022 (UTC)
I'd do similar checks:
See if the archive table has the ar_actor column populated with non-zero and non-null values. In that case, you can edit the maintenance/archives/patch-drop-user-fields.sql file manually and remove the DROP COLUMN ar_user and/or DROP COLUMN ar_user_text lines from it, and run update.php again, so it registers it as being run. Ciencia Al Poder (talk) 09:03, 4 February 2022 (UTC)
ok so the ar_actor column was there and seems to be populated with integer values. So I did the thing you suggested.
Next error is in the ipblocks table:
Query: ALTER TABLE `ipblocks`
DROP COLUMN ipb_by,
DROP COLUMN ipb_by_text,
ALTER COLUMN ipb_by_actor DROP DEFAULT
Function: Wikimedia\Rdbms\Database::sourceFile( /home/someblabla/domains/mydomain.org/public_html/wiki/maintenance/archives/patch-drop-user-fields.sql )
Error: 1091 Can't DROP COLUMN `ipb_by`; check that it exists (localhost)
I checked the structure of the table and columns ipb_by and ipb_by_text are missing... Theo SVV (talk) 15:59, 4 February 2022 (UTC)
You can manually edit the file and remove those lines:
  • DROP COLUMN ipb_by,
  • DROP COLUMN ipb_by_text,
and let the script continue Ciencia Al Poder (talk) 18:41, 4 February 2022 (UTC)
Well it took me a little time to figure it out by your examples, and I literally had to delete all DROP statements from the patch-drop-user-fields.sql script. Now the update.php has completed to a normal end, so I suppose that the installation is OK now.
Thanks big time for your help. I will leave this ticket open for some time in case you (or anybody for that matter) like to leave me another comment or advice.. Theo SVV (talk) 20:42, 4 February 2022 (UTC)
The discussion above is closed. Please do not modify it. No further edits should be made to this discussion.

Image pages missing

Hiya! I'm helping out a friend who's administrating a huge wiki with quite a few images, pages. and articles.

We've noticed that some images aren't showing up on the pages they should. They can be found in the proper directory, but their page does not exist, that is, the link

https://www.ourwiki.org/File:picture.jpg

goes to an nonexisting page.

Is there any maintenance script to run to recreate these lost pages? Or some other trick to fix the problem?

wonders mike 86.114.221.172 (talk) 16:55, 31 January 2022 (UTC)

...and yes, I might add that the images can be found in the database, in the images-table.
--mike again 86.114.221.172 (talk) 17:02, 31 January 2022 (UTC)
...and yet one more comment. This guy has obviously had the same problem and solved it. It's not very detailed, though. Any suggestions?
Project:Support desk/Flow/2021/03#h-Missing_Images_(After_Upgrade)-2021-03-28T04:34:00.000Z 86.114.221.172 (talk) 17:30, 31 January 2022 (UTC)
Please see "Post a new question" in the sidebar. Malyacko (talk) 18:40, 31 January 2022 (UTC)
Whoopsie, sorry about that. The site is
https://www.phantomwiki.org/
Version info:
ProductVersion MediaWiki1.35.5
PHP7.3.33 (litespeed)
MariaDB10.3.32-MariaDB-cll-lve
ICU63.1 86.114.221.172 (talk) 19:58, 31 January 2022 (UTC)
Can you give a link to an example of a broken file page?
Is there a pattern to which ones are broken? Bawolff (talk) 01:52, 1 February 2022 (UTC)
Hi!
Now with username!
Here's an example. On the page
www.phantomwiki.org/The_Demon_God_of_Wasaka
the picture Wasakaidol.jpg is missing. Upper right corner.
The picture is uploaded and can be found in the properly hashed directory
www.phantomwiki.org/images/e/e5/Wasakaidol.jpg
On the other hand, the corresponding file cannot be found
www.phantomwiki.org/File:Wasakaidol.jpg
The link on the page says
www.phantomwiki.org/index.php?title=Special:Upload&wpDestFile=Wasakaidol.jpg
even though the file exists.
So, when I try to upload the file again all kinds of oddness happen
I get the warning "The description page for this file has already been created at File:Wasakaidol.jpg, but no file with this name currently exists. The summary you enter will not appear on the description page. To make your summary appear there, you will need to manually edit it."
And I'm under the impression that the page for the file doesn't exist (see link above) whereas the file does (see other link above).
When I choose to ignore the warnings and upload anyway I get the message
The upload is an exact duplicate of the current version of File:Wasakaidol.jpg.
which really doesn't make sense since the previous message told me that no file with this name exists.
I have ran into other equally surreal messages while working on this but it all boils down to the same: The image exists, it disappeared from the pages when updating (as did other images as well) and I can't get it back.
Any help much appreciated.
--mike Abmarac (talk) 17:28, 1 February 2022 (UTC)
Message from User:AKulbii. I am just posing it as apparently he is currently not allowed to share external links on the Support desk:
Hello there!
Probably I’ve encountered similar problem.
It happened for me that in one of instances there were images which didn’t have corresponding wiki page.
Unfortunately, I didn’t find source of this problem, but I found a solution.
It can be fixed by this maintenance script:
https://gerrit.wikimedia.org/r/c/mediawiki/extensions/BlueSpiceFoundation/+/759235/1/maintenance/CreateFilePages.php
It’ll look for images without wiki page in your wiki, and create wiki page for each of them.
You can download this script from link above (click on Download -> Right Content and save file as “CreateFilePages.php”) and place it in “{root}/maintenance” directory of your wiki installation, where “{root}” is root directory of your wiki.
Then you need to edit a bit this script.
Change line 3 of this file from that
require_once dirname( dirname( dirname( __DIR__ ) ) ) . "/maintenance/Maintenance.php";
to that
require_once __DIR__ . "/Maintenance.php";
Then script can be executed with such command from root directory of your wiki:
php maintenance/CreateFilePages.php
I recommend to execute it with --dry option at first, to take a look at results and make sure that everything works correctly.
Like that:
php maintenance/CreateFilePages.php --dry
Note!
This script is tested with MW 1.31 and MW 1.35
Best regards,
Alexey Osnard (talk) 13:57, 3 February 2022 (UTC)

antique database & Wiki and helpless user :-=

About 9 years ago I installed a mediaWiki on a hosted website, little knowing what an ambitious project I had undertaken. The wiki worked for 8 years “out of the box”, with no updates, back-ups etc. because I knew not how to and all instructions started one level to high, basically expecting me to be able to handle php-databases – which I wasn’t.

Now the Wiki stopped working, I suppose, the database as well as the wiki were so outdated, that the whole thing stopped working. A friend tried to get it working, but did not really get it up again.

I would actually need somebody to have a look at the whole situation and maybe either advise me what to do or better even to update the wiki and to get it up and running again. As far as I can tell, the database is still intact, with all the information stored. The wiki itself is structured simply and rather smallish.

Any advice is thankfully received! I will also try to get some education with respect to databases and the lot – in future….

Thank you, Tillman RembertRover (talk) 17:14, 31 January 2022 (UTC)

"Now the Wiki stopped working", what does that mean? is it showing white page or deluge of error messages everywhere?
If you're getting errors and simply looking for how to fix, please state the exact errors you're seeing and people might be able to help. If you're looking for dedicated help, see Professional_development_and_consultingAmmarpad (talk) 18:14, 31 January 2022 (UTC)

Language capitalization on Translate extension page

Just wondering why my language version starts with a small letter e.g. "slovenična" not "Slovenčina" the same goes for a number of other languages including Czech or Russian How can I change the language capitalization on this page:

Help:Extension:Translate/Page translation example/sk - MediaWiki Anglibald (talk) 18:19, 31 January 2022 (UTC)

Query error

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


I'm wrestling with our recently updated wiki. When trying to upload an image I get the attached error. The maintenance/update.php has been run.


Here's the info

www.phantomwiki.org/

Version info:

ProductVersion MediaWiki1.35.5

PHP7.3.33 (litespeed)

MariaDB10.3.32-MariaDB-cll-lve

ICU63.1


And this is (part of) the error message


[9i9zxN4ygCepKyVRtfXKTApl] /Special:Upload Wikimedia\Rdbms\DBQueryError from line 1699 of /home/schapter/public_html/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?

Error 1146: Table 'schapter_mediawiki.cleantalk_sfw_settings' doesn't exist (localhost)

Function: Wikimedia\Rdbms\DBConnRef::query

Query: SELECT * FROM `cleantalk_sfw_settings` 86.114.221.172 (talk) 21:49, 31 January 2022 (UTC)

The error message suggests that it is related to Extension:Antispam, the extension has a hook for Manual:Hooks/UploadVerifyFile which is probably where the error is occurring from and the error may occur elsewhere when the extension is used. FWIW the extension looks basically unmaintained. Dylsss (talk) 22:41, 31 January 2022 (UTC)
Merci 86.114.221.172 (talk) 07:00, 1 February 2022 (UTC)
The discussion above is closed. Please do not modify it. No further edits should be made to this discussion.

Does it matter where I put a category link?

MediaWiki 1.36.1, principally all-core.


Does it matter where I put a category link?

For example, does it matter if I put it in the end of the webpage or the start of the webpage (in edit modes)?


I usually put it in the end but in my homepage, where I plan to paste some HTML I want to put it in the very start so it won't interrupt me paste some HTML, from time to time. 79.176.130.99 (talk) 22:19, 31 January 2022 (UTC)

It doesn't matter Bawolff (talk) 01:49, 1 February 2022 (UTC)