Project:Support desk/Flow/2020/09

Welcome to the MediaWiki Support desk. This is a place where you can ask any questions you have about installing, using or administrating the MediaWiki software.

(Read this message in a different language)

See also

Before you post

Post a new question

  1. To help us answer your questions, please indicate which version of MediaWiki you are using, as found on your wiki's Special:Version page:
  2. If possible, add $wgShowExceptionDetails = true;error_reporting( -1 );ini_set( 'display_errors', 1 ); to LocalSettings.php in order to make MediaWiki show more detailed error messages.
  3. Please include the web address (URL) to your wiki if possible. It's often easier for us to identify the source of the problem if we can see the error directly.
  4. To start a new thread, click the box with the text "Add topic".

Visual Editor problems: Error contacting the Parsoid/RESTBase server (HTTP 404)

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.


You would want to change Debian 10.5 (buster)

MediaWiki 1.35.0-rc.2
PHP 7.3.19-1~deb10u1 (apache2handler)
MariaDB 10.4.8-MariaDB-log


I can't figure out why Visual Editor is not working for a specific use case. Visual Editor works fine except when trying to create a subpage with Visual Editor in the User namespace. e.g. www.mysite.com/User:John/Newpage, it keeps giving me Error contacting the Parsoid/RESTBase server (HTTP 404).


It works fine when using Visual Editor outside the user namespace, which is very strange?


I did a fresh install on my machine and even one on a brand new AWS EC2 machine to check, with only VisualEditor/Wikieditor as extensions. It doesn't work on either install.


Would anyone have any idea what can be wrong or have any pointers? John Bradie (talk) 08:58, 1 September 2020 (UTC)

debugging I look at the values of the response that gave an error (they are below).
What catches my attention is 'requestPath': transform/wikitext/to/html/User%3AJohn%2Ftestpage and I suspect the problem comes from : and / being sanitized to %3A and %2F. Which I believe is unnecessary.
After seeing this, and to check if the premise is correct, I checked if creating subpages in the Main namespace also gives an error. And it does.
So this looks like its a bug?
'code':
404
'trace':
#0 /var/www/html/w/extensions/VisualEditor/includes/ApiVisualEditor.php(67): ApiVisualEditor->requestRestbase(Object(Title), 'POST', 'transform/wikit...', Array)
#1 /var/www/html/w/extensions/VisualEditor/includes/ApiVisualEditor.php(251): ApiVisualEditor->parseWikitextFragment(Object(Title), 'testtext', false, NULL, true)
#2 /var/www/html/w/includes/api/ApiMain.php(1593): ApiVisualEditor->execute()
#3 /var/www/html/w/includes/api/ApiMain.php(529): ApiMain->executeAction()
#4 /var/www/html/w/includes/api/ApiMain.php(500): ApiMain->executeActionWithErrorHandling()
#5 /var/www/html/w/api.php(90): ApiMain->execute()
#6 /var/www/html/w/api.php(45): wfApiMain()
#7 {main}
'response':
<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN"> <html><head> <title>404 Not Found</title> </head><body> <h1>Not Found</h1> <p>The requested URL was not found on this server.</p> <hr> <address>Apache/2.4.38 (Debian) Server at localhost Port 80</address> </body></html>
'requestPath':
transform/wikitext/to/html/User%3AJohn%2Ftestpage John Bradie (talk) 18:13, 1 September 2020 (UTC)
ok so I think its definitely a bug:
If I remove urlencode from lines 230 & 250 in file ApiParsoidTrait.php it does work..........
I hacked it for the moment... John Bradie (talk) 20:21, 2 September 2020 (UTC)
Reported on Phabricator: https://phabricator.wikimedia.org/T261921 John Bradie (talk) 07:52, 3 September 2020 (UTC)
The discussion above is closed. Please do not modify it. No further edits should be made to this discussion.

are there any way to move a script from Mediawiki:Common.js somewhere else

As in question header, i am looking for a way to clean Mediawiki:Common.js and move it's content somewhere (which i don't know where),, can this content be included inside of of the skins javascripts? 2001:8F8:1E23:A0C:5DFB:C9E1:9D14:1A1D (talk) 12:28, 1 September 2020 (UTC)

A specific, self-contained script could be a gadget, for example (if the gadget extension is installed). But it's unclear which actual underlying problem you're trying to solve. Also see https://meta.stackexchange.com/questions/66377/what-is-the-xy-problem#answer-66378 Malyacko (talk) 13:58, 1 September 2020 (UTC)
i want to make mediawiki:common.js empty, and protect it so no body can edit it, plus i don't want to keep the content of mediawiki:common.js visible for public, can i move all it's content to resource loader, or skin js file, or somewhere else. do you recommend any procedure ? 2001:8F8:1E23:A0C:5DFB:C9E1:9D14:1A1D (talk) 15:35, 1 September 2020 (UTC)
javascript will always be visible as it has to be transmitted to the browser in order to be run.
You can of course make an extension containing just the script as a resource loader module. That will make it a bit more hidden but still public.
See ResourceLoader/Developing with ResourceLoader Bawolff (talk) 19:28, 1 September 2020 (UTC)
thank you for answering. 2001:8F8:1E23:A0C:389A:93A1:8328:F3C1 (talk) 09:33, 4 September 2020 (UTC)

Our custom skin no longer works after upgrade to 1.34.2

Media Wiki 1.34.2

PHP 7.3.20

We have used a custom skin for our site for years. We are trying upgrade to version 1.34.2 but the following code in our localsettings.php breaks the site.

require_once("$IP/skins/cau/cau.php");

$wgDefaultSkin = "cau";

This same code worked fine in our existing Media Wiki version 1.31.1. I am sure I am missing something simple - any suggestions? 205.131.177.6 (talk) 13:07, 1 September 2020 (UTC)

See the Release Notes and/or please explain what "breaks the site" means (actual behavior; errors in server logs; etc). Thanks. Malyacko (talk) 13:59, 1 September 2020 (UTC)
see How to debug (if you are getting a blank page, enable php error reporting) Bawolff (talk) 19:26, 1 September 2020 (UTC)

Restrict editing for specific pages

How to restrict editing for all users except admins (sysop) for Privacy_policy and General_disclaimer? S0ring (talk) 14:12, 1 September 2020 (UTC)

help:protected pages Bawolff (talk) 16:02, 1 September 2020 (UTC)
Thank you for the answer. But it is strange, on a german wiki (Impressum and Datenschutz are the corresponding german pages) a non-sysop user is allowed to edit these protected pages. Is this a bug?
Forgot to mention that Extension:Lockdown is activated. Would it have any influence on the protected pages? S0ring (talk) 07:07, 2 September 2020 (UTC)
is the page actually protected?
Non sysops should not be able to edit protected pages unless they have been given editprotected rights. The name of the page doesn't matter. Bawolff (talk) 08:04, 2 September 2020 (UTC)
To which namespace do belong the protected pages? S0ring (talk) 09:30, 2 September 2020 (UTC)
The attempt to force sysop only to editprotected rights didn't change anything, a non-sysop user is still allowed to edit the protected pages:
$wgGroupPermissions['*']['editprotected'] = false;
$wgGroupPermissions['sysop']['editprotected'] = true; S0ring (talk) 11:16, 2 September 2020 (UTC)
check your Special:ListGroupRights Bawolff (talk) 20:17, 2 September 2020 (UTC)
You should check your Extension:Lockdown settings and maybe consider disabling it to see whether you misconfigured it. By default, Mediawiki protected pages cannot be edited by non-sysops. – Ammarpad (talk) 18:23, 2 September 2020 (UTC)

Error: invalid magic word 'expectunusedcategory'

Hi

While trying to upgrade from PHP7.0.21 Mediawiki 1.32.0 to PHP7.4.9 Mediawiki 1.33.1 I run in to following error on all pages:


[d3247b148fd32c3f94c87313] /wiki/index.php/Hauptseite MWException from line 187 of F:\xampp\htdocs\wiki\includes\MagicWord.php: Error: invalid magic word 'expectunusedcategory'

Backtrace:

#0 F:\xampp\htdocs\wiki\includes\MagicWordFactory.php(222): MagicWord->load(string)

#1 F:\xampp\htdocs\wiki\includes\MagicWordArray.php(108): MagicWordFactory->get(string)

#2 F:\xampp\htdocs\wiki\includes\MagicWordArray.php(139): MagicWordArray->getBaseRegex()

#3 F:\xampp\htdocs\wiki\includes\MagicWordArray.php(284): MagicWordArray->getRegex()

#4 F:\xampp\htdocs\wiki\includes\parser\Parser.php(4104): MagicWordArray->matchAndRemove(string)

#5 F:\xampp\htdocs\wiki\includes\parser\Parser.php(1381): Parser->doDoubleUnderscore(string)

#6 F:\xampp\htdocs\wiki\includes\parser\Parser.php(491): Parser->internalParse(string)

#7 F:\xampp\htdocs\wiki\includes\content\WikitextContent.php(369): Parser->parse(string, Title, ParserOptions, boolean, boolean, integer)

#8 F:\xampp\htdocs\wiki\includes\content\AbstractContent.php(555): WikitextContent->fillParserOutput(Title, integer, ParserOptions, boolean, ParserOutput)

#9 F:\xampp\htdocs\wiki\includes\Revision\RenderedRevision.php(262): AbstractContent->getParserOutput(Title, integer, ParserOptions, boolean)

#10 F:\xampp\htdocs\wiki\includes\Revision\RenderedRevision.php(234): MediaWiki\Revision\RenderedRevision->getSlotParserOutputUncached(WikitextContent, boolean)

#11 F:\xampp\htdocs\wiki\includes\Revision\RevisionRenderer.php(193): MediaWiki\Revision\RenderedRevision->getSlotParserOutput(string)

#12 F:\xampp\htdocs\wiki\includes\Revision\RevisionRenderer.php(142): MediaWiki\Revision\RevisionRenderer->combineSlotOutput(MediaWiki\Revision\RenderedRevision, array)

#13 [internal function]: MediaWiki\Revision\RevisionRenderer->MediaWiki\Revision\{closure}(MediaWiki\Revision\RenderedRevision, array)

#14 F:\xampp\htdocs\wiki\includes\Revision\RenderedRevision.php(197): call_user_func(Closure, MediaWiki\Revision\RenderedRevision, array)

#15 F:\xampp\htdocs\wiki\includes\poolcounter\PoolWorkArticleView.php(194): MediaWiki\Revision\RenderedRevision->getRevisionParserOutput()

#16 F:\xampp\htdocs\wiki\includes\poolcounter\PoolCounterWork.php(123): PoolWorkArticleView->doWork()

#17 F:\xampp\htdocs\wiki\includes\page\Article.php(773): PoolCounterWork->execute()

#18 F:\xampp\htdocs\wiki\includes\actions\ViewAction.php(68): Article->view()

#19 F:\xampp\htdocs\wiki\includes\MediaWiki.php(499): ViewAction->show()

#20 F:\xampp\htdocs\wiki\includes\MediaWiki.php(294): MediaWiki->performAction(Article, Title)

#21 F:\xampp\htdocs\wiki\includes\MediaWiki.php(865): MediaWiki->performRequest()

#22 F:\xampp\htdocs\wiki\includes\MediaWiki.php(515): MediaWiki->main()

#23 F:\xampp\htdocs\wiki\index.php(42): MediaWiki->run()

#24 {main}


I used update.php, rebuildlocalisationcache.php, cleanupemptycategories.php and cleanupuserswithoutnoid.php (cause I’ve seen messages via update.php for the last one).


The Wiki runs local inside Xampp, so not online.

Can someone please help?

Many Thanks 83.135.207.184 (talk) 14:55, 1 September 2020 (UTC)

does making a dummy edit (e.g. adding a comment) to LocalSettings.php help (sometimes that can force a cache clear).
Make sure that all your mediawiki files are from the same version (e.g. dont just extract the new tarball over the existing MW install as that can cause some files to be new version, some old version, which can cause errors like this) Bawolff (talk) 05:26, 2 September 2020 (UTC)
I had thrown away the whole Wiki Folder (beside of LocalSettings.php and Images Folder) and paced the fresh tarball inside, wat’s lead me to the above result.
As you advised, I’ve taken away the LocalSettings.php and made a new via the install process – leading to the same error.
I’ve placed $wgMessageCacheType = CACHE_NONE; in – sadly same error.
The database is very old (min16 years) and quite big (350MB sql dump).
It would be quite sad not being able to update beyond 1.32.6 and stay with this… 109.250.153.126 (talk) 07:55, 2 September 2020 (UTC)
I tried it with php7.2.33 updating in single steps from Mediawiki 1.32.0 to 1.32.6 is everything fine.
Updating from 1.32.6 to 1.33.0 everything gets broken with above error.
Please help 109.250.153.126 (talk) 15:17, 2 September 2020 (UTC)
$wgLocalisationCacheConf is probably much more relavent than $wgMessageCacheType (I do not recommend disabling it, except in testing to narrow down possible causes. MW will be very slow without it. However, if you want to rule things out, temporary disabling is something you can try.)
Can you verify that the file F:\xampp\htdocs\wiki\languages\messages\MessagesEn.php matches the official version here (This is link for 1.33.1). In particular, is line 362 the same? Bawolff (talk) 05:41, 3 September 2020 (UTC)
Yes, MessagesEN.php was 100% identic.
I made a new update try, now with PHP 7.3.21 by skipping 1.33 and jump from 1.32 direct to 1.34 … error is gone and everything works fine now.
I tried this before with PHP 7.4.9 and get every single page broken/empty (pages where there but Wiki delivered no article entry). Probably this was a PHP inconsistent?!?
The database I’am using is a 2004 dump of an English site, that we continued and updated with German articles. Sometimes English and German inside the same Article. So something that will normally not happen.
For me it seems there was a rare ?bug? with Mediawiki’s language support in the update script of the 1.33 numbers that has been fixed in 1.34.
Thank you for your time Bawolff. 89.245.91.241 (talk) 16:20, 3 September 2020 (UTC)
I have the same error, with another extension and I submitted an issue. I can't link but it's bharley/mw-markdown/issues/17 on github. 82.254.246.242 (talk) 10:27, 4 November 2020 (UTC)
Do you have manualRecache turned ON in $wgLocalisationCacheConf? If so, run the maintenance/rebuildLocalisationCache.php --force --lang=en should fix this. Neomw (talk) 23:27, 16 August 2022 (UTC)

problem to load

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


I have problems with the wiki. The problem is that the main page appears without a template, only text, as if the connection was interrupted or the whole web did not load. For this same reason when the page is loaded and I give it edit, the changes are simply not saved, it stays in the editing template, as if it were stunned, although after a while it normalizes and then again fails. I updated from 1.33 to 1.34 to see if the bug would correct but nothing. I can browse other websites at the same time, it is not a problem with my internet, and it does not seem to be a server problem because other pages that I have work normally. What will be the origin of this problem? 2806:106E:1E:6CA:53DA:A196:2806:2A10 (talk) 21:10, 1 September 2020 (UTC)

Is it because you only use one user? 2806:106E:1E:6CA:53DA:A196:2806:2A10 (talk) 23:13, 1 September 2020 (UTC)
likely $wgScriptParh and/or short urls are set wrong. Probably load.php is inaccessible
Please check the web browser developer console for errors. Check the path for load.php in your Special:version to ensure it works.
Check also your php error log for any errors (see How to debug for instructions)
Best if you provide a link to your wiki if possible. if you cant, please report any errors in developer console or php error log, what happens when you view load.php directly. Value of alk your Path related variables in LocalSettings.php, and any short url config you have. Bawolff (talk) 05:22, 2 September 2020 (UTC)
ThankYou. well, $wgScriptPath = ""; not is configured. Load.php yes is accesible. the url web is antropowiki (search in google). I am configureting log errors. Now function well 2806:106E:1E:6CA:53DA:A196:2806:2A10 (talk) 16:57, 2 September 2020 (UTC)
The discussion above is closed. Please do not modify it. No further edits should be made to this discussion.

Some vital questions about how page rebuilding works on big wikis

Hello. We in Russian Wikipedia often have disputes on how the mechanism of rebuilding pages works, and as many of us have contradicting empirical data and existing manuals don't help much, I would be very grateful if some competent person(s) clarified once and for all some things about the mechanism of rebuilding pages, updating backlinks and categories and so on.

Let's say we're on a big wiki, like English or Russian Wikipedia. The most transcluded pages have more than a million transclusions. Let's say one of such templates/modules has been updated. What happens next?

  1. How long will it take to update the HTML rendering of all the pages transcluding the given template/module?
  2. How long will it take to update the backlinks and categories of all the pages transcluding the given template/module?
  3. Will the servers' operation to complete these tasks be gradual or abrupt? Or maybe gradual for the most time and reducing in the end?
  4. How newly introduced changes to the template/module in question will affect the task completion? Will the jobs be immediately deduplicated after insertion? Should the editors who make edits to such templates/modules attempt not to make many changes instead of one, or does it not matter much?
  5. Is the queue to rebuild pages common for all Wikimedia wikis, or is it individual for each wiki? Particularly, do heavy changes in one wiki affect rebuilding pages (and possibly other tasks) in other wikis?
  6. Is there a graph or data in any other representation where the state of the job queue for a wiki / all wikis can be monitored? It's not clear how to derive this knowledge from the Grafana's "JobQueue" service data, and the siteinfo API seems to always have "jobs": 0.
  7. Is there any mechanism of rebuilding pages other than the job queue in Wikimedia wikis? Could a page be rebuilt just at the moment of request under some conditions?

This is pretty much essential for carrying out tech tasks in the project. Thank you very much. Jack who built the house (talk) 21:49, 1 September 2020 (UTC)

im going to answer these in order asked since there are a lot of them:
(1), (2), not sure. Can depend on a lot of factors. Note these two processes are separate. Generally html rendering is a bit faster. Html rendering might not happen all at once, but instead what might happen is that the page might get marked as "dirty" (page_touched is updated), and the rendering is updated on next view.
(3) its gradual, but depending on things, the timeframe may be short enough it may seem kind of abrupt, especially if the backlinks are on the smaller side.
(4) There is both deduplication and there is also code which checks if the page has been refreshed already since the triggering edit. (These are considered separate types of deduplication). For very very heavily used templates (say >100 million) i would suggest avoiding multiple changes if possible, but if someone does do multiple changes, its really nothing to worry too much about. I definitely dont think its worth worrying about a template with only a million uses (other devs may have differing views where to draw the line. I am not an expert in this area).
(5) I think its global. Not 100% sure.
(6) https://grafana.wikimedia.org/d/000300/change-propagation?orgId=1&refresh=30s i think is relavent. The api call only works on wikis using the mysql backend (not wikimedia but most third partt wikis)
(7) yes. Pages can have their html rebuilt (but generally not their links updated) if someone purges the page, if there is no current saved version of the page (the saved html of a page is only kept around so long. It used to be 30 days, not sure if that's currently the timeframe. Certain magic words may reduce that time significantly), if page_touched in db is > the timestamp on the saved html (normally that happens due to job queue). Pages can also have their backlinks updated outside the job queue via null edits or api purge calls with special argument. Pages that have certain magic words on them may have their links updated on page views on regular intervals.
Keep in mind also that the category list at bottom of page is considered part of the html not the backlinks.
Also as an important moral: wikis are meant to be used. If a template needs to be updated, then it should be updated regardless of how many pages it is used on, since that is what templates are there for. Bawolff (talk) 05:17, 2 September 2020 (UTC)
Thank you. Many things became more clear, but not all. Still hard to evaluate the effect of any individual change. I suppose the "Eqiad message processing backlog" graph is somehow related to the number of pages that need to be updated, but it's unclear how.
Two follow-up questions:
  1. If you say that a template with a million translusions is not worth worrying about, and ru:Special:MostTranscludedPages has 2 million transclusions max, and en:Special:MostTranscludedPages has 25 million transclusions max, then the ruwiki template changes have a negligable input to the job queue? Well, according to reports from different users, the backlinks and categories take from 2 days to 2 weeks to update for a heavily used ruwiki template. Could it depend on the health of the global queue perhaps? (For example, I know that 3 years ago there was an issue with the job queue increasing non-stop, and page updating was very slow during those complications.) Also, will it take 12.5 times longer to update 25 million transcluding pages than 2 million?
  2. Is it true that if, say, there are 2 templates transcluded in the same million pages and nowhere else, then making two changes to one of these templates is essentially the same as making a change to each of them (since in every case, the HTML cache and backlinks/categories of the same million pages are invalidated)? And a related question: Do changes in one heavily used template slow down the updating of pages after changes to another heavily used template anything significantly? Jack who built the house (talk) 11:49, 2 September 2020 (UTC)
The graphs are roughly related to how many things there are to do, however you can't draw too many conclusions, since I believe some jobs take the form of "Add a bunch of new jobs to do all the tasks between X to Y", so the length of the queue doesn't affect the total number of outstanding jobs, since some jobs will only be inserted after other jobs are inserted. Unfortunately, the current graphs seem less useful than the older graphs. I'm a bit out of date, so I'm not sure if there are better graphs somewhere.
It may still take a few days if you edit a big page (2 weeks though seems very long), i just don't think its something worth worrying about.
Speed of jobqueue can depend on what else is in the job queue, and if people have edited other big templates at the same time. However, the job queue is much more robust now then it used to be years ago.
I would indeed suspect that time taken would be roughly linear (or more precisely, log-linear) in the number of transclusions.
for 2: yes. If a page has been refreshed recently do to edit X, and then edit Y happens in between edit X and edit Y but before the page has been refreshed, MW will detect that the page refresh was recent enough it doesn't have to refresh it for edit Y (But there is still some processing to check if edit Y is relevant). If there's a backlog of jobs to process, it means new jobs added might take longer, since there's more things to do. Bawolff (talk) 05:33, 3 September 2020 (UTC)

Login problem after upgrade from 1.23.5 to 1.34.2

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


Versions:

Web Server Apache

PHP 7.4.9 (upgraded from 5.5)

MYSQL 5.5.5-10.1.41-MariaDB

Mediawiki 1.34.2 (direct upgrade from 1.23.5)

After the upgrade of both PHP and Mediawiki I was unable to login as the password didn't match the username. I also noted the change to passwords being 10 characters long etc.

I found this SQL work around to reset the password for my admin user:

UPDATE `mw_user` SET user_password = CONCAT(':B:1234:', MD5(CONCAT('1234-', MD5('xxxxxxxxxx')))) WHERE user_name = 'yyyyyyyyyy'

It seems updated password have 'BLOB - 137 B' whereas original ones have 'BLOB - 6 B' which I gather is something to do with the password encoding?

Is there a way to Alter the user table user_password column so all the original user passwords will work?

You can view the website at: https://www.hrca.net/wiki/ Robinhair2441 (talk) 10:12, 2 September 2020 (UTC)

if the password blob is only 6 bytes, something else is wrong. None of the valid password encodings are only 6 bytes long. I'd be curious what the six byte value is.
Do you have extensions overriding mediawiki password handling (e.g. ldap) Bawolff (talk) 20:20, 2 September 2020 (UTC)
When I run an SQL Select on the User table it lists 'BLOB - 6 B' against most of the rows for user_password, some other original passwords are listed as 'BLOB - 44 B'.
When I save the .bin file for a 'BLOB - 6 B' and open it in Notepad the value is always isLeeg
Another original password unchanged from MW 1.23.5 has 'BLOB - 44 B' and a value of :B:6593c2b5:db2726c7715f3b7138f57238bb3e0b3b
Am I opening these .bin files in the correct way?
Perhaps your question about extensions overriding Mediawiki password handling is the key to solving this issue!
The main part of our website uses Joomla, and the Joomla Extension:AuthJoomla for MediaWiki was installed and working with MW 1.23.5. However this extension is no longer supported and is therefore uninstalled, but it would have created user accounts and logged users on automatically when the Wiki was loaded via the Joomla menu. Is there some way to convert these AuthJoomla passwords into a format MW can read? Robinhair2441 (talk) 21:15, 2 September 2020 (UTC)
isLeeg sounds like a dummy value stored by the Joomla extension, and the real password was kept in joomla.
The ":B:6593c2b5:db2726c7715f3b7138f57238bb3e0b3b" is a valid mediawiki password in the older B format (not used in new mediawiki but mediawiki still understands it).
Note its possible to turn that B format hash back into a password with some effort so you should probably change whomever's password that is. (i mostly suggested pasting the 6 byte value as that is not ling enough to contain an actual password) Bawolff (talk) 21:21, 2 September 2020 (UTC)
Thanks for the explanation Bawolff. I'll get the users to reset their passwords should they want to edit any Wiki pages.
Happy for this support case to be closed.
Many thanks for responding
Robin Robinhair2441 (talk) 08:42, 3 September 2020 (UTC)
The discussion above is closed. Please do not modify it. No further edits should be made to this discussion.

Error: invalid magic word 'regex'.

I am getting the following message after my installation of 'RegexParserFunctions'. My mw version is 1.34.2. Maybe you can help me?

[aeaf7a7975a8ea3129c8f827] /%E7%89%B9%E6%AE%8A:%E7%89%88%E6%9C%AC MWException from line 183 of /www/wwwroot/wiki.kimisui56.work/includes/MagicWord.php: Error: invalid magic word 'regex'

Backtrace:

#0 /www/wwwroot/wiki.kimisui56.work/includes/MagicWordFactory.php(222): MagicWord->load(string)

#1 /www/wwwroot/wiki.kimisui56.work/includes/parser/Parser.php(5288): MagicWordFactory->get(string)

#2 /www/wwwroot/wiki.kimisui56.work/extensions/RegexParserFunctions/RegexParserFunctions.php(118): Parser->setFunctionHook(string, string)

#3 /www/wwwroot/wiki.kimisui56.work/includes/Hooks.php(174): RegexParserFunctions::initParser(Parser)

#4 /www/wwwroot/wiki.kimisui56.work/includes/Hooks.php(202): Hooks::callHook(string, array, array, NULL)

#5 /www/wwwroot/wiki.kimisui56.work/includes/parser/Parser.php(476): Hooks::run(string, array)

#6 /www/wwwroot/wiki.kimisui56.work/includes/cache/MessageCache.php(1189): Parser->firstCallInit()

#7 /www/wwwroot/wiki.kimisui56.work/includes/cache/MessageCache.php(1165): MessageCache->getParser()

#8 /www/wwwroot/wiki.kimisui56.work/includes/language/Message.php(1280): MessageCache->transform(string, boolean, LanguageZh_hans, Title)

#9 /www/wwwroot/wiki.kimisui56.work/includes/language/Message.php(884): Message->transformText(string)

#10 /www/wwwroot/wiki.kimisui56.work/includes/language/Message.php(944): Message->toString(string)

#11 /www/wwwroot/wiki.kimisui56.work/includes/OutputPage.php(888): Message->text()

#12 /www/wwwroot/wiki.kimisui56.work/includes/OutputPage.php(937): OutputPage->setHTMLTitle(Message)

#13 /www/wwwroot/wiki.kimisui56.work/includes/specialpage/SpecialPage.php(541): OutputPage->setPageTitle(string)

#14 /www/wwwroot/wiki.kimisui56.work/includes/specials/SpecialVersion.php(63): SpecialPage->setHeaders()

#15 /www/wwwroot/wiki.kimisui56.work/includes/specialpage/SpecialPage.php(575): SpecialVersion->execute(NULL)

#16 /www/wwwroot/wiki.kimisui56.work/includes/specialpage/SpecialPageFactory.php(611): SpecialPage->run(NULL)

#17 /www/wwwroot/wiki.kimisui56.work/includes/MediaWiki.php(296): MediaWiki\Special\SpecialPageFactory->executePath(Title, RequestContext)

#18 /www/wwwroot/wiki.kimisui56.work/includes/MediaWiki.php(900): MediaWiki->performRequest()

#19 /www/wwwroot/wiki.kimisui56.work/includes/MediaWiki.php(527): MediaWiki->main()

#20 /www/wwwroot/wiki.kimisui56.work/index.php(44): MediaWiki->run()

#21 {main} Morikawa56 01:23, 3 September 2020 (UTC)

Extension:RegexParserFunctions is using the old-style of magic words, and hasn't been updated in 5 years. I think old-style magic words are maybe no longer supported by MediaWiki. Bawolff (talk) 05:18, 3 September 2020 (UTC)
If you want to update the code you can see how @Legoktm did it for MagicNumberedHeadings in this changeset: Don't use the deprecated MagicWord::get() MarkAHershberger(talk) 14:19, 3 September 2020 (UTC)
there is even an unmerged pull request that fixes the issue https://github.com/mediawiki4intranet/RegexParserFunctions/pull/1/commits
(Ping User:VitaliyFilippov) Bawolff (talk) 15:07, 3 September 2020 (UTC)

XSS detected in normal wikitext table?

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


So I was editing my Main Page when my server starting giving me "Internal Server Error" pages anytime I hit either "submit" or "preview page." Then my server blacklisted my IP address and I had to contact my web host to regain access to my site.

Here's what it said in my error logs:

[Thu Sep 03 00:56:09.540779 2020] [:error] [pid 13641] [client MY_IP] [client ME] ModSecurity: Warning. detected XSS using libinjection. [file "/host/apache2/template/etc/mod_sec3_CRS/REQUEST-941-APPLICATION-ATTACK-XSS.conf"] [line "60"] [id "941100"] [msg "XSS Attack Detected via libinjection"] [data "Matched Data: XSS data found within ARGS:text: {| class=\\x22oneColTb nomobile\\x22 style=\\x22width:100%; padding:0rem 1rem 1rem 1rem; font-size:1.1rem;\\x22\\x0a|-\\x0a| colspan=2 style=\\x22font-size:1.4rem; font-weight:bold; text-align:center;\\x22 | <h1 style=\\x22margin-top:.4em !important\\x22>Welcome to Test Wiki</h1>\\x0a|-\\x0a| valign=middle style=\\x22padding-right:1em;\\x22 |\\x0a\\x0aThis Test Wiki exists for the easy sharing of information, policies, and documents among staff and board m..."] [severity "CRITICAL"] [ver "OWASP_CRS/3.2.0"] [tag "application-multi"] [tag "language-multi"] [tag "platform-multi"] [tag "attack-xss"] [tag "paranoia-level/1"] [tag "OWASP_CRS"] [tag "OWASP_CRS/WEB_ATTACK/XSS"] [tag "WASCTC/WASC-8"] [tag "WASCTC/WASC-22"] [tag "OWASP_TOP_10/A3"] [tag "OWASP_AppSens [hostname "mysite.com"] [uri "/w/api.php"] [unique_id "alongstringofcharacters"], referer: https://mysite.com/w/index.php?title=Main_page&action=submit

I don't get it. That looks like a regular old wiki table to me. Why is my server identifying it as an XSS attack and triggering "Internal Server Error" whenever I try to edit it?

My server had at least 100 error messages similar the one above — all of which look like scary XSS attacks until I look into at their contents and see normal wikitext. Here's another scary looking one:

[Thu Sep 03 00:56:42.103058 2020] [:error] [pid 12245] [client MY_IP] [client ME] ModSecurity: Warning. Pattern match "(?i:(?:<\\\\w[\\\\s\\\\S]*[\\\\s\\\\/]|['\\"](?:[\\\\s\\\\S]*[\\\\s\\\\/])?)(?:on(?:d(?:e(?:vice(?:(?:orienta|mo)tion|proximity|found|light)|livery(?:success|error)|activate)|r(?:ag(?:e(?:n(?:ter|d)|xit)|(?:gestur|leav)e|start|drop|over)|op)|i(?:s(?:c(?:hargingtimechange ..." at ARGS:text. [file "/host/apache2/template/etc/mod_sec3_CRS/REQUEST-941-APPLICATION-ATTACK-XSS.conf"] [line "229"] [id "941160"] [msg "NoScript XSS InjectionChecker: HTML Injection"] [data "Matched Data: \\x22oneColTb nomobile\\x22 style=\\x22width:100%; padding:0rem 1rem 1rem 1rem; font-size:1.1rem;\\x22\\x0a|-\\x0a| colspan=2 style=\\x22font-size:1.4rem; font-weight:bold; text-align:center;\\x22 | <h1 style=\\x22margin-top:.4em !important\\x22>Welcome to Test Wiki</h1>\\x0a|-\\x0a| valign=middle style=\\x22padding-right:1em;\\x22 |\\x0a\\x0aThis Test Wiki exists for the easy sharing of information, policies, and documents among staff and board members.\\x0a\\x0aExplore pages for [[:Categories..."] [severity "CRITICAL"] [ver "OWASP_CRS [hostname "mysite.com"] [uri "/w/api.php"] [unique_id "alongstringofcharacters"], referer: https://mysite.com/w/index.php?title=Main_Page&action=edit

Any idea why? Knomanii (talk) 08:23, 3 September 2020 (UTC)

That's not a MediaWiki feature and probably caused by your host's webserver configuration. Taavi (talk!) 12:04, 3 September 2020 (UTC)
As you can see in the logs, this is caused by ModSecurity. Ask your host to disable that. Ciencia Al Poder (talk) 13:31, 3 September 2020 (UTC)
Got it, thanks. I vaguely remembering ticking "Extra Web Security" in my host's web options recently, so ModSecurity must be the result.
I'd love to disable it just for the Mediawiki folder, but unfortunately my web host says "Disabling and modifying of mod_security rules via .htaccess is not supported at this time."
So, I'll go ahead and disable it. Anyhoo, thanks for all the info. Knomanii (talk) 14:16, 3 September 2020 (UTC)
The discussion above is closed. Please do not modify it. No further edits should be made to this discussion.

wikilove

שלום, אני רוצה לייבא לויקימילון את "ויקיאהבה". יש שם תמיכה במזנון. משהו יכול לדאוג לזה? תודה רבה

מושך בשבט (talk) 10:46, 3 September 2020 (UTC)

Make UploadWizard not require category?

While uploading images to my private wiki UploadWizard gives an error message if i don't add a category to the image, and even though the "Category" is supposed to be optional, i cannot publish the image.


Is there any way to remove this? 194.71.217.77 (talk) 11:52, 3 September 2020 (UTC)

The "error message" is actually just the wikiText element saying "It's recommended you add some categories to your image" 194.71.217.77 (talk) 11:54, 3 September 2020 (UTC)

MediaWiki internal error.

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


Hi. Suddenly (I didn't change anything) the page stopped opening and an error popped up.


MediaWiki internal error. Original exception: [X1DUfWcBAE4EkrllPSpO6QAAAAk] 2020-09-03 11:33:17: Fatal exception of type "Wikimedia\Rdbms\DBConnectionError" Exception caught inside exception handler. Set $wgShowExceptionDetails = true; at the bottom of LocalSettings.php to show detailed debugging information.


After setting $wgShowExceptionDetails = true


MediaWiki internal error.

Original exception: [X1DTvTnT9foV7TMJGbIy3wAAACc] /kapliczki/index.php Wikimedia\Rdbms\DBConnectionError from line 1213 of /home/kapli/public_html/kapliczki/includes/libs/rdbms/loadbalancer/LoadBalancer.php: Cannot access the database: Unknown error (localhost)

Backtrace: #0 /home/kapli/public_html/kapliczki/includes/libs/rdbms/loadbalancer/LoadBalancer.php(758): Wikimedia\Rdbms\LoadBalancer->reportConnectionError() #1 /home/kapli/public_html/kapliczki/includes/GlobalFunctions.php(2637): Wikimedia\Rdbms\LoadBalancer->getConnection(integer, array, boolean) #2 /home/kapli/public_html/kapliczki/includes/cache/localisation/LCStoreDB.php(54): wfGetDB(integer) #3 /home/kapli/public_html/kapliczki/includes/cache/localisation/LocalisationCache.php(410): LCStoreDB->get(string, string) #4 /home/kapli/public_html/kapliczki/includes/cache/localisation/LocalisationCache.php(456): LocalisationCache->isExpired(string) #5 /home/kapli/public_html/kapliczki/includes/cache/localisation/LocalisationCache.php(332): LocalisationCache->initLanguage(string) #6 /home/kapli/public_html/kapliczki/includes/cache/localisation/LocalisationCache.php(273): LocalisationCache->loadItem(string, string) #7 /home/kapli/public_html/kapliczki/languages/Language.php(4537): LocalisationCache->getItem(string, string) #8 /home/kapli/public_html/kapliczki/languages/Language.php(262): Language::getFallbacksFor(string) #9 /home/kapli/public_html/kapliczki/languages/Language.php(223): Language::newFromCode(string) #10 /home/kapli/public_html/kapliczki/includes/ServiceWiring.php(120): Language::factory(string) #11 /home/kapli/public_html/kapliczki/includes/libs/services/ServiceContainer.php(430): Wikimedia\Services\ServiceContainer->{closure}(MediaWiki\MediaWikiServices) #12 /home/kapli/public_html/kapliczki/includes/libs/services/ServiceContainer.php(414): Wikimedia\Services\ServiceContainer->createService(string) #13 /home/kapli/public_html/kapliczki/includes/MediaWikiServices.php(508): Wikimedia\Services\ServiceContainer->getService(string) #14 /home/kapli/public_html/kapliczki/includes/Setup.php(790): MediaWiki\MediaWikiServices->getContentLanguage() #15 /home/kapli/public_html/kapliczki/includes/WebStart.php(77): require_once(string) #16 /home/kapli/public_html/kapliczki/index.php(39): require(string) #17 {main} Exception caught inside exception handler: [X1DTvTnT9foV7TMJGbIy3wAAACc] /kapliczki/index.php Wikimedia\Rdbms\DBConnectionError from line 1213 of /home/kapli/public_html/kapliczki/includes/libs/rdbms/loadbalancer/LoadBalancer.php: Cannot access the database: Unknown error (localhost)

Backtrace: #0 /home/kapli/public_html/kapliczki/includes/libs/rdbms/loadbalancer/LoadBalancer.php(758): Wikimedia\Rdbms\LoadBalancer->reportConnectionError() #1 /home/kapli/public_html/kapliczki/includes/GlobalFunctions.php(2637): Wikimedia\Rdbms\LoadBalancer->getConnection(integer, array, boolean) #2 /home/kapli/public_html/kapliczki/includes/cache/localisation/LCStoreDB.php(54): wfGetDB(integer) #3 /home/kapli/public_html/kapliczki/includes/cache/localisation/LocalisationCache.php(355): LCStoreDB->get(string, string) #4 /home/kapli/public_html/kapliczki/includes/cache/localisation/LocalisationCache.php(273): LocalisationCache->loadItem(string, string) #5 /home/kapli/public_html/kapliczki/languages/Language.php(4537): LocalisationCache->getItem(string, string) #6 /home/kapli/public_html/kapliczki/languages/Language.php(262): Language::getFallbacksFor(string) #7 /home/kapli/public_html/kapliczki/languages/Language.php(223): Language::newFromCode(string) #8 /home/kapli/public_html/kapliczki/includes/ServiceWiring.php(120): Language::factory(string) #9 /home/kapli/public_html/kapliczki/includes/libs/services/ServiceContainer.php(430): Wikimedia\Services\ServiceContainer->{closure}(MediaWiki\MediaWikiServices) #10 /home/kapli/public_html/kapliczki/includes/libs/services/ServiceContainer.php(414): Wikimedia\Services\ServiceContainer->createService(string) #11 /home/kapli/public_html/kapliczki/includes/MediaWikiServices.php(508): Wikimedia\Services\ServiceContainer->getService(string) #12 /home/kapli/public_html/kapliczki/includes/cache/MessageCache.php(132): MediaWiki\MediaWikiServices->getContentLanguage() #13 /home/kapli/public_html/kapliczki/includes/exception/MWExceptionRenderer.php(311): MessageCache::singleton() #14 /home/kapli/public_html/kapliczki/includes/exception/MWExceptionRenderer.php(51): MWExceptionRenderer::reportOutageHTML(Wikimedia\Rdbms\DBConnectionError) #15 /home/kapli/public_html/kapliczki/includes/exception/MWExceptionHandler.php(98): MWExceptionRenderer::output(Wikimedia\Rdbms\DBConnectionError, integer)

#16 /home/kapli/public_html/kapliczki/includes/exception/MWExceptionHandler.php(172): MWExceptionHandler::report(Wikimedia\Rdbms\DBConnectionError) #17 /home/kapli/public_html/kapliczki/includes/exception/MWExceptionHandler.php(144): MWExceptionHandler::handleException(Wikimedia\Rdbms\DBConnectionError) #18 [internal function]: MWExceptionHandler::handleUncaughtException(Wikimedia\Rdbms\DBConnectionError)

#19 {main} Mzopw (talk) 11:54, 3 September 2020 (UTC)

Is your database server running and configured correctly? Taavi (talk!) 12:01, 3 September 2020 (UTC)
Thank you. The problem was with the hosting provider. Mzopw (talk) 14:43, 3 September 2020 (UTC)
I am waiting for a response from the supplier if there is a problem with them. The website worked properly for six months. Mzopw (talk) 12:46, 3 September 2020 (UTC)
The discussion above is closed. Please do not modify it. No further edits should be made to this discussion.

Preload Summary Input Value for Individual User

I'm going to be making a lot of similar edits on my wiki and I'd like to preload the summary field with some text.

I've enabled $wgAllowUserJs = true; and created the following code on the User:Myname/common.js page:

if(document.body.classList.contains("ns-0") && document.body.classList.contains("action-edit")){ document.getElementById("wpSummary").value = "Preload this text"}<nowiki>

It works, but takes some time for the script to run. Is there a faster way I cna have the field preload with some text? 76.173.103.102 (talk) 00:37, 4 September 2020 (UTC)

that should be pretty quick (in fact i would worry it could execute even before page finished loading and not work). It would be odd if you are seeing a significant delay and might mean some other js is slowing things down.
Only thing faster would be a php extension. The interfaces might not be the best for this (but in theory at least is doable)
You can also try extension:CharInsert
So basic tldr is no. Bawolff (talk) 00:46, 4 September 2020 (UTC)

Playing around with Commons tabular data.

Hi!

I'm trying to plot some data stored in the "Data:" namespace of Commons (https://commons.wikimedia.org/wiki/Data:Sandbox/Ajuanca/test.tab) by using the Chaph:Chart Template. I want to return the final graph from my Module (https://en.wikipedia.org/wiki/Module:Sandbox/Ajuanca/GraphIt) but I'm getting in some troubles just trying to access the Tabular data (https://en.wikipedia.org/wiki/User:Ajuanca/sandbox/graphIt#The_graph).

Thanks,

Ajuanca (talk) 09:39, 4 September 2020 (UTC)

you would have to expand templates before giving that argument to the function, i think. Bawolff (talk) 15:08, 4 September 2020 (UTC)
hi! thanks for the response. What exactly means "expand the template"? I found en:Template:Expand but that says it has been deprecated. Ajuanca (talk) 20:06, 4 September 2020 (UTC)
i wss thinking that you might have to do
frame:preprocess on it, but after reading the docs it sounds like that is not the case.
I would suggest logging the values at various points in your script to ensure variables have the values you think they do. Bawolff (talk) 07:00, 5 September 2020 (UTC)

Update from 1.15.3 to 1.32

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


Hi!

I would like to update my Media Wiki. At the same time the name of the database and the domain will change.

I have now uploaded the new FTP data to the server. I kept the folder Images. I also kept the file LocalSettings.php.

The name of the database, the DB user and the DB password were adapted to the new database.

According to the wiki instructions I should add the following extensions to a 1.15 LocalSettigs.php:


# extension

wfLoadExtension( 'Cite' );

wfLoadExtension( 'Gadgets' );

wfLoadExtension( 'ImageMap' );

wfLoadExtension( 'InputBox' );

wfLoadExtension( 'Nuke' );

wfLoadExtension( 'ParserFunctions' );

wfLoadExtension( 'Poem' );

wfLoadExtension( 'SyntaxHighlight_GeSHi' );

wfLoadExtension( 'WikiEditor' );

# Skin

wfLoadSkin( 'Vector' );

wfLoadSkin( 'MonoBook' );

wfLoadSkin( 'Modern' );

wfLoadSkin( 'CologneBlue' );

Translated with www.DeepL.com/Translator (free version)


If I use the Wiki under:

/wiki/mw-config

for an update, I get the following error message:


[X1IUs5DRO896BdEVLLQOrAAAAEQ] /wiki/mw-config/ Exception from line 136 of /home/vagabund/ir-wip.roma-magna.de/wiki/includes/registration/ExtensionRegistry.php: Unable to open file /home/vagabund/ir-wip.roma-magna.de/wiki/skins/Modern/skin.json: filemtime(): stat failed for /home/vagabund/ir-wip.roma-magna.de/wiki/skins/Modern/skin.json

Backtrace:

#0 /home/vagabund/ir-wip.roma-magna.de/wiki/includes/GlobalFunctions.php(89): ExtensionRegistry->queue(string)

#1 /home/vagabund/ir-wip.roma-magna.de/wiki/LocalSettings.php(139): wfLoadSkin(string)

#2 /home/vagabund/ir-wip.roma-magna.de/wiki/includes/installer/Installer.php(619): require(string)

#3 /home/vagabund/ir-wip.roma-magna.de/wiki/includes/installer/WebInstallerExistingWiki.php(29): Installer::getExistingLocalSettings()

#4 /home/vagabund/ir-wip.roma-magna.de/wiki/includes/installer/WebInstaller.php(270): WebInstallerExistingWiki->execute()

#5 /home/vagabund/ir-wip.roma-magna.de/wiki/mw-config/index.php(80): WebInstaller->execute(array)

#6 /home/vagabund/ir-wip.roma-magna.de/wiki/mw-config/index.php(38): wfInstallerMain()

#7 {main}


Can anyone help me with this error message?

Thanks a lot! 93.202.132.81 (talk) 10:25, 4 September 2020 (UTC)

It is also a good idea on Friday to check the folder of the skin first. If the skin does not exist, it cannot be loaded.
Problem solved. xD 93.202.132.81 (talk) 10:35, 4 September 2020 (UTC)
Why would you upgrade to an insecure, unsupported version (1.32)? Malyacko (talk) 11:21, 4 September 2020 (UTC)
Don't add the new extensions unless you want them abd you have downloaded them all.
The error means that the Modern skin is missing. Bawolff (talk) 15:05, 4 September 2020 (UTC)
The discussion above is closed. Please do not modify it. No further edits should be made to this discussion.

LOGIN PROBLEMS

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


I am having login problems. I am using the same user name and password as I did successfully yesterday but without success today.  When I sent my user id and email address to "forgot password," the reply is:  "You do not have permission to perform this action." In preparing my 1-minute to comply with LibriVox technical standards, I have been in constant contact with Adrian Stephens since joining LibriVox on Aug. 24, 2020.  My 1-minute test is approved and complies with LibriVox technical standards.  Thank you in advance for your prompt response to this request for help!  pcrossi 2601:40B:300:1EB:7D34:B92A:FFB1:B5ED (talk) 14:30, 4 September 2020 (UTC)

Hi, please direct questions about librivox to librivox, we can only answer questions about mediawiki Bawolff (talk) 15:54, 4 September 2020 (UTC)
The discussion above is closed. Please do not modify it. No further edits should be made to this discussion.

Installation Page not Loading Correctly

Hi!

I just installed MediaWiki and am on the configuration form. When I open the page in my web browser, only the dropdown lists and the sidebar load. I can't continue to the next page. I'm running MediaWiki on Raspbian with Apache 2. When I try to configure using the terminal, I get a Segmentation Fault.

Does anyone know what is happening?

Thanks! Tonnieboy300 (talk) 17:46, 4 September 2020 (UTC)

try upgrading your version of php maybe. Bawolff (talk) 02:42, 5 September 2020 (UTC)
Hi,
I just updated php but I still have the same problems.
Thank you for your feedback! Tonnieboy300 (talk) 17:11, 5 September 2020 (UTC)

Error Code:2

Hi,

loading Pictures with "Upload File" I get the message, that "Fehler beim Erstellen des Vorschaubildes: Error code: 2" At the moment I have following version installed:

Software Version
MediaWiki 1.25.1
PHP 5.6.38-nmm2 (fpm-fcgi)
MySQL 5.7.28-nmm1-log

As I have different sites with the same installation and on all other pages the upload works, only on one site I get the error. I have ckecked the localsettings.php , and they are all the same. I can not find any different. Has somebody an idea what I can do, or where there could be a mistake? The mediawiki, where I get the error message has the mots pictures in the image path. Could it be, that there is not enough space?

Thanks for any help.

Uwe UweKre (talk) 21:04, 4 September 2020 (UTC)

what type of file? Are you ising imagemagick for thumbnailing?
Generally this is the exit code of whatever program mediawiki calls to create the thumbnail. Im not sure what 2 means. Checking things like disk space, memory, etc is generally a good idea. If you can run the command manually (mediawiki debug log will tell you what the command is) it might have more info Bawolff (talk) 02:41, 5 September 2020 (UTC)
Hi,
thanks for the informations. I am talking about jpg-Files and I am using imagemagick for thumbnailing. UweKre (talk) 19:07, 6 September 2020 (UTC)

Make Search Bar Ignore Accents

When I type in the search bar it lists current article titles that match the start of the string I'm typing. However, it needs to be an exact match, including accents. Is there a way to allow it to match, for example, the article "Römer" if I just typed in "Rom". Meat curtain (talk) 07:47, 5 September 2020 (UTC)

Are you using ElasticSearch/CirrusSearch?
It looks like enwiki searches the way you want. If I search for Römör, the results include "romôr" and "Romor". MarkAHershberger(talk) 14:55, 5 September 2020 (UTC)
for reference this feature is ususlly called "diacritic folding" Bawolff (talk) 17:56, 5 September 2020 (UTC)

Getting fwrite() errors on import

I tried to import a bunch of modules and templates from Wikipedia to my local installation of MediaWiki, but when I did I received a bunch of errors looking something like:

Notice: fwrite(): write of XXXX bytes failed with errno=22 Invalid argument in C:\xampp\htdocs\includes\shell\Command.php on line 474

Any help on that?

The versions FYI:

Product Version
MediaWiki 1.34.2
PHP 7.4.9 (apache2handler)
MariaDB 10.4.14-MariaDB
ICU 66.1
Lua 5.1.4

Leranjun (talk) 11:57, 5 September 2020 (UTC)

You do not mention which extensions you have installed, but this looks like an error from SyntaxHighlight on Windows. MarkAHershberger(talk) 14:49, 5 September 2020 (UTC)
Seems like it is. Any ideas how to actually solve that without modifying the source code of the extension?
Also, after disabling it, I got rid of all the fwrite() errors, but now it shows a timeout if I import a lot of pages:
Fatal error: Maximum execution time of 120 seconds exceeded in C:\xampp\htdocs\extensions\Scribunto\includes\engines\LuaStandalone\LuaStandaloneEngine.php on line 533
I can indeed solve this by uploading multiple times, but it's going to be really inconvenient.
Is this supposed to be expected behaviour?
Many thanks. Leranjun (talk) 03:22, 6 September 2020 (UTC)
can you import from commandline importDump.php? Its much more reliable for large imports.
Failing that try increasing the max execution time limit in your php.ini config file. Bawolff (talk) 11:27, 6 September 2020 (UTC)
Many thanks. Didn't know such thing exists XD Leranjun (talk) 00:04, 7 September 2020 (UTC)
I've read Project:Support desk/Flow/2016/08#h-Fatal_error:_Maximum_execution_time_of_120_seconds_exceeded..._(importing_pages)-2016-08-08T13:35:00.000Z, Project:Support desk/Flow/2016/04#h-Error-2016-04-27T04:38:00.000Z and Extension talk:Scribunto/2016#h-Anyone_could_help_me_out_with_Scribunto?_(Windows_10)-2016-08-04T20:19:00.000Z, but none seemed to solve my problem. Leranjun (talk) 03:25, 6 September 2020 (UTC)
Those threads all have to do with Scribunto. Try this one. MarkAHershberger(talk) 19:25, 9 September 2020 (UTC)

Mediawiki docker container not working after restart

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


So I'm trying to migrate to docker from my current setup of nginx/mysql to the docker container

After moving everything, everything works, but after I restart the container it stops working, I can get it to work again if I drop the database and reimport it but that only lasts until the next restart of the container, not sure why it's doing this....

I get this when I try to browse to it:


<code>[8bcd8cf6a08de69a7592cab4] / Wikimedia\Rdbms\DBQueryError from line 1603 of /var/www/html/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 `user` JOIN `actor` `user_actor` ON ((user_actor.actor_user = user_id)) WHERE user_id = '1' LIMIT 1

Function: User::loadFromDatabase

Error: 1146 Table 'wiki2db.user' doesn't exist (mediawiki_database_1)

Backtrace:

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

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

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

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

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

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

#6 /var/www/html/includes/user/User.php(1356): Wikimedia\Rdbms\DBConnRef->selectRow(array, array, array, string, array, array)

#7 /var/www/html/includes/user/User.php(464): User->loadFromDatabase(integer)

#8 /var/www/html/includes/libs/objectcache/wancache/WANObjectCache.php(1423): User->{closure}(boolean, integer, array, NULL)

#9 /var/www/html/includes/libs/objectcache/wancache/WANObjectCache.php(1278): WANObjectCache->fetchOrRegenerate(string, integer, Closure, array)

#10 /var/www/html/includes/user/User.php(488): WANObjectCache->getWithSetCallback(string, integer, Closure, array)

#11 /var/www/html/includes/user/User.php(407): User->loadFromCache()

#12 /var/www/html/includes/user/User.php(343): User->loadFromId(integer)

#13 /var/www/html/includes/session/UserInfo.php(89): User->load()

#14 /var/www/html/includes/session/CookieSessionProvider.php(122): MediaWiki\Session\UserInfo::newFromId(string)

#15 /var/www/html/includes/session/SessionManager.php(466): MediaWiki\Session\CookieSessionProvider->provideSessionInfo(WebRequest)

#16 /var/www/html/includes/session/SessionManager.php(191): MediaWiki\Session\SessionManager->getSessionInfoForRequest(WebRequest)

#17 /var/www/html/includes/WebRequest.php(806): MediaWiki\Session\SessionManager->getSessionForRequest(WebRequest)

#18 /var/www/html/includes/session/SessionManager.php(129): WebRequest->getSession()

#19 /var/www/html/includes/Setup.php(826): MediaWiki\Session\SessionManager::getGlobalSession()

#20 /var/www/html/includes/WebStart.php(81): require_once(string)

#21 /var/www/html/index.php(41): require(string)

#22 {main}

</code>


and when I try to run php update.php:

<code>MediaWiki 1.34.2 Updater

Your composer.lock file is up to date with current dependencies!

Going to run database updates for wiki2db

Depending on the size of your database this may take a while!

Abort with control-c in the next five seconds (skip this countdown with --quick) ... 0

Turning off Content Handler DB fields for this part of upgrade.

...ipblocks table does not exist, skipping new field patch.

...ipblocks table does not exist, skipping new field patch.

Creating interwiki table ...done.

Adding default interwiki definitions ...Wikimedia\Rdbms\DBQueryError from line 1603 of /var/www/html/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: REPLACE INTO `interwiki` (iw_prefix,iw_url,iw_local,iw_api) VALUES

('acronym','https://www.acronymfinder.com/~/search/af.aspx?string=exact&Acronym=$1',0,''),

('advogato','http://www.advogato.org/$1',0,''),

('arxiv','https://www.arxiv.org/abs/$1',0,''),

('c2find','http://c2.com/cgi/wiki?FindPage&value=$1',0,''),

('cache','https://www.google.com/search?q=cache:$1',0,''),

('commons','https://commons.wikimedia.org/wiki/$1',0,'https://commons.wikimedia.org/w/api.php'),

('dictionary','http://www.dict.org/bin/Dict?Database=*&Form=Dict1&Strategy=*&Query=$1',0,''),

('doi','https://dx.doi.org/$1',0,''),

('drumcorpswiki','http://www.drumcorpswiki.com/$1',0,'http://drumcorpswiki.com/api.php'),

('dwjwiki','http://www.suberic.net/cgi-bin/dwj/wiki.cgi?$1',0,''),

('elibre','http://enciclopedia.us.es/index.php/$1',0,'http://enciclopedia.us.es/api.php'),

('emacswiki','https://www.emacswiki.org/cgi-bin/wiki.pl?$1',0,''),

('foldoc','https://foldoc.org/?$1',0,''),

('foxwiki','https://fox.wikis.com/wc.dll?Wiki~$1',0,''),

('freebsdman','https://www.FreeBSD.org/cgi/man.cgi?apropos=1&query=$1',0,''),

('gentoo-wiki','http://gentoo-wiki.com/$1',0,''),

('google','https://www.google.com/search?q=$1',0,''),

('googlegroups','https://groups.google.com/groups?q=$1',0,''),

('hammondwiki','http://www.dairiki.org/HammondWiki/$1',0,''),

('hrwiki','http://www.hrwiki.org/wiki/$1',0,'http://www.hrwiki.org/w/api.php'),

('imdb','http://www.imdb.com/find?q=$1&tt=on',0,''),

('kmwiki','https://kmwiki.wikispaces.com/$1',0,''),

('linuxwiki','http://linuxwiki.de/$1',0,''),

('lojban','https://www.lojban.org/tiki/tiki-index.php?page=$1',0,''),

('lqwiki','http://wiki.linuxquestions.org/wiki/$1',0,''),

('meatball','http://www.usemod.com/cgi-bin/mb.pl?$1',0,''),

('mediawikiwiki','https://www.mediawiki.org/wiki/$1',0,'https://www.mediawiki.org/w/api.php'),

('memoryalpha','http://en.memory-alpha.org/wiki/$1',0,'http://en.memory-alpha.org/api.php'),

('metawiki','http://sunir.org/apps/meta.pl?$1',0,''),

('metawikimedia','https://meta.wikimedia.org/wiki/$1',0,'https://meta.wikimedia.org/w/api.php'),

('mozillawiki','https://wiki.mozilla.org/$1',0,'https://wiki.mozilla.org/api.php'),

('mw','https://www.mediawiki.org/wiki/$1',0,'https://www.mediawiki.org/w/api.php'),

('oeis','https://oeis.org/$1',0,''),

('openwiki','http://openwiki.com/ow.asp?$1',0,''),

('pmid', 'https://www.ncbi.nlm.nih.gov/pubmed/$1?dopt=Abstract',0,''),

('pythoninfo','https://wiki.python.org/moin/$1',0,''),

('rfc','https://tools.ietf.org/html/rfc$1',0,''),

('s23wiki','http://s23.org/wiki/$1',0,'http://s23.org/w/api.php'),

('seattlewireless','http://seattlewireless.net/$1',0,''),

('senseislibrary','https://senseis.xmp.net/?$1',0,''),

('shoutwiki','http://www.shoutwiki.com/wiki/$1',0,'http://www.shoutwiki.com/w/api.php'),

('squeak','http://wiki.squeak.org/squeak/$1',0,''),

('tmbw','http://www.tmbw.net/wiki/$1',0,'http://tmbw.net/wiki/api.php'),

('tmnet','http://www.technomanifestos.net/?$1',0,''),

('theopedia','https://www.theopedia.com/$1',0,''),

('twiki','http://twiki.org/cgi-bin/view/$1',0,''),

('uncyclopedia','https://en.uncyclopedia.co/wiki/$1',0,'https://en.uncyclopedia.co/w/api.php'),

('unreal','https://wiki.beyondunreal.com/$1',0,'https://wiki.beyondunreal.com/w/api.php'),

('usemod','http://www.usemod.com/cgi-bin/wiki.pl?$1',0,''),

('wiki','http://c2.com/cgi/wiki?$1',0,''),

('wikia','http://www.wikia.com/wiki/$1',0,''),

('wikibooks','https://en.wikibooks.org/wiki/$1',0,'https://en.wikibooks.org/w/api.php'),

('wikidata','https://www.wikidata.org/wiki/$1',0,'https://www.wikidata.org/w/api.php'),

('wikif1','http://www.wikif1.org/$1',0,''),

('wikihow','https://www.wikihow.com/$1',0,'https://www.wikihow.com/api.php'),

('wikinfo','http://wikinfo.co/English/index.php/$1',0,''),

('wikimedia','https://foundation.wikimedia.org/wiki/$1',0,'https://foundation.wikimedia.org/w/api.php'),

('wikinews','https://en.wikinews.org/wiki/$1',0,'https://en.wikinews.org/w/api.php'),

('wikipedia','https://en.wikipedia.org/wiki/$1',0,'https://en.wikipedia.org/w/api.php'),

('wikiquote','https://en.wikiquote.org/wiki/$1',0,'https://en.wikiquote.org/w/api.php'),

('wikisource','https://wikisource.org/wiki/$1',0,'https://wikisource.org/w/api.php'),

('wikispecies','https://species.wikimedia.org/wiki/$1',0,'https://species.wikimedia.org/w/api.php'),

('wikiversity','https://en.wikiversity.org/wiki/$1',0,'https://en.wikiversity.org/w/api.php'),

('wikivoyage','https://en.wikivoyage.org/wiki/$1',0,'https://en.wikivoyage.org/w/api.php'),

('wikt','https://en.wiktionary.org/wiki/$1',0,'https://en.wiktionary.org/w/api.php'),

('wiktionary','https://en.wiktionary.org/wiki/$1',0,'https://en.wiktionary.org/w/api.php')


Function: Wikimedia\Rdbms\Database::sourceFile( /var/www/html/maintenance/interwiki.sql )

Error: 1054 Unknown column 'iw_api' in 'field list' (mediawiki_database_1)

#0 /var/www/html/includes/libs/rdbms/database/Database.php(1574): Wikimedia\Rdbms\Database->getQueryExceptionAndLog('Unknown column ...', 1054, 'REPLACE INTO `i...', 'Wikimedia\\Rdbms...')

#1 /var/www/html/includes/libs/rdbms/database/Database.php(1152): Wikimedia\Rdbms\Database->reportQueryError('Unknown column ...', 1054, 'REPLACE INTO `i...', 'Wikimedia\\Rdbms...', false)

#2 /var/www/html/includes/libs/rdbms/database/Database.php(4540): Wikimedia\Rdbms\Database->query('REPLACE INTO `i...', 'Wikimedia\\Rdbms...')

#3 /var/www/html/includes/libs/rdbms/database/Database.php(4475): Wikimedia\Rdbms\Database->sourceStream(Resource id #198, NULL, NULL, 'Wikimedia\\Rdbms...', NULL)

#4 /var/www/html/includes/libs/rdbms/database/DBConnRef.php(68): Wikimedia\Rdbms\Database->sourceFile('/var/www/html/m...')

#5 /var/www/html/includes/libs/rdbms/database/MaintainableDBConnRef.php(35): Wikimedia\Rdbms\DBConnRef->__call('sourceFile', Array)

#6 /var/www/html/includes/installer/DatabaseUpdater.php(691): Wikimedia\Rdbms\MaintainableDBConnRef->sourceFile('/var/www/html/m...')

#7 /var/www/html/includes/installer/MysqlUpdater.php(490): DatabaseUpdater->applyPatch('/var/www/html/m...', true, 'Adding default ...')

#8 /var/www/html/includes/installer/DatabaseUpdater.php(490): MysqlUpdater->doInterwikiUpdate()

#9 /var/www/html/includes/installer/DatabaseUpdater.php(454): DatabaseUpdater->runUpdates(Array, false)

#10 /var/www/html/maintenance/update.php(205): DatabaseUpdater->doUpdates(Array)

#11 /var/www/html/maintenance/doMaintenance.php(99): UpdateMediaWiki->execute()

#12 /var/www/html/maintenance/update.php(277): require_once('/var/www/html/m...')

#13 {main}

</code> PyroFD3S (talk) 17:40, 5 September 2020 (UTC)

make sure that the mysql data directory is in some persistent volume. Bawolff (talk) 17:53, 5 September 2020 (UTC)
Doh, that did it.
Thanks PyroFD3S (talk) 22:50, 5 September 2020 (UTC)
The discussion above is closed. Please do not modify it. No further edits should be made to this discussion.

Reuploading missing files

So a bad thing happened and we had a server crash with bad backups. We have a relatively recent database backup but very very few image uploads. We'd like to be able to let users reupload the missing files. However, when I reupload a file that is missing with the , Mediawiki gives an error "The file you're uploading is the same", which of course is untrue, because it's missing. I'm guessing it's a metadata issue and the metadata or hash is the same, but it's quite confusing (and it doesn't seem to be actually checking hash). It seems the previous version in this case is filled with the uploaded file, but this isn't treated as a new version so doesn't have thumbnails, etc.

The docs don't seem to handle this situation in anyway and I'm wondering how I can remove the errors and/or figure out a user friendly flow to allow users to upload.

(MediaWiki 1.31.8, PHP 7.3.21) Joelhaasnoot (talk) 19:52, 5 September 2020 (UTC)

if you still have entries the image table, you can put the file directly in the right spot on the filesystem and it should work. Otherwise try deleting the image page first, or maybe putting a dummy image in the filesystem in the right spot, im not sure. Bawolff (talk) 22:43, 5 September 2020 (UTC)
Thanks, but I'd like this to be self-service - i.e. the original uploader needs to reupload the image. I'm not going to manually upload thousands of pictures 😬 Joelhaasnoot (talk) 09:28, 6 September 2020 (UTC)
The image table has a img_sha1 field that you is being checked against and, if the image is the same then the message "The upload is an exact duplicate of the current version of $1." or "The upload is an exact duplicate of older versions of $1." is shown. (The second message should be bypass-able.)
To allow users to upload replacements for the missing images, you would need to iterate over the images table and empty the img_sha1 field that you want someone to upload. MarkAHershberger(talk) 22:48, 5 September 2020 (UTC)
Great, so I guess I can run the script that shows missing images and for those images, clear the `img_sha1` field. Joelhaasnoot (talk) 09:29, 6 September 2020 (UTC)

Update a modified translatable page

@TiltedCerebellum, @Ciencia Al Poder:

A few days ago, I encountered the problem of updating images on a translatable page (Help:VisualEditor/User_guide/ca).

I've already sorted out the problem: When a page is modified with localized images, Firefox doesn't display the change even if the page is refreshed (Ctrl-F5). Cache and cookies (both!) need to be cleared (History|Clear Recent History...). Jmarchn (talk) 21:36, 5 September 2020 (UTC)

@Jmarchn Some browsers cache more aggressively. See https://en.wikipedia.org/wiki/Wikipedia:Bypass_your_cache. Could you elaborate why you started this thread? Do you have some question, or do you think this is some bug in MediaWiki? Thanks! Malyacko (talk) 03:12, 6 September 2020 (UTC)
@Malyacko So I think there's an error in MediaWiki, or in Extension:Translate, or (improbably) in Firefox. I don't know. I have found a way to avoid the error, but that is not the solution.
Let's recap:
This error affects localized images of articles that support translation, in other words, articles working with Translate extension.
Specifically:
I have localized images that appear in the article Help:VisualEditor/User_guide. So for the Catalan (code ca) translation I created 50 new screenshots for the article Help:VisualEditor/User_guide/ca. For example I created File:VisualEditor - Editing references 1-ca.png as an alternative to File:VisualEditor - Editing references 1.png.
What happened? When Firefox refreshed the page (clearing the cache, with Ctrl-F5), the page continued to calling (and, obviously, displaying) "VisualEditor - Editing references 1.png".
After testing, I have noticed that it is also necessary to clear the cookies (with the Firefox command "History|Clear Recent History..."), which is not obvious. After that, the page call "VisualEditor - Editing references 1-ca.png".
For a user visiting this page (Help:VisualEditor/User_guide/ca) for the first time he/she will see the correct images. Jmarchn (talk) 10:43, 6 September 2020 (UTC)
there really should be no reason clearing cookies should help the situation. Maybe there was a delay and its just a coincidence. Do you have to consistently clear cookies or was it just that one time? Bawolff (talk) 11:23, 6 September 2020 (UTC)
@Bawolff It is not a problem of delay. I've already opened and closed Firefox, and I've already opened and shut down the computer (I use Window$). But it continued all the same.
Then I tested the view of these page with Google Chrome and Windows Edge: and it was right (in both)!. Meanwhile, with Firefox, images were still being shown in English.
And a day later it occurred to me to try to clear the cookies: finally OK. Jmarchn (talk) 13:47, 6 September 2020 (UTC)
This only confirms the problem comes from Firefox cache, since caching is individual per browser. I'm also using Firefox and I do not experience the issues you're having, though. Maybe you have installed a Firefox extension causing this aggressive caching? Ciencia Al Poder (talk) 16:30, 6 September 2020 (UTC)
@Ciencia Al Poder I don't know. My Firefox has installed a standard extensions:
  • More used
    • Tree Style Tab (strongly recommended)
    • Undo Close Tab
    • Zotero Connector
    • Find Your Tab
    • Search all Tabs
  • Rarely used:
    • Don't track me Google
    • EPUBReader
    • Reverse Image Search
    • Safe my Web
    • Youtube Download Jmarchn (talk) 17:01, 6 September 2020 (UTC)
Feel free to test in safe mode (all extensions and add-ons disabled) with a clean new user profile in Firefox. Malyacko (talk) 17:33, 6 September 2020 (UTC)
I make a test in safe mode for Firefox (as you have pointed out). But this has not solved the error. Clear the cookies has been required... Jmarchn (talk) 21:55, 6 September 2020 (UTC)
to fully debug this a HAR file would probably be needed of loading the offending pages in firefox when they should be updating but arent. (but fully debugging is a bit more effort than i have time to right now. Sorry. Also be warned har files may contain sensitive data like session tokens and csrf tokens) Bawolff (talk) 19:53, 6 September 2020 (UTC)

HELP:Magic Words

RE: https://www.mediawiki.org/wiki/Help:Magic_words

GOOD MORNING!

If I wanted to use, {{PAGENAME}}

And add https://www.mediawiki.org/w/index.php?title=Help:Magic_words&action=edit to a page without the {{PAGENAME}} :

Ihttps://www.mediawiki.org/w/index.php?title={{PAGENAME}}&action=edit

And replace it with the title https://www.mediawiki.org/w/index.php?title=Help:Magic_words&action=edit alone what is the coding for this?

I know that I need to add something before {{PAGENAME}} to replace {{PAGENAME}} permanently with Magic_words when I press save.


THANK YOU SO MUCH IN ADVANCE! Moscowdreams (talk) 07:05, 6 September 2020 (UTC)

You need to use {{subst:PAGENAME}}. You can find more detailed guide about the modifier and substitution in general at Help:Substitution. – Ammarpad (talk) 08:33, 6 September 2020 (UTC)
if using inside a url, use {{subst:PAGENAMEE}} (two e's). This uses underscore instead of spaces, which works corrrectly in links. Bawolff (talk) 11:21, 6 September 2020 (UTC)
you guys are the best! thank you soooo much! Moscowdreams (talk) 17:32, 6 September 2020 (UTC)

Database Error: A database query error has occurred. This may indicate a bug in the software.

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


I have a login problem with bitnami-mediawiki at Azure cloud service.

After configuring some virtualhost conf files and azure dns records, I cannot login with my admin account. I just made a subdomain for my rootdomain ( mediawiki.com -> wiki.mediawiki.com) and connected it by dns records and virtual host.

I don't know why them problem has occured.


the detail error message when the login failed is this

---

[33db55f1b1f7b9758b6e0b62] /wiki/%ED%8A%B9%EC%88%98:%EB%A1%9C%EA%B7%B8%EC%9D%B8 Wikimedia\Rdbms\DBQueryError from line 1603 of /opt/bitnami/mediawiki/includes/libs/rdbms/database/Database.php: A database query error has occurred. Did you forget to run your application's database schema updater after upgrading?

Query: SELECT * FROM `oathauth_users` WHERE id = '1' LIMIT 1

Function: MediaWiki\Extension\OATHAuth\OATHUserRepository::findByUser

Error: 1146 Table 'bitnami_mediawiki.oathauth_users' doesn't exist (127.0.0.1)

Backtrace:

#0 /opt/bitnami/mediawiki/includes/libs/rdbms/database/Database.php(1574): Wikimedia\Rdbms\Database->getQueryExceptionAndLog(string, integer, string, string)

#1 /opt/bitnami/mediawiki/includes/libs/rdbms/database/Database.php(1152): Wikimedia\Rdbms\Database->reportQueryError(string, integer, string, string, boolean)

#2 /opt/bitnami/mediawiki/includes/libs/rdbms/database/Database.php(1807): Wikimedia\Rdbms\Database->query(string, string)

#3 /opt/bitnami/mediawiki/includes/libs/rdbms/database/Database.php(1899): Wikimedia\Rdbms\Database->select(string, string, array, string, array, array)

#4 /opt/bitnami/mediawiki/includes/libs/rdbms/database/DBConnRef.php(68): Wikimedia\Rdbms\Database->selectRow(string, string, array, string)

#5 /opt/bitnami/mediawiki/includes/libs/rdbms/database/DBConnRef.php(333): Wikimedia\Rdbms\DBConnRef->__call(string, array)

#6 /bitnami/mediawiki/extensions/OATHAuth/src/OATHUserRepository.php(86): Wikimedia\Rdbms\DBConnRef->selectRow(string, string, array, string)

#7 /bitnami/mediawiki/extensions/OATHAuth/src/Auth/SecondaryAuthenticationProvider.php(44): MediaWiki\Extension\OATHAuth\OATHUserRepository->findByUser(User)

#8 /opt/bitnami/mediawiki/includes/auth/AuthManager.php(648): MediaWiki\Extension\OATHAuth\Auth\SecondaryAuthenticationProvider->beginSecondaryAuthentication(User, array)

#9 /opt/bitnami/mediawiki/includes/auth/AuthManager.php(388): MediaWiki\Auth\AuthManager->continueAuthentication(array)

#10 /opt/bitnami/mediawiki/includes/specialpage/AuthManagerSpecialPage.php(354): MediaWiki\Auth\AuthManager->beginAuthentication(array, string)

#11 /opt/bitnami/mediawiki/includes/specialpage/AuthManagerSpecialPage.php(484): AuthManagerSpecialPage->performAuthenticationStep(string, array)

#12 /opt/bitnami/mediawiki/includes/htmlform/HTMLForm.php(690): AuthManagerSpecialPage->handleFormSubmit(array, VFormHTMLForm)

#13 /opt/bitnami/mediawiki/includes/specialpage/AuthManagerSpecialPage.php(417): HTMLForm->trySubmit()

#14 /opt/bitnami/mediawiki/includes/specialpage/LoginSignupSpecialPage.php(313): AuthManagerSpecialPage->trySubmit()

#15 /opt/bitnami/mediawiki/includes/specialpage/SpecialPage.php(575): LoginSignupSpecialPage->execute(NULL)

#16 /opt/bitnami/mediawiki/includes/specialpage/SpecialPageFactory.php(611): SpecialPage->run(NULL)

#17 /opt/bitnami/mediawiki/includes/MediaWiki.php(296): MediaWiki\Special\SpecialPageFactory->executePath(Title, RequestContext)

#18 /opt/bitnami/mediawiki/includes/MediaWiki.php(900): MediaWiki->performRequest()

#19 /opt/bitnami/mediawiki/includes/MediaWiki.php(527): MediaWiki->main()

#20 /opt/bitnami/mediawiki/index.php(44): MediaWiki->run()

#21 {main}

---

I'd be very glad if someone can help me

Thanks 121.181.168.181 (talk) 08:42, 6 September 2020 (UTC)

the error says that the 2fa tables are missing from your db. They do need to be added after installing the 2fa extension, but messing with subdomains shouldn't affect that.
run update.php to add the 2fa table. Bawolff (talk) 11:17, 6 September 2020 (UTC)
Wow, the problem just solved with your advice.
Thank you so much.
But I still don't make sense why this problem was happened.
Does it mean that I have to run this command regularly?
Or just it was a necessary process after installation? 121.181.168.181 (talk) 12:58, 6 September 2020 (UTC)

But I still don't make sense why this problem was happened.

There's nothing sensible that can be done except to throw error when application attempts to read nonexistent table.

Does it mean that I have to run this command regularly?

If you look at the extension's page (the box at the right), there's a field marked "Database changes = Yes", if you see any extension with "Yes" then the script run is needed. The installation instructions, such as the one at Extension:OATHAuth#Installation will also usually mention this. – Ammarpad (talk) 08:20, 7 September 2020 (UTC)
you need to run the command any time you upgrade mediawiki, and for some extensions when you install or upgrade them.
If you didnt upgrade mediawiki or recently enable new extensions, i have no idea how this situation would happen. Bawolff (talk) 10:24, 7 September 2020 (UTC)
The discussion above is closed. Please do not modify it. No further edits should be made to this discussion.

Uploads to the Ukrainian Wikisource

Hey. I am the administrator of the Ukrainian Wikisource. I would like to include possible file uploads to the Ukrainian Wikisource. Please tell me how to do this or who gives the rights? Thank you. Arxivist (talk) 13:44, 6 September 2020 (UTC)

currently admistrators should be able to make local uploads by going to s:uk:Special:Upload.
If you want to change which users can upload, file a request at https://phabricator.wikimddia.org linking to a show of user-agreement. In the tags/projects field on phabricator, but Wikimedia-Site-requests Bawolff (talk) 20:02, 6 September 2020 (UTC)

Upgrade PrivatePageProtection.php for Mediawiki 1.34.2

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


PrivatePageProtection (archived) work with 1.33.3

Files Source : https://phabricator.wikimedia.org/diffusion/SVN/browse/trunk/extensions/PrivatePageProtection/


Now, with Mediawiki 1.34.2, PrivatePageProtection not work :

https://privatebin.visionduweb.fr/?8039658573b9ed9d#GbeVLFerzrd7go8NNRn22y6nwfWCkseHXZP7vpUK2Mjd


I replace DB_REPLICA instead of DB_SLAVE on :

sudo nano /var/www/mediawiki/extensions/PrivatePageProtection/PrivatePageProtection.php line 95

//      $dbr = wfGetDB( DB_SLAVE );

       $dbr = wfGetDB( DB_REPLICA );


Then, i have this error :

/index.php?search=joomla&title=Sp%C3%A9cial%3ARecherche&fulltext=1 TypeError from line 3367 of /var/www/wiki.visionduweb.fr/languages/Language.php: Argument 1 passed to Language::commaList() must be of the type array, null given, called in /var/www/wiki.visionduweb.fr/extensions/PrivatePageProtection/PrivatePageProtection.php on line 132

https://privatebin.visionduweb.fr/?8986b983a4d95d45#BMyweusa8P6ekukDnWp4CBoN4M8wwcC6UZaKyeGDY84X

               $err = array(

                       'badaccess-groups',

                       $wgLang->commaList( $groupLinks ), // This line is the 132.

                       count( $groups ) Zer00CooL (talk) 16:28, 6 September 2020 (UTC)

i'm not sure what your question is? The extension is archived because it doesn't work anymore and nobody has stepped forward saying they are willing to fix it. Bawolff (talk) 19:57, 6 September 2020 (UTC)
I need help for debug :
TypeError from line 3367 of /var/www/wiki.visionduweb.fr/languages/Language.php: Argument 1 passed to Language::commaList() must be of the type array, null given, called in /var/www/mediawiki/extensions/PrivatePageProtection/PrivatePageProtection.php on line 132
See all message here : https://privatebin.visionduweb.fr/?8986b983a4d95d45#BMyweusa8P6ekukDnWp4CBoN4M8wwcC6UZaKyeGDY84X
PrivatePageProtection.php
Code line 132 :
  $err = array(
    'badaccess-groups',
// This line is the 132 : must be of the type array, null given
$wgLang->commaList( $groupLinks ),
     count( $groups )
I create a repo Github for this : https://github.com/ZerooCool/PrivatePageProtection Zer00CooL (talk) 23:59, 6 September 2020 (UTC)
See: Professional development and consulting TiltedCerebellum (talk) 22:10, 15 September 2020 (UTC)
It's fixed now and lightly tested on MediaWiki 1.39. See this gerrit changeset and refer to Extension:PrivatePageProtection for download link, installation instructions, usage, etc.
And note that it's probably still as insecure as ever, so do give security issues with authorization extensions a read. Jack Phoenix (Contact) 08:33, 14 October 2023 (UTC)
The discussion above is closed. Please do not modify it. No further edits should be made to this discussion.

Customise the "Sorry! This site is experiencing technical difficulties." message

Is it possible to customise this message? The full message is along the lines of: "Sorry! This site is experiencing technical difficulties. Try waiting a few minutes and reloading. (Cannot access the database.)"

Also is it possible to add some sort of notification feature, e.g. an email to the site owner, when this happens?

In my case it happens very occasionally, I think when too many people are viewing the website at the same time.

Thanks. Jonathan3 (talk) 16:37, 6 September 2020 (UTC)

You can customize them. These are three distinct messages; MediaWiki:Dberr-problems and MediaWiki:Dberr-again and MediaWiki:dberr-info-hidden. But be aware that, when this error occurs, fetching the localized message itself might not be possible and in that case, it will always fallback to the default English message you're seeing. I am not sure about the second issue. – Ammarpad (talk) 06:46, 7 September 2020 (UTC)
Thank you. Yes, I expect that it wouldn't work (in my case) because the error would itself prevent the customisation from working!
Do you know if it's possible to change the messages using LocalSettings.php? Jonathan3 (talk) 22:23, 9 September 2020 (UTC)
I think I found the relevant code (https://gerrit.wikimedia.org/g/mediawiki/core/+/e6a4048b38e135afccb80f05d56a3cc0600add83/includes/exception/MWExceptionRenderer.php#304) but haven't got any further than that yet. Jonathan3 (talk) 22:38, 9 September 2020 (UTC)
Any ideas about this?
I've created a new, hopefully better worded, topic here: Project:Support desk/Flow/2023/06#h-Customise_the_"Sorry!_This_site_is_experiencing_technical_difficulties."_message-20230629104200. Jonathan3 (talk) 10:38, 29 June 2023 (UTC)

Preferenced

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 attempted to increase the size of the fonts (they are so small that I can't read) I increased the size of the font in preferences and the app blew up to a size that nothing is accessible any longer. I uninstalled and reinstalled and it picks up the original bad settings that has me locked out with a large blotted Raw Therapee screen. Any help would be appreciated. 73.19.97.31 (talk) 18:52, 6 September 2020 (UTC)

i think you are in the wrong place, this doesnt sound like a MediaWiki question. Bawolff (talk) 19:54, 6 September 2020 (UTC)
The discussion above is closed. Please do not modify it. No further edits should be made to this discussion.

Forgotten password

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


Hi!

I have a problem with my Wiki. I wanted to log in after a long time, but I forgot my password. On the login page there is no link for 'forgot password'.

The special page does not work: /Special:PasswordReset

Now I have set the PW as MD5 in the database. Does not work either.

Do you have an idea?

Many thanks! 84.190.128.166 (talk) 19:11, 6 September 2020 (UTC)

Problem solved:
UPDATE `user` SET user_password = CONCAT(':B:1234:', MD5(CONCAT('1234-', MD5('somepass')))) WHERE user_name = 'someuser'; 84.190.128.166 (talk) 19:15, 6 September 2020 (UTC)
The discussion above is closed. Please do not modify it. No further edits should be made to this discussion.

Getting Device not Found on TTN V3 with Dragino LG01

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


I am trying Dragino Lora Shield with LG01-S Single Channel Gateway on TTN V3 stack ABP method. I could see the messages are getting delivered to TTN stack but they get dropped with device not found. I thoroughly checked the Dev Addr, NetwSKey and AppSkey but they all are correct.

Following are the details of receive and drop uplink messages

{

“@type”: “type.googleapis.com/ttn.lorawan.v3.UplinkMessage”,

“raw_payload”: “QBDHTAGAZwEBlKa185Z/7OW87rrrRAf2OA8=”,

“payload”: {

“m_hdr”: {

“m_type”: “UNCONFIRMED_UP”

},

“mic”: “B/Y4Dw==”,

“mac_payload”: {

“f_hdr”: {

“dev_addr”: “014CC710”,

“f_ctrl”: {

“adr”: true

},

“f_cnt”: 359

},

“f_port”: 1,

“frm_payload”: “lKa185Z/7OW87rrrRA==”

}

},

“settings”: {

“data_rate”: {

“lora”: {

“bandwidth”: 125000,

“spreading_factor”: 7

}

},

“coding_rate”: “4/5”,

“frequency”: “916800000000000”,

“timestamp”: 3966528124,

“time”: “2020-09-06T13:17:27.950897Z”

},

“rx_metadata”: [

{

“gateway_ids”: {

“gateway_id”: “eui-a8404117e0f2ffff”,

“eui”: “A8404117E0F2FFFF”

},

“time”: “2020-09-06T13:17:27.950897Z”,

“timestamp”: 3966528124,

“rssi”: -28,

“channel_rssi”: -28,

“snr”: 7.8,

“uplink_token”: “CiIKIAoUZXVpLWE4NDA0MTE3ZTBmMmZmZmYSCKhAQRfg8v//EPzUseMOGgwI5sLT+gUQxa3vsgIg4Oj/u7hz”,

“channel_index”: 7

}

],

“received_at”: “2020-09-06T13:17:26.643552965Z”,

“correlation_ids”: [

“gs:conn:01EHHPR2KH9A12PQ47V1WNEG3G”,

“gs:uplink:01EHHS0Y7K5C8FBMSNTV05T7AW”

]

}

Drop message

{

“@type”: “type.googleapis.com/ttn.lorawan.v3.ErrorDetails”,

“namespace”: “pkg/gatewayserver”,

“name”: “host_handle”,

“message_format”: “host {host} failed to handle message”,

“attributes”: {

“host”: “cluster”

},

“cause”: {

“namespace”: “pkg/networkserver”,

“name”: “device_not_found”,

“message_format”: “device not found”,

“correlation_id”: “5f2ffaa1179f44258a3b44b6c76a7d3d”,

“code”: 5

},

“code”: 5

}

I am suspecting the incorrect frequency value with extra zeros in uplink message causing the problem.

“916800000000000”,

Might be there would be some other issue. Can anyone please help me out? 2406:E003:1611:7000:281A:6082:A1AB:6060 (talk) 22:52, 6 September 2020 (UTC)

Welcome to the MediaWiki support desk. I have no idea what "Dragino Lora Shield with LG01-S Single Channel Gateway on TTN V3 stack ABP" is. Is your question related to the MediaWiki software? If not, then you are wrong here. Malyacko (talk) 09:08, 7 September 2020 (UTC)
The discussion above is closed. Please do not modify it. No further edits should be made to this discussion.

My site breaks after logging in after installing echo

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 internal error.

Original exception: [X1VXyH0qFBPD7urcbpcUrgAAOjk] /index.php?title=User:68duck Wikimedia\Rdbms\DBQueryError from line 1603 of /home4/anskidsc/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: SELECT event_id,event_type,event_variant,event_agent_id,event_agent_ip,event_extra,event_page_id,event_deleted,notification_timestamp FROM `mwu2_echo_event` INNER JOIN `mwu2_echo_notification` ON ((notification_event=event_id)) INNER JOIN `mwu2_echo_target_page` ON ((etp_event=event_id)) WHERE event_deleted = '0' AND notification_user = '1' AND notification_read_timestamp IS NULL AND etp_page = '11'

Function: EchoEventMapper::fetchUnreadByUserAndPage

Error: 1146 Table 'anskidsc_mw19395.mwu2_echo_event' doesn't exist (localhost)

Backtrace:

#0 /home4/anskidsc/public_html/wiki/includes/libs/rdbms/database/Database.php(1574): Wikimedia\Rdbms\Database->getQueryExceptionAndLog(string, integer, string, string)

#1 /home4/anskidsc/public_html/wiki/includes/libs/rdbms/database/Database.php(1152): Wikimedia\Rdbms\Database->reportQueryError(string, integer, string, string, boolean)

#2 /home4/anskidsc/public_html/wiki/includes/libs/rdbms/database/Database.php(1807): Wikimedia\Rdbms\Database->query(string, string)

#3 /home4/anskidsc/public_html/wiki/extensions/Echo/includes/mapper/EventMapper.php(171): Wikimedia\Rdbms\Database->select(array, array, array, string, NULL, array)

#4 /home4/anskidsc/public_html/wiki/extensions/Echo/includes/EchoHooks.php(872): EchoEventMapper->fetchUnreadByUserAndPage(User, integer)

#5 /home4/anskidsc/public_html/wiki/extensions/Echo/includes/EchoHooks.php(949): EchoHooks::processMarkAsRead(User, WebRequest, Title)

#6 /home4/anskidsc/public_html/wiki/includes/Hooks.php(174): EchoHooks::onPersonalUrls(array, Title, SkinMinerva)

#7 /home4/anskidsc/public_html/wiki/includes/Hooks.php(234): Hooks::callHook(string, array, array, NULL, string)

#8 /home4/anskidsc/public_html/wiki/includes/skins/SkinTemplate.php(744): Hooks::runWithoutAbort(string, array)

#9 /home4/anskidsc/public_html/wiki/includes/skins/SkinTemplate.php(446): SkinTemplate->buildPersonalUrls()

#10 /home4/anskidsc/public_html/wiki/skins/MinervaNeue/includes/skins/SkinMinerva.php(150): SkinTemplate->prepareQuickTemplate()

#11 /home4/anskidsc/public_html/wiki/includes/skins/SkinTemplate.php(215): SkinMinerva->prepareQuickTemplate()

#12 /home4/anskidsc/public_html/wiki/includes/OutputPage.php(2574): SkinTemplate->outputPage()

#13 /home4/anskidsc/public_html/wiki/includes/MediaWiki.php(907): OutputPage->output(boolean)

#14 /home4/anskidsc/public_html/wiki/includes/MediaWiki.php(919): MediaWiki->{closure}()

#15 /home4/anskidsc/public_html/wiki/includes/MediaWiki.php(527): MediaWiki->main()

#16 /home4/anskidsc/public_html/wiki/index.php(44): MediaWiki->run()

#17 {main}

Exception caught inside exception handler: [X1VXyH0qFBPD7urcbpcUrgAAOjk] /index.php?title=User:68duck Wikimedia\Rdbms\DBQueryError from line 1603 of /home4/anskidsc/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: SELECT event_id,event_type,event_variant,event_agent_id,event_agent_ip,event_extra,event_page_id,event_deleted,notification_timestamp FROM `mwu2_echo_event` INNER JOIN `mwu2_echo_notification` ON ((notification_event=event_id)) INNER JOIN `mwu2_echo_target_page` ON ((etp_event=event_id)) WHERE event_deleted = '0' AND notification_user = '1' AND notification_read_timestamp IS NULL AND etp_page = '11'

Function: EchoEventMapper::fetchUnreadByUserAndPage

Error: 1146 Table 'anskidsc_mw19395.mwu2_echo_event' doesn't exist (localhost)

Backtrace:

#0 /home4/anskidsc/public_html/wiki/includes/libs/rdbms/database/Database.php(1574): Wikimedia\Rdbms\Database->getQueryExceptionAndLog(string, integer, string, string)

#1 /home4/anskidsc/public_html/wiki/includes/libs/rdbms/database/Database.php(1152): Wikimedia\Rdbms\Database->reportQueryError(string, integer, string, string, boolean)

#2 /home4/anskidsc/public_html/wiki/includes/libs/rdbms/database/Database.php(1807): Wikimedia\Rdbms\Database->query(string, string)

#3 /home4/anskidsc/public_html/wiki/extensions/Echo/includes/mapper/EventMapper.php(171): Wikimedia\Rdbms\Database->select(array, array, array, string, NULL, array)

#4 /home4/anskidsc/public_html/wiki/extensions/Echo/includes/EchoHooks.php(872): EchoEventMapper->fetchUnreadByUserAndPage(User, integer)

#5 /home4/anskidsc/public_html/wiki/extensions/Echo/includes/EchoHooks.php(949): EchoHooks::processMarkAsRead(User, WebRequest, Title)

#6 /home4/anskidsc/public_html/wiki/includes/Hooks.php(174): EchoHooks::onPersonalUrls(array, Title, SkinMinerva)

#7 /home4/anskidsc/public_html/wiki/includes/Hooks.php(234): Hooks::callHook(string, array, array, NULL, string)

#8 /home4/anskidsc/public_html/wiki/includes/skins/SkinTemplate.php(744): Hooks::runWithoutAbort(string, array)

#9 /home4/anskidsc/public_html/wiki/includes/skins/SkinTemplate.php(446): SkinTemplate->buildPersonalUrls()

#10 /home4/anskidsc/public_html/wiki/skins/MinervaNeue/includes/skins/SkinMinerva.php(150): SkinTemplate->prepareQuickTemplate()

#11 /home4/anskidsc/public_html/wiki/includes/skins/SkinTemplate.php(215): SkinMinerva->prepareQuickTemplate()

#12 /home4/anskidsc/public_html/wiki/includes/OutputPage.php(2574): SkinTemplate->outputPage()

#13 /home4/anskidsc/public_html/wiki/includes/exception/MWExceptionRenderer.php(134): OutputPage->output()

#14 /home4/anskidsc/public_html/wiki/includes/exception/MWExceptionRenderer.php(53): MWExceptionRenderer::reportHTML(Wikimedia\Rdbms\DBQueryError)

#15 /home4/anskidsc/public_html/wiki/includes/exception/MWExceptionHandler.php(121): MWExceptionRenderer::output(Wikimedia\Rdbms\DBQueryError, integer)

#16 /home4/anskidsc/public_html/wiki/includes/exception/MWExceptionHandler.php(195): MWExceptionHandler::report(Wikimedia\Rdbms\DBQueryError)

#17 /home4/anskidsc/public_html/wiki/includes/MediaWiki.php(558): MWExceptionHandler::handleException(Wikimedia\Rdbms\DBQueryError)

#18 /home4/anskidsc/public_html/wiki/index.php(44): MediaWiki->run()

#19 {main} 2601:601:9A80:26B0:3D38:5D83:FEE6:9019 (talk) 23:21, 6 September 2020 (UTC)

Try running update.php maintenance script. – Ammarpad (talk) 06:31, 7 September 2020 (UTC)
The discussion above is closed. Please do not modify it. No further edits should be made to this discussion.

Problems when copying Wikipedia's main page to another wiki

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


Hi, I'm trying to copy the layout of Wikipedia's Main Page to my own Wiki, however when I import the Wikitext, the boxes with content such as the Today's Featured Article and Picture of the Day are stretched to right side of the screen to the point that content isn't visible without scrolling:


I copied the wikitext word-for-word, so I'm unsure what's causing this to happen and would like help, thanks.

I've attached an image below:

File:Mainpage edit.png IBBishops (talk) 23:39, 6 September 2020 (UTC)

There may be CSS rules for this page in en:MediaWiki:Common.css Osnard (talk) 09:58, 7 September 2020 (UTC)
have dome this:
<templatestyles src="Wikipedia:Main Page/styles.css" />
you need to create a page names: Main Page/styles.css and copy the content of that page as well. 2001:8F8:1E23:A0C:EDA3:6727:C97F:FB0A (talk) 10:50, 7 September 2020 (UTC)
The page name needs the namespace.
Also be sure page has correct content model (santized-css) or it wont work Bawolff (talk) 23:44, 7 September 2020 (UTC)
Thanks, I found a way to get it work. IBBishops (talk) 02:12, 8 September 2020 (UTC)
The discussion above is closed. Please do not modify it. No further edits should be made to this discussion.

My site breaks after installing Echo notifications extention

For some reason I cannot login after installing the echo notifications extention on my wiki. 2601:601:9A80:26B0:3D38:5D83:FEE6:9019 (talk) 00:40, 7 September 2020 (UTC)

Please give more details and read Manual:How to debug. – Ammarpad (talk) 08:25, 7 September 2020 (UTC)
Did you run the update script after installing it as instructed on its extension page? Extension:Echo#Installing
Also, please provide the information stated at the top right of the support page when creating support questions. TiltedCerebellum (talk) 22:09, 15 September 2020 (UTC)

Unable to create new user

Hi Support Team,

We are unable to log in as an administrator in MediaWiki.  We have tried to create user groups in Mediawiki as well.  While going to special pages under user and rights option we are  unable to see the consecutive user rights management option. Kindly help us on this issue. We need to add or edit new users PatMD (talk) 06:23, 7 September 2020 (UTC)

@PatMD If you are unable to log in then please elaborate why you are unable to log in, what happens when you try to log in, which error message is shown when you try to log in, etc., and which MediaWiki version this is about. Thanks.
Also see Manual:User rights Malyacko (talk) 09:09, 7 September 2020 (UTC)
createAndPromote.php can be helpful if you lost access to the admin account. Bawolff (talk) 10:18, 7 September 2020 (UTC)
Hi Support Team,
Mediawiki version- 1.30.0
I am capable of logging in now. Post logging in we are trying to create new users. While going to special pages under user and rights option we are  unable to see the consecutive user rights management option.
In that case please let us know how to create new users under an existing group like Backend. PatMD (talk) 09:40, 8 September 2020 (UTC)
you should be able to cteate new accounts by going to the page named special:createaccount on your wiki.
Normally anyone can do it, but depending on how you configured things in LocalSettings.php it may be limited to users in certain groups (you need createaccount rights) Bawolff (talk) 02:46, 12 September 2020 (UTC)

Don't convert svg into png, but use svg directly

I have some svg icons that I want to add to certain sites. How can I tell MediaWiki that the svgs should not be converted to pngs?

I tried $wgSVGConverter = false; but that shows no picture at all, but only a download link for the svg.

Of course I can use something like <img src="My.svg" /> but I'd like to go with [[File:My.svg]]. Stefahn (talk) 09:02, 7 September 2020 (UTC)

When do SVGs get converted to PNG? Please provide context and steps to reproduce. Malyacko (talk) 09:07, 7 September 2020 (UTC)
Look at the image (pencil) on https://secret-wiki.de/wiki/Datei:Editieren.svg for example. It's name is 17px-Editieren.svg.png instead of Editieren.svg. Stefahn (talk) 14:39, 7 September 2020 (UTC)
You may be looking for Extension:NativeSvgHandler Osnard (talk) 09:56, 7 September 2020 (UTC)
Thanks. If there's no other way I will try that. What is the reason why MediaWiki transforms svg to png by default? Is it because svg was not well supported by browsers in the beginning? Meanwhile 98.5 % of online users can display svg correctly (according to https://caniuse.com/svg). Stefahn (talk) 14:41, 7 September 2020 (UTC)
As of Nov 2, 2021, it's now up tp 99.61% support according to https://caniuse.com/svg. It's time to at least make this a configuration option. TazzyTazzy (talk) 15:45, 2 November 2021 (UTC)
never underestimate the power of status quo.
There is some concern that for certain images, transforming is a better choice if the svg is really big. There is also some concern that people are used to the current rendering engine and existing images might break if we used browsers. Both those seem mild to me though. Bawolff (talk) 23:43, 7 September 2020 (UTC)

Unable to connect to mysql database for remote user in mediawiki

I have an infra where my web server and DB server are on different servers. Both the servers have required softwares installed . When on my DB server I am trying to connect to the DB user for remote web server I get connection error:-- connection refused both from browser as well as the myslq server command line. I tried all the solutions given on net but nothing is working..

Can someone please help me. Vaibhavarora08 (talk) 09:35, 7 September 2020 (UTC)

Is your database server listening on all interfaces instead of localhost only? Also please provide the exact error message. Taavi (talk!) 09:39, 7 September 2020 (UTC)
tcp6       0      0 :::3306                 :::*                    LISTEN      14719/mysqld
It is listening at port 3306 . Vaibhavarora08 (talk) 12:16, 7 September 2020 (UTC)
what does it mean to connect to your db server via your web browser? Web browsers normally cannot connect to db servers Bawolff (talk) 10:16, 7 September 2020 (UTC)
it could be a firewall issue, in mysql there is something called enable remote db user, 2001:8F8:1E23:A0C:EDA3:6727:C97F:FB0A (talk) 10:48, 7 September 2020 (UTC)
You may look at this
stackoverflow.com/questions/14779104/how-to-allow-remote-connection-to-mysql
and this
www.digitalocean.com/community/tutorials/how-to-allow-remote-access-to-mysql 2001:8F8:1E23:A0C:EDA3:6727:C97F:FB0A (talk) 10:55, 7 September 2020 (UTC)
By Browser I mean mediawiki page where I am trying to connect to DB Vaibhavarora08 (talk) 11:16, 7 September 2020 (UTC)
The exact error which I see are :-
Cannot access the database: :real_connect(): (HY000/2002): Connection refused.
Check the host, username and password and try again.
or
Enter password:
ERROR 2003 (HY000): Can't connect to MySQL server on '192.168.0.96' (110) Vaibhavarora08 (talk) 11:18, 7 September 2020 (UTC)
In one of your posts i think you implied it was only listening on ipv6, but 192.168.0.96 is an ipv4 address. Try using the server's ipv6 address instead. Bawolff (talk) 23:40, 7 September 2020 (UTC)
No Iam only using IPv4 address.. Vaibhavarora08 (talk) 06:06, 8 September 2020 (UTC)
well is your mysqld listening on ipv4? The netstat you posted above only listed ipv6. If you dont have ipv6 connectivity on the local network but mysqld is only listening for ipv6 connections, its not going to work. Bawolff (talk) 06:29, 8 September 2020 (UTC)
2001:8F8:1E23:A0C:EDA3:6727:C97F:FB0A
There is no firewall enabled t=on the server . I checked it :-
root@ip-192-168-2-170:/etc/mysql# ufw status
Status: inactive Vaibhavarora08 (talk) 11:19, 7 September 2020 (UTC)
Have you changed MySQL config to listen on all interfaces? By default int only listens to localhost Taavi (talk!) 04:51, 8 September 2020 (UTC)
yes I have commented the bind address in mysql configuration file Vaibhavarora08 (talk) 06:05, 8 September 2020 (UTC)
I think you explicitly need to set it to 0.0.0.0 instead of commenting it out. Only do that if you know its security implications. Taavi (talk!) 06:31, 8 September 2020 (UTC)

Is mediawiki:commons.js considered on Minerva skin

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


Does the skin Minerva load mediawiki:common.js, or i have to place the code somewhere elce. 2001:8F8:1E23:A0C:EDA3:6727:C97F:FB0A (talk) 10:20, 7 September 2020 (UTC)

No, it doesn't. Put your code in MediaWiki:Minerva.js and alternatively in MediaWiki:Mobile.js if you want common code for all mobile users (irrespecive of skin). – Ammarpad (talk) 11:37, 7 September 2020 (UTC)
Thank you 5.193.99.25 (talk) 21:03, 7 September 2020 (UTC)
The discussion above is closed. Please do not modify it. No further edits should be made to this discussion.

“vertical-align:top” CSS code does not work for entire tables yet.

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 observed that while the horizontal text-align code works as intended, the code for vertical text alignment, vertical-align:top; does not work for entire tables yet, which means that in order to align the text vertically, one has to do it for each table row individually, which is highly inconvenient, especially for larger tables.


Is this a known issue? And are there plans of repairing it soon?

In case there are technical limitations that prevent it for working for entire tables, I suggest implementing default CSS classes such as .va-top for this purpose. 46.114.104.108 (talk) 12:38, 7 September 2020 (UTC)

vertical-align does not inherit (see https://developer.mozilla.org/en-US/docs/Web/CSS/vertical-align ). This is not in our control to change.
I dont think we will implement a new class for this. Individual wikis can add things to MediaWiki:Common.css or use extension:TemplateStyles Bawolff (talk) 23:38, 7 September 2020 (UTC)
The discussion above is closed. Please do not modify it. No further edits should be made to this discussion.

Feature suggestion: Byte sizes in revision difference viewer

I suggest the article version difference viewer to show the total byte size and byte size difference of the two compared revisions of a page.

I could not find this already having been suggested, therefore I am posting the suggestion here. I hope it will be considered. 46.114.104.108 (talk) 12:40, 7 September 2020 (UTC)

Is this phab:T172698? In general, see How to report a bug - thanks! Malyacko (talk) 14:48, 7 September 2020 (UTC)

Donation ideas in Japan

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 some donation ideas and want to contact the manager in charge

of the Japan region.

Could you give me the contact information of the person in charge? 124.36.252.150 (talk) 15:10, 7 September 2020 (UTC)

You should contact donate@wikimedia.org – Ammarpad (talk) 19:05, 7 September 2020 (UTC)
The discussion above is closed. Please do not modify it. No further edits should be made to this discussion.

Metrics and referencing of RNA extraction based on hot phenol.

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 there

I would like some clarity on some the steps in this protocol http://tfiib.med.harvard.edu/wiki/index.php/RNA_Purification,_Hot_Phenol_Protocol

The first issue is what is meant by '10K' at the flash spin step?

Second issue is the "vol" at step 5. How much is that supposed to be.

And maybe add some more clarity as to why use the other reagents such as chloroform and phenol, as well as the purpose of the 65 degree Celsius incubation.

Lastly how would I would I reference this protocol please? Nuxtaku (talk) 15:43, 7 September 2020 (UTC)

@Nuxtaku Welcome to the support desk for the MediaWiki software. We cannot help with random content on random third-party websites, sorry. Please contact the website maintainers instead. Malyacko (talk) 16:02, 7 September 2020 (UTC)
Okay thank you, I thought this was the main website. Would you be able to help me find it perhaps? I am not well versed in doing so. Nuxtaku (talk) 17:22, 7 September 2020 (UTC)
http://tfiib.med.harvard.edu/wiki/index.php/Talk:RNA_Purification,_Hot_Phenol_Protocol
Different websites have different conventions on where to ask questions. I have linked to the discussion page but you should ask someone involved with that website where they want questions. Bawolff (talk) 23:33, 7 September 2020 (UTC)
The discussion above is closed. Please do not modify it. No further edits should be made to this discussion.

Typing apostrophe or quotation mark on an iPad with bluetooth keyboard

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 tried to type in a straight apostrophe on latest versions of Chrome and Safari via an iPad with a bluetooth keyboard. In Google Search, the key executes the straight apostrophe ('). However, in here, the same key executes the different, curvy apostrophe (), which has been deprecated from article titles and content. DuckDuckGo redirects the curvy apostrophe to the straighter one in any search. The MediaWiki software doesn’t do that without creating a redirect page. Not only it applies to Wikipedia but other projects as well. George Ho (talk) 22:23, 7 September 2020 (UTC)

perhaps cirrussearch should consider that as part of its accent folding. I would suggest filing a bug in phabricator. Bawolff (talk) 23:32, 7 September 2020 (UTC)
I found out that I was able to change the punctuation settings by disabling the "Smart Punctuation" option at the Settings app on a portable Apple device, typically iPhone or iPad.
Steps: Settings app > General > Keyboards > disable "Smart Punctuation" George Ho (talk) 02:19, 9 September 2020 (UTC)
Looks like someone else already did: phab:T216579 George Ho (talk) 03:15, 8 September 2020 (UTC)
Thanks for this, was driving me a little bonkers too when I found myself checking wiki stuff over late at night with just an iPad instead of my PC. TiltedCerebellum (talk) 21:58, 15 September 2020 (UTC)
The discussion above is closed. Please do not modify it. No further edits should be made to this discussion.

Importing XML - 'Expected Tag' Error

Absolutely fresh MW install, latest build, no extensions or any modifications aside from changing the upload and post size to import a huge XML.

My import tool says "Import failed: Expected tag, got #comment." Yes, the .XML is UTF-8 and I didn't modify it. Dog1994 (talk) 23:11, 7 September 2020 (UTC)

is the xml file valid (as in, do tools like xmllint say its valid)? Bawolff (talk) 23:30, 7 September 2020 (UTC)
I'm on Windows so I can't run xmllint. Why would it not be valid? it's a direct export of a different MW install and the old one was 1.34.0 so it's not that old. Dog1994 (talk) 04:24, 8 September 2020 (UTC)
if you open the xml file in a web browser it should tell you if its valid or not. (Or at least it will give an error if its not) Bawolff (talk) 06:36, 8 September 2020 (UTC)
it didn't seem to give me an error and opened just fine.
I normally open it with Notepad++ with no issues Dog1994 (talk) 12:16, 8 September 2020 (UTC)
you could try using importDump.php from commandline see if that make a difference. Bawolff (talk) 06:36, 11 September 2020 (UTC)

Trying to temporarily authorize access to Create Account

I'm writing an extension to selectively enable access to the Special:CreateAccount page when a user submits a valid invite code on a wiki where self-registration is normally closed.

After a couple of false starts, I settled on what seems like a simple (possibly even functional and elegant?) solution of intercepting the userCan hook for the "read" action and setting $result to TRUE (and returning FALSE to prevent anything else from overriding it) when there's a valid invite.

I've confirmed that the hook is indeed being called (twice) and accurately detecting the invite code, but... the page still displays:

You do not have permission to do that, for the following reason:
You are not allowed to execute the action you have requested.

Am I going about this the wrong way? Is there some other hook I need to intercept, or something I need to set somewhere?

Thanks. Woozle (talk) 01:17, 8 September 2020 (UTC)

maybe you also need createaccount rights or something. Adding &uselang=qqx to the url might help you track down which message and thus which part oc code. Enabling debug logging might also have info about which check failed.
Note: the proper solution is probably a custom AuthManager class although that is way more complicated. Bawolff (talk) 06:34, 8 September 2020 (UTC)
  1. createaccount rights: I think I already tried bestowing that right, and it made no apparent difference.
  2. The message involved ("You are not allowed...") is badaccess-group0, which is unfortunately used in many places. (I can probably track down the exact spot(s) by inserting debug code. Debug logging might also work but might also produce an overwhelming quantity of output to sift through.) The qqq.jsonfile says this message is "Shown when you are not allowed to do something.", which is at least consistent but gives no further clue as to why.
  3. AuthManager: as far as I can tell, that's only for handling logins and creating accounts; I don't need to modify any of that behavior, just grant access to existing functionality. Woozle (talk) 12:29, 8 September 2020 (UTC)
you can use auth manager to have additional checks before creating an account without overriding everything. For example captcha extensions like ConfirmEdit do this. Bawolff (talk) 06:34, 11 September 2020 (UTC)

Hi, I've imported some Wikipedia articles to another wiki, and I was wondering if there is a bot or script which removes red links from pages, since this would be much more efficient than having to do it by hand, thanks. IBBishops (talk) 02:13, 8 September 2020 (UTC)

You could poke around pywikibot to see if someone has written one. MarkAHershberger(talk) 18:32, 9 September 2020 (UTC)
Thanks. IBBishops (talk) 19:55, 9 September 2020 (UTC)

Action failed

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


I need help on my screencaps.miraheze.org. I try to upload an image and I end up getting this: Could not acquire lock for "mwstore://local-backend/local-public/f/fe/Evolution_Exchange_Excitement!_(449).PNG". What should I do? 108.217.230.137 (talk) 03:47, 8 September 2020 (UTC)

ask miraheze support (its probably an issue on their end) Bawolff (talk) 06:30, 8 September 2020 (UTC)
The discussion above is closed. Please do not modify it. No further edits should be made to this discussion.

The ResourceLoader module mediawiki.language isn't loaded by default, right?

I checked on enwiki and frwiki and it seems to be, but maybe it's just luck? If I'm writing a user script for WMF wikis, should I load it myself using mw.loader? Enterprisey (talk) 06:32, 8 September 2020 (UTC)

You should probably always make sure, with mw.loader.using(). There's no real harm if it's already loaded. FFS Talk 08:47, 9 September 2020 (UTC)

How i change my username

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


i wnat to cahnge my user name but when i changed, its say that username already exist then how i get that username. I need only that one. UniqueSamaypaper (talk) 08:29, 8 September 2020 (UTC)

That message means that the username you chose is already taken by someone else, you need to pick another username. Taavi (talk!) 09:43, 8 September 2020 (UTC)
The discussion above is closed. Please do not modify it. No further edits should be made to this discussion.

APCU and OPcache not doing anything

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


I have a MediaWiki running with PHP Version 7.2.24-0ubuntu0.18.04.6 and installed extensions APCU and Zend OPcache v7.2.24-0ubuntu0.18.04.6 both are enabled and running says phpinfo. Even though they run, when I access one of the bigger articles in my wiki php runs at 100% on one core for 5-10 seconds until the atricle is displayed. Reloading results in the same behaviour again, nothing is cached! The article does not have any fancy active or dynamic php stuff inside, so it is the exact same for every user.

Is there anyway to debug this? The MediaWiki caching article just states to install APCU, thats it... 130.83.76.1 (talk) 08:44, 8 September 2020 (UTC)

is $wgMainCacheType set to CACHE_ACCEL; ?
How large is apcu.shm_size in php.ini? (Min should be 16 mb, but if your site has many users i reccommend at least 64 mb)
Beyond that, check mediawiki debug log for anything unusual. Bawolff (talk) 15:52, 8 September 2020 (UTC)
Everything was set correctly except for $wgParserCacheExpireTime and $wgRevisionCacheExpiry.
Thanks, now it works! 130.83.76.1 (talk) 07:38, 10 September 2020 (UTC)
The discussion above is closed. Please do not modify it. No further edits should be made to this discussion.

Filters for recent changes not loading

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


After updating to the latest Mediawiki version, the filters on recent changes page stop loading (see photo).

https://i.ibb.co/VxH5qVC/Screenshot-14.jpg


animatorswiki.blitedesu.net

MediaWiki 1.34.2
PHP 7.3.2
92.117.63.147 (talk) 12:04, 8 September 2020 (UTC)
How did you upgrade? Your console log shows
[X1keJQoUcKQAADINSWIAAAAa] /load.php?lang=en-gb&modules=jquery%2Coojs%2Coojs-ui-core%2Coojs-ui-widgets%2Csite%7Cjquery.client%2Ccookie%2CgetAttrs%2ChighlightText%2CmakeCollapsible%2Csuggestions%2CtabIndex%7Cmediawiki.String%2CTitle%2CUri%2Capi%2Cbase%2Ccldr%2Ccookie%2CjqueryMsg%2Clanguage%2Cnotify%2CsearchSuggest%2Cstorage%2Ctemplate%2Cuser%2Cutil%2Cwidgets%7Cmediawiki.libs.pluralruleparser%7Cmediawiki.page.ready%2Cstartup%7Cmediawiki.rcfilters.filters.dm%2Cui%7Cmediawiki.special.changeslist.legend.js%7Cmediawiki.special.recentchanges%7Cmediawiki.template.regexp%7Cmediawiki.widgets.styles%7Coojs-ui-core.icons%2Cstyles%7Coojs-ui-widgets.icons%7Coojs-ui-windows.icons%7Coojs-ui.styles.icons-content%2Cicons-editing-core%2Cicons-editing-styling%2Cicons-interactions%2Cicons-layout%2Cicons-media%2Cicons-moderation%2Cindicators%7Cskins.vector.js%7Cuser.defaults&skin=vector&version=a1m0b   MWException from line 942 of .../includes/resourceloader/ResourceLoaderFileModule.php: ResourceLoaderFileModule::readStyleFile: style file not found: ".../resources/src/mediawiki.rcfilters/styles/mw.rcfilters.ui.FilterTagMultiselectWidget.less"
Backtrace:
#0 .../includes/resourceloader/ResourceLoaderFileModule.php(917): ResourceLoaderFileModule->readStyleFile(string, boolean, ResourceLoaderContext)
#1 .../includes/resourceloader/ResourceLoaderFileModule.php(433): ResourceLoaderFileModule->readStyleFiles(array, boolean, ResourceLoaderContext)
#2 .../includes/resourceloader/ResourceLoaderModule.php(739): ResourceLoaderFileModule->getStyles(ResourceLoaderContext)
#3 .../includes/resourceloader/ResourceLoaderModule.php(687): ResourceLoaderModule->buildContent(ResourceLoaderContext)
#4 .../includes/resourceloader/ResourceLoader.php(1084): ResourceLoaderModule->getModuleContent(ResourceLoaderContext)
#5 .../includes/resourceloader/ResourceLoader.php(789): ResourceLoader->makeModuleResponse(ResourceLoaderContext, array, array)
#6 .../load.php(48): ResourceLoader->respond(ResourceLoaderContext)
#7 {main}
which makes it look like the mw.rcfilters.ui.FilterTagMultiselectWidget.less file is missing. MarkAHershberger(talk) 18:30, 9 September 2020 (UTC)
I actually ran into some problems while upgrading, but managed to sort everything out, except for these filters. It makes sense that some file might still be missing. Where can I find this file then? 109.250.104.225 (talk) 12:17, 11 September 2020 (UTC)
How did you upgrade? Did you use a zip file? MarkAHershberger(talk) 14:17, 11 September 2020 (UTC)
I locally unzipped the .tar.gz file and then replaced the files on the server by uploading the unzipped update. I think it didn't quite work out the first time actually so I had to reinstall the wiki. I know this isn't the smartest thing to do, but it was my first time upgrading my wiki. What am I supposed to do now to solve this? Everything else works fine. 109.250.111.210 (talk) 17:37, 12 September 2020 (UTC)
How did you unzip the file? There are problems with some unzipping programs. MarkAHershberger(talk) 17:57, 12 September 2020 (UTC)
At first using 7zip, which is what caused the problems the first time I tried upgrading, and then I did it using git bash. 109.250.109.204 (talk) 10:28, 13 September 2020 (UTC)
So the problem is fixed? MarkAHershberger(talk) 13:00, 13 September 2020 (UTC)
No, this is after the successful installation using the correctly unzipped files. For some reason only this part of the wiki isn't showing up as it should. 92.117.63.43 (talk) 12:53, 14 September 2020 (UTC)
Look into your unzipped files and see if you see the file mw.rcfilters.ui.FilterTagMultiselectWidget.less in the resources/src/mediawiki.rcfilters/styles directory. If you have it, upload it to your server.
If you don't have it... well, that's strange. Use this file to replace it. MarkAHershberger(talk) 13:20, 14 September 2020 (UTC)
I uploaded it and everything is working now! Thank you. I found it among the unzipped files but it wasn't on the server for some reason. 92.117.39.182 (talk) 09:21, 15 September 2020 (UTC)
The discussion above is closed. Please do not modify it. No further edits should be made to this discussion.

so when install medawiki and run it

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.


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 444

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/mail_mime;C:\xampp\htdocs\wiki\vendor/pear/net_smtp;C:\xampp\htdocs\wiki\vendor/pear/net_socket;C:\xampp\htdocs\wiki\vendor/pear/pear-core-minimal/src;C:\xampp\htdocs\wiki\vendor/pear/pear_exception;C:\xampp\php\PEAR') in C:\xampp\htdocs\wiki\vendor\composer\ClassLoader.php on line 444

Fatal error: Class 'Liuggio\StatsdClient\Factory\StatsdDataFactory' not found in C:\xampp\htdocs\wiki\includes\libs\stats\BufferingStatsdDataFactory.php on line 35

How do I fix it? FireBarrier101 (talk) 14:00, 8 September 2020 (UTC)

Dont use 7zip to decimpress mediawiki Bawolff (talk) 15:48, 8 September 2020 (UTC)
so i should use winrar? FireBarrier101 (talk) 14:04, 9 September 2020 (UTC)
winrar i believe will work. Lots of people report having luck with the tar program included in git-bash Bawolff (talk) 06:32, 11 September 2020 (UTC)
The discussion above is closed. Please do not modify it. No further edits should be made to this discussion.

Adding page to category from another page or template

Is there a way to add a page to a category from another page or a template used on that other page? I have looked through the MediaWiki site and did not see anything to help. Andrew Branscom (talk) 15:59, 8 September 2020 (UTC)

help:templates - if a template has a category, then all pages that use it will be in the category. Bawolff (talk) 03:43, 9 September 2020 (UTC)

How do I embed HTML5 videos?

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


Hello,


I am looking for a way to embed html5 videos. I found the VideoPlayer extension but the instructions do not make sense to me.

Can anyone walk me through how to add this function to my mediawiki?


Extension:VideoPlayer 172.58.139.189 (talk) 17:03, 8 September 2020 (UTC)

VideoPlayer extension is outdated, you might be looking for Extension:TimedMediaHandler Taavi (talk!) 06:10, 9 September 2020 (UTC)
The discussion above is closed. Please do not modify it. No further edits should be made to this discussion.

dumpBackup.php fails on new installation

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


After porting my wiki to a new platform with all wiki functions apparently working properly I decided to make an XML backup, which I have routinely always done using dumpBackup.php. It failed with the following error messages:

Wikimedia\Rdbms\DBConnectionError from line 1380 of D:\mediawiki-1.34.2-2\apps\mediawiki\htdocs\includes\libs\rdbms\loadbalancer\LoadBalancer.php: Cannot access the database: Unknown error (127.0.0.1:3306)

#0 D:\mediawiki-1.34.2-2\apps\mediawiki\htdocs\includes\libs\rdbms\loadbalancer\LoadBalancer.php(931): Wikimedia\Rdbms\LoadBalancer->reportConnectionError()

#1 D:\mediawiki-1.34.2-2\apps\mediawiki\htdocs\includes\libs\rdbms\loadbalancer\LoadBalancer.php(898): Wikimedia\Rdbms\LoadBalancer->getServerConnection(0, 'bitnami_mediawi...', 0)

#2 D:\mediawiki-1.34.2-2\apps\mediawiki\htdocs\includes\libs\rdbms\loadbalancer\LoadBalancer.php(1043): Wikimedia\Rdbms\LoadBalancer->getConnection(-1, Array, 'bitnami_mediawi...', 0)

#3 D:\mediawiki-1.34.2-2\apps\mediawiki\htdocs\maintenance\Maintenance.php(1401): Wikimedia\Rdbms\LoadBalancer->getMaintenanceConnectionRef(-1, Array, 'bitnami_mediawi...')

#4 D:\mediawiki-1.34.2-2\apps\mediawiki\htdocs\maintenance\includes\BackupDumper.php(348): Maintenance->getDB(-1)

#5 D:\mediawiki-1.34.2-2\apps\mediawiki\htdocs\maintenance\includes\BackupDumper.php(294): BackupDumper->initProgress(1)

#6 D:\mediawiki-1.34.2-2\apps\mediawiki\htdocs\maintenance\dumpBackup.php(82): BackupDumper->dump(1, 0)

#7 D:\mediawiki-1.34.2-2\apps\mediawiki\htdocs\maintenance\doMaintenance.php(99): DumpBackup->execute()

#8 D:\mediawiki-1.34.2-2\apps\mediawiki\htdocs\maintenance\dumpBackup.php(144): require_once('D:\\mediawiki-1....')

#9 {main}


As you can see, I'm on a Win10 platform using version 1.34.2-2, which uses PHP 7.3.21 (apache2handler) and MySQL 8.0.21. I am running at the following URL: http://192.168.1.7/wiki/index.php/, where the IP address is fixed.

Thanks in advance for any help resolving this error. 184.99.188.182 (talk) 02:22, 9 September 2020 (UTC)

Is your database server running properly? Taavi (talk!) 06:10, 9 September 2020 (UTC)
As far as I can tell the database was running properly, since the wiki was running properly.
The good news is that dumpBackup.php seems to be working today. I have no idea what's different, but I thank you for your help. 184.99.188.182 (talk) 17:44, 9 September 2020 (UTC)
The discussion above is closed. Please do not modify it. No further edits should be made to this discussion.

error 500

Hello,

I can't access this page:

mediawiki/mw-config/index.php

this for error log:

2020-09-09 07:19:03 10.201.192.27 GET /mediawiki/mw-config/index.php - 80 - 10.201.192.27 Mozilla/4.0+(compatible;+MSIE+7.0;+Windows+NT+10.0;+WOW64;+Trident/7.0;+.NET4.0C;+.NET4.0E;+.NET+CLR+2.0.50727;+.NET+CLR+3.0.30729;+.NET+CLR+3.5.30729) http://10.201.192.27/mediawiki/ 500 0 0 124 Syahrulamri25 (talk) 07:24, 9 September 2020 (UTC)

Please explain what happened before and provide context. Malyacko (talk) 07:33, 9 September 2020 (UTC)
How to debug please enable and include php errors Bawolff (talk) 06:30, 11 September 2020 (UTC)

Named parameters - more than one line

Hi Most of my Wiki is static and don't need much maintains. But there are some data (sentence and number) that I updated regularly. Some of this data is repeated on several pages.

To make maintains easy and secure, I have made a template with the data.

I have tried making named parameters within the template.

In the template Audit I have the following: 123-456-789 {{{Number}}}

When I use {{Audit|Number=} it shows 123-456-789 – all is good J

But when I have make more than one line in the template is do not work. Example:

123-456-789 {{{Number}}}
Peter {{{Name}}}

When I use Template:Audit |Number=}} it shows:

123-456-789
Peter {{{Name}}}

And when I use: Template:Audit |Name=}} it shows:

123-456-789 {{{Number}}}
Peter

How do I make it so it only shows the line I call? Thanks Kenneth WS (talk) 09:45, 9 September 2020 (UTC) You need to install extension:ParserFunctions

Then do:


{{#if:{{{Number|}}}|123-456-789 {{{Number}}}}}
{{#if:{{{Name|}}}|Peter {{{Name}}}}}

That's for if you want to get rid of the whole line. If you just want to have a different default text if the parameter is unspecified, you can do {{{Number|DEFAULT TEXT HERE}}} Bawolff (talk) 04:21, 10 September 2020 (UTC)

Hi Bawolff - Thanks for your reply :-)
The if function do not change anything, but many I am doing it wrong.
I have a page (Template:Audit) and within that I have 2 parameters.
123-456-789 {{{Number}}}
Peter {{{Name}}}
On another page (page:Test} I want to use only one of the parameter
So I use the following command: {{Audit|Number=}}
I get the following result:
123-456-789
Peter {{{Name}}}
Why do I get the sekund parameter includning the curly brackets? Kenneth WS (talk) 10:18, 11 September 2020 (UTC)
well as written, that is what is supposed to happen. See help:Templates for how templates work.
What was the output of the #if version? Bawolff (talk) 02:41, 12 September 2020 (UTC)
SS# 585-39-4526.... frankie.... 174.28.78.76 (talk) 01:28, 14 September 2020 (UTC)
Hi Bawolff
The if function gives:
123-456-789
Peter {{{Name}}}
Any way. I want to have one page or data file with all the data (word and numbers) that I update frequently. Can you point me in the right direction, help page etc.?
Thanks
Kenneth Kenneth WS (talk) 09:30, 14 September 2020 (UTC)
Reading Help:Templates and Help:Extension:ParserFunctions to understand how they work, and how to use them should help. TiltedCerebellum (talk) 21:42, 15 September 2020 (UTC)

Please tell me how to enable "safesubst:"

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


I have a wiki that is powered by MediaWiki. How I can enable safesubst:? Please tell me. Thank you. Atmark-chan <T/C> 10:54, 9 September 2020 (UTC)

You don't need to as it's already there/enabled. You just need to do some reading on how to use it, Help:Substitution would be a good start. – Ammarpad (talk) 20:51, 9 September 2020 (UTC)
@Ammarpad: I could do that. Thank you! Atmark-chan <T/C> 10:11, 10 September 2020 (UTC)
The discussion above is closed. Please do not modify it. No further edits should be made to this discussion.

How to to delete pictures

How to delete pictures which I dont want to have any more linked to me? My own photos I `ve taken myself? 522jgmk2016 (talk) 12:01, 9 September 2020 (UTC)

Does this have anything to do with MediaWiki? MarkAHershberger(talk) 18:23, 9 September 2020 (UTC)

Change Point of View iCub Simulator

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


Hi, I'm working with the iCub Simulator, I would like to change the point of view of the camera that is showing the iCub. Is it possible? In case it is, could you point me towards the solution?

Thanks 5.94.9.86 (talk) 20:03, 9 September 2020 (UTC)

You ended up on the wrong wiki. This wiki supports MediaWiki. Try this link: http://wiki.icub.org/wiki/Deliverable_8.3#Developing_iCub_Software_with_Yarp:_A_Novice_User.27s_View
Epecially this bit:
For further information on how to obtain, compile, and use Yarp please see:
The discussion above is closed. Please do not modify it. No further edits should be made to this discussion.

Is it possible to export more than 5000 pages?

Hi, I was trying to export all of the Wikipedia articles in a category using [[Special:Export]], but when I add pages from a category, it stops at 5000 pages even if the category in question has more pages than that.

Can someone provide a workaround for this? Thanks. IBBishops (talk) 20:07, 9 September 2020 (UTC)

See Help:Export for alternatives. The 5000 limit is controlled by Manual:$wgExportPagelistLimit and unlikely to be changed. – Ammarpad (talk) 20:46, 9 September 2020 (UTC)
Thanks, also one other thing:
When I try to export a category of pages using the "add , they aren't showing in alphabetical order. Just a short time ago, they were showing in alphabetical order, but now they're not. IBBishops (talk) 21:57, 9 September 2020 (UTC)
You could do it in batches, or download a dump of the entire wikipedia https://dumps.wikimedia.org/ Bawolff (talk) 03:02, 10 September 2020 (UTC)

Can I make a user-right that makes users be able to read/edit pages in a specific namespace?

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


I have a wiki that is powered by MediaWiki.

Can I make such a user-right:

  • users have that can read a specific namespace
  • users have that can edit a specific namespace

However, "users" above don't have read right.

Please tell me, whether that is possible, and if the answer is "yes", how to do that. Thank you. Atmark-chan <T/C> 10:39, 10 September 2020 (UTC)

You can use Manual:$wgNamespaceProtection for restricting editing. Reading restrictions would require using an extension like Extension:Lockdown. Taavi (talk!) 10:50, 10 September 2020 (UTC)
@Majavah: Thank you! Atmark-chan <T/C> 13:47, 10 September 2020 (UTC)
The discussion above is closed. Please do not modify it. No further edits should be made to this discussion.

{} in subtitle

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 many subtitles with {}. Then I create link to it it's not working in that way:

[[Scripts#Test {answer}|Press here]]

It's working so:

[[Scripts#Test %7Banswer%7D|Press here]]

Can wiki do exchange from {} to %7B %7D automatically? Maybe with some extension? Ezzdzhig (talk) 11:30, 10 September 2020 (UTC)

There is ReplaceText that could help. MarkAHershberger(talk) 13:24, 10 September 2020 (UTC)
You can copy the id from the entry in the ToC on the destination page. Simply take it from the url. —TheDJ (Not WMF) (talkcontribs) 14:12, 10 September 2020 (UTC)
{{URLENCODE:foo {bar} |wiki}} perhaps Bawolff (talk) 20:21, 10 September 2020 (UTC)
Thanks to all.
I use URLENCODE, it is easy and work. Ezzdzhig (talk) 13:22, 14 September 2020 (UTC)
The discussion above is closed. Please do not modify it. No further edits should be made to this discussion.

APCU delivers cached version of page even after editing

I set up APCu but now when someone edits a page it takes around 4 minutes for the cache to invalidate the page and re-render it.

This is not due to the browsers cache as Ctrl+F5 fetches the same old version.

After around 4 minutes reloading, the edited page gets delivered.

Why is that? How can I speed up the process?


Thank you! 130.83.76.1 (talk) 12:44, 10 September 2020 (UTC)

What version of MediaWiki? What happens if you purge the page? MarkAHershberger(talk) 13:23, 10 September 2020 (UTC)
1.31.8 and purging with ?action=purge works immediately. 130.83.76.1 (talk) 13:48, 10 September 2020 (UTC)
Check the setting of opcache.revalidate_freq in your /etc/php.ini file
; How often (in seconds) to check file timestamps for changes to the shared 
; memory storage allocation. ("1" means validate once per second, but only 
; once per request. "0" means always validate) 
opcache.revalidate_freq=0
If you change the setting, reload Apache (e.g. sudo systemctl reload apache2) Greg Rundlett (talk) 16:27, 10 September 2020 (UTC)
i think opcache.revalidate is the wrong type of cache for this issue (i think that controls changes to php files not mw pages) Bawolff (talk) 20:15, 10 September 2020 (UTC)
ok, first we need to verify that it really is apc causing the problems and if so, which part. Mediawiki has many types of different caches that can interact in complex ways.
If you set $wgParserCache = CACHE_NONE; (while keeping other settings the same) does the problem go away or does it keep happening? Bawolff (talk) 20:18, 10 September 2020 (UTC)
I used no cache earlier, naturally it will go away if I rever the change to use APCu 130.83.76.1 (talk) 08:14, 11 September 2020 (UTC)
i need to know if the issue persists when setting $wgParserCache = CACHE_NONE while at the same time still having apcu enabled, in order to narrow down which part of mediawiki the issue is in. Bawolff (talk) 02:39, 12 September 2020 (UTC)
> Bawolff said:
> i think that controls changes to php files not mw pages
You're right. I didn't think of that. Greg Rundlett (talk) 14:40, 11 September 2020 (UTC)

Restrict editing of user pages

Is it possible to have a wiki in which registered users can edit as normal, but only the relevant user (or an administrator) can edit a page in the User namespace? Thanks. Jonathan3 (talk) 17:47, 10 September 2020 (UTC)

It looks like Extension:UserPageEditProtection would do this. Are there any other options? Thank you. Jonathan3 (talk) 18:11, 10 September 2020 (UTC)
If you want technical but more flexible solution you can consider using either GetUserPermissionsErrors or userCan hook directly. – Ammarpad (talk) 16:57, 11 September 2020 (UTC)

Here is my site, when I share the link, the medialink shows up, I would like my link to show up. Please help.https://educationisourbuffalo.com/wiki/index.php?title=Indigenous_Wiki 47.54.146.250 (talk) 00:46, 11 September 2020 (UTC)

Extension:PageImages adjusts it to an image on the page (but not your logo).
There is also Extension:OpenGraphMeta but that is not exactly what you want either Bawolff (talk) 02:37, 11 September 2020 (UTC)

Purge confirmation

Submitted as feature request: Phab:T262686

Hello. I understand the need for purge requests to be confirmed on Wikimedia projects, but is there a way for private wikis to skip this? And if no, why not? Thanks! Rehman 04:43, 11 September 2020 (UTC)

the linked page is only partially right, part of it was also to be able to route read only requests to a read only data center to better distribute load.
Umm. I dont think anyone has made any extension to adjust this behaviour. No fundamental reason it cant be dine, i just dont think anyone has. Bawolff (talk) 06:28, 11 September 2020 (UTC)
Oh okay. Would you know where I could make such a feature suggestion? A way to avoid the confirmation at least on private wikis is useful. Rehman 13:04, 11 September 2020 (UTC)
How to report a bug Malyacko (talk) 15:16, 11 September 2020 (UTC)
Thank you. Submitted to Phab:T262686 Rehman 16:12, 11 September 2020 (UTC)
You can use this extension. Henryfunk (talk) 02:48, 19 September 2020 (UTC)
But that only adds the button, but still prompts the confirmation? Rehman 02:19, 21 September 2020 (UTC)
Rehman, no. That was fixed a couple of years ago.
See https://www.mediawiki.org/wiki/Extension_talk:Purge and
https://github.com/Hutchy68/Purge/pull/8 . Henryfunk (talk) 16:28, 21 September 2020 (UTC)

How do configure the Short URL thing on XAMPP?

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


I am a newbie at both Apache and Mediawiki. I've tried using this to enable Short URL. In short, it didn't work. So I browsed talk pages on articles related to XAMPP and Mediawiki and I discovered a file "httpd.conf". I then copied and pasted what the guide asked me to copy paste into .htacccess into the end part of httpd.conf and altered the LocalSettings.php according to the guide. Now, after starting XAMPP, if I go to localhost/[Mediawiki folder in htdocs], it does redirect to localhost/wiki/Main_Page but returns a 404. And, if I go to a specific page like localhost/mediawiki-1.34.2/index.php?title=Main_Page, it returns the php only and stylesheets and other resources don't load. Help!

Edit: NVM Gas all the Normies (talk) 05:34, 11 September 2020 (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.


How can I change the menu bar/navigation area on the left side of the Wiki? 165.225.27.75 (talk) 06:38, 11 September 2020 (UTC)

Edit MediaWiki:Sidebar on your wiki, for more info see Manual:Interface/Sidebar Taavi (talk!) 07:07, 11 September 2020 (UTC)
The discussion above is closed. Please do not modify it. No further edits should be made to this discussion.

getting error while import template

[841f5fc0a2e825c5ab798c2e] /index.php?title=Special:Import&action=submit Wikimedia\Rdbms\DBTransactionStateError from line 1420 of /usr/share/nginx/html/mediawiki/includes/libs/rdbms/database/Database.php: Cannot execute query from LCStoreDB::get while transaction status is ERROR

Backtrace:

#0 /usr/share/nginx/html/mediawiki/includes/libs/rdbms/database/Database.php(1145): Wikimedia\Rdbms\Database->assertQueryIsCurrentlyAllowed(string, string)

#1 /usr/share/nginx/html/mediawiki/includes/libs/rdbms/database/Database.php(1807): Wikimedia\Rdbms\Database->query(string, string)

#2 /usr/share/nginx/html/mediawiki/includes/libs/rdbms/database/Database.php(1644): Wikimedia\Rdbms\Database->select(string, string, array, string, array, array)

#3 /usr/share/nginx/html/mediawiki/includes/libs/rdbms/database/DBConnRef.php(68): Wikimedia\Rdbms\Database->selectField(string, string, array, string)

#4 /usr/share/nginx/html/mediawiki/includes/libs/rdbms/database/DBConnRef.php(302): Wikimedia\Rdbms\DBConnRef->__call(string, array)

#5 /usr/share/nginx/html/mediawiki/includes/cache/localisation/LCStoreDB.php(63): Wikimedia\Rdbms\DBConnRef->selectField(string, string, array, string)

#6 /usr/share/nginx/html/mediawiki/includes/cache/localisation/LocalisationCache.php(422): LCStoreDB->get(string, string)

#7 /usr/share/nginx/html/mediawiki/includes/cache/localisation/LocalisationCache.php(325): LocalisationCache->loadSubitem(string, string, string)

#8 /usr/share/nginx/html/mediawiki/languages/Language.php(2545): LocalisationCache->getSubitem(string, string, string)

#9 /usr/share/nginx/html/mediawiki/includes/cache/MessageCache.php(970): Language->getMessage(string)

#10 /usr/share/nginx/html/mediawiki/includes/cache/MessageCache.php(928): MessageCache->getMessageForLang(LanguageEn, string, boolean, array)

#11 /usr/share/nginx/html/mediawiki/includes/cache/MessageCache.php(870): MessageCache->getMessageFromFallbackChain(LanguageEn, string, boolean)

#12 /usr/share/nginx/html/mediawiki/includes/language/Message.php(1297): MessageCache->get(string, boolean, LanguageEn)

#13 /usr/share/nginx/html/mediawiki/includes/language/Message.php(852): Message->fetchMessage()

#14 /usr/share/nginx/html/mediawiki/includes/language/Message.php(956): Message->toString(string)

#15 /usr/share/nginx/html/mediawiki/includes/OutputPage.php(4004): Message->plain()

#16 /usr/share/nginx/html/mediawiki/includes/specials/SpecialImport.php(237): OutputPage->wrapWikiMsg(string, array)

#17 /usr/share/nginx/html/mediawiki/includes/specials/SpecialImport.php(109): SpecialImport->doImport()

#18 /usr/share/nginx/html/mediawiki/includes/specialpage/SpecialPage.php(575): SpecialImport->execute(NULL)

#19 /usr/share/nginx/html/mediawiki/includes/specialpage/SpecialPageFactory.php(611): SpecialPage->run(NULL)

#20 /usr/share/nginx/html/mediawiki/includes/MediaWiki.php(296): MediaWiki\Special\SpecialPageFactory->executePath(Title, RequestContext)

#21 /usr/share/nginx/html/mediawiki/includes/MediaWiki.php(900): MediaWiki->performRequest()

#22 /usr/share/nginx/html/mediawiki/includes/MediaWiki.php(527): MediaWiki->main()

#23 /usr/share/nginx/html/mediawiki/index.php(44): MediaWiki->run()

#24 {main} Sachinpatel393 (talk) 10:35, 11 September 2020 (UTC)

can anyone please help me i get this above error when i try to import templates,
but its only gives error for some templates only not for all, one of the template nemed is Template:Citation needed,
also it gives this same error while get error at frontnend side.
please let me know how can i fix this.
thanks Sachinpatel393 (talk) 10:36, 11 September 2020 (UTC)
Which version of MediaWiki?
It looks like there is a problem with the i18n storage. Check this table and let us know what you have for the values of $wgCacheDirectory and $wgLocalisationCacheConf. MarkAHershberger(talk) 12:10, 11 September 2020 (UTC)
used version 1.34.2 of mediawiki
mensioned values:
$wgLocalisationCacheConf = [
'class' => LocalisationCache::class,
'store' => 'detect',
'storeClass' => false,
'storeDirectory' => false,
'storeServer' => [],
'forceRecache' => false,
'manualRecache' => false,
];
#$wgCacheDirectory = "$IP/cache";
Sachinpatel393 (talk) 14:27, 11 September 2020 (UTC)
  1. Uncomment $wgCacheDirectory by removing the # from the beginning of the line.
  2. Make sure the subdirectory named cache exists in your wiki directory and that it is world-writable. (chmod 1777 cache if you have shell access.)
  3. Let us know if it works. MarkAHershberger(talk) 15:00, 11 September 2020 (UTC)
after uncomment $wgCacheDirectory,
seems little change ine error, let me know if you have solution for this:
[a248183193fc9864107b94f3] /index.php?title=Special:Import&action=submit Wikimedia\Rdbms\DBTransactionStateError from line 1420 of /usr/share/nginx/html/mediawiki/includes/libs/rdbms/database/Database.php: Cannot execute query from LinkCache::fetchPageRow while transaction status is ERROR
Backtrace:
#0 /usr/share/nginx/html/mediawiki/includes/libs/rdbms/database/Database.php(1145): Wikimedia\Rdbms\Database->assertQueryIsCurrentlyAllowed(string, string)
#1 /usr/share/nginx/html/mediawiki/includes/libs/rdbms/database/Database.php(1807): Wikimedia\Rdbms\Database->query(string, string)
#2 /usr/share/nginx/html/mediawiki/includes/libs/rdbms/database/Database.php(1899): Wikimedia\Rdbms\Database->select(string, array, array, string, array, array)
#3 /usr/share/nginx/html/mediawiki/includes/libs/rdbms/database/DBConnRef.php(68): Wikimedia\Rdbms\Database->selectRow(string, array, array, string)
#4 /usr/share/nginx/html/mediawiki/includes/libs/rdbms/database/DBConnRef.php(333): Wikimedia\Rdbms\DBConnRef->__call(string, array)
#5 /usr/share/nginx/html/mediawiki/includes/cache/LinkCache.php(331): Wikimedia\Rdbms\DBConnRef->selectRow(string, array, array, string)
#6 /usr/share/nginx/html/mediawiki/includes/cache/LinkCache.php(272): LinkCache->fetchPageRow(Wikimedia\Rdbms\MaintainableDBConnRef, Title)
#7 /usr/share/nginx/html/mediawiki/includes/libs/objectcache/wancache/WANObjectCache.php(1423): LinkCache->{closure}(boolean, integer, array, NULL)
#8 /usr/share/nginx/html/mediawiki/includes/libs/objectcache/wancache/WANObjectCache.php(1278): WANObjectCache->fetchOrRegenerate(string, integer, Closure, array)
#9 /usr/share/nginx/html/mediawiki/includes/cache/LinkCache.php(277): WANObjectCache->getWithSetCallback(string, integer, Closure)
#10 /usr/share/nginx/html/mediawiki/includes/Title.php(3142): LinkCache->addLinkObj(Title)
#11 /usr/share/nginx/html/mediawiki/includes/Revision/RevisionStore.php(3197): Title->getArticleID()
#12 /usr/share/nginx/html/mediawiki/includes/Revision.php(1138): MediaWiki\Revision\RevisionStore->getKnownCurrentRevision(Title, integer)
#13 /usr/share/nginx/html/mediawiki/includes/cache/MessageCache.php(1116): Revision::newKnownCurrent(Wikimedia\Rdbms\MaintainableDBConnRef, Title)
#14 /usr/share/nginx/html/mediawiki/includes/libs/objectcache/wancache/WANObjectCache.php(1423): MessageCache->{closure}(boolean, integer, array, NULL)
#15 /usr/share/nginx/html/mediawiki/includes/libs/objectcache/wancache/WANObjectCache.php(1278): WANObjectCache->fetchOrRegenerate(string, integer, Closure, array)
#16 /usr/share/nginx/html/mediawiki/includes/cache/MessageCache.php(1142): WANObjectCache->getWithSetCallback(string, integer, Closure)
#17 /usr/share/nginx/html/mediawiki/includes/libs/objectcache/BagOStuff.php(133): MessageCache->{closure}(integer)
#18 /usr/share/nginx/html/mediawiki/includes/cache/MessageCache.php(1144): BagOStuff->getWithSetCallback(string, integer, Closure)
#19 /usr/share/nginx/html/mediawiki/includes/cache/MessageCache.php(1060): MessageCache->loadCachedMessagePageEntry(string, string, string)
#20 /usr/share/nginx/html/mediawiki/includes/cache/MessageCache.php(957): MessageCache->getMsgFromNamespace(string, string)
#21 /usr/share/nginx/html/mediawiki/includes/cache/MessageCache.php(928): MessageCache->getMessageForLang(LanguageEn, string, boolean, array)
#22 /usr/share/nginx/html/mediawiki/includes/cache/MessageCache.php(870): MessageCache->getMessageFromFallbackChain(LanguageEn, string, boolean)
#23 /usr/share/nginx/html/mediawiki/includes/language/Message.php(1297): MessageCache->get(string, boolean, LanguageEn)
#24 /usr/share/nginx/html/mediawiki/includes/language/Message.php(1016): Message->fetchMessage()
#25 /usr/share/nginx/html/mediawiki/includes/specialpage/SpecialPage.php(837): Message->isDisabled()
#26 /usr/share/nginx/html/mediawiki/includes/specials/SpecialImport.php(332): SpecialPage->addHelpLink(string, boolean)
#27 /usr/share/nginx/html/mediawiki/includes/specials/SpecialImport.php(111): SpecialImport->showForm()
#28 /usr/share/nginx/html/mediawiki/includes/specialpage/SpecialPage.php(575): SpecialImport->execute(NULL)
#29 /usr/share/nginx/html/mediawiki/includes/specialpage/SpecialPageFactory.php(611): SpecialPage->run(NULL)
#30 /usr/share/nginx/html/mediawiki/includes/MediaWiki.php(296): MediaWiki\Special\SpecialPageFactory->executePath(Title, RequestContext)
#31 /usr/share/nginx/html/mediawiki/includes/MediaWiki.php(900): MediaWiki->performRequest()
#32 /usr/share/nginx/html/mediawiki/includes/MediaWiki.php(527): MediaWiki->main()
#33 /usr/share/nginx/html/mediawiki/index.php(44): MediaWiki->run()
#34 {main} Sachinpatel393 (talk) 15:01, 11 September 2020 (UTC)
after change permission of cache folder to your given again it seems changes in error:
[9401596e61d2a7323c1ccddc] /index.php?title=Special:Import&action=submit Wikimedia\Rdbms\DBTransactionStateError from line 1420 of /usr/share/nginx/html/mediawiki/includes/libs/rdbms/database/Database.php: Cannot execute query from Wikimedia\Rdbms\Database::ping while transaction status is ERROR
Backtrace:
#0 /usr/share/nginx/html/mediawiki/includes/libs/rdbms/database/Database.php(1145): Wikimedia\Rdbms\Database->assertQueryIsCurrentlyAllowed(string, string)
#1 /usr/share/nginx/html/mediawiki/includes/libs/rdbms/database/Database.php(4297): Wikimedia\Rdbms\Database->query(string, string, integer)
#2 /usr/share/nginx/html/mediawiki/includes/libs/rdbms/database/Database.php(687): Wikimedia\Rdbms\Database->ping(NULL)
#3 /usr/share/nginx/html/mediawiki/includes/libs/rdbms/database/Database.php(677): Wikimedia\Rdbms\Database->pingAndCalculateLastTrxApplyTime()
#4 /usr/share/nginx/html/mediawiki/includes/libs/rdbms/loadbalancer/LoadBalancer.php(1605): Wikimedia\Rdbms\Database->pendingWriteQueryDuration(string)
#5 /usr/share/nginx/html/mediawiki/includes/libs/rdbms/loadbalancer/LoadBalancer.php(2109): Wikimedia\Rdbms\LoadBalancer->Wikimedia\Rdbms\{closure}(Wikimedia\Rdbms\DatabaseMysqli)
#6 /usr/share/nginx/html/mediawiki/includes/libs/rdbms/loadbalancer/LoadBalancer.php(1621): Wikimedia\Rdbms\LoadBalancer->forEachOpenMasterConnection(Closure)
#7 /usr/share/nginx/html/mediawiki/includes/libs/rdbms/lbfactory/LBFactory.php(208): Wikimedia\Rdbms\LoadBalancer->approveMasterChanges(array, string, integer)
#8 /usr/share/nginx/html/mediawiki/includes/libs/rdbms/lbfactory/LBFactorySimple.php(134): Wikimedia\Rdbms\LBFactory->Wikimedia\Rdbms\{closure}(Wikimedia\Rdbms\LoadBalancer, string, array)
#9 /usr/share/nginx/html/mediawiki/includes/libs/rdbms/lbfactory/LBFactory.php(210): Wikimedia\Rdbms\LBFactorySimple->forEachLB(Closure, array)
#10 /usr/share/nginx/html/mediawiki/includes/libs/rdbms/lbfactory/LBFactory.php(269): Wikimedia\Rdbms\LBFactory->forEachLBCallMethod(string, array)
#11 /usr/share/nginx/html/mediawiki/includes/MediaWiki.php(611): Wikimedia\Rdbms\LBFactory->commitMasterChanges(string, array)
#12 /usr/share/nginx/html/mediawiki/includes/MediaWiki.php(582): MediaWiki::preOutputCommit(RequestContext, Closure)
#13 /usr/share/nginx/html/mediawiki/includes/MediaWiki.php(916): MediaWiki->doPreOutputCommit(Closure)
#14 /usr/share/nginx/html/mediawiki/includes/MediaWiki.php(527): MediaWiki->main()
#15 /usr/share/nginx/html/mediawiki/index.php(44): MediaWiki->run()
#16 {main}
let me know if you gettin this error.
thanks for your support. Sachinpatel393 (talk) 15:14, 11 September 2020 (UTC)
Well, it looks the the cause of the problem has changed, so that is a success, sort of.
I don't see a cause here, though. If you have access to the shell, can you try importDump.php? MarkAHershberger(talk) 15:17, 11 September 2020 (UTC)
i dont think this is the primary error, but a secondary error caused by whatever the primary error was. Can you enable mw denug logging and post your debug log for one of the requests that errored (particularly interested in anything related to transactions, ROLLBACK or abort.) Bawolff (talk) 00:41, 12 September 2020 (UTC)
[DBQuery] ImportableOldRevisionImporter::import [0s] localhost: SELECT rev_id FROM `revision` WHERE rev_page = '6611' AND (rev_timestamp <= '20090406143117') ORDER BY rev_timestamp DESC,rev_id DESC LIMIT 1
[DBQuery] startAtomic: entering level 0 (MediaWiki\Revision\RevisionStore::insertRevisionOn)
[DBQuery] CommentStore::createComment [0s] localhost: SELECT comment_id FROM `comment` WHERE comment_hash = '0' AND comment_text = '' AND comment_data IS NULL LIMIT 1
[DBQuery] User::load [0s] localhost: SELECT actor_id,actor_user,actor_name FROM `actor` WHERE actor_name = 'Ჯუღაშვილი' LIMIT 1
[DBQuery] cancelAtomic: canceling level 0 (MediaWiki\Revision\RevisionStore::insertRevisionOn)
[Scribunto] Scribunto_LuaStandaloneInterpreter::terminate: terminating
[DBQuery] MWExceptionHandler::rollbackMasterChangesAndLog [0.33s] localhost: ROLLBACK
[DBQuery] Wikimedia\Rdbms\Database::ping [0s] localhost: SELECT 1 AS ping
[DBPerformance] Expectation (writeQueryTime <= 1) by MediaWiki::main not met (actual: 2.5168278408051):
[transaction f155d5 writes to localhost (blackwikinew)]
#0 /usr/share/nginx/html/mediawiki/includes/libs/rdbms/TransactionProfiler.php(309): Wikimedia\Rdbms\TransactionProfiler->reportExpectationViolated('writeQueryTime', '[transaction f1...', 2.5168278408051)
#1 /usr/share/nginx/html/mediawiki/includes/libs/rdbms/database/Database.php(4145): Wikimedia\Rdbms\TransactionProfiler->transactionWritingOut('localhost', 'blackwikinew', 'f155d5', 2.5168278408051, 3311)
#2 /usr/share/nginx/html/mediawiki/includes/libs/rdbms/loadbalancer/LoadBalancer.php(1811): Wikimedia\Rdbms\Database->rollback('MWExceptionHand...', 'flush')
#3 /usr/share/nginx/html/mediawiki/includes/libs/rdbms/loadbalancer/LoadBalancer.php(2109): Wikimedia\Rdbms\LoadBalancer->Wikimedia\Rdbms\{closure}(Object(Wikimedia\Rdbms\DatabaseMysqli))
#4 /usr/share/nginx/html/mediawiki/includes/libs/rdbms/loadbalancer/LoadBalancer.php(1812): Wikimedia\Rdbms\LoadBalancer->forEachOpenMasterConnection(Object(Closure))
#5 /usr/share/nginx/html/mediawiki/includes/libs/rdbms/lbfactory/LBFactory.php(208): Wikimedia\Rdbms\LoadBalancer->rollbackMasterChanges('MWExceptionHand...', 2061083247)
#6 /usr/share/nginx/html/mediawiki/includes/libs/rdbms/lbfactory/LBFactorySimple.php(134): Wikimedia\Rdbms\LBFactory->Wikimedia\Rdbms\{closure}(Object(Wikimedia\Rdbms\LoadBalancer), 'rollbackMasterC...', Array)
#7 /usr/share/nginx/html/mediawiki/includes/libs/rdbms/lbfactory/LBFactory.php(210): Wikimedia\Rdbms\LBFactorySimple->forEachLB(Object(Closure), Array)
#8 /usr/share/nginx/html/mediawiki/includes/libs/rdbms/lbfactory/LBFactory.php(291): Wikimedia\Rdbms\LBFactory->forEachLBCallMethod('rollbackMasterC...', Array)
#9 /usr/share/nginx/html/mediawiki/includes/exception/MWExceptionHandler.php(146): Wikimedia\Rdbms\LBFactory->rollbackMasterChanges('MWExceptionHand...')
#10 /usr/share/nginx/html/mediawiki/includes/exception/MWExceptionHandler.php(194): MWExceptionHandler::rollbackMasterChangesAndLog(Object(Wikimedia\Rdbms\DBTransactionStateError))
#11 /usr/share/nginx/html/mediawiki/includes/MediaWiki.php(558): MWExceptionHandler::handleException(Object(Wikimedia\Rdbms\DBTransactionStateError))
#12 /usr/share/nginx/html/mediawiki/index.php(44): MediaWiki->run()
#13 {main}
[DBPerformance] Expectation (maxAffected <= 1000) by MediaWiki::main not met (actual: 3311):
[transaction f155d5 writes to localhost (blackwikinew)]
#0 /usr/share/nginx/html/mediawiki/includes/libs/rdbms/TransactionProfiler.php(318): Wikimedia\Rdbms\TransactionProfiler->reportExpectationViolated('maxAffected', '[transaction f1...', 3311)
#1 /usr/share/nginx/html/mediawiki/includes/libs/rdbms/database/Database.php(4145): Wikimedia\Rdbms\TransactionProfiler->transactionWritingOut('localhost', 'blackwikinew', 'f155d5', 2.5168278408051, 3311)
#2 /usr/share/nginx/html/mediawiki/includes/libs/rdbms/loadbalancer/LoadBalancer.php(1811): Wikimedia\Rdbms\Database->rollback('MWExceptionHand...', 'flush')
#3 /usr/share/nginx/html/mediawiki/includes/libs/rdbms/loadbalancer/LoadBalancer.php(2109): Wikimedia\Rdbms\LoadBalancer->Wikimedia\Rdbms\{closure}(Object(Wikimedia\Rdbms\DatabaseMysqli))
#4 /usr/share/nginx/html/mediawiki/includes/libs/rdbms/loadbalancer/LoadBalancer.php(1812): Wikimedia\Rdbms\LoadBalancer->forEachOpenMasterConnection(Object(Closure))
#5 /usr/share/nginx/html/mediawiki/includes/libs/rdbms/lbfactory/LBFactory.php(208): Wikimedia\Rdbms\LoadBalancer->rollbackMasterChanges('MWExceptionHand...', 2061083247)
#6 /usr/share/nginx/html/mediawiki/includes/libs/rdbms/lbfactory/LBFactorySimple.php(134): Wikimedia\Rdbms\LBFactory->Wikimedia\Rdbms\{closure}(Object(Wikimedia\Rdbms\LoadBalancer), 'rollbackMasterC...', Array)
#7 /usr/share/nginx/html/mediawiki/includes/libs/rdbms/lbfactory/LBFactory.php(210): Wikimedia\Rdbms\LBFactorySimple->forEachLB(Object(Closure), Array)
#8 /usr/share/nginx/html/mediawiki/includes/libs/rdbms/lbfactory/LBFactory.php(291): Wikimedia\Rdbms\LBFactory->forEachLBCallMethod('rollbackMasterC...', Array)
#9 /usr/share/nginx/html/mediawiki/includes/exception/MWExceptionHandler.php(146): Wikimedia\Rdbms\LBFactory->rollbackMasterChanges('MWExceptionHand...')
#10 /usr/share/nginx/html/mediawiki/includes/exception/MWExceptionHandler.php(194): MWExceptionHandler::rollbackMasterChangesAndLog(Object(Wikimedia\Rdbms\DBTransactionStateError))
#11 /usr/share/nginx/html/mediawiki/includes/MediaWiki.php(558): MWExceptionHandler::handleException(Object(Wikimedia\Rdbms\DBTransactionStateError))
#12 /usr/share/nginx/html/mediawiki/index.php(44): MediaWiki->run()
#13 {main}
[DBPerformance] Sub-optimal transaction on DB(s) [localhost (blackwikinew) (TRX#f155d5)]:
0 0.000155 query-m: INSERT IGNORE INTO `page` (page_namespace,page_title,page_restrictions,page_is_redirect,page_is_new,page_random,page_touched,page_latest,page_len) VALUES ('X') [TRX#f155d5]
1 0.000092 query-m: INSERT INTO `comment` (comment_hash,comment_text,comment_data) VALUES ('X',NULL) [TRX#f155d5]
2 0.000084 query-m: INSERT IGNORE INTO `actor` (actor_user,actor_name) VALUES (NULL,'X') [TRX#f155d5]
above are the backend error log of mediawiki,
trying to import Template:Collapse bottom, Template:Collapse top
both and get above errors.
getting this error for some templates or some module installation
any one know how can i fix this ? Sachinpatel393 (talk) 13:27, 22 September 2020 (UTC)
It looks like "Sub-optimal transaction on DB(s)" complaining about writes during a transaction causes the problem (but I'm really guessing here).
I'm not sure what to do. Perhaps @Bawolff will have an idea? MarkAHershberger(talk) 14:43, 22 September 2020 (UTC)
well i try to fix this last critical error while i import templates or modules,
hope @Bawolff read this and answer on this issue.
maybe its related cache or something, maybe cache not configured properly or maybe else,
or also maybe timeout issue somewhere!!!
well i am waiting for the solutions, please update me if any one having knowledge regarding this.
thanks Sachinpatel393 (talk) 15:41, 22 September 2020 (UTC)
i think the suboptimal transaction stuff is just a warning and can probably be ignored.
The concerning bit is:
[DBQuery] cancelAtomic: canceling level 0 (MediaWiki\Revision\RevisionStore::insertRevisionOn)
But its unclear why the atomic section was cancelled.
One possibility mentioned in code is:
// If the SlotRecord already has a revision ID set, this means it already exists
// in the database, and should already belong to the current revision.
// However, a slot may already have a revision, but no content ID, if the slot
// is emulated based on the archive table, because we are in SCHEMA_COMPAT_READ_OLD
// mode, and the respective archive row was not yet migrated to the new schema.
// In that case, a new slot row (and content row) must be inserted even during
// undeletion.
But that sounds unlikely in your situation.
I don't understand why the cause of the atomic section cancel isnt being recorded. so i dont know, maybe User:Duesentrieb has a suggestion.
Regarding cache: i dont think its cache related. Bawolff (talk) 08:49, 26 September 2020 (UTC)
ok thanks for the reply let me try to contact him if i get help.
thanks. Sachinpatel393 (talk) 11:28, 26 September 2020 (UTC)
@Bawolff @MarkAHershberger not getting any replay from him in email,
if anyone get help for above issue then please tell me thanks. Sachinpatel393 (talk) 16:22, 1 October 2020 (UTC)
Try filing a bug at https://phabricator.wikimedia.org (Please include step by step actions needed to reproduce the issue, along with any config changes different from genric mediawiki.) Bawolff (talk) 06:25, 2 October 2020 (UTC)
@Bawolff
well maybe i think i can little bit closer with error teamplate which i try to import is
Template:1906 National League standings - working and imported and exported fine to mine website.
But below
Template:1906 Nobel Prize winners
which is not working and gives error, while try to export to mine website.
i also tried both option tick when we import i.e Include only the current revision, not the full history
and include templates.
if you finalize why this happens or atleast suppose we try to import 10 templates and it gives error but can we identify directly from which template it gives errors instead of this log.
or atlest just show this both templates and let me know if you get something.
thank you so much.
its by me @Sachinpatel393 103.250.161.235 (talk) 12:08, 2 October 2020 (UTC)
(I don't seem to be able to log into my de wiki account so this is just gotta be anonymous)
Was there ever a solution to this problem found? I am having this exact problem today and haven't been able to figure out how to get around it 202.138.72.82 (talk) 09:42, 15 May 2023 (UTC)

'http://myIP' shows 'Apache2 Debian Default Page'

I was about to install codeigniter4 in my virtual machine in which bitnami-mediawiki is already installed.

After following these command at https://docs.bitnami.com/bch/infrastructure/lamp/get-started/use-codeigniter/,

(

1)sudo mkdir -p /opt/bitnami/projects/APPNAME


2)composer create-project codeigniter4/appstarter /opt/bitnami/projects/APPNAME


3)sudo chown daemon:daemon /opt/bitnami/projects/APPNAME/writable


3) (virtual host configuring)


4)sudo /opt/bitnami/ctlscript.sh restart apache


after this

my domain only shows this page('http://www2.ceab.csic.es/ )

how can I solve this problem? 49.175.77.89 (talk) 12:21, 11 September 2020 (UTC)

and also 'apachectl restart' command is not working, the log says that 'no listening sockets available, shutting down. 49.175.77.89 (talk) 12:32, 11 September 2020 (UTC)
This sounds like an Apache/bitnami problem that you would probably get better help for if you use the Bitnami community support. MarkAHershberger(talk) 14:16, 11 September 2020 (UTC)

MediaWiki 1.35.0-rc.3 PHP requirement

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.


Might be too late, but can I highly urge the project to step back the PHP requirement to at least 7.3.5? This is the highest version currently supported officially by RHEL 8, which RHEL/CentOS make up a majority of webservers. Please don't bastardize our PHP by using unsupported repositories for PHP. Please? 😀 Golbez81 (talk) 14:17, 11 September 2020 (UTC)
@Golbez81 See phab:T257879 for why 7.3.19 was chosen (and the place to discuss this). Thanks! Malyacko (talk) 15:15, 11 September 2020 (UTC)
"unsupported repositories"?
In any case, a more effective place to register this complaint is on phabricator or on the wikitech-l mailing list. MarkAHershberger(talk) 14:22, 11 September 2020 (UTC)
I have already requested my hosting to install php 7.3.19 as I plan to update my MW to 1.35 ... all I see now - one Extension:AutoSitemap stopped working. I don't sure if it happened due to the php version change, but previously it worked fine.
Now I see the error at my sitemap.xml:
This page contains the following errors:
error on line 2 at column 1: Extra content at the end of the document
Fokebox (talk) 15:24, 11 September 2020 (UTC)
If you can provide a link, we may be able to help resolve that. MarkAHershberger(talk) 15:39, 11 September 2020 (UTC)
Yes, sure! Here it is: https://wikireshebnik.ru/sitemap_new.xml Fokebox (talk) 17:12, 11 September 2020 (UTC)
@Fokebox, since I see that the extension owner has been active recently, I filled a bug for you on their github repo. Please follow up there. MarkAHershberger(talk) 19:13, 11 September 2020 (UTC)
Thank you very much. Hope the extension owner fix the bug and it will work fine with new MW 1.35 Fokebox (talk) 09:48, 12 September 2020 (UTC)
Hello.
It looks like issue is not connected with the extension itself.
This warning is being generated by /var/www/u0402490/data/www/wikireshebnik.ru/sitemap.php file. Can you provide it's content? Martynov Maxim (talk) 11:08, 14 September 2020 (UTC)
The extension worked fine until I asked hosting to change php version (preparing to upgrade MW to 1.35)
The original php file can be downloaded here: https://yadi.sk/d/01f407dt_0BVew Fokebox (talk) 13:44, 14 September 2020 (UTC)
I've opened this file and found these lines:
* sitemap.php - A MediaWiki dynamic sitemap page
* @author Simon Litt <slsoft@bk.ru>
It looks like you have Extension:DynamicWikiSitemap installed which become broken after PHP upgrade, not Extension:AutoSitemap.
This extension is unmaintained since 2013. Martynov Maxim (talk) 14:54, 14 September 2020 (UTC)
Well, I have tried to install Extension:AutoSitemap
It generates sitemap_new.xml (https://wikireshebnik.ru/sitemap_new.xml)
And there is a still the same problem happened, though the extension is stable Fokebox (talk) 15:03, 14 September 2020 (UTC)
Maybe you didn't get my point.
You have 2 extensions installed - Extension:AutoSitemap and Extension:DynamicWikiSitemap.
First is actively maintained (last release about a month ago) and supports MW 1.34 (and maybe even 1.35) and PHP 7. It saves sitemap as static file named "/sitemap.xml"
Second is unmaintained since 2013 and support only MW 1.15 and PHP 5 (or maybe even 4). It does not save sitemap as static file but instead generates it every time when any page is being opened.
You've upgraded PHP version from 5 to 7. While saving any article Extension:AutoSitemap is generating new sitemap, but because of old style import of Extension:DynamicWikiSitemap output file became broken.
This is only because old Extension:DynamicWikiSitemap is installed. Please remove "sitemap.php" from your "LocalSettings.php" and from root folder itself and try to save article again. Martynov Maxim (talk) 15:37, 14 September 2020 (UTC)
Thank you! i will try!
yes, first I used old extension and meanwhile installed a new one, but have not deleted file of old version Fokebox (talk) 15:41, 14 September 2020 (UTC)
@Golbez81, I just installed a RHEL 8 demo and was php 7.3.20 was available:
$ sudo yum module install php:7.3/*
Updating Subscription Management repositories.
Last metadata expiration check: 2:02:47 ago on Fri 11 Sep 2020 12:59:13 PM EDT.
Dependencies resolved.
===========================================================================
 Package       Arch   Version       Repository                        Size
===========================================================================
Installing group/module packages:
 libzip        x86_64 1.5.2-1.module+el8.1.0+3189+a1bff096
                                    rhel-8-for-x86_64-appstream-rpms  63 k
 php-cli       x86_64 7.3.20-1.module+el8.2.0+7373+b272fdef
                                    rhel-8-for-x86_64-appstream-rpms 3.0 M
 php-common    x86_64 7.3.20-1.module+el8.2.0+7373+b272fdef
                                    rhel-8-for-x86_64-appstream-rpms 669 k
 php-devel     x86_64 7.3.20-1.module+el8.2.0+7373+b272fdef
                                    rhel-8-for-x86_64-appstream-rpms 736 k
 php-fpm       x86_64 7.3.20-1.module+el8.2.0+7373+b272fdef
                                    rhel-8-for-x86_64-appstream-rpms 1.6 M
 php-json      x86_64 7.3.20-1.module+el8.2.0+7373+b272fdef
                                    rhel-8-for-x86_64-appstream-rpms  73 k
 php-mbstring  x86_64 7.3.20-1.module+el8.2.0+7373+b272fdef
                                    rhel-8-for-x86_64-appstream-rpms 618 k
 php-pear      noarch 1:1.10.9-1.module+el8.1.0+3189+a1bff096
                                    rhel-8-for-x86_64-appstream-rpms 359 k
 php-pecl-zip  x86_64 1.15.4-1.module+el8.1.0+3189+a1bff096
                                    rhel-8-for-x86_64-appstream-rpms  51 k
 php-process   x86_64 7.3.20-1.module+el8.2.0+7373+b272fdef
                                    rhel-8-for-x86_64-appstream-rpms  84 k
 php-xml       x86_64 7.3.20-1.module+el8.2.0+7373+b272fdef
                                    rhel-8-for-x86_64-appstream-rpms 187 k
Installing dependencies:
 nginx-filesystem
               noarch 1:1.14.1-9.module+el8.0.0+4108+af250afe
                                    rhel-8-for-x86_64-appstream-rpms  24 k
 pcre2-devel   x86_64 10.32-1.el8   rhel-8-for-x86_64-baseos-rpms    605 k
 pcre2-utf16   x86_64 10.32-1.el8   rhel-8-for-x86_64-baseos-rpms    229 k
 pcre2-utf32   x86_64 10.32-1.el8   rhel-8-for-x86_64-baseos-rpms    220 k
Installing module profiles:
 php/common                                                               
 php/devel                                                                
 php/minimal                                                              
Enabling module streams:
 nginx                1.14                                                
 php                  7.3                                                 
Transaction Summary
===========================================================================
Install  15 Packages
Total download size: 8.5 M
Installed size: 33 M
Is this ok [y/N]:
MarkAHershberger(talk) 19:00, 11 September 2020 (UTC)
Yeah, CentOS appears to still be on 7.3.5 so just waiting on it to catch up. Golbez81 (talk) 04:25, 13 September 2020 (UTC)
The discussion above is closed. Please do not modify it. No further edits should be made to this discussion.

Amazon Smile

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 set this organization to be the beneficiary of my orders via Amazon smile, however not a single dollar has been picked up yet. Did someone at your organization forget to pick up donations from that point? 100.38.228.213 (talk) 14:39, 11 September 2020 (UTC)

This is not the right place to ask. You would have to ask Amazon about the procedure and/or contact WMF Fundraising. MarkAHershberger(talk) 15:02, 11 September 2020 (UTC)
The discussion above is closed. Please do not modify it. No further edits should be made to this discussion.

wgDBadminuser and wgDBuser

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.


From the documentation, I understand how these get used differently (i.e. if wgDBadminuser and by default falling back to wgDBuser), but I was wondering are there any risks / drawback for setting the wgDBadminuser vs not? Nnaka1 (talk) 18:38, 11 September 2020 (UTC)

To reduce security risk, only set up $wgDBuser and leave $wgDBadminuser unset. To really ensure that you have a low risk, make sure the user in $wgDBuser is not root and cannot access any other databases. MarkAHershberger(talk) 19:18, 11 September 2020 (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.


I would request admins to please block Arzoper from creating/editing Malayalam language related translation. Around 90% or above edits done by the user are completely disastrous when seen from one who knows Malayalam language. For more information, please check talk page. Adithyak1997 (talk) 07:56, 12 September 2020 (UTC)

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

ERROR: Could not delete lock file for "mwstore://local-backend/local-public/archive".

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 posted the following query at Extension talk:SimpleBatchUpload#h-ERROR:_Could_not_delete_lock_file_for_"mwstore://local-backend/local-public/arch-2020-09-12T10:29:00.000Z on the Extension:SimpleBatchUpload talk page, but wonder if it might be a more generic problem with my MediaWiki installation - what do you think? Thanks.

I get this message for about a tenth of files uploaded, at various upload "percentage" stages.

The files themselves are uploaded all right.

But I wonder whether there will be any consequences of the error. Can anyone let me know? Thanks. Jonathan3 (talk) 10:38, 12 September 2020 (UTC)

I don't use the hashed directory structure - would that make any difference? Jonathan3 (talk) 10:45, 12 September 2020 (UTC)
I could see the error message being caused by the directory structure. What happens if you use hashed directories? MarkAHershberger(talk) 15:50, 12 September 2020 (UTC)
Thanks.
I noted a partial solution on the extension talk page: only allowing sequential uploads stops the database lock error but for some files it still stops short of 100%/OK.
If I set the wiki to use hashed directories to experiment, could I just delete the experimental files and change the setting back later, without any knock-on effects?
What do you think is the cause of the error and what might be the consequences for me (having ignored the error messages because the files seem ok)? Jonathan3 (talk) 17:13, 12 September 2020 (UTC)
If I set the wiki to use hashed directories to experiment, could I just delete the experimental files and change the setting back later, without any knock-on effects?
Try it and see. (Back up first, of course.)
What do you think is the cause of the error and what might be the consequences for me (having ignored the error messages because the files seem ok)?
Since the message is about a lock file, I would say there probably isn't much concern if you haven't seen any problems. MarkAHershberger(talk) 17:57, 12 September 2020 (UTC)
The discussion above is closed. Please do not modify it. No further edits should be made to this discussion.

REST API pageviews won't fetch for me

Hello!

Trying to map music genre popularity to pageviews and I can't get any requests to work on the built in tool at https://wikimedia.org/api/rest_v1/#/

I think I'm doing everything right. Here's what I'm putting in:

en.wikipedia.org all-access all-agents dubstep daily 20200101 20200901

And here's what I get back when I click execute:

https://wikimedia.org/api/rest_v1/metrics/pageviews/per-article/en.wikipedia.org/all-access/all-agents/dubstep/daily/20200101/20200901

TypeError: Failed to fetch

Onedaytheywokemeup (talk) 14:14, 12 September 2020 (UTC)

Maybe it is fixed now? When I click I get
{"items":[{"project":"en.wikipedia","article":"dubstep","granularity":"daily","timestamp":"2020021300","access":"all-access","agent":"all-agents","views":3},{"project":"en.wikipedia","article":"dubstep","granularity":"daily","timestamp":"2020031400","access":"all-access","agent":"all-agents","views":1}]}
MarkAHershberger(talk) 15:49, 12 September 2020 (UTC)
Thanks for looking into it Mark! However that appears to be erroneous data. You've requested all of the views on the Dubstep page from January to September and it gave you one date in Feb and one in March, totaling 4 views over the last 9 months. This is not accurate Onedaytheywokemeup (talk) 15:54, 12 September 2020 (UTC)
In any case it, it looks like this is a server-side error. Right now, I think you should consider creating a task in Phabricator. MarkAHershberger(talk) 15:58, 12 September 2020 (UTC)

Can I make some messages appear on Special:CreateAccount page?

Yes.

I want to make some messages (those are some attention about creating account) appear on Special:CreateAccount page when open the page. Can I do something like that? And how can I? Please tell me. Thank you. Atmark-chan <T/C> 15:50, 12 September 2020 (UTC)

If you edit the page MediaWiki:Signupstart on your wiki, you'll be able to add wikitext that should appear just before the form to create an account. MarkAHershberger(talk) 15:57, 12 September 2020 (UTC)
If you add uselang=qqx to a page’s url you get to see the name of the relevant MediaWiki: message pages. Jonathan3 (talk) 17:19, 12 September 2020 (UTC)
Mark and Johnathan3's suggestions are the easiest.
If that doesnt give you enough flexibility, you can add an AuthManager class to add an extra field. This is much more complicated though. Bawolff (talk) 19:00, 12 September 2020 (UTC)
Thank you, I see! In all pages, I can use uselang=qqx when I need to know the "MediaWiki:" message names. That's very convenient! Atmark-chan <T/C> 15:17, 16 September 2020 (UTC)

Leave redirects when moving to hashed directories

I’d like to move my wiki to use the hashed directory structure. It has hundreds of uploads already. I vaguely remember looking into this years ago. Is there any way to change the relevant wiki variable, have all files use the new hashed structure, but leave redirects so that any external links (ie from bookmarks or other websites) to a file are redirected to its new location? Jonathan3 (talk) 17:18, 12 September 2020 (UTC)

I think you can leave the files as-is and just change the variable. All new file handling would be done with hashed directories. Of course, I could be completely wrong and you might have to use importImages.php. MarkAHershberger(talk) 17:25, 12 September 2020 (UTC)
I have a feeling that changing Manual:$wgHashedUploadDirectory does not change the location of the existing files. This would mean that the existing files all get "lost" to MediaWiki (e.g. it would unsuccessfully look for [[Media:file.pdf]] at /a/ab/filename.ext).
How does importImages.php work? I already have MediaWiki File: pages for everything and don't want to lose the information there - e.g. if a file has had several revisions/uploads, or if there is other text on the page.
This is straying into non-MediaWiki territory but is there a recognised way to move all files in the media/ directory to their media/a/ab/filename.ext equivalents? I imagine then that the File: pages and MediaWiki generally would simply find the files at their new locations. Jonathan3 (talk) 21:15, 12 September 2020 (UTC)
If you can write your own mod_rewrite rules then you can add a bit to your .htaccess that says "If you're looking for /media/a/ab/File.pdf and it isn't there, then we'll give you whatever is in /media/File.pdf (or 404 if nothing is there)". MarkAHershberger(talk) 23:53, 12 September 2020 (UTC)
Yes that would solve the potential problem of breaking other people’s links (bookmarks etc) and the problem of MediaWiki losing the files. Thank you.
I’d prefer to move the files and have the redirect the other way round, but I’ve made my bed and now have to lie in it! Though if I work it out I’ll post it here. Jonathan3 (talk) 08:06, 13 September 2020 (UTC)
Thinking again. What you suggest could be used as part of a way for MediaWiki to store the files in hashed directories but hide that fact from users (keeping URLs nice). I’m sure there are reasons for not doing it though! Jonathan3 (talk) 08:19, 13 September 2020 (UTC)
I’m sure there are reasons for not doing it though!
None that I can think of. Cool URIs don't change. MarkAHershberger(talk) 12:54, 13 September 2020 (UTC)
Thanks. I’ll look into this and report back when I eventually do it!
I have never found a clear answer for how many files (even roughly) is too many for unhashed. I guess it depends on the server more than MediaWiki. I think someone once said as high as 300,000 but I suspect it would have benefits even for less than 10,000. I doubt my website will ever have more than that. Any ideas here? Jonathan3 (talk) 17:29, 12 September 2020 (UTC)
It depends on the filesystem being used by the server. DOS (8+3) filesystems wouldn't allow more than a couple hundred files in a directory (if that) but Linux's ext4 allows many more (infinite? but only 64000 subdirectories).
In reality, though, the limit is PHP itself rather than the file system. The core OS itself (e.g. linux kernel) can handle almost anything you throw at it. The "problem" is with the software written on top of that.
To illustrate, I wrote a short one-liner to create 3,000,000 files in a single directory:
$ time seq 0 3000000 | xargs touch
real	1m11.665s
user	0m4.716s
sys	0m53.503s
Compare this with the time to have the system run echo (but not actually display) for the some number of time:
$ time seq 0 3000000 | xargs echo > /dev/null
real	0m0.990s
user	0m0.556s
sys	0m0.610s
As you can see, the time to create those each of those files takes two orders of magnitude longer than just running echo the same number of times. (Displaying the numbers that echo produces adds overhead that we don't want to measure, hence the /dev/null.)
Now, let's actually access the record for each of those files. Not the contents, mind you, just the record of their existance:
$ time ls > /dev/null
real	0m16.290s
user	0m12.186s
sys	0m1.365s
Ok, not bad. But let's take away that /dev/null:
$ time ls
... not shown, but most of the time it was just sitting there with no display ...
real    3m36.492s
user    0m21.938s
sys    1m7.024s
A lot more time!
So the moral is that there aren't many limits to what you can physically put on the disk. The limits are in dealing with that data. Unless you have a really good reason to put all the files in one directory, I would avoid it. MarkAHershberger(talk) 19:13, 12 September 2020 (UTC)
"Unless you have a really good reason to put all the files in one directory, I would avoid it."
My original reason was just that I had sorted out short URLs (www.domain.com/Main_Page) and thought the unhashed directory structure looked nicer for files. Now I don't think that is a really good reason!
Edit: I have just under 1500 files, which seems to be manageable but I think I still want to make the change. Jonathan3 (talk) 20:13, 12 September 2020 (UTC)
you could have a 404 handler that turns the filename into hashed form (the algorithm is just md5 of filename) and gives a redirect. Bawolff (talk) 18:58, 12 September 2020 (UTC)
Thanks. I've made a start on that now:
$uri = $_SERVER['REQUEST_URI'];
$dirname = dirname($uri); #should be /media
$filename = basename($uri);
$md5 = md5($filename);
$hash = $md5[0] . '/' . $md5[0]. $md5[1];
$new_uri = $dirname . '/' . $hash . '/' . $filename;
Jonathan3 (talk) 21:05, 12 September 2020 (UTC)

Suggestion: Ability to filter out reverted edits in the page history

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 suggest the ability to hide reverted edits (i.e. both the edit itself and the reversion) in the page's edit history because that would make the edit history somewhat cleaner and more convenient to browse.

In addition, such an option would remove some incitement for vandals, knowing that an option in the edit history can hide all their edits. 79.241.193.154 (talk) 04:25, 13 September 2020 (UTC)

Is this what you need? Manual:RevisionDelete Jonathan3 (talk) 08:02, 13 September 2020 (UTC)
No, not revision delete, but just a search filter that hides reverted edits to make the edit history more navigable. 79.241.193.154 (talk) 18:32, 13 September 2020 (UTC)
That's what RevisionDelete does, it allows people to hide selected revisions (which are marked as deleted and show in the delete log, but are restorable/unhidable and still visible to users with enough privileges). Maybe give the page a read: Manual:RevisionDelete TiltedCerebellum (talk) 22:20, 15 September 2020 (UTC)
The discussion above is closed. Please do not modify it. No further edits should be made to this discussion.

Cache won't clear to use updated LocalSettings.php info

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.


This is a new generic Ubuntu 20 install. MediaWiki v1.34.2.
After installing yesterday, today I updated my LocalSettings.php to use a different logo:
$wgLogo = "$wgResourceBasePath/resources/assets/WorldOutreachLogoMotif-wiki135px.png";
The updated logo would not show in my browser. (Yes, I've cleared my browser caches - multiple different browsers) Fiddling with it I've discovered things (but not a solution)...
1) The logo is accessible directly via a url: https://portal-powow.net/mediawiki/resources/assets/WorldOutreachLogoMotif-wiki135px.png
2) Deleting (aka renaming) the LocalSettings.php does cause an error in the browser (you need to setup your site).
3) Changing to an empty LocalSettings.php (with only a <?php opening statement) CAUSES NO CHANGE IN FUNCTIONALITY TO THE WEBSITE. I can still login, view, and update my wiki pages.
4) I've also tried disabling caching by adding the below entries into LocalSettings.php (whose settings appear to be ignored). It made no difference.
$wgEnableParserCache = false;
$wgParserCacheType = CACHE_NONE;
$wgCachePages = false;
5) The logo did successfully update once, about 12 hours ago. When I attempted to update it again 20 minutes later, (and for the next 11 hours) it would not.
  • I have my apache set to serve nocache headers. (I'm getting a 200 status in my browser with each page load.)
  • I am not using a CDN on this site.
  • I did not choose the setup cache option during the MediaWiki install.
  • The site is private so you would need a login to see it beyond the login, but you can see the old logo at: https://portal-powow.net/mediawiki/
It appears that somehow the site setup is cached and any changes to LocalSettings.php (short of deleting the file) are being ignored. Any ideas to help me with this?
TIA. Gr.logan (talk) 04:46, 13 September 2020 (UTC)
3) Changing to an empty LocalSettings.php (with only a <?php opening statement) CAUSES NO CHANGE IN FUNCTIONALITY TO THE WEBSITE. I can still login, view, and update my wiki pages.
This could happen if you've configured PHP to read php files only once via opcache. You should check those settings. MarkAHershberger(talk) 14:46, 13 September 2020 (UTC)
This was the issue. I have a phpinfo() page the says opcache is enabled (although I haven't found the php.ini setting that did it), and creating a page to reset the opcache refreshed my settings.
<?php
   opcache_reset();
?>
Thanks so much to both of you for your responses, you are lifesavers! Gr.logan (talk) 15:26, 13 September 2020 (UTC)
Point 3 is confusing. Have you also been editing DefaultSettings.php? I can’t work out how MediaWiki would know how to connect to the database otherwise.
Anyway maybe it’s because you’re using a skin which looks elsewhere for its logo. I’ve only checked on the iPhone but the logo does appear here: https://portal-powow.net/mediawiki/index.php?useskin=vector
Also you might want to set your server not to allow traversing your directory (I think that’s the expression). If I remove the logo name from the URL I can see the rest of the files listed. Jonathan3 (talk) 08:00, 13 September 2020 (UTC)
Just realised your new logo has “wiki” on it and that it isn’t showing up on Vector either. Apologies. I wonder whether you’ve got the details for the old logo in DefaultSettings.php (where it shouldn’t be) which is overriding what you have in LocalSettings.php. Or you accidentally have two lines in LocalSettings.php defining $wgLogo. Jonathan3 (talk) 08:16, 13 September 2020 (UTC)
Thanks for your response Jonathan,
  • The DefaultSettings.php was as installed which did have the line: $wgLogo = false; in it. Commenting out that line did not make a difference.
  • I do not have duplicate $wgLogo entries in LocalSettings.php.
  • Using find (sudo find / -name LocalSettings.php) shows only a single file of that name on the system.
  • I also tried adding a setting to allow anonymous viewing of the wiki. ($wgGroupPermissions['*']['view'] = true;) in the LocalSettings.php file. This entry was also ignored, which started pointing me toward some caching issue since everything I change in the file seems to be ignored.
Since the app still works unchanged when no database configuration is in the LocalSettings.php file, that's a pretty clear indication the file is being ignored (except for it's existence).
Is there anything else built into mediawiki for caching beyond the 3 caching entries which I've attempted to change (as I noted above)? Gr.logan (talk) 14:59, 13 September 2020 (UTC)
what are your opcache settings in php.ini? MarkAHershberger(talk) 15:16, 13 September 2020 (UTC)
The discussion above is closed. Please do not modify it. No further edits should be made to this discussion.

Question about LocalSettings.php

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


Hi,
I installed a new skin and I went in to the LocalSettings.php and added the necessary code and some settings to make it work.
Later I released I added that code above the lines that said :
# End of automatically generated settings.
# Add more configuration options below.
This is probably a dumb question, but should all changes be added after those lines? Or does it not really matter?
I mean, Are the location of the changes within the LocalSettings.php file cosmetic, or is there a functional reason why their location should be below that remark?
Thanks. BubbaUsesWiki (talk) 06:42, 13 September 2020 (UTC)
I mean, Are the location of the changes within the LocalSettings.php file cosmetic, or is there a functional reason why their location should be below that remark?
Generally, it does not make a difference. MarkAHershberger(talk) 14:33, 13 September 2020 (UTC)
I’m sure I’ve ended up with stuff above and below that line. I don’t think I’ve even got it there any more. As long as one line doesn’t depend on a line that should be above it but isn’t (eg $wgScriptPath or whatever) then - just based on my experience - if it seems to work it should be fine. Jonathan3 (talk) 07:50, 13 September 2020 (UTC)
Since the file is a php program, the statements are evaluated sequentially through the file from top to bottom, and the evaluation is mostly setting php variables for other php programs to use later.
So where you place additional variables within the program doesn't matter (beyond Jonathan's caveat) during program execution. Gr.logan (talk) 18:34, 13 September 2020 (UTC)
the main reason we tell people this, is the stuff below overrides the stuff on top. Sometimes people get confused thinking the thing they added on top doesn't work, because there was already a line in the file that took precedence because it was futher down. Bawolff (talk) 19:47, 13 September 2020 (UTC)
Perfect and clear explanations. Thanks. BubbaUsesWiki (talk) 03:32, 15 September 2020 (UTC)
The discussion above is closed. Please do not modify it. No further edits should be made to this discussion.

Assist

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,may someone please help me login. Kind regards 41.113.192.109 (talk) 09:47, 13 September 2020 (UTC)

Not without way more information how and where and and what "help" means and why you cannot log in... Malyacko (talk) 11:25, 13 September 2020 (UTC)
When I try to login it says "there seems to be a problem with your login session; this action has been cancelled as a precaution against session hijacking. Please resubmit the form." 41.113.234.121 (talk) 11:44, 13 September 2020 (UTC)
When I resubmit the form it says the same thing again. 41.113.234.121 (talk) 11:46, 13 September 2020 (UTC)
Malyacko 41.113.234.121 (talk) 11:47, 13 September 2020 (UTC)
Which wiki is this happening on? 89.27.79.39 (talk) 12:21, 13 September 2020 (UTC)
All Wikipedia and Wiki Media . 41.113.234.121 (talk) 14:04, 13 September 2020 (UTC)
So I tried to login and it still does not work 41.113.234.121 .😔😔 41.113.234.121 (talk) 14:37, 13 September 2020 (UTC)
Oops I ment 89.27.79.39 it does not work 😔😔😢😢 41.113.234.121 (talk) 14:38, 13 September 2020 (UTC)
Please stop posting every half an hour and be more patient. For debugging, see Manual:How to debug/Login problems - thanks! :) Malyacko (talk) 17:18, 13 September 2020 (UTC)
Not to be rude Malyacko,for your information I am not posting every half an hour and I am trying to be more patient, but I have to login and translate my afrikaans speech that will be for marks. What would you do if you were in the same position that I am in; new to WikiMedia!!😡😡 41.113.152.15 (talk) 18:04, 13 September 2020 (UTC)
check that cookies are enabled on your browser. Try clearing your cookies restarting your browser and trying again.
If this is not a wikimedia site may be a problem with that website not you, in which case not much you can do. Bawolff (talk) 19:45, 13 September 2020 (UTC)
Wait,how do you clear my cookies if I may ask??😞😞 41.113.173.95 (talk) 06:02, 14 September 2020 (UTC)
No one can tell you that without knowing which browser you are using, you clear your own browser cookies: https://en.wikipedia.org/wiki/Wikipedia:Bypass_your_cache (or google how to clear cookies on your specific browser). And you can edit your messages using the elipses (...) button instead of making repeated replies to yourself, which is considered to be a faux pas, especially if you do it often, it can be found to be rather insistent/irritating similar to how many/most forums also have similar guidelines for posting. TiltedCerebellum (talk) 21:46, 15 September 2020 (UTC)
The discussion above is closed. Please do not modify it. No further edits should be made to this discussion.

Why IP address is blocked for editing page?

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


Why my edits in Wikipedia is blocked from its IP address?

Who is the blocking authority?

I need an answer, by the way I had made donations to Wikipedia... if Wikipedia is not free or after proper editing IP address get blocked.... why such advertisement and crying for donations?

I need a proper answer and if possible my money back 2405:204:820A:C19B:28D8:F835:1773:275C (talk) 11:18, 13 September 2020 (UTC)

Welcome to mediawiki.org which is about the MediaWiki software. This website is not about Wikipedia or the decisions or actions of some folks on other websites like Wikipedia. Please read whatever message is displayed on Wikipedia and bring this up on the Wikipedia that you refer to. Thanks. Malyacko (talk) 11:25, 13 September 2020 (UTC)
someone from that ip range was engaging in a reservation phone number scam. It is most likely not you but someone using the same range as you. See w:Wikipedia:Appealing a block for more info. Bawolff (talk) 19:43, 13 September 2020 (UTC)
The discussion above is closed. Please do not modify it. No further edits should be made to this discussion.

To support desk

Afternoon, when I try login to Media wiki it says there is something wrong with my login details. May you please help me Kind regards. 41.113.234.121 (talk) 11:38, 13 September 2020 (UTC)

Which "Media wiki"? Which URL? Malyacko (talk) 16:36, 13 September 2020 (UTC)
What do you mean when you say "which Media Wiki"???😞😞 41.113.149.174 (talk) 08:47, 14 September 2020 (UTC)
we make software that is used by many websites. Knowing which one you are talking about might help us better respond to your query. Bawolff (talk) 07:37, 15 September 2020 (UTC)
presumably means your username or password is wrong. Bawolff (talk) 19:40, 13 September 2020 (UTC)
After trying to login it says " There seems to be a problem with your login session; this action has been cancelled as a precaution against session hijacking. Please resubmit the form. " 41.113.173.95 (talk) 05:58, 14 September 2020 (UTC)
usually means something is wrong with cookies. Try clearing your browser cookies or logging in with an incognito window.
If that doesn't work its probably a server misconfiguration and you would need to contact the host of the wiki. Bawolff (talk) 07:51, 15 September 2020 (UTC)
How is my password wrong if I have never set one ??? 😦😦😞😞 41.113.149.174 (talk) 08:48, 14 September 2020 (UTC)
why do you expect to be able to login if you don't have a password? Bawolff (talk) 07:34, 15 September 2020 (UTC)
....permanently.?? 41.113.235.157 (talk) 13:51, 14 September 2020 (UTC)
Bawolff?? 41.113.149.174 (talk) 08:51, 14 September 2020 (UTC)
Please don't ping people after a few minutes but be way more patient.
Which website (full URL) is this about?
How can you try to "log in" if you have never set a password at all? Please provide a clear list of steps to reproduce. Malyacko (talk) 10:40, 14 September 2020 (UTC)
What do you mean when you say "ping" ??
If you don't have something nice to say,please keep it to yourself.
  1. JUST SAYING 🙄🙄 41.113.235.157 (talk) 13:53, 14 September 2020 (UTC)
to ping someone means to say their name expecting a response. I think the term comes from older software like IRC, which would cause the person's computer whose name you type to beep when you write their name.
While i personally don't care that much, its widely considered rude to demand responses before giving people a reasonable time (minimum 48 hours) to respond (or for that matter demand specific people to respond, since nobody is under an obligation to help you. People who helped you in the past may have other things to do, be busy, etc). Being polite while asking questions makes it more likely people will respond Bawolff (talk) 07:47, 15 September 2020 (UTC)

Disabling SELinux

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.


Installed bluespice enabling visual editor and is having issues saving articles with error "(curl error: 7) Couldn't connect to server"

Hosting admin is saying that SElinux should be disabled. but needs confirmation. Ay suggestions? Lumengl (talk) 11:48, 13 September 2020 (UTC)

This is a question that @Osnard can probably help with. Pinging him so he can see this and answer here. MarkAHershberger(talk) 14:30, 13 September 2020 (UTC)
SELinux is one possible thing that can cause this sort of error (among other things, like firewalls, parsoid being down, parsoid not listening on right port, etc).
SELinux keeps a log of everything blocked you can check. Or you can disable it and see whether or not it fixes the issue. Bawolff (talk) 19:39, 13 September 2020 (UTC)
It would be good to see if your hosting admin can tell you exactly which selinux policies are keeping VE from working. If you have root, you can diagnose the problem yourself, as well. MarkAHershberger(talk) 19:44, 13 September 2020 (UTC)
i installed setroubleshoot-server and tried to edit/create a page to trigger the error. Then checked on the logs.
The logs returned:
100% done
found 0 alerts in /var/log/audit/audit.log
could there be any other way to check what could be causing? Lumengl (talk) 05:30, 14 September 2020 (UTC)
I would say that the problem is probably not SELinux, then. MarkAHershberger(talk) 13:11, 14 September 2020 (UTC)
You say "Installed bluespice enabling visual editor". Did you also install Parsoid as described here: https://en.wiki.bluespice.com/wiki/Setup:Installation_Guide/System_Preparation/Linux/Parsoid Osnard (talk) 06:59, 14 September 2020 (UTC)
yes lines in config.yaml is:
worker_heartbeat_timeout: 300000
logging:
   level: info
services:
  - module: lib/index.js
   entrypoint: apiServiceWorker
   conf:
       localsettings: ./localsettings.js
and locasetting.js is:
/*
* This is an example configuration for a BlueSpiceWikiFarm setup
* In this case 'httpd' is used as wiki webserver machine name as it is in our
* docker environment.
*/
'use strict';
exports.setup = function(parsoidConfig) {
       parsoidConfig.dynamicConfig = function(domain) {
               var baseUrl = Buffer.from( domain, 'base64').toString();
               parsoidConfig.setMwApi({
                       uri: baseUrl + '/api.php',
                       domain: domain,
                       strictSSL: false
               });
       }
}; Lumengl (talk) 13:57, 14 September 2020 (UTC)
Does the Parsoid-Log contain any hints? Is is running properly? Can you see any attempts of the wiki to contact Parsoid?
Please run curl http://127.0.0.1:8000 on the webservers command line. This is the URL that is configured in BlueSpice by default. It should return something like
...<h3>Welcome to the <a href="https://www.mediawiki.org/wiki/Parsoid">Parsoid</a> web service.</h3>
Do you have any special permission or authentication setup? Maybe LDAP/Kerberos? Osnard (talk) 15:47, 14 September 2020 (UTC)
I reinstalled node, python, parsoid following the instructions in https://en.wiki.bluespice.com/wiki/Setup:Installation_Guide/System_Preparation/Linux/Parsoid
somehow its now working fine. Lumengl (talk) 02:57, 16 September 2020 (UTC)
The discussion above is closed. Please do not modify it. No further edits should be made to this discussion.

Why MediaWiki source code is so different from Wikipedia WikiCode and Where can I learn about MediaWiki codes?

Today I translated a few Mediawiki pages and I found a lot of codes containing Dollar sign $ were coming. After I was publishing translations, these dollar signs were converted into some hyperlinks. Also the pages contain a lot of codes containing angular brackets, exclamation marks, underscores etc.

My questions are:

1. What codes are they? They does not seem to be conventional Wikicodes. Is there a name for them?
2. Is there a documentation about these codes? I have searched the https://www.mediawiki.org/wiki/Help:Formatting page, but it didn't mention these codes.
3. Where can I learn about these special codes? RIT RAJARSHI (talk) 21:04, 13 September 2020 (UTC)

It comes from the translate extension. https://www.mediawiki.org/wiki/Help:Extension:Translate/Page_translation_example has some information, although doesnt cover that specific part.
Basically people can put things like <tvar|foo>some text</> if they want to embed something non translatable, and then translators see it as $foo, which later gets replaced by some text Bawolff (talk) 21:48, 13 September 2020 (UTC)
Answers much. But What is the role of Dollar sign? The dollar sign disappears ande it creates a hyperlink. What commands are written besides dollar sign? is there a documentation for that? RIT RAJARSHI (talk) 21:52, 13 September 2020 (UTC)
https://www.mediawiki.org/wiki/Help:Extension:Translate/Page_translation_administration#Markup_examples
consider an example:
The page https://www.mediawiki.org/w/index.php?title=Project:Support_desk/Header&action=edit has on it some <tvar|1> which turn into $1 when translating Bawolff (talk) 23:50, 13 September 2020 (UTC)
Yes when I activate the translation such as https://www.mediawiki.org/w/index.php?title=Special:Translate&group=page-Project%3ASupport+desk%2FHeader&language=bn&action=page&filter= it shows some dollar signs. RIT RAJARSHI (talk) 11:40, 14 September 2020 (UTC)
@Bawolff Some of the dollar sign seems to be coming from $WG (https://www.mediawiki.org/wiki/Template:Wg) although I am confused about how and when to use this command. Does this code work in Wikipedia Wikicode too? RIT RAJARSHI (talk) 07:24, 25 September 2020 (UTC)
template:wg is just a normal mediawiki template, unrelated to the extension:Translate stuff. $ has special meaning in php, so some docs literally discuss things starting with a literal $ that has no special meaning in wikitext. Bawolff (talk) 07:41, 25 September 2020 (UTC)
Ok thank you. for me too it seemed Wilktext at MediaWiki contains some code common to PHP and Unix. RIT RAJARSHI (talk) 13:09, 25 September 2020 (UTC)
there's no connection between the wikisyntax and php (other than both really like using $, which i think originally comes from BASIC). This wiki is about documenting mediawiki so sometimes it will include examples of mediawiki's php code to demonstrate a point, but that is totally separate from the wiki syntax Bawolff (talk) 08:17, 26 September 2020 (UTC)

How to enable cross-origin requests between interwikis on the same server?

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


I have fairly successfully enabled media sharing between interwikis on the same server, each interwiki has it's own third-level (actually a fourth-level in this case!) which identifies the language (en.mywiki.mydomain.com, it.mywiki.mydomain.com, etc.). I only need to upload a file once and then I can insert it into a page on any of the language wikis and it displays correctly.

However, when I click on the image to see details about it, the image preview flashes for a split second and then disappears with this message (localized according to the user language on the current wiki):

Sorry, the file cannot be displayed

There seems to be a technical issue. You can [[retry]] if it persists. Error: could not load image from https://en.mywiki.mydomain.com/w/images/0/01/currentimage.png

In my Chrome Developer console I see:

Access to XMLHttpRequest at 'https://en.mywiki.mydomain.com/w/images/0/01/currentimage.png' from origin 'https://it.mywiki.mydomain.com' has been blocked by CORS policy: No 'Access-Control-Allow-Origin' header is present on the requested resource.

and

GET https://en.mywiki.mydomain.com/w/images/0/01/currentimage.png net::ERR_FAILED

with this stack trace:

PL.record	@	load.php?lang=en&modor&version=1m2mh:17
Image.get	@	load.php?lang=en&modor&version=1m2mh:41
(anonymous)	@	load.php?lang=en&modr&version=1m2mh:117
mightThrow	@	load.php?lang=en&modor&version=1v2ji:91
process	@	load.php?lang=en&modor&version=1v2ji:92
setTimeout (async)		
(anonymous)	@	load.php?lang=en&modor&version=1v2ji:92
fire	@	load.php?lang=en&modor&version=1v2ji:88
fireWith	@	load.php?lang=en&modor&version=1v2ji:90
fire	@	load.php?lang=en&modor&version=1v2ji:90
fire	@	load.php?lang=en&modor&version=1v2ji:88
fireWith	@	load.php?lang=en&modor&version=1v2ji:90
mightThrow	@	load.php?lang=en&modor&version=1v2ji:92
process	@	load.php?lang=en&modor&version=1v2ji:92
(anonymous)	@	load.php?lang=en&modor&version=1v2ji:92
mightThrow	@	load.php?lang=en&modor&version=1v2ji:91
process	@	load.php?lang=en&modor&version=1v2ji:92
setTimeout (async)		
(anonymous)	@	load.php?lang=en&modor&version=1v2ji:92
fire	@	load.php?lang=en&modor&version=1v2ji:88
add	@	load.php?lang=en&modor&version=1v2ji:89
(anonymous)	@	load.php?lang=en&modor&version=1v2ji:93
jQuery.Deferred	@	load.php?lang=en&modr&version=1v2ji:195
then	@	load.php?lang=en&modor&version=1v2ji:92
mightThrow	@	load.php?lang=en&modor&version=1v2ji:92
process	@	load.php?lang=en&modor&version=1v2ji:92
setTimeout (async)		
(anonymous)	@	load.php?lang=en&modor&version=1v2ji:92
fire	@	load.php?lang=en&modor&version=1v2ji:88
fireWith	@	load.php?lang=en&modor&version=1v2ji:90
fire	@	load.php?lang=en&modor&version=1v2ji:90
fire	@	load.php?lang=en&modor&version=1v2ji:88
fireWith	@	load.php?lang=en&modor&version=1v2ji:90
mightThrow	@	load.php?lang=en&modor&version=1v2ji:92
process	@	load.php?lang=en&modor&version=1v2ji:92
(anonymous)	@	load.php?lang=en&modor&version=1v2ji:92
mightThrow	@	load.php?lang=en&modor&version=1v2ji:91
process	@	load.php?lang=en&modor&version=1v2ji:92
setTimeout (async)		
(anonymous)	@	load.php?lang=en&modor&version=1v2ji:92
fire	@	load.php?lang=en&modor&version=1v2ji:88
add	@	load.php?lang=en&modor&version=1v2ji:89
(anonymous)	@	load.php?lang=en&modor&version=1v2ji:93
jQuery.Deferred	@	load.php?lang=en&modr&version=1v2ji:195
then	@	load.php?lang=en&modor&version=1v2ji:92
mightThrow	@	load.php?lang=en&modor&version=1v2ji:92
process	@	load.php?lang=en&modor&version=1v2ji:92
setTimeout (async)		
(anonymous)	@	load.php?lang=en&modor&version=1v2ji:92
fire	@	load.php?lang=en&modor&version=1v2ji:88
fireWith	@	load.php?lang=en&modor&version=1v2ji:90
fire	@	load.php?lang=en&modor&version=1v2ji:90
fire	@	load.php?lang=en&modor&version=1v2ji:88
fireWith	@	load.php?lang=en&modor&version=1v2ji:90
deferred.<computed>	@	load.php?lang=en&modor&version=1v2ji:93
(anonymous)	@	load.php?lang=en&modr&version=1v2ji:590
fire	@	load.php?lang=en&modor&version=1v2ji:88
fireWith	@	load.php?lang=en&modor&version=1v2ji:90
done	@	load.php?lang=en&modr&version=1v2ji:169
(anonymous)	@	load.php?lang=en&modr&version=1v2ji:173
load (async)		
send	@	load.php?lang=en&modr&version=1v2ji:173
ajax	@	load.php?lang=en&modr&version=1v2ji:168
jQuery.ajax	@	load.php?lang=en&modr&version=1v2ji:187
ajax	@	load.php?lang=en&modr&version=1v2ji:589
Api.ajax	@	load.php?lang=en&modor&version=1m2mh:13
get	@	load.php?lang=en&modr&version=1v2ji:588
Api.apiGetWithMaxAge	@	load.php?lang=en&modor&version=1m2mh:32
(anonymous)	@	load.php?lang=en&modor&version=1m2mh:36
Api.getCachedPromise	@	load.php?lang=en&modor&version=1m2mh:32
ThumbnailInfo.get	@	load.php?lang=en&modor&version=1m2mh:36
MMVP.fetchThumbnail	@	load.php?lang=en&modr&version=1m2mh:117
MMVP.fetchThumbnailForLightboxImage	@	load.php?lang=en&modr&version=1m2mh:116
MMVP.loadImage	@	load.php?lang=en&modr&version=1m2mh:108
MMVP.loadImageByTitle	@	load.php?lang=en&modr&version=1m2mh:111
(anonymous)	@	load.php?lang=en&modr&version=1v2ji:681
mightThrow	@	load.php?lang=en&modor&version=1v2ji:91
process	@	load.php?lang=en&modor&version=1v2ji:92
setTimeout (async)		
(anonymous)	@	load.php?lang=en&modor&version=1v2ji:92
fire	@	load.php?lang=en&modor&version=1v2ji:88
fireWith	@	load.php?lang=en&modor&version=1v2ji:90
fire	@	load.php?lang=en&modor&version=1v2ji:90
fire	@	load.php?lang=en&modor&version=1v2ji:88
fireWith	@	load.php?lang=en&modor&version=1v2ji:90
mightThrow	@	load.php?lang=en&modor&version=1v2ji:92
process	@	load.php?lang=en&modor&version=1v2ji:92
setTimeout (async)		
(anonymous)	@	load.php?lang=en&modor&version=1v2ji:92
fire	@	load.php?lang=en&modor&version=1v2ji:88
fireWith	@	load.php?lang=en&modor&version=1v2ji:90
fire	@	load.php?lang=en&modor&version=1v2ji:90
fire	@	load.php?lang=en&modor&version=1v2ji:88
fireWith	@	load.php?lang=en&modor&version=1v2ji:90
deferred.<computed>	@	load.php?lang=en&modor&version=1v2ji:93
(anonymous)	@	load.php?lang=en&modr&version=1v2ji:676
fire	@	load.php?lang=en&modor&version=1v2ji:88
fireWith	@	load.php?lang=en&modor&version=1v2ji:90
deferred.<computed>	@	load.php?lang=en&modor&version=1v2ji:93
(anonymous)	@	load.php?lang=en&modr&version=1v2ji:612
doPropagation	@	load.php?lang=en&modraw=1&skin=vector:8
requestIdleCallback (async)		
requestPropagation	@	load.php?lang=en&modraw=1&skin=vector:8
setAndPropagate	@	load.php?lang=en&modraw=1&skin=vector:8
markModuleReady	@	load.php?lang=en&modaw=1&skin=vector:13
runScript	@	load.php?lang=en&modaw=1&skin=vector:13
(anonymous)	@	load.php?lang=en&modaw=1&skin=vector:14
flushCssBuffer	@	load.php?lang=en&modraw=1&skin=vector:6
requestAnimationFrame (async)		
addEmbeddedCSS	@	load.php?lang=en&modraw=1&skin=vector:6
execute	@	load.php?lang=en&modaw=1&skin=vector:14
doPropagation	@	load.php?lang=en&modraw=1&skin=vector:7
requestIdleCallback (async)		
requestPropagation	@	load.php?lang=en&modraw=1&skin=vector:8
setAndPropagate	@	load.php?lang=en&modraw=1&skin=vector:8
markModuleReady	@	load.php?lang=en&modaw=1&skin=vector:13
runScript	@	load.php?lang=en&modaw=1&skin=vector:13
(anonymous)	@	load.php?lang=en&modaw=1&skin=vector:14
flushCssBuffer	@	load.php?lang=en&modraw=1&skin=vector:6
requestAnimationFrame (async)		
addEmbeddedCSS	@	load.php?lang=en&modraw=1&skin=vector:6
execute	@	load.php?lang=en&modaw=1&skin=vector:14
doPropagation	@	load.php?lang=en&modraw=1&skin=vector:7
requestIdleCallback (async)		
requestPropagation	@	load.php?lang=en&modraw=1&skin=vector:8
setAndPropagate	@	load.php?lang=en&modraw=1&skin=vector:8
implement	@	load.php?lang=en&modaw=1&skin=vector:20
(anonymous)	@	load.php?lang=en&modtor&version=1m2mh:1

In my LocalSettings.php (same for all wikis in this family) I have:

 $wgScriptPath = "/w";
 $wgArticlePath = "/wiki/$1";
 
 ## The URL path to static resources (images, scripts, etc.)
 $wgResourceBasePath = $wgScriptPath;
 
 #$wgCacheDirectory = "/tmp/mediawiki_".$wikiId."_cache";
 $wgUploadDirectory = "$IP/images";
 $wgUploadPath = "$wgResourceBasePath/images";
 $wgSharedUploadPath = "<nowiki>https://en.mywiki.mydomain.com/w/images</nowiki>";
 $wgSharedUploadDirectory = "$IP/images";
 $wgSharedUploadDBname = "mywiki_en";
 $wgUseSharedUploads = true;
 $wgCrossSiteAJAXdomains = [
     '*.wikipedia.org',
     '*.mywiki.mydomain.com'
 ];

Am I missing any settings? Lwangaman (talk) 23:14, 13 September 2020 (UTC)

See https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Access-Control-Allow-Origin
You need to set the:
Access-Control-Allow-Origin: *
header on images. You need to set this in your web server (apache, nginx, etc) config, not your mediawiki config. You should not do this if images are secret/private. You should set this header only on the images and not the rest of your webserver unless you are sure you know what you are doing. Bawolff (talk) 23:56, 13 September 2020 (UTC)
After a bit of fiddling around with the server settings on my Plesk panel, I was able to resolve this. I am using nginx as a reverse proxy to apache, but setting headers in the nginx configurations didn't seem to do anything. I tried this:
location /w/images/ {
    add_header Access-Control-Allow-Origin "*";
}
But the problem persisted.
The problem was resolved when I added this to the apache configuration section (both in the "http" and in the "https" section):
<FilesMatch "\.(bmp|cur|gif|ico|svgz?|tiff|jpe?g|png|webp)$">
	<IfModule mod_headers.c>
		Header set Access-Control-Allow-Origin "*"
	</IfModule>
</FilesMatch>
Lwangaman (talk) 09:41, 14 September 2020 (UTC)
The discussion above is closed. Please do not modify it. No further edits should be made to this discussion.

How to solve problem database 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.


How to solve problem database error ?


[d58e3b4929ffcbe8955d19e4] /index.php?title=%E0%B8%A0%E0%B8%B2%E0%B8%A7%E0%B8%B0%E0%B8%AA%E0%B8%A1%E0%B8%AD%E0%B8%87%E0%B9%80%E0%B8%AA%E0%B8%B7%E0%B9%88%E0%B8%AD%E0%B8%A1&action=submit Wikimedia\Rdbms\DBQueryError from line 1603 of D:\WAPP\mediawiki\includes\libs\rdbms\database\Database.php: A database query error has occurred. Did you forget to run your application's database schema updater after upgrading?

Query: SELECT cat_title FROM "category"

Function: EDConnectorRelational::searchDB

Error: 42P01 ERROR: relation "category" does not exist

LINE 1: ...earchDB index.php@TPITAPWOD01 */ cat_title FROM "category"...

^

Backtrace:

#0 D:\WAPP\mediawiki\includes\libs\rdbms\database\Database.php(1574): Wikimedia\Rdbms\Database->getQueryExceptionAndLog(string, string, string, string)

#1 D:\WAPP\mediawiki\includes\libs\rdbms\database\Database.php(1152): Wikimedia\Rdbms\Database->reportQueryError(string, string, string, string, boolean)

#2 D:\WAPP\mediawiki\includes\libs\rdbms\database\Database.php(1807): Wikimedia\Rdbms\Database->query(string, string)

#3 D:\WAPP\mediawiki\extensions\ExternalData\includes\connectors\EDConnectorRelational.php(104): Wikimedia\Rdbms\Database->select(array, array, NULL, string, array, array)

#4 D:\WAPP\mediawiki\extensions\ExternalData\includes\connectors\EDConnectorRelational.php(76): EDConnectorRelational->searchDB()

#5 D:\WAPP\mediawiki\extensions\ExternalData\includes\EDParserFunctions.php(79): EDConnectorRelational->run()

#6 D:\WAPP\mediawiki\extensions\ExternalData\includes\EDParserFunctions.php(149): EDParserFunctions::fetch(Parser, string, array)

#7 D:\WAPP\mediawiki\includes\parser\Parser.php(3816): EDParserFunctions::getDBData(Parser, string, string, string, string)

#8 D:\WAPP\mediawiki\includes\parser\Parser.php(3519): Parser->callParserFunction(PPFrame_Hash, string, array)

#9 D:\WAPP\mediawiki\includes\parser\PPFrame_Hash.php(254): Parser->braceSubstitution(array, PPFrame_Hash)

#10 D:\WAPP\mediawiki\includes\parser\Parser.php(3330): PPFrame_Hash->expand(PPNode_Hash_Tree, integer)

#11 D:\WAPP\mediawiki\includes\parser\Parser.php(1489): Parser->replaceVariables(string)

#12 D:\WAPP\mediawiki\includes\parser\Parser.php(593): Parser->internalParse(string)

#13 D:\WAPP\mediawiki\includes\content\WikitextContent.php(368): Parser->parse(string, Title, ParserOptions, boolean, boolean, NULL)

#14 D:\WAPP\mediawiki\includes\content\AbstractContent.php(555): WikitextContent->fillParserOutput(Title, NULL, ParserOptions, boolean, ParserOutput)

#15 D:\WAPP\mediawiki\includes\EditPage.php(4120): AbstractContent->getParserOutput(Title, NULL, ParserOptions)

#16 D:\WAPP\mediawiki\includes\EditPage.php(4025): EditPage->doPreviewParse(WikitextContent)

#17 D:\WAPP\mediawiki\includes\EditPage.php(2811): EditPage->getPreviewText()

#18 D:\WAPP\mediawiki\includes\EditPage.php(703): EditPage->showEditForm()

#19 D:\WAPP\mediawiki\includes\actions\EditAction.php(55): EditPage->edit()

#20 D:\WAPP\mediawiki\includes\actions\SubmitAction.php(38): EditAction->show()

#21 D:\WAPP\mediawiki\includes\MediaWiki.php(511): SubmitAction->show()

#22 D:\WAPP\mediawiki\includes\MediaWiki.php(302): MediaWiki->performAction(Article, Title)

#23 D:\WAPP\mediawiki\includes\MediaWiki.php(900): MediaWiki->performRequest()

#24 D:\WAPP\mediawiki\includes\MediaWiki.php(527): MediaWiki->main()

#25 D:\WAPP\mediawiki\index.php(44): MediaWiki->run()

#26 {main} Ss.sss16 (talk) 07:05, 14 September 2020 (UTC)

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

getting this issue script error

this error when i open some templates after import,

also Module:Documentation module installed.


Lua error in Module:Documentation at line 138: message: type error in message cfg.main-div-classes (string expected, got nil).

Backtrace:

  1. (tail call): ?
  2. [C]: in function "error"
  3. Module:Documentation:35: in function "message"
  4. Module:Documentation:138: ?
  5. (tail call): ?
  6. mw.lua:511: ?
  7. (tail call): ?
  8. [C]: in function "xpcall"
  9. MWServer.lua:99: in function "handleCall"
  10. MWServer.lua:313: in function "dispatch"
  11. MWServer.lua:52: in function "execute"
  12. mw_main.lua:7: in main chunk
  13. [C]: ?

let me know how can i go ahead.


thanks Sachinpatel393 (talk) 12:00, 14 September 2020 (UTC)

Where are you seeing the error? MarkAHershberger(talk) 13:13, 14 September 2020 (UTC)
it means something is wrong with
Module:Documentation/config (missing main-div-classes, although it does have main-div-class) Bawolff (talk) 14:37, 14 September 2020 (UTC)
https://www.dropbox.com/s/1tcehqgrgyozd4j/Screenshot%202020-09-14%20at%2010.45.51%20PM.png?dl=0
here i get this error,
in Cite book template,
but i also get same error for many other more templates. Sachinpatel393 (talk) 17:18, 14 September 2020 (UTC)
I think they are asking for a URL, so they can see the problem themselves and look at the software version, php version, mysql version as stated people should post at the top-right of this support page to include. Very tough to help anyone without this information. TiltedCerebellum (talk) 21:38, 15 September 2020 (UTC)
@Sachinpatel393 already gave the URL. Bawolff saw it, but I missed it. You can see the error on this template. MarkAHershberger(talk) 21:53, 15 September 2020 (UTC)
@Sachinpatel393 on this page you need to insert
cfg['main-div-classes'] = 'template-documentation iezoomfix'
or change
cfg['main-div-class'] = 'ts-doc-doc'
to
cfg['main-div-classes'] = 'ts-doc-doc'
MarkAHershberger(talk) 22:06, 15 September 2020 (UTC)
@TiltedCerebellum
version used:
Mediawiki : 1.34.2
mysql: Ver 15.1 Distrib 10.3.17-MariaDB, for Linux (x86_64) using readline 5.1
php: PHP 7.3.22 (cli) (built: Sep 1 2020 09:44:58) ( NTS )
OS: centos 8 hosting with nginx.
hello @MarkAHershberger
tried your above solution with one time change that one time to your given,
and one time rechange back to old then add/insert your given line.
but seems nothing changed yet.
still seems getting errors for most of templates:
here are two examples:
https://blackwiki.org/index.php?title=Template:Cite_book
https://blackwiki.org/index.php?title=Template:Cite_web
let me know if any way to fix this.
Thanks Sachinpatel393 (talk) 13:53, 18 September 2020 (UTC)
The message is different now. It is complaining about a different missing setting: view-link-display
On Wikipedia's version of Module:Documentation/config, you can see this:
-- cfg['view-link-display']
-- The text to display for "view" links.
cfg['view-link-display'] = 'view'
You should put something similar in your own config page. MarkAHershberger(talk) 14:18, 18 September 2020 (UTC)
can i remove and add again document all module or templates it will fix the error?
also let me know from where i can check the version of modules and tempaltes.
it will easy for me to debug.
thanks Sachinpatel393 (talk) 15:37, 18 September 2020 (UTC)
I don't know. I was only able to point out how to fix the problems I saw. MarkAHershberger(talk) 02:33, 19 September 2020 (UTC)
ok so for now you have not any solution for above issue true >? Sachinpatel393 (talk) 11:12, 19 September 2020 (UTC)
can i remove and add again document all module or templates it will fix the error?
I doubt just removing them and re-adding them would fix anything. What was your original source?
also let me know from where i can check the version of modules and tempaltes.
I don't know what you want me to let your know.
ok so for now you have not any solution for above issue true >?
I don't know anything else that would help you here. I asked one question, though, and maybe the answer would help me help you. MarkAHershberger(talk) 21:15, 19 September 2020 (UTC)
First thanks for your support, i think i am not not much away to fix this all errors.
well that old error is not fixed with reinstall that module again,
right now getting this two new errors:
Lua error in package.lua at line 80: module 'Module:HtmlBuilder' not found. Lua error in package.lua at line 80: module 'Module:HtmlBuilder' not found.
https://www.dropbox.com/s/i0spjy39xef6g3u/Screenshot%202020-09-20%20at%207.29.29%20PM.png?dl=0
and
Lua error in package.lua at line 80: module 'Module:Hatnote' not found.
https://www.dropbox.com/s/l0gg33zfuvhsiwg/Screenshot%202020-09-20%20at%207.30.28%20PM.png?dl=0
let me know if you know how to fix this.
thanks. Sachinpatel393 (talk) 14:01, 20 September 2020 (UTC)
Whenever you see "module 'Module:NAME' not found", that is a module page that is missing from your import.
Here is the Module:Hatnote page, for example. MarkAHershberger(talk) 14:01, 22 September 2020 (UTC)
true, but that module is already installed.
infect in that module also getting same error of that own module,
https://www.dropbox.com/s/p5sj3j88ycqfixs/Screenshot%202020-09-22%20at%207.32.58%20PM.png?dl=0
thanks Sachinpatel393 (talk) 14:03, 22 September 2020 (UTC)
Somehow the Module:Hatnote page on your wiki has the wrong content model. You can see this when you view the metadata about the page and compare it with the metadata for the Module:Documentation page.
The Module:Documentation page has
Page content modelScribunto
and the Module:Hatnote page has
Page content modulewikitext
You can change the content model of the page by using Special:ChangeContentModel on your wiki (documentation for the page). MarkAHershberger(talk) 14:22, 22 September 2020 (UTC)
ok great, seems that issue fixed thanks you so much.
now after export from wiki and import to my site why some module automatically changed their content model type.
becuase checked with other modules some are fine some having same issue.
any idea.
thanks Sachinpatel393 (talk) 14:46, 22 September 2020 (UTC)
Where did you get the xml dump that you imported from? Do you still have it?
There are reports about problems like this (example), but they have all been resolved. MarkAHershberger(talk) 16:53, 22 September 2020 (UTC)
ok thanks for the reply and help. Sachinpatel393 (talk) 11:28, 26 September 2020 (UTC)

Link this article on this page

https://www.mediawiki.org/wiki/Manual:What_is_MediaWiki%3F This page explains very simple way about what is Mediawiki software. RIT RAJARSHI (talk) 12:49, 14 September 2020 (UTC)

Which problem would that solve? We already have many links on this page that people don't always read. :) Malyacko (talk) 16:58, 14 September 2020 (UTC)
I said because that page carries a very good summary of what is MediaWiki. RIT RAJARSHI (talk) 19:03, 14 September 2020 (UTC)
Yes, you wrote that already, but you have not explained yet which problem this would solve on this very page. Malyacko (talk) 21:15, 14 September 2020 (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, on multiple article I have insert multiple comment on wiki page. I used this HTML tag "<!-- text commented -->".

On result search I see the text on html comments tag.

How can I hide this texts?

I use the search engine standard installation 77.244.186.194 (talk) 13:39, 14 September 2020 (UTC)

I don't think search works like that. You can try creating a task in phabricator to request this. MarkAHershberger(talk) 21:32, 15 September 2020 (UTC)
Hi MarkAHershberger, I have two different wiki installation and I have the same behaviour both.
I need install a different search engine?
Thanks 93.45.64.238 (talk) 15:40, 24 September 2020 (UTC)
You can try to use CirrusSearch, but I doubt it would behave differently. MarkAHershberger(talk) 03:59, 29 September 2020 (UTC)
Also try setting: $wgAdvancedSearchHighlighting = true;
For some reason this helps show less wikitext markdown in the results. AhmadF.Cheema (talk) 05:44, 29 September 2020 (UTC)
The discussion above is closed. Please do not modify it. No further edits should be made to this discussion.

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


Every time I try to log into NationStates Wiki I get this error message.

Uh-oh

Sorry, there's been a problem with your request.

The login page is not available in embed mode. If possible, use your browser's BACK button to return and fix this.


Nothing I do fixes it. I have tried deleting all user data tried another browser, nothing. Williamross93 (talk) 17:20, 14 September 2020 (UTC)

is this even a mediawiki website? Bawolff (talk) 19:58, 14 September 2020 (UTC)
yeah it is Williamross93 (talk) 21:23, 15 September 2020 (UTC)
Are you talking about this site: https://nationstates.fandom.com/? You should contact the fandom people for help. MarkAHershberger(talk) 21:35, 15 September 2020 (UTC)
I'll try them yes, thanks Williamross93 (talk) 12:18, 19 September 2020 (UTC)
The discussion above is closed. Please do not modify it. No further edits should be made to this discussion.

I am getting error while I importing Space page.

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


You can see errors on this page: https://naijionary.elizia.net/index.php?title=Space Dev687 (talk) 18:04, 14 September 2020 (UTC)

install extension:ParserFunctions Bawolff (talk) 19:59, 14 September 2020 (UTC)
Thanks for your help. But my problem is not solved yet. You can see the error on following page.
https://naijionary.elizia.net/index.php?title=Space Dev687 (talk) 18:26, 17 September 2020 (UTC)
I got this error
Lua error in Module:Headword at line 579: bad argument #1 to 'inNamespace' (unrecognized namespace name 'Appendix').
Please suggest me to solve this error.
you can see my page
https://naijionary.elizia.net/index.php?title=Space Dev687 (talk) 14:52, 18 September 2020 (UTC)
Please don't post multiple different questions relating to the same things, missing templates and prerequisite extensions to make items work. I see multiple errors caused by the same template, on this page https://naijionary.elizia.net/index.php?title=Space it calls Template:T
{{t| some stuff here}}
So then I go look at Template:T https://naijionary.elizia.net/index.php?title=Template:T and I see says right in that template "Missing Json Config Extension." Please look at what the items are in the page source that aren't displaying correctly, what is causing/calling them, then go to that template and its code. It'll usually tell you what's missing if you look.
If you don't understand this, then you probably need to first read the mediawiki documentationn to learn how templates work before trying to import them into MediaWiki: Help:Templates.
Clearly, you're missing the Extension:JsonConfig extension. You also don't have interwiki prefixes set the same so your Wikipedia links aren't working . Visit your site's Special:Interwiki and set the prefix to be the same as the prefix used on pages to link to wikipedia pages, then those links will work too.
Also see: Project:Support desk/Flow/2020/09#h-I_have_few_scripting_error_on_my_page._Please_help_me_to_solve_them.-2020-09-29T12:22:00.000Z TiltedCerebellum (talk) 22:48, 29 September 2020 (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.


One of the websites I found hosted on MediaWiki not only has libelous information on someone, they are also hosting their leaked nude photos (originally posted on Deviantart in accordance with that website's "tasteful nudes" mature content policy) without the subject's consent. Is this allowed under Mediawiki's Terms or Use or Privacy Policy? I can send a link in a follow up response. 172.249.176.207 (talk) 22:17, 14 September 2020 (UTC)

@Mediawatcher2212: I have deleted your post because in your own words the page included "an uncensored nude photograph of the subject in question which was reposted without their consent". As such, I didn't think it should be visible publically to spread around. As for the original question, the image wouldn't be appropriate on this website, but the underlying software can be used according to its license, which includes hosting things that users here may disagree with. I hope this answers your question DannyS712 (talk) 00:03, 15 September 2020 (UTC)
Is it not against your terms of service to use your software for malicious and illegal purposes? Mediawatcher2212 (talk) 03:35, 15 September 2020 (UTC)
we don't have a terms of service for people we are not providing services to.
There are some restrictions in the gplv2 copyright license mediawiki uses, however there are no restrictions related to purpose of use - since if the use is illegal that's already illegal. Bawolff (talk) 06:34, 15 September 2020 (UTC)
in particular, you have to complain to the host of that particular website. We have no control of websites that are hosted by other entities Bawolff (talk) 00:53, 15 September 2020 (UTC)
If I'm not mistaken, you ARE the host of that website @Bawolff Mediawatcher2212 (talk) 03:35, 15 September 2020 (UTC)
You are mistaken. We are not the host of that website, which is why we cannot do anything about it. Bawolff (talk) 06:36, 15 September 2020 (UTC)
@Mediawatcher2212 No, you're wrong. Anyone can take the MediaWiki software (see Download) and use it on their website. That is the case here. Malyacko (talk) 06:05, 15 September 2020 (UTC)
the website you linked to seems to be behind cloudflare, and have whois privacy turned on so its difficult to find the actual host.
You could try filing an abuse complaint with their CDN: https://www.cloudflare.com/abuse/
You could try contacting their DNS registrar's abuse team, but that is a bit of a long shot: https://www.enom.com/help/abusepolicy.aspx#fragment-0
Given your description, it sounds like what they are doing is illegal. You could try going to the police.
Sorry we couldn't be more help. Bawolff (talk) 07:04, 15 September 2020 (UTC)
The discussion above is closed. Please do not modify it. No further edits should be made to this discussion.

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


How to solve problem database error ?


[633ddcf8fda36b6380350be9] /index.php?title=%E0%B8%A0%E0%B8%B2%E0%B8%A7%E0%B8%B0%E0%B8%AA%E0%B8%A1%E0%B8%AD%E0%B8%87%E0%B9%80%E0%B8%AA%E0%B8%B7%E0%B9%88%E0%B8%AD%E0%B8%A1&action=submit Wikimedia\Rdbms\DBQueryError from line 1603 of D:\WAPP\mediawiki\includes\libs\rdbms\database\Database.php: A database query error has occurred. Did you forget to run your application's database schema updater after upgrading?

Query: SELECT name,age FROM "test"

Function: EDConnectorRelational::searchDB

Error: 42P01 ERROR: relation "test" does not exist

LINE 1: ...searchDB index.php@TPITAPWOD01 */ name,age FROM "test" ... Ss.sss16 (talk) 03:38, 15 September 2020 (UTC)

try running update.php. if thst doesnt work disable whatever extension EDConnectorRelstional is from. Bawolff (talk) 06:33, 15 September 2020 (UTC)
How to run update.php file ? Ss.sss16 (talk) 06:36, 15 September 2020 (UTC)
see manual:update.php and the page Upgrade Bawolff (talk) 06:42, 15 September 2020 (UTC)
This solution have a type of database involved? Ss.sss16 (talk) 06:56, 15 September 2020 (UTC)
The database is involved, but you don't need to manually do anything on the database. Just run the PHP script and it will automatically do the necessary work on the database. AhmadF.Cheema (talk) 09:25, 15 September 2020 (UTC)
I already run update.php file but it still appear same error. Ss.sss16 (talk) 10:00, 15 September 2020 (UTC)
Looks like that error might relate to Extension:External Data. Ask on the talk page for the extension and I'm sure you'll get replies. Jonathan3 (talk) 19:33, 15 September 2020 (UTC)
The discussion above is closed. Please do not modify it. No further edits should be made to this discussion.

I want to remove a photo of me on wikipedia

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


Good day. Someone loaded a photo of me without my consent. I am a South African singer that mainly sings for family crowds. This photo of me is me holding two glases of wine. Please help me remove it as I am really struggling in doing so.

The Photos name is Jakkie-Louw-683x1024.jpg

It is in my library under Jakkie Louw and I cant get it of.

Jakkie Louw 165.255.88.203 (talk) 06:37, 15 September 2020 (UTC)

my email adres is jakkie@jakkielouw.co.za 165.255.88.203 (talk) 06:38, 15 September 2020 (UTC)
i cannot find any file on wikipedia by that name. Please directly link to its url.
See also https://commons.wikimedia.org/wiki/Commons:Courtesy_deletions
Ah i see, it is https://af.wikipedia.org/wiki/Lêer:Jakkie-Louw-683x1024.jpg . Looks like a clear copyvio. Bawolff (talk) 06:42, 15 September 2020 (UTC)
You may want to bring this up in a forum on af.wikipedia.org. Malyacko (talk) 06:48, 15 September 2020 (UTC)
follow instructions at https://af.wikipedia.org/wiki/Wikipedia:Bladsyverwydering Bawolff (talk) 07:11, 15 September 2020 (UTC)
The discussion above is closed. Please do not modify it. No further edits should be made to this discussion.

Problems after fresh installation

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


I downloaded the 1.34.2 version and send it to my server through FTP. I deleted the old version i had installed. When i tried to go through the configuration processes it just showed a blank screen after i pressed "complete the installation".

Instead i copied my old LocalSettings.php file. Now i get this error:

Warning: include(/home/aktiwikiadm/aktiwiki.dk.116/vendor/composer/../liuggio/statsd-php-client/src/Liuggio/StatsdClient/Factory/StatsdDataFactory.php): failed to open stream: No such file or directory in /home/aktiwikiadm/aktiwiki.dk.116/vendor/composer/ClassLoader.php on line 444


Warning: include(): Failed opening '/home/aktiwikiadm/aktiwiki.dk.116/vendor/composer/../liuggio/statsd-php-client/src/Liuggio/StatsdClient/Factory/StatsdDataFactory.php' for inclusion (include_path='/home/aktiwikiadm/aktiwiki.dk.116/vendor/pear/console_getopt:/home/aktiwikiadm/aktiwiki.dk.116/vendor/pear/mail:/home/aktiwikiadm/aktiwiki.dk.116/vendor/pear/mail_mime:/home/aktiwikiadm/aktiwiki.dk.116/vendor/pear/net_smtp:/home/aktiwikiadm/aktiwiki.dk.116/vendor/pear/net_socket:/home/aktiwikiadm/aktiwiki.dk.116/vendor/pear/pear-core-minimal/src:/home/aktiwikiadm/aktiwiki.dk.116/vendor/pear/pear_exception:.:') in /home/aktiwikiadm/aktiwiki.dk.116/vendor/composer/ClassLoader.php on line 444


Fatal error: Class 'Liuggio\StatsdClient\Factory\StatsdDataFactory' not found in /home/aktiwikiadm/aktiwiki.dk.116/includes/libs/stats/BufferingStatsdDataFactory.php on line 35


How do i solve this error? Milomodstand (talk) 07:28, 15 September 2020 (UTC)

its an issue with 7zip. Use GNU tar (or winzip, etc) to extract the tar filr instead. Bawolff (talk) 07:32, 15 September 2020 (UTC)
The discussion above is closed. Please do not modify it. No further edits should be made to this discussion.

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


Hi, is it possible please for an admin to change the following in the {{Main page }} template

<span class="plainlinks">[https://www.mediawiki.org/wiki/Special:MyLanguage/News <span class="mw-ui-button mw-ui-constructive mw-ui-small">More news</span>]</span>

by

<span class="plainlinks">[https://www.mediawiki.org/wiki/Special:MyLanguage/MediaWiki_News <span class="mw-ui-button mw-ui-constructive mw-ui-small">More news</span>]</span>

to avoid template misdirection? Thank you very much LIMAFOX76 (talk) 12:11, 15 September 2020 (UTC)

According to the sidebar, Project:Current issues is where to discuss issues about the mediawiki.org website itself. Malyacko (talk) 12:55, 15 September 2020 (UTC)
The discussion above is closed. Please do not modify it. No further edits should be made to this discussion.

subpage for mediawiki

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


how to create a subpage for mediawiki. Can someone provide the syntax of subpage VikramSwe (talk) 16:24, 15 September 2020 (UTC)

You enter the URL of the subpage in your browser and create the subpage. Malyacko (talk) 17:00, 15 September 2020 (UTC)
can you provide some examples VikramSwe (talk) 17:04, 15 September 2020 (UTC)
See Help:Subpages. Jonathan3 (talk) 19:30, 15 September 2020 (UTC)
The discussion above is closed. Please do not modify it. No further edits should be made to this discussion.

No estou conseguindo sair do localhost em minha wiki

Pelo amor de Deus alguem pode me ajudar a colocar minha wiki no ar deixar ela online pois eu tentei e tentei varias vezes e não consigo e já tentei ate seguir as instruções mais nada de nada da certo tudo errado alguem me ajuda, programadores cade vocês Gustavo B. Matos (talk) 20:49, 15 September 2020 (UTC)

No one can help you without specific information about your issue (MW version, php version, database info, the steps you took, the errors received, where you got stuck etc.)
If you need someone to walk you through an install you can see:
Professional development and consulting TiltedCerebellum (talk) 21:26, 15 September 2020 (UTC)
Alguem ai pode me ajudar por favor é urgente Gustavo B. Matos (talk) 21:27, 15 September 2020 (UTC)
Você pode continuar pedindo ajuda, mas não receberá ajuda se não fornecer as informações necessárias para ajudá-lo. Você precisa fornecer sua versão do MediaWiki, versão php, versão do banco de dados, um esboço detalhado das etapas que você executou e onde você travou, mensagens de erro exatas recebidas etc. Se você não puder fazer isso, você deve considerar contratar alguém para fazer a instalação para você.
Pessoas que podem ser contratadas para ajudá-lo:
Professional development and consulting
You can keep asking for help, but you won't get any help if you don't provide the information necessary to help you. You need to supply your MediaWiki version, php version, database version, a detailed outline of the steps you took, and where you got stuck, exact error messages recieved etc. If you can't do that, you should consider hiring someone to do the installation for you.
People that can be hired to help you:
Professional development and consulting TiltedCerebellum (talk) 23:15, 15 September 2020 (UTC)
Versão MediaWiki: 1.34
Versão PHP: 7.2.33
Versão Base de Dados: 5.0.2
Apache/2.4.46 (Win64)
OpenSSL/1.1.1g
Toda vez que vou tentar mudar a URL da erro no LocalSettings ou ate não consigo ativar o Apache para ver se funcionou. Gustavo B. Matos (talk) 12:24, 16 September 2020 (UTC)
"a detailed outline of the steps you took, and where you got stuck, exact error messages recieved etc." TiltedCerebellum (talk) 01:49, 29 September 2020 (UTC)

Spaces/underscores in filenames

If I upload a document named Test doc 1, is there any way for a user to download it as Test doc 1 instead of Test_doc_1?

In my case I need the files I'm organizing in Mediawiki to maintain consistency with an outside file naming scheme (which for better or worse includes spaces in the filenames), so I'm just curious to know if there's any way of returning underscores back to spaces on download, or if instead I'm just stuck with underscores.

Thanks! Huwmanbeing (talk) 20:53, 15 September 2020 (UTC)

If you are willing to write an extension, you may be able to do this. Otherwise, you are kind of stuck with it. MarkAHershberger(talk) 21:50, 15 September 2020 (UTC)
is this for uploaded files or wiki pages?
For uploaded files you could probably set the content-disposition header in a .htaccess or apache config file to replace underscores with spaces Bawolff (talk) 00:27, 16 September 2020 (UTC)
It would be just for uploaded files. I appreciate your suggestion about the content-disposition header — I've never worked with it before, but it sounds like it might be just the thing for this situation so I'll read up on it. Do you know how a replacement rule like this might be set up in Apache? Huwmanbeing (talk) 09:47, 16 September 2020 (UTC)
never done it, but https://httpd.apache.org/docs/current/mod/mod_headers.html and https://httpd.apache.org/docs/current/expr.html might help. Bawolff (talk) 08:29, 26 September 2020 (UTC)

Can't login to admin account after setup

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


So i just setup a fresh MediaWiki and connected it to my old database. During the setup i created an admin account. But now i can't login using the username and password i created. What should i do? Milomodstand (talk) 21:51, 15 September 2020 (UTC)

If you connected it to your old database from a previous wiki, use the username and login from the old wiki. MarkAHershberger(talk) 22:08, 15 September 2020 (UTC)
Okay. But the problem is i don't know which user is the admin one. And i don't have the password for it anyway. Milomodstand (talk) 22:28, 15 September 2020 (UTC)
If you know a user name, you can use createAndPromote.php from the command line to make any user an administrator. MarkAHershberger(talk) 22:39, 15 September 2020 (UTC)
The discussion above is closed. Please do not modify it. No further edits should be made to this discussion.

Error in publishing in wikipedia.org/invalid CSRF token?

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.


Error loading data from server : Invalid CSRF token ?

Could you please check my account in "wikipedia.org"? I've published several changes of both article or user page (User:Nix Sunyata) - but I couldn't publish --- everytime after push button "publish" I got message : ""Sorry! We could not process your edit due to a loss of session data. Please try saving your changes again. If it still does not work, try logging out and logging back in."" And I also tried many times to log off from th.wiki or en.wiki but cannot do iy (message shown "Invalid CSRF token." ) -- The only one way to log out is from mediawiki. I can log in back into wikipedia system but cannot send 'help message' to wikipeida. So I try to share my problem in here. (-- BTW I've also checked the List of blocked users both in TH.wiki and global list, my username is not in there both.) Please check and suggest. Thank you. -~ Nix Sunyata (talk) 01:32, 16 September 2020 (UTC)

can you try clearing all your cookies? Bawolff (talk) 03:36, 16 September 2020 (UTC)
Thank you, I cleared all cookies. It looks like I can publish. However my log-in status still showing message > "Central login --You are centrally logged in as Nix Sunyata. Reload the page to apply your user settings." while I am writing this and with the sign on top toolbar "Not logged in". By the way, my local wiki Help desk asked to change the browser to use as well. I will be back if the problem return, thank you very much. Nix Sunyata (talk) 04:10, 16 September 2020 (UTC)
you can also try clearing cookies from https://login.wikimedia.org Bawolff (talk) 04:17, 16 September 2020 (UTC)
Got your message. Look OK now. Thanks. Nix Sunyata (talk) 04:27, 16 September 2020 (UTC)
The discussion above is closed. Please do not modify it. No further edits should be made to this discussion.

How to delete a userpage on mediawiki

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 delete User:Sportzpikachu/test1 but I don't know how to do that on mediawiki.

On Wikipedia I can just put {{Db-u1}} but that doesn't seem to work on this wiki Sportzpikachu (talk) 09:04, 16 September 2020 (UTC)

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

Two steps log out

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.


Now that we have migrated from MW 1.27.1 to version MW 1.27.7 we need to perform two steps to log out. After clicking "log off" you get a page with message "If you wish to log out please continue to the log out page." and a link containing a token. I think it has something to do with https://phabricator.wikimedia.org/T25227. Is it possible to merge this to one step? Waanders (talk) 12:17, 16 September 2020 (UTC)

MediaWiki 1.27 is no longer supported. Please upgrade to at least MW 1.31. MarkAHershberger(talk) 14:03, 16 September 2020 (UTC)
Sure, we're working hard on it, but in the meantime we'll be using version 1.27 for a while. Waanders (talk) 06:49, 17 September 2020 (UTC)
I believe not, friend Gustavo Borges Matos (talk) 14:27, 16 September 2020 (UTC)
The discussion above is closed. Please do not modify it. No further edits should be made to this discussion.

Block page exceptions, talk page rate limits and only allow buerocrat to disable talk pages

Hello. We have a MediaWiki instance with fewer than 100 users, so this should be managable.

I would like to set up MediaWiki in a way that administrators are able to block users, but not revoke their talk page access.

Blocked users should be rate-limited to three talk page edits per hour to prevent misuse.

Only buerocrats should be able to revoke talk page access and email access. For the latter, there is now a separate user right.

Is it possible to set up MediaWiki with a such a way with the separate rate limiting for blocked users and only allowing buerocrats to revoke talk page access?


MediaWiki recently got a partial blocks feature.

But is it possible to block a user from every page except selected pages? (the reverse of partial blocks) 46.114.105.229 (talk) 13:01, 16 September 2020 (UTC)

What is MediaWiki JS ?

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


Hello, in API:Move#Sample_code I see a "MediaWiki JS". The tab provides me with very elegant js code to use. But the page MediaWiki JS doesn't exist, there is no manual on how to actually use that js snippet, where, how, do I need nodes ? should I create a Module:User:Yug/rename ? add it to my user:Yug/common.js ? What is MediaWiki JS ? Is there a manual to point me to ? Yug (talk) 13:06, 16 September 2020 (UTC)

If you have admin on a wiki, you can put them in MediaWiki:Common.js. Otherwise, you need to use the personal scripts pages. MarkAHershberger(talk) 14:01, 16 September 2020 (UTC)
If the community have some knowledge or pointers, it could be wise to write a minimalist content in MediaWiki JS. Yug (talk) 14:14, 16 September 2020 (UTC)
There was no link to that page. Anyone searching for JavaScript would find that page which has a link to the Gadget kitchen which probably has what you want. MarkAHershberger(talk) 14:44, 16 September 2020 (UTC)
Since the sections are named "MediaWiki JS" it would be more intuitive if MediaWiki JS exists and point to relevant resources. I will edit in this way but I have really basic understanding of this subject. Will do my best. Yug (talk) 14:50, 16 September 2020 (UTC)
@MarkAHershberger, thanks for your help, I succefully edited my common.js : my script works. Thank you :) Yug (talk) 17:14, 16 September 2020 (UTC)
The discussion above is closed. Please do not modify it. No further edits should be made to this discussion.

prevent breaks in mw-category-group

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 tried a number of things, and I just can't seem to prevent a heading of a letter of the alphabet to not have anything under it. Is there a way to prevent the pages for a letter to be forced to be under the letter heading? Kwprns (talk) 13:09, 16 September 2020 (UTC)

See phab:T104541 Malyacko (talk) 15:12, 16 September 2020 (UTC)
That was just what I was looking for. Thank you. Kwprns (talk) 21:13, 16 September 2020 (UTC)
The discussion above is closed. Please do not modify it. No further edits should be made to this discussion.

how to change the logo in mediawiki

PiotrMeles (talk) 13:23, 16 September 2020 (UTC)

Manual:$wgLogo
You would want to change it in LocalSettings.php line 41. ($wgLogo = "...) Kwprns (talk) 13:37, 16 September 2020 (UTC)
Friend first you will have to get in C: \ xampp \ htdocs \ wiki \ resources \ assets Right after that you replace the wiki.png file with the image you want but do not change the name just the image Gustavo Borges Matos (talk) 14:35, 16 September 2020 (UTC)
That is the worst possible advice! Have you even read Manual:FAQ#How do I change the logo??
Besides, nothing indicates that the original poster even used xampp or even Windows.
Please refrain from adding bad advice like this. Mainframe98 talk 14:39, 16 September 2020 (UTC)
I'm just making a suggestion, everything we do is with the account at risk, you never know what the future consequences will be if you don't use them. Gustavo Borges Matos (talk) 14:48, 16 September 2020 (UTC)
if you are in the wamp it’s the same thing it will only change the page names i will send an example
Friend first you will have to enter
C: \ wamp64 or wamp32 \ www \ wiki \ resources \ assets
and ready just changed the direction Gustavo Borges Matos (talk) 14:42, 16 September 2020 (UTC)
No, this is definitely not how to do it. Malyacko (talk) 15:09, 16 September 2020 (UTC)
Did you even read my reply? Or the page I linked for that matter? You shouldn't do that because it breaks the logo when upgrading! Also, the original poster has not indicated that they use wampp or Windows, so the advice might as well be as useful as a Latin dictionary is to a burglar. Mainframe98 talk 14:44, 16 September 2020 (UTC)

I have a few questions

I'm too lazy to read the Manual:FAQ , so answer me here
#1, Is there an annual hackathon? If so, where is it held?
#2, how do you make a website hosted with MediaWiki?
#3, I can't fix an external link without doing the REcaptcha, and when my recaptcha is successful, it makes me do it all over again. 24.173.222.94 (talk) 18:39, 16 September 2020 (UTC)
For #1, there will be a number of MW developers at the SMW conference that is coming up and will be online and free this year. There is usually a day devoted to working with developers.
For #2, get a web host and follow the instructions at Installation. MarkAHershberger(talk) 21:39, 16 September 2020 (UTC)
#1, Hackathons
#2 By getting webserver space and installing MediaWiki in it.
#3 On which website? Malyacko (talk) 18:57, 16 September 2020 (UTC)

migration MediaWiki to a new server, but don't know how to change the old configuation

Hi,


The MediaWiki 1.30 was run on the Synology, and it had been migrated to 1.31 in a CentOS 8.

The MariaDB and new pages are good. However, there are 2 links don't work because the links use old /MedaiWiki directory, but the new directory is /mediawiki31. Please check the pic.


I think the information may be stored in the DB, how to change it to the correct directory?


screen shot https://www.dropbox.com/s/lpvlslbp03o7004/mediawiki_link_config.png?dl=0


thank you,


Bruce 96.45.36.254 (talk) 23:15, 16 September 2020 (UTC)

if its just sidebar links, see manual:interface/Sidebar Bawolff (talk) 00:14, 17 September 2020 (UTC)
hi Bawolff,
Thank you so much for your help.
However, I did not know the admin password, and the email is not correct.
How to reset the admin's password?
Thank you,
Bruce 96.45.36.254 (talk) 17:05, 17 September 2020 (UTC)
Use Manual:createAndPromote.phpAmmarpad (talk) 09:49, 18 September 2020 (UTC)

Downloading FileZilla

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


I am attempting to download filezilla. I'm using the installer method. the download will not start. When I get to the download filezilla from sourceforge.net page it will not download. I have clicked direct link and select a different mirror numerous times with no luck. Help! Thanks so much! RHM 98.33.196.66 (talk) 00:14, 17 September 2020 (UTC)

This is the MediaWiki support forum. Here is where to find Filezilla help. MarkAHershberger(talk) 00:57, 17 September 2020 (UTC)
The discussion above is closed. Please do not modify it. No further edits should be made to this discussion.

Updating MediaWiki due to php Update

I am attempting to update from MediaWiki 1.26 to 1.34 because dreamhost no longer supports php5.6, and we are upgrading to php7.2.

The wiki was not up, it gives an Error 500 due to the php version discrepancy.

In trying to run the php update.php file, i get the error from LoadBalancer that "Cannot access the database: Unknown error ()" even though i definitely have the $wgDBServer name and user all correct.

Thank you very much, dk 130.132.173.92 (talk) 03:55, 17 September 2020 (UTC)

Im confused, why is there a version discrepency on the website - you upgraded both mediawiki and php?
Check that commandline php has db related extensions installed. Enable php error reporting and check the php error log. Bawolff (talk) 07:18, 17 September 2020 (UTC)
php was updated automatically by the host, which kicked the mediawiki into needing to be updated.
I'll check the error logs more closely 130.132.173.92 (talk) 13:17, 17 September 2020 (UTC)

Setting up FeaturedFeeds

Hi! I can't figure out how to install FeaturedFeeds. I added the extension to the extensions folder and added wfLoadExtension( 'FeaturedFeeds' ); to the bottom of my LocalSettings.php file. What should i do now? Milomodstand (talk) 15:19, 17 September 2020 (UTC)

I have never used the extension before, but it looks like the blogpost and the notes to site admins might give you some pointers. MarkAHershberger(talk) 18:33, 17 September 2020 (UTC)

Page editing

There are some page in this wiki which are not protected. But why these page's edit option is invisible?

Thank you ↠Tanbirzx () 19:11, 17 September 2020 (UTC)

can you give an example? There could be several reasons. Bawolff (talk) 00:29, 18 September 2020 (UTC)

Close access pages, not namespace

Hello

Good time

I want to block access to a series of pages so that only certain groups can view those pages

please guide me

Thanks Sokote zaman (talk) 20:11, 17 September 2020 (UTC)

@Sokote zaman See Manual:Preventing access. Malyacko (talk) 07:05, 18 September 2020 (UTC)

We are experiencing issue with printing the foot note. The foot note just does not print when the content spans more than 1 page when printing.

Even thought we have tried the print.css with the following margin settings:

margin: 0;

margin-bottom: 0;

margin: auto;


Please advise on what we can do to get the foot note printed on every page.

Note: the foot note is just a single line of text.


Thank you! Jasonba (talk) 21:47, 17 September 2020 (UTC)

Does this Stack overflow answer help? Printed HTML per-page footnotes MarkAHershberger(talk) 01:45, 18 September 2020 (UTC)
I will give it a try and let you know.
Thanks! Jasonba (talk) 02:48, 18 September 2020 (UTC)

GE enbrighten Jasco Z-Wave Motion Switch - motion : inactive

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 just bought a new GE enbrighten Jasco Z-Wave Motion Switch, it work great until I added it to my Hubitat. I can't get Hubitat to recognized the motion, it keeps telling me that the motion is inactive. I changed all sort of the setting and can't seam to get it to work. I google and it seams that that are others out there in the same boat. Apparently GE Jasco Z-Wave Motion Switch has change the firmware from 5.38 to 5.39 and now does not work. Can anyone help me out and get this to work, please and thank you in advance.

This is a support forum for MediaWiki. You probably want SmartThings support. MarkAHershberger(talk) 01:42, 18 September 2020 (UTC)
The discussion above is closed. Please do not modify it. No further edits should be made to this discussion.

Good place to ask general questions

I have too many "general questions" about MediaWiki software (not exactly support related questions). What is a good place to ask these questions?

PS. I have tried the unofficial MediaWiki forum https://mwusers.org/ that I obtained from Communication/ but it appears frozen :( RIT RAJARSHI (talk) 08:49, 18 September 2020 (UTC)

It would be good to read Manual:FAQ entirely first. Then also look for all the resources in Project:Help. If after all that something specific is not clear please ask about it here. – Ammarpad (talk) 09:43, 18 September 2020 (UTC)
Okay thanks @Ammarpad RIT RAJARSHI (talk) 10:07, 18 September 2020 (UTC)
===1. Which operating system I need to use MediaWiki software?===
Does it work with Windows or Linux or Both? Is there any difference in Installation method in different OS?
Can I use MediaWiki itself as an Operating system?
===2. Can I tell each Wiki pages a "file"?===
Just like .DOCX file or .XML file or .HTML file, can I tell an wiki page (or its revision permalinks) a file? What extension name is used by these files?
===3. Can I use MediaWiki software for Offline applications?===
Such as Document processing software like Microsoft Office? Or for making offline Quiz or exam sheets? Or writing a Book with chapters and subchapters and inter-chapter hyperlinks etc.
===4. How the WikiCode is interpreted into Machine Language?===
How the computer knows the meaning of angular brackets, curly brackets etc commands and syntax?
===5. How the Wiki markup input is converted into a Browser-readable (HTML?) output?===
And also, which Wikimarkup input gives what Browser-readable (HTML?) outputs?
===6. What are differences between PHP and Wiki Markup?===
If they are different, then how WikiCodes are converted into PHP?
===7. Is there automated installation files?===
Such as .EXE files (Windows) or .MSI (Windows) or .APK (android) installation files that can install MediaWiki into my computer?
===8. What desktop applications/ mobile applications are available that uses MediaWiki?===
Is there any desktop applications or Mobile applications that uses MediaWiki?
I have many more questions I am not sure where I should ask them. RIT RAJARSHI (talk) 10:09, 18 September 2020 (UTC)
@RIT RAJARSHI, as you can see from @AKlapper (WMF)'s response, this is the right place to ask questions. I've moved your questions here. MarkAHershberger(talk) 13:11, 18 September 2020 (UTC)
@MarkAHershberger Thank you so so much ~~~~ RIT RAJARSHI (talk) 13:15, 18 September 2020 (UTC)
1. Which operating system I need to use MediaWiki software? Does it work with Windows or Linux or Both?
Many people run MediaWiki under Windows, but the primary target is Linux. Patches to make the system work better in Windows are accepted.
Is there any difference in Installation method in different OS?
Not really. I mean, there is Running MediaWiki on Windows, but I didn't use it this past year when I set up MediaWiki for a client on Windows.
Can I use MediaWiki itself as an Operating system?
No.
2. Can I tell each Wiki pages a "file"?
In MediaWiki, wiki pages are entries in the database, not files on disk. If you want files on disk you can use other wiki software or the git remote for MediaWiki.
3. Can I use MediaWiki software for Offline applications? Such as Document processing software like Microsoft Office? Or for making offline Quiz or exam sheets? Or writing a Book with chapters and subchapters and inter-chapter hyperlinks etc.
Sure, some people run MediaWiki on the computer as a tool to do any of these things. I mean it is possible, but if you want to write a book, other tools are better.
4. How the WikiCode is interpreted into Machine Language? How the computer knows the meaning of angular brackets, curly brackets etc commands and syntax?
5. How the Wiki markup input is converted into a Browser-readable (HTML?) output? And also, which Wikimarkup input gives what Browser-readable (HTML?) outputs?
See Parsoid and related pages.
6. What are differences between PHP and Wiki Markup? If they are different, then how WikiCodes are converted into PHP?
PHP is a computer language. Wikitext is a markup language. For an explanation of the differences, see this Stack Overflow question: Programming Language vs Markup Language vs Scripting Language
7. Is there automated installation files? Such as .EXE files (Windows) or .MSI (Windows) or .APK (android) installation files that can install MediaWiki into my computer?
There is no stand-alone installer for MediaWiki. It relies on PHP already being installed.
8. What desktop applications/ mobile applications are available that uses MediaWiki? Is there any desktop applications or Mobile applications that uses MediaWiki?
It isn't clear what you mean by "use". If you mean "work with" and not "runs on", then there are several such as the Wikimedia apps. MarkAHershberger(talk) 13:42, 18 September 2020 (UTC)
Thank you extremely @MarkAHershberger for your detailed answer. And very satisfactory.
I learnt many interesting things. RIT RAJARSHI (talk) 13:59, 18 September 2020 (UTC)
Is it possible to use MediaWiki software without knowledge of PHP? RIT RAJARSHI (talk) 13:59, 18 September 2020 (UTC)
You can use a mediawiki installation without knowing PHP. This site is running MediaWiki and you're using it right now. It is even possible to install MediaWiki without knowing PHP. But knowing PHP helps. MarkAHershberger(talk) 14:10, 18 September 2020 (UTC)
Okay thanks then I will try to install and learn the MediaWiki software. Thank you so much. RIT RAJARSHI (talk) 14:13, 18 September 2020 (UTC)
for 7 - if you are using debian or ubuntu you can do:
apt install mediawiki Bawolff (talk) 23:54, 19 September 2020 (UTC)
@Bawolff Best if possible in future to develop an automatic installer (.EXE or .MSI) for 32 bit Windows 7 RIT RAJARSHI (talk) 15:49, 20 September 2020 (UTC)
Anything is possible, but i can't imagine anyone would want to for such an obscure platform. Bawolff (talk) 20:43, 20 September 2020 (UTC)

Customize the name of the talk pages in the tab

Hello

Good time

How can I customize the name of the talk pages for each page?

I mean the talk pages next to the logo

thanks Sokote zaman (talk) 13:36, 18 September 2020 (UTC)

It isn't clear what you mean. Could you be more specific? MarkAHershberger(talk) 13:43, 18 September 2020 (UTC)
I mean change the name of the dialog to custom pages, not the namespace Sokote zaman (talk) 09:32, 19 September 2020 (UTC)
Use the uselang=qqx URL parameter to see the internal name of strings that you want to change. In case you refer to the displayed name of the tab, then this would be "nstab-skin_talk" and you could create the page "MediaWiki:Nstab-skin_talk" or such. Malyacko (talk) 13:01, 19 September 2020 (UTC)

Suggestion: Exclusion search filters

I suggest a feature for the revision history viewer that allows excluding selected tags.

I am not sure if this is already possible somehow. I looked inside Help:User contributions and some more pages, but could not find any way to exclude it. 79.249.157.65 (talk) 14:15, 18 September 2020 (UTC)

Blurry display

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


How do you set 7inch hdmi display c to work with raspberry pi 3 using Elixir nerves software. Currently the monitor is blurry and green and barely readable. I have the same issue with Rasbian os as well blurry and green. Joshua307Oxner (talk) 15:40, 18 September 2020 (UTC)

This site cannot help you with your display since we support MediaWiki. MarkAHershberger(talk) 03:00, 19 September 2020 (UTC)
The discussion above is closed. Please do not modify it. No further edits should be made to this discussion.

How do i enable darkcss skin?

How do i enable it, what file is need to be edited? Huggituaa (talk) 19:02, 18 September 2020 (UTC)

@Huggituaa What is "darkcss" skin? Please provide sufficient context and links if such a skin exists somewhere and what you have tried so far. Malyacko (talk) 12:58, 19 September 2020 (UTC)

Prevent preload of logo image

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


As described here, the logo image file(s) is/are preloaded. I prefer to insert the logo as an IMG (in my custom skin) instead of as a CSS background. Is there an "official" way to prevent preloading or could someone tell me where in the code this is done, so I can hack it :-) Thanks! Henryfunk (talk) 02:25, 19 September 2020 (UTC)

preloading should still be beneficial regardless of if the image is an img tag or a css background. Its more critical with css (due to low priority and extra RTT), but its not like its bad for img tags Bawolff (talk) 20:21, 19 September 2020 (UTC)
its caused by the mediawiki.skin resourseloader modules (and submodules), if none of those are loaded then i dont think it happens. If you need one of them i think you can subclass ResourceLoaderSkinModule.php and adjust the logo related code and use your subclass instead. Bawolff (talk) 20:35, 19 September 2020 (UTC)
Thank you very much, Bawolff. I may take a look at subclassing the resourceLoader. I have a custom extension that needs to load an XML document, so now there are two good reasons to dive into it:-) Henryfunk (talk) 23:17, 19 September 2020 (UTC)
The discussion above is closed. Please do not modify it. No further edits should be made to this discussion.

Can't Change Logo Image

I'm still constructing my wiki, and I'm currently having trouble with changing the logo image. This screenshot should show you what I mean:

I've literally tried everything, including $wgLogo and the like, but still to no success. Am I doing something wrong? If it helps, I'm using the "Refreshed" skin for my wiki. The-Psychid (talk) 04:41, 19 September 2020 (UTC)

Which exact steps have you performed? What is shown in the network tab of the developer tools of your web browser when it comes to 404 errors? Malyacko (talk) 12:57, 19 September 2020 (UTC)
Well, first, I went to the manual for changing the wiki's logo, and then to the FAQ, but to no avail. At one point, I thought I had it at one point, but the logo's "broken image" was in front of it, which was kinda distracting. I even set the logo to the recommended measurements, in pixels (135 x 135), for good measure.
I even did the "Ctrl+Shift+C" method to determine what this variable would be called, as shown in the provided screenshot.
As for the question of what's "shown in the network tab," I don't know if it helps, but I'm using Avast! Secure Browser, which I assume is kinda like Google Chrome. The-Psychid (talk) 13:37, 19 September 2020 (UTC)
Please check the network (!) tab of your developer tools for 404 errors to find out what that broken image is and where it comes from. Malyacko (talk) 14:22, 19 September 2020 (UTC)
This is what it said:
"The resource http://localhost/chronixiipedia/resources/assets/wiki.png?de8c8 was preloaded using link preload but not used within a few seconds from the window's load event. Please make sure it has an appropriate `as` value and it is preloaded intentionally." The-Psychid (talk) 14:35, 19 September 2020 (UTC)
what do you have $wgLogo set to? What url is your logo actually located at? Does the logo work in vector skin? (To determine whether your logo is set wrong or if the skin is broken)
In the second image provided, it is using \\ as the path seperator. It probably doesnt make a difference but it should be / Bawolff (talk) 20:20, 19 September 2020 (UTC)
Right now, I have the $wgLogo set to the following:
$wgLogo = $wgScriptPath . '/images/e/e0/CHRONIXII_Header.png';
And note, that it's all on the same line; I say this because I know it said something about putting a part of the code underneath something, but I couldn't quite understand it. The-Psychid (talk) 20:52, 20 September 2020 (UTC)
Does this help? Skin:Refreshed#Logo/wordmark Jonathan3 (talk) 22:36, 21 September 2020 (UTC)
It did help...kind of. I mean, it did work, but I'm wondering if there'd be a way I could have it where it could look "bigger" and "less smooshed," like how it was done on BioSector01. The-Psychid (talk) 17:02, 22 September 2020 (UTC)

Wiki setting

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.


This is how I set up my wiki https://ganipediya.xyz/images/3/32/Screenshot_20200919_125821.jpg

And the menus want to do this https://ganipediya.xyz/images/4/44/IMG_20200919_125857.JPG 103.25.250.253 (talk) 07:03, 19 September 2020 (UTC)

No, that is not how you set up "your wiki", because the URL in your screenshot shows that you are on wikimedia.org and not on your wiki. Apart from that, what is your question? Malyacko (talk) 12:56, 19 September 2020 (UTC)
I want to know how to set it up 103.25.249.225 (talk) 13:38, 19 September 2020 (UTC)
Not sure what "it" is. Maybe you mean Extension:MobileFrontend? Malyacko (talk) 14:21, 19 September 2020 (UTC)
I want my wiki to look the same as the screenshot I provided,Tell me how I can do this 103.25.248.247 (talk) 14:50, 19 September 2020 (UTC)
Did you read and check my previous comment at all? Malyacko (talk) 07:33, 20 September 2020 (UTC)
The discussion above is closed. Please do not modify it. No further edits should be made to this discussion.

Trouble signing 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.


Can’t log in 2001:5B0:4AC5:7108:8892:DD80:206E:B1A5 (talk) 23:37, 19 September 2020 (UTC)

Nobody knows which website that's about or why you cannot log in. Please provide sufficient information, such as steps to reproduce, URLs, error messages, software version, browser and browser version, etc. Malyacko (talk) 07:32, 20 September 2020 (UTC)
The discussion above is closed. Please do not modify it. No further edits should be made to this discussion.

"Template:Template other" when including a template on a page

Hello, I'm fairly new to mediawiki. I have imported the infobox module from Wikipedia and have created a template for and info box. However when I include it in a page I then have 2 links appear on the page, one "Template:Template other" and the other is the category that I've added to the template. Is there anyway to stop this from happening? Rj170590 (talk) 23:49, 19 September 2020 (UTC)

Please provide a direct link to the "template for and info box" or clarify what this means. How do you "then have 2 links appear on the page"? Also https://covidsafetravel.org/wiki/Template:Template_other doesn't existing (the page hasn't been created) so no idea what this has to do with anything. You question is extremely unclear, so no one can help you. Please rewrite your question to be more clear, with links to each item you mention, as well as a link to the page where the undesired behaviour is happening, otherwise no one can see, let along begin to understand what it is that you're asking for help about. TiltedCerebellum (talk) 22:38, 29 September 2020 (UTC)

newbie question. How to make a Mac program

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. This may seem odd to some but I cannot find a way to write a simple program for my Mac. If I say program I mean a file which I double click and it runs (without a console or Terminal). Can anyone tell me how to write such a program, please? Extremely simple. Just and empty window. I just cant figure it out. Thank you 71.211.21.186 (talk) 01:02, 20 September 2020 (UTC)

Welcome to the MediaWiki support desk. Please explain how your question is related to the MediaWiki software. Malyacko (talk) 07:32, 20 September 2020 (UTC)
I am sorry. I thought this was for Codeblocks. thank you 71.211.51.210 (talk) 05:11, 21 September 2020 (UTC)
The discussion above is closed. Please do not modify it. No further edits should be made to this discussion.

How to GET a List of Articles by Category and Location?

Assuming I would like to get a list of 5 articles that are belonging to the "Cathedrals in Paris" category AND are nearby my location (Lat=48.8,Lon=2.3).

Is there a way to achieve both at the same GET?

If not, what is considered the best practice for achieving this goal? I know I can use the geosearch (or the categorymembers) generator, but then what? loop through each article?

Thanks. 2A02:ED0:3324:C200:3418:10ED:2A04:A611 (talk) 11:35, 20 September 2020 (UTC)

if its a small category i would use categorymembers as a generator and loop through.
For more generally use wikidata query service - https://query.wikidata.org . The syntax is a bit confusing at first but to get what you want would be something like:
SELECT DISTINCT ?cathedral ?cathedralLabel ?location ?dist
WHERE { 
   # get things that are cathdrals or a specific type of cathedral
   ?cathedral wdt:P31/wdt:P279* wd:Q2977 . 
   # only cathedrals in france
   ?cathedral wdt:P17 wd:Q142.   
   SERVICE wikibase:around {  
      ?cathedral wdt:P625 ?location.
      # get distance from these gps coords 
      bd:serviceParam wikibase:center "Point(-2.3 48.2)"^^geo:wktLiteral.
      # limit to 80 km from coordinates
      bd:serviceParam wikibase:radius "80" . 
      bd:serviceParam wikibase:distance ?dist. 
    } 
    SERVICE wikibase:label { 
       bd:serviceParam wikibase:language "[AUTO_LANGUAGE],en" 
    }
  }
  # show closest first.
  ORDER BY ?dist
If you type all that into https://query.wikidata.org you should get https://w.wiki/cvk . The wikidata query service has lots of options. You can do maps and pictures and things. This uses the wikidata properties instead of the wikipedia category you mentioned. It is also possible to use the wikidata query service with wikipedia categories if you want. Bawolff (talk) 21:47, 20 September 2020 (UTC)
This was extremely helpful, thank you very much! 5.102.219.70 (talk) 13:59, 21 September 2020 (UTC)

Batch uploads

I have been running www.theislandwiki.org for ten years. Everything works much as I want it to, despite still using  Version 1.17.2; PHP 5.6.40 (apache2handler) MySQL 5.6.44-log. I may move to a new host next year and it would probably be advisable to upgrade to the latest software versions before doing so. However, I am concerned about the continuing compatibility of extensions, chiefly multi-upload, which is crucial to my work because I add up to 5,000 images a year. I have discovered that multi-upload is no longer supported and the latest version released in 2019 appears to be more complicated than the one I have been running for years. I have installed it with 1.34.2 on another wiki and it doesn't work. I am wondering whether SimpleBatchUpload is the answer to my needs if I upgrade Mediawiki. I need a routine which allows me to quickly select up to 20 (or more?) images from my folders and import them into my wiki Mikebisson (talk) 12:13, 20 September 2020 (UTC)

SimpleBatchUpload would take care of your needs. And it isn't too hard to install. MarkAHershberger(talk) 15:22, 21 September 2020 (UTC)
There's also Extension:MsUpload Ciencia Al Poder (talk) 21:52, 21 September 2020 (UTC)

Upgrade Call to undefined method Title::isCssJsSubpage() in Lockdown.php

My upgrade to 1.34 seemed to work, but when loading up the wiki, it caused a few warnings and then


Fatal error: Uncaught Error: Call to undefined method Title::isCssJsSubpage() in Lockdown.php on line 60.


I've not worked with updating before, and tried to follow all of the update steps, but I'm not sure i changed everything in LocalSettings.php that I needed to. Could this be an error with extensions? Or maybe settings? 130.132.173.92 (talk) 14:02, 20 September 2020 (UTC)

Which codebase provides a page called "Lockdown.php" and is that codebase up to date and does it support MediaWiki 1.34? Could be Extension:Lockdown? Malyacko (talk) 15:44, 20 September 2020 (UTC)
I think this is fixed if you upgade Lockdown. I'm pretty sure I fixed it, but I'm too lazy right now to look up the exact commit. MarkAHershberger(talk) 15:21, 21 September 2020 (UTC)

How to add additional tab on the page

Hello world,

We have usually two tabs on the top of the page: Article page and Discussion page. How can I add third tab when I need it? Fokebox (talk) 15:54, 20 September 2020 (UTC)

You should use SkinTemplateNavigation::Universal hook. – Ammarpad (talk) 09:43, 21 September 2020 (UTC)
Thanks. It is quite difficult solution for my wiki as I need this „third tab“ only at some pages, not at every page. Fokebox (talk) 17:53, 21 September 2020 (UTC)

How do I access an extension so that I can use it?

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.


Successfully added an extension to my site (Upload Wizard) and can see that it is installed on special:version.

How do I access the extension so that I can use it? I am new to Wikimedia. Tiredoldman7777 (talk) 22:23, 20 September 2020 (UTC)

go to the page named Special:UploadWizard on your site.
There is a full list of such pages at Special:SpecialPages Bawolff (talk) 22:44, 20 September 2020 (UTC)
thanks. worked. 104.37.22.24 (talk) 11:54, 21 September 2020 (UTC)
The discussion above is closed. Please do not modify it. No further edits should be made to this discussion.

im getting this error, how do i fix it, please?

MediaWiki internal error.

Original exception: [f2542a6a] /wiki/ MWException from line 226 of /customers/b/6/9/isaisymens.com/httpd.www/wiki/includes/Hooks.php: Detected bug in an extension! Hook ImageMap::onParserFirstCallInit has invalid call signature; Parameter 1 to ImageMap::onParserFirstCallInit() expected to be a reference, value given

Backtrace:

#0 /customers/b/6/9/isaisymens.com/httpd.www/wiki/includes/parser/Parser.php(310): Hooks::run(string, array)

#1 /customers/b/6/9/isaisymens.com/httpd.www/wiki/includes/StubObject.php(105): Parser->firstCallInit()

#2 /customers/b/6/9/isaisymens.com/httpd.www/wiki/includes/StubObject.php(129): StubObject->_call(string, array)

#3 /customers/b/6/9/isaisymens.com/httpd.www/wiki/includes/cache/MessageCache.php(1009): StubObject->__call(string, array)

#4 /customers/b/6/9/isaisymens.com/httpd.www/wiki/includes/cache/MessageCache.php(986): MessageCache->getParser()

#5 /customers/b/6/9/isaisymens.com/httpd.www/wiki/includes/Message.php(1058): MessageCache->transform(string, boolean, Language, NULL)

#6 /customers/b/6/9/isaisymens.com/httpd.www/wiki/includes/Message.php(726): Message->transformText(string)

#7 /customers/b/6/9/isaisymens.com/httpd.www/wiki/includes/Message.php(789): Message->toString()

#8 /customers/b/6/9/isaisymens.com/httpd.www/wiki/includes/User.php(4575): Message->text()

#9 /customers/b/6/9/isaisymens.com/httpd.www/wiki/includes/User.php(4615): User::getGroupPage(string)

#10 [internal function]: User::makeGroupLinkWiki(string)

#11 /customers/b/6/9/isaisymens.com/httpd.www/wiki/includes/Title.php(2410): array_map(array, array)

#12 /customers/b/6/9/isaisymens.com/httpd.www/wiki/includes/Title.php(2388): Title->missingPermissionError(string, boolean)

#13 /customers/b/6/9/isaisymens.com/httpd.www/wiki/includes/Title.php(2485): Title->checkReadPermissions(string, User, array, string, boolean)

#14 /customers/b/6/9/isaisymens.com/httpd.www/wiki/includes/Title.php(1922): Title->getUserPermissionsErrorsInternal(string, User, string)

#15 /customers/b/6/9/isaisymens.com/httpd.www/wiki/includes/MediaWiki.php(185): Title->getUserPermissionsErrors(string, User)

#16 /customers/b/6/9/isaisymens.com/httpd.www/wiki/includes/MediaWiki.php(566): MediaWiki->performRequest()

#17 /customers/b/6/9/isaisymens.com/httpd.www/wiki/includes/MediaWiki.php(414): MediaWiki->main()

#18 /customers/b/6/9/isaisymens.com/httpd.www/wiki/index.php(41): MediaWiki->run()

#19 {main}

Exception caught inside exception handler: [e230af35] /wiki/ MWException from line 226 of /customers/b/6/9/isaisymens.com/httpd.www/wiki/includes/Hooks.php: Detected bug in an extension! Hook Cite::clearState has invalid call signature; Parameter 1 to Cite::clearState() expected to be a reference, value given

Backtrace:

#0 /customers/b/6/9/isaisymens.com/httpd.www/wiki/includes/parser/Parser.php(376): Hooks::run(string, array)

#1 /customers/b/6/9/isaisymens.com/httpd.www/wiki/includes/parser/Parser.php(5025): Parser->clearState()

#2 /customers/b/6/9/isaisymens.com/httpd.www/wiki/includes/parser/Parser.php(631): Parser->startParse(Title, ParserOptions, integer, boolean)

#3 /customers/b/6/9/isaisymens.com/httpd.www/wiki/includes/parser/Parser.php(5051): Parser->preprocess(string, Title, ParserOptions)

#4 /customers/b/6/9/isaisymens.com/httpd.www/wiki/includes/cache/MessageCache.php(994): Parser->transformMsg(string, ParserOptions, Title)

#5 /customers/b/6/9/isaisymens.com/httpd.www/wiki/includes/Message.php(1058): MessageCache->transform(string, boolean, Language, Title)

#6 /customers/b/6/9/isaisymens.com/httpd.www/wiki/includes/Message.php(726): Message->transformText(string)

#7 /customers/b/6/9/isaisymens.com/httpd.www/wiki/includes/Message.php(789): Message->toString()

#8 /customers/b/6/9/isaisymens.com/httpd.www/wiki/includes/OutputPage.php(928): Message->text()

#9 /customers/b/6/9/isaisymens.com/httpd.www/wiki/includes/OutputPage.php(975): OutputPage->setHTMLTitle(Message)

#10 /customers/b/6/9/isaisymens.com/httpd.www/wiki/includes/OutputPage.php(2330): OutputPage->setPageTitle(string)

#11 /customers/b/6/9/isaisymens.com/httpd.www/wiki/includes/exception/MWException.php(195): OutputPage->prepareErrorPage(string)

#12 /customers/b/6/9/isaisymens.com/httpd.www/wiki/includes/exception/MWException.php(245): MWException->reportHTML()

#13 /customers/b/6/9/isaisymens.com/httpd.www/wiki/includes/exception/MWExceptionHandler.php(59): MWException->report()

#14 /customers/b/6/9/isaisymens.com/httpd.www/wiki/includes/exception/MWExceptionHandler.php(169): MWExceptionHandler::report(MWException)

#15 /customers/b/6/9/isaisymens.com/httpd.www/wiki/includes/MediaWiki.php(428): MWExceptionHandler::handleException(MWException)

#16 /customers/b/6/9/isaisymens.com/httpd.www/wiki/index.php(41): MediaWiki->run()

#17 {main} 2A02:A03F:8B18:9300:407F:746C:639E:29EF (talk) 05:03, 21 September 2020 (UTC)

It looks like you may have a version mismatch between the MediaWiki version and the version of the Extension:Cite. Maybe you need to update your extensions. Osnard (talk) 06:33, 21 September 2020 (UTC)

herbie hankok/george duke/keith jarret/ is dass smoth/oh legsteniker unerwuenscht?

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.


leng uitsh dislegschon/ you onderständ diss/ wänn ich nur gutural chan chönnti sie dass ich die richtig reiäfolg hann bie klawier und tschäss? 2A02:1205:5022:8EA0:12B:1A32:C2B1:802B (talk) 05:29, 21 September 2020 (UTC)

Welcome to the support desk for the MediaWiki software. Do you have a question about the MediaWiki software itself?
In case you have questions about some Wikipedia articles, please ask them on that Wikipedia website instead. (I'm guessing, because you mentioned some musicians.) Malyacko (talk) 08:47, 21 September 2020 (UTC)
The discussion above is closed. Please do not modify it. No further edits should be made to this discussion.

Getting 404 Not Found with Short URLs

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.


Server running apache2 on Ubuntu 20.04. Other software versions:

Product Version
MediaWiki 1.34.2
PHP 7.4.3 (apache2handler)
MariaDB 10.4.8-MariaDB-log
ICU 66.1
Lua 5.1.5
My VirtualHost conf file:
<VirtualHost *:80>
    ServerName slaw.uwcsea.ml
    ServerAlias www.slaw.uwcsea.ml
    ServerAdmin webmaster@localhost
    DocumentRoot /var/www/slaw.uwcsea.ml
    ErrorLog ${APACHE_LOG_DIR}/error.log
    CustomLog ${APACHE_LOG_DIR}/access.log combined

    # HTTPS autogenerated by certbot
    RewriteEngine on
    RewriteCond %{SERVER_NAME} =slaw.uwcsea.ml [OR]
    RewriteCond %{SERVER_NAME} =www.slaw.uwcsea.ml
    RewriteRule ^ https://%{SERVER_NAME}%{REQUEST_URI} [END,NE,R=permanent]

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

    RewriteCond %{DOCUMENT_ROOT}%{REQUEST_URI} !-f
    RewriteCond %{DOCUMENT_ROOT}%{REQUEST_URI} !-d
    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]

    RewriteCond %{DOCUMENT_ROOT}%{REQUEST_URI} !-f
    RewriteCond %{DOCUMENT_ROOT}%{REQUEST_URI} !-d
    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]
</VirtualHost>
And in LocalSettings.php:
## The URL base path to the directory containing the wiki;
## defaults for all runtime URL paths are based off of this.
## For more information on customizing the URLs
## (like /w/index.php/Page_title to /wiki/Page_title) please see:
## https://www.mediawiki.org/wiki/Manual:Short_URL
$wgScriptPath = "/w";
$wgScriptExtension = ".php";
$wgArticlePath = "/wiki/$1";
However, when I visit any page on my site under "wiki" (e.g. https://slaw.uwcsea.ml/wiki/Main_Page), it gives a 404 error.

The usual index.php method is working fine.

Can anybody kindly offer some help? Leranjun (talk) 06:34, 21 September 2020 (UTC)

Looking at https://slaw.uwcsea.ml/w/index.php?title=Special:Version&asdad I can see Article path is set to "/$1". This doesn't match the configuration you posted here (that otherwise looks good to me). Ciencia Al Poder (talk) 13:17, 21 September 2020 (UTC)
Oopsies, fixed that yesterday, forgot to post here.
Thanks anyway! Leranjun (talk) 00:59, 22 September 2020 (UTC)
The discussion above is closed. Please do not modify it. No further edits should be made to this discussion.

I have a problem with XAMPP

How to get my site ONLINE??? 2A00:F41:1C60:C6C8:8001:CCD0:D79C:8A6E (talk) 11:12, 21 September 2020 (UTC)

I mean how to share it on localhost? 2A00:F41:1C60:C6C8:8001:CCD0:D79C:8A6E (talk) 11:13, 21 September 2020 (UTC)
https://stackoverflow.com/questions/45193846/how-to-share-localhost Ciencia Al Poder (talk) 13:08, 21 September 2020 (UTC)

Problem in database causing endless loop and high cpu usage

Hello,

I run 2 mediawikis. Both at the same version (current stable).

One of the two has the following issue:

After around 5-10 clicks on random pages with the 11th click the CPU usage of one core goes to 100%. Some form of endless loop is happening.


Then the log spams these messages:

[DBQuery] SqlBagOStuff::deleteServerObjectsExpiringBefore [0s] 10.166.160.220: DELETE FROM `objectcache` WHERE (exptime < '20200921113853') AND keyname IN ('lza_wiki:pcache:idhash:250-0!*!*!*!*!*!*','lza_wiki:pcache:idoptions:250')

[DBQuery] SqlBagOStuff::deleteServerObjectsExpiringBefore [0s] 10.166.160.220: SELECT keyname,exptime FROM `objectcache` WHERE (exptime < '20200921113853') AND (exptime >= '2018-06-23 07:31:21') ORDER BY exptime LIMIT 100 [DBQuery] SqlBagOStuff::deleteServerObjectsExpiringBefore [0s] 10.166.160.220: DELETE FROM `objectcache` WHERE (exptime < '20200921113853') AND keyname IN ('lza_wiki:pcache:idhash:250-0!*!*!*!*!*!*','lza_wiki:pcache:idoptions:250')

[DBQuery] SqlBagOStuff::deleteServerObjectsExpiringBefore [0s] 10.166.160.220: SELECT keyname,exptime FROM `objectcache` WHERE (exptime < '20200921113853') AND (exptime >= '2018-06-23 07:31:21') ORDER BY exptime LIMIT 100 [DBQuery] SqlBagOStuff::deleteServerObjectsExpiringBefore [0s] 10.166.160.220: DELETE FROM `objectcache` WHERE (exptime < '20200921113853') AND keyname IN ('lza_wiki:pcache:idhash:250-0!*!*!*!*!*!*','lza_wiki:pcache:idoptions:250')


Now when I edit LocalSettings.php of the broken wiki to use the databse of the working one it runs fine with the other data. Therefore I conclude there must be some issue in the database causing an endless loop.


Does anyone have an idea how I can debug that? 2A02:908:695:B8E0:7887:56D1:3527:55C7 (talk) 11:47, 21 September 2020 (UTC)

Check which process is eating all that CPU: PHP or mysql?
If problem is the objectcache table, you may try to set up memcached or redis, and configure MediaWiki to use that as object cache, which will be a boost in performance, since the data is stored in memory. Ciencia Al Poder (talk) 13:06, 21 September 2020 (UTC)
It's me, thank you for your hint.
After trying for some time I could make it work again.
First I dumped the database by using the dumpBackup.php script in the maintenance folder.
Then I deleted everything and reinstalled a fresh Mediawiki. After importing the data again using ImportDump.php script it seems to work again. 2A02:908:695:B8E0:7887:56D1:3527:55C7 (talk) 14:17, 21 September 2020 (UTC)
Note that with XML dumps, you lose all private data like user accounts and preferences. Also, you'll have to import all images Ciencia Al Poder (talk) 14:24, 21 September 2020 (UTC)

Lost pages after upgrade PHP and restart

Hi all,

we have a problem with our wiki server (version 1.14.0).

We have a wordpress running on it and therefore we upgraded to php 7. (in march 2020)

Everything was running fine until we had to restart the server last week. After that the mediawiki failed the service.

The old wiki didn't work with the new PHP version, so I first set up a new server, moved the wiki there and upgraded to the latest version. But we lost many pages after the update.

After a lot of back and forth I just cloned the old server and did a php downgrade for mediawiki. There are a lot more pages again. But all pages created after the first php update (March 2020) are missing. I cannot find them in the database. What happened to these pages? 213.168.80.220 (talk) 12:24, 21 September 2020 (UTC)

MediaWiki can't be downgraded. You must use a backup from before the upgrade (and you'll lose any edits since it) or stick with the latest version and try to fix the problems. Ciencia Al Poder (talk) 13:03, 21 September 2020 (UTC)
First thank you for the response.
I never downgraded the mediawiki. I just cloned the old server and did downgrade php.
So the mediawiki wont touched. 213.168.80.220 (talk) 13:09, 21 September 2020 (UTC)
Then, there's no reason for those pages to "disappear". Pages are on the database. Just be sure your database wasn't restored from an old backup.
The page table contains metadata from each page (including page id, namespace and title). Since page id is incremental, if you sort by page id in descendant order you should see which pages were created last, and see if it makes sense to you. Ciencia Al Poder (talk) 14:06, 21 September 2020 (UTC)
Thank you again for the reply.
I have looked at the table in the database. Here the pages are definitely not in there anymore. Is it possible that the pages were only cached at that time and are gone due to the reboot of the server? So because of the wrong php version the wiki could not transfer anything into the database? 213.168.80.220 (talk) 07:25, 22 September 2020 (UTC)
no. Page contents dont get "cached" in the db, they are canonically there.
Some pages going missing after upgrade may mean referential integrity errors with comment and actor table (see cleanupUsersWithNoId.php)
A reboot shouldnt affect this. Are you sure that you didnt switch to a different copy of your db or something? Bawolff (talk) 01:41, 24 September 2020 (UTC)

Antispam settings using AbuseFilter extension

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


Hello all,

I use Extension:AbuseFilter to prevent creating empty pages by using this rule:
article_articleid==0
 &!("#redirec" in lcase(added_lines))
 & (new_size < 30)
what I see it requires also to have some description while uploading any files. Can you please help to make some exception for uploading files so that it is not necessary to provide such description? Fokebox (talk) 13:34, 21 September 2020 (UTC)
Resolved:
article_articleid==0
 &!("#redirec" in lcase(added_lines))
 & (new_size < 30)
 & action !== 'upload'
Fokebox (talk) 17:45, 21 September 2020 (UTC)
The discussion above is closed. Please do not modify it. No further edits should be made to this discussion.

Can't create an account

I keep trying to create an account, and it refuses, saying "Missing or Incomplete CAPTCHA" -- except that no CAPTCHA ever appears (tried 3 times, scrolling all the way to the bottom, and nothing there!) HELP! 2600:1700:5650:27E0:E43B:21F:6DD6:CCDE (talk) 14:18, 21 September 2020 (UTC)

On which website? Malyacko (talk) 16:20, 21 September 2020 (UTC)
are you using any adblockers? Have you tried using another browser? MarkAHershberger(talk) 17:18, 21 September 2020 (UTC)

I found out how to set external links to open in a new window in MediaWiki. How about internal links? That is, I can find the localsettings.php file to make ordinary hyperlinks open in new windows, but not one to a page in my wiki. Editeur24 (talk) 14:54, 21 September 2020 (UTC)

In most browsers, you can press the Ctrl key on your keyboard when clicking a link. Apart from that, which problem is solved by adding the "target=_blank" parameter to </a> tags, apart from annoying users that they cannot decide themselves whether to leave the current page or not? :) Malyacko (talk) 16:19, 21 September 2020 (UTC)

API:Ratelimit

Hello folks,
A WM project (lingualibre.org) closely connected to Commons via API bumped into API ratelimits. The documentation of this is really limited and dispersed. I added a specific section into API:Upload#Ratelimits, but I encourage you do create the page API:Ratelimit to properly document this dimension :

  • list of actions which can be limited
  • where to configure ratelimits
  • how to see the ratelimits

I collected some information and API link in https://lingualibre.org/wiki/LinguaLibre:User_rights as well, which can be useful for a first draft. I'am not a mediawiki developper, I don't feel legitimate enough to create and write such documentation page on the official mediawiki website. I therefor submit to confirm editors and programmers this issue to consider. Yug (talk) 16:58, 21 September 2020 (UTC)

Note, technically lingualibre.org is not a Wikimedia project (but its clearly highly related).
There is some documentation at manual:$wgRateLimits but i agree there should be more/better.
The rate limits on commons are pretty high for uploads for autoconfirmed accounts. It depends a bit on if lingualibre is using the users own account to upload (e.g. via oauth or client side) or of there is a bot account. For non autoconfirmed users there are also ip based limits i think -so if its using oauth and everything comes from lingualibre servers that might be an issue (which is not the intention of ip based limits) Bawolff (talk) 19:41, 21 September 2020 (UTC)
@Bawolff: LL is financed by Wikimedia France. So yes, not WMF but the closest it could be.
Files are uploaded via the user's account on Commons. Commons ratelimit and oath identification apply.
LinguaLibre is designed to speed up recording on client side (browser), so it's not unusual to record 800~1200 audio files, to finally review them and push them to Commons within few minutes. The 380 uploads per 72 minutes ratelimit granted to true new users (groups user and autoconfirmed at 4+ days) is problematic : in the case cited, 420 to 820 files uploads would be declined, and lost if the user close its web browser. The valuable contributors also get discouraged from contributing. Thankfully, now that we identified the issue, we go to request autopatrolled user rights on Commons in order to grant the 999 upload per sec. capability to contributors, and this process has proven fast and easy. We have our hack ! :)
I/we don't exclude requesting an increase of Commons API:Upload's ratelimit for user and autoconfirmed to 999/h, since the Commons ecosystem is evolving thanks to such external helper-apps. Yug (talk) 06:17, 22 September 2020 (UTC)
Similar sentiment about the docs has been expressed in phab:T172293#6344271 Malyacko (talk) 15:30, 23 September 2020 (UTC)
I started on a draft of that page, but there is a lot missing Bawolff (talk) 08:45, 24 September 2020 (UTC)
@Bawolff @Malyacko @anomie will you be at the Wikimedia Hackathon in Athens later this week ?
I would really like to discuss this issue. Yug (talk) 14:07, 15 May 2023 (UTC)
Yes, i'll be there. Happy to discuss in person :) Bawolff (talk) 14:25, 15 May 2023 (UTC)

Deleted data still in wiki_text and shrink Mariadb database

Hi,

I've been trying to work out why our wiki_text table is 600+Mb with only 461 pages but am past my level of expertise, help please!


I did have an over-zealous script running through editpage.php that made a ton of edits - I've deleted that page but I can still see data from it through a mysql > select *


Pages with the most revisions shows the largest having 235 revisions. That page had thousands (I think) but maybe it's hidden as it was through editpage.php, or a template?


Is there some way to get rid of this old data and shrink the database?

Problem: Database larger than expected, or is it

Assuming that I'm right and the mediawiki text table only has text in it, it seems large for what we have in it

<root:/var/lib/mysql/wiki# ls -alS | head -2
total 775M
-rw-rw---- 1 mysql mysql 664M Sep 21 21:10 wiki_text.ibd
Database changed
MariaDB [wiki]> SELECT
    ->      table_schema as `Database`,
    ->      table_name AS `Table`,
    ->      round(((data_length + index_length) / 1024 / 1024), 2) `Size in MB`
    -> FROM information_schema.TABLES
    -> ORDER BY (data_length + index_length) DESC;
+--------------------+----------------------------------------------------+------------+
| Database           | Table                                              | Size in MB |
+--------------------+----------------------------------------------------+------------+
| wiki               | wiki_text                                          |     659.55 |
| wiki               | wiki_revision                                      |       7.78 |

This seems... large

MariaDB [wiki]> select COUNT(*) from wiki_text;
+----------+
| COUNT(*) |
+----------+
|    15530 |
+----------+
1 row in set (0.06 sec)

Page Statistics

Page statistics
Content pages	461
Pages
(All pages in the wiki, including talk pages, redirects, etc.)	697
Uploaded files	512
Edit statistics
Page edits since XXXX was set up	15,577
Average edits per page	22.35

sqldump

is a fair bit smaller but still large

mysqldump wiki > wiki.sql
-rw-r--r-- 1 root root 417M Sep 21 22:04 wiki.sql
dumpBackup.php --full

is only about 41Mb

Old data

It does seem to have to data in the table that has been deleted

select COUNT(*) from wiki_text where old_text like '%Areca%';.
 +----------+
| COUNT(*) |
+----------+
|       13 |
+----------+
1 row in set (3.06 sec)

decribe wiki_text

MariaDB [wiki]> describe wiki_text;
+-----------+------------------+------+-----+---------+----------------+
| Field     | Type             | Null | Key | Default | Extra          |
+-----------+------------------+------+-----+---------+----------------+
| old_id    | int(10) unsigned | NO   | PRI | NULL    | auto_increment |
| old_text  | mediumblob       | NO   |     | NULL    |                |
| old_flags | tinyblob         | NO   |     | NULL    |                |
+-----------+------------------+------+-----+---------+----------------+
3 rows in set (0.00 sec)

Maintenance tools tried

deleteOldRevisions.php

root:/var/lib/mediawiki/maintenance# php deleteOldRevisions.php
Delete old revisions

Searching for active revisions...done.
Searching for inactive revisions...done.
3552 old revisions found.

purgeOldText.php

root:/var/lib/mediawiki/maintenance# php purgeOldText.php
Searching for active text records via contents table...done.
done.
Searching for inactive text records...done.
0 inactive items found.

deleteArchivedRevisions.php

This should be another table anyway but just in case someone comes across it as a solution

root:/var/lib/mediawiki/maintenance# php deleteArchivedRevisions.php
Found 0 revisions to delete.

Shrinking Maridb

Not convinced this is actually doing anything. It went up at one point after deleting old revisions

MariaDB [wiki]> OPTIMIZE TABLE wiki_text;
+----------------+----------+----------+-------------------------------------------------------------------+
| Table          | Op       | Msg_type | Msg_text                                                          |
+----------------+----------+----------+-------------------------------------------------------------------+
| wiki.wiki_text | optimize | note     | Table does not support optimize, doing recreate + analyze instead |
| wiki.wiki_text | optimize | status   | OK                                                                |
+----------------+----------+----------+-------------------------------------------------------------------+
2 rows in set (18.67 sec)

Beardedfool (talk) 21:59, 21 September 2020 (UTC)

so the page in question that you deleted - is it totally gone (from the maintenance script you ran) or are there still references to it in revision or achive. The text table is used by both the revision and the archive table, so if still in archive table the purge script wont delete.
> Pages with the most revisions shows the largest having 235 revisions. That page had thousands (I think) but maybe it's hidden as it was through editpage.php, or a template?
That special page wont include deleted pages stored in archive table, and i think not all namespaces. Bawolff (talk) 03:23, 22 September 2020 (UTC)
Thanks for coming back to me!
That deleted data was not in the archive table but still hanging round in the main wiki_text table, despite not showing up through the webpage in any way. I'm saying that from the archive table being small in size.
deleteArchivedRevisions.php showing nothing also confirms that it wasn't in the archive table.. I think ??
In the end I found a search term for that page and did a delete straight from mariadb. That solved it and optimize database got it all down to 40Mb!
But what can cause data to 'be deleted' but still be in the table and not show up on purgeOldtext or deleteOldRevisions.php ?
I'm happy to do some restoring and testing if it's helpful to devs.
Honestly, as is often the way, I was trying a few things (compressing old revisions etc) along this so I can't be 100% on my route to solve it all. Beardedfool (talk) 11:59, 22 September 2020 (UTC)
certain types of compression (compressOld.php) can mess with the ability of purgeOldText.php to find records (because the records become mixed).
The archive table need not be big for there to be dangling references to large parts of the text table. Bawolff (talk) 15:51, 22 September 2020 (UTC)
I was not able to create scenario so that some records deleted from the table `text' or `content`
I tried to create new page for testing with uncompressed revisions.
Then I delete it, run purgeOldText.php and run deleteArchivedRevisions.php --delete.
I tried different combinations, experiments, and I never get the number of records reduced in the table text or content. I checked the number with SQL queries (SELECT COUNT(*) FROM `text`, SELECT COUNT(*) FROM `content`).
And mentioned scripts output all the time the following
0 inactive items found.
Could you or somebody else describe the scenario as an example to demonstrate that number of records in table text and content reduced?
Thank you
UPDATE:
After investigating the source code of MediaWiki, I didn't realise how records in table `text` may be deleted.
deleteArchivedRevisions.php deletes archived records only:
https://github.com/wikimedia/mediawiki/blob/master/maintenance/deleteArchivedRevisions.php#L54
Then `text` table should be cleaned up with the following line after this:
$this->purgeRedundantText( true );
Link: https://github.com/wikimedia/mediawiki/blob/master/maintenance/deleteArchivedRevisions.php#L59
Note, this is the same if we run the file purgeOldText.php, if we want to delete records directly: https://github.com/wikimedia/mediawiki/blob/master/maintenance/purgeOldText.php#L40
But if we check the function `purgeRedundantText` here: https://github.com/wikimedia/mediawiki/blob/master/maintenance/includes/Maintenance.php#L1311 , we may see that records in the `text` table are found based on `content` table. But `content` table is not modified.
So according to the implementation `text` and `content` tables should not be modified when we just run 'deleteArchivedRevisions.php --delete'.
But according to the documentation they should be trimmed.
I missed something.
Could you please clarify what is wrong with this?
Thank you.
IMHO, it looks like the file deleteArchivedRevisions.php is outdated. Last significant update was in 2014.
But the following document which describes changes in database structure was created in 2016: Multi-Content Revisions/Content Meta-Data
FYI. I created bug here https://phabricator.wikimedia.org/T271635 Sergtk (talk) 22:31, 9 January 2021 (UTC)

Is there anyway to save unpublished edits to the Mediawiki database when on VisualEditor?

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 there is a drafts extnesion, but does that support VisualEditor? If not, are there alternatives? YousufSSyed (talk) 01:35, 22 September 2020 (UTC)

Not sure what you mean by 'drafts template' but what you're asking is not possible currently, even with the source editor. So you may have to look for extension that facilitates that. Something like Extension:Drafts. (Draft extension is unmaintained, FYI) – Ammarpad (talk) 06:10, 24 September 2020 (UTC)
I meant extension, my bad. YousufSSyed (talk) 06:55, 24 September 2020 (UTC)
The discussion above is closed. Please do not modify it. No further edits should be made to this discussion.

I got an error in my page

I got this error

Lua error in Module:Headword at line 579: bad argument #1 to 'inNamespace' (unrecognized namespace name 'Appendix').

Please suggest me to solve this error.

you can see my page Dev687 (talk) 05:55, 22 September 2020 (UTC)

You can find this error on the given link. https://naijionary.elizia.net/index.php?title=Space Dev687 (talk) 05:57, 22 September 2020 (UTC)
You've imported the "space" page from Wiktionary but not Wiktionary's namespace configuration. If you add an Appendix namespace, that error should go away. MarkAHershberger(talk) 14:33, 22 September 2020 (UTC)

Login Error

When I try to login into MediaWiki app , I get this error https://commons.wikimedia.org/wiki/File:Login_error.png

This message says there is hijacking !!!

Please advice Omda4wady (talk) 07:10, 22 September 2020 (UTC)

try clearing your cookies Bawolff (talk) 15:48, 22 September 2020 (UTC)
I also have the same problem I tried clearing my cookies but still the error occurs, please help. 41.115.55.70 (talk) 08:38, 5 December 2022 (UTC)

Internal parsing error

I'm using a dockerized Wikibase with MediaWiki 1.34. When trying to use the SPARQL2 template on a page, I got the following error:


MWException from line 2090 of /var/www/html/includes/parser/Parser.php: PCRE needs to be compiled with --enable-unicode-properties in order for MediaWiki to function


The same error occurs e.g. when using <nowiki>...<nowiki/>.


The weird thing is that I used the exact same setup for another wiki and the problem did not occur there.


PHP version is 7.3.21 with PCRE 10.32. PPaulina628 (talk) 12:41, 23 September 2020 (UTC)

It would probably help if you show the Dockerfile you're using as well :) Did you do what the error message suggests and compiled PCRE with the mentioned parameter? Florianschmidtwelzow (talk) 12:43, 23 September 2020 (UTC)
The Dockerfile I'm using is the same as in the 'wikibase-docker' github repo (https://github.com/wmde/wikibase-docker).
Not yet because I'm not sure how all of this works inside the docker container, but I will look into it.
Thanks for the quick reply! PPaulina628 (talk) 14:04, 24 September 2020 (UTC)

Suppress/Hideuser

I'm attempting to address a recently raised vulnerability with my MediaWiki instance. The 'Special:Redirect/user/#' page allows someone not logged in to simply type in a user id and find that person's name and other information added to their User page. In searching for a resolution, I found a ticket in the Phabricator platform that addresses this issue. I have added the necessary lines of code to add the 'hideuser' category to the 'suppress' group. I have enabled that option for my sysop user (me) and am now attempting to set the option for my users to have their username hidden from edits and lists. The lines I have added to my configuration are listed below:

# $wgGroupPermissions['sysop']['deletelogentry'] = true;
# $wgGroupPermissions['sysop']['deleterevision'] = true;
// To hide usernames from users and Sysops
$wgGroupPermissions['suppress']['hideuser'] = true;
// To hide revisions/log items from users and Sysops
$wgGroupPermissions['suppress']['suppressrevision'] = true;
// To view revisions/log items hidden from users and Sysops
$wgGroupPermissions['suppress']['viewsuppressed'] = true;
// For private suppression log access
$wgGroupPermissions['suppress']['suppressionlog'] = true;
// Basic rights for revision delete
$wgGroupPermissions['suppress']['deleterevision'] = true;
$wgGroupPermissions['suppress']['deletelogentry'] = true;

On the block page, I see the option for 'Hide username from edits and lists', however the check box is greyed out and unavailable.

https://cirpwiki.info/images/6/62/MW_hideuser.png

Can someone assist me in tracking down why this option is unavailable for me?

Info about my wiki:

That feature probably doesnt do what you want. It only works if the block length is indefinite.
If your wiki is not private than people can look up usernames via user ids through other means. I think you might be misunderstanding the secutity issue. Bawolff (talk) 16:10, 23 September 2020 (UTC)

Linux Account User as Wiki Log in

Hello,

We're new with Mediawiki. We're trying to create a private wiki site and we want to avoid having to create additional account.

Which extension is using the local linux account user ( /etc/passwd ) to log in as a wiki user ?


Here's our Mediawiki version :

Product Version
MediaWiki 1.34.2
PHP 7.2.24-0ubuntu0.18.04.6 (apache2handler)
MariaDB 10.1.44-MariaDB-0ubuntu0.18.04.1
ICU 60.2

Thank you ! Syplante (talk) 15:18, 23 September 2020 (UTC)

$wgGroupPermissions['*']['creareaccount'] = false; Fokebox (talk) 17:07, 23 September 2020 (UTC)
I'm not aware that such a n extension exists. I would also rather not use it and I think that there's even no (easy/standard) way of getting the information required to login simply from the passwd file, even given that your system is not using a sahdow file for passwords (which it probably does). I'm not even sure, if you can read all the required files from php without root access, and if not, running php as a root user is probably a big security issue as well.
So, instead of looking for such a way, it's probably more beneficial to look in a better way to manage your users. Probable solutions would be to have an LDAP service, which MediaWiki can integrate with, using extensions (LDAPAuthentication2). Or you could find another user management system of your choice and integrate MediaWiki using OAuth or SAML. Florianschmidtwelzow (talk) 21:05, 23 September 2020 (UTC)
you probably want to setup openLDAP using the passwd backend, and then use a ldap extension for MW. Bawolff (talk) 01:36, 24 September 2020 (UTC)
Where can I fin iformation and example of configuration of LDAPAuthentification2 ? Syplante (talk) 15:47, 25 September 2020 (UTC)
See the previous link: https://www.mediawiki.org/wiki/Extension:LDAPAuthentication2 Malyacko (talk) 16:10, 25 September 2020 (UTC)
LDAPAuthentication2 supports only php7.x ... is there a newer one that would work with the new mediawiki? 199.198.134.134 (talk) 22:51, 12 December 2024 (UTC)

Trouble with Version 1.34.2

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


Earlier tonight, I tried to install MediaWiki Version 1.34.2 in an attempt to include the recent version of the "Refreshed" skin. But when I tried to install Version 1.34.2 onto XAMPP, it crashed, and I don't know why. This issue persists even when I haven't modified the default "skins" included. I've also tried to reinstall its previous version (1.33.4, I believe), but I couldn't extract it because it's an "archive" version. The-Psychid (talk) 01:25, 24 September 2020 (UTC)

for error on image: dont use 7zip to extract mediawiki. Try using winzip or the copy of tar included in windows version of git-bash. (Hopefully this will be fixed next version of mediawiki) Bawolff (talk) 01:32, 24 September 2020 (UTC)
UPDATE 9-23-20: Turns out I was able to extract Version 1.33.4; I just had the wrong file, because it wasn't the right file size. The-Psychid (talk) 01:33, 24 September 2020 (UTC)
It worked. Guess WinZip helped! Thanks! The-Psychid (talk) 01:56, 24 September 2020 (UTC)
The discussion above is closed. Please do not modify it. No further edits should be made to this discussion.

Wiki Server

Hello together,

I am extending an existing MediaWiki and have to change something in the programming, for this I need, the files of the existing wiki. Unfortunately I do not know where they are on the server. Can someone help me how to find them? 165.225.73.78 (talk) 05:28, 24 September 2020 (UTC)

(I am assuming this is linux server) Try issuing the command:
find / -name load.php
(That might tell you where a copy of mediawiki is. It might not be the right copy)
The most common place is probably some subdirectory of /var/www/ but it can be anywhere depending on how your web server is configured. Bawolff (talk) 05:40, 24 September 2020 (UTC)

Class 'Wikimedia\Services\ServiceContainer' not found

Hi, I wanted to update to 1.35 so the Visual Editor was included (I'm setting up a new MediaWiki site so that sounded like a good thing to do) but I have no idea how it works. I managed to figure out uploading the files and the SSH to run update.php but now get this error

Fatal error: Uncaught Error: Class 'Wikimedia\Services\ServiceContainer' not found in /home/customer/www/history.telegraphpoint.com.au/public_html/includes/MediaWikiServices.php:152 Stack trace: #0 /home/customer/www/history.telegraphpoint.com.au/public_html/includes/AutoLoader.php(109): require() #1 [internal function]: AutoLoader::autoload('MediaWiki\\Media...') #2 /home/customer/www/history.telegraphpoint.com.au/public_html/includes/Setup.php(535): spl_autoload_call('MediaWiki\\Media...') #3 /home/customer/www/history.telegraphpoint.com.au/public_html/includes/WebStart.php(89): require_once('/home/customer/...') #4 /home/customer/www/history.telegraphpoint.com.au/public_html/index.php(44): require('/home/customer/...') #5 {main} thrown in /home/customer/www/history.telegraphpoint.com.au/public_html/includes/MediaWikiServices.php on line 152


I'd be happy to delete the whole thing and start again but the learning curve is steep! Is there something simple I am missing to upgrade from 1.34.2 to 1.35.3 ? TelePointHistory (talk) 07:37, 24 September 2020 (UTC)

This might mean some files in the vendor directory is missing. If you downloaded from git, you have to manually run the command composer update --no-dev in order to obtain the contents of the vendor directory. If you installed via downloading the tar file, this should already be done for you, and the tar file should include all the neccesary vendor directory files. Bawolff (talk) 08:44, 24 September 2020 (UTC)
Thanks for replying @Bawolff I downloaded it from here MediaWiki 1.35 I'm not sure which version it is but the 'vendor' folder contains several folders (christian-riesen, composer, cssjanus etc etc and htaccess, autoload, composer.json etc. )
I've googled "composer update --no-dev" but am not sure what directory I am supposed to be in to run that (is it done in SSH?)
(Edited to correct folder contents) TelePointHistory (talk) 11:35, 24 September 2020 (UTC)
I literally have no idea what I am doing, but that worked. Thank you.
For anyone else that searches in future looking to fix a mediawiki fatal error on update, I ran composer update --no-dev from within the public_html directory in WordPress from the command line with SSH. TelePointHistory (talk) 21:26, 24 September 2020 (UTC)
There isn't a 'public_html' directory, could you please clarify? Vozhan (talk) 22:17, 23 December 2020 (UTC)
you run it in ssh in whatever directory mediawiki is installed in (i.e. directory containing LocalSettings.php)
Depending on config, in certain cases you may need to run it from an extension directory, but that is pretty rare. Bawolff (talk) 02:50, 25 September 2020 (UTC)
MW 1.34.2 to MW 1.35 Heavy WP Templates. Same error with others. Executed the composer update and get the following. Can start new thread if desired. https://digitalmatrixgroup.com and I have the Debug displaying.
Extensions: Cargo, Cite, EmbedVideo, HeaderTabs, Maps, PageForms, PageImages, Page Schemas, ParserFunctions, Popups, Purge, TemplateStyles, TextExtracts --- Wikibase, Scribunto, Widgets, Gadgets.
Fatal error: Uncaught Error: Interface 'Wikimedia\Services\SalvageableService' not found in /home/iafstghq/digitalmatrixgroup.com/includes/HookContainer/HookContainer.php:44 Stack trace: #0 /home/iafstghq/digitalmatrixgroup.com/includes/AutoLoader.php(109): require() #1 [internal function]: AutoLoader::autoload('MediaWiki\\HookC...') #2 [internal function]: spl_autoload_call('MediaWiki\\HookC...') #3 /home/iafstghq/digitalmatrixgroup.com/extensions/Cargo/CargoHooks.php(27): class_exists('MediaWiki\\HookC...') #4 /home/iafstghq/digitalmatrixgroup.com/includes/registration/ExtensionRegistry.php(541): CargoHooks::registerExtension(Array) #5 /home/iafstghq/digitalmatrixgroup.com/includes/registration/ExtensionRegistry.php(232): ExtensionRegistry->exportExtractedData(Array) #6 /home/iafstghq/digitalmatrixgroup.com/includes/Setup.php(161): ExtensionRegistry->loadFromQueue() #7 /home/iafstghq/digitalmatrixgroup.com/includes/WebStart.php(89): require_once('/home/iafstghq/...') #8 /home/iafstghq/digitalmatrixgroup.com/index.php(44 in /home/iafstghq/digitalmatrixgroup.com/includes/HookContainer/HookContainer.php on line 44 Foreclosurepedia (talk) 01:15, 4 October 2020 (UTC)
Please disregard. All issues centered around not having the current composer.json file. I had copied the old one over. Thanks! Foreclosurepedia (talk) 03:13, 4 October 2020 (UTC)

How to edit localsetteings.php to disable UniversalLanguageSelector

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 miraheze.org ( wiki hosting service) , we cannot edit localsetteings.php by ftp tools . So ,Are there another way to edit this file from mediawiki platform to disable some extensions ?? Omda4wady (talk) 07:49, 24 September 2020 (UTC)

You have to contact Miraheze support Bawolff (talk) 08:40, 24 September 2020 (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 users' email addresses in user-to-user emails?

As described in the title. Is it possible to hide users' email addresses completely (not in From, not in Reply-To)? Leranjun (talk) 08:16, 24 September 2020 (UTC)

Help from anyone? Leranjun (talk) 16:32, 24 September 2020 (UTC)
What is a clear list of steps to reproduce the situation? Malyacko (talk) 16:10, 25 September 2020 (UTC)
Oh, I'm just asking if it's possible. Leranjun (talk) 13:58, 26 September 2020 (UTC)
im not aware of config to do this. Only related config im aware of is manual:$wgUserEmailUseReplyTo.
It would be possible to configure the MTA (e.g. sendmail, qmail or postfix, etc) on your server to do this as a post processing step (probably) consult your MTAs docs.
It would be possible to make a small extension to do this. See Manual:Hooks/EmailUser and Manual:Hooks/AlternateUserMailer (probably want the first hook) Bawolff (talk) 08:14, 26 September 2020 (UTC)

Questions regarding the following usergroup permissions

Hey, I've been wanting to figure out whether the following usergroup permissions are capable of functioning on their own, or whether they need a parent function in order for them to work. First to get a better understanding of what I'm asking for, I'm going to list some of the usergroup permissions that need a parent permission in order to use them. I've deliberately left out the ones that require the (edit) permission, because there's just too many permissions that rely on the (edit) permission.

  • (blockemail) = Requires (block)
  • (deletelogentry) = Requires (deleterevision)
  • (deletebatch) = Requires (delete)
  • (bigdelete) = Requires (delete)
  • (gadgets-edit) = Requires (editinterface)
  • (editsitecss) = Requires (editinterface)
  • (editsitejson) = Requires (editinterface)
  • (editsitejs) = Requires (editinterface)
  • (nuke) = Requires (delete)
  • (move-categorypages) = Requires (move)
  • (movefile) = Requires (move)
  • (move-subpages) = Requires (move)
  • (move-rootuserpages) = Requires (move)
  • (nominornewtalk) = Requires (minoredit)
  • (reupload-shared) = Requires (upload)
  • (reupload) = Requires (upload)
  • (reupload-own) = Requires (upload)
  • (undelete) = Requires (deletedhistory)
  • (upload_by_url) = Requires (upload)

Below are some permissions that I have speculated need a parent permission in order to use. However I'm not 100% sure whether they do need a parent permission to use.

  • (mass-upload) = I'm guessing the (upload) permission would be required. However I don't have access to the permission on any of the sites that I'm on.
  • (rateimage) = I'm guessing the (edit) permission would be required. However I've never actually used the associated extension before.
  • (multipageedit) = I'm guessing the (edit) permission would be required. However I've never actually used the associated extension before.
  • (editrestrictedfields) = Requires (edit) (done)
  • (nukedpl) = Requires (delete) (done)
  • (dpl_param_delete_rules) = I'm guessing the (delete) permission would be required. However I've never actually used the associated extension before.
  • (dpl_param_update_rules) = I'm guessing the (edit) permission would be required. However I've never actually used the associated extension before.
  • (collectionsaveascommunitypage) = I'm guessing the (edit) permission would be required. However I've never actually used the associated extension before.
  • (collectionsaveasuserpage) = I'm guessing the (edit) permission would be required. However I've never actually used the associated extension before.
  • (suppressrevision) = Requires (deleterevision) (done)

I really wish someone would be able to tell me whether my assumptions of the ten permissions that I've listed are correct. And even if there isn't anyone that can tell me, I really wish they can provide me some sources where I can verify whether my assumptions are correct. ― C.Syde (talk | contribs) 08:51, 24 September 2020 (UTC)

the source is going to be the extension code (and/or mediawiki core) Bawolff (talk) 02:48, 25 September 2020 (UTC)
But how to I figure this out for myself? Since I don't know where the extension codes for all these extensions are.
And I need to be absolutely sure that my research is correct. Like, I don't want to accidentally label the (editrestrictedfields) permission as not working without the (edit) permission if it turns out that it can function without the (edit) permission.
I did that with the Comments extension, only to find out later that the Comments extension did not rely on the (edit) permission. I ended up removing most of the permissions from Unregistered Users and give them to Registered Users. ― C.Syde (talk | contribs) 03:00, 25 September 2020 (UTC)
each extension has a page on this wiki. The sidebar has a link to its source. Bawolff (talk) 08:06, 26 September 2020 (UTC)
Yeah, but I'm not sure I can rely on myself to read and understand the sources. I could try but what if I can't trust myself that my understanding is adequate? ― C.Syde (talk | contribs) 04:02, 27 September 2020 (UTC)
You can rely on yourself or you can hire someone to help you, from Professional development and consulting. TiltedCerebellum (talk) 21:00, 29 September 2020 (UTC)
I don't think I can rely on myself. I've checked the page and I'm not sure any of those users remotely specialise in usergroup permissions and whether they can function on their own or require a parent permission. Also hiring users to help is free, right? ― C.Syde (talk | contribs) 00:29, 30 September 2020 (UTC)
To 'hire' someone usually means to pay them, so no, people in the professional development and consulting page generally probably don't work for free. TiltedCerebellum (talk) 01:31, 30 September 2020 (UTC)
Well then I won't be able to hire anyone. I've been looking into the repositories of the extensions related to the said usergroup permissions. But I can't find anything that remotely tells me what I'm after.
It wouldn't be too bad if I was comfortable testing these extensions. But I don't really know how to use some of them. Like Collection, NukeDPL, ImageRating, Page Forms, and DynamicPageList3.
Also I don't have access to any of the permissions related to UploadWizard and I don't have access to the (suppressrevision) permission anywhere, though I do have access to (deleterevision) and (deletelogentry) on Miraheze. ― C.Syde (talk | contribs) 05:53, 30 September 2020 (UTC)
Is this what you're looking for (dependencies listed)?
Manual:User rights#List of permissions
And for extensions that add user rights:
Category:User rights extensions
Category:Extensions which add rights TiltedCerebellum (talk) 12:37, 30 September 2020 (UTC)
I am looking for dependencies, yes. I've managed to cover most of the permissions that I've been trying to cover. Now I just have the ones that I haven't confirmed which are (mass-upload), (rateimage), (multipageedit), (dpl_param_delete_rules), (dpl_param_update_rules), (collectionsaveascommunitypage), (collectionsaveasuserpage), and (suppressrevision)
Only the last of those permissions is part of the default set. But I don't have access to the (suppressrevision) permission. It would be great if I did because then I'd be able to update the user rights page if it turns out that it needs the (deleterevision) permission to use. I've already made a few edits to that same page and will add more if it is ever convenient of me to do so.
The (collectionsaveascommunitypage) and (collectionsaveasuserpage) permissions aren't working properly as the extension that those two permissions are part of is currently unsupported.
I want to check the (dpl_param_delete_rules) and (dpl_param_update_rules) permissions firsthand as I have access to them both. However I don't know how to use either of those permissions, as my DPL knowledge is limited.
Whenever I try and access the Special:MultiPageEdit page, it throws errors. I'm not sure if it's because I'm doing something wrong, or what it is. But I'm not sure how I'm supposed to examine the functions of the (multipageedit) permission if the special page keeps throwing errors.
Whenever I access the Special:ImageRating page, there are no images to rate or categorise. I'm trying to follow through with the information contained in the image rating page, but without success.
I don't have access to the (mass-upload) permission on any of the sites that I'm active on, so I can't check if the (mass-upload) permission is dependent on any other permissions. ― C.Syde (talk | contribs) 00:27, 1 October 2020 (UTC)
Some of the items you're after may come from rights added by extensions. For example, I just typed the following into google search using quotes to do an exact phrase search: MediaWiki "mass-upload"
Which turned up the following extension:
Extension:UploadWizard (rights added by extensions are usually listen in the infobox on each extension's page under "added rights") and the mass-upload right is added by that extension.
You can do that with the rest of them and may likely turn them up that way, then read each extensions documentation for further info.
multipageedit and access to the special page you mention comes from page forms and is accessible by the user group by default (according to page forms documentation) so you need to contact Miraheze as to why that is blocked off to you. For any permissions blocked off from you, contact your host if you don't have access to LocalSettings.pho to change them. As a sysop/bureaucrat I have access to all of the permissions required for Page Forms, DPL3 etc. Rights for a Mirahaze wiki may be very different than a standalone Mediawiki's default rights. TiltedCerebellum (talk) 18:51, 1 October 2020 (UTC)
Most of Miraheze's extensions that originate from other sites are Vanilla. So I'm confident that I know what I'm doing. But is there any chance of you helping me to verify whether some of these permissions depend on parent permissions? Assuming that you can edit usergroup rights on a test wiki or something and then check whether each of these permissions rely on the (edit), (delete), or (upload) permissions.
I have access to a tool that allows me to modify usergroup permissions. However I haven't been able to check the (rateimage), (multipageedit), (collectionsaveascommunitypage), and (collectionsaveasuserpage) permissions at this time due to the issues I've mentioned. I don't really understand what I must do in order to test out the (dpl_param_delete_rules) and (dpl_param_update_rules) permissions.
(mass-upload) is not a permission that has been added on Miraheze, as the upload wizard extension hasn't been added there. And (suppressrevision) is a blacklisted permission so I can't grant myself that permission in order to check if it needs the (deleterevision) permission to use. I could see if a Steward might be willing to test it on themselves, but I'd have to be prepared that they might not have the time and patience to do it. ― C.Syde (talk | contribs) 23:17, 1 October 2020 (UTC)
you could download your own copy of mediawiki (if you only need to access it yourself, you can run it just on your laptop. On windows see XAMPP. On mac im sure there is some equivalent although i usually just use homebrew to install php, and then use php -S as the webserver) Bawolff (talk) 05:53, 23 October 2020 (UTC)
How can you do that? It would be wonderful if I could test permissions without having to have access to them on any wikis. ― C.Syde (talk | contribs) 06:35, 23 October 2020 (UTC)
Manual:Installation guide has some instructions. You need php and a webserver and maybe mysql, how to install those depends on your operating system. Bawolff (talk) 07:19, 23 October 2020 (UTC)

How to change the default action? (for next April Fool's gag)

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 the next April Fool's day (2021-04-01) on my Wiki, I am planning to set the default action to edit instead of view, but I could not figure out how to do that.

How can I change the default action?

And optionally, is it possible to change the default action for specific name spaces only?

Help would be appreciated. 79.249.159.6 (talk) 14:19, 24 September 2020 (UTC)

One possibility is to use apache rewrite rules.
You could try doing $wgActions['view'] = EditAction::class; not sure if that will work.
You could try doing something in the MediaWikiPerformAction hook (like mess with the $request object)
You could manually modify line 158 Action::getActionName https://github.com/wikimedia/mediawiki/blob/master/includes/actions/Action.php#L158 however modifying mediawiki core is strongly discouraged.
I would say that using apache rewrite rules is probably the most sane option. Keep in mind this has a high risk of breaking things Bawolff (talk) 02:46, 25 September 2020 (UTC)
The discussion above is closed. Please do not modify it. No further edits should be made to this discussion.

Custom examples in the Query Service

For my own Wikibase instance, I know that technically it is possible to customize the examples shown inside the query service. I found some articles/Phabricator tasks talking about how the parsing and everything worked then tried to get my own example queries inside the query service.


To do so, I created a /Query_Service/examples page in my wiki, added a few examples using the SPARQL2 template, enabled the REST API by adding $wgEnableRestAPI = true to my LocalSettings.php (I'm using MediaWiki 1.34, the wiki has been set up using the wikibase-docker github repo at https://github.com/wmde/wikibase-docker) and then changed the custom-config.json file inside the wdqs-frontend container. The 'examples' section then looked like this:


"examples": {

"server": "http://my-wiki.at/",

"endpoint": "rest.php/v1/page/",

"pageTitle": "Query_Service/examples",

"pagePathElement": "wiki/"

}


At least the Wikidata examples are not shown anymore, so I guess part of what I did worked, but now I just get an empty list.


I have some ideas about what the problem might be:

- I am not sure whether the path to the page is correct, or generally if I use the REST API correctly.

- Also, when looking at http://my-wiki.at/rest.php/v1/page/.. I get a the error 'the requested relative path (/v1/page/..) did not match any known handler'.

- As far as I know Parsoid is used for that example parsing, at least for MediaWiki 1.34, so maybe I'm missing something there.


I've been trying to figure this out for quite a while now without success. Any help would be much appreciated. PPaulina628 (talk) 14:48, 24 September 2020 (UTC)

i think the rest api: rest.php, is different then Restbase/Parsoid (although i think things are changing in 1.35), but im not totally following rest.php development. Bawolff (talk) 02:31, 25 September 2020 (UTC)

Getting JRiver to remember names in tagging

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 don't know if this is the right place. I am totally lost in this Wiki world ad cannot find any place where to ask this question. JRive used to "remember" name of composers/performers etd intheir respective columns, however, no longer, and I would like to know what happened, or how to get that back. Any help or hint of where to go, would be greatly appreciated! 98.176.237.187 (talk) 15:56, 24 September 2020 (UTC)

we have nothing to do with JRiver. Try asking at https://yabb.jriver.com/interact/index.php Bawolff (talk) 02:30, 25 September 2020 (UTC)
The discussion above is closed. Please do not modify it. No further edits should be made to this discussion.

Truncated filenames in MW 1.31.10 tarball?

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


I am using MW 1.31 here. Before updating the wiki I usually check the differences between the current version (1.31.9) an the new version (1.31.10) by file comparison (WinMerge). I discovered many different filenames in the V1.31.10 version regarding odd named file extensions, so it seems. For example the folder resources\lib\oojs-ui\themes\wikimediaui\images\icons. This folder contains a lot of images as PNG and SVG type. In this folder a lot of files with file extension png in the V1.31.9 version seems to be renamed with pn as file extension in the V1.31.10 version. Same to the SVG files. About 180 files seems to be affected by a disappeared last letter in the V1.31.10 version.
Was this done on purpose, did the devil of mistakes creep in or is there something with my eyes? Many thanks for an answer in advance! Wgkderdicke (talk) 00:44, 25 September 2020 (UTC)
See https://www.mediawiki.org/wiki/Project%3ASupport%20desk/Flow/2020/09#h-Patch_1.31.10_on_top_of_1.31.9-2020-09-25T06%3A25%3A00.000Z and https://lists.wikimedia.org/pipermail/mediawiki-announce/2020-September/000261.html Malyacko (talk) 16:09, 25 September 2020 (UTC)
pretty sure its not supposed to be that way. Bawolff (talk) 02:28, 25 September 2020 (UTC)
phab:T263866 Malyacko (talk) 17:37, 25 September 2020 (UTC)
Truncation sounds like phab:T258716 Reedy (talk) 17:44, 25 September 2020 (UTC)
If you're already using the old .9 version, please use https://releases.wikimedia.org/mediawiki/1.31/mediawiki-1.31.10-fixup.patch.gz to get to the proper .10 version
I've re-released the .9 and .10 patches with the whitespace fixes Reedy (talk) 19:51, 25 September 2020 (UTC)
I usually extract the downloaded mediawiki tarballs with 7zip on windows. The unzipped 1.31.9 tarball is fine, the unzipped 1.31.10 tarball comes with truncated filenames. Looking for more information, I found this: phab:T257102. Maybe this "paxfile issue" causes my troubles? Wgkderdicke (talk) 23:33, 25 September 2020 (UTC)
I also checked 1.34.4 and 1.35.0. The files' names are not truncated in these tarballs. Wgkderdicke (talk) 15:49, 26 September 2020 (UTC)
...and both the V1.31.10 ZIP file and tarball I managed to download from github are also not infested with truncation... Wgkderdicke (talk) 20:09, 28 September 2020 (UTC)
The discussion above is closed. Please do not modify it. No further edits should be made to this discussion.

LocalSettings for 1.35

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


Hi all,

I had 1.34 installed, (no actual setup on the wiki, just a bare install with name/icon) and then upgraded to 1.35. But I kept the localsettings.php file with my icon etc in it. But it appears 1.35 should have a bunch of extra extensions enabled. But because it's still running my original localsettings file I don't know if those new extensions are activated. How do I tell? And, is there a base version of the new 1.35 settings that I should add to my file? I just want to add additional allowed file extensions and a few basic things.

https://history.telegraphpoint.com.au/ TelePointHistory (talk) 02:05, 25 September 2020 (UTC)

your LocalSettings.php determines what extensions are actuve. All extensions are optional. You are generally expected to add lines to it if you want to enable new extensions, including those bewly bundled with 1.35
You can add the line wfLoadExtension('extensionnamehere' ); if you want to load additional. See also individual extension documentation.
The page Special:Version on your wiki will list all installed extensions. Bawolff (talk) 02:28, 25 September 2020 (UTC)
Thanks, that helped. I was also find how to log in as admin in Special Pages as well, as that was also unintuitive and tricky to find. TelePointHistory (talk) 05:57, 25 September 2020 (UTC)
You might find the following resources helpful if you're new to MediaWiki:
Help:Contents
And if you're running your own wiki:
Manual:Contents TiltedCerebellum (talk) 04:44, 29 September 2020 (UTC)
The discussion above is closed. Please do not modify it. No further edits should be made to this discussion.

How to find all pages until a certain weight of bytes?

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


I have a problem that some of the webpages in my MediaWiki 1.34.2 website are very big and should to be splitted into at least two different articles, but I don't know of any way to locate all these specific webpages among the various hundreds of webpages.

Of course, webpages can weight a lot because of MediaWIki syntax, HTML, CSS, images, Videos links etc and not by original textual content per se and yet finding all "very large pages" would be a good indicator for me to find which article should be splitted or not.

How to find all pages weighting at least a certain weight of bytes (say, all webpages with the minimal size of 25,000 bytes).


Thanks for any help with this, 182.232.46.58 (talk) 05:25, 25 September 2020 (UTC)

visit the page named Special:LongPages on you wiki Bawolff (talk) 07:47, 25 September 2020 (UTC)
The discussion above is closed. Please do not modify it. No further edits should be made to this discussion.

Visual Editor Error contacting the Parsoid/RESTBase server (HTTP 404)

I'm trying to make the Visual Editor work in 1.35. but get this error when I click the 'edit' button. I can see the Visual Editor start to load in the background but clearly something is wrong. I am not trying to do anything unusual beyond just making the VE work.


Error contacting the Parsoid/RESTBase server (HTTP 404)


I am following the instructions on a range of different help pages and have tried adding/removing various commands. One page mentioned SSL certificates, various things to do with private servers, something else talked about config.example.yaml etc, but nothing I have tried works. I am not familiar with any of the coding required so don't actually understand the instructions but am stepping through them. This is what I have in my localsettings.php in my current attempt. I suspect the 'url' => and 'domain' => parts are wrong but don't know what else to try. I am on shared Siteground hosting if that makes a difference.


Many thanks for the help so far in setting this up.... (I never expected mediawiki to be this tricky to get started with!)


## Parsoid required configuration

$PARSOID_INSTALL_DIR = 'vendor/wikimedia/parsoid';

// For developers: ensure Parsoid is executed from $PARSOID_INSTALL_DIR,

// (not the version included in mediawiki-core by default)

// Must occur *before* wfLoadExtension()

AutoLoader::$psr4Namespaces += [

// Keep this in sync with the "autoload" clause in

// $PARSOID_INSTALL_DIR/composer.json

'Wikimedia\\Parsoid\\' => "$PARSOID_INSTALL_DIR/src",

];

wfLoadExtension( 'Parsoid', "$PARSOID_INSTALL_DIR/extension.json" );

// Enable Parsoid

$wgEnableRestAPI = true;

$wgParsoidSettings = [

'useSelser' => true,

'rtTestMode' => false,

'linting' => false,

];

// Enable VisualEditor

wfLoadExtension('VisualEditor');

$wgDefaultUserOptions['visualeditor-enable'] = 1;

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

'url' => 'https://history.telegraphpoint.com.au/public_html/ rest.php',

'domain' => 'https://history.telegraphpoint.com.au/',

]; TelePointHistory (talk) 06:18, 25 September 2020 (UTC)

I was wondering if anyone had any ideas on this? I am trying again but don't know where to start. I've read the various wiki pages on Parsoid and RESTBase but am not sure on how to set it up. Even just a link to the correct instructions would be really helpful. Thanks heaps. TelePointHistory (talk) 20:51, 25 September 2020 (UTC)
are you sure the line:
'url' => 'https://history.telegraphpoint.com.au/public_html/rest.php',
Is correct? Its would be very unusual for public_html to be in a url.
Try maybe:
'url' => "$wgScriptPath/rest.php",
(Im not familar with new Parsoid at all so this is pure guess) Bawolff (talk) 08:05, 26 September 2020 (UTC)
This is confusing. I just wanted to say that I have the same http 404 problem with the visual editor, but I want a simple way to fix this. Vlz.matthew (talk) 21:48, 3 February 2021 (UTC)
I'm also running into this problem and haven't had any luck finding a solution. MBaitz (talk) 16:35, 23 February 2021 (UTC)
I just solved this problem for my own wiki hosted with SiteGround! The error occurs if your website doesn't have a SSL certificate attached to it yet.
I attached the certificate, added the following line to the localsettings.php file:
wfLoadExtension( 'VisualEditor' );
And the visual editor loaded without problem.
Good luck! MBaitz (talk) 16:49, 23 February 2021 (UTC)
This is what solved our parsoid issues (we used built-in VE/Restbase so did not have to do the restbase config stuff per the manual).
We ensured we had https.
Also ensured this line had https:
$wgServer = "https://www.sitename.com";
Looked like currently VE won't work with Short URL per T270376, and it won't work on subpages if users don't have access to apache config files to do the VE doc recommended AllowEncodedSlashes NoDecode (which can't be done in .htaccess). The closest I could get to a shorter URL config was the default /wiki/ setup.
What worked in my case after ensuring https, was to have in LocalSettings.php:
$wgScriptPath = "/w"; # Folder MW is installed in on server
$wgArticlePath = "/wiki/$1"; # URL path shown in browser
And in .htaccess (apache non-root config file, at root web level, not in the w folder):
RewriteEngine on
RewriteBase /
# Rewrites all URLS without blog in them
RewriteCond %{REQUEST_URI} !^/w/
# Rewrites all URLS [Replace "example-sitename" with the actual domain, without the TLD (.com, .net, .biz, etc)]
RewriteCond %{HTTP_HOST} ^(www\.)?example-sitename\.
# Rewrite all those to insert /folder
RewriteRule ^(.*)$ /w/$1 [L] TiltedCerebellum (talk) 03:32, 3 March 2021 (UTC)
What do I do when my site web certificate comes from Cloudflare? Because I have the same issue and I doubt that'd help since my connexion on my own site is already secure.
Additionally, I do not believe the issue would come from whether it is HTTP or HTTPS. There is likely a configuration setting in the localsettings.php that could cause the issue such as when you try to sign up from an unsecured url due to $wgCookieSecure. MarioSuperstar77 (talk) 12:19, 10 May 2021 (UTC)
Still extremely confusing, there shouldn't be A Restbase or server timeout at all Vlz.matthew (talk) 20:28, 8 March 2021 (UTC)
This "Parsoid" garbage is driving everyone nuts, isn't it the case to deprecate 1.35 and erase it forever from mediawiki? 37.186.245.106 (talk) 09:59, 10 March 2021 (UTC)
I had to install php7.4-curl on Ubuntu 20 to get the connection to work. 89.166.216.113 (talk) 11:08, 14 March 2021 (UTC)
I got the same error. It was because the wiki was in sub-folder of a folder protected by a htaccess authentication (AuthType Basic). I removed the htaccess and it worked. 80.215.78.78 (talk) 18:49, 25 March 2021 (UTC)
Help! I am getting the same error when I try to publish a photo in WikiCommons. What do I need to do to make it work? I am not a computer wiz, so plain English would be very, very much appreciated. Mary Bufe (talk) 20:50, 26 May 2021 (UTC)
@Mary Bufe. This thread is related to how people that administr a MediaWiki site can resolve this error on their setups. If you are a user on WikiCommons receiving this error you need to contact someone (an administrator) on WikiCommons as only an admin on that wiki be able to resolve the error you mention.
Maybe the Commons help desk is a place to ask?:
Commons:Help_desk TiltedCerebellum (talk) 00:04, 4 June 2021 (UTC)

Patch 1.31.10 on top of 1.31.9

Hi, I applied first the patch 1.31.9 on top of the 1.31.8 which worked well and afterwards the 1.31.10 on top of the 1.31.9. The latter didn't work. I get the following message:


checking file includes/ActorMigration.php

checking file includes/Defines.php

checking file includes/user/User.php

Hunk #1 FAILED at 2528.

1 out of 1 hunk FAILED

checking file RELEASE-NOTES-1.31

checking file tests/phpunit/includes/ActorMigrationTest.php


Does anybody have an idea, where I can start to fix this issue? 2003:ED:5F08:BA00:6834:1E7D:E728:D27B (talk) 06:25, 25 September 2020 (UTC)

I discovered, that the filenames last letter of about 180 files seems to be missing in 1.31.10. See here. Let's take ActionMigration.php for example. I do not know from here, if this particular file is affected, but if it is, then the filename is ActorMigration.ph in V1.31.10 and not ActionMigration.php. Maybe this explains your issue? 165.225.27.64 (talk) 07:37, 25 September 2020 (UTC)
see also https://lists.wikimedia.org/pipermail/mediawiki-announce/2020-September/000261.html Bawolff (talk) 07:45, 25 September 2020 (UTC)
I have the same issue Leeshore1966 (talk) 10:42, 25 September 2020 (UTC)
phab:T263866 Malyacko (talk) 17:36, 25 September 2020 (UTC)
Truncation sounds like phab:T258716 Reedy (talk) 17:44, 25 September 2020 (UTC)
If you're already using the old .9 version, please use https://releases.wikimedia.org/mediawiki/1.31/mediawiki-1.31.10-fixup.patch.gz to get to the proper .10 version
I've re-released the .9 and .10 patches with the whitespace fixes Reedy (talk) 19:51, 25 September 2020 (UTC)
Thank you Reedy, that worked! 2003:ED:5F06:3600:9174:1E6D:2D3A:382B (talk) 05:28, 28 September 2020 (UTC)
Hi,
first time applying patches instead of just copying the new release on top of the old one.
I get the following message:
$ patch -p1 --dry-run < mediawiki-1.31.10-fixup.patch
checking file includes/ActorMigration.php
checking file includes/api/ApiMain.php
Reversed (or previously applied) patch detected!  Assume -R? [n]
What should i do here?
Thanks 192.166.4.254 (talk) 08:43, 28 September 2020 (UTC)

Problem with installing extension: Emoticons

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


There is a problem with installing the extension Emoticons. The downloadlink gives BlueSpiceEmoticons. BlueSpiceEmoticons need the extension BlueSpiceFoundation. And that extension gives the error:

Fatal error: Uncaught ExtensionDependencyError: BlueSpiceFoundation requires ExtJSBase to be installed.


Is that not a Emoticons extension without the BlueSpice rubbish? Pojpla (talk) 09:31, 25 September 2020 (UTC)

It is not, sorry. Osnard (talk) 12:29, 25 September 2020 (UTC)
Why do I got errors? Pojpla (talk) 12:33, 25 September 2020 (UTC)
Because you don't have Extension:ExtJSBase installed, which is a declared dependency of BlueSpiceFoundation. Osnard (talk) 14:24, 25 September 2020 (UTC)
I have installed it, but still an error.
Fatal error: Declaration of BlueSpice\Hook::msg($key) must be compatible with MessageLocalizer::msg($key, ...$params) Pojpla (talk) 17:35, 25 September 2020 (UTC)
probably a version mismatch. Make sure you grab the version that corresponds with your version of mediawiki. Bawolff (talk) 08:00, 26 September 2020 (UTC)
Aha, maybe, how can I see which version of mediawiki and the extensions have downloaded? Pojpla (talk) 08:37, 26 September 2020 (UTC)
the page Special:Version will tell you your version of MediaWiki. It can be harder to figure out the appropriate version of the extension, but often the extensions download link will prompt you what version of mediawiki you have. Bawolff (talk) 09:30, 26 September 2020 (UTC)
thanks, it took some time that all needed extensions and the mediawiki was on the same version, but now it is working. Pojpla (talk) 11:44, 8 October 2020 (UTC)
The discussion above is closed. Please do not modify it. No further edits should be made to this discussion.

I am getting errors in my page. Can someone help me to solve it?

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.


You will get error on this page: https://naijionary.elizia.net/index.php?title=Mousse Dev687 (talk) 12:32, 25 September 2020 (UTC)

I guess you have just made copy-paste. Your wiki requires to create templates as they are used at the page Fokebox (talk) 13:40, 25 September 2020 (UTC)
I imported this page. Dev687 (talk) 06:46, 26 September 2020 (UTC)
When you exported that page, did you check the Include templates checkbox? AhmadF.Cheema (talk) 09:50, 26 September 2020 (UTC)
Yes Dev687 (talk) 19:16, 26 September 2020 (UTC)
The discussion above is closed. Please do not modify it. No further edits should be made to this discussion.

Redirect, please

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

The Scilympiad platform takes case-sensitive web page addresses and crushes the case down to lower case.

https://scilympiad.com/mi-wmaa/Reg/EditSchool

This creates a problem because our team's wiki page is:

https://scioly.org/wiki/index.php/West_Michigan_Aviation_Academy

But, when someone clicks the icon on the scilympiad.com page, they are directed to:

https://scioly.org/wiki/index.php/west_michigan_aviation_academy

That page does not exist. My request to 'support desk' is: please redirect the lower case URL to the actual/existing mixed-case URL.

Thank you. 107.5.152.53 (talk) 14:36, 25 September 2020 (UTC)

Welcome to the support desk for the MediaWiki software (which seems to be also used by folks who run scioly.org). For configuration changes on the website scioly.org you need to contact the maintainers of the website scioly.org, not the community behind the MediaWiki software. Thanks. Malyacko (talk) 16:06, 25 September 2020 (UTC)
see also help:redirects Bawolff (talk) 07:59, 26 September 2020 (UTC)
The discussion above is closed. Please do not modify it. No further edits should be made to this discussion.

This direct file download link works fine using the "Media" prefix...
[[Media:Wiki.png]] = Media:Wiki.png

...but I can't seem to make it work when defined in the "link" attribute of a file:
[[File:Download link.png|25px|link=Media:Wiki.png]] = <figure-inline></figure-inline>


Is this expected? Is there any way to link directly to a downloadable asset from an image? Huwmanbeing (talk) 18:15, 25 September 2020 (UTC)

You should use [[File:Download link.png|60px|link=https://upload.wikimedia.org/wikipedia/mediawiki/b/bc/Wiki.png]]Ammarpad (talk) 06:49, 26 September 2020 (UTC)
ick. We should fix that.
You can also use {{filepath:wiki.png}} Bawolff (talk) 07:58, 26 September 2020 (UTC)

API:Edit

Hi there, current API:EDIT page showcast an "append" text to the page example. This is a really specific use-case. It would be really practical to have a "replace string" example in Python, Javascrip, MediaWiki JS. This has much more practical applications. If there is a place where to mobilize the suitable authors for that, please tell me. Yug (talk) 19:37, 25 September 2020 (UTC)
If a page should receive edits, would you bring that up on the talk page of that page? API talk:Edit Malyacko (talk) 08:56, 26 September 2020 (UTC)
append is a common operation for bots that operate on talk pages. But more examples are of course good. Bawolff (talk) 07:57, 26 September 2020 (UTC)
(1) I may'contribute to this push but I'am still newbie on mediawiki's wiki. I'am still hesitant to edit documentations.
(2) Be bold. Mediawiki's wiki is a small wiki. If some issue can move forward faster but being brought on the support desk, then let's chat it a bit there. Here, beyond the purely technical issue, I'am also getting a sense of what is the local culture, the `do` and `do not`. Work in progress. Yug (talk) 22:22, 27 September 2020 (UTC)

Upgrade from 1.31 to all newer version gets stuck in populating new database

Hi. When I try to upgrade www.mjwiki.no from current 1.31 using mw-config, everything looks fine until the the script shall populate new database. The making of the new database get stuck at the same program lines in 1.33, 1.34 and 1.35. I stop the upgrade and return to start, and do not keep the db changes already made. Here are the last lines reported from the mw-config script in the browser. Can anybody help?

Failed to populate content table archive row batch starting at 1001 due to exception: MediaWiki\Storage\BlobAccessException: Unable to fetch blob at tt:1362 in /home/2/m/mjwiki/www/w/includes/Storage/SqlBlobStore.php:295

Stack trace:

#0 /home/2/m/mjwiki/www/w/maintenance/populateContentTables.php(374): MediaWiki\Storage\SqlBlobStore->getBlob('tt:1362')

#1 /home/2/m/mjwiki/www/w/maintenance/populateContentTables.php(276): PopulateContentTables->fillMissingFields(Object(stdClass), 'wikitext', 'tt:1362')

#2 /home/2/m/mjwiki/www/w/maintenance/populateContentTables.php(230): PopulateContentTables->populateContentTablesForRowBatch(Object(Wikimedia\Rdbms\ResultWrapper), 1001, 'archive')

#3 /home/2/m/mjwiki/www/w/maintenance/populateContentTables.php(97): PopulateContentTables->populateTable('archive')

#4 /home/2/m/mjwiki/www/w/includes/installer/DatabaseUpdater.php(1416): PopulateContentTables->execute()

#5 /home/2/m/mjwiki/www/w/includes/installer/DatabaseUpdater.php(512): DatabaseUpdater->populateContentTables()

#6 /home/2/m/mjwiki/www/w/includes/installer/DatabaseUpdater.php(475): DatabaseUpdater->runUpdates(Array, false)

#7 /home/2/m/mjwiki/www/w/includes/installer/DatabaseInstaller.php(422): DatabaseUpdater->doUpdates()

#8 /home/2/m/mjwiki/www/w/includes/installer/WebInstallerUpgrade.php(64): DatabaseInstaller->doUpgrade()

#9 /home/2/m/mjwiki/www/w/includes/installer/WebInstaller.php(269): WebInstallerUpgrade->execute()

#10 /home/2/m/mjwiki/www/w/mw-config/index.php(82): WebInstaller->execute(Array)

#11 /home/2/m/mjwiki/www/w/mw-config/index.php(40): wfInstallerMain()

#12 {main} 178.74.41.36 (talk) 22:55, 25 September 2020 (UTC)

Sorry, forgot to tell php is 7.3 and mysql is 5.6 178.74.41.36 (talk) 22:59, 25 September 2020 (UTC)
You should run findBadBlobs.php maintenance script. It should fix that. (By marking the affected blobs as known bad to avoid the errors). – Ammarpad (talk) 06:11, 26 September 2020 (UTC)
Hi Ammarpad. Thank You for helping me. The findBadBlobs script refuse to run from command line on my server. I get the error message "This script must be run form command line" (sic!) which it actually does. Any suggestions. Mediawiki is 1.31.10, php 7.3. My Sql 5.6. 178.74.41.36 (talk) 09:28, 1 October 2020 (UTC)

Fatal PHP error after upgrade to 1.35

Hello, I upgradet my page to version 1.35 and all seems fine. After I go through the mw-config and updated the database without errors, the updater said "The update is finished" I get this error:


Fatal error: Uncaught Error: Call to a member function getIP() on null in /www/htdocs/w0068779/subpages/otherfiles/dsa_wiki/includes/user/User.php:2153 Stack trace: #0 /www/htdocs/w0068779/subpages/otherfiles/dsa_wiki/includes/session/SessionBackend.php(742): User->getName() #1 /www/htdocs/w0068779/subpages/otherfiles/dsa_wiki/includes/session/SessionBackend.php(626): MediaWiki\Session\SessionBackend->save() #2 [internal function]: MediaWiki\Session\SessionBackend->MediaWiki\Session\{closure}() #3 /www/htdocs/w0068779/subpages/otherfiles/dsa_wiki/vendor/wikimedia/scoped-callback/src/ScopedCallback.php(96): call_user_func_array(Object(Closure), Array) #4 /www/htdocs/w0068779/subpages/otherfiles/dsa_wiki/vendor/wikimedia/scoped-callback/src/ScopedCallback.php(56): Wikimedia\ScopedCallback->__destruct() #5 /www/htdocs/w0068779/subpages/otherfiles/dsa_wiki/includes/session/SessionManager.php(890): Wikimedia\ScopedCallback::consume(NULL) #6 /www/htdocs/w0068779/subpages/otherfiles/dsa_wiki/includes/session/SessionManager.php(3 in /www/htdocs/w0068779/subpages/otherfiles/dsa_wiki/includes/user/User.php on line 2153

Fatal error: Uncaught Error: Call to a member function getIP() on null in /www/htdocs/w0068779/subpages/otherfiles/dsa_wiki/includes/user/User.php:2153 Stack trace: #0 /www/htdocs/w0068779/subpages/otherfiles/dsa_wiki/includes/session/SessionBackend.php(742): User->getName() #1 /www/htdocs/w0068779/subpages/otherfiles/dsa_wiki/includes/session/SessionBackend.php(225): MediaWiki\Session\SessionBackend->save(true) #2 /www/htdocs/w0068779/subpages/otherfiles/dsa_wiki/includes/session/SessionManager.php(478): MediaWiki\Session\SessionBackend->shutdown() #3 [internal function]: MediaWiki\Session\SessionManager->shutdown() #4 {main} thrown in /www/htdocs/w0068779/subpages/otherfiles/dsa_wiki/includes/user/User.php on line 2153


I have PHP 7.4.10 and MySQL 5.7.28. I read other topic to similar errors but it does not work for me. Has someone I hint or an idea what I can do? 2003:6:13E3:3877:90F6:F27F:A256:F31 (talk) 23:34, 25 September 2020 (UTC)

i think you should file a bug at https://phabricator.wikimedia.org . Include any details you can think of that might make your server setup different from other servers Bawolff (talk) 07:54, 26 September 2020 (UTC)
I encountered the same error, and fixed it by setting $wgServer in LocalSettings.php, which had until then been unset. Perhaps that will solve it for you too. DemocracyOnliner (talk) 07:50, 1 October 2020 (UTC)
Worked also for me: Same problem an fixed with adding the $wgServer variable in LocalSettings.php
Thank you! 2001:16B8:66F6:8600:6505:9496:CBC:9312 (talk) 23:50, 5 December 2020 (UTC)

Lockdown extension

Hi,

I would like to use the Lockdown extension but could not get it to work. I look at the 2 statements below and could not figure out why one restricts read access to user and one grant edit access to sysop. They both look syntactically the same. Could you tell me why or what I am missing here?

$wgNamespacePermissionLockdown[NS_PROJECT]['read'] = ['user'];

$wgNamespacePermissionLockdown[NS_PROJECT]['edit'] = ['sysop'];

They are both from the Extension:Lockdown page.

I tried to block users from reading the NS_PROJECT namespace and allow sysop to edit the namespace. After setting the above entries, the Visual Editor gave me error. Even though I grant the sysop edit using

$wgNamespaceProtection[NS_PROJECT] = ['project-edit'];

$wgGroupPermissions['sysop']['project-edit'] = true;

When I removed the 2 $wgNamespacePermissionLockdown entries then the error went away.

Please advise. Thanks so much! Jasonba (talk) 23:46, 25 September 2020 (UTC)

Does the sysop group directly have edit rights in general? (I.e. the group directly, not by virtue of being in some other group like user or *)? Bawolff (talk) 07:53, 26 September 2020 (UTC)
Yes, the sysop has all default rights.
Thanks! 2605:E000:35C0:1400:A1BA:8E86:2AD:D964 (talk) 00:58, 28 September 2020 (UTC)
Abdnlhameed 37.111.139.225 (talk) 03:36, 28 September 2020 (UTC)
Could you let me know why my article is hidden without a solution? Thanks! Jasonba (talk) 21:54, 28 September 2020 (UTC)
Where is your article hidden without a solution? TiltedCerebellum (talk) 21:17, 29 September 2020 (UTC)
This topic. I simply re-opened it back since I still need help finding a solution/fix for my issue. Thanks! Jasonba (talk) 00:31, 30 September 2020 (UTC)
https://www.mediawiki.org/w/index.php?title=Project%3ASupport%20desk/Flow/2020/09#h-Lockdown_extension-2020-09-25T23%3A46%3A00.000Z TiltedCerebellum (talk) 01:30, 30 September 2020 (UTC)
Thanks for posting the history link!
Is there any advise to my Lockdown extension issue with Visual Editor? I got Access Denied issue when I set the $wgNamespacePermissionLockdown[NS_TEST]['read'] = ['user']; Even with the sysop login account.Anyone? Thanks! Any help is appreciated. Jasonba (talk) 18:25, 5 October 2020 (UTC)

How to create pagination between a certain set of articles without an extension?

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 MediaWiki 1.34.2, principally all-core website I have a set of at least three articles which comprise a "course" ; the reader should ordinally advance from the first article to the last article; from TOPIC:lesson_1 to TOPIC:lesson_3.

I can manually create a pagination mechanism:

Previous lesson: 1. [[example_1]]

and/or;

Next lesson: 2. [[example_lesson_2]]

I would prefer some automatic pagination solution.

Please kindly refer me to an article which explains how to create pagination between a certain set of articles without installing any extension, or suggest a way, if possible in the current limitations of the software. 49.230.6.58 (talk) 05:03, 26 September 2020 (UTC)

Use templates Fokebox (talk) 05:28, 26 September 2020 (UTC)
A very simple example of using a template to do this... You could use subpages to create numbered child pages of a regular page. So for example, You could have a page called "Restoring A Bike" (which would be the parent page, and page 1) then create a subpage "Restoring A Bike/2" for a 2nd page, and "Restoring A Bike/3" for a 3rd page (and so on and so forth). Then create a simple template for multi-page navigation, one called "Template:SubpageNav" or whatever with something like the following, that would use parser functions (extension included with Mediawiki) to check if the subpages exist, and if they do, display each as a number linked to its page. This example uses parser IF function, and MW Magic Words/Variables to detect the namespace and names. The same template could then be used on the parent page "Restoring A Bike" and on the subpages "Restoring A Bike/2" and "Restoring A Bike/3" to create the navigation you're after.
A simple example (this checks for and displays what I mention, but could be expanded):
{| class="YourStyleName" <!-- Start table -->
|-
|Pages:&nbsp; <!--
-- List BASEPAGENAME as 1 linked to it --
-->{{!}}{{!}}[[{{#if:{{NAMESPACE}}| {{NAMESPACE}}:| }}{{BASEPAGENAME}}|1]]<!--
-- IF /2 exists show a 2 and link to it --
-->{{#ifexist: {{#if:{{NAMESPACE}}| {{NAMESPACE}}:| }}{{BASEPAGENAME}}/2 | {{!}}{{!}}[[{{#if:{{NAMESPACE}}| {{NAMESPACE}}:| }}{{BASEPAGENAME}}/2|2]] | }}<!--
-- IF /3 exists show a 3 and link to it --
-->{{#ifexist: {{#if:{{NAMESPACE}}| {{NAMESPACE}}:| }}{{BASEPAGENAME}}/3 | {{!}}{{!}} [[{{#if:{{NAMESPACE}}| {{NAMESPACE}}:| }}{{BASEPAGENAME}}/3|3]] | }}
<!-- copy IF statement above and paste below this (and before the end of the table) to add more pages to detect and display -->
|}<!-- End table -->
And then on the page, include the template:
{{SubpageNav}}
And then you can style it with CSS accordingly using your MediaWiki:Common.css. TiltedCerebellum (talk) 04:40, 29 September 2020 (UTC)
The discussion above is closed. Please do not modify it. No further edits should be made to this discussion.

I am getting errors on my mediawiki page ?

You can see the errors on https://naijionary.elizia.net/index.php?title=Mousse

Please help me to solve these errors. Dev687 (talk) 07:23, 26 September 2020 (UTC)

looks like you copied some content from an (im assuming) french wiki but your wiki has the content language set to english.
This means that french translations of namespaces wont work. You can try setting some $wgNamespaceAliases but if your wiki is going to be french content it would be better to change the language to fr in LocalSettings.php
(After changing language or namespace aliases, you might want to run refreshLinks.php to reparse all pages) Bawolff (talk) 07:43, 26 September 2020 (UTC)

Error 500

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. Yesterday I started upgrading my wiki on the new 1.35 version. I am using no additional extensions and I followed all steps of the Manual for Upgrading. Sadly I'm recieving a HTTP 500 Error, which won't let me access the wiki.

Steps I've done:

  1. I made a Back-Up of the old data
  2. I overwrote the old data with the new one with a FTP Access
  3. I followed the instructions at /mw-confi/index.php

I am upgrading from mediawiki 1.34.2.

-MySQL 5.7.28

-PHP 7.4.10

Thank you all in advance (And sorry for my english. I'm not a native speaker) ManuelFranz (talk) 09:18, 26 September 2020 (UTC)

anything in the php error log? (See How to debug for how to enable php error reporting) Bawolff (talk) 09:31, 26 September 2020 (UTC)
/skins/Vector/includes/ServiceWiring.php on line 52
I got something like this. Should I update the Vector skin ? ManuelFranz (talk) 09:34, 26 September 2020 (UTC)
You'll have to provide the entire error message to allow accurate responses.
After MediaWiki upgrade extensions and skins will also need to be upgraded.
Also, did you overwrite the old MediaWiki files with the new version files? This is definitely problematic. You need to extract the new version into a separate folder and then copy the extensions/skins and your LocalSettings.php files into this new folder. AhmadF.Cheema (talk) 09:45, 26 September 2020 (UTC)
Yes I overwrote the old MediaWiki files. Thank you both for your advices. I am gonna do it again and tell you If it worked or not. :) ManuelFranz (talk) 09:59, 26 September 2020 (UTC)
Warning: include(/www/htdocs/xxx/xxx.de/historischedatenbank/vendor/composer/../liuggio/statsd-php-client/src/Liuggio/StatsdClient/Factory/StatsdDataFactory.php): failed to open stream: No such file or directory in /www/htdocs/xxx/xxx.de/historischedatenbank/vendor/composer/ClassLoader.php on line 444
Warning: include(/www/htdocs/xxx/xxx.de/historischedatenbank/vendor/composer/../liuggio/statsd-php-client/src/Liuggio/StatsdClient/Factory/StatsdDataFactory.php): failed to open stream: No such file or directory in /www/htdocs/xxx/xxx.de/historischedatenbank/vendor/composer/ClassLoader.php on line 444
Warning: include(): Failed opening '/www/htdocs/xxx/xxx.de/historischedatenbank/vendor/composer/../liuggio/statsd-php-client/src/Liuggio/StatsdClient/Factory/StatsdDataFactory.php' for inclusion (include_path='/www/htdocs/xxx/xxx.de/historischedatenbank/vendor/pear/console_getopt:/www/htdocs/xxx/xxx.de/historischedatenbank/vendor/pear/mail:/www/htdocs/xxx/xxx.de/historischedatenbank/vendor/pear/mail_mime:/www/htdocs/xxx/xxx.de/historischedatenbank/vendor/pear/net_smtp:/www/htdocs/xxx/xxx.de/historischedatenbank/vendor/pear/net_socket:/www/htdocs/xxx/xxx.de/historischedatenbank/vendor/pear/pear-core-minimal/src:/www/htdocs/xxx/xxx.de/historischedatenbank/vendor/pear/pear_exception:.:/usr/share/php:..') in /www/htdocs/xxx/xxx.de/historischedatenbank/vendor/composer/ClassLoader.php on line 444
Warning: include(/www/htdocs/xxx/xxx.de/historischedatenbank/vendor/composer/../liuggio/statsd-php-client/src/Liuggio/StatsdClient/Factory/StatsdDataFactory.php): failed to open stream: No such file or directory in /www/htdocs/xxx/xxx.de/historischedatenbank/vendor/composer/ClassLoader.php on line 444
Warning: include(/www/htdocs/xxx/xxx.de/historischedatenbank/vendor/composer/../liuggio/statsd-php-client/src/Liuggio/StatsdClient/Factory/StatsdDataFactory.php): failed to open stream: No such file or directory in /www/htdocs/xxx/xxx.de/historischedatenbank/vendor/composer/ClassLoader.php on line 444
Warning: include(): Failed opening '/www/htdocs/xxx/xxx.de/historischedatenbank/vendor/composer/../liuggio/statsd-php-client/src/Liuggio/StatsdClient/Factory/StatsdDataFactory.php' for inclusion (include_path='/www/htdocs/xxx/xxx.de/historischedatenbank/vendor/pear/console_getopt:/www/htdocs/xxx/xxx.de/historischedatenbank/vendor/pear/mail:/www/htdocs/xxx/xxx.de/historischedatenbank/vendor/pear/mail_mime:/www/htdocs/xxx/xxx.de/historischedatenbank/vendor/pear/net_smtp:/www/htdocs/xxx/xxx.de/historischedatenbank/vendor/pear/net_socket:/www/htdocs/xxx/xxx.de/historischedatenbank/vendor/pear/pear-core-minimal/src:/www/htdocs/xxx/xxx.de/historischedatenbank/vendor/pear/pear_exception:.:/usr/share/php:..') in /www/htdocs/xxx/xxx.de/historischedatenbank/vendor/composer/ClassLoader.php on line 444
Fatal error: Uncaught Error: Class 'Liuggio\StatsdClient\Factory\StatsdDataFactory' not found in /www/htdocs/xxx/xxx.de/historischedatenbank/includes/libs/stats/BufferingStatsdDataFactory.php:35 Stack trace: #0 /www/htdocs/xxx/xxx.de/historischedatenbank/includes/AutoLoader.php(109): require() #1 [internal function]: AutoLoader::autoload('BufferingStatsd...') #2 /www/htdocs/xxx/xxx.de/historischedatenbank/includes/ServiceWiring.php(1193): spl_autoload_call('BufferingStatsd...') #3 /www/htdocs/xxx/xxx.de/historischedatenbank/vendor/wikimedia/services/src/ServiceContainer.php(447): Wikimedia\Services\ServiceContainer->{closure}(Object(MediaWiki\MediaWikiServices)) #4 /www/htdocs/xxx/xxx.de/historischedatenbank/vendor/wikimedia/services/src/ServiceContainer.php(416): Wikimedia\Services\ServiceContainer->createService('StatsdDataFacto...') #5 /www/htdocs/xxx/xxx.de/historischedatenbank/includes/MediaWikiServices.php(1225): Wi in /www/htdocs/xxx/xxx.de/historischedatenbank/includes/libs/stats/BufferingStatsdDataFactory.php on line 35
I still have these Errors. ManuelFranz (talk) 12:49, 26 September 2020 (UTC)
I finally solved the problem. I reinstalled everything again and now it is working. Thank you both for your help ManuelFranz (talk) 18:27, 26 September 2020 (UTC)
The discussion above is closed. Please do not modify it. No further edits should be made to this discussion.

Date tag in picture removed as watermark

Hello everyone. Yesterday I have uploaded some test files to experiment the way Mediawiki displays the metadata of the concerned media. I have uploaded one tagged with all (and only) the 15 tags relative to the Dublin Core: File:Dublin Core metadata in Mediawiki.png

I am surprised that it was categorized as "Images which had their watermark removed" and I see by downloading the updated picture that the removed tag was XMP:Date. I don't understand and it could take away some interesting information.

Don't you think that the bot did that work should be corrected. Where can I found information about this bot ? If this forum is not the right place to discuss about that, where to go?

Thanks and regards,

gvdmoort Gvdmoort (talk) 10:28, 26 September 2020 (UTC)

you added it to commons:Category:Metadata from image which is the category to denote images that have had watermarks deleted. No watermark was actually deleted.
Are you sure that the daye tag has been removed? The thing you set it to does not look like a date. Maybe exiftool refused to set it to a non-date string, or maybe exiftool refused to read it because the date did not look like a date. Afaict the image was not modified.
Note when mediawiki displays metadata it will try and merge related fields in accordance with w:Metadata Working Group but it wont modify the actual file. Metadata may be removed in thumbnails though. Bawolff (talk) 20:18, 26 September 2020 (UTC)

Resolving "ComposerInstalled.php" error

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


This morning we began testing for the upgrade from MediaWiki 1.34.0 MediaWiki 1.35.0, but after upgrading, the Special:Version special page complains about not being able to modify header information, as well as trying but assumedly failing to access values in "ComposerInstalled.php".

Here is the whole log:

PHP log
[26-Sep-2020 10:40:29 UTC] PHP Notice:  Undefined index: name in /Users/Minoa/Sites/wiki.minoa/w/includes/libs/composer/ComposerInstalled.php on line 30
[26-Sep-2020 10:40:29 UTC] PHP Notice:  Undefined index: version in /Users/Minoa/Sites/wiki.minoa/w/includes/libs/composer/ComposerInstalled.php on line 31
[26-Sep-2020 10:40:29 UTC] PHP Notice:  Undefined index: type in /Users/Minoa/Sites/wiki.minoa/w/includes/libs/composer/ComposerInstalled.php on line 32
[26-Sep-2020 10:40:29 UTC] PHP Notice:  Trying to access array offset on value of type bool in /Users/Minoa/Sites/wiki.minoa/w/includes/libs/composer/ComposerInstalled.php on line 30
[26-Sep-2020 10:40:29 UTC] PHP Notice:  Trying to access array offset on value of type bool in /Users/Minoa/Sites/wiki.minoa/w/includes/libs/composer/ComposerInstalled.php on line 31
[26-Sep-2020 10:40:29 UTC] PHP Notice:  Trying to access array offset on value of type bool in /Users/Minoa/Sites/wiki.minoa/w/includes/libs/composer/ComposerInstalled.php on line 32
[26-Sep-2020 10:40:29 UTC] PHP Notice:  Undefined index: name in /Users/Minoa/Sites/wiki.minoa/w/includes/libs/composer/ComposerInstalled.php on line 30
[26-Sep-2020 10:40:29 UTC] PHP Notice:  Undefined index: version in /Users/Minoa/Sites/wiki.minoa/w/includes/libs/composer/ComposerInstalled.php on line 31
[26-Sep-2020 10:40:29 UTC] PHP Notice:  Undefined index: type in /Users/Minoa/Sites/wiki.minoa/w/includes/libs/composer/ComposerInstalled.php on line 32
[26-Sep-2020 10:40:29 UTC] PHP Notice:  Trying to access array offset on value of type bool in /Users/Minoa/Sites/wiki.minoa/w/includes/libs/composer/ComposerInstalled.php on line 30
[26-Sep-2020 10:40:29 UTC] PHP Notice:  Trying to access array offset on value of type bool in /Users/Minoa/Sites/wiki.minoa/w/includes/libs/composer/ComposerInstalled.php on line 31
[26-Sep-2020 10:40:29 UTC] PHP Notice:  Trying to access array offset on value of type bool in /Users/Minoa/Sites/wiki.minoa/w/includes/libs/composer/ComposerInstalled.php on line 32
[26-Sep-2020 10:40:29 UTC] PHP Notice:  Undefined index: name in /Users/Minoa/Sites/wiki.minoa/w/includes/libs/composer/ComposerInstalled.php on line 30
[26-Sep-2020 10:40:29 UTC] PHP Notice:  Undefined index: version in /Users/Minoa/Sites/wiki.minoa/w/includes/libs/composer/ComposerInstalled.php on line 31
[26-Sep-2020 10:40:29 UTC] PHP Notice:  Undefined index: type in /Users/Minoa/Sites/wiki.minoa/w/includes/libs/composer/ComposerInstalled.php on line 32
[26-Sep-2020 10:40:29 UTC] PHP Notice:  Trying to access array offset on value of type bool in /Users/Minoa/Sites/wiki.minoa/w/includes/libs/composer/ComposerInstalled.php on line 30
[26-Sep-2020 10:40:29 UTC] PHP Notice:  Trying to access array offset on value of type bool in /Users/Minoa/Sites/wiki.minoa/w/includes/libs/composer/ComposerInstalled.php on line 31
[26-Sep-2020 10:40:29 UTC] PHP Notice:  Trying to access array offset on value of type bool in /Users/Minoa/Sites/wiki.minoa/w/includes/libs/composer/ComposerInstalled.php on line 32
[26-Sep-2020 10:40:29 UTC] PHP Notice:  Undefined index: name in /Users/Minoa/Sites/wiki.minoa/w/includes/libs/composer/ComposerInstalled.php on line 30
[26-Sep-2020 10:40:29 UTC] PHP Notice:  Undefined index: version in /Users/Minoa/Sites/wiki.minoa/w/includes/libs/composer/ComposerInstalled.php on line 31
[26-Sep-2020 10:40:29 UTC] PHP Notice:  Undefined index: type in /Users/Minoa/Sites/wiki.minoa/w/includes/libs/composer/ComposerInstalled.php on line 32
[26-Sep-2020 10:40:29 UTC] PHP Notice:  Trying to access array offset on value of type bool in /Users/Minoa/Sites/wiki.minoa/w/includes/libs/composer/ComposerInstalled.php on line 30
[26-Sep-2020 10:40:29 UTC] PHP Notice:  Trying to access array offset on value of type bool in /Users/Minoa/Sites/wiki.minoa/w/includes/libs/composer/ComposerInstalled.php on line 31
[26-Sep-2020 10:40:29 UTC] PHP Notice:  Trying to access array offset on value of type bool in /Users/Minoa/Sites/wiki.minoa/w/includes/libs/composer/ComposerInstalled.php on line 32
[26-Sep-2020 10:42:26 UTC] PHP Notice:  Undefined index: name in /Users/Minoa/Sites/wiki.minoa/w/includes/libs/composer/ComposerInstalled.php on line 30
[26-Sep-2020 10:42:26 UTC] PHP Notice:  Undefined index: version in /Users/Minoa/Sites/wiki.minoa/w/includes/libs/composer/ComposerInstalled.php on line 31
[26-Sep-2020 10:42:26 UTC] PHP Notice:  Undefined index: type in /Users/Minoa/Sites/wiki.minoa/w/includes/libs/composer/ComposerInstalled.php on line 32
[26-Sep-2020 10:42:26 UTC] PHP Notice:  Trying to access array offset on value of type bool in /Users/Minoa/Sites/wiki.minoa/w/includes/libs/composer/ComposerInstalled.php on line 30
[26-Sep-2020 10:42:26 UTC] PHP Notice:  Trying to access array offset on value of type bool in /Users/Minoa/Sites/wiki.minoa/w/includes/libs/composer/ComposerInstalled.php on line 31
[26-Sep-2020 10:42:26 UTC] PHP Notice:  Trying to access array offset on value of type bool in /Users/Minoa/Sites/wiki.minoa/w/includes/libs/composer/ComposerInstalled.php on line 32
[26-Sep-2020 10:42:26 UTC] PHP Notice:  Undefined index: name in /Users/Minoa/Sites/wiki.minoa/w/includes/libs/composer/ComposerInstalled.php on line 30
[26-Sep-2020 10:42:26 UTC] PHP Notice:  Undefined index: version in /Users/Minoa/Sites/wiki.minoa/w/includes/libs/composer/ComposerInstalled.php on line 31
[26-Sep-2020 10:42:26 UTC] PHP Notice:  Undefined index: type in /Users/Minoa/Sites/wiki.minoa/w/includes/libs/composer/ComposerInstalled.php on line 32
[26-Sep-2020 10:42:26 UTC] PHP Notice:  Trying to access array offset on value of type bool in /Users/Minoa/Sites/wiki.minoa/w/includes/libs/composer/ComposerInstalled.php on line 30
[26-Sep-2020 10:42:26 UTC] PHP Notice:  Trying to access array offset on value of type bool in /Users/Minoa/Sites/wiki.minoa/w/includes/libs/composer/ComposerInstalled.php on line 31
[26-Sep-2020 10:42:26 UTC] PHP Notice:  Trying to access array offset on value of type bool in /Users/Minoa/Sites/wiki.minoa/w/includes/libs/composer/ComposerInstalled.php on line 32
[26-Sep-2020 10:42:26 UTC] PHP Notice:  Undefined index: name in /Users/Minoa/Sites/wiki.minoa/w/includes/libs/composer/ComposerInstalled.php on line 30
[26-Sep-2020 10:42:26 UTC] PHP Notice:  Undefined index: version in /Users/Minoa/Sites/wiki.minoa/w/includes/libs/composer/ComposerInstalled.php on line 31
[26-Sep-2020 10:42:26 UTC] PHP Notice:  Undefined index: type in /Users/Minoa/Sites/wiki.minoa/w/includes/libs/composer/ComposerInstalled.php on line 32
[26-Sep-2020 10:42:26 UTC] PHP Notice:  Trying to access array offset on value of type bool in /Users/Minoa/Sites/wiki.minoa/w/includes/libs/composer/ComposerInstalled.php on line 30
[26-Sep-2020 10:42:26 UTC] PHP Notice:  Trying to access array offset on value of type bool in /Users/Minoa/Sites/wiki.minoa/w/includes/libs/composer/ComposerInstalled.php on line 31
[26-Sep-2020 10:42:26 UTC] PHP Notice:  Trying to access array offset on value of type bool in /Users/Minoa/Sites/wiki.minoa/w/includes/libs/composer/ComposerInstalled.php on line 32
[26-Sep-2020 10:42:26 UTC] PHP Notice:  Undefined index: name in /Users/Minoa/Sites/wiki.minoa/w/includes/libs/composer/ComposerInstalled.php on line 30
[26-Sep-2020 10:42:26 UTC] PHP Notice:  Undefined index: version in /Users/Minoa/Sites/wiki.minoa/w/includes/libs/composer/ComposerInstalled.php on line 31
[26-Sep-2020 10:42:26 UTC] PHP Notice:  Undefined index: type in /Users/Minoa/Sites/wiki.minoa/w/includes/libs/composer/ComposerInstalled.php on line 32
[26-Sep-2020 10:42:26 UTC] PHP Notice:  Trying to access array offset on value of type bool in /Users/Minoa/Sites/wiki.minoa/w/includes/libs/composer/ComposerInstalled.php on line 30
[26-Sep-2020 10:42:26 UTC] PHP Notice:  Trying to access array offset on value of type bool in /Users/Minoa/Sites/wiki.minoa/w/includes/libs/composer/ComposerInstalled.php on line 31
[26-Sep-2020 10:42:26 UTC] PHP Notice:  Trying to access array offset on value of type bool in /Users/Minoa/Sites/wiki.minoa/w/includes/libs/composer/ComposerInstalled.php on line 32
[26-Sep-2020 10:42:26 UTC] PHP Warning:  Cannot modify header information - headers already sent by (output started at /Users/Minoa/Sites/wiki.minoa/w/includes/libs/composer/ComposerInstalled.php:32) in /Users/Minoa/Sites/wiki.minoa/w/includes/WebResponse.php on line 74
[26-Sep-2020 10:42:26 UTC] PHP Warning:  Cannot modify header information - headers already sent by (output started at /Users/Minoa/Sites/wiki.minoa/w/includes/libs/composer/ComposerInstalled.php:32) in /Users/Minoa/Sites/wiki.minoa/w/includes/WebResponse.php on line 74
[26-Sep-2020 10:42:26 UTC] PHP Warning:  Cannot modify header information - headers already sent by (output started at /Users/Minoa/Sites/wiki.minoa/w/includes/libs/composer/ComposerInstalled.php:32) in /Users/Minoa/Sites/wiki.minoa/w/includes/WebResponse.php on line 74
[26-Sep-2020 10:42:26 UTC] PHP Warning:  Cannot modify header information - headers already sent by (output started at /Users/Minoa/Sites/wiki.minoa/w/includes/libs/composer/ComposerInstalled.php:32) in /Users/Minoa/Sites/wiki.minoa/w/includes/WebResponse.php on line 74
[26-Sep-2020 10:42:26 UTC] PHP Warning:  Cannot modify header information - headers already sent by (output started at /Users/Minoa/Sites/wiki.minoa/w/includes/libs/composer/ComposerInstalled.php:32) in /Users/Minoa/Sites/wiki.minoa/w/includes/WebResponse.php on line 74
  • MySQL 5.7.26
  • PHP 7.4.2

I am keen to resolve this error so that it does not overwhelm the PHP error logs. Just to clarify, I have updated all the extensions to be compatible with 1.35: the extra extensions are: Disambiguator, GeoData, LabeledSectionTransclusion, MobileFrontend, TemplateStyles, TimedMediaHandler, AbuseFilter, AntiSpoof, CheckUser, ConfirmAccount, DismissableSiteNotice, Echo, SandboxLink, UploadsLink, UserMerge. Minoa (talk) 10:51, 26 September 2020 (UTC)

On the Special:Version under the "Installed libraries" section what do you see? I guess there are some rows with empty content under the "library" column? If that's true, please post the remaining content of such rows here.
Also you can try to first delete the entire content of the vendor directory and get new one by issuing composer update --no-dev command, because probably the libraries metadata has been tempered with though I am not sure what could have caused this. – Ammarpad (talk) 09:19, 27 September 2020 (UTC)
Libraries list
  • [Blank row]
  • christian-riesen/base32 1.3.2
  • composer/semver 1.5.1
  • cssjanus/cssjanus 1.3.0
  • guzzlehttp/guzzle 6.5.4
  • guzzlehttp/promises 1.3.1
  • guzzlehttp/psr7 1.6.1
  • jakobo/hotp-php 1.0.1
  • liuggio/statsd-php-client 1.0.18
  • oojs/oojs-ui 0.39.3
  • pear/console_getopt 1.4.3
  • pear/mail 1.4.1
  • pear/mail_mime 1.10.8
  • pear/net_smtp 1.9.1
  • pear/net_socket 1.2.2
  • pear/pear-core-minimal 1.10.10
  • pear/pear_exception 1.0.1
  • pleonasm/bloom-filter 1.0.2
  • psr/container 1.0.0
  • psr/http-message 1.0.1
  • psr/log 1.1.3
  • ralouphie/getallheaders 3.0.3
  • symfony/polyfill-intl-idn 1.17.0
  • wikimedia/assert 0.5.0
  • wikimedia/at-ease 2.0.0
  • wikimedia/base-convert 2.0.1
  • wikimedia/cdb 1.4.1
  • wikimedia/cldr-plural-rule-parser 1.0.0
  • wikimedia/common-passwords 0.2.0
  • wikimedia/composer-merge-plugin 1.4.1
  • wikimedia/html-formatter 1.0.2
  • wikimedia/ip-set 2.1.0
  • wikimedia/ip-utils 1.0.0
  • wikimedia/less.php 3.0.0
  • wikimedia/object-factory 2.1.0
  • wikimedia/parsoid 0.12.0
  • wikimedia/php-session-serializer 1.0.7
  • wikimedia/purtle 1.0.7
  • wikimedia/relpath 2.1.1
  • wikimedia/remex-html 2.2.0
  • wikimedia/running-stat 1.2.1
  • wikimedia/scoped-callback 3.0.0
  • wikimedia/services 2.0.1
  • wikimedia/timestamp 3.0.0
  • wikimedia/utfnormal 2.0.0
  • wikimedia/wait-condition-loop 1.0.1
  • wikimedia/wikipeg 2.0.4
  • wikimedia/wrappedstring 3.2.0
  • wikimedia/xmp-reader 0.7.0
  • wikimedia/zest-css 1.1.3
  • zordius/lightncandy 1.2.5
I also made sure that I used composer under PHP 7.4.2. Minoa (talk) 23:07, 1 October 2020 (UTC)
I came across what I believe to be a similar problem today. When I navigate to the Special:Version page I get multiple notices about unidentified indexes in:
...\libs\composer\ComposerInstalled.php (on lines 30, 31, & 32)
Under "Installed Libraries" of the Special:Version page there is nothing listed. I did try deleting the contents of the vendor directory and reinstalling with composer, but the problem did not go away. I did recently upgrade to Composer 2.0.8 which makes me suspicious that there is some incompatibility there. AdamPloof (talk) 19:25, 9 February 2021 (UTC)
I'm getting the same errors with Composer version 2.0.11, I'll try disabling extensions one by one and following the advice above. I had to install composer for a friend and came across this right after install and fixing Widgets extension which wouldn't install via its zip method for the friend doing it. Actually, no empty things under the library column.
Product Version
MediaWiki 1.35.0
PHP 7.4.12 (cgi-fcgi)
MySQL 5.7.28-log
ICU 57.1
Lua 5.1.5
In our case it was Extension:Widgets (Not to be confused with Gadgets which comes with MW. I had just finished filing another bug report for Article::getTouched was deprecated, so I don't think Widgets is fully 1.35 compatible... have folks here checked if they have Widgets installed?). I eliminated Disambiguator, LabeledSectionTransclusion, AbuseFilter, AntiSpoof, CheckUser, Echo and UserMerge first from our wiki by disabling one by one and retesting. TiltedCerebellum (talk) 06:25, 1 March 2021 (UTC)
@Minoa, did you by any chance use Composer 2 to install extensions? MediaWiki doesn't officially support it yet (maybe the merge plugin does). Cavila 14:52, 3 March 2021 (UTC)
Thank you for that. That's information I didn't see since it was only used to update an extension https://phabricator.wikimedia.org/T266417 Composer.
Funny I see a patch merged for this back in 2020 but received no message about it at all. I should have checked though. TiltedCerebellum (talk) 21:17, 3 March 2021 (UTC)
I'm in the same boat I'm afraid. Stuck in the middle of configuring MediaWiki because the Composer version that ships with Plesk is 2.0.7 (Plesk users are a little disgruntled about the situation). It really is unfortunate.
Widgets was a different story for me. No luck adding the extension and Smarty folder manually, but running Composer was what did it. Cavila 21:33, 3 March 2021 (UTC)
Yeah, composer install for my friend's server worked too when the zip version with manually added smarty (various versions) wouldn't work. I could use SSH to manually install an older composer version... but we had other errors from Widgets too https://phabricator.wikimedia.org/T276021 and extension conflicts in the past again emerging, so decided to just remove it for now. We were using it to embed youtube videos, screenshots linking off-site can replace that . We used it for a Sitenotice ad, replaced with theme edit. A FB widget also replaced with static image linking to FB too. Upgrade has been a bumpy process.
Admittedly, these are off-topic for this question, but, some other unanticipated stuff folks might run into during upgrade (to help prevent the goose chase we had):
Maybe that's too many issues for one topic :) Yes, upgrading MediaWiki and its extensions can be a right pain. I hope fixes will be available soon.
@Minoa, the vital bit in your post that I missed at first is "I also made sure that I used composer under PHP 7.4.2." Unfortunately for you, "MediaWiki is not compatible with PHP 7.4.0 to 7.4.2 due to an upstream bug. Use PHP 7.4.3 or later instead." (see also https://phabricator.wikimedia.org/T246594). If you can upgrade (or downgrade) to any of the recommended versions, that might work.
So use Composer 1.* and either PHP 7.4.3 or higher, or PHP 7.3.19 or higher. Cavila 08:39, 4 March 2021 (UTC)
Yeah, sorry was just summarizing with resolutions as to some of the other stuff we ran into on upgrade in case anyone else that might run into the same issues (we had quite a goose chase finding the resolutions for these) along side composer stuff. Admittedly, I should have gone searching for individual posts about each and posted each one there... but would have been really nice for us to find a post like that all in one place while attempting to upgrade. TiltedCerebellum (talk) 19:27, 4 March 2021 (UTC)
I understand. There's no central place for this, which is the sort of community effort you'd expect mediawiki.org could facilitate I guess. Information is available but it is little scattered across the mediawiki and phabricator platforms.
As for the Composer issue, I can see that patches are available. Maybe we should just wait for 1.35.2 to come out. Cavila 11:35, 5 March 2021 (UTC)
Yeah, I'm considering this too. My concern is that our host is bugging us to upgrade now, and 1.35.1 is incompatible with our host setup due to T235554. So, our wiki might be forced to use 1.35.0. We have pointed our host to that phab ticket to show we'd upgrade to current version if we could... they seem to think we should jump to 1.35.0 regardless. It's a lot of work to do that then to probably be expected to upgrade again shortly after though. I saw a patch merged for composer a while ago I thought, we pulled the updated branch and thinking this wouldn't be an issue. TiltedCerebellum (talk) 00:57, 6 March 2021 (UTC)
Good news! I pulled the latest updates for 1.35.1 and got things working again. The warning is still there, but is of no real consequence (except that you can't use the --no-plugins parameter while updating Composer - not that it is necessarily a good idea). Thanks to the developers who've been quick to jump into it. Cavila 10:14, 6 March 2021 (UTC)
Right on. Glad you can use that one. Wish we could. TiltedCerebellum (talk) 18:04, 6 March 2021 (UTC)
The discussion above is closed. Please do not modify it. No further edits should be made to this discussion.

SMTP settings break site

Hello,

I've added the SMTP settings into localsettings.php but when I do that and then go create an account, the page just keeps loading. If I remove it, then everything works but obviously no e-mail is sent out. I'm not sure what I'm typing incorrectly. This is what I added into the file:


$wgSMTP = [

    'host'     => 'giow1117.siteground.us', // could also be an IP address. Where the SMTP server is located

    'IDHost'   => 'mysitesdomainname',      // Generally this will be the domain name of your website (aka mywiki.org)

    'port'     => 465,                 // Port to use when connecting to the SMTP server

    'auth'     => true,               // Should we use SMTP authentication (true or false)

    'username' => 'myusername',     // Username to use for SMTP authentication (if being used)

    'password' => 'mypassword'       // Password to use for SMTP authentication (if being used)

];


Any help appreciated! 24.45.134.47 (talk) 15:47, 26 September 2020 (UTC)

can you normally send email through that smtp server? Maybe its hanging causing mw to hang. Bawolff (talk) 00:22, 27 September 2020 (UTC)
I can send email using the webmail through my cpanel. Is there another way to check it? Thanks for replying 24.45.134.47 (talk) 13:56, 27 September 2020 (UTC)
So I tested the settings on an SMTP test tool on a site and the credentials seem to work. When I plug in the information into localsettings.php and go try and create an account, the page just stalls and it never sends an email or gives you confirmation of new account setup. I cannot figure out what I'm doing wrong. Dannyelectron (talk) 17:05, 27 September 2020 (UTC)
You could test with something like Thunderbird, and try and send an email. Ideally you would try and send an SMTP based email directly from your server but from some different program, to check if it is mediawiki or the SMTP server with the problem.
Check also your php error log for any information. Bawolff (talk) 03:38, 28 September 2020 (UTC)
I ended up switching hosts and everything seems better. I'm not sure what was officially wrong but thanks for the help everyone. Dannyelectron (talk) 14:51, 19 October 2020 (UTC)

Can you make spam prevention your software’s default?

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


Yes, I realize that Manual:FAQ#Anti-spam already exists, but not being a sysop it is of very limited use to me right now. This spam prevention should be default regardless: I’ve noticed that the spambots all have patterns like generic real names, sometimes with meaningless numbers attached, and they tend to link to similar websites. Even after blocking all of these things indefinitely, they just keep coming back. In some cases I’ve actually seen these things overtake entire projects; they’re only unable to do so on mine because new accounts require moderator approval, but I am still getting very tired of cleaning up these things when I could be concentrating on something more productive.

Sadly, I have a feeling that you won’t directly intervene to solve this ongoing problem, but I am just so frustrated right now that I don’t know what else to do but wait (im)patiently for the sysop to return. Romanophile (talk) 19:10, 26 September 2020 (UTC)

SpamBlacklist is an option in the installer. That is about as default as it gets. MediaWiki is used for many different purposes, spam blacklist isn't appropriate for all of them. Bawolff (talk) 20:05, 26 September 2020 (UTC)
The discussion above is closed. Please do not modify it. No further edits should be made to this discussion.

Strange message in VisualEditor

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.


Recently activated the Extension: VisualEditor in my wiki, and it has been displaying this message below:

There is no revision with ID NaN.

This happens when I edit a page with information already contained, because when create a new page clean doesn't happen, saves normally, but when I will re-edit the message above appears, I wanted to know what it is, and why does it appear? WikiUser22222 (talk) 20:35, 26 September 2020 (UTC)

its some sort of bug in the extension. NaN stands for not a number which generally means a logic error of some sort happened.
You could try filing a bug in https://phabricator.wikimedia.org but they will want to know all the details of your setup. Bawolff (talk) 21:04, 26 September 2020 (UTC)
Just a question? This is solved by installing the RESTbase server, because I use parsoid. WikiUser22222 (talk) 22:01, 26 September 2020 (UTC)
The discussion above is closed. Please do not modify it. No further edits should be made to this discussion.

after upgrade to 1.35.0 get error message about LatestSkinVersionRequirement not found

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


[php7:error] PHP Fatal error: Uncaught Error: Class 'Vector\\FeatureManagement\\Requirements\\LatestSkinVersionRe

quirement' not found in /var/www/skins/Vector/includes/ServiceWiring.php:52\nStack trace:\n#0 /var/www/vendor/wikimedia/services/src/ServiceContainer.php(447

): Wikimedia\\Services\\ServiceContainer->{closure}(Object(MediaWiki\\MediaWikiServices))\n#1 /var/www/vendor/wikimedia/services/src/ServiceContainer.php(416): Wikimedia\\Se

rvices\\ServiceContainer->createService('Vector.FeatureM...')\n#2 /var/www/skins/Vector/includes/SkinVector.php(82): Wikimedia\\Services\\ServiceContainer->getService('Vecto

r.FeatureM...')\n#3 /var/www/skins/Vector/includes/SkinVector.php(47): SkinVector->isLegacy()\n#4 /var/www/includes/OutputPage.php(2497): SkinVector->getDefa

ultModules()\n#5 /var/www/includes/OutputPage.php(2604): OutputPage->loadSkinModules(Object(SkinVector))\n#6 /var/www/includes/exception/MWExceptionRenderer.

php(153): Outp in /var/www/skins/Vector/includes/ServiceWiring.php on line 52, referer: https://www.example.com/wikitiki/index.php/Special:Version 87.110.102.230 (talk) 21:07, 26 September 2020 (UTC)

You should also update the Vector skin to the corresponding 1.35 branch. – Ammarpad (talk) 05:43, 27 September 2020 (UTC)
thanks!
at first I open .tar.gz with Midnight Commander and copy over previous version of Skins and it gives me this error
after your advice I use tar -xvzf mediawiki.1.35.0.tar.gz and then copy Vector to Skins and now all works without errors
then I do an experiment - compare to Vector folders:
diff -r -q Vector.tar Vector
and get:
Only in Vector/includes/FeatureManagement/Requirements: LatestSkinVersionRequirement.p
Only in Vector.tar/includes/FeatureManagement/Requirements: LatestSkinVersionRequirement.php
Only in Vector/tests/phpunit/integration/FeatureManagement/Requirements: LatestSkinVer
Only in Vector.tar/tests/phpunit/integration/FeatureManagement/Requirements: LatestSkinVersionRequirementTest.php
Only in Vector/tests/phpunit/unit/FeatureManagement/Requirements: DynamicConfigRequire
Only in Vector.tar/tests/phpunit/unit/FeatureManagement/Requirements: DynamicConfigRequirementTest.php
looks like Midnight Commander truncates filename after 77 char - very strange behavior - I must it report to Debian developers
thanks again @Ammarpad 87.110.102.230 (talk) 21:33, 27 September 2020 (UTC)
interestingly...
if I archive 'mediawiki-1.35.0' with
tar -czvf mediawiki-1.35.0.tar.gz mediawiki-1.35.0
I get 48702355 .tar.gz file size instead of 48039474 original file size
and "unarchiving" it with Midnight Commander don't truncates pathname
that shows, that files at mediawiki.org isn't built with same (take one or more):
- gz,
- tar,
- commandline.
as on my Debian 10 (up-to-date) system 87.110.102.230 (talk) 22:57, 27 September 2020 (UTC)
by link https://releases.wikimedia.org/mediawiki/1.35/mediawiki-1.35.0.tar.gz you will get archive with corrupted filenames 195.211.205.84 (talk) 17:19, 29 September 2020 (UTC)
wikimedia.org hosts proper and correct file
there is problem with used 'tar' - is it GNU, ISO or something else, and Midnight Commander uses some version, that corrupts when untars archive
it is very old problem:
Midnight Commander ticket #2201 is about 10 years old Ieleja (talk) 09:08, 30 September 2020 (UTC)
The discussion above is closed. Please do not modify it. No further edits should be made to this discussion.

Hangul processing error in localsettings.php

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


Hello.

To change the name of my wiki, I changed $wgSitename to '대탈출위키' in localsetting.php. Then the wiki name is displayed like this in the browser.

If I type in English, it is displayed normally. Probably there is an error in Hangul processing within localsettings.php. How can I fix it? Thank you. GTX1060 (talk) 04:42, 27 September 2020 (UTC)

did you edit your LocalSettings.php file in UTF-8?
Which charset does your browser think the website is? (It should be utf-8). What is the content-type header sent by the server?
If you can link to your wiki (actual wiki not a screenshot) that may be helpful to check charset issues. Bawolff (talk) 06:43, 27 September 2020 (UTC)
My website address is http://www.escapewiki.org.
I don't understand exactly the phrase 'Which charset does your browser think the website is?' However, it is presumed to be UTF-8 when viewed as this. 'What is the content-type header sent by the server?' I don't understand. Are you asking how to transfer the Localsettings.php file to the server? I work on a pc and then send it to the server with cyberduck.
I am lacking in server expertise. Please understand if it is difficult to understand. GTX1060 (talk) 07:24, 27 September 2020 (UTC)
the content-type is how your web browser knows which character set to use. It looks ok.
I see the sitename was changed back to english. Can you tell me what the output of http://www.escapewiki.org/wiki/api.php?action=query&meta=siteinfo is when the sitename is in hangul?
I think the most likely situation is the text editor you are using to edit LocalSettings.php is working in EUC-KR mode instead of UTF-8 mode. See if your text editor has any options related to character set/encoding/charset.
As an alternative you could try setting:
$wgSitename = "\xEB\x8C\x80\xED\x83\x88\xEC\xB6\x9C\xEC\x9C\x84\xED\x82\xA4";
Which should get turned back into the correct hangul by mediawiki. Bawolff (talk) 08:35, 27 September 2020 (UTC)
Setting it to UTF-8 mode in the text editor solved the problem. Always thank you for your kind help. GTX1060 (talk) 09:28, 27 September 2020 (UTC)
The discussion above is closed. Please do not modify it. No further edits should be made to this discussion.

ShortURL doesn't work with "Category:Index" pages

In my old post I had some issues with shortURLs. Everything works now...I did some changes and started to use Categories because it makes nice alphabetical view of all pages compared to normal Index page.


For some unknown reason Category pages keep using server full path, ignoring document root set in Apache2 virtual hosts.


ServerName eh.hajes.org redirected automatically to https version

document root /var/www/humanica


So far everything else use shortURL and eh.hajes.org/page


It looks like some issues with redirect or so.


wikimedia site

If you check out above by mentioned web site and try one of categories...you get "empty page info"


should be https://eh.hajes.org/Category:automotive but it uses https://eh.hajes.org/humanica/Category:automotive


so far, I have found kludge to simply use URL as link instead of [[:Category:automotive]]


any suggestions, please? Haj3s29a (talk) 15:06, 27 September 2020 (UTC)

does running refreshLinks.php fix it? Does making a dummy edit to LocalSettings.php fix it?
It looks like the parser cache is just outdated. Normally any edit to LocalSettings.php (the exact file, not any file included by it) should fix that. Bawolff (talk) 20:02, 27 September 2020 (UTC)
thanks for reply.
refreshLinks.php didn't find any problems and did not resolve this issues.
edit to LocalSetting.php returned all to normal for now. See how it works, it may cache problem because just three days ago it worked...then it did not work. I hope it resolves the issue.
I cannot find any reset or empty cache in wikimedia. Haj3s29a (talk) 20:33, 28 September 2020 (UTC)
I have tried whether it works or not at work...sadly, once again it doesn't work. It makes me wonder where is problem Haj3s29a (talk) 14:46, 29 September 2020 (UTC)
if it works sometimes but then turns back,could possibly mean you have two mediawiki installs with different LocalSettings.php (or e.g. a job runner script with a different LocalSettings.php) Bawolff (talk) 02:35, 30 September 2020 (UTC)
it is possible because my original wiki has been many times upgraded.
once, I migrated my wiki to a new server/ISP...it stopped to work properly.
I have installed a new clean install and imported database - there is possibility something is mixed up Haj3s29a (talk) 17:09, 30 September 2020 (UTC)

amp iabot

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


https://en.wikipedia.org/wiki/Talk:Isfahan#AMP

i removed amp from links two days ago still web archive does not rescue links Baratiiman (talk) 15:58, 27 September 2020 (UTC)

See the reply on English Wikipedia. I don't understand what you're asking, or what web archive should rescue something somewhere, sorry. Malyacko (talk) 16:14, 27 September 2020 (UTC)
https://en.wikipedia.org/wiki/Talk:Isfahan#amp_project Baratiiman (talk) 16:19, 27 September 2020 (UTC)
Thanks. What does this have to do with the MediaWiki software itself? Malyacko (talk) 16:50, 27 September 2020 (UTC)
The discussion above is closed. Please do not modify it. No further edits should be made to this discussion.

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


Hi

New to Mediawiki.

Have completed installing (successfully I think) CirrusSearch with the following steps completed.

MediaWiki extension: CirrusSearch

---------------------------------

Installation

------------

Get Elasticsearch up and running somewhere. Elasticsearch v6.x is only supported but 6.5.4 or higher is

recommended.

Place the CirrusSearch extension in your extensions directory.

You also need to install the Elastica MediaWiki extension.

Add this to LocalSettings.php:

wfLoadExtension( 'Elastica' );

wfLoadExtension( 'CirrusSearch' );

$wgDisableSearchUpdate = true;

Configure your search servers in LocalSettings.php if you aren't running Elasticsearch on localhost:

There are other $wgCirrusSearch variables that you might want to change from their defaults.

Now run this script to generate your elasticsearch index:

php $MW_INSTALL_PATH/extensions/CirrusSearch/maintenance/updateSearchIndexConfig.php

Now remove $wgDisableSearchUpdate = true from LocalSettings.php.  Updates should start heading to Elasticsearch.

Next bootstrap the search index by running:

php $MW_INSTALL_PATH/extensions/CirrusSearch/maintenance/forceSearchIndex.php --skipLinks --indexOnSkip

php $MW_INSTALL_PATH/extensions/CirrusSearch/maintenance/forceSearchIndex.php --skipParse

Note that this can take some time.  For large wikis read "Bootstrapping large wikis" below.

Once that is complete add this to LocalSettings.php to funnel queries to ElasticSearch:

$wgSearchType = 'CirrusSearch';


When I enter text into the search window and execute, I get a search failure error.

Are there more steps I need to follow? How do I find what error(s) I am experiencing? Tiredoldman7777 (talk) 17:03, 27 September 2020 (UTC)

Try looking in mediawiki debug logs maybe (See How To Debug).
Verify that elasticsearch is actually running
Just to check, you know right, that for instructions like php $MW_INSTALL_PATH/extensions/CirrusSearch/maintenance/forceSearchIndex.php --skipParse either you need to setup the $MW_INSTALL_PATH variable, or replace with the directory you installed mediawiki in (So if your LocalSettings.php is in the directory /var/www/html/w/ then you would run php /var/www/html/w/extensions/CirrusSearch/maintenance/forceSearchIndex.php --skipParse . )
Please include exact text of any error messages Bawolff (talk) 06:33, 28 September 2020 (UTC)
Hi. Succeeded in creating a debug log.
Updated my localSettings.php with
## https://www.mediawiki.org/wiki/Manual:How_to_debug 28 Sep 2020
error_reporting( -1 );
ini_set( 'display_errors', 1 );
$wgShowExceptionDetails;
$wgDebugLogFile =
"/home/xxx/public_html/Learning/debug/learningDebug.log";
and saved the file.
Next I was in a page other than the home page.
Selecting home page created over 1500 entries. Pretty much useless to me.
ON the php issue, I opened a terminal, navigated to the directory the forceSearchIndex.php file lives and executed the file using (as an example) php forceSearchIndex.php - skipParse and received about 12 lines of results. Thus I assume I ran the file correctly. Tiredoldman7777 (talk) 22:36, 28 September 2020 (UTC)
no further help so I assume there is no answer. Tiredoldman7777 (talk) 11:20, 30 September 2020 (UTC)
The discussion above is closed. Please do not modify it. No further edits should be made to this discussion.

Database unblock

how to unblock my wiki database . 103.25.248.245 (talk) 06:09, 28 September 2020 (UTC)

I don't understand the question. Bawolff (talk) 06:29, 28 September 2020 (UTC)
I blocked the database while logged in.Can't login after logging out.That's why I can't unblock the database 103.25.248.245 (talk) 06:50, 28 September 2020 (UTC)
what do you mean by you "blocked the database"? Generally speaking, blocking is not something you can do to a database (except in the firewall sense) Bawolff (talk) 07:51, 28 September 2020 (UTC)

wikipedia farsi

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


i can use visual editor, old editor, text editor 2017 in wikipedia english without any hustle

but in wikipedia farsi chrome crashes in any editor if the page is more than a couple lines of text why is that Baratiiman (talk) 07:44, 28 September 2020 (UTC)

@Baratiiman If your web browser application crashes, then please file a bug report in the issue tracker of your web browser. Web browsers should never crash because of content of a website that they try to display.
If you manage the web browser not to crash but VisualEditor does not load, then follow Help:Locating broken scripts. In general, see How to report a bug for all the required information if you think that there is a bug in Wikimedia code somewhere. Malyacko (talk) 09:47, 28 September 2020 (UTC)
The discussion above is closed. Please do not modify it. No further edits should be made to this discussion.

I'm struggling to setup the Bootstrap extension and Chameleon skin on Mediawiki 1.35

I'm running mediawiki on Windows with Xampp. I installing the Chameleon skin by putting the folder in the extensions folder and adding wfLoadSkin( 'Chameleon' ); to localSettings. I installed Bootstrap with the Windows instructions , and added wfLoadExtension( 'Bootstrap' ); to localSettings. Chameleon doesn't work whether or not I use a premade XML layout nor my custom one (which works on Mediawiki 1.34.2).


Bootstrap Installation method 2 doesn't work either, and for Installation method 1, entering in composer COMPOSER=composer.local.json composer require --no-update mediawiki/bootstrap:~4.0returns Command "=composer.local.json" is not defined (despite composer.local.json existing in my mediawiki directory if that helps). How can I get the Chameleon skin working on Mediawiki 1.35? YousufSSyed (talk) 11:09, 28 September 2020 (UTC)

I think those are third-party, skin and extension (not made by MediaWiki). Have you tried posting on that extension's extension talk/discussion page and reading it's detail there first (this page's details mentions that for extensions check first on their extension page)? I see some existing asked and answered questions regarding installation of that extension there.
Extension:Bootstrap
Extension talk:Bootstrap
And also on the skin's pages?:
Skin:Chameleon
Skin talk:Chameleon TiltedCerebellum (talk) 03:39, 29 September 2020 (UTC)

Special:MostInterwikis is empty

Hi. Even though there are several interwiki links on this wiki, the Special:MostInterwikis page says "There are no results for this report." when it should really be listing the number of interwiki links. Any ideas what may cause this? Reception123 (talk) 11:21, 28 September 2020 (UTC)

looks fine to me https://www.mediawiki.org/wiki/Special:MostInterwikis Bawolff (talk) 18:59, 28 September 2020 (UTC)

Unable to install Mediawiki 1.35.0

Hi,


I am unable to install Mediawiki 1.35.0 on my server. It is giving me following error when I try to run installer on PHP 7.3.22 and Mysql 5.7


Fatal error: Uncaught Error: Class 'Liuggio\StatsdClient\Factory\StatsdDataFactory' not found in [Path to mediawiki]/includes/libs/stats/BufferingStatsdDataFactory.php:35 Stack trace: #0 [Path to mediawiki]/includes/AutoLoader.php(109): require() #1 [internal function]: AutoLoader::autoload('BufferingStatsd...') #2 [Path to mediawiki]/includes/ServiceWiring.php(1193): spl_autoload_call('BufferingStatsd...') #3 [Path to mediawiki]/vendor/wikimedia/services/src/ServiceContainer.php(447): Wikimedia\Services\ServiceContainer->{closure}(Object(MediaWiki\MediaWikiServices)) #4 [Path to mediawiki]/vendor/wikimedia/services/src/ServiceContainer.php(416): Wikimedia\Services\ServiceContainer->createService('StatsdDataFacto...') #5 [Path to mediawiki]/includes/MediaWikiServices.php(1225): Wikimedia\Services\ServiceContainer->getService('StatsdDataFacto...') #6 [Path to mediawiki]/includes/ServiceWiring in [Path to mediawiki]/includes/libs/stats/BufferingStatsdDataFactory.php on line 35 2405:201:12:1038:68EE:1228:F195:BD9 (talk) 12:11, 28 September 2020 (UTC)

Is that on a Microsoft Windows machine? See also https://phabricator.wikimedia.org/T259335 and https://phabricator.wikimedia.org/T166969 Malyacko (talk) 17:32, 28 September 2020 (UTC)
NO. I am trying to install on a linux server with CentOS 7 2405:201:12:1038:5C9C:D763:C89F:5C3 (talk) 07:41, 29 September 2020 (UTC)
Try this SO answer and see if it helps. MarkAHershberger(talk) 00:07, 30 September 2020 (UTC)
The issue regarding 1.35.0 and 7-Zip on Windows 10 machines has not been resolved. I just downloaded tar and generated a "@PaxHeader" file as part of unzipped files. 47.221.214.154 (talk) 16:30, 29 September 2020 (UTC)
While installing Mediawiki 1.31.10 and 1.34.4 on the latest xampp-server 7.4.11 works OK on a Windows 10 machine, trying to start 1.35 for setting up the wiki ends in a bunch of error-messages.
You advised other complaining users not to use 7-zip - what a missleading "help"! - Winzip produces the same problems.
I solved the problem with composer version 1 but only after downgrading from the actual composer version 2 back to version 1.
It would be nice, if someone would test new versions of mediawiki on windows as this operating system is used by up to 70% of all PC (Statistica.com).
At least after complains it would be better to test and fix the errors or advise how to solve the problems - instead of fending users.
I'm disappointed. 2A01:8B81:4C00:5B00:B10E:2A36:E2C5:37EA (talk) 13:35, 19 November 2020 (UTC)

Unable to save

Hi,


I am unable to save new articles I've created. The message "Something went wrong" appears as well as "HTTP 404". 147.1.235.120 (talk) 12:34, 28 September 2020 (UTC)

On which website (full link)? Malyacko (talk) 17:31, 28 September 2020 (UTC)

Reviews marked in the wrong language, despite editing the field

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.


Ever since I posted a review in Spanish, LibraryThing marks all my new reviews as being in Spanish, even though they're in English (and for books in English)! I edited and saved the field on the individual reviews to English and made it the default, but the reviews revert to being marked as being in Spanish nonetheless.

This is them:

http://www.librarything.com/review/190027125

http://www.librarything.com/review/104565492 GiovanniGF (talk) 13:41, 28 September 2020 (UTC)

@GiovanniGF Welcome to the support desk for MediaWiki. How is your question related to MediaWiki, and how is "LibraryThing" related to MediaWiki? Malyacko (talk) 17:31, 28 September 2020 (UTC)
LibraryThing has a wiki and the help link in the sidebar needs to be updated. I've found a few new wikis this way and asked them to update their sidebars. MarkAHershberger(talk) 23:54, 29 September 2020 (UTC)
Asked them to update the help link in their sidebar here. MarkAHershberger(talk) 00:04, 30 September 2020 (UTC)
The discussion above is closed. Please do not modify it. No further edits should be made to this discussion.

Calling a template Template:Info/Biografia .... returns Erro em Lua em Módulo:Categorização_AD_e_AB_de_outras_wikis na linha 173: attempt to index field 'wikibase' (a nil value).

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,


Calling a template {{Info/Biografia .... }}, apparently all template layout and data shows correctly, however it returns in the begining of the page this sentence "Erro em Lua em Módulo:Categorização_AD_e_AB_de_outras_wikis na linha 173: attempt to index field 'wikibase' (a nil value)."

Script Error:

Erro em Lua em Módulo:Categorização_AD_e_AB_de_outras_wikis na linha 173: attempt to index field 'wikibase' (a nil value).

Backtrace:

  1. (tail call): ?
  2. Módulo:Categorização_AD_e_AB_de_outras_wikis:173 na função "chunk"
  3. mw.lua:511: ?
  4. (tail call): ?
  5. [C]: na função "xpcall"
  6. MWServer.lua:99: na função "handleCall"
  7. MWServer.lua:313: na função "dispatch"
  8. MWServer.lua:52: na função "execute"
  9. mw_main.lua:7: na parte principal
  10. [C]: ?


**************

Editando Módulo:Categorização AD e AB de outras wikis:

local p = { }

....

function p.badgesCategories( frame )

173 local entity = mw.wikibase.getEntityObject()

   local wikitext = {}
   local categoryNs = mw.site.namespaces[14].name
   if not entity then
       return 
   end
  
   for siteid, linkTable in pairs( entity.sitelinks ) do
       for i, badgeId in ipairs( entity.sitelinks[ siteid ].badges ) do
           if badgesCategory[ badgeId ] and string.sub(siteid, -4) == 'wiki' then
               local prefix = linkCategoryPrefix[ siteid ] or linkCategoryPrefix.default or 
               local main = badgesCategory[ badgeId ] or 
               local suffix = linkCategorySuffix[ siteid ] or linkCategorySuffix.default or 
               local category = string.format('%s:%s', categoryNs, prefix .. main .. suffix )
               table.insert( wikitext, category )
           end
       end
   end
   return table.concat( wikitext )

end

...

**********

I already lost hours trying to search for a solution to fix that issue, i even tried to install the Wikibase Extension cause the command in line 173 is refering "wikibase" , but this installation show me a blank page in my mediawiki site when i try to add the parameteres like "require_once "$IP/extensions/Wikibase/repo/Wikibase.php", etc to my LocalSettings.php.


So, do you have any solution to fix this issue ?

If I really need to properly install and config the Wikibase Extension, can you help me in it ?

And as a desesperated solution, as my called infobox is working well after all, is that possible to config some parameter or any work around to disable those kind of error messages (Scribunto/Lua messages I think), to appears on site pages ?


thanks DavidCou (talk) 17:24, 28 September 2020 (UTC)

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

File uploading issue in Schoolwiki

Please visit this link. I would like to know the reason why I am encountering following error:

libgomp: Thread creation failed: Resource temporarily unavailable Adithyak1997 (talk) 19:01, 28 September 2020 (UTC)

probably $wgMaxShellMemory too low. Bawolff (talk) 20:21, 28 September 2020 (UTC)

Tools remove

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


How to remove Tools from my wiki sitebar? 103.25.248.239 (talk) 07:06, 29 September 2020 (UTC)

How to remove Tools from my wiki Sidebar 103.25.248.239 (talk) 07:21, 29 September 2020 (UTC)
Depends on your skin.
For most skins, try putting the following in the page named MediaWiki:Common.css
#p-tb { display: none}
Bawolff (talk) 08:46, 29 September 2020 (UTC)
thanks 103.25.251.236 (talk) 09:30, 29 September 2020 (UTC)
The discussion above is closed. Please do not modify it. No further edits should be made to this discussion.

signing 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 have not use you for quite some time I live in Australia and my account won't let me sign in or create a new account please help 2001:8003:6A15:3D01:5448:8B28:60C7:FAF2 (talk) 08:03, 29 September 2020 (UTC)

On which website? What's the error? See Special:PasswordReset if it is about mediawiki.org. Malyacko (talk) 09:08, 29 September 2020 (UTC)
The discussion above is closed. Please do not modify it. No further edits should be made to this discussion.

Question about user-groups (batch change and database values)

So a couple question about user groups.


1) Are there any user groups that can not be changed or deleted?

I read that (*, user, and autoconfirmed) are Implicit, does that mean can not be changed/deleted?

2) Is there a way to batch reassign users from one group to another?

3) When I use phpmyadmin to look at the user_groups table, the ug_group value for "contributor" is "636f6e7472696275746f72". If I wanted make other users contributors, could I just use an SQL query to set all their ug_group values to "636f6e7472696275746f72"?


Thanks! BubbaUsesWiki (talk) 08:20, 29 September 2020 (UTC)

  • and user cannot be changed. Other implicit groups can be, but it depends on how they are defined. See $wgAutopromote.
for 2 you could write a script.
for 3, probably would work (You would set it to "contributors" not the hex translation of "contributors") but it is not recommended approach and may have unforeseen consequences. Please use either the MediaWiki Api or or createAndPromote.php (Contrary to its name it can promote already existing accounts) Bawolff (talk) 08:44, 29 September 2020 (UTC)
Thanks!
So the createAndPromote.php script looks like something that could be very very useful!
Just a couple quick questions using this example:
php createAndPromote.php --bureaucrat --custom-groups=developer --force BubbaUsesWiki
1) If a user is added to a group, does that automatically remove them any group the are already in?
For example, If BubbaUsesWiki is in 'administrator' and 'user', would he now be in administrator, user, bureaucrat, and developer? Or just bureaucrat and developer?
2) And is there a wildcard for everyone?
Like : php createAndPromote.php --user --custom-groups=developer --force *
Thanks! BubbaUsesWiki (talk) 12:19, 29 September 2020 (UTC)
no wildcard and createAndPromote does not remove. You would have to get the list of users and then use a loop in a shell script or something.
See also API:User group membership Bawolff (talk) 16:05, 29 September 2020 (UTC)

Search topic about User-Sandbox?

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


I have read something about the sandbox in the user area, but I cannot find any information about it.

what can I imagine and how do I find the information about it? HandrikF (talk) 08:27, 29 September 2020 (UTC)

Some people create pages named User:MyUserName/sandbox (Special:MyPage/sandbox). They then use it as a sandbox. I'm not sure what you want to know. Bawolff (talk) 08:47, 29 September 2020 (UTC)
aha, thank you very much.
That's it!
i thought there was something special for the sandbox, but what you say makes sense. HandrikF (talk) 09:04, 29 September 2020 (UTC)
The discussion above is closed. Please do not modify it. No further edits should be made to this discussion.

I have few scripting error on my page. Please help me to solve them.

There are errors on my page. https://naijionary.elizia.net/index.php?title=Space

List of errors are:

Lua error: Paramètre « 3 » inconnu.

Lua error: Paramètre « tr » inconnu.

{{{3}}} Dev687 (talk) 12:22, 29 September 2020 (UTC)
See https://naijionary.elizia.net/index.php?title=Template:T Malyacko (talk) 12:51, 29 September 2020 (UTC)
Please see this post for a possible answer. MarkAHershberger(talk) 23:16, 29 September 2020 (UTC)

VisualEditor does not show existing page content

I am running MediaWiki 1.35 and I am trying to set up VisualEditor.
When I edit an existing page, VisualEditor is loading, but it does not show any page content. It shows headline and also categories, but the page itself is empty. The page content is missing.
What has to be changed to fix that?
Is there _any_ configuration needed to run VisualEditor?
I tried with
$wgVirtualRestConfig['modules']['parsoid'] = array(
    'url' => $wgServer . $wgScriptPath . '/rest.php',
);
but this is only guessing. The documentation page sadly does not help very much... Jörgi123 (talk) 16:58, 29 September 2020 (UTC)
Can you check your browser's console to see if any errors show up? If it is public, can you give us the URL? MarkAHershberger(talk) 23:11, 29 September 2020 (UTC)
I do have exactly the same problem with deurnewik.nl. For now I disabled the virtual editor.... 145.132.47.56 (talk) 20:04, 29 September 2020 (UTC)
Sorry, should be deurnewiki.nl 145.132.47.56 (talk) 20:06, 29 September 2020 (UTC)
Could you re-enable it so I can see what is happening? MarkAHershberger(talk) 23:10, 29 September 2020 (UTC)
Hi Mark..
I did enable the visualeditor on Deurnewiki,nl . I however did have to put the site to read-only to make sure users do not edit the pages resulting in empty pages.
The effect of an empty page in Visualeditor can be observed though...
I did mail you the Localsettings.php (passwords removed)
And I did run "composer update --no-dev" directly after 1.35 installation of the files and before running update.php
GJTokkel Gjtokkel (talk) 07:06, 30 September 2020 (UTC)
I didn't get a LocalSettings.php, but I would be very interested to see it.
When I loaded https://www.deurnewiki.nl/wiki/index.php?title=Categorie:Geschiedenis&veaction=edit The console gave several errors. One of them is addOnloadHook is not defined which seems to come from your Common.js. Could you remove that from your Common.js and see if anything changes?
Another error was "Unknown module: jquery.tabIndex" which, I think, comes from an extension, but I cannot tell which one right now. Make sure all your extensions are up to date.
Finally, it looks like you to not have Google analytics set up correctly. I say this because it tries to load a file from analytics.example.com, a non-existant domain. This really slows things down. MarkAHershberger(talk) 01:33, 1 October 2020 (UTC)
Did remove the common.js. Apparently had to add this 10 years ago as some workaround. Not needed anymore. But did not solve the problem.
Google analytics: indeed. Good catch. removed that... It;s there for yeaaarrsss... Copy-paste error from the past...
The extension with the "jquery.tabindex" I will persue... Perhaps some extension indeed that needs an update (although I think I have them all, but might have missed one)
Also I unpacked the tar.gz freshly on the site itself (no ftp-ing)... did not solve ths issue...
To be continued... Gjtokkel (talk) 18:12, 1 October 2020 (UTC)
checked all my extensions... All up-2-date No clue.... As I did not have any of this issue with my local xampp installation it is something specific with this server... Gjtokkel (talk) 19:34, 1 October 2020 (UTC)
I did sent you the error.log . I did see a clear error in that:
also the php version in the shell is symbolic-linked to php version 7.1. could that be an issue (php on web is 7.4)..
Error from error.log:
2020/10/01 21:07:44 [error] 3168#3168: *33010180 FastCGI sent in stderr: "PHP message: PHP Warning:  require(<cut>/vendor/composer/../../extensions/Validator/Validator.php): failed to open stream: No such file or directory in <cut>/wiki/vendor/composer/autoload_real.php on line 73PHP message: PHP Fatal error:  require(): Failed opening required '/<cut>/vendor/composer/../../extensions/Validator/Validator.php' (include_path='<cut>vendor/pear/console_getopt:/<cut>/vendor/pear/mail:<cut>vendor/pear/mail_mime:<cut>/vendor/pear/net_smtp:/<cut>/vendor/pear/net_socket:<cut>/vendor/pear/pear-core-minimal/src:<cut>/vendor/pear/pear_exception:.:/usr/share/php') in <cut>vendor/composer/autoload_real.php on line 73" while reading response header from upstream, client: <cut> server: <cut>, request: "POST /wiki/api.php HTTP/2.0", upstream: "fastcgi://unix:/var/run/php-fpm.<cut>.socket:", host: "<cut>", referrer: "<cut>/index.php?title=Willem_van_Schaijk_(1778-1864)&veaction=edit" Gjtokkel (talk) 06:52, 1 October 2020 (UTC)
I finally found the issue, and resolved it. It was due to nginx which was being used on my server. I had to switch to apache --> problem solved... Gjtokkel (talk) 09:12, 23 October 2020 (UTC)
Thanks for the reply, Mark.
The browser in fact is trying to load a non existing URL:
VisualEditor is trying to access this URL:
https://www.example.org/wiki/rest.php/v1/page/html/Main_Page?redirect=false&stash=true
which returns an error 404 with "The requested relative path (/v1/page/html/Main_Page) did not match any known handler".
However, with some guessing I found that at
https://www.example.org/wiki/rest.php/v1/page/Main_Page?redirect=false&stash=true
the page content would be returned.
Which setting has to be adjusted to make this work? Jörgi123 (talk) 18:15, 30 September 2020 (UTC)
I don't know. I discovered rest.php on one of my sites last night. The documentation for this is pretty poor. Could you file a bug and copy me? MarkAHershberger(talk) 01:23, 1 October 2020 (UTC)
Hmmm.. Weird... Does not trigger anything at me. Shall I copy fresh mw.1.35 download to rule out composer update issues? 145.132.47.56 (talk) 19:08, 30 September 2020 (UTC)
I have created https://phabricator.wikimedia.org/T264247 and added you there, Mark. Jörgi123 (talk) 16:22, 1 October 2020 (UTC)

Calling a template Template:Info/Biografia .... returns Erro em Lua em Módulo:Categorização_AD_e_AB_de_outras_wikis na linha 173: attempt to index field 'wikibase' (a nil value).

Hi,

Calling a template {{Info/Biografia .... }}, apparently all template layout and data shows correctly, however it returns in the begining of the page this sentence "Erro em Lua em Módulo:Categorização_AD_e_AB_de_outras_wikis na linha 173: attempt to index field 'wikibase' (a nil value)."

Script Error:

Erro em Lua em Módulo:Categorização_AD_e_AB_de_outras_wikis na linha 173: attempt to index field 'wikibase' (a nil value).

Backtrace:

  1. (tail call): ?
  2. Módulo:Categorização_AD_e_AB_de_outras_wikis:173 na função "chunk"
  3. mw.lua:511: ?
  4. (tail call): ?
  5. [C]: na função "xpcall"
  6. MWServer.lua:99: na função "handleCall"
  7. MWServer.lua:313: na função "dispatch"
  8. MWServer.lua:52: na função "execute"
  9. mw_main.lua:7: na parte principal
  10. [C]: ?

**************

Editando Módulo:Categorização AD e AB de outras wikis:

local p = { }

....

function p.badgesCategories( frame )

173 local entity = mw.wikibase.getEntityObject()

   local wikitext = {}
   local categoryNs = mw.site.namespaces[14].name
   if not entity then
       return 
   end
  
   for siteid, linkTable in pairs( entity.sitelinks ) do
       for i, badgeId in ipairs( entity.sitelinks[ siteid ].badges ) do
           if badgesCategory[ badgeId ] and string.sub(siteid, -4) == 'wiki' then
               local prefix = linkCategoryPrefix[ siteid ] or linkCategoryPrefix.default or 
               local main = badgesCategory[ badgeId ] or 
               local suffix = linkCategorySuffix[ siteid ] or linkCategorySuffix.default or 
               local category = string.format('%s:%s', categoryNs, prefix .. main .. suffix )
               table.insert( wikitext, category )
           end
       end
   end
   return table.concat( wikitext )

end

...

**********

I already lost hours trying to search for a solution to fix that issue, i even tried to install the Wikibase Extension cause the command in line 173 is refering "wikibase" , but this installation show me a blank page in my mediawiki site when i try to add the parameteres like "require_once "$IP/extensions/Wikibase/repo/Wikibase.php", etc to my LocalSettings.php.

So, do you have any solution to fix this issue ?

If I really need to properly install and config the Wikibase Extension, can you help me in it ?

And as a desesperated solution, as my called infobox is working well after all, is that possible to config some parameter or any work around to disable those kind of error messages (Scribunto/Lua messages I think), to appears on site pages ?

thanks DavidCou (talk) 22:56, 29 September 2020 (UTC)

You should not close a question and then ask the same question. It does not make a good impression.
Can you point to your wiki if it is public?
Did you see this other resolved question and try the answer provided? Error Lua in Module: Wikidata at line 118: attempt to index field 'wikibase' (a nil value) MarkAHershberger(talk) 23:06, 29 September 2020 (UTC)
it requires wikibase (i.e. wikidata) setup (presumably in a wikifarm like it is setup at wikimedia)
Are you sure that template is doing something you want to do? Bawolff (talk) 16:03, 30 September 2020 (UTC)

Problems with website layout after upgrading to 1.35

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


Hello all,

I have finally made an upgrade of my wiki to 1.35. Now it works fine, but I see some bug: If you scroll the page all top menu tab stays on the top of the page: https://wikireshebnik.ru/

Don't know how to resolve it? Can you please help? Fokebox (talk) 23:59, 29 September 2020 (UTC)

The problem is coming from this CSS page that contains the following:
  #mw-head {
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
  }
I'm not sure where that is set (codesearch is confusing me, atm) but maybe that will give you a clue. MarkAHershberger(talk) 00:31, 30 September 2020 (UTC)
I have also no idea where it comes from? from any file of previous MW version?! I checked Common.css file - there is no such code. Reuploaded folder with skins from MW 1.35 - I still have such bug. Fokebox (talk) 00:54, 30 September 2020 (UTC)
Try adding something to Commmon.css to override this the position bit. I think this should do it:
  #mw-head {
    position: relative;
  }
or something. I've played with it a bit and can't do anything with it. MarkAHershberger(talk) 05:30, 30 September 2020 (UTC)
I have made access to Commons.css& Tried to remove it or add your code - nothing helps ( Fokebox (talk) 08:15, 30 September 2020 (UTC)
Very strange things happens with new version. So I installed completely new MW 1.35 - of course all is fine, but as soon as I indicate my current DB (used by MW 1.29) - I see this bug, so it means that something wrong with DB.
One more thing: now Admin does not have a right to edit Mediawiki:Common.css - no idea how to fix it Fokebox (talk) 07:01, 30 September 2020 (UTC)
Let me describe the problem once again. I show what I have and what happens after upgrading from 1.29 to 1.35
As far as I understand the problem somehow connected with VisualEditor.
So in my updated MW the top tab stays always on top when I scroll the page down, which is weird. And the same time, when I edit a page in VisualEditor the toolbar that should always be on top of the page stays on top when page is scrolled down (all should be contra-versa):
Fokebox (talk) 09:28, 30 September 2020 (UTC)
I don't think its about the position:absolute on #mw-head.
The overflow-y: scroll rule on body is a more likely candidate, but I'm still not really sure.
Are you using the right version of Vector for your version of MediaWiki? Bawolff (talk) 10:01, 30 September 2020 (UTC)
Ok, I see what's happening.
In https://wikireshebnik.ru/index.php/MediaWiki:Common.css you have:
html {
 overflow:-moz-scrollbars-vertical;
 overflow-y:scroll;
 overflow-x:hidden
}
This interferes with a relatively recent change to vector where its setting overflow-y on the body. Having that prop on both the body and the html tag causes them to interfere with each other and produces what you are seeing (along with sometimes double scrollbars on the right-hand side, or at least wider right margins).
Try removing the above lines from MediaWiki:Common.css . In order to edit this file you need to give yourself interface administrator (Администраторы интерфейса) in Special:UserRights. Bawolff (talk) 10:09, 30 September 2020 (UTC)
Perfect! Now it all works fine! I don't even remember why I added this line to CSS )
The issue is resolved. I have other minor issues to resolve, but I will create separate topic on this.
THank you for you help! Fokebox (talk) 11:01, 30 September 2020 (UTC)
The discussion above is closed. Please do not modify it. No further edits should be made to this discussion.

Locate image files after database breakdown

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 just had to restore my database after a database corruption. Unfortunately the backup was over a month old so I've been doing quite a bit of work since then.

The text pages are lost but the images I've uploaded in this period are still there. How do I get them to work in the wiki created from the backup?

I tried adding an Image page for one of the files I knew existed. Example: A file called XX.png is present in the Image library but was uploaded after the backup I've used for the new wiki, so no Image page exists. I tried creating a page called File:XX.png and then ran rebuildImages.php but that didn't help, so wondering if any of you have an idea how to avoid having to re-upload all the newer files that already exist in the Image library. Tenzel Kim (talk) 07:15, 30 September 2020 (UTC)

rebuildImages.php --missing in theory is supposed to do that. Did you include the --missing argument? Bawolff (talk) 08:11, 30 September 2020 (UTC)
No. Didn't know about the --missing argument. Just tried it again using that argument and everything is fine. Thanks. Tenzel Kim (talk) 10:32, 30 September 2020 (UTC)
The discussion above is closed. Please do not modify it. No further edits should be made to this discussion.

Display rendered form when I search something

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 can't display a search result like Wikipedia or other Wiki.

Here is a search on Wikipedia with its display :

https://gyazo.com/20dda0af0cee63396c9caa0e050ca980


And this is how it shows on my side :

https://gyazo.com/7f47374202fe1db4690099c52c500283


How I can remove the HTML form ?

Thanks PaulH72 (talk) 14:27, 30 September 2020 (UTC)

Which MediaWiki version? Which "HTML form" exactly? Malyacko (talk) 16:53, 30 September 2020 (UTC)
wikipedia uses extension:CirrusSearch Bawolff (talk) 00:19, 1 October 2020 (UTC)
The discussion above is closed. Please do not modify it. No further edits should be made to this discussion.

No content displayed at Mobile version after upgrading to 1.35

Hello, I have finally upgraded MW from 1.29 to 1.30 and updated all extension that I use. What I have noticed is that some content is not displayed. i.e. I made a template that is a kind of navigation panel in the bottom of page:

Link 1

if I switch to mobile version this navigation panel is now simply displayed:

Link 2

I click to uncollapse the paragraph and see no navigation panel. What can it be? Fokebox (talk) 14:39, 30 September 2020 (UTC)

Can anyone help? Fokebox (talk) 19:14, 3 October 2020 (UTC)

VisualEditor Error: Parsoid/RESTBase server (HTTP 500) when useing Ä,Ü,Ö in Page Title

probably the fault of IIS -> switch to apache

I am using MediaWiki 1.35 specifically because I am new to all this, and Visual Editor is supposed to work out of the box.

But whenever I try to edit or create a page with an Umlaut (ä,ö,ü) in the title. I get Error 500 when saveing my Changes to the page.


its a fresh install on IIS and MySQL if that matters.


Is this a known problem, or can somebody help me out?

Thanks very much 89.26.47.65 (talk) 14:52, 30 September 2020 (UTC)

I can just guess that the problem might be in DB and its coding. What Version of DB do you use? Fokebox (talk) 16:18, 30 September 2020 (UTC)
i think its unlikely to be your database. You should check your iis logs and php error logs.
IIS used to be famous for poor support for non ascii characters when using rewrite rules, but presumably they have fixed it by this point. If you have the option i would reccomend using apache instead of IIS, even if using windows (mediawiki is better tested on apache) Bawolff (talk) 00:18, 1 October 2020 (UTC)
Hello and thanks for the replies.
i just double checked, the Database and the IIS are both set to use UTF-8 encoding. And the sitename gets stored properly in the DB.
I just had to bite the bullet and switch to Apache. it works now 89.26.47.65 (talk) 14:18, 1 October 2020 (UTC)
perhaps this issue will help:
Project:Support desk/Flow/2020/12#h-VisualEditor_:_Error_Parsoid/RESTBase_server_(HTTP_500)_when_edit_page_with_acce-2020-12-14T09:54:00.000Z
It mentions https://phabricator.wikimedia.org/T269673
and the solution at https://support.microsoft.com/en-us/help/2277918/fix-a-php-application-that-depends-on-the-request-uri-server-variable Arjanvdl (talk) 10:15, 24 January 2021 (UTC)

VisualEditor cannot create subpages nor save changes to them

In both cases, I get the error "Error contacting the Parsoid/RESTBase server (HTTP 404)"

These are my VisualEditor settings:

// Enable by default for everybody

$wgDefaultUserOptions['visualeditor-enable'] = 1;

// Optional: Set VisualEditor as the default for anonymous users

// otherwise they will have to switch to VE

$wgDefaultUserOptions['visualeditor-editor'] = "visualeditor";

// Don't allow users to disable it

$wgHiddenPrefs[] = 'visualeditor-enable';

// OPTIONAL: Enable VisualEditor's experimental code features

$wgDefaultUserOptions['visualeditor-enable-experimental'] = 1; YousufSSyed (talk) 19:10, 30 September 2020 (UTC)

All users, except one, are able to log into wiki

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


Hello, My wiki is set up to allow auto logins via Auth_remoteuser after SSO authentication.  All users except for one are able to log into the wiki, and I have not been able to determine why login is not working for this one user. Would someone be able to provide some direction on what could be the issue, and how I can resolve it. Thanks in advance.

The configuration consists of the following:

Apache 2.4

mediawiki 1.32.2

PHP 7.1.33

MySQL 5.7

Running on servers with Solaris 11.4  

Below are some messages I see in the debug log when this user, try to log into the wiki.  It appears to get the userid from the wikidb when setting up auto login, but then there’s a message “[authentication] MediaWiki\Auth\AuthManager::autoCreateUser: blacklisted."  I have searched that message and it seems to refer to LDAP.   I have double checked my configuration and I believe anything that was previously set for LDAP was removed or commented out. One thing I noticed is this userid is in all caps (BULSADE) below, but in the wikidb only the first letter is in cap (Bulsade) not sure if that's a problem where it may not be getting the correct userid info from the wikidb, even though this userid is only in the wikidb once. I have tried removing and re-adding the userid to the wikidb, but get the same results.

--- From the debug log ----

[session] Setting up auto login session for remote user name 'BULSADE' (mapped to MediaWiki user 'BULSADE', currently active as MediaWiki user 'BULSADE').

[session] SessionBackend "0ha83fotcvvc9fqjr1tcou9qgjl23j3a" data dirty due to dirty(): MediaWiki\Session\SessionManager->getSessionInfoForRequest/MediaWiki\Session\SessionManager->loadSessionInfoFromStore/MediaWiki\Extension\Auth_remoteuser\UserNameSessionProvider->refreshSessionInfo/MediaWiki\Session\Session->set/MediaWiki\Session\SessionBackend->dirty

[session] SessionBackend "0ha83fotcvvc9fqjr1tcou9qgjl23j3a" save: dataDirty=1 metaDirty=0 forcePersist=0

[authentication] MediaWiki\Auth\AuthManager::autoCreateUser: blacklisted in session 0ha83fotcvvc9fqjr1tcou9qgjl23j3a

[authevents] Autocreation attempt

Title::getRestrictionTypes: applicable restrictions to [[Main Page]] are {edit,move}

[ContentHandler] Created handler for wikitext: WikitextContentHandler

MediaWiki::preOutputCommit: primary transaction round committed

MediaWiki::preOutputCommit: pre-send deferred updates completed

MediaWiki::preOutputCommit: LBFactory shutdown completed

OutputPage::sendCacheControl: private caching; Wed, 30 Sep 2020 17:01:37 GMT **

Request ended normally Rallison11 (talk) 20:28, 30 September 2020 (UTC)

the case mismatch might be an issue if you have the antispoof extension enabled.
Other less likely things that can cause issues are abusefilter and TitleBlacklist Bawolff (talk) 03:35, 1 October 2020 (UTC)
I checked /etc/php/7.1/conf.d/extensions.ini, and do not see any of the mentioned extensions enabled. I also checked LocalSettings.php and did not see anything indicating the antispoof, abusefilter or TitleBlacklist is being used. Is there anything else I can check? Rallison11 (talk) 11:59, 1 October 2020 (UTC)
This has been resolved.
I kept seeing the userid in the wiki debug logs as all uppercase "BULSADE"  So I removed the userid 'bulsade' from the wiki database which I had done before. But this time re added it with all uppercase "BULSADE'.   Not sure why it was looking for uppercase for this userid, but apparently adding the userid to the wiki database with all uppercase resolved the issue.
The user is now able to get authenticated and logged into the wiki. Rallison11 (talk) 17:11, 5 October 2020 (UTC)
The discussion above is closed. Please do not modify it. No further edits should be made to this discussion.

Pretty Domain Name for Main Page

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


Hello


is there a way to make the Main Page show in the address bar as root, i.e. for example simply https://www.mediawiki.org/ instead of https://www.mediawiki.org/wiki/MediaWiki ?


So only for the Main Page, but not for any other page.


Thank you 85.255.235.204 (talk) 21:11, 30 September 2020 (UTC)

see $wgMainPageIsDomainRoot Bawolff (talk) 00:13, 1 October 2020 (UTC)
wow, thank you very much! 85.255.235.204 (talk) 01:09, 1 October 2020 (UTC)
The discussion above is closed. Please do not modify it. No further edits should be made to this discussion.
Category:Support desk archives using deprecated source tags Category:Support desk archives with syntax highlighting errors