Jump to content

Project:Support desk/Flow/2020/11

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

File name mistake

I uploaded a file to my wiki, then discovered the file name was incorrect. I changed the file name on my computer and deleted the wrongly named file on the wiki. However, now when I try to upload the same file (which is now correctly named), I can't because the wiki recognises that it's the same file as the one I deleted. How do I fix this? 124.149.204.223 (talk) 04:49, 1 November 2020 (UTC)

Well I managed to restore the file and upload it again, but the file has the wrong name and I really need to change it. Can anyone advise me please? 124.149.204.223 (talk) 06:10, 1 November 2020 (UTC)
if you have movefile rights you can just select move page on the image page to rename it.
You also should be able to upload it again if you select ignore warnings on the upload page. Bawolff (talk) 10:22, 1 November 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.


Как пополнить счет 89.35.254.130 (talk) 05:54, 1 November 2020 (UTC)

The MediaWiki software does not allow topping up. Wrong place. Malyacko (talk) 10:53, 1 November 2020 (UTC)
The discussion above is closed. Please do not modify it. No further edits should be made to this discussion.

MediaWiki does not load at all

Some PHP process got looped, server support managed to kill it. No logs to determine whats happened.

Hello,


I have encountered the first issue with my MadiaWiki installation. I was playing with Vector.CSS file yesterday when the site stopped loading. At all. It doesn not show any errors or misconfiguration alerts, it just keeps endlessly loading. I tried different pages, other than main page, still the same. I removed all extra extensions and rss whitelist form LocalSettings.php, still the same. Tried different devices and browsers. I placed a custom .html file in the main directory and it was accessible, it's not a domain problem. I tried Manual:How to debug but the files is not being written as nothing loads. Same with browser console, it's empty.


What my be the issue there?



While creating this thread I received a reply from my server helpdesk. They claim the PHP process got looped and caused the site not able to run. They attached a screenshot with the lsphp73 process endlessly running. Possible MediaWiki bug or misconfiguration in my files? Amfidiusz (talk) 08:58, 1 November 2020 (UTC)

it would be interesting to know what you put in the css. Ideally it would be good to know where mediawiki is stuck.
Try running manual:runJobs.php from the commandline (does it work?). You could try seeing if the api (especially actual api not the doc page) works and remove whatever you added to the css. You could also try manual:edit.php to edit from commandline. Bawolff (talk) 10:19, 1 November 2020 (UTC)
Thanks! I don't have access tothe commandline, it's a shared hosting.
I played with vector.css and mobile.css styles doing some minor changes to the background or font colors. I also placed my infoboxes styles in common.css. After the support broke the loop, they are accessible here:
https://wiki.starfield.pl/wiki/MediaWiki:Vector.css
https://wiki.starfield.pl/wiki/MediaWiki:Mobile.css (should be same as vector.css)
https://wiki.starfield.pl/wiki/MediaWiki:Common.css
Is there a way to avoid that issue in the future? Amfidiusz (talk) 11:33, 1 November 2020 (UTC)
Without knowing what happened, it is hard to know how to avoid it. If it does happen again, please raise the issue with us and we'll try to get some more information. Logs would be good. MarkAHershberger(talk) 17:31, 1 November 2020 (UTC)
maybe it could be an i18n recache event that somehow got stuck, but that doesnt quite sound right (if so adjusting manual:$wgCacheDirectory to somewhere writable might help). Really impossible to know without knowing what happened. Bawolff (talk) 18:29, 1 November 2020 (UTC)
Thank you, gentlemen! I will address my issue here next time it happens before contacting the server support desk. The last four days were alright, nothing has happened. Cheers! Amfidiusz (talk) 18:20, 5 November 2020 (UTC)
I have the same problem, but managed to work around it. When running ImportTextFiles.php, after about 10-20 files, the upload would loop (not progressing) without an error and memory/cpu would climb indefinitely.
My work-around is to call the script with one file at a time and add a 4 second sleep interval between each call. It has been working reliably that way for the last couple of hours.
I think there's an issue in ImportTextFiles with async handling of page updates. If the updates occur too quickly and the machine, DB or disk IO are too slow, then some sub-function is returning success to the ImportTextFiles.php program without actually completing the task. This needs to be changed so that updates are synchronous. PaulLCarter (talk) 06:20, 14 April 2021 (UTC)

How to Exclude NoIndex Pages From Sitemap? The noindex-tag is added via $wgNamespaceRobotPolicies or $wgDefaultRobotPolicies in LocalSettings.php (NOT via the on-page magic word: )

The following patches for the maintenance script generateSitemap.php from https://gerrit.wikimedia.org/r/c/620746 works only for the behavior switch magic word (), but does not remove pages marked 'noindex' via the LocalSettings.php from the sitemap.

I think there might be a solution to this because, if there wasn't, Wikipedia would have a problem excluding talkpages from its sitemap, which I think it doesn't: https://en.wikipedia.org/wiki/Wikipedia:Controlling_search_engine_indexing

Now, the wiki in question is by default noindex. Pages that are to be index have {{INDEX }} added to them but the entire wiki is noindex by default, because: $wgDefaultRobotPolicies = true; in LocalSettings.php. Thus the desire sitemap solution is to generate sitemap for pages that has __INDEX__ or {{INDEX }} in them or that indicate 'index' in the HTML output of the page.

diff --git a/maintenance/generateSitemap.php b/maintenance/generateSitemap.php
index 6060567..bc5e865 100644
--- a/maintenance/generateSitemap.php
+++ b/maintenance/generateSitemap.php

@@ -305,15 +305,27 @@
 	 * @return IResultWrapper
 	 */
 	private function getPageRes( $namespace ) {
-		return $this->dbr->select( 'page',
+		return $this->dbr->select(
+			[ 'page', 'page_props' ],
 			[
 				'page_namespace',
 				'page_title',
 				'page_touched',
-				'page_is_redirect'
+				'page_is_redirect',
+				'pp_propname',
 			],
 			[ 'page_namespace' => $namespace ],
-			__METHOD__
+			__METHOD__,
+			[],
+			[
+				'page_props' => [
+					'LEFT JOIN',
+					[
+						'page_id = pp_page',
+						'pp_propname' => 'noindex'
+					]
+				]
+			]
 		);
 	}
 
@@ -335,7 +347,13 @@
 			$fns = $contLang->getFormattedNsText( $namespace );
 			$this->output( "$namespace ($fns)\n" );
 			$skippedRedirects = 0; // Number of redirects skipped for that namespace
+			$skippedNoindex = 0; // Number of pages with __NOINDEX__ switch for that NS
 			foreach ( $res as $row ) {
+				if ( $row->pp_propname === 'noindex' ) {
+					$skippedNoindex++;
+					continue;
+				}
+
 				if ( $this->skipRedirects && $row->page_is_redirect ) {
 					$skippedRedirects++;
 					continue;
@@ -380,6 +398,10 @@
 				}
 			}
 
+			if ( $skippedNoindex > 0 ) {
+				$this->output( "  skipped $skippedNoindex page(s) with __NOINDEX__ switch\n" );
+			}
+
 			if ( $this->skipRedirects && $skippedRedirects > 0 ) {
 				$this->output( "  skipped $skippedRedirects redirect(s)\n" );
 			}

@Flounder ceo: @Bawolff: @Ammarpad: Goodman Andrew (talk) 10:31, 1 November 2020 (UTC)

wikipedia doesnt use sitemaps so doesnt have this problem.
Please dont ping people unless there is something specific you want to ask someone that only that person can answer. Bawolff (talk) 18:22, 1 November 2020 (UTC)

Zmiana zdjęć w 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.


Dzień dobry, z kim mogę się skontaktowac w sprawie podmiany zdjęcia osoby w wikipedia?

Chodzi o zdjęcie polityka ( na prosbę tegoz polityka), do zdjęcia mam prawa autorskie.

Pozdrawiam Againez (talk) 12:18, 1 November 2020 (UTC)

@Againez Welcome to the support desk for the MediaWiki software. For questions about some Wikipedia, please ask in a forum on that Wikipedia. For questions about images on Wikimedia Commons, please ask in a forum on Wikimedia Commons. Thanks! Malyacko (talk) 13:41, 1 November 2020 (UTC)
The discussion above is closed. Please do not modify it. No further edits should be made to this discussion.

Lost my login Email! how to change it?

Hi, I lost my email that I used when registered my account with MediaWiki .. how can I change it please?

because I don't want to create another username similar to my original username, anyone have an idea how to fix this?


Thanks! 88.244.253.112 (talk) 20:12, 1 November 2020 (UTC)

btw, I can't even contact the MediaWiki support, or I don't know where to contact them! 88.244.253.112 (talk) 20:16, 1 November 2020 (UTC)
Can someone please help? 88.244.253.112 (talk) 20:37, 1 November 2020 (UTC)
you can change the email associated with your account by going to Special:Preferences Bawolff (talk) 21:42, 1 November 2020 (UTC)
I can't even login .. I don't have my email and I can't remember my password
I can't even reset my password because I don't have my email .. this is my problem! 88.244.253.112 (talk) 23:04, 1 November 2020 (UTC)
If you neither know your (user)name nor your address nor have your keys, how do you think anyone else can help? Malyacko (talk) 23:53, 1 November 2020 (UTC)

LSN50 1.6.5ver firmware ugrade

This is the MediaWiki software support desk, user probably needs to contact someone from the 3rd party site they came from about their non-MediaWiki question.

I am after the 1.6.6ver firmware for AU915 region to implement the MOD=6 addition. It's not in the list of available downloads. Is it going to be published soon? 129.78.56.173 (talk) 23:58, 1 November 2020 (UTC)

It looks like you ended up here via this page on the Dragino wiki. The people on this wiki probably cannot help you with your problem. I would suggest this forum to find help since they seem to sell this equipment. MarkAHershberger(talk) 00:21, 2 November 2020 (UTC)

offshore admins

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 is there so many offshore admins in wikipedia farsi they are making their own crazy guidelines, it's far worse and scary than irish wiki Baratiiman (talk) 04:59, 2 November 2020 (UTC)

completely out of touch https://fa.wikipedia.org/wiki/%D8%B1%D8%AF%D9%87:%D9%85%D8%AF%DB%8C%D8%B1%D8%A7%D9%86_%D9%88%DB%8C%DA%A9%DB%8C%E2%80%8C%D9%BE%D8%AF%DB%8C%D8%A7 Baratiiman (talk) 05:01, 2 November 2020 (UTC)
This is offtopic. This page is for technical questions only, not wikimedia politics. you could try at meta:Wikimedia Forum, but i doubt they would care unless you have a really compelling argument. Bawolff (talk) 07:25, 2 November 2020 (UTC)
The discussion above is closed. Please do not modify it. No further edits should be made to this discussion.

PluggableAuthLogin Error from line 244

I installed a MediaWiki on a Docker in CentOS 8. I want to integrate LDAP. I installed the LDAP extensions and activated it in the LocalSettings.php file. Now, when I try to login in my wiki I get this error:

[c04f74d86c621c5c996ce413] /index.php/Spezial:PluggableAuthLogin Error from line 244 of /var/www/html/extensions/LDAPProvider/src/PlatformFunctionWrapper.php: Call to undefined function ldap_connect()

Backtrace:

#0 /var/www/html/extensions/LDAPProvider/src/PlatformFunctionWrapper.php(261): MediaWiki\Extension\LDAPProvider\PlatformFunctionWrapper->connect(string, integer) #1 /var/www/html/extensions/LDAPProvider/src/Client.php(99): MediaWiki\Extension\LDAPProvider\PlatformFunctionWrapper::getConnection(string) #2 /var/www/html/extensions/LDAPProvider/src/Client.php(87): MediaWiki\Extension\LDAPProvider\Client->makeNewConnection() #3 /var/www/html/extensions/LDAPProvider/src/Client.php(328): MediaWiki\Extension\LDAPProvider\Client->init() #4 /var/www/html/extensions/LDAPAuthentication2/src/PluggableAuth.php(81): MediaWiki\Extension\LDAPProvider\Client->canBindAs(string, string) #5 /var/www/html/extensions/PluggableAuth/includes/PluggableAuthLogin.php(36): MediaWiki\Extension\LDAPAuthentication2\PluggableAuth->authenticate(NULL, string, NULL, NULL, NULL) #6 /var/www/html/includes/specialpage/SpecialPage.php(600): PluggableAuthLogin->execute(NULL) #7 /var/www/html/includes/specialpage/SpecialPageFactory.php(635): SpecialPage->run(NULL) #8 /var/www/html/includes/MediaWiki.php(307): MediaWiki\SpecialPage\SpecialPageFactory->executePath(Title, RequestContext) #9 /var/www/html/includes/MediaWiki.php(940): MediaWiki->performRequest() #10 /var/www/html/includes/MediaWiki.php(543): MediaWiki->main() #11 /var/www/html/index.php(53): MediaWiki->run() #12 /var/www/html/index.php(46): wfIndexMain() #13 {main}


I already tried to install PHP 7.4 and PHP-LDAP but it's not working. How can I fix that? 217.243.212.68 (talk) 08:50, 2 November 2020 (UTC)

Please use the package manager to install the LDAP extension for PHP. You may need to use the REMI repos: https://rpms.remirepo.net/
Make sure that this extension is also loaded by the PHP configuration used in context of the webserver. Osnard (talk) 10:54, 2 November 2020 (UTC)

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


At startup this morning I got this error. Strange. Wiki was working fine yesterday.

Ubuntu 18. Mediawiki 1.35 PHP 7.4 Semantic 3.2

Reinstalled Remex at no avail. Any idea?

Fatal error: Uncaught Error: Interface 'RemexHtml\Tokenizer\TokenHandler' not found in /var/www/html/mediawiki/vendor/wikimedia/remex-html/RemexHtml/Tokenizer/NullTokenHandler.php:8 Stack trace: #0 /var/www/html/mediawiki/vendor/composer/ClassLoader.php(444): include() #1 /var/www/html/mediawiki/vendor/composer/ClassLoader.php(322): Composer\Autoload\includeFile() #2 [internal function]: Composer\Autoload\ClassLoader->loadClass() #3 /var/www/html/mediawiki/includes/parser/RemexStripTagHandler.php(9): spl_autoload_call() #4 /var/www/html/mediawiki/includes/AutoLoader.php(109): require('/var/www/html/m...') #5 [internal function]: AutoLoader::autoload() #6 /var/www/html/mediawiki/includes/parser/Sanitizer.php(1866): spl_autoload_call() #7 /var/www/html/mediawiki/includes/OutputPage.php(992): Sanitizer::stripAllTags() #8 /var/www/html/mediawiki/includes/OutputPage.php(2651): OutputPage->setPageTitle() #9 /var/www/html/mediawiki/includes/exception/MWExceptionRenderer.php(144): OutputPage->prepareErrorPage() #10 /var/www/html/ in /var/www/html/mediawiki/vendor/wikimedia/remex-html/RemexHtml/Tokenizer/NullTokenHandler.php on line 8 EFFemeer (talk) 13:33, 2 November 2020 (UTC)

Solved by skipping #wfLoadExtension( 'ParserFunctions' ); EFFemeer (talk) 13:59, 2 November 2020 (UTC)
The discussion above is closed. Please do not modify it. No further edits should be made to this discussion.

GeSHi code displayed cut-pastes to doublespace, not single space

I'm still using mediawiki-1.33.1, however I don't believe the age of software is an issue.

When I cut-paste from my wiki, my single spaced code goes into my text editor as double spaced. With additional cut-paste cycles, the code spacing can become 4x, 8x, 16x spaced.


Here is a verifiable example you can play with using your text editor:


http://calebneedscollege.com/wiki/index.php/Can_bus_battery_monitor_with_OLED


Is this an issue with GeSHi or is this within the domain of a setting in MediaWiki? Believe it or not, neither Google nor DuckDuckGo believe this is as serious of an issue as I do.


Ideas? Thanks! You guys are wonderful, by the way.


Timothy D Legg - Guin, AL, USA. 47.13.212.202 (talk) 19:11, 2 November 2020 (UTC)

I discovered that if I disable line numbering of source, the text does not doublespace. When I view source, I see the line numbering are in SPAN containers with classes of 'lineno' and 'cm'. It may be that each of these classes are issuing a newline. This could be a bug in GeSHi. 47.13.212.202 (talk) 20:42, 2 November 2020 (UTC)
Could you file a bug in Phabricator? MarkAHershberger(talk) 21:15, 2 November 2020 (UTC)

Where are emails stored in mediawiki?

Where are emails stored in mediawiki?

I want to delete the emails of spammers who have sent SO many emails that the legal team was notified.

'''Please help! ''' 🙏 Infinitepeace (talk) 05:24, 3 November 2020 (UTC)

Manual:user table.
Ensure that $wgEmailAuthentication is set to true in LocalSettings.php Bawolff (talk) 11:04, 3 November 2020 (UTC)
$wgEmailAuthentication enables email authentication: all email functions (except requesting a password reminder email) only work for authenticated (confirmed) email addresses Infinitepeace (talk) 03:26, 4 November 2020 (UTC)
Bawilff
Can i delete all of the mail information?
I have too many inodes because of mail spam. Infinitepeace (talk) 03:38, 4 November 2020 (UTC)
That probably won't fix your inode problem Bawolff (talk) 06:15, 4 November 2020 (UTC)

Upgrade error MigrateActors::addActorsForRows

I try to upgrade from a very old MW to 1.35.0 and got this error running update.php

I guess it's not finished?

... log_id=6700
... log_id=6800
Wikimedia\Rdbms\DBQueryError from line 1699 of /.../includes/libs/rdbms/database/Database.php: Error 1062: Duplicate entry '' for key 'actor_name' (localhost)''
Function: MigrateActors::addActorsForRows
Query: INSERT INTO `actor` (actor_name) VALUES ('')''
#0 /.../includes/libs/rdbms/database/Database.php(1683): Wikimedia\Rdbms\Database->getQueryException('Duplicate entry...', 1062, 'INSERT INTO `ac...', 'MigrateActors::...')
#1 /.../includes/libs/rdbms/database/Database.php(1658): Wikimedia\Rdbms\Database->getQueryExceptionAndLog('Duplicate entry...', 1062, 'INSERT INTO `ac...', 'MigrateActors::...')
#2 /.../includes/libs/rdbms/database/Database.php(1227): Wikimedia\Rdbms\Database->reportQueryError('Duplicate entry...', 1062, 'INSERT INTO `ac...', 'MigrateActors::...', false)
#3 /.../includes/libs/rdbms/database/Database.php(2343): Wikimedia\Rdbms\Database->query('INSERT INTO `ac...', 'MigrateActors::...', 128)
#4 /.../includes/libs/rdbms/database/Database.php(2323): Wikimedia\Rdbms\Database->doInsert('actor', Array, 'MigrateActors::...')
#5 /.../includes/libs/rdbms/database/DBConnRef.php(68): Wikimedia\Rdbms\Database->insert('actor', Array, 'MigrateActors::...')
#6 /.../includes/libs/rdbms/database/DBConnRef.php(369): Wikimedia\Rdbms\DBConnRef->__call('insert', Array)
#7 /.../maintenance/includes/MigrateActors.php(219): Wikimedia\Rdbms\DBConnRef->insert('actor', Array, 'MigrateActors::...')
#8 /.../maintenance/includes/MigrateActors.php(305): MigrateActors->addActorsForRows(Object(Wikimedia\Rdbms\MaintainableDBConnRef), 'log_user_text', Array, Array, 0)
#9 /.../maintenance/includes/MigrateActors.php(115): MigrateActors->migrate('logging', Array, 'log_user', 'log_user_text', 'log_actor')
#10 /.../maintenance/includes/LoggedUpdateMaintenance.php(45): MigrateActors->doDBUpdates()
#11 /.../includes/installer/DatabaseUpdater.php(1343): LoggedUpdateMaintenance->execute()
#12 /.../includes/installer/DatabaseUpdater.php(512): DatabaseUpdater->migrateActors()
#13 /.../includes/installer/DatabaseUpdater.php(475): DatabaseUpdater->runUpdates(Array, false)
#14 /.../maintenance/update.php(181): DatabaseUpdater->doUpdates(Array)
#15 /.../maintenance/doMaintenance.php(107): UpdateMediaWiki->execute()
#16 /.../maintenance/update.php(253): require_once('/var/www/vhosts...')
#17 {main}

Calling the Main Page gives me

Original exception: [ac40f81cfe9ab555bd3426e6] /db/index.php?title=Main_Page MediaWiki\Revision\RevisionAccessException from line 1296 of /.../includes/Revision/RevisionStore.php: Main slot of revision not found in database. See T212428.
Backtrace:
#0 /.../includes/Revision/RevisionStore.php(1224): MediaWiki\Revision\RevisionStore->constructSlotRecords(string, Wikimedia\Rdbms\ResultWrapper, integer, Title)
#1 /.../includes/Revision/RevisionStore.php(1220): MediaWiki\Revision\RevisionStore->loadSlotRecords(string, integer, Title)
#2 /.../includes/Revision/RevisionStore.php(1335): MediaWiki\Revision\RevisionStore->loadSlotRecords(string, integer, Title)
#3 [internal function]: MediaWiki\Revision\RevisionStore->MediaWiki\Revision\{closure}()
#4 /.../includes/Revision/RevisionSlots.php(175): call_user_func(Closure)
#5 /.../includes/Revision/RevisionSlots.php(117): MediaWiki\Revision\RevisionSlots->getSlots()
#6 /.../includes/Revision/RevisionRecord.php(192): MediaWiki\Revision\RevisionSlots->getSlot(string)
#7 /.../includes/page/WikiPage.php(643): MediaWiki\Revision\RevisionRecord->getSlot(string, integer)
#8 /.../includes/libs/objectcache/wancache/WANObjectCache.php(1529): WikiPage->{closure}(boolean, integer, array, NULL, array)
#9 /.../includes/libs/objectcache/wancache/WANObjectCache.php(1376): WANObjectCache->fetchOrRegenerate(string, integer, Closure, array, array)
#10 /.../includes/page/WikiPage.php(651): WANObjectCache->getWithSetCallback(string, integer, Closure)
#11 /.../includes/page/WikiPage.php(311): WikiPage->getContentModel()
#12 /.../includes/page/WikiPage.php(297): WikiPage->getContentHandler()
#13 /.../includes/page/Article.php(2539): WikiPage->getActionOverrides()
#14 /.../includes/actions/Action.php(130): Article->getActionOverrides()
#15 /.../includes/actions/Action.php(189): Action::factory(string, Article, RequestContext)
#16 /.../includes/MediaWiki.php(166): Action::getActionName(RequestContext)
#17 /.../includes/MediaWiki.php(903): MediaWiki->getAction()
#18 /.../includes/MediaWiki.php(543): MediaWiki->main()
#19 /.../index.php(53): MediaWiki->run()
#20 /.../index.php(46): wfIndexMain()
#21 {main}

Subfader (talk) 15:38, 3 November 2020 (UTC)

Could someone please help me out here? This stops me from ugrading for which I took holidays :( Subfader (talk) 11:42, 4 November 2020 (UTC)
The first error refers to an attempt to create duplicate actor entries. I've heard of similar errors when people have manually modified their user tables. Does that help any?
The second error refer to phabricator T212428 -- did you look at it yet? MarkAHershberger(talk) 18:56, 4 November 2020 (UTC)
The first error also has a task: phab:T229092Ammarpad (talk) 08:44, 5 November 2020 (UTC)
I indeed modified my user table with a new column. So did I with the pages table but that went through.
Should I search the user table for a duplicate name with empty values and delete that?
Second error: After the update was cancelled I just called the Main Page as it may give some indications. But I ran populateContentTables.php and it also failed:
Done populating revision table. Processed 2825170 rows in 189.07010388374 seconds
Populating archive...
... archive processed up to revision id 501 of 2937910 (491 rows in 0.041456937789917 seconds)
... archive processed up to revision id 1001 of 2937910 (973 rows in 0.062320947647095 seconds)
... archive processed up to revision id 1501 of 2937910 (1454 rows in 0.082330942153931 seconds)
... archive processed up to revision id 2001 of 2937910 (1552 rows in 0.089991807937622 seconds)
Failed to populate content table archive row batch starting at 2002 due to exception: MediaWiki\Storage\BlobAccessException: Unable to fetch blob at tt:2275 in /.../includes/Storage/SqlBlobStore.php:295
Stack trace:
#0 /.../maintenance/populateContentTables.php(374): MediaWiki\Storage\SqlBlobStore->getBlob('tt:2275')
#1 /.../maintenance/populateContentTables.php(276): PopulateContentTables->fillMissingFields(Object(stdClass), 'wikitext', 'tt:2275')
#2 /.../maintenance/populateContentTables.php(230): PopulateContentTables->populateContentTablesForRowBatch(Object(Wikimedia\Rdbms\ResultWrapper), 2002, 'archive')
#3 /.../maintenance/populateContentTables.php(97): PopulateContentTables->populateTable('archive')
#4 /.../maintenance/doMaintenance.php(107): PopulateContentTables->execute()
#5 /.../maintenance/populateContentTables.php(388): require_once('/var/www/vhosts...')
#6 {main}
Will search Phabricator first next time 👍 Subfader (talk) 13:02, 5 November 2020 (UTC)

Should I search the user table for a duplicate name with empty values and delete that?

That's what I think I would do, yes. Remember to backup first!
Does the populateContentTables.php fail each time you run it? If so, you should probably file a new task in Phabricator. MarkAHershberger(talk) 15:44, 5 November 2020 (UTC)
user table (19916 entries): no duplicate user_name or user_id. Removed my custom column, same error on update.php
actor table (44987 entries): The last entry has indeed an empty name. The entries after the 19916 user entries are IPs(?). If these are anon visitors then of course there will be duplicates??
Ran populateContentTables.php a second time, same error.
Edit: I grepped the last IP of the actor table to find out where they are coming from: Tables archive and comment had that IP. Comment is from an extension, so I doubt update.php runs through this. I don't know what archive does tho. Subfader (talk) 09:24, 6 November 2020 (UTC)
At the beginning of update.php output I found multiple lines like
User name "Ellybett" is usable, cannot create an anonymous actor for it. Run maintenance/cleanupUsersWithNoId.php to fix this situation.
I ran it with --force --prefix=* and it fixed issues on various tables.
Running update.php again still brings these "cannot create an anonymous actor" lines on the revision table.
populateContentTables.php: Same error as before.
cleanupUsersWithNoId.php doesn't need to be ran again.
But maybe the "cannot create an anonymous actor" problem is not a problem at all. Then the problem remains with the empty user name in the actor table. I removed that but no luck on update.php Subfader (talk) 11:57, 6 November 2020 (UTC)
I opened two bug reports:
Imported the dump again and filled the empty log_user_text rows with log_user and log_user_text as described in phab:T229092. Update.php finished actor migration (with errors tho) and still fails because of T212428.
That ticket is from March and has no solution.
populateContentTables.php still fails with
MediaWiki\Storage\BlobAccessException: Unable to fetch blob at tt:2275
Since this seems unfixable and nobopdy replies here I consider installing PHP 5 on my new server to keep 1.25 running :( Subfader (talk) 15:38, 8 November 2020 (UTC)
1.34 failed for the same reason. At least I could update to 1.31.10 now (with log_user_text fix). Subfader (talk) 20:54, 8 November 2020 (UTC)
1.31 got me into even more trouble with unmaintained extensions.
My holidays are over and I was forced to install PHP5 on my new server to run my old wiki without an update.
MediaWiki is dead for me 😢 Subfader (talk) 00:11, 20 November 2020 (UTC)

Adding an extension which comes with new tables via web updater

Admittedly I did not do this in years. Thank god!!! Let's assume I would like to install Echo and Thanks on an existing wiki (MW 1.31) which allows only for using the web updater (no command line) I figured invoking the extensions, telling the web updater to rebuild the database would be enough to build the required tables. Apparently I was wrong. The web updater does everything but creating the extra tables. Even removing the "LocalSettings.php" file and trying to redo the installation from scratch did not help. Any tip for me here how to get the web updater do its job? I may also very well have missed something here.

I know about these basically abandoned extensions that allow for executing scripts or of running the db creation script via PhpMyAdmin but in the end I expect the web updater to detect the schema changes for an extension. This is why I am asking here. [[kgh]] (talk) 17:44, 3 November 2020 (UTC)

In the end it may also be an issue with the extensions rather than the web updater, however two rather popular extensions failing at the same time ... [[kgh]] (talk) 22:21, 3 November 2020 (UTC)
Hmm. It should work provided that wfLoadExtension line is on. The web updater and cli updater should use same code. Bawolff (talk) 06:14, 4 November 2020 (UTC)
Sadly it does not. This is why I am here and pretty much confused. Also I believe this worked in the past. [[kgh]] (talk) 08:31, 4 November 2020 (UTC)

Automatically selecting skin based on windows preference

Windows now has an option to indicate preference for dark mode in apps when available. Is there a way yet to make MediaWiki see this preference and change the skin? We would like to run Skin:Vector by default and Skin:DarkVector when preferred. Flounder ceo (talk) 00:46, 4 November 2020 (UTC)

Normally this would be by media queries, so it would need to be built into the skin, and couldn't trigger a skin switch. Bawolff (talk) 06:12, 4 November 2020 (UTC)
What about some kind of extension like Extension:MobileDetect? Flounder ceo (talk) 21:44, 4 November 2020 (UTC)

Is Python unfree? If so, is using it okay?

I found out that the programming language Python's license is not copyleft, even when compatible with GPL. Furthermore, we aren't able to use Python's source code while distributing and using its modified versions. Does that make Python itself unfree? If that's the case, would using it be against standards of what an open source should be? Is using Python okay and not much of a big deal, despite all that? George Ho (talk) 03:26, 4 November 2020 (UTC)

OSI or DFSG (especially dfsg) is what we care about, and python is approved of both.
I'm not sure what you are referring to by "we aren't able to use Python's source code while distributing and using its modified versions"
Much open source software, including stuff we use, is not copyleft, its not uncommon. Bawolff (talk) 06:11, 4 November 2020 (UTC)
I'll quote Wikipedia article about the License: Unlike the GPL the Python license is not a copyleft license, and allows modified versions to be distributed without source code.
Which open-source software that you are using is not copyleft then? George Ho (talk) 07:13, 4 November 2020 (UTC)
wait, never mind. I realize that copyleft meant something like CC-BY-SA. my bad. I also realize that the Python's license is more like between CC-BY and CC-BY-SA except that it's not copyleft. Now I realize that being not copyleft does not make a software automatically unfree. George Ho (talk) 07:42, 4 November 2020 (UTC)
In the open source world, copyleft means the equivalent of cc-by-sa, not copyleft (usually referred to as "bsd-style") means equivalent to cc-by. Which one is better has been an ongoing flame war since longer than i have been alive.
(There is a lot of nuance i'm skipping over, but speaking generally) Bawolff (talk) 07:36, 5 November 2020 (UTC)

Toolbox from MediaWiki:Sidebar doesn't update changes.

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 noticed that after upgrading to 1.35.0 it doesn't show custom changes to the Toolbox section of the Sidebar menu. How do I fix that?

https://rammwiki.net/wiki/MediaWiki:Sidebar


MediaWiki 1.35.0

PHP 7.4.7 (cgi-fcgi)

MariaDB 10.3.23-MariaDB-0+deb10u1

ICU 57.1

Lua 5.1.5 Rasputin 93 (talk) 08:36, 4 November 2020 (UTC)

TOOLBOX is a fixed Parameter for the Sidebar. Like SEARCH. If you want to change this, maybe you should take a look here: Manual:Interface/Sidebar Yukii (talk) 09:47, 4 November 2020 (UTC)
Well, I could customize it earlier and it worked. It does not anymore since the upgrade, however. And that's what I want to resolve.
Edit: I now did succeed by editing Common.js, but the order is not fully customizable that way, like before. Please let me know if there's a solution for that. Rasputin 93 (talk) 10:30, 4 November 2020 (UTC)
The discussion above is closed. Please do not modify it. No further edits should be made to this discussion.

Paul Michael Smith

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 Im sorry what persons have Done to get me removed but i need assitance to get things straighted out i will tell the whole story i hpoe one day. i would have just gave up but it made me sick to see what they did. i want to get justic for what they did. PSMITH Psmith19780114 (talk) 18:48, 4 November 2020 (UTC)

So, how can we help you use MediaWiki to get justice? MarkAHershberger(talk) 18:52, 4 November 2020 (UTC)
The Psmith Im trying to get things straighted out yes i been using drugs im going to get help but i wont go till get vandilism from site cause its good thing i been having trouble probbally 12years with not getting emails or nothing Psmith19780114 (talk) 19:03, 4 November 2020 (UTC)
I'm sorry, but I cannot help you. MediaWiki isn't really going to help you either. It sounds like you need resources near where you live. MarkAHershberger(talk) 19:54, 4 November 2020 (UTC)
The discussion above is closed. Please do not modify it. No further edits should be made to this discussion.

Unpacking mediawiki-1.35.0.tar.gz on Windows

I'd like to set up a MediaWiki on IIS (Server 2019) for intranet purpose


When unpacking the current tarball (mediawiki-1.35.0.tar.gz) on Windows, there is a request for overwriting existing files i.e. "articleDisambiguation-ltr-invert"

First file getting extracted is a PNG file, right after there is a identical named file with XML content which will overwrite the PNG file.


Am I trying to extract from the wrong source? Using 7zip 2A01:C23:9056:FA00:CD9E:6062:2FF6:FBDA (talk) 23:09, 4 November 2020 (UTC)

There is a known problem with 7zip. As the download page says:
It is advised not to use 7-Zip to decompress the tarball, due to a bug with the PAX format. MarkAHershberger(talk) 00:04, 5 November 2020 (UTC)
Thanks, unpacked the GZip with 7zip. Unpacked tar with tar -xf (tar Binary is included in recent Windows versions)
This did the trick AFAIK. 77.22.224.221 (talk) 11:45, 5 November 2020 (UTC)

Extension:DrawioEditor loads endless after save

I installed the extension according to GitHub instructions.

The editor works great. Unfortunately, I cannot save the file. When I click on "Save" a loading animation appears but does not disappear.

Extension:NativeSvgHandler is installed

It looks like this: https://imgur.com/a/i9cjSm8

Errors in Console:

Uncaught SyntaxError: Unexpected token o in JSON at position 1
 at JSON.parse (<anonymous>)
 at drawioHandleMessage (<anonymous>:139:396)

Hope somebody can help me.

Greetings 2003:CB:D710:C100:D831:45DA:F1B8:E193 (talk) 23:43, 4 November 2020 (UTC)

A better place to post this is probably the extension's issues page. MarkAHershberger(talk) 00:02, 5 November 2020 (UTC)

Transclusion issues

A problem in this section of this page: https://en.wikipedia.org/wiki/Statewide_opinion_polling_for_the_2020_United_States_presidential_election#Wisconsin was brought to my attention in this talk page thread: https://en.wikipedia.org/wiki/Talk:Statewide_opinion_polling_for_the_2020_United_States_presidential_election#What_happened_to_Wisconsin?

Basically, the polling section of the Wisconsin page was transcluded onto the general page for statewide polls.

The transclusion was broken for some reason, but functioned if the page was viewed in preview mode, and the transclusion was written exactly the same way as other functioning transclusions in other areas of the page. Neither I nor any other editors could determine what the issue was and I was advised to go here for help.

I manually copied over the text, but obviously a transclusion is preferable.

Thanks in advance Przemysl15 (talk) 23:59, 4 November 2020 (UTC)

Looks like you hit the post expand include size limit. Basically the size of the wikitext of a page after all transclusions are transcluded, subst: are substituted (e.g. what you get at [1]) has to be less than 2MB.
If you hit this limit, there should be a warning at the top of the page when you preview. Possibly it might get auto-added to a hidden maintenance category as well
Sometimes people get around this for graph heavy pages using the <graph> tag, by using the Data namespace at commons, since that doesn't apply to the limit Bawolff (talk) 08:23, 5 November 2020 (UTC)
That's it. Thanks, Bawolff. I didn't think to look for an error notice at the top of the page on preview. Spiffy sperry (talk) 16:17, 5 November 2020 (UTC)
Thank you so much! Przemysl15 (talk) 20:00, 5 November 2020 (UTC)

Signing to account

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


Cannot sign in to account. I guess I forgot password. Do not understand wiki or instructions. Please help. I want to stop service for several days. Thanks. 2600:8807:5100:1220:B007:5880:C79C:3323 (talk) 02:48, 5 November 2020 (UTC)

Welcome to the support desk for the MediaWiki software (!). We have no idea what "service" you are talking about. Please elaborate. Malyacko (talk) 08:46, 5 November 2020 (UTC)
The discussion above is closed. Please do not modify it. No further edits should be made to this discussion.

cache settings

Is this setting correct if memcached is installed?

$wgMainStash = CACHE_MEMCACHED;


How much should the following value be set for the most visited wiki?

$wgQueryCacheLimit Sokote zaman (talk) 07:11, 5 November 2020 (UTC)

Normally people would let $wgMainStash just be the default unless they are doing something fancy with geo distributed servers, but yes that would set it to memcached. Do note however that the main stash is much more sensitive to cache evictions than the normal cache. You might not want to change it from default db backend unless you know enough about how it works to test you are actually getting performance improvements with no negative side effects.
The value for $wgQueryCacheLimit doesn't matter much. You wouldnt want it to be super huge (e.g > 20,000 probably would not be great). Keep in mind it only does anything if $wgMiserMode is on and you run updateSpecialPages.php at regular interval (ie in a cron script) Bawolff (talk) 07:32, 5 November 2020 (UTC)
Thank you very much for your help Sokote zaman (talk) 08:03, 5 November 2020 (UTC)

Blank page error mw-config

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.


Just about to do the initial config on a freshly installation of MW-1.35.0


Server 2019 IIS

PHP 7.3.24 (All Plugins enabled)

No DBMS yet, just were trying to run config script to see if everything is in working condition before setting up a DBMS

Enabled PHP debug, got the following errors when opening /mw-config/index.php:


Warning: mkdir(): File exists in C:\inetpub\secret\includes\libs\filebackend\fsfile\TempFSFile.php on line 98


Fatal error: Uncaught Error: Call to a member function getIP() on null in C:\inetpub\secret\includes\user\User.php:2153 Stack trace: #0 C:\inetpub\secret\includes\session\SessionBackend.php(742): User->getName() #1 C:\inetpub\secret\includes\session\SessionBackend.php(626): MediaWiki\Session\SessionBackend->save() #2 [internal function]: MediaWiki\Session\SessionBackend->MediaWiki\Session\{closure}() #3 C:\inetpub\secret\vendor\wikimedia\scoped-callback\src\ScopedCallback.php(96): call_user_func_array(Object(Closure), Array) #4 C:\inetpub\secret\vendor\wikimedia\scoped-callback\src\ScopedCallback.php(56): Wikimedia\ScopedCallback->__destruct() #5 C:\inetpub\secret\includes\session\SessionManager.php(890): Wikimedia\ScopedCallback::consume(NULL) #6 C:\inetpub\secret\includes\session\SessionManager.php(220): MediaWiki\Session\SessionManager->getSessionFromInfo(Object(MediaWiki\Session\SessionInfo), Object(WebRequest)) #7 C:\inetpub\secret\includes\WebRequest.php(826): MediaWiki\Session\Sessio in C:\inetpub\secret\includes\user\User.php on line 2153


Fatal error: Uncaught Error: Call to a member function getIP() on null in C:\inetpub\secret\includes\user\User.php:2153 Stack trace: #0 C:\inetpub\secret\includes\session\SessionBackend.php(742): User->getName() #1 C:\inetpub\secret\includes\session\SessionBackend.php(225): MediaWiki\Session\SessionBackend->save(true) #2 C:\inetpub\secret\includes\session\SessionManager.php(478): MediaWiki\Session\SessionBackend->shutdown() #3 [internal function]: MediaWiki\Session\SessionManager->shutdown() #4 {main} thrown in C:\inetpub\secret\includes\user\User.php on line 2153


Path anonymized. Any ideas on this one?

Couldn't find any useful info on Google for "File exists" +"TempFSFile.php" 77.22.224.221 (talk) 12:03, 5 November 2020 (UTC)

Warning Message was misleading;
There had to be set up the sys_temp_dir = "C:\Windows\Temp\mwtmp-IUSR" in php.ini for this to work.
Still unclear why in global config file there has to be a localized folder name like "mwtmp-IUSR" 77.22.224.221 (talk) 12:23, 5 November 2020 (UTC)
The discussion above is closed. Please do not modify it. No further edits should be made to this discussion.

Recent changes

Is there a way to hide the time in recent changes (protection of privancy)? 2A00:20:5007:A49C:BCB2:A28E:32A8:FDA7 (talk) 12:16, 5 November 2020 (UTC)

CSS? MarkAHershberger(talk) 15:56, 5 November 2020 (UTC)
I need a little tutorial. 109.41.130.122 (talk) 10:00, 6 November 2020 (UTC)
I try the Common.css: .mw-changeslist-date { display: none } 2003:C5:FF07:AD92:D474:C2BE:2D0B:8DAA (talk) 08:23, 9 November 2020 (UTC)

Page content depending on skin (or depending on desktop/mobile)

Hi, we'd like the main_page to be different depending on whether the user is on mobile or desktop.


At the moment we are doing this via css with a mobile tag and not displaying the images. The images for the desktop version are quite heavy and we don't want them downloaded at all for the mobile site.


Therefore is it possible (i'm using vector for desktop and minerva for mobile), to display different wiki content depending on skin?


Thank you Eddie K Smith (talk) 13:42, 5 November 2020 (UTC)

I think you might want to look at MobileFrontend. MarkAHershberger(talk) 15:56, 5 November 2020 (UTC)
Thank you Eddie K Smith (talk) 17:58, 5 November 2020 (UTC)

MixedNamespaceSearchSuggestions not suggesting overarching

My setup:


Namespace "TEST"

Page "TEST:Sitetest"


Settings:

define("TEST", 100);

$wgExtraNamespaces[TEST] = "TEST";

$wgNamespacesToBeSearchedDefault = [

TEST  => true,

];


When i am typing "Sitetest" into search no site is suggested. 2003:CB:D710:C100:20AB:DAFE:BC65:F1FF (talk) 14:41, 5 November 2020 (UTC)

Sounds like you are trying to file a bug. Please use Phabricator or contact the author (@Nikerabbit). MarkAHershberger(talk) 15:50, 5 November 2020 (UTC)
I think the site suggestions requires the namespace prefix to be typed in. I think $wgNamespacesToBeSearchedDefault is more about full text search, not the suggestions. Bawolff (talk) 16:57, 5 November 2020 (UTC)
It searches wgContentNamespaces: https://github.com/wikimedia/mediawiki-extensions-MixedNamespaceSearchSuggestions/blob/master/resources/ext.mnss.search.js#L65 Nikerabbit (talk) 07:49, 7 November 2020 (UTC)
I added TEST to my content Namespaces but no changes 2003:CB:D710:C100:472:A7AA:F1C4:D1DE (talk) 13:00, 7 November 2020 (UTC)

PostgreSQL - MD5 instead of SCRAM Authentication

Is it possible tho change the used Authentication method when connecting to a PostgreSQL 13 Server from SCRAM to MD5?


(Win 2019 IIS; PHP 7.3.24; PostgreSQL 13)


I've already changed pg_hba.conf to MD5 auth, but mw-config is still trying to connect via SCRAM (which seems to not be OOB supported in recent PHP 7.3.24 Windows binarys) throwing this error:


Cannot access the database: Unable to connect to PostgreSQL server: SCRAM authentication requires libpq version 10 or above 77.22.224.221 (talk) 15:48, 5 November 2020 (UTC)

Please file a bug report on Phabricator. MarkAHershberger(talk) 15:57, 5 November 2020 (UTC)
After changing the authentication method, you have to set password_encryption = md5 in postgresql.conf too. Restart PostgreSQL and then change the password to get it encrypted in the new method. – Ammarpad (talk) 04:53, 12 November 2020 (UTC)
  1. Open the psql console. To do so, click StartPostgres 13SQL shell.
  2. Log in to the local cluster and run the command:
ALTER SYSTEM SET password_encryption = 'md5'
  1. Update the password of the postgres user by running the following command:
ALTER ROLE postgres PASSWORD '<new password>'
  1. To make sure that the password is saved using the supported algorithm, run the command:
SELECT passwd FROM pg_shadow WHERE user = 'postgres'
  • A line with the encrypted password will appear. The line starts with MD5, for example: md533a9a79ffee1cc8bf4fbc63f24518e44.
now you should be connected to pgsql db. 122.170.70.206 (talk) 06:26, 12 April 2021 (UTC)
Hi there, first time installer, total newb issue; please don't roast me.
I am stuck at the last part where instructions say "Navigate to Special:Version on your wiki to verify that the skin is successfully installed".
I do not understand what Special:Version means. I assume Special:Version is the actual location of my wiki which I thought would be either wiki.thepowerhousemethod.org or thepowerhousemethod.org/w/index.php but neither url works. I guess I do not know what url I am supposed to have at this point.
I have added in {wfLoadSkin( 'DarkVector' );
$wgDarkVectorUseSimpleSearch = true;
$wgDarkVectorUseIconWatch = true;} to LocalSettings.php
I am using
mediawiki-1.26.4
PHP 5.4.16
5.5.65-MariaDB
This is the skin I am installing.
I have restarted apache before making this post. Thepowerhousemethod (talk) 18:00, 5 November 2020 (UTC)
@Thepowerhousemethod Please do not install ancient software versions like 1.26.4 which have been unsupported for three years and are now full of security vulnerabilities. Install supported and secure software versions instead. Malyacko (talk) 20:33, 5 November 2020 (UTC)
Type "Special:Version" in your Search and press Enter 2003:CB:D710:C100:CC77:1497:6A06:8469 (talk) 18:19, 5 November 2020 (UTC)
Thanks. I did that before posting but the page did not provide me the information I was looking for in a manner I could understand it. Thepowerhousemethod (talk) 18:28, 9 November 2020 (UTC)
The url you want is probably https://thepowerhousemethod.org/wiki/index.php . It is currently giving a blank page - that likely means there is a typo in your LocalSettings.php (although there could be other causes) try checking your error log and follow the instructions for showing php errors at How to debug. I'd also suggest undoing any changes you have made until you know your wiki is working, and then adding back the things you added one by one once you are in a known good state.
Special:version is referring to https://thepowerhousemethod.org/wiki/index.php?title=Special:Version . It wont work right now because your website is giving error code 500, but once that's fixed, that page will give you a list of all installed skins and extensions Bawolff (talk) 20:59, 5 November 2020 (UTC)

Autosuggestion on searchbox for namespace sites?

I want to type in my Searchbox "Hello" to find my Site on "Namespace:Hello".


Is that possible? 2003:CB:D710:C100:CC77:1497:6A06:8469 (talk) 18:48, 5 November 2020 (UTC)

You can do that with MixedNamespaceSearchSuggestions extension. – Ammarpad (talk) 04:49, 12 November 2020 (UTC)

First line only indented paragraphs

First line only indented paragraphs

Is it possible to configure paragraphs in MediaWiki to have the first line indented, but the remainder of the paragraphs flush with the margin, as in a traditional book publishing layout? ElectricRay (talk) 22:56, 5 November 2020 (UTC)

See css text-indent property https://developer.mozilla.org/en-US/docs/Web/CSS/text-indent which you can specify in mediawiki:common.css
The ::first-line pseudo class can also sometimes be useful. Bawolff (talk) 04:49, 6 November 2020 (UTC)

Images in categories

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


Can the size of the thumbnail be changed for images in category pages? T0lk (talk) 03:53, 6 November 2020 (UTC)

Use $wgGalleryOptions Bawolff (talk) 04:42, 6 November 2020 (UTC)
awesome, thanks! T0lk (talk) 06:16, 6 November 2020 (UTC)
The discussion above is closed. Please do not modify it. No further edits should be made to this discussion.

How to choose Existing wiki during setup.

I had to install MediaWiki again. After starting MediaWiki I had to go through the MediaWiki 1.32.0 installation.

First I had to choose the language, after that I got the page "Welcome to MediaWiki!".

It skipped the page "Existing wiki".

How can I restore an Existing wiki after a reinstall??

Restoring the LocalSettings.php doesn't work, it gives me a HTTP 500 error.

Thx for your help. MartinVught (talk) 10:57, 6 November 2020 (UTC)

Existing wiki is only an option if your LocalSettings.php is present. If you are getting a 500 error see How to debug Bawolff (talk) 02:43, 7 November 2020 (UTC)

Using GoogleFonts in Mediawiki Skins

Hi all,


I'm trying to use Google fonts in my mediawiki skin .less file. I'm doing this with the following:


@import url('https://fonts.googleapis.com/css2?family=Oswald&family=Source+Sans+Pro&display=swap');


It is giving the following error:


[1de9092901cd9d5a014c5abe] /DemoView/load.php?lang=en&modules=ext.simplefavorites.style%7Cmediawiki.legacy.commonPrint%2Cshared%7Cmediawiki.skinning.interface%7Cskins.lfc%7Cskins.vector.styles&only=styles&skin=LFC   Less_Exception_Parser from line 2793 of /var/www/DemoView/mediawiki-1.33.0/vendor/wikimedia/less.php/lib/Less/Parser.php: File `https://fonts.googleapis.com/css2` not found. in lfc.less

Backtrace:

#0 /var/www/DemoView/mediawiki-1.33.0/vendor/wikimedia/less.php/lib/Less/Parser.php(471): Less_Parser->Error(string)

#1 /var/www/DemoView/mediawiki-1.33.0/vendor/wikimedia/less.php/lib/Less/Tree/Import.php(275): Less_Parser->parseFile(string, string, boolean)

#2 /var/www/DemoView/mediawiki-1.33.0/vendor/wikimedia/less.php/lib/Less/Tree/Import.php(198): Less_Tree_Import->ParseImport(string, string, Less_Environment)

#3 /var/www/DemoView/mediawiki-1.33.0/vendor/wikimedia/less.php/lib/Less/Tree/Ruleset.php(248): Less_Tree_Import->compile(Less_Environment)

#4 /var/www/DemoView/mediawiki-1.33.0/vendor/wikimedia/less.php/lib/Less/Tree/Ruleset.php(235): Less_Tree_Ruleset->evalImports(Less_Environment)

#5 /var/www/DemoView/mediawiki-1.33.0/vendor/wikimedia/less.php/lib/Less/Tree/Ruleset.php(70): Less_Tree_Ruleset->PrepareRuleset(Less_Environment)

#6 /var/www/DemoView/mediawiki-1.33.0/vendor/wikimedia/less.php/lib/Less/Parser.php(199): Less_Tree_Ruleset->compile(Less_Environment)

#7 /var/www/DemoView/mediawiki-1.33.0/includes/resourceloader/ResourceLoaderFileModule.php(1030): Less_Parser->getCss()

#8 /var/www/DemoView/mediawiki-1.33.0/includes/resourceloader/ResourceLoaderFileModule.php(926): ResourceLoaderFileModule->compileLessFile(string, ResourceLoaderContext)

#9 /var/www/DemoView/mediawiki-1.33.0/includes/resourceloader/ResourceLoaderFileModule.php(897): ResourceLoaderFileModule->readStyleFile(string, boolean, ResourceLoaderContext)

#10 /var/www/DemoView/mediawiki-1.33.0/includes/resourceloader/ResourceLoaderFileModule.php(430): ResourceLoaderFileModule->readStyleFiles(array, boolean, ResourceLoaderContext)

#11 /var/www/DemoView/mediawiki-1.33.0/includes/resourceloader/ResourceLoaderModule.php(747): ResourceLoaderFileModule->getStyles(ResourceLoaderContext)

#12 /var/www/DemoView/mediawiki-1.33.0/includes/resourceloader/ResourceLoaderModule.php(694): ResourceLoaderModule->buildContent(ResourceLoaderContext)

#13 /var/www/DemoView/mediawiki-1.33.0/includes/resourceloader/ResourceLoader.php(1068): ResourceLoaderModule->getModuleContent(ResourceLoaderContext)

#14 /var/www/DemoView/mediawiki-1.33.0/includes/resourceloader/ResourceLoader.php(772): ResourceLoader->makeModuleResponse(ResourceLoaderContext, array, array)

#15 /var/www/DemoView/mediawiki-1.33.0/load.php(46): ResourceLoader->respond(ResourceLoaderContext)

#16 {main}

Problematic modules: {"skins.lfc":"error"} 84.67.98.172 (talk) 16:02, 6 November 2020 (UTC)

I forgot to log in so this is me subscribing to the above issue. Nolski federation (talk) 16:03, 6 November 2020 (UTC)
Hmm its because less tries to preprocess the @import. I dont know if there is a way to escape things for less (im not really a less person. There probably is a way i just dont know it). You could probably make a .css instead of .less file that would work.
Maybe instead of @import you could include it via a <link> in your skin (or via OutputPage::addStyle from some hook) Bawolff (talk) 02:42, 7 November 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.


how to upload to omni journal from word and keep website links? Joel S. Hirschhorn (talk) 19:33, 6 November 2020 (UTC)

@Joel S. Hirschhorn Welcome to the support desk for the MediaWiki software. Why do you think that we know what "omni journal" is, and how is this related to MediaWiki? Malyacko (talk) 21:07, 6 November 2020 (UTC)
The discussion above is closed. Please do not modify it. No further edits should be made to this discussion.

MixedNamespaceSearchSuggestions not working

I installed the extension but i am not getting any Suggestions in search input 2003:CB:D710:C100:472:A7AA:F1C4:D1DE (talk) 02:09, 7 November 2020 (UTC)

What do you have in $wgContentNamespaces? If you didn't add namespaces there, they'll likely not appear. It'd be good to explain what exactly you're seeing instead too. – Ammarpad (talk) 04:48, 12 November 2020 (UTC)

Transcluding sublists

Hi,

I have a template, let's call it Template1, defined as:

#second item

I also have a template, let's call it Template2, defined as:

{{Template1}}

The following works ok (with the list items numbered correctly):

#first item
{{Template1}}
#third item

Yet the following doesn't work:

#first item
{{Template2}}
#third item

In the first case, the numbering is correct (1, 2, 3). But in the second case, the numbering starts over (1, 1, 2). Why is this?


My test page is at https://lotro-wiki.com/index.php/User:Thurallor/SublistTest

MediaWiki 1.35.0
PHP 7.4.12 (fpm-fcgi)
MariaDB 10.5.6-MariaDB-log

Thurallor (talk) 02:42, 7 November 2020 (UTC)

Probably too many newlines get added, causing the list to restart. Make sure there are no newlines in any of the templates. Nounclude tags can be helpful with that
Sometimes people use <ol> lists which are less sensitive to newlines
Also use Special:expandtemplates to experiment. Bawolff (talk) 04:08, 7 November 2020 (UTC)
I put "onlyinclude" tags in the templates (see link in OP) so there should be no newlines between the list items. Thurallor (talk) 05:31, 7 November 2020 (UTC)
Template invocation adds some. Compare with:
#first item{{User:Thurallor/TestTemplate2}}
#third item
Which gives the expected numbering
Hacky work around is to do:
#first item
{{#if:1|{{User:Thurallor/TestTemplate2}}}}
#third item
Bawolff (talk) 05:55, 7 November 2020 (UTC)
If template invocation adds a newline, then why does
# first item
{{User:Thurallor/TestTemplate1}}
# third item
work? It only breaks when I add the second-level template. Clearly I'm missing something about the way this works. Thurallor (talk) 06:55, 7 November 2020 (UTC)
Also, I am using an <ol> list; that's how the "#" list type gets rendered by mediawiki. Thurallor (talk) 05:32, 7 November 2020 (UTC)
I mean, if you use html style ol in wikitext, its not newline sensitive where # are, even though they both end up as ol in the end, the two different forms are treated differently by mediawiki. Bawolff (talk) 05:39, 7 November 2020 (UTC)
Ah, I see. Well the problem is that I'm trying to set things up so that users can use normal wiki markup, not HTML. Making them use HTML kind of defeats my purpose of making it easy/intuitive for them to transclude sublists into a master list. And this seems like something that just ought to work, but clearly something is wrong.
I duplicated the same issue on WIkipedia, just to make sure it's not local settings issue: https://en.wikipedia.org/wiki/User:Thurallor/Test Thurallor (talk) 06:51, 7 November 2020 (UTC)
Apparently this is a well-known, very old bug: https://phabricator.wikimedia.org/T14974 Thurallor (talk) 07:36, 7 November 2020 (UTC)

Could not successfully connect to an LDAP server.

HI All,


We are unable to connect to AS Server, our config need some correction. below are details of our config & error.

We have some question for the configuration

  1. require_once should be LdapAuthenticationRequest.php or LdapAuthentication.php
  2. if we uncomment "$wgAuth = new LdapAuthenticationPlugin();" mediawiki webpage goes blank.
  3. what else we need to check or enable eg extension's?


  • MediaWiki version 1.333
  • PHP version 7.2.34
  • Database type and version 5.7.31


LocalSettings.php

#AD Configuration

require_once ("extensions/LdapAuth/src/Auth/LdapAuthenticationRequest.php");

#$wgAuth = new LdapAuthenticationPlugin();

$wgLDAPDomainNames = array('ORG.DEP.CO.IN');

$wgLDAPServerNames = array('ORG.DEP.CO.IN' => 'DEP-A01.ORG.DEP.CO.IN');

$wgLDAPSearchStrings = array('ORG.DEP.CO.IN' => 'uid=wikiuser,OU=Service Accounts,DC=ORG,DC=DEP,DC=CO,DC=IN');

$wgLDAPEncryptionType = array('ORG.DEP.CO.IN' => 'none');

$wgLDAPUseLocal = false;

$wgMinimalPasswordLength = 1;

$wgLDAPDebug = 3; //for debugging LDAP

$wgShowExceptionDetails = true; //for debugging MediaWiki

$wgShowDBErrorBacktrace = true;

$wgShowSQLErrors = true;

$wgDebugLogFile = '../tmp/ldapdebug.log';


wfLoadExtension( 'LdapAuth' );

$wgLdapAuthDomainNames = array('ORG.DEP.CO.IN','DEP-A01.ORG.DEP.CO.IN');

$wgLdapAuthServers = 'inter_ip';

$wgLdapAuthBindDN = 'CN=wikiuser,OU=Service Accounts,DC=ORG,DC=DEP,DC=CO,DC=IN';

$wgLdapAuthBindPass = 'password';

$wgLdapAuthBaseDN = 'OU=Users,DC=ORG,DC=DEP,DC=CO,DC=IN';

$wgLdapAuthIsActiveDirectory = true;


/tmp/ldapdebug.log error


[error] [X6V8pJ@ftlsqOlm9HnuXbgAAAAQ] /index.php?title=Special:UserLogin   ErrorException from line 370 of /home/wikiDEPco/public_html/extensions/LdapAuth/src/Auth/PrimaryAuthenticationProvider.php: PHP Warning: Illegal string offset 'ORG.DEP.CO.IN'

[error] [X6V8pJ@ftlsqOlm9HnuXbgAAAAQ] /index.php?title=Special:UserLogin   ErrorException from line 371 of /home/wikiDEPco/public_html/extensions/LdapAuth/src/Auth/PrimaryAuthenticationProvider.php: PHP Warning: Illegal string offset 'ORG.DEP.CO.IN'

[error] [X6V8pJ@ftlsqOlm9HnuXbgAAAAQ] /index.php?title=Special:UserLogin   ErrorException from line 372 of /home/wikiDEPco/public_html/extensions/LdapAuth/src/Auth/PrimaryAuthenticationProvider.php: PHP Warning: Illegal string offset 'ORG.DEP.CO.IN'

[DBQuery] SELECT  lc_value  FROM `DEP_l10n_cache`    WHERE lc_lang = 'en' AND lc_key = 'messages:ldapauth-attempt-bind-dn-search'  LIMIT 1

[authentication] Attempting to bind to LDAP for search with DN "C@ORG.DEP.CO.IN".

[error] [X6V8pJ@ftlsqOlm9HnuXbgAAAAQ] /index.php?title=Special:UserLogin   ErrorException from line 388 of /home/wikiDEPco/public_html/extensions/LdapAuth/src/Auth/PrimaryAuthenticationProvider.php: PHP Warning: Invalid argument supplied for foreach() Avinashreddy.mum (talk) 04:16, 7 November 2020 (UTC)

Hi. I have not contributed for ages

and when I tried to log in the password I used was wrong.  No idea what it was.  The email is also no-functional.  Am I outta luck?  Last time I posted was 8 years ago. 199.47.250.142 (talk) 14:23, 7 November 2020 (UTC)

If you can prove beyond a shadow of a doubt that you own the account (very hard) then it might get restored to you. Otherwise yes. Bawolff (talk) 20:27, 7 November 2020 (UTC)

To what extend can I restore without sql backup?

Long story short:

Webserver hardware melted. I got a backup of the mediawiki folder and all it's contents but I have no sql backup.

To what extend can I restore my mediawiki without the sql database? Is there anything saved inside the /view/ (or /wiki/) folder itself?


Already tried "web.archive.org" to see if the content of my pages/articles is saved there but no luck :/


Thanks! Utini (talk) 18:16, 7 November 2020 (UTC)

Alright, I atleast managed to save some of the content of my pages via google cached websites. Not everything though. Utini (talk) 18:30, 7 November 2020 (UTC)
Images are the only content saved there.
If you had enabled $wgUseFileCache there might be more.
But yeah, its unlikely you can recover anything. Bawolff (talk) 20:26, 7 November 2020 (UTC)

Can't edit profile page

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


I have some outdated information about myself in my Wiki user page. When I try to edit it, it tells me I do not have permission--that only Wiki Users are allowed to edit the page. How can I fix this? Matthew Niemiro (talk) 00:24, 8 November 2020 (UTC)

I forgot to mention: I am talking about my account on oeis.org/wiki, NOT my mediawiki.org/wiki account. My MediaWiki account has no information on it; my OEIS account does. Matthew Niemiro (talk) 00:31, 8 November 2020 (UTC)
You would have to talk to someone responsible for oeis wiki. We provide technical help but have no ties to oeis, so can't help with political things like getting rights. Bawolff (talk) 00:47, 8 November 2020 (UTC)
I see a "request account" link on the top right of their website, maybe try that? -- Otherwise you'll need to look for a way to get in touch with that third-party website as Bawolff mentioned. Good luck! TiltedCerebellum (talk) 02:00, 16 November 2020 (UTC)
The discussion above is closed. Please do not modify it. No further edits should be made to this discussion.

Error when saving any page

Hi, I'm a newbie on mediawiki, I added some extensions and I now have the following internal error when saving an edit on my MediaWiki 1.35:


[X6dEL-RyQjbnfeziGOqTgQABEQk] 2020-11-08 01:04:48: Fatal exception of type "Error"


The extensions that i installed on the wiki are the following:

wfLoadExtension( 'VisualEditor' );

$wgDefaultUserOptions['visualeditor-enable'] = 1;

wfLoadExtension( 'YouTube' );

wfLoadExtension("EmbedVideo");

wfLoadExtension( 'TimedMediaHandler' );

$wgFFmpegLocation = '/usr/bin/ffmpeg'; // Most common ffmpeg path on Linux

wfLoadExtension( 'CodeEditor' );

wfLoadExtension( 'WikiEditor' );

wfLoadExtension( 'PortableInfobox' );

wfLoadExtension( 'InputBox' );

wfLoadExtension( 'TemplateData' );

wfLoadExtension( 'ParserFunctions' );

$wgContentHandlerUseDB = true;

$wgPFEnableStringFunctions = false;

$wgPFStringLengthLimit = 1000;

wfLoadExtension( 'DPLforum' );

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

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


HOW COULD I FIX THE ERROR!!!!!!!!!!!!!!!!!!!!!!!!!!! 181.31.245.15 (talk) 01:09, 8 November 2020 (UTC)

My version specifications are:
MediaWiki 1.35
Pp 7.4.9 181.31.245.15 (talk) 01:11, 8 November 2020 (UTC)
alvinkhan772@gmail.com 202.134.8.133 (talk) 02:55, 8 November 2020 (UTC)
alvinkhan772@gmail.com 202.134.8.133 (talk) 02:55, 8 November 2020 (UTC)
Please see Manual:How to debug. Also add $wgShowExceptionDetails = true in LocalSettings.php so as to get more info about the error. – Ammarpad (talk) 04:43, 8 November 2020 (UTC)

I want to create an extension "Search with Wikipedia" for edge.

I need to know how to search inside wikipedia by URL.

For example:

www.google.com/#q=supernovae

Google use '#q=' for search 'supernovae'.

Anybody know for Wikipedia?

Thanks Nirvanum (talk) 09:50, 8 November 2020 (UTC)

We provide a standard opensearch api - API:Opensearch. Edge most likely supports this out of the box.
Additionally wikipedia uses https://en.wikipedia.org/w/index.php?search=suprnovae Bawolff (talk) 12:00, 8 November 2020 (UTC)
Perfect, this answer my question, thank you and have a good day! Nirvanum (talk) 15:01, 10 November 2020 (UTC)

Users can't create an account

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


Hello, on my wiki, we can only connect with the menu, there is not link to create an account !! Someone can help me ? JBdu50 (talk) 12:33, 8 November 2020 (UTC)

go to create acct up in right hand corner on main page and just create from here there is n link to b sent Nikkinmp33 (talk) 13:28, 8 November 2020 (UTC)
Sorry but I have not this ! Can you look at ?
en.beyblade.wiki JBdu50 (talk) 13:49, 8 November 2020 (UTC)
@JBdu50 Please go to the address that you posted, open the links on that page, and read them. As long as you don't complete setting up your wiki only an admin can access it. Malyacko (talk) 14:41, 8 November 2020 (UTC)
Probably during installation you've chosen "Private" or "Authorized editors" only option. You should look for the line that has $wgGroupPermissions['*']['createaccount'] = false; in your LocalSettings.php and delete it. – Ammarpad (talk) 14:42, 8 November 2020 (UTC)
Thank's a lot Ammarpad !! JBdu50 (talk) 14:55, 8 November 2020 (UTC)
The discussion above is closed. Please do not modify it. No further edits should be made to this discussion.

wgMainPageIsDomainRoot

When I enable the following option:
Manual:$wgMainPageIsDomainRoot
The filter box in the Special:RecentChanges fails
please guide me
Thanks Sokote zaman (talk) 15:26, 8 November 2020 (UTC)
The problem with the photo is obvious:
$wgMainPageIsDomainRoot = true;
$wgMainPageIsDomainRoot = false;
@Malyacko@Ammarpad Sokote zaman (talk) 04:19, 9 November 2020 (UTC)
@Sokote zaman Please always read the sidebar and always provide clear instructions, always including what happens (not what does not happen) and what "it fails" actually means, plus always version information. Thanks. Malyacko (talk) 15:47, 8 November 2020 (UTC)
Sorry I forgot
Thankful
محصول نسخه
MediaWiki 1.35.0 (2017dbd)
PHP 7.3.21 (apache2handler)
MariaDB 10.4.13-MariaDB
ICU 66.1
LuaSandbox 3.0.3
Lua 5.1.5
https://wikihowzeh.ir
@Malyacko Sokote zaman (talk) 16:41, 8 November 2020 (UTC)
@Sokote zaman You ignored half of my comment. Please read carefully. Malyacko (talk) 18:12, 8 November 2020 (UTC)
You have yet to explain what "fails" means. Explain what happens when you set the variable and when you unset it so as to know the difference. – Ammarpad (talk) 17:55, 8 November 2020 (UTC)
Seems to work now when I visited your site (I suppose you changed the config back).
Check your web browsers developer console for any errors. Bawolff (talk) 15:30, 10 November 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.


Please create following pages with translation:

@আফতাবুজ্জামান Please read the side bar: "For issues about the mediawiki.org website, report to Current issues instead." Thanks. Malyacko (talk) 23:27, 8 November 2020 (UTC)
The discussion above is closed. Please do not modify it. No further edits should be made to this discussion.

Redirection fails in Webikit browsers with NSPOSIXErrorDomain: 100

Dear maintainers,

Redirect 301, served under Apache 2.4, fails in Webkit browsers such as Safari on macOS, Google Chrome on iOS (iPad), and so on. This terrible behaviour affect many situations in which redirection is needed.

For example, when my mediawiki redirects from index.php?title=Special:Login to index.php?title=特別:ログイン, Safari says NSPOSIXErrorDomain: 100 and shows nothing other than the error message. Of course, there are no problems if I try redirection on other OS and browsers. By curling the same URL, I find out that the redirection response contains extra packets with the following message:

Excess found in a non pipelined read: excess = 20 url = /index.php (zero-length body)

although the Content-Length is 0. This is caused by compressing empty data in include/OutputHandler.php. If we do not perform the gzip compression in between ob_start and ob_end_flush, extra bytes do not appear, so redirection goes without any problems as expected. For this, I have confirmed that setting $wgDisableOutputCompression = false or commenting out the corresponding line in OutputHandler.php resolves the redirection error in Webkit browsers.

MediaWiki 1.35.0
PHP 7.4.3 (cgi-fcgi)
MySQL 5.7.29-log
ICU 50.2
  • Server version: Apache/2.4.6 (CentOS)
  • Safari 14.0 (15610.1.28.1.9, 15610) / MacOS Catalina 10.15.7

I also tried other environments as follows:

  • PHP 7.4.12 with php -S localhost:9000 on my local PC. No extra bytes. No redirection errors.
  • PHP 7.4.4 served under nginx 1.16.1. No extra bytes. No redirection errors.
  • Checking extra bytes in response by curl -i -v --compressed --http1.1 'http:// host : port /index.php?title=Special:Login'

So the problem (perhaps?) seems like specific to the combination with Apache 2.4. Note that some blog authors say that, when served by Apache 2.4, the error NSPOSIXErrorDomain: 100 can be resolved by Header unset Upgrade, but this did not work well for me. I think HTTP/2 Upgrade header has nothing to do with the redirection error in my situation.

Thanks. Tomoki Uda (talk) 20:00, 8 November 2020 (UTC)

hmm, there have now been several complaints about our gzip code causing problems under apache with http/2 enabled. Bawolff (talk) 23:37, 8 November 2020 (UTC)
Such as Has MW 1.35 changed when/how the HTTP header, Content-Length, are used? on Project:Support desk (mediawiki.org) Peculiar Investor (talk) 23:26, 9 November 2020 (UTC)
I filed phab:T267647 Bawolff (talk) 15:25, 10 November 2020 (UTC)

Having problems with my game Login

I play on the FOE US server for 12 years now.... No problem logging in to the game but when I go to "wiki" from the game....I can't login there says there is NO SUCH PLAYER called "Intellecus" (There is no user by the name "Intellecus". Usernames are case sensitive. Check your spelling, or create a new account.).

When I try to create a account... I get the permission error message.

Permission error

You do not have permission to do that, for the following reason:

You are not allowed to execute the action you have requested.


Can you please fix my account?... I have no idea what the problem is . My email address when I started years ago was lwharrell@windstream.net but NOW IT IS...lwharrell@outlook.com Intellecus (talk) 00:19, 9 November 2020 (UTC)

please contact one of the admins for that wiki. We cannot do anything about this because we are not associated with that wiki. Bawolff (talk) 00:27, 9 November 2020 (UTC)

Edit history is not displayed in recent changes.

CheckUser is causing trouble here. Tracked with T309939.

Hello. I run a wiki called http://www.escapewiki.org. Today, edit history is not displayed in recent changes.

https://imgur.com/a/iuY2kpF

https://imgur.com/a/0cAya8H

Edited on November 9, 2020 (http://www.escapewiki.org/wiki/%ED%8A%B9%EC%88%98:%EA%B8%B0%EC%97%AC/GTX1060) but not displayed in recent changes.(http://www.escapewiki.org/wiki/%ED%8A%B9%EC%88%98:%EC%B5%9C%EA%B7%BC%EB%B0%94%EB%80%9C) I am not a bot. What should I do? GTX1060 (talk) 00:34, 9 November 2020 (UTC)

that's a weird one. Some general things to try:
if you look in recentchanges table in the mysql database, is there a record for the edit in the db table?
Is jobqueue running? (try running runJobs.php just to see.
Do you have any errors in php error log?
If you can trigger it consistently are there any errors in mediawiki debug log? (See How to debug) Bawolff (talk) 21:14, 9 November 2020 (UTC)
https://imgur.com/a/RSmplc7
I installed the CheckUser extension on my wiki and ran into that problem. Trying to remove the CheckUser extension again solved the problem. What's wrong? GTX1060 (talk) 11:28, 10 November 2020 (UTC)
Did you run update.php? If the DB table is missing it might cause a DB rollback when trying to add things to the recentchanges table. Bawolff (talk) 15:21, 10 November 2020 (UTC)
Yes. I ran update.php before installing the CheckUser extension. GTX1060 (talk) 23:47, 10 November 2020 (UTC)
you have to run it after installing checkuser not before. Bawolff (talk) 07:55, 11 November 2020 (UTC)
I ran into this issue too after upgrading to MW 1.35.x Most probably the same. On selected pages I get an error which I now reported with T309939. [[kgh]] (talk) 08:39, 5 June 2022 (UTC)

Could not successfully connect to an LDAP server

We are using Mediawiki 1.33 and trying to integrate LDAP with media wiki.

Below is the configuration.

=======

#AD Configuration

require_once ("extensions/LdapAuth/src/Auth/LdapAuthenticationRequest.php");

#$wgAuth = new LdapAuthenticationPlugin();

$wgLDAPDomainNames = array('EXAMPLE.DOMAIN.CO.IN');

$wgLDAPServerNames = array('EXAMPLE.DOMAIN.CO.IN' => 'DOMAIN-SRV-AD01.EXAMPLE.DOMAIN.CO.IN');

$wgLDAPSearchStrings = array('EXAMPLE.DOMAIN.CO.IN' => 'uid=wikiuser,OU=Service Accounts,DC=EXAMPLE,DC=DOMAIN,DC=CO,DC=IN');

$wgLDAPEncryptionType = array('EXAMPLE.DOMAIN.CO.IN' => 'none');

$wgLDAPUseLocal = false;

$wgMinimalPasswordLength = 1;

$wgLDAPDebug = 3; //for debugging LDAP

$wgShowExceptionDetails = true; //for debugging MediaWiki

$wgShowDBErrorBacktrace = true;

$wgShowSQLErrors = true;

$wgDebugLogFile = '../tmp/ldapdebug.log';

wfLoadExtension( 'LdapAuth' );

$wgLdapAuthDomainNames = array('CORP.DOMAIN.CO.IN','DOMAIN-SRV-AD01.CORP.DOMAIN.CO.IN');

$wgLdapAuthServers = 'DOMAIN-SRV-AD01.EXAMPLE.DOMAIN.CO.IN';

$wgLdapAuthBindDN = 'CN=wikiuser,OU=Service Accounts,DC=EXAMPLE,DC=DOMAIN,DC=CO,DC=IN';

$wgLdapAuthBindPass = 'password';

$wgLdapAuthBaseDN = 'OU=Users,DC=EXAMPLE,DC=DOMAIN,DC=CO,DC=IN';

$wgLdapAuthIsActiveDirectory = true;

==================
I have checked for multiple posts and struggling to resolve this issue.

Can someone please check and help ?


Thanks 115.124.112.166 (talk) 05:17, 9 November 2020 (UTC)

Microsoft AD requires secure connections. You have set "enctype" to "none". Maybe that is the issue. Osnard (talk) 12:29, 9 November 2020 (UTC)

Vector Desktop Improvements

How can I use the new Reading/Web/Desktop Improvements for the Vector skin in my wiki? 2003:C5:FF07:AD92:D474:C2BE:2D0B:8DAA (talk) 08:29, 9 November 2020 (UTC)

Set $wgVectorDefaultSkinVersion = 2;. You may also need to set $wgVectorDefaultSkinVersionForExistingAccounts = 2;Ammarpad (talk) 11:58, 9 November 2020 (UTC)

Are MediaWiki all-core websites considered "accessible" by any universal standard?

I have an Hebrew, principally all-core, 1.34.2 MediaWiki website which I do best to frequently upgrade just to ensure its users (including myself) enjoy all the bounties of latest versions.

I am not a web-accessibility expert and I am not very smart about the universal standards, let along national (state-specific) standards in regards to that matter; the Israeli law in regards to web-accessibility is considered by some I regard as experts in this field as virtually "frequently changing" and somewhat unclear.

  • Many Hebrew WordPress and Drupal websites have an "accessibility-bar" that might be obligatory by Israeli law but I don't recall ever coming across such accessibility bar in any MediaWiki based Hebrew website.

Are MediaWiki all-core websites considered "accessible" by any universal standard?

And BTW, although my website is in Hebrew its domain is not "Israeli" and its not hosted by an Israeli hosting provider I still want to be as much as okay with Israeli audience as I can in this matter so I ask here - should I install some CMS-agnostic accessibility-bar? 182.232.196.190 (talk) 14:04, 9 November 2020 (UTC)

We take steps to make the software accessible (However this will also depend on which skin you use). That said, I don't think anyone has evaluated it against any particular standard.
If you find anything in the software that's bad for accessibility, please file a bug.
See also Accessibility Bawolff (talk) 15:20, 10 November 2020 (UTC)
I personally use the TimeLess skin because it is screen-responsive (and perhaps also mobile-first), which helps me solve lots of problems.
I can only hope that the core would come with just one skin to which all energy invested on accessibility will go. 49.230.141.67 (talk) 15:27, 10 November 2020 (UTC)
probably most energy is invested in Vector and Minerva, but Timeless is pretty good too. Bawolff (talk) 07:54, 11 November 2020 (UTC)

How do I remove the background image in MonoBook responsive?

Probably a hickup for a day or two. To remove this background image use
.mediawiki {
    background: #fff none repeat scroll 0 0;
}

I managed to do this in MonoBook using:

.mediawiki {
    background: #fff none repeat scroll 0 0;
}

I tried

.body {
    background-image: none;
}

or

.body {
    background: none;
    background-image: none;
}

and it does not work, even with !important

Any help welcome! 2003:F1:C73C:4900:F10F:85AB:EC5D:602D (talk) 16:55, 9 November 2020 (UTC)

I cannot edit my post. The last two examples were for MonoBook responsive. 2003:F1:C73C:4900:F10F:85AB:EC5D:602D (talk) 16:57, 9 November 2020 (UTC)
What is monobook responsive? Do you have a link to your wiki? Bawolff (talk) 21:10, 9 November 2020 (UTC)
MonoBook has responsive option.

The last two examples were for MonoBook responsive.

You should use the same rule, I don't see why they should be different. Note that on certain special pages styling is restricted, so make sure you're testing on content pages. – Ammarpad (talk) 01:12, 10 November 2020 (UTC)
MonoBook responsive is a skin deployed to at least German Wikipedia. Not sure who is developing this skin. At the same time I was opted in to using the responsive version. I only found out because the content pages rendered with logo otherwise I would not have noticed. Anyhow, today after reverting things got back to normal for MonoBook responsive even on content pages. Note that this background image is not funny, not even for backwards looking people, hence ... ;) 2003:F1:C73C:4900:978:4199:1B71:73E2 (talk) 09:11, 10 November 2020 (UTC)
Huh, for me the theme is just called Monobook, I think that's where the confusion was for me too. Monobook has an option to toggle on/off responsiveness in user settings but it's all the same skin, Monobook. When I visit the version page the only skin related to monobook I see installed is Monobook, so I went poking in the user settings and can confirm the toggle responsive toggle box for Monobook skin https://de.wikipedia.org/wiki/Spezial:Version Also, when I look at the MediaWiki namespace there is only a single style sheet for Monobook. I'm able to style the background fine but first the background image and gradient needs to be nullified for me to see the color, since they sit in front of that, for example.
I do notice that user css has to match the skin css title, but without the capital in the skin name, in order to take affect, so creating the following worked fine for me on de.wikipedia.org:
Benutzer:UserName/monobook.css
And the contents of the file:
body  { 
    background-image:unset !important; 
    background-color:white; 
}
^That gave me a white background and removed the background image.
@2003:F1:C73C:4900:F10F:85AB:EC5D:602D The responsive part is not a separate skin, it's all one skin, Monobook. The whole idea behind responsiveness is to use a single skin/theme for all devices, in order to simplify skin/theme development and maintenance. Instead of having to maintain and use multiple skins/themes repsonsive web design is supposed to instead respond to different device sizes based on a single set of styling rules. Responsive generally accomplishes this through special CSS rules (called media queries) used to first query a device's screen size, and then apply any styles that are targeted to that specific screen size (if desired and if set). So a couple of media query examples:
/* Regular style rules */
body  { 
    background-image:unset !important;
    background-color:pink;
}
/* Media queries (at the end, decending in size) */
@media screen and (max-width:1024px) {
/* If screen size is 1024px wide or less */
  body {
      background-color:lightgrey;
  }
/* End of media query */
}
/* Media Queries */
@media screen and (max-width:640px) {
/* If screen size is 640px wide or less */
  body {
      background-color:white;
  }
/* End of media query */
}
^So with the above, at screen width of 640px or less, the background will be white. At a screen size between 640 and 1024px wide, the screen color will be light grey. At any screen size above 1024, the background will be pink (yuck lol). So that's why we were confused to hear of a separate skin referenced for responsive. It shouldn't be a separate skin as that defeats the purpose of responsiveness. TiltedCerebellum (talk) 06:34, 17 November 2020 (UTC)

SimpleSAML and Keycloak - Kinda loop

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


Hey..

I've setup Mediawiki login to goes trhu Keycloak using SimpleSAML.

All the configuration works well if I test via mediawiki.example.com/simplesaml -> Authentication -> Test authentication sources -> Test configured authentication sources


https://paste.pics/AN0Q5


When I try to do a login via mediawiki.example.com link , I get the keycloak user/pass screen (as the same in simplesaml test), but after I click on "Login Buton", the authentication process is handled by keycloak but I got the keycloak login screen again... and we play this in a infinite loop :)


Here are some SAML messages:

1) Mediawiki SAML Request to Keycloak realm.


€‹<samlp:AuthnRequest

    AssertionConsumerServiceURL="http://mediawiki.example.com/simplesaml/module.php/saml/sp/saml2-acs.php/mediawiki"

    Destination="https://keycloak.example.com/auth/realms/Realm/protocol/saml/clients/mediawiki.example.com"

    ID="_14a280e5b07d9c3e23fe23c04dbe2464b1a1edde43" IssueInstant="2020-11-09T16:40:58Z"

    ProtocolBinding="urn:oasis:names:tc:SAML:2.0:bindings:HTTP-POST" Version="2.0"

    xmlns:saml="urn:oasis:names:tc:SAML:2.0:assertion"

    xmlns:samlp="urn:oasis:names:tc:SAML:2.0:protocol">

    <saml:Issuer>mediawiki.example.com</saml:Issuer>

<samlp:NameIDPolicy AllowCreate="true" Format="urn:oasis:names:tc:SAML:2.0:nameid-format:transient"/></samlp:AuthnRequest>


2) Keycloak SAML response


<samlp:Response

    Destination="http://mediawiki.example.com/simplesaml/module.php/saml/sp/saml2-acs.php/mediawiki"

    ID="ID_27196c95-7266-48a3-8678-f1335148e7ed" IssueInstant="2020-11-09T16:41:10.274Z" Version="2.0"

    xmlns:saml="urn:oasis:names:tc:SAML:2.0:assertion"

    xmlns:samlp="urn:oasis:names:tc:SAML:2.0:protocol">

    <saml:Issuer>https://keycloak.codev.nod.cc/auth/realms/CCMN_Realm</saml:Issuer>

    <dsig:Signature xmlns:dsig="http://www.w3.org/2000/09/xmldsig#">

        <dsig:SignedInfo><dsig:CanonicalizationMethod Algorithm="http://www.w3.org/2001/10/xml-exc-c14n#"/><dsig:SignatureMethod Algorithm="http://www.w3.org/2001/04/xmldsig-more#rsa-sha256"/>

            <dsig:Reference URI="#ID_27196c95-7266-48a3-8678-f1335148e7ed">

                <dsig:Transforms><dsig:Transform Algorithm="http://www.w3.org/2000/09/xmldsig#enveloped-signature"/><dsig:Transform Algorithm="http://www.w3.org/2001/10/xml-exc-c14n#"/></dsig:Transforms><dsig:DigestMethod Algorithm="http://www.w3.org/2001/04/xmlenc#sha256"/>

                <dsig:DigestValue>Hl19/sfPnCt/vHTKxP6yD08zIOjyAz7LWKgakZnTza0=</dsig:DigestValue>

            </dsig:Reference>

        </dsig:SignedInfo>

        <dsig:SignatureValue>DItf9RJZQ71G5wBmkZJix4W..........................wUfe+FZC0z9dtveHgPYZmg==</dsig:SignatureValue>

        <dsig:KeyInfo>

            <dsig:KeyName>o8_hDHOXCIpDYDd98gbHh-TkTxChgbInsbc4WiLBDaw</dsig:KeyName>

            <dsig:X509Data>

                <dsig:X509Certificate>MIIC .......... Ag==</dsig:X509Certificate>

            </dsig:X509Data>

            <dsig:KeyValue>

                <dsig:RSAKeyValue>

                    <dsig:Modulus>gdse........ Q==</dsig:Modulus>

                    <dsig:Exponent>AQAB</dsig:Exponent>

                </dsig:RSAKeyValue>

            </dsig:KeyValue>

        </dsig:KeyInfo>

    </dsig:Signature>

    <samlp:Status><samlp:StatusCode Value="urn:oasis:names:tc:SAML:2.0:status:Success"/></samlp:Status>

    <saml:EncryptedAssertion>

        <xenc:EncryptedData Type="http://www.w3.org/2001/04/xmlenc#Element"

            xmlns:xenc="http://www.w3.org/2001/04/xmlenc#"><xenc:EncryptionMethod Algorithm="http://www.w3.org/2001/04/xmlenc#aes128-cbc"/>

            <ds:KeyInfo xmlns:ds="http://www.w3.org/2000/09/xmldsig#">

                <xenc:EncryptedKey><xenc:EncryptionMethod Algorithm="http://www.w3.org/2001/04/xmlenc#rsa-oaep-mgf1p"/>

                    <xenc:CipherData>

                        <xenc:CipherValue>Y/0dynrh83a ......................... 0dlUea</xenc:CipherValue>

                    </xenc:CipherData>

                </xenc:EncryptedKey>

            </ds:KeyInfo>

            <xenc:CipherData>

                <xenc:CipherValue>bq99999999999999999


3) The evil redirect


<samlp:AuthnRequest

    AssertionConsumerServiceURL="http://mediawiki.example.com/simplesaml/module.php/saml/sp/saml2-acs.php/mediawiki"

    Destination="https://keycloak.example.com/auth/realms/CCMN_Realm/protocol/saml/clients/mediawiki.example.com"

    ID="_fd4bce062708ae6734ea24a03abcdbe276db4a8825" IssueInstant="2020-11-09T16:41:10Z"

    ProtocolBinding="urn:oasis:names:tc:SAML:2.0:bindings:HTTP-POST" Version="2.0"

    xmlns:saml="urn:oasis:names:tc:SAML:2.0:assertion"

    xmlns:samlp="urn:oasis:names:tc:SAML:2.0:protocol">

    <saml:Issuer>mediawiki.codev.nod.cc</saml:Issuer><samlp:NameIDPolicy AllowCreate="true" Format="urn:oasis:names:tc:SAML:2.0:nameid-format:transient"/></samlp:AuthnRequest>


On step 3, I can see that "Destination" may cause the problem but I can't see how to fix it.


Thanks to everyone in advance.


Antonio Marques Antonio A M Sa (talk) 17:25, 9 November 2020 (UTC)

maybe you need to add https:// to the beginning of the destination url in the simplesaml config (just a guess, dont know much about this) Bawolff (talk) 21:09, 9 November 2020 (UTC)
Thanks @Bawolff, but it's not related to http ou https.
This is related to one of reply to this post https://phabricator.wikimedia.org/T152153 written by @Cindy.cicalese (Thank you Cindy!!)
That's the problem. From the the extension page: " SimpleSAMLphp cannot be configured to use phpession for store.type, since this is not compatible with MediaWiki's session management framework." I have been successful using SQL storage, which is documented here. For MySQL.
The Loop problem was solved, but now I got a new one.
Auto-creation of a local account failed: You have not specified a valid username.
Ohh My!!! Antonio A M Sa (talk) 10:25, 10 November 2020 (UTC)
The discussion above is closed. Please do not modify it. No further edits should be made to this discussion.

Apache or Nginx

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.


When installing MediaWiki on a new unmanaged VPS, is either preferred over the other? I’m used to Apache from a shared server but would use Nginx if it is recommended. Thanks.

Here's what Compatibility says: "MediaWiki is broadly compatible with all major web servers that can invoke a compatible version of PHP. Apache is the most used and tested. Nginx is a good choice as well." Jonathan3 (talk) 20:01, 9 November 2020 (UTC)

both are very commonly used. Bawolff (talk) 21:07, 9 November 2020 (UTC)
Apparently Apache is more common on shared servers (because of pre-directory .htaccess etc) and I know it works. I wondered whether there would be any advantages to Nginx, seeing as I have the choice now, but I guess with MediaWiki it's much of a muchness. Thank you again. Jonathan3 (talk) 12:35, 10 November 2020 (UTC)
The discussion above is closed. Please do not modify it. No further edits should be made to this discussion.

JavaScript error

javascript (e.g. RecentChanges, Log out button) is not loaded.

how to fix this error?

url: http://wikipediat.epizy.com

Thanks. Gomdoli (talk) 08:29, 10 November 2020 (UTC)

ah I found Gomdoli (talk) 08:31, 10 November 2020 (UTC)

Visual editor failed to load

I install clear Mediawiki v.1.35 via SoftAculus autoinstaller that my host provider provides.

The problem is - visual editor doesn't work, instead of it non-visual is opened.

I see the following error in chrome console: Visual editor failed to load: Error: Failed dependencies

How can I solve this problem? 2A00:1FA0:213:E32A:0:4E:EB7D:8901 (talk) 10:44, 10 November 2020 (UTC)

How to set "Show me both editor tabs" as default for users?

Is there any way to set Show me both editor tabs (both for source and visual editing) as the default setting for users on my wiki?

Extension:VisualEditor#Activating_VisualEditor_by_default does not yet document that. 79.249.155.180 (talk) 20:01, 10 November 2020 (UTC)

How to recover login to an account with no email and forgotten password

I'm the user [[user:Millennium bug]], a former sysop and bureaucrat of pt-wikipedia. A few days ago, after being severely insulted by highly-priviledged account owners because of a simple disagreement, I intentionally supressed email recovery and replaced the password in order that I could not remember it. I ask if there is a way to recover the access to the account in this situation. 2804:14D:5CD3:872C:8D56:8862:197E:D6E4 (talk) 23:12, 10 November 2020 (UTC)

Hello, I think that you should contact Trust-and-Safety team of the Wikimedia Foundation from your email address associated with your account. Their email is ca [at] wikimedia [dot] org.
Best regards! Kizule (talk) 23:22, 10 November 2020 (UTC)
I just sent it. Thaks. 2804:14D:5CD3:872C:8D56:8862:197E:D6E4 (talk) 23:36, 10 November 2020 (UTC)

FreeBSD 12, Apache and PHP-FPM 7.3

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


Hello. I've setup media wiki a dozen times in several different environments over the years and never had this much trouble.

About my environment:

FreeBSD x64 12.2
Apache2.4
PHP-FPM 7.3.24
MediaWiki 1.35.0

After getting PHP-FPM to work showing the results of phpinfo(), I downloaded MediaWiki 1.35.0, I am then greeted with the page where media wiki requires some extensions.

php73-mbstring-7.3.24
php73-iconv: 7.3.24
php73-xml-7.3.24
php73-json-7.3.24
php73-ctype-7.3.24
php73-fileinfo-7.3.24

I installed each extension one at a time, verifying that it disappears from the list MediaWiki gives me of required packages. After installing all 6 php extensions, I get this lovely error:

Fatal error: Uncaught Error: Call to undefined function hash() in /usr/local/www/apache24/wiki/includes/utils/FileContentsHasher.php:73 Stack trace:
 #0 /usr/local/www/apache24/wiki/includes/utils/FileContentsHasher.php(98): FileContentsHasher->getFileContentsHashInternal('/usr/local/www/...', 'md4')
 #1 /usr/local/www/apache24/wiki/includes/TemplateParser.php(265): FileContentsHasher::getFileContentsHash(Array)
 #2 /usr/local/www/apache24/wiki/includes/TemplateParser.php(170): TemplateParser->compile('NoLocalSettings')
 #3 /usr/local/www/apache24/wiki/includes/TemplateParser.php(290): TemplateParser->getTemplate('NoLocalSettings')
 #4 /usr/local/www/apache24/wiki/includes/NoLocalSettings.php(57): TemplateParser->processTemplate('NoLocalSettings', Array)
 #5 /usr/local/www/apache24/wiki/includes/WebStart.php(67): require_once('/usr/local/www/...')
 #6 /usr/local/www/apache24/wiki/includes/Setup.php(138): wfWebStartNoLocalSettings()
 #7 /usr/local/www/apache24/wiki/includes/WebStart.php(89): require_once('/usr/local/www/...')
 #8 / in /usr/local/www/apache24/wiki/includes/utils/FileContentsHasher.php on line 73 

I will state that I am new to using PHP-FPM and I assumed it would function just like any other php environment I've personally used. ZapDragon (talk) 11:56, 11 November 2020 (UTC)

You should search on phpinfo() to see whether Hash extension is enabled. You can also use php -m | grep hash command to quickly check that on CLI – Ammarpad (talk) 12:32, 11 November 2020 (UTC)
Thank you Ammarpad.
Installing php7.3-hash resolved the error.
Except now It is giving me a new error:
Fatal error: Uncaught Error: Call to undefined function MediaWiki\Session\session_id() in /usr/local/www/apache24/wiki/includes/session/SessionBackend.php:253 Stack trace:
#0 /usr/local/www/apache24/wiki/includes/session/Session.php(98): MediaWiki\Session\SessionBackend->resetId()
#1 /usr/local/www/apache24/wiki/includes/session/SessionManager.php(887): MediaWiki\Session\Session->resetId()
#2 /usr/local/www/apache24/wiki/includes/session/SessionManager.php(220): MediaWiki\Session\SessionManager->getSessionFromInfo(Object(MediaWiki\Session\SessionInfo), Object(WebRequest))
#3 /usr/local/www/apache24/wiki/includes/WebRequest.php(826): MediaWiki\Session\SessionManager->getSessionForRequest(Object(WebRequest))
#4 /usr/local/www/apache24/wiki/includes/user/User.php(1169): WebRequest->getSession()
#5 /usr/local/www/apache24/wiki/includes/user/User.php(338): User->loadDefaults()
#6 /usr/local/www/apache24/wiki/includes/user/User.php(2125): User->load()
#7 /usr/local/www/apache24/wiki/includes/user/User.php(3064): User->getId() # in /usr/local/www/apache24/wiki/includes/session/SessionBackend.php on line 253 ZapDragon (talk) 21:54, 11 November 2020 (UTC)
It seems you don't have Session extension too. php -m | grep sessionAmmarpad (talk) 03:34, 12 November 2020 (UTC)
Thank you Ammarpad. I was simply missing extensions. After getting those installed I was able to get everything setup and working. ZapDragon (talk) 22:55, 18 November 2020 (UTC)
The discussion above is closed. Please do not modify it. No further edits should be made to this discussion.

New problem: failed to open stream: No such file or directory 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.


Hi everyone,

I was tryin' to install MediaWiki but after uploading the files on my webspace I get a lot of errors. Can anyone help please?


Warning: include(/var/www/web27548574/html/norden/vendor/composer/../liuggio/statsd-php-client/src/Liuggio/StatsdClient/Factory/StatsdDataFactory.php): failed to open stream: No such file or directory in /var/www/web27548574/html/norden/vendor/composer/ClassLoader.php on line 444


Warning: include(): Failed opening '/var/www/web27548574/html/norden/vendor/composer/../liuggio/statsd-php-client/src/Liuggio/StatsdClient/Factory/StatsdDataFactory.php' for inclusion (include_path='/var/www/web27548574/html/norden/vendor/pear/console_getopt:/var/www/web27548574/html/norden/vendor/pear/mail:/var/www/web27548574/html/norden/vendor/pear/mail_mime:/var/www/web27548574/html/norden/vendor/pear/net_smtp:/var/www/web27548574/html/norden/vendor/pear/net_socket:/var/www/web27548574/html/norden/vendor/pear/pear-core-minimal/src:/var/www/web27548574/html/norden/vendor/pear/pear_exception:.:/opt/php/7.4.3/share/pear') in /var/www/web27548574/html/norden/vendor/composer/ClassLoader.php on line 444


Fatal error: Uncaught Error: Class 'Liuggio\StatsdClient\Factory\StatsdDataFactory' not found in /var/www/web27548574/html/norden/includes/libs/stats/BufferingStatsdDataFactory.php:35 Stack trace: #0 /var/www/web27548574/html/norden/includes/AutoLoader.php(109): require() #1 [internal function]: AutoLoader::autoload('BufferingStatsd...') #2 /var/www/web27548574/html/norden/includes/ServiceWiring.php(1193): spl_autoload_call('BufferingStatsd...') #3 /var/www/web27548574/html/norden/vendor/wikimedia/services/src/ServiceContainer.php(447): Wikimedia\Services\ServiceContainer->{closure}(Object(MediaWiki\MediaWikiServices)) #4 /var/www/web27548574/html/norden/vendor/wikimedia/services/src/ServiceContainer.php(416): Wikimedia\Services\ServiceContainer->createService('StatsdDataFacto...') #5 /var/www/web27548574/html/norden/includes/MediaWikiServices.php(1225): Wikimedia\Services\ServiceContainer->getService('StatsdDataFacto...') #6 /var/www/web27548574/html/norden/includes/ServiceWiring.php(656): MediaWiki\MediaWikiServices->ge in /var/www/web27548574/html/norden/includes/libs/stats/BufferingStatsdDataFactory.php on line 35 Weejan91 (talk) 15:27, 11 November 2020 (UTC)

I've solved the problems on my own. I was using 7zip and you need to extract the files by WinRAR. 7zip is making problems while extracting files. Thanks guys! :-) Weejan91 (talk) 17:10, 11 November 2020 (UTC)
Glad you found it. See also phab:T257102Ammarpad (talk) 03:30, 12 November 2020 (UTC)
The discussion above is closed. Please do not modify it. No further edits should be made to this discussion.

forgot username and password

I've forgotten my username and password. I know that my email is correct ken.premo@me.com, I receive monthly thank you notices for my donations at that address. How can I access my account? 76.167.152.43 (talk) 16:20, 11 November 2020 (UTC)

Go to Special:PasswordReset and enter the email in the second field. Leave the username field blank and submit. – Ammarpad (talk) 17:02, 11 November 2020 (UTC)

Blank page after inserting $wgGroupPermissions 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.


I have installed mediawiki 1.31 from the repositories of debian 10. I didn't get 1.35 to run.

All works fine. I can make changes in the Localsettings as delivered by the setup-tool when installing mediawik. But I would like to insert restrictions at the end of the file Localsettings.php like $wgGroupPermissions['*']['edit'] = false, but when I insert any kind of GroupPermission the site goes white, when reloaded. I found a hint, that I should insert

error_report( E_ALL );

ini_set( 'display_errors', 1 );

at the beginning of Localsettings.php, but nothing happens.

When removing $wgGroupPermissions['*']['edit'] = false everything works fine again.


Thanks for tips and hints


Jürgen Linfiets (talk) 09:58, 12 November 2020 (UTC)

A stupid mistake I made.
The line should be reading
$wgGroupPermissions['*']['edit'] = false;
I forgot the ';' at the end of the line. 2003:C7:DF1B:1100:1590:AB82:965B:EB8 (talk) 12:07, 12 November 2020 (UTC)
The discussion above is closed. Please do not modify it. No further edits should be made to this discussion.

Something Similair as deepcat

Wikimedia version 1.34

Elasticsearch version : 6.8.13 + Cirrusearch + Elastica


Hi There,


Simple problem but i wasn't able to find a solution or answer that could help me with my problem. We have some time in my company because of corona so a good time to create a wiki with information that we have collected the last years. So the problem is i am unable to find a option to search in the parent category and subcategorys for example i have


Parent category : Software

Subcategory : Example Software


But i also have


Parent category : Hardware

Subcategory : Example Hardware


For some people the hardware is important and other the software and if i search now on "example" im getting results from the hardware and software category. Is it possible to just include software in the search bar and "example" so i only get hits from the parent software + all subcategorys that include the text example.

If i search incategory:"Software" example

im only getting the result under the category software and not hits for that word in the subcategorys from software..


I found some text about deepcat but i have no clue how to set that up and of it fulfills my wishes. Is there any other application that can do this i tried using the extension Extension:Multi-Category Search but that wasn't what i am looking for.

Thank you for the information


Best regards 89.105.214.210 (talk) 10:22, 12 November 2020 (UTC)

Would something like Extension:AdvancedSearch help users to do what they're after? TiltedCerebellum (talk) 05:29, 13 November 2020 (UTC)
Im affraid not, i have already added that to the wiki but that works with deepcat to my knowledge... 89.105.214.210 (talk) 07:51, 13 November 2020 (UTC)
There is an "incategory" feature that can be combined with "intitle" for Cirrus search, are you using that and not getting results (I'm just grasping at straws with an attempt to help since I don't use your config and am just a MW user, sorry)?
Help:CirrusSearch#Intitle and incategory TiltedCerebellum (talk) 05:17, 17 November 2020 (UTC)

Customize parts of the page

Hello

I have a question about template making:

A page that consists of three parts:

Text above,

Middle text

Bottom text.

There are 4 buttons with the name of text below 1, text below 2, text below 3, text below 4 at the bottom of this page.

How can I change the third part (lower text) by clicking on the button with the name of the lower text 2, so that this change is applied only to the lower text and the upper text and the middle text do not change?

Then, by clicking on the button with the name of the text below 3, I will continue this process and each time you click on these 4 buttons, only the text below will change.

Thank you for your help.

Thanks Sokote zaman (talk) 14:32, 12 November 2020 (UTC)

Hi, could you elaborate how this related to MediaWiki? Sounds like HTML and JavaScript to me? Malyacko (talk) 18:57, 12 November 2020 (UTC)
Although Wiki has very broad and advanced infrastructure capabilities, but at the same time it has little apparent power and its appearance is classic, now it is necessary to develop this strong program to do a series of things, my question is how should I do this important thing to run the layout of wiki operations, on the other hand, if this program and the question is done by making a template, I would be happy to say How and which pattern is done and what are the commands of this template if you say mediaWiki in this case use html and js Sokote zaman (talk) 23:12, 12 November 2020 (UTC)

Upgrading to 1.35 - PHP Fatal error: Interface 'Liuggio\StatsdClient\Factory\StatsdDataFactoryInterface' not found

Current MediaWiki Version: 1.30

Current PHP version: 7.2 (will be upgraded to 7.3 prior to upgrade)

Database type and version: MySQL 8.0.11

http://web-wik-001/it_wiki/index.php?title=Main_Page


Good Afternoon,

I've attempted to upgrade our council wiki page from vr.1.30 to 1.35 but have hit a 'Fatal PHP Error' early on

It seems that there is an issue with the file structures, well, that what I've discerned from the errors

Please can you advise how I can get past this?

The exact errors can be seen below

Kindest Regards

Rashid Ahmed

Milton Keynes Council

rashid.ahmed@milton-keynes.gov.uk


D:\Netdata\Websites\it_wiki\IT_Wiki\maintenance>php update.php

PHP Warning:  include(D:\Netdata\Websites\it_wiki\IT_Wiki\vendor\composer/../liuggio/statsd-php-client/src/Liuggio/StatsdClient/Factory/StatsdDataFactory.php): failed to open stream: No such file or directory in D:\Netdata\Websites\it_wiki\IT_Wiki\vendor\composer\ClassLoader.php on line 444

PHP Warning:  include(): Failed opening 'D:\Netdata\Websites\it_wiki\IT_Wiki\vendor\composer/../liuggio/statsd-php-client/src/Liuggio/StatsdClient/Factory/StatsdDataFactory.php' for inclusion (include_path='D:\Netdata\Websites\it_wiki\IT_Wiki\vendor/pear/console_getopt;D:\Netdata\Websites\it_wiki\IT_Wiki\vendor/pear/mail;

D:\Netdata\Websites\it_wiki\IT_Wiki\vendor/pear/mail_mime;D:\Netdata\Websites\it_wiki\IT_Wiki\vendor/pear/net_smtp;

D:\Netdata\Websites\it_wiki\IT_Wiki\vendor/pear/net_socket;D:\Netdata\Websites\it_wiki\IT_Wiki\vendor/pear/pear-core-minimal/src;D:\Netdata\Websites\it_wiki\IT_Wiki\vendor/pear/pear_exception;.;C:\php\pear') in D:\Netdata\Websites\it_wiki\IT_Wiki\vendor\composer\ClassLoader.php on line 444

[266803eecf59fb022ee310b6] [no req]   Error from line 35 of D:\Netdata\Websites\it_wiki\IT_Wiki\includes\libs\stats\BufferingStatsdDataFactory.php: Class 'Liuggio\StatsdClient\Factory\StatsdDataFactory' not found

Backtrace:

#0 D:\Netdata\Websites\it_wiki\IT_Wiki\includes\AutoLoader.php(109): require()

#1 [internal function]: AutoLoader::autoload(string)

#2 D:\Netdata\Websites\it_wiki\IT_Wiki\includes\ServiceWiring.php(1193): spl_autoload_call(string)

#3 D:\Netdata\Websites\it_wiki\IT_Wiki\vendor\wikimedia\services\src\ServiceContainer.php(447): Wikimedia\Services\ServiceContainer->{closure}(MediaWiki\MediaWikiServices)

#4 D:\Netdata\Websites\it_wiki\IT_Wiki\vendor\wikimedia\services\src\ServiceContainer.php(416): Wikimedia\Services\ServiceContainer->createService(string)

#5 D:\Netdata\Websites\it_wiki\IT_Wiki\includes\MediaWikiServices.php(1225): Wikimedia\Services\ServiceContainer->getService(string)

#6 D:\Netdata\Websites\it_wiki\IT_Wiki\maintenance\includes\Maintenance.php(674): MediaWiki\MediaWikiServices->getStatsdDataFactory()

#7 D:\Netdata\Websites\it_wiki\IT_Wiki\maintenance\includes\Maintenance.php(664): Maintenance::setLBFactoryTriggers(Wikimedia\Rdbms\LBFactorySimple, GlobalVarConfig)

#8 D:\Netdata\Websites\it_wiki\IT_Wiki\maintenance\doMaintenance.php(101): Maintenance->setAgentAndTriggers()

#9 D:\Netdata\Websites\it_wiki\IT_Wiki\maintenance\update.php(253): require_once(string)

#10 {main}


and ............


D:\Netdata\Websites\it_wiki\IT_Wiki\maintenance>php update.php

PHP Warning:  include(D:\Netdata\Websites\it_wiki\IT_Wiki\vendor\composer/../liuggio/statsd-php-client/src/Liuggio/StatsdClient/Factory/StatsdDataFactoryInterface.php): failed to open stream: No such file or directory in D:\Netdata\Websites\it_wiki\IT_Wiki\vendor\composer\ClassLoader.php on line 444

PHP Warning:  include(): Failed opening 'D:\Netdata\Websites\it_wiki\IT_Wiki\vendor\composer/../liuggio/statsd-php-client/src/Liuggio/StatsdClient/Factory/StatsdDataFactoryInterface.php' for inclusion (include_path='D:\Netdata\Websites\it_wiki\IT_Wiki\vendor/pear/console_getopt;

D:\Netdata\Websites\it_wiki\IT_Wiki\vendor/pear/mail;D:\Netdata\Websites\it_wiki\IT_Wiki\vendor/pear/mail_mime;

D:\Netdata\Websites\it_wiki\IT_Wiki\vendor/pear/net_smtp;D:\Netdata\Websites\it_wiki\IT_Wiki\vendor/pear/net_socket;

D:\Netdata\Websites\it_wiki\IT_Wiki\vendor/pear/pear-core-minimal/src;D:\Netdata\Websites\it_wiki\IT_Wiki\vendor/pear/pear_exception;.;C:\php\pear') in D:\Netdata\Websites\it_wiki\IT_Wiki\vendor\composer\ClassLoader.php on line 444

PHP Fatal error:  Interface 'Liuggio\StatsdClient\Factory\StatsdDataFactoryInterface' not found in D:\Netdata\Websites\it_wiki\IT_Wiki\includes\libs\stats\IBufferingStatsdDataFactory.php on line 13 RashidMKC (talk) 15:07, 12 November 2020 (UTC)

See Download which does say "It is advised not to use 7-Zip to decompress the tarball, due to a bug with the PAX format." Malyacko (talk) 18:56, 12 November 2020 (UTC)
Hi @Malyacko
Thank you for the really quick reply
Apologies, oversight on my part
I will try another file extractor before trying the upgrade again
Much appreciated!
Regards
Rashid
MKC RashidMKC (talk) 12:58, 13 November 2020 (UTC)

CSS Common.css

Wenn ich es richtig verstanden habe so soll man eine common.css Seite auf der Hauptebene auf dem Server erstellen und dann zu beginn der jeweiligen Seite folgenden Befehl einsetzen.

{{#css:common.css}}


und danach kann man dann seine css befehle wie zum Beispiel


# Hauptfenster {

with: 900px;

height:500px;

background: grey;

}

ausführen. Leider habe ich nun einen ganzen Tag nur damit verbracht und habe es nicht geschafft. Ist da irgendwo etwas prinzipiell falsch? 2A02:8109:4C0:10FC:C00:FAA4:B9BD:E4FB (talk) 18:04, 12 November 2020 (UTC)

Please explain what you would like to achieve, and which documentation you follow where.
Maybe Manual:CSS#Normalized CSS ? Malyacko (talk) 18:55, 12 November 2020 (UTC)
Unless I'm misunderstanding (probable), normally you would use MediaWiki to create the page Common.css by navigating to the following in your browser: https://yoursite.com/w/MediaWiki:Common.css (change the web address to match the match the address of your site, and the /w/ to match whatever the folder your MW is nested in per the documentation), then use the usual MediaWiki "create page" option in your web browser (you don't manually create a file to upload to the server). Put your CSS inside of that MediaWiki page, save it, and after a hard browser refresh (CTRL+SHIFT+R), if you put the right style name, selector type (class= "." or ID= "#") and CSS syntax, it will have applied instantly to your site. The CSS you supplied perhaps wouldn't work because I see a space where there probably shouldn't be one (between # and Hauptfenster).
Translate: Wenn ich nicht falsch verstehe (wahrscheinlich), verwenden Sie normalerweise MediaWiki, um die Seite Common.css zu erstellen, indem Sie in Ihrem Browser zu den folgenden Elementen navigieren: https://yoursite.com/w/MediaWiki:Common.css (Ändern Sie die Webadresse Verwenden Sie dann die übliche MediaWiki-Option "Seite erstellen" in Ihrem Webbrowser nicht manuell), um die Übereinstimmung mit der Adresse Ihrer Site und dem / w / mit dem Ordner abzugleichen, in dem Ihr MW gemäß der Dokumentation verschachtelt ist Erstellen Sie eine Datei zum Hochladen auf den Server. Fügen Sie Ihr CSS in diese MediaWiki-Seite ein, speichern Sie es und geben Sie nach einer harten Browseraktualisierung (STRG + UMSCHALT + R) den richtigen Stilnamen, den Auswahltyp (class = "." Oder ID = "#") und ein Die CSS-Syntax wird sofort auf Ihre Site angewendet. Das von Ihnen bereitgestellte CSS würde möglicherweise nicht funktionieren, da ich einen Bereich sehe, in dem es wahrscheinlich keinen geben sollte (zwischen # und Hauptfenster).
#Hauptfenster {
    with: 900px;
    height:500px;
    background: grey;
}
TiltedCerebellum (talk) 06:43, 16 November 2020 (UTC)

Setting $wgScriptPath = $wgServer

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


I've just moved my wiki to a new server.

Previously I had $wgScriptPath ="/" but on the new server some URLs were missing the domain name, e.g. "http://load.php" (which meant no styling) and the same for all uploaded files.

Changing it to $wgScriptPath = $wgServer seems to make it all work as normal - but is there a better way to fix this? Will there be unintended consequences of doing it this way?

Thanks. Jonathan3 (talk) 23:10, 12 November 2020 (UTC)

I've now had to change $wgScript = "$wgScriptPath/index.php" to $wgScript = "/index.php" to get editing to work.
I think there must be an underlying problem that I've not fixed yet.
Please let me know what further information you need :-) Thanks. Jonathan3 (talk) 23:57, 12 November 2020 (UTC)
you should be doing $wgScriptPath =''; if you do a / it becomes a // which the browser thinks is a protocol relative url which messes things up. Bawolff (talk) 03:37, 13 November 2020 (UTC)
Thank you very much! This was the solution. It must have been some quirk of my old server that let it work with it being "/". Jonathan3 (talk) 09:40, 13 November 2020 (UTC)
The discussion above is closed. Please do not modify it. No further edits should be made to this discussion.

Revisions created by old user missing after upgrade

Hi there,

I upgraded from 1.32 to 1.35. A number of key files and templates are now missing. The images themselves are still stored on the server, but the file pages don't exist.

I suspect that these are old (but important!) pages that hadn't been edited for a long time, and that the last edit was made by somebody who's username has since changed.

cleanupUsersWithNoId.php runs successfully with 0 changes. However, update.php and migrateActors.php always return errors telling me to run cleanupUsersWithNoId.php. These errors are:

Beginning migration of revision.rev_user and revision.rev_user_text to revision_actor_temp.revactor_actor

User name "J" is usable, cannot create an anonymous actor for it. Run maintenance/cleanupUsersWithNoId.php to fix this situation.

... rev_id=1525

... rev_id=3229

... rev_id=3728

... rev_id=3994

... rev_id=4794

... rev_id=6502

... rev_id=9828

... rev_id=10839

... rev_id=12342

... rev_id=13687

... rev_id=15119

... rev_id=17469

... rev_id=18002

Completed migration, updated 0 row(s) with 0 new actor(s), 1246 error(s)

Beginning migration of archive.ar_user and archive.ar_user_text to archive.ar_actor

User name "J" is usable, cannot create an anonymous actor for it. Run maintenance/cleanupUsersWithNoId.php to fix this situation.

... ar_id=34

Completed migration, updated 0 row(s) with 0 new actor(s), 6 error(s)

Beginning migration of ipblocks.ipb_by and ipblocks.ipb_by_text to ipblocks.ipb_by_actor

User name "J" is usable, cannot create an anonymous actor for it. Run maintenance/cleanupUsersWithNoId.php to fix this situation.

... ipb_id=1

Completed migration, updated 0 row(s) with 0 new actor(s), 1 error(s)

Beginning migration of image.img_user and image.img_user_text to image.img_actor

User name "J" is usable, cannot create an anonymous actor for it. Run maintenance/cleanupUsersWithNoId.php to fix this situation.

... img_name=example.jpg

Completed migration, updated 0 row(s) with 0 new actor(s), 794 error(s)

Beginning migration of oldimage.oi_user and oldimage.oi_user_text to oldimage.oi_actor

Completed migration, updated 0 row(s) with 0 new actor(s), 0 error(s)

Beginning migration of filearchive.fa_user and filearchive.fa_user_text to filearchive.fa_actor

User name "J" is usable, cannot create an anonymous actor for it. Run maintenance/cleanupUsersWithNoId.php to fix this situation.

... fa_id=104

... fa_id=336

... fa_id=807

... fa_id=1013

Completed migration, updated 0 row(s) with 0 new actor(s), 375 error(s)

Beginning migration of recentchanges.rc_user and recentchanges.rc_user_text to recentchanges.rc_actor

Completed migration, updated 0 row(s) with 0 new actor(s), 0 error(s)

Beginning migration of logging.log_user and logging.log_user_text to logging.log_actor

Wikimedia\Rdbms\DBQueryError from line 1699 of /wiki/includes/libs/rdbms/database/Database.php: Error 1062: Duplicate entry '' for key 'actor_name' (localhost)

Function: MigrateActors::addActorsForRows

Query: INSERT INTO `actor` (actor_name) VALUES ('')

#0 /wiki/includes/libs/rdbms/database/Database.php(1683): Wikimedia\Rdbms\Database->getQueryException('Duplicate entry...', 1062, 'INSERT INTO `ac...', 'MigrateActors::...')

#1 /wiki/includes/libs/rdbms/database/Database.php(1658): Wikimedia\Rdbms\Database->getQueryExceptionAndLog('Duplicate entry...', 1062, 'INSERT INTO `ac...', 'MigrateActors::...')

#2 /wiki/includes/libs/rdbms/database/Database.php(1227): Wikimedia\Rdbms\Database->reportQueryError('Duplicate entry...', 1062, 'INSERT INTO `ac...', 'MigrateActors::...', false)

#3 /wiki/includes/libs/rdbms/database/Database.php(2343): Wikimedia\Rdbms\Database->query('INSERT INTO `ac...', 'MigrateActors::...', 128)

#4 /wiki/includes/libs/rdbms/database/Database.php(2323): Wikimedia\Rdbms\Database->doInsert('actor', Array, 'MigrateActors::...')

#5 /wiki/includes/libs/rdbms/database/DBConnRef.php(68): Wikimedia\Rdbms\Database->insert('actor', Array, 'MigrateActors::...')

#6 /wiki/includes/libs/rdbms/database/DBConnRef.php(369): Wikimedia\Rdbms\DBConnRef->__call('insert', Array)

#7 /wiki/maintenance/includes/MigrateActors.php(219): Wikimedia\Rdbms\DBConnRef->insert('actor', Array, 'MigrateActors::...')

#8 /wiki/maintenance/includes/MigrateActors.php(305): MigrateActors->addActorsForRows(Object(Wikimedia\Rdbms\MaintainableDBConnRef), 'log_user_text', Array, Array, 0)

#9 /wiki/maintenance/includes/MigrateActors.php(115): MigrateActors->migrate('logging', Array, 'log_user', 'log_user_text', 'log_actor')

#10 /wiki/maintenance/includes/LoggedUpdateMaintenance.php(45): MigrateActors->doDBUpdates()

#11 /wiki/maintenance/doMaintenance.php(107): LoggedUpdateMaintenance->execute()

#12 /wiki/maintenance/migrateActors.php(27): require_once('/home/site/...')

#13 {main}

Thank you for your advice. If the corrupted pages can't be saved then I will have to recreate them, but with more than 1200 pages affected, I hope I won't have to do that. 2A00:23C5:1988:200:6DA8:8398:ABAC:F2B6 (talk) 00:45, 13 November 2020 (UTC)

Touch-wood I think this has been fixed.
I identified the missing the user, and ran an SQL query to replace all references to that user's ID with a working user ID. After that I ran update.php and, after purging the cache, the missing files and pages seem to be reappearing.
It looks like the problem was caused by an extension used many years ago, which allowed us to log in to MediaWiki via phpBB. (I believe it was Extension:PHPBB Auth). The offending user changed their username in phpBB. I can't remember how MediaWiki handled that or how you were supposed to do it, but it seems the old username was removed.
We stopped using that process a long time ago. This was the first time it had caused a problem. 2A00:23C5:1988:200:FCB0:FC45:C742:F411 (talk) 14:26, 13 November 2020 (UTC)

VisualEditor Extension - automatically inserts the login page

After installing VisualEditor (mediawiki version 1.34) I noticed that it does not work correctly. No matter if I edit an existing page or create a new page, the login page is automatically inserted and existing text is deleted. Is this problem already known and if so how can I fix it?

before editing:

https://www.directupload.net/file/d/6001/oxhiiw7z_jpg.htm


while editing:

https://www.directupload.net/file/d/6001/7op7zfoy_jpg.htm


after editing:

https://www.directupload.net/file/d/6001/vukecr3j_jpg.htm


@Whatamidoing (WMF) BV-FFT (talk) 08:02, 13 November 2020 (UTC)

When this happened to me it was because I'd changed my hosts file when testing an upgrade, my test site was accessing content from my production site Jezwolduk (talk) 17:28, 19 November 2020 (UTC)

PDF files of Wikipedia pages not working properly

Up until a week or two ago, downloading a Wikipedia page as a PDF used to work, then it suddenly failed to download PDF files, and required many (e. g. 20 +) attempts to get the PDF file to download.


What was changed ?

And is it possible to revert to the previous working version of the PDF system ? WikiWikiWonderful (talk) 14:57, 13 November 2020 (UTC)

Maybe phab:T266373. Hard to say without more information; see How to report a bug. Malyacko (talk) 16:50, 13 November 2020 (UTC)

mw-config - how to hide?

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 think that wiki/mw-config/, accisebile to any user, is dangerous because it's not defended from butforce attacks. How can I hide this file from users? Аргскригициониец (talk) 18:25, 13 November 2020 (UTC)

Just like for any other file or folder on a web server. See e.g. Manual:Config script#Using the config script Malyacko (talk) 20:04, 13 November 2020 (UTC)
I haven't found any information about how to hide w/mw-config/ in that article. Now I put .htaccess file here in that folder with code deny from all and it works, I don't know is there any in-box solution for this in MediaWiki. Аргскригициониец (talk) 21:42, 13 November 2020 (UTC)
there isn't an in mediawiki solution, you should use your webserver.
Your upgrade key should be long enough that bruteforcing is impractical Bawolff (talk) 09:53, 14 November 2020 (UTC)
Can I freely change upgrade key in a working site? Аргскригициониец (talk) 18:08, 14 November 2020 (UTC)
Yes, manual:$wgUpgradeKey wargo (talk) 18:49, 14 November 2020 (UTC)
If you don't use it, you can delete it. wargo (talk) 10:08, 14 November 2020 (UTC)
The discussion above is closed. Please do not modify it. No further edits should be made to this discussion.

Correct privileges for database user

I'd like to grant the minimum necessary privileges for an existing wiki being moved to a new server. Which is best of the following?

Thanks. Jonathan3 (talk) 22:43, 13 November 2020 (UTC)

for normal use (not update.php) i would reccomend SELECT, INSERT, UPDATE, LOCK TABLES and DELETE. Pay attention to exceptions in case any errors happen.
Update.php needs much more rights. Bawolff (talk) 11:06, 15 November 2020 (UTC)
Thanks. Would you change the database user's privileges before and after running update.php each time? Or is it possible to use a separate user for that script?
What do you do in practice? I'm tempted to leave it at GRANT ALL PRIVILEGES and trust in other things to keep the database secure... Jonathan3 (talk) 11:15, 17 November 2020 (UTC)
See Manual:$wgDBadminuser Ciencia Al Poder (talk) 14:13, 18 November 2020 (UTC)
I think most people just do whatever the installer does. Big sites like wikipedia are a bit moe careful i think.
The big thing is you want to make sure that you dont have rights like "super" or "file", as they can be used to turn an sql injection vulnerability into a full server take over vulnerability (given how many things in db use php serialixation, that's probably a little moot, but still, don't want to make things easy) Bawolff (talk) 16:58, 19 November 2020 (UTC)
Thanks for these replies. In the medium term I will use $wgDBadminuser (or --dbuser and --dbpass on the command line). In the short term I will leave $wgDBuser with ALL privileges. The biggest risk is probably me messing this up and I don't have time now to ensure I get it right :-)
Adding a note here for myself that ALL includes everything but GRANT (i.e. it includes SUPER and FILE). I wonder whether given this fact, the standard instructions shouldn't advise to GRANT ALL. Jonathan3 (talk) 22:50, 19 November 2020 (UTC)

How do I get Apache2 running for Mediawiki on WSL Ubuntu?

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.


Following the instructions for Ubuntu Installation, I installed Apache2 with sudo apt-get install apache libapache2-mod-php, and have a preexisting mediawiki directory which I put in /var/lib/mediawiki. I already have MariaDB setup and as of now, I use it with Apache on Windows Xampp, and access MW on localhost/mediawiki/.

When I turn off Xampp Apache try accessing localhost with Apache2 on Ubuntu started, on Firefox it says "Unable to connect" and on Edge it says "ERR_CONNECTION_REFUSED." How do I get Apache2 working? YousufSSyed (talk) 23:27, 13 November 2020 (UTC)

this isn't really a mediawiki question, however:
First verify that apache is running on linux, you can use the netstat command to verify that something is running listening on port 80 (or 443). Try also from within linux to use curl to test to see if apache is running at all (e.g. do the command curl http://localhost see if it outputs an error or html.)
If that doesn't work, something is broken on the linux side. If it does work something is wrong on the windows side. Some versions of WSL dont forward network for WSL, so that is s possibility. See https://docs.microsoft.com/en-us/windows/wsl/compare-versions Bawolff (talk) 09:58, 14 November 2020 (UTC)
The discussion above is closed. Please do not modify it. No further edits should be made to this discussion.

no connection

It appears to be impossible to find an In- and Outgoing port. Everytim the same 'answer' that the port is probably used by something else.

How to get a applicable port number??


Please help me 84.107.21.36 (talk) 15:45, 14 November 2020 (UTC)

Port for what? What is ingoing? What is outgoing? Please explain what this has to do with MediaWiki and provide sufficient context. See the sidebar. Malyacko (talk) 16:33, 14 November 2020 (UTC)

Can't import template from WikiPedia

On my local project at /index.php/Special:Export I pasted "https://en.wikipedia.org/wiki/Template:Cite_book" into the "Add pages manually:" section and clicked "export". Then on /index.php/Special:Import I tried to import the resulting XML file only to get this error: "Import failed: No pages to import." (I used "en" as the Interwiki prefix).

I'm using MediaWiki 1.35.

I must say I have no clear understanding of what I'm doing, as I find the documentation extremely confusing. Any input greatly about how to import the Cite_book template greatly appreciated. Draikin4321 (talk) 21:37, 14 November 2020 (UTC)

you should paste just Template:Cite_book not the full url. Be sure to check the include all templates used checkbox Bawolff (talk) 22:12, 14 November 2020 (UTC)
Thanks. I just did, the resulting file has the exact same content though. And so I'm still getting the same error... Draikin4321 (talk) 13:40, 15 November 2020 (UTC)
Anyone? 82.39.124.204 (talk) 17:23, 19 November 2020 (UTC)

With OAuth extension installed/enabled, I get a database query error. If OAuth not enabled, no database error. (v1.35.0)

I just upgraded our wiki from v1.31.1 to v1.35.0 a couple of days ago without any problems, got the visual editor up and running, and all was working fine.

Today I downloaded and installed the OAuth extension. (I intend to use the REST API with this wiki).

I ran the update.php script (using the web browser), and it said 'Upgrade Complete. You can now start using your wiki'.

I checked special:version page and it said OAuth extension was installed.

I did some viewing and editing of wiki pages, and all seemed fine.


But when I tried viewing the 'Recent changes' page, it gets this error:

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


Then I tried viewing a 'View history' page, and got the same error, with this additional information:

[X7CANr2UaU1iOv7-qDsf5QAAExw] 2020-11-15 01:11:18: Fatal exception of type "Wikimedia\Rdbms\DBQueryError"


So I commented out the wfLoadExtension( 'OAuth' );  line in LocalSettings.php, to disable OAuth, tried it again, and then the 'Recent changes' and 'View history' pages displayed properly.

I went back & forth a couple of times with the OAuth extension enabled and not enabled, and got consistent results as above.


Does anyone have any idea what's going on here?


Here's a link to our wiki:   https://banknotehistory.com

(We are running this on a shared host (mochahost.com), if that makes any difference).

I left OAuth enabled, so it will get the error when viewing 'Recent changes' page & 'View history' pages


MediaWiki 1.35.0

PHP 7.4.6 (litespeed)

MySQL 5.6.39


Thanks! 64.83.234.250 (talk) 04:34, 15 November 2020 (UTC)

Set $wgShowExceptionDetails = true; in LocalSettings.php so as to get more complete trace of the exception. See Manual:How to debug. – Ammarpad (talk) 05:39, 15 November 2020 (UTC)
Here are the exception details that shows the problem (without the BackTrace):
[X7FQUH4OQwtI1q6u28wM4wAAkCI] /w/index.php?title=Banker_Bio_Index&action=history Wikimedia\Rdbms\DBQueryError from line 1699 of /home/bnhadmin/public_html/w/includes/libs/rdbms/database/Database.php: A database query error has occurred. Did you forget to run your application's database schema updater after upgrading?
Error 1146: Table 'bnhadmin_mw1989.mwld_oauth_registered_consumer' doesn't exist (mysql1005.mochahost.com)
Function: MediaWiki\Extensions\OAuth\Backend\Hooks::getUsedConsumerTags
Query: SELECT oarc_id FROM `mwld_oauth_registered_consumer` WHERE ((oarc_wiki = '*') OR (oarc_wiki = 'bnhadmin_mw1989-mwld_')) AND oarc_deleted = 0
So it's missing table mwld_oauth_registered_consumer.
So can/should I just run the update.php script again to see if that clears up the problem? (After backing up the Database).
Thanks for your help. 64.83.234.250 (talk) 17:23, 15 November 2020 (UTC)
yeah, run update.php again see if that helps. Also check the extension docs to make sure that you dont need to do anything special with the db (unlikely but possible) Bawolff (talk) 22:53, 15 November 2020 (UTC)
I ran the update.php script again (using the web browser), and it finished without any problems, and said 'Upgrade Complete'.
I also checked the Extension:OAuth page, and didn't see anything else that needed to be done with the database.
Any ideas on what to try next? How can we get that table created in the DB (if that is the only problem)?
Thanks. 64.83.234.250 (talk) 03:17, 16 November 2020 (UTC)
Forgot to mention in my previous post that it gets the same exact error after I ran the update.php script again. 64.83.234.250 (talk) 03:29, 16 November 2020 (UTC)
Have you by any chance set $wgMWOAuthCentralWiki to something in LocalSettings.php?

How can we get that table created in the DB (if that is the only problem)?

We have to find the problem first so as to know why it was not created. I'd advise you to not create the table manually, unless if it's urgent. – Ammarpad (talk) 07:20, 16 November 2020 (UTC)
I checked and there is no $wgMWOAuthCentralWiki setting in my LocalSettings.php.
This is not urgent, the wiki is working fine. So I'll just follow your lead for whatever we need to do to get this fixed.
FYI, other info that may or may not be relevant:
- the date on the update.php file (in the maintenance folder) is Sep 25, 2020.
- I am on a shared host, and don't see anywhere that I have access to a command line (cpanel).
- so to run the update I browse to ../w/mw-config/ (which I assume runs the update.php file found in the maintenance folder).
- when running update.php with the browser, per the instructions, I had temp renamed .htaccess file to get around my rewrite setup.
Thanks for your help. 64.83.234.250 (talk) 19:19, 16 November 2020 (UTC)
Looking thru the Extension:OAuth documentation, I see TWO new tables are needed for this extension: mwld_oauth_registered_consumer and mwld_oauth_accepted_consumer. NEITHER one of those two tables has been created in the MySQL database.
Does that shed any more light on what is going on here?
Is it possible I am running an old version of update.php? (the file date on mine is Sep 25, 2020).
Thanks. 64.83.234.250 (talk) 17:10, 21 November 2020 (UTC)
I think this might be the same issue as Project:Support desk/Flow/2020/11#h-Adding_an_extension_which_comes_with_new_tables_via_web_updater-2020-11-03T17:44:00.000Z. Something is probably amiss with the web updater. – Ammarpad (talk) 21:13, 22 November 2020 (UTC)
YES, that was the issue. The web updater was not working properly with update.php.
I didn't think I had a command line interface for my shared server wiki account, but I was able to get a remote SSH session into that server, and when I ran php update.php from the command line, it finished with no problems, and had created both of those oauth tables. So now I no longer get the database query errors, and everything looks good.
Thank You for your help!
Mark 64.83.234.250 (talk) 04:31, 24 November 2020 (UTC)

no edit other user 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

I do not want the average user to be able to edit other people's user pages. What command should I use?

please guide me.

Thanks Sokote zaman (talk) 07:20, 15 November 2020 (UTC)

Have you checked the documentation? Please check that first.
Manual:Preventing access#Restrict editing lists what's possible. Malyacko (talk) 08:47, 15 November 2020 (UTC)
I created a group like training:
Manual:User_rights#Creating_a_new_group_and_assigning_permissions_to_it
Then I created the permissions like this:
$wgGroupPermissions['modarres']['createaccount'] = true;	//true
$wgGroupPermissions['modarres']['read'] = true;
$wgGroupPermissions['modarres']['edit'] = true;
$wgGroupPermissions['modarres']['createpage'] = true;
$wgGroupPermissions['modarres']['createtalk'] = true;
$wgGroupPermissions['modarres']['writeapi'] = true;
$wgGroupPermissions['modarres']['viewmywatchlist'] = true;
$wgGroupPermissions['modarres']['editmywatchlist'] = true;
$wgGroupPermissions['modarres']['viewmyprivateinfo'] = true;
$wgGroupPermissions['modarres']['editmyprivateinfo'] = true;
$wgGroupPermissions['modarres']['editmyoptions'] = true;
$wgGroupPermissions['modarres']['upload'] = true;
$wgGroupPermissions['modarres']['reupload-own'] = true;
$wgGroupPermissions['modarres']['purge'] = true;
$wgGroupPermissions['modarres']['sendemail'] = true;
$wgGroupPermissions['modarres']['move'] = false;	//false
$wgGroupPermissions['modarres']['move-subpages'] = false;
$wgGroupPermissions['modarres']['move-rootuserpages'] = false;
$wgGroupPermissions['modarres']['move-categorypages'] = false;
$wgGroupPermissions['modarres']['movefile'] = false;
$wgGroupPermissions['modarres']['reupload'] = false;
$wgGroupPermissions['modarres']['reupload-shared'] = false;
$wgGroupPermissions['modarres']['upload_by_url'] = false;
$wgGroupPermissions['modarres']['editmyusercss'] = false;
$wgGroupPermissions['modarres']['editmyuserjson'] = false;
$wgGroupPermissions['modarres']['editmyuserjs'] = false;
$wgGroupPermissions['modarres']['editmyuserjsredirect'] = false;
$wgGroupPermissions['modarres']['applychangetags'] = false;
$wgGroupPermissions['modarres']['changetags'] = false;
$wgGroupPermissions['modarres']['editcontentmodel'] = false;
$wgGroupPermissions['modarres']['editsemiprotected	'] = false;
$wgGroupPermissions['modarres']['minoredit'] = false;
I do not want a custom user, such as (modarres) to be able to edit other user pages. What command should I use? Sokote zaman (talk) 09:18, 15 November 2020 (UTC)
extension:abuseFilter Bawolff (talk) 11:04, 15 November 2020 (UTC)
Thank you
I have already installed and activated this plugin.
But unfortunately I do not know what command I should enter for these questions
I am completely new to the commands of this plugin
I know how to create and edit commands.
If possible, please help more
Thank you very much Sokote zaman (talk) 11:08, 15 November 2020 (UTC)
Have you searched before, and what were the results? See e.g. https://www.mediawiki.org/wiki/Project%3ASupport%20desk/Flow/2018/09#h-Prevent_editing_other_users%27_user_pages-2018-09-12T14%3A26%3A00.000Z Malyacko (talk) 14:31, 15 November 2020 (UTC)
Thank you very much for your guidance
I have another problem:
1. I have installed a plugin that automatically creates a template called {{User}} on each user page that registers. I do not want the user to be able to delete this template
Can you help me with this? Thank you.
2. Error trying to import filter information: The data you are trying to import is invalid.
I got the commands from the English wiki:
https://en.wikipedia.org/wiki/Special:AbuseFilter/3
{"row":{"af_pattern":"!(\"confirmed\" in user_groups) \u0026\r\npage_namespace == 0 \u0026\r\n(\r\n  new_size \u003C 50 \u0026 old_size \u003E 300 |\r\n  new_size/(old_size + 1) \u003C 0.1\r\n) \u0026\r\n!(lcase(new_wikitext) rlike \"#\\s*redirect|{{(?:db-(?:attack|g10)|wi|wiktionary\\s*redirect)\\s*[|}]\")","af_enabled":"1","af_comments":"Should there be a note in the warning about what to do if you're a BLP subject attempting to blank your own article?\r\n\r\nAlso, yay, first comment! - east\r\n\r\nThese notes are not private, by the way.\r\n\r\nThe false positives page has not been created yet, so the warning page is incomplete. I deactivated the action 'warn'.\r\n\r\nRe-enabled after creating it -- Andrew\r\n\r\nWe really need a better way to talk. Do tildes work here? ~~~ (east)\r\nGuess not :'(\r\n\r\nIgnore if editor is the only editor of the page (faked by checking last 10 editors)\r\n\r\nRedefine blanking as any size under 50, where the page started at \u003E500 (min delta of 450)\r\n\r\nLogic fixes, some of the conditions were redundant - Hersfold\r\n\r\nNote that filter applies only to new users. (eg non autoconfirmed but new user is shorter)\r\n\r\nOptimizing - Hersfold\r\n\r\nAdd redirect avoidance, necessary if this is going to allow pages to not be fully blank.  - DF\r\n\r\nchanged \"user_name in article_recent_contributors\" to \"!(user_name in article_recent_contributors)\" - Hersfold\r\n\r\nAdding \u0026 !(user_name == 69.226.103.13) to temporarily exempt that IP address from this filter, see my talk page for details. - Hersfold\r\nScratch that, removing per Prodego's comments on filter 30. If it got removed there, I shouldn't be adding it here. - Hersfold\r\nI added an exception for {{db-attack}} template. - Ruslik\r\nI added an exception for {{db-g10}} template. - Od Mishehu\r\nOptimization of the code. - Ruslik\r\nMoved new size check before namespace check - rationale very few edits result in size \u003C 50, most are to namespace 0.  Moved old size before namespace check - rationale _given_ new size\u003C 50 very few edits will have oldsize \u003E 500 (especially by new users), however most will be to mainspace.  Previous to change average run time 6.52ms, 27 conditions. RF\r\nOK condition stats seem meaningless varying from 8 to 500 I'll review in 10,000 edits time.\r\nRun 5.97 conditions 14, but I don't trust them. RF.\r\n\r\nNow monitoring namespace 100 (portal) Shirik 12 Feb 2010\r\n\r\nOptimize --Tim\r\n\r\nAdding Wiktionary template to prevent false positives. -v^_^v\r\n\r\nOptimize using regex. - KoH\r\nPortals are simply not worth the runtime. - KoH\r\n\r\nTemporarily adding the reference desks due to a persistent IP-hopping vandal. Will disable when it's over.--JD\r\n\r\nWas ultimately not needed. Removed.--JD\r\n\r\nUgh, is that vandal watching this filter? --JD\r\n\r\nThe vandal seems to have again stopped blanking. If (s)he resumes, re-add the condition. --JD\r\n\r\nVandal is back. Will leave on longer. --JD\r\n\r\nRemoving now. Sorry for the comment/log spam here. --JD\r\n\r\nDecrease old_size restriction to \u003E 300 to pick up what few edits Filter 344 catched that this one did not. ~ MusikAnimal 2014.09.25\r\n\r\nReorder to reduce conditions. -DF\r\n\r\nSet to disallow per [[Special:PermaLink/878875898#Setting filter 3 to warn and disallow?]] -Galo 2019.01.18\r\n\r\nTemporary tag-only as removing check to \"page_recent_contributors\" - simultaneously significantly slows down the filter while causing many false negatives. Original purpose of that was to allow article creators to blank their own pages, but since ACTPERM there should be basically no non-autoconfirmed users who have articles. Also allow spaces in redirect. -Galo 2019.01.22\r\n\r\nBack to disallow. -Galo 2019.01.22\r\n\r\nAdd cases where content is reduced to a tenth of its size; this is same as what MediaWiki tags as \"replaced\". All vandalism when looking at non-(auto)confirmed users. -G 2019-03-04\r\n\r\nCheck new_wikitext instead of added_lines, per false positives relating to substantial pages already being a redirect. -G 2019-03-11\r\n\r\n+Exception for {{wiktionary redirect}} per FP. -G 2019-06-07\r\n\r\nTweak template regex. -G 2019-06-17","af_public_comments":"New user blanking articles","af_hidden":"0","af_deleted":"0","af_actions":"disallow","af_global":"0","af_group":"default"},"actions":{"disallow":["abusefilter-disallowed-blanking"]}}
What is the cause of this problem?
Thanks@Malyacko Sokote zaman (talk) 16:24, 15 November 2020 (UTC)
@Sokote zaman If you have a different problem then please create a different thread. This thread is called "no edit other user page". Also provide clear and complete steps to reproduce - we have no idea which "plugin" you are talking about. (Maybe you meant an extension instead? MediaWiki has no plugins.) Thanks. Malyacko (talk) 07:42, 16 November 2020 (UTC)
The discussion above is closed. Please do not modify it. No further edits should be made to this discussion.

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


Hi, I am an end user of a certain MediaWiki. I am making a template that creates a table with some rows shown/hidden depending on the parameters.

The problem is that when two consecutive rows are hidden and leave two linebreaks, a new paragraph is rendered in the last visible cell and breaks the layout. Without the linebreak, they are not interpreted as a new row when visible.

I tried HTML tags but they seem to be disabled on the wiki. Is there a non-HTML workaround for this? Thank you.

code:
{| class="wikitable"
 {{#if:{{{IsA}}}
 | {{!}}-
   {{!}}A
 }}
 {{#if:{{{IsB|}}} <!-- hidden -->
 | {{!}}-
   {{!}}B
 }}
 {{#if:{{{IsC|}}} <!-- hidden -->
 | {{!}}-
   {{!}}C
 }}
 {{#if:{{{IsD}}}
 | {{!}}-
   {{!}}D
 }}
|}
rendering:
+-+

|A| | | +-+ |D|

+-+
180.39.230.230 (talk) 08:50, 15 November 2020 (UTC)
Try something like: https://www.mediawiki.org/w/index.php?title=User:Bawolff/sandbox&oldid=4235248 (make sure no newlines outside the #if by using comments. Ensure the newlines inside the #if arent trimmed by starting it with a &#32; or a <nowiki/>. Bawolff (talk) 11:03, 15 November 2020 (UTC)
That did the trick, thank you very much! 180.39.230.230 (talk) 09:46, 16 November 2020 (UTC)
The discussion above is closed. Please do not modify it. No further edits should be made to this discussion.

What's the meaning of: [X7GrWcpH@qwp3w7suFBNcQAAARU] 2020-11-15 22:27:37: Fatal exception of type MWException' on a wiki 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.


Every other pages on the wiki are okay, except this one page. Goodman Andrew (talk) 23:31, 15 November 2020 (UTC)

The folks here may need further information to help, such as information about your MW installation, php version, sql version, and site link (if possible). Also, you may need to turn on debugging to provide more detailed error messages: Manual:How to debug. Often a detailed error message can point the way to the issue. TiltedCerebellum (talk) 01:04, 16 November 2020 (UTC)
@TiltedCerebellum: solved.
I placed
 $wgShowExceptionDetails = true;
in LocalSettings.php which reveals that the lua binaries file at public_html/example/w/extensions/Scribunto/includes/engines/LuaStandalone/binaries/lua5_1_5_linux_64_generic WASN'T executable. Goodman Andrew (talk) 06:18, 16 November 2020 (UTC)
Glad you got enough details to track it down. :) TiltedCerebellum (talk) 06:20, 16 November 2020 (UTC)
The discussion above is closed. Please do not modify it. No further edits should be made to this discussion.

Page Forms extension version 4.9.5 does not work, especially with SMW extension 3.2.0

Tracked with T249172. Related issue tracked with T280994

I am running MediaWiki 1.35.0.

Installed Semantic MediaWiki via Composer and Page Forms via direct download, as advised in the instructions.

When BOTH extensions are enabled, I get the following error message when clicking on the "Create Class" special page (while logged in as Admin):

[6517085b45f63609a9bc655a] 2020-11-16 01:29:36: Fatal exception of type "Error"

When the SMW is not enabled, the Create Class page comes up OK.

But even when the SMW is disabled, I can't save anything - I get the spinning wheel of death and just have to close the tab/window.

It appears that the Page Forms extension simply does not work, and the symptoms get worse when SMW is enabled.

Any help will be appreciated. Gene.Mishchenko (talk) 01:35, 16 November 2020 (UTC)

set $wgShowExceptionDetails=true; to see full error Bawolff (talk) 21:07, 16 November 2020 (UTC)
[05b176a55029277935735e76] /w/index.php/Special:CreateClass Error from line 219 of C:\xampp\htdocs\w\extensions\PageForms\specials\PF_CreateClass.php: Call to a member function getDatatypeLabels() on null
Backtrace:
#0 C:\xampp\htdocs\w\includes\specialpage\SpecialPage.php(600): PFCreateClass->execute(NULL)
#1 C:\xampp\htdocs\w\includes\specialpage\SpecialPageFactory.php(635): SpecialPage->run(NULL)
#2 C:\xampp\htdocs\w\includes\MediaWiki.php(307): MediaWiki\SpecialPage\SpecialPageFactory->executePath(Title, RequestContext)
#3 C:\xampp\htdocs\w\includes\MediaWiki.php(940): MediaWiki->performRequest()
#4 C:\xampp\htdocs\w\includes\MediaWiki.php(543): MediaWiki->main()
#5 C:\xampp\htdocs\w\index.php(53): MediaWiki->run()
#6 C:\xampp\htdocs\w\index.php(46): wfIndexMain()
#7 {main} Gene.Mishchenko (talk) 02:09, 17 November 2020 (UTC)
Hello,
I have the same problem here, did you find an issue ?
I'm using MediaWiki 1.35.2, SMW 3.2.3 and PageForms 5.2.
Thanks Pitolord (talk) 09:41, 22 April 2021 (UTC)
This error was believed to be resloved. Obviously it is not. See T249172. [[kgh]] (talk) 17:58, 23 April 2021 (UTC)
I guess I messed things. This very issue should be resolved in the meantime. However I now encountered a different one when trying to create a class. See T280994 [[kgh]] (talk) 18:03, 23 April 2021 (UTC)

Avoid deleting part of the text by AbuseFilter

Extension:Create User Page

I have installed a Extension that automatically creates a template called {{User}} on each user page that registers.

Please help by using the AbuseFilter plugin so that no one but the administrator can remove this template from users' pages.

Can you help me with this? Thank you. Sokote zaman (talk) 07:54, 16 November 2020 (UTC)

Error import filter on AbuseFilter

Error trying to import filter information: The data you are trying to import is invalid.

I got the commands from the English wiki:

https://en.wikipedia.org/wiki/Special:AbuseFilter/3

I am using version 1.35 of MediaWiki

{"row":{"af_pattern":"!(\"confirmed\" in user_groups) \u0026\r\npage_namespace == 0 \u0026\r\n(\r\n  new_size \u003C 50 \u0026 old_size \u003E 300 |\r\n  new_size/(old_size + 1) \u003C 0.1\r\n) \u0026\r\n!(lcase(new_wikitext) rlike \"#\\s*redirect|{{(?:db-(?:attack|g10)|wi|wiktionary\\s*redirect)\\s*[|}]\")","af_enabled":"1","af_comments":"Should there be a note in the warning about what to do if you're a BLP subject attempting to blank your own article?\r\n\r\nAlso, yay, first comment! - east\r\n\r\nThese notes are not private, by the way.\r\n\r\nThe false positives page has not been created yet, so the warning page is incomplete. I deactivated the action 'warn'.\r\n\r\nRe-enabled after creating it -- Andrew\r\n\r\nWe really need a better way to talk. Do tildes work here? ~~~ (east)\r\nGuess not :'(\r\n\r\nIgnore if editor is the only editor of the page (faked by checking last 10 editors)\r\n\r\nRedefine blanking as any size under 50, where the page started at \u003E500 (min delta of 450)\r\n\r\nLogic fixes, some of the conditions were redundant - Hersfold\r\n\r\nNote that filter applies only to new users. (eg non autoconfirmed but new user is shorter)\r\n\r\nOptimizing - Hersfold\r\n\r\nAdd redirect avoidance, necessary if this is going to allow pages to not be fully blank.  - DF\r\n\r\nchanged \"user_name in article_recent_contributors\" to \"!(user_name in article_recent_contributors)\" - Hersfold\r\n\r\nAdding \u0026 !(user_name == 69.226.103.13) to temporarily exempt that IP address from this filter, see my talk page for details. - Hersfold\r\nScratch that, removing per Prodego's comments on filter 30. If it got removed there, I shouldn't be adding it here. - Hersfold\r\nI added an exception for {{db-attack}} template. - Ruslik\r\nI added an exception for {{db-g10}} template. - Od Mishehu\r\nOptimization of the code. - Ruslik\r\nMoved new size check before namespace check - rationale very few edits result in size \u003C 50, most are to namespace 0.  Moved old size before namespace check - rationale _given_ new size\u003C 50 very few edits will have oldsize \u003E 500 (especially by new users), however most will be to mainspace.  Previous to change average run time 6.52ms, 27 conditions. RF\r\nOK condition stats seem meaningless varying from 8 to 500 I'll review in 10,000 edits time.\r\nRun 5.97 conditions 14, but I don't trust them. RF.\r\n\r\nNow monitoring namespace 100 (portal) Shirik 12 Feb 2010\r\n\r\nOptimize --Tim\r\n\r\nAdding Wiktionary template to prevent false positives. -v^_^v\r\n\r\nOptimize using regex. - KoH\r\nPortals are simply not worth the runtime. - KoH\r\n\r\nTemporarily adding the reference desks due to a persistent IP-hopping vandal. Will disable when it's over.--JD\r\n\r\nWas ultimately not needed. Removed.--JD\r\n\r\nUgh, is that vandal watching this filter? --JD\r\n\r\nThe vandal seems to have again stopped blanking. If (s)he resumes, re-add the condition. --JD\r\n\r\nVandal is back. Will leave on longer. --JD\r\n\r\nRemoving now. Sorry for the comment/log spam here. --JD\r\n\r\nDecrease old_size restriction to \u003E 300 to pick up what few edits Filter 344 catched that this one did not. ~ MusikAnimal 2014.09.25\r\n\r\nReorder to reduce conditions. -DF\r\n\r\nSet to disallow per [[Special:PermaLink/878875898#Setting filter 3 to warn and disallow?]] -Galo 2019.01.18\r\n\r\nTemporary tag-only as removing check to \"page_recent_contributors\" - simultaneously significantly slows down the filter while causing many false negatives. Original purpose of that was to allow article creators to blank their own pages, but since ACTPERM there should be basically no non-autoconfirmed users who have articles. Also allow spaces in redirect. -Galo 2019.01.22\r\n\r\nBack to disallow. -Galo 2019.01.22\r\n\r\nAdd cases where content is reduced to a tenth of its size; this is same as what MediaWiki tags as \"replaced\". All vandalism when looking at non-(auto)confirmed users. -G 2019-03-04\r\n\r\nCheck new_wikitext instead of added_lines, per false positives relating to substantial pages already being a redirect. -G 2019-03-11\r\n\r\n+Exception for {{wiktionary redirect}} per FP. -G 2019-06-07\r\n\r\nTweak template regex. -G 2019-06-17","af_public_comments":"New user blanking articles","af_hidden":"0","af_deleted":"0","af_actions":"disallow","af_global":"0","af_group":"default"},"actions":{"disallow":["abusefilter-disallowed-blanking"]}}

What is the cause of this problem?

Thanks Sokote zaman (talk) 08:01, 16 November 2020 (UTC)

Please someone should help expedite phab:T267132

It's been >2month since reported, no one have said anything. Goodman Andrew (talk) 08:14, 16 November 2020 (UTC)

It's been two weeks. See also Bug management/Development prioritization for general info. Malyacko (talk) 08:36, 16 November 2020 (UTC)
it is more likely to happen if you submit the patch to gerrit than on a phab ticket. Bawolff (talk) 21:06, 16 November 2020 (UTC)
@Bawolff: it is on that note that I asked for help. I don't know how to use Gerrit, and I don't even have a patch for it. I need that patch which is why I submitted a bug ticket. Goodman Andrew (talk) 22:39, 17 November 2020 (UTC)
you included a patch on the ticket (?)
You can use https://gerrit-patch-uploader.toolforge.org instead of gerrit. Bawolff (talk) 02:55, 18 November 2020 (UTC)
@Bawolff: I don't have a patch. Why don't you go and read the tasks first before replying here. Goodman Andrew (talk) 12:35, 18 November 2020 (UTC)
you mean the task that you literally put a patch on, and added the tag patch-for-review to [2]? That task? Bawolff (talk) 03:30, 19 November 2020 (UTC)
@Bawolff: I wasn't the one who wrote that patch. Now that patch only removed pages that has the _ _NOINDEX__ or {NOINDEX}} from sitemap.
But, what if NOINDEX was applied to an entire namespace via $WgNamespaceRobotsPolicy ? Pages in that name appeared in sitemap and Google complained about it.
How do we removed those pages from sitemap but keep those that have the behavior-switch magic word: __INDEX_ _ ?
That's the patch I need for the generateSitemap.php. Goodman Andrew (talk) 16:04, 19 November 2020 (UTC)

Error on imported templates (Lua related)

Hello :)


On a private wiki, I have imported template pages exported from mediawiki / wikipedia, with included templates.

The templates I try to use are : Template:Note and Template:Age_in_years_and_months


If I go visit the template page themselves, I have the same error for both of them :

Erreur de script : le module « documentation » n’existe pas.

which translates to "script error : the "documentation" module does not exist".


And I have the same error when going on the page Module:Documentation, which seems weird.


I tried everything I could understand, but I seem to be in front of a wall, every error seems to be related to this "documentation" module


Has anyone an idea ?


Best regards Kriks57 (talk) 13:35, 16 November 2020 (UTC)

Many pages have many dependencies on other templates and lua modules. You may have imported the templates, but you have not imported the Module:Documentation page of the page you used. Alternatively, simply remove the {{Documentation }} template usage from the template itself, so that it doesn't try to render the documentation (which is the point where it cannot find the formatting module for the documentation page) —TheDJ (Not WMF) (talkcontribs) 21:35, 16 November 2020 (UTC)
In fact I've deleted the Module:Documentation page, and imported it again, and this error is gone.
But now I have another :
Lua error : expandTemplate: template loop detected. Kriks57 (talk) 14:04, 17 November 2020 (UTC)
There's most probably a template loop in your code. Find which page is calling itself and fix it. This usually happens when you import dumps from other wiki after trying to copy&paste code from other wikis, that may end in the wrong pages. Ciencia Al Poder (talk) 14:12, 18 November 2020 (UTC)

-- turns into –

How can I prevent two minus signs (-) from showing as a ( – ) without using <code> tags

For example

''puppet agent --enable'' 
 turns into 
puppet agent –enable 130.238.190.47 (talk) 13:57, 16 November 2020 (UTC)
Where do you see this problem ? —TheDJ (Not WMF) (talkcontribs) 21:38, 16 November 2020 (UTC)

Update to ICU Unicode library

Trizek (WMF) 14:53, 16 November 2020 (UTC)

MediaWiki message delivery (talk) 14:53, 16 November 2020 (UTC)

@Trizek (WMF): just fyi this is the wrong page to post these types of annoucements (this is the page to ask for help setting up mediawiki for third parties) Bawolff (talk) 21:03, 16 November 2020 (UTC)
This message was sent by mass message as you can see, apparently someone added this support desk as receiver (m:User:Trizek_(WMF)/sandbox/temp_MassMessage_list) maybe for wider publicity. – Ammarpad (talk) 10:36, 17 November 2020 (UTC)
I picked this page from the technical village pump list distribution list. Which page should I use next time? Trizek_(WMF) (talk) 15:55, 17 November 2020 (UTC)
Project:Current Issues is the village pump for this wiki Bawolff (talk) 02:57, 18 November 2020 (UTC)

How can i use this plateform?

Any one can tell me the whole procedure ? Jennifer Lipa (talk) 16:14, 16 November 2020 (UTC)

little light on the details. what platform are you talking about MediaWiki ? Have you read the main page which tries to link you to the various articles on how to set up MediaWiki ? —TheDJ (Not WMF) (talkcontribs) 21:36, 16 November 2020 (UTC)

how do i delete my account

how do i delete my account 100.37.159.154 (talk) 18:25, 16 November 2020 (UTC)

which account on which website ? —TheDJ (Not WMF) (talkcontribs) 21:31, 16 November 2020 (UTC)

"Cannot create file 'C:\xampp\xampp-control.ini'"

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.


Lately I found myself reinstalling XAMPP to try and make my wiki; but recently, whenever I try to exit out of it, I always get the following error message:

Error: Cannot create file "C:\xampp\xampp-control.ini". Access is denied.

And when I try to exit out of it, the program crashes. What's more, for all the times this happens, the icon for XAMPP is blank (as in instead of an orange square with an X, there's a blank sheet of paper). If it helps, I'm trying to install the latest version of XAMPP, which I believe is 7.4.12.

Is it possible that I've set it up wrong, or is there something else I'm unaware of? The-Psychid (talk) 02:25, 17 November 2020 (UTC)

You might find the answer on an xampp forum? Not sure, anyhow, when I plugged this into google I see quite a few people have run into similar issues and for some it was permissions and/or needing to change from read-only to "full control", others just set the app to launch under administrator instead of user, so I'm wondering if one of these might help solve it for you?:
https://stackoverflow.com/questions/61193574/xampp-mysql-cannot-create-file-xampp-control-ini-access-denied
https://www.codermen.com/blog/159/fix-xampp-server-error-xampp-control-ini-access-is-denied
https://community.apachefriends.org/viewtopic.php?p=260404&sid=d1486627c9ead1dc421d8de675e8c660
https://www.youtube.com/watch?v=MmuXI3P5aBM
https://stackoverflow.com/questions/38676374/xampp-control-panel-shows-an-error-upon-launch TiltedCerebellum (talk) 05:04, 17 November 2020 (UTC)
I saw the YouTube video and one of the other links (I forgot which one); and so far, I'm not running into the "can't create .ini file". But it's still too early to celebrate. I'll be sure to let you know if I'm still running into that issue. The-Psychid (talk) 05:19, 17 November 2020 (UTC)
I'm just a mediawiki user like you, I know how many strange and interesting issues we can run into and learn from. I'm still doing that myself. I'll cross my fingers for ya  ;) TiltedCerebellum (talk) 05:26, 17 November 2020 (UTC)
Actually, I think it's working fine now. Thanks! The-Psychid (talk) 17:39, 17 November 2020 (UTC)
The discussion above is closed. Please do not modify it. No further edits should be made to this discussion.

What kind of citation style does Wikipedia use?

Hello everyone, I was trying to make my own scholarly website using MediaWiki and wanted to implement a citation system along with the visual editor. I want to know what kind of citation style Wikipedia normally uses, ones such as the Chicago manual style, so that I could use it universally.

Thanks, Splat TheSplatGuy (talk) 02:53, 17 November 2020 (UTC)

I'm just a MediaWiki user, but I see this on a cursory search, does this answer your question?:
Wikipedia:Citing sources#Citation style
And if you scroll back to the top of the page it gives some examples of typical citations also, not sure if that's helpful or not. TiltedCerebellum (talk) 04:57, 17 November 2020 (UTC)
you may also want to read about extension:Cite if you haven't already. Bawolff (talk) 09:28, 17 November 2020 (UTC)

MediaWiki 1.35, VisualEditor got 403

Dear everyone,


I am running MediaWiki 1.35.0 on:

CentOS Linux release 7.9.2009 (Core)

PHP 7.3.24


I installed these extension:

sudo yum install -y httpd php php-mysql php-gd mariadb-server php-xml php-intl mysql

sudo yum install -y httpd-devel mod_ssl memcached pcre-devel gcc make composer ImageMagick

sudo yum install -y php php-{bcmath,cli,common,devel,enchant,fpm,imap,intl,json,mbstring,mysqlnd,odbc,opcache,pdo,ctype,dom,fileinfo,iconv}

sudo yum install -y php php-{pear,pecl-apcu,pecl-apcu-bc,pecl-apcu-devel,pecl-igbinary,pecl-mcrypt,pecl-memcache,pecl-memcached,pecl-oauth,pecl-uuid,phpiredis,process,soap,xml,xmlrpc}

sudo yum install -y php php-{cgi,curl,gettext,zip,memcached}


But, when i try to use VisualEditor i always get the 403 error from request

https://<domain.demo>/wiki/load.php?lang=en&modules=diffMatchPatch%2Cdompurify%2Cmoment%2Coojs-ui-core%2Coojs-ui-widgets%2Cpapaparse%2Crangefix%2Cspark-md5%2CtreeDiffer%2Cunicodejs%7Cext.cite.style%2Cstyles%2CvisualEditor%7Cext.cite.visualEditor.core%2Cdata%7Cext.confirmEdit.CaptchaInputWidget%2CvisualEditor%7Cext.geshi.visualEditor%7Cext.spamBlacklist.visualEditor%7Cext.templateDataGenerator.editPage%7Cext.titleblacklist.visualEditor%7Cext.visualEditor.data%2CmoduleIcons%2CmoduleIndicators%7Cjquery.tablesorter%7Cjquery.tablesorter.styles%7Cjquery.uls.data%7Cmediawiki.ForeignApi%2CForeignStructuredUpload%2CForeignUpload%2CUpload%2Cpulsatingdot%7Cmediawiki.ForeignApi.core%7Cmediawiki.ForeignStructuredUpload.BookletLayout%7Cmediawiki.Upload.BookletLayout%7Cmediawiki.action.view.redirectPage%7Cmediawiki.diff.styles%7Cmediawiki.interface.helpers.styles%7Cmediawiki.language.months%2Cnames%7Cmediawiki.libs.jpegmeta%7Cmediawiki.page.gallery.styles%7Cmediawiki.skinning.content.parsoid%7Cmediawiki.widgets.AbandonEditDialog%2CCategoryMultiselectWidget%2CDateInputWidget%2CMediaSearch%2CStashedFileWidget%2CUserInputWidget%7Cmediawiki.widgets.DateInputWidget.styles%7Coojs-ui.styles.icons-accessibility%2Cicons-alerts%2Cicons-editing-citation%2Cicons-editing-core%2Cicons-editing-list%2Cicons-editing-styling%2Cicons-layout%2Cicons-media%2Cicons-user%2Cicons-wikimedia&skin=vector&version=lu3di


Best regard,

Teddy Teddyphan7714 (talk) 05:10, 17 November 2020 (UTC)

How to add a required phone number field to ContacPage?

MediaWiki 1.34.2 with Extension:ContactPage.

I didn't find a clear explanation about this in ContactPage documentation so I just tried this failed improvising:

'Phone' => array(
    'label-message' => 'phonenumber',
    'type' => 'phone',
    'required' => true,
),

49.230.209.201 (talk) 13:07, 17 November 2020 (UTC)

try a type of number or text Bawolff (talk) 03:31, 18 November 2020 (UTC)
I would like to try number but it doesn't support hyphens.
Text is more likely but AFAIK from information security considerations a "phone number" field allowing only numbers, spaces, pluses and hyphens (and not any other character) is the best approach... 182.232.173.202 (talk) 05:13, 18 November 2020 (UTC)
And somewhat has to do with accessibility. 182.232.173.202 (talk) 05:13, 18 November 2020 (UTC)

A mandatory asterisk don't appear near to ContactPage select lists

MediaWiki 1.34.2 with Extension:ContactPage.

I desire to make a select list in my contact form mandatory;

I have added a 'required' => true, in the last line of its array;

My problem is that no mandatory asterisk indicator appears near the selection list in form.

How to solve that problem?

Full ContactPage code:

wfLoadExtension( 'ContactPage' );

$wgContactConfig['default'] = array(

   'RecipientUser' => 'Admin', // Must be the name of a valid account which also has a verified e-mail-address added to it.

   'SenderName' => 'Contact Form on ' . $wgSitename, // "Contact Form on" needs to be translated

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

   'RequireDetails' => true, // Either "true" or "false" as required

   'IncludeIP' => false, // Either "true" or "false" as required

   'MustBeLoggedIn' => false, // Check if the user is logged in before rendering the form

   'AdditionalFields' => array(

       'selectlist' => array(

           'class' => 'HTMLSelectField',

           'label' => 'Please choose a topic',

           'options' => [

               '1' => '1',

               '2' => '2'

           ],

           'required' => true,

       ),

   ),

       // Added in MW 1.26

   'DisplayFormat' => 'table',  // See HTMLForm documentation for available values.

   'RLModules' => array(),  // Resource loader modules to add to the form display page.

   'RLStyleModules' => array(),  // Resource loader CSS modules to add to the form display page.

);

49.230.209.201 (talk) 14:25, 17 November 2020 (UTC)

maybe the asterick only shows up when display format is ooui (dont know) Bawolff (talk) 03:29, 18 November 2020 (UTC)
I don't think you can set asterisk indicator on <select> dropdown list. The list is already not optional (unless you a specify dummy option, such as "none" and set it the default). If you're not doing that, you don't even need to use 'required' => true because it's implicitly required as it's not possible to submit without selecting either of the two values you provided. – Ammarpad (talk) 17:24, 18 November 2020 (UTC)
@Ammarpad if what you say is true I wonder why I was allowed to add 'required' => true, to the array without getting an error.
Anyway, perhaps for accessibility's sake it is good to add a red asterisk indicator to a select list line as well. 182.232.164.94 (talk) 00:52, 19 November 2020 (UTC)

@Ammarpad if what you say is true I wonder why I was allowed to add 'required' => true, to the array without getting an error.

You are allowed so as to give (HTMLSelectField) options like these: array( "Select one of these" => "", "option 1" => "1", "option 2" => '2' ). You will then make "Select one of these", the default and then put 'required' => true;. That will force the user to select one of the options and not just leave the default. Without 'required' => true; the user can leave the default which has empty value.

Anyway, perhaps for accessibility's sake it is good to add a red asterisk indicator to a select list line as well.

This is not just a matter of MediaWiki anyway, it's just how <select> tag works. Can you give example of where you saw it with such indicator? Sure you can make a custom indicator yourself, but it's largely irrelevant and not in common use. – Ammarpad (talk) 04:41, 19 November 2020 (UTC)
@Ammarpad if so I understand that adding 'required' => true, in the last line of its array forces a user to select one of the options and not just submit the form with the default one.
About example - I don't have such example, I just assumed that everything which is mandatory has to be marked with a red asterisk; one can wonder, if select fields are exception, what else is, but indeed that's out of the scope here. 182.232.164.94 (talk) 05:20, 19 November 2020 (UTC)

How can I position a table on the right?

Hi everyone,


how can I position a table on the right? It's always on the left and I can't drag it (with VisualEditor) on the right side just above or under the text of an article :( Weejan91 (talk) 14:25, 17 November 2020 (UTC)

not sure in visual editor, but you need to set a style attribute with value float:right
Does help:Tables help? Bawolff (talk) 03:27, 18 November 2020 (UTC)

Imagemagick in Docker

Hello, i want to use Imagemagick that runs inside Docker. I created a convert.sh file that runs my Imagemagick with arguments:


convert.sh :

#!/bin/bash

IMAGE=imagemagick

ARGS=$@

exec docker run --rm -i --user="$(id -u):$(id -g)" \

-v "$PWD":/workdir \

$IMAGE /bin/bash -c \

"/usr/bin/convert $ARGS"


Command:

./convert.sh --version


Output:

Version: ImageMagick 6.9.7-4 Q16 x86_64 20170114 http://www.imagemagick.org Copyright: © 1999-2017 ImageMagick Studio LLC License: http://www.imagemagick.org/script/license.php Features: Cipher DPC Modules OpenMP Delegates (built-in): bzlib djvu fftw fontconfig freetype jbig jng jpeg lcms lqr ltdl lzma openexr pangocairo png tiff wmf x xml zlib


So my imagemagick is accessible.


Inside LocalSetting.php i added:

$wgUseImageMagick = true;

$wgImageMagickConvertCommand = "/path/to/my/convert.sh";


Sadly this isn't working. I get the error

Error creating the preview image: sh: 1: convert: not found


How can i fix that? 2003:CB:D718:A900:A841:EB2B:DEAA:B9C1 (talk) 14:49, 17 November 2020 (UTC)

check the mediawiki debug log for the exact command executed by mediawiki (it will be wrapped in limit.sh) and try running that from the command line and see what happens. Also try sudo'ing to the webserver user (usually www-data) when testing. Bawolff (talk) 03:26, 18 November 2020 (UTC)

Problems with MultiMaps extension

Hi everyone,

I need some help with MultiMaps extension. I've searched through the whole internet and I'm still helpless. I know that the problem is made by this little guy: ~

In the documentation for multimaps is written:

| marker = 20.70831,86.67670 ~Title=Tulip Hill ~Text=Hill in Gobras City Botanic Gardens

| marker = 20.70831,86.67670

is fine but when I use the rest

~Title=Tulip Hill ~Text=Hill in Gobras City Botanic Gardens

it is causing the problems. I've added

$wgShowExceptionDetails = true;

to my localsettings.php to get more information but I don't know what to do. Can anybody help PLEASE?


[9dd4b2ca2a96014f3b05abec] /norden/index.php?title=Albatrosstra%C3%9Fe&action=submit MWException from line 6237 of /var/www/web27548574/html/norden/includes/parser/Parser.php: Parser state cleared while parsing. Did you call Parser::parse recursively? Lock is held by: #0 /var/www/web27548574/html/norden/includes/parser/Parser.php(620): Parser->lock()

#1 /var/www/web27548574/html/norden/includes/content/WikitextContent.php(374): Parser->parse('{{\n#multimaps:\n...', Object(Title), Object(ParserOptions), true, true, NULL)
#2 /var/www/web27548574/html/norden/includes/content/AbstractContent.php(590): WikitextContent->fillParserOutput(Object(Title), NULL, Object(ParserOptions), true, Object(ParserOutput))
#3 /var/www/web27548574/html/norden/includes/EditPage.php(4273): AbstractContent->getParserOutput(Object(Title), NULL, Object(ParserOptions))
#4 /var/www/web27548574/html/norden/includes/EditPage.php(4178): EditPage->doPreviewParse(Object(WikitextContent))
#5 /var/www/web27548574/html/norden/includes/EditPage.php(2956): EditPage->getPreviewText()
#6 /var/www/web27548574/html/norden/includes/EditPage.php(701): EditPage->showEditForm()
#7 /var/www/web27548574/html/norden/includes/actions/EditAction.php(71): EditPage->edit()
#8 /var/www/web27548574/html/norden/includes/actions/SubmitAction.php(38): EditAction->show()
#9 /var/www/web27548574/html/norden/includes/MediaWiki.php(527): SubmitAction->show()
#10 /var/www/web27548574/html/norden/includes/MediaWiki.php(313): MediaWiki->performAction(Object(Article), Object(Title))
#11 /var/www/web27548574/html/norden/includes/MediaWiki.php(940): MediaWiki->performRequest()
#12 /var/www/web27548574/html/norden/includes/MediaWiki.php(543): MediaWiki->main()
#13 /var/www/web27548574/html/norden/index.php(53): MediaWiki->run()
#14 /var/www/web27548574/html/norden/index.php(46): wfIndexMain()
#15 {main}

Backtrace:

  1. 0 /var/www/web27548574/html/norden/includes/parser/Parser.php(620): Parser->lock()
#1 /var/www/web27548574/html/norden/extensions/MultiMaps/includes/mapelements/BaseMapElement.php(113): Parser->parse(string, Title, ParserOptions)
#2 /var/www/web27548574/html/norden/extensions/MultiMaps/includes/mapelements/Marker.php(42): MultiMaps\BaseMapElement->setProperty(string, string)
#3 /var/www/web27548574/html/norden/extensions/MultiMaps/includes/mapelements/BaseMapElement.php(195): MultiMaps\Marker->setProperty(string, string)
#4 /var/www/web27548574/html/norden/extensions/MultiMaps/includes/mapelements/BaseMapElement.php(157): MultiMaps\BaseMapElement->parseProperties(array)
#5 /var/www/web27548574/html/norden/extensions/MultiMaps/includes/BaseMapService.php(336): MultiMaps\BaseMapElement->parse(string, string)
#6 /var/www/web27548574/html/norden/extensions/MultiMaps/includes/BaseMapService.php(302): MultiMaps\BaseMapService->addElementMarker(string)
#7 /var/www/web27548574/html/norden/extensions/MultiMaps/includes/BaseMapService.php(270): MultiMaps\BaseMapService->addMapElement(string, string)
#8 /var/www/web27548574/html/norden/extensions/MultiMaps/MultiMaps.body.php(41): MultiMaps\BaseMapService->parse(array, boolean)
#9 /var/www/web27548574/html/norden/includes/parser/Parser.php(3340): MultiMaps::renderParserFunction_showmap(Parser, string, string, string, string, string, string, string)
#10 /var/www/web27548574/html/norden/includes/parser/Parser.php(3047): Parser->callParserFunction(PPFrame_Hash, string, array)
#11 /var/www/web27548574/html/norden/includes/parser/PPFrame_Hash.php(253): Parser->braceSubstitution(array, PPFrame_Hash)
#12 /var/www/web27548574/html/norden/includes/parser/Parser.php(2887): PPFrame_Hash->expand(PPNode_Hash_Tree, integer)
#13 /var/www/web27548574/html/norden/includes/parser/Parser.php(1556): Parser->replaceVariables(string)
#14 /var/www/web27548574/html/norden/includes/parser/Parser.php(651): Parser->internalParse(string)
#15 /var/www/web27548574/html/norden/includes/content/WikitextContent.php(374): Parser->parse(string, Title, ParserOptions, boolean, boolean, NULL)
#16 /var/www/web27548574/html/norden/includes/content/AbstractContent.php(590): WikitextContent->fillParserOutput(Title, NULL, ParserOptions, boolean, ParserOutput)
#17 /var/www/web27548574/html/norden/includes/EditPage.php(4273): AbstractContent->getParserOutput(Title, NULL, ParserOptions)
#18 /var/www/web27548574/html/norden/includes/EditPage.php(4178): EditPage->doPreviewParse(WikitextContent)
#19 /var/www/web27548574/html/norden/includes/EditPage.php(2956): EditPage->getPreviewText()
#20 /var/www/web27548574/html/norden/includes/EditPage.php(701): EditPage->showEditForm()
#21 /var/www/web27548574/html/norden/includes/actions/EditAction.php(71): EditPage->edit()
#22 /var/www/web27548574/html/norden/includes/actions/SubmitAction.php(38): EditAction->show()
#23 /var/www/web27548574/html/norden/includes/MediaWiki.php(527): SubmitAction->show()
#24 /var/www/web27548574/html/norden/includes/MediaWiki.php(313): MediaWiki->performAction(Article, Title)
#25 /var/www/web27548574/html/norden/includes/MediaWiki.php(940): MediaWiki->performRequest()
#26 /var/www/web27548574/html/norden/includes/MediaWiki.php(543): MediaWiki->main()
#27 /var/www/web27548574/html/norden/index.php(53): MediaWiki->run()
#28 /var/www/web27548574/html/norden/index.php(46): wfIndexMain()
#29 {main} Weejan91 (talk) 15:17, 17 November 2020 (UTC)
its a bug in the extension. Its calling $parser->parse where (probably) it should call $parser->recursiveTagParse(). Contact the maintainer of the extension. Bawolff (talk) 03:23, 18 November 2020 (UTC)
same bug for me Alexmodesto73 (talk) 21:23, 23 December 2020 (UTC)

logging in

I am not being allowed to log in with new info.....they said wrong user name or password. tk u RSVP. MLJ 24.253.82.28 (talk) 15:43, 17 November 2020 (UTC)

See Help:Logging_in#What_if_I_forget_the_password_or_username? Ciencia Al Poder (talk) 14:11, 18 November 2020 (UTC)

User Name

We need help getting our user name as the person who took care of our account before has passed. Can you please help us recover the user name so we can access our files. Thank you. 74.87.126.98 (talk) 16:32, 17 November 2020 (UTC)

The pages are: The Natruist Society and Nude & Natural 74.87.126.98 (talk) 16:36, 17 November 2020 (UTC)
Welcome to the support desk for the MediaWiki software. We don't know which website you refer to, and who "our" and "we" is. In general, anyone can take and install MediaWiki on their servers. For fixing some server somewhere, you will have to contact whoever is running/owning that server. If you do have administrator access to the server that you are talking about, then please elaborate what exactly the problem is, what you want to achieve, and what is unclear. Malyacko (talk) 15:34, 18 November 2020 (UTC)

User name and password

The person that took care of our pages has passed and we are not sure what the user name and password are. We think the user name was Dandelion1, but not sure. Can you help us out? Or do we need to create a new user and have you move the pages over?

Thank You

Naturist 74.87.126.98 (talk) 17:15, 17 November 2020 (UTC)

what website are you asking about? Are you talking about english wikipedia?
There is a user that used to have that name on english wikipedia https://en.wikipedia.org/wiki/User:Dandelion~enwiki however we cannot give out user account info out even if the person is deceased.
Note however, that users on english wikipedia do not "own" articles so there is nothing to transfer over. Additionally please keep in mind that if you are paying (or otherwise compensating) someone to edit wikipedia articles on your behalf that there are mandatory disclosure rules you must comply with (see https://en.wikipedia.org/wiki/Wikipedia:Paid-contribution_disclosure if that applies to you ) Bawolff (talk) 03:20, 18 November 2020 (UTC)

How to make template with calculated data auto-substitution?

In Russian Wikipedia one can use template "No origin" with date auto-substitution, The first day this template looks like just "No origin", but then it turns to "Not origin for 1 day, for 2 days... etc".


How to make this?

Example:

https://i.imgur.com/BXDMhRY.jpg

https://ru.wikipedia.org/wiki/%D0%A5%D1%80%D0%BE%D0%BD%D0%BE%D0%BB%D0%BE%D0%B3%D0%B8%D1%8F_%D0%B8%D0%B7%D0%BE%D0%B1%D1%80%D0%B5%D1%82%D0%B5%D0%BD%D0%B8%D0%B9_%D1%87%D0%B5%D0%BB%D0%BE%D0%B2%D0%B5%D1%87%D0%B5%D1%81%D1%82%D0%B2%D0%B0 Аргскригициониец (talk) 20:18, 17 November 2020 (UTC)

see help:Extension:ParserFunctions
(Particulatly #expr and #time)
An alternative is extension:Scribunto
There are also some date stuff in help:MagicWords Bawolff (talk) 03:10, 18 November 2020 (UTC)

Changing user rights to emailconfirmed does not give user emailconfirmed status.

MediaWiki 1.31.2
PHP 7.3.9-1~deb10u1 (apache2handler)
MariaDB 10.3.17-MariaDB-0+deb10u1


So the email confirmation isn't set up on our server yet which I am not rushing to do because I am having some issues with bots creating accounts. I have in the past been able to go to special pages User Rights and grant emailconfirmed to an account so they have edit rights. I can still do this but the account isn't getting edit rights. If that user goes to preferences, they show as a member to the emailconfirmed group but if they scroll down it says their email is not confirmed.


Is there a way to confirm their email manually? In phpmyadmin maybe? Can i send them an email manually with their email token? Any suggestions? Whytekong (talk) 21:39, 17 November 2020 (UTC)

it depends on how you have things configured. By default email confirmation is not required to edit.
See also Manual:$wgEmailConfirmToEdit Manual:$wgEmailAuthentication
If you want to keep email conformation, but just be able to override, you should disable default email conform to edit, and setup manual:$wgAutopromote to add people to a group when email confirmed and have an equivalent separate manual group you can add people to via special:userrights.
If you dont have email working you maybe should set $wgEnableEmail = false; (in which case you may have to replace email confirmation with normal user groups) Bawolff (talk) 03:07, 18 November 2020 (UTC)
Ok so I will set $wgEnableEmail = false then make a new user group ("Authorized" or something) and have that replace what I am using as emailconfirmed right now.
I will look into getting Autopromote to work once I have the email settings fixed.
Thank you for your help! Whytekong (talk) 03:37, 18 November 2020 (UTC)

Which ContactPage field is best to describe a website?

MediaWiki 1.34.2 with ContactPage.

I'd like to add to the default ContactPage form, a field in which a sender shares the web domain of its website.

I am only interested in web domains (and their TLDs as well, of course) --- not in pathed URLs, so I expect to get just something like:

example.com

Which ContactPage field is best to describe a website (is there a dedicated "website" field)? 182.232.173.202 (talk) 06:47, 18 November 2020 (UTC)

Excuse me? I didn't understand your comment. 182.232.173.202 (talk) 08:15, 18 November 2020 (UTC)
You can use text or url. Url might want https:// prefix, im not sure.
See also the first 180 lines of https://gerrit.wikimedia.org/g/mediawiki/core/+/HEAD/includes/htmlform/HTMLForm.php for what your options are. Bawolff (talk) 03:25, 19 November 2020 (UTC)

Hello,

I am new in the field and would like to learn more.

I use bplaced as database and have Wikimedia 134.4 installed there.

I would like to know if I can edit the navigation on the left? [IMG]https://www.bilder-upload.eu/thumb/09e592-1605696460.png[/IMG][/URL]

I would like to create headings that refer to the document. Hightec1 (talk) 10:54, 18 November 2020 (UTC)

Manual:Interface/Sidebar Malyacko (talk) 12:15, 18 November 2020 (UTC)
Thank you..
i think there must be something went wrong, during installation.
Because i have a lot error messages.
Is there a clean way to unistall mediawiki? Hightec1 (talk) 12:28, 18 November 2020 (UTC)
See Manual:Uninstallation Ciencia Al Poder (talk) 14:06, 18 November 2020 (UTC)
if you post the errors/warnings we might be able to advise on how to fix them. Bawolff (talk) 03:21, 19 November 2020 (UTC)

Cant Save Changes

Hello,

I use bplaced as database and have Wikimedia 134.4 installed there.

I cannot save the changes i make. Every time when i try to save the changes i received this message


Warning: getrusage() has been disabled for security reasons in /users/hightec20/www/includes/parser/ParserOutput.php on line 1261


Warning: getrusage() has been disabled for security reasons in /users/hightec20/www/includes/parser/ParserOutput.php on line 1261


can somebody help please? Hightec1 (talk) 11:11, 18 November 2020 (UTC)

Ask your hosting provider to enable php's getrusage function, or get a better hosting provider that doesn't disable random php functions. Ciencia Al Poder (talk) 14:07, 18 November 2020 (UTC)

Back-ups when using MariaDB

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


Hello! I've used Bitnami to install Mediawiki as a GCP project, and it uses MariaDB by default. There's no mention of MariaDB here: Manual:Backing up a wiki, so I'm wondering if anyone has any recommendations on how to back up the wiki when using MariaDB? I imagine I need to create a script that regularly performs the command here (https://docs.bitnami.com/bch/apps/mediawiki/administration/backup-restore-mysql-mariadb/) but does anyone have a script I could take a look at? I am very new to this :) Willemvgfruit (talk) 12:05, 18 November 2020 (UTC)

MySQL = MariaDB. Basically. Malyacko (talk) 12:09, 18 November 2020 (UTC)
Thanks! I'll follow Manual:Backing up a wiki#MySQL in that case :) Willemvgfruit (talk) 12:50, 18 November 2020 (UTC)
The discussion above is closed. Please do not modify it. No further edits should be made to this discussion.

How to protect a ContactPage contact form from SQL injections?

A principally all core MediaWiki 1.34.2 with only Extension:ContactPage extension.

I have only one (general) contact form and besides the default fields I have added two text fields (one for simple text and one for numbers) and one select list field.

How to protect a ContactPage contact form from SQL injections? 182.232.164.94 (talk) 13:03, 18 November 2020 (UTC)

By writing secure code in the ContactPage extension itself which does not allow such an injection. If you think that you can inject SQL, then please follow Special:MyLanguage/Reporting security bugs - thanks! Malyacko (talk) 13:18, 18 November 2020 (UTC)
@Malyacko
By writing secure code in the ContactPage extension itself
By that, did you mean to say:
"if your PHP code for ContactPage in LocalSettings.php is written correctly per guidelines there should be no problem because principally all SQL is already rejected by ContactPage"
? 182.232.164.94 (talk) 13:49, 18 November 2020 (UTC)
contactpage extension generally speaking does not record results in a database so SQL injections are not really an applicable vulnerability to it.
(Of course if you have something that processes the resulting emails, its always possible that that has some security vulnerability in it) Bawolff (talk) 03:20, 19 November 2020 (UTC)
What is a common example to something that processes the resulting emails?
My website is principally all-core (just MediaWiki and generally default ContactPage). 182.232.164.94 (talk) 05:38, 19 November 2020 (UTC)
its not a super common thing to do, but that would be having a custom script hook into your MTA (like postfix or sendmail) Bawolff (talk) 17:08, 19 November 2020 (UTC)
Do you believe it is commonly done in FaaS type hosting services? I host my website on a "shared server" FaaS environment and I never "interfered" with how the technical stuff there handles emails. 182.232.164.94 (talk) 05:29, 20 November 2020 (UTC)
no.
Basically this is something you would do. If you don't know what it is it doesn't apply to you.
Basically i'm just trying to cover all bases and say - if you add new stuff not part of the contact page extension, its possible there would be vulnerabilities in whatever you add. Bawolff (talk) 08:53, 21 November 2020 (UTC)
In "Information Security StackExchange" I have opened the thread:
Is a simple text field a good alternative for phone/website fields if a form's data isn't saved in a database?
I cannot link to it due to spam protection 182.232.164.94 (talk) 14:47, 20 November 2020 (UTC)
It was written in the above mentioned StackExchange post in the comments section:
XSS comes to mind... If the resulting text is parsed as HTML, it could lead to script execution on your side when you open the result later.
@Bawolff is it parsed as HTML? Perhaps the commenter didn't know that no script execution should take place? 182.232.164.94 (talk) 00:28, 21 November 2020 (UTC)
i think you are overworrying.
It should be safe. Be careful about using any flags with "raw" in the name as they can be not safe. Select based drop downs can also be a bit confusing. Other than that it is safe.
This of course only applies to what's builtin into ContactPage. If you add custom code, your custom code can of course have vulnerabilities. Bawolff (talk) 08:51, 21 November 2020 (UTC)
flags with "raw" in the name
What is it? A reference to an article could help other users who don't know the meaning or the reason to write this. 49.230.204.162 (talk) 07:15, 22 November 2020 (UTC)

Reference Tooltips module-execute exception

Hello, I hope someone can give me a couple of pointer, I have run through the steps on Reference Tooltips and I can see the css and js load nicely on my page, but the tooltip doesn't appear.

In my console I see the error `Exception in module-execute in module ext.gadget.ReferenceTooltips:` appears, but nothing after it to help debug.

This is alongside a notice saying `load.php?lang=en&modules=startup&only=scripts&raw=1&skin=vector:2 TypeError: Cannot read property 'get' of undefined`.

Is there a nice way to help me debug this, or is this a known bug with a workaround? I imagined this would work pretty out-of-the-box so wonder whether the bug I am having is commonplace. The site is an older site, but has recently been upgraded to the more recent mediawiki version I believe. Retrodans (talk) 15:18, 18 November 2020 (UTC)

I guess you're referring to Reference Tooltips. If that is it, it's a gadget maintained at en:MediaWiki:Gadget-ReferenceTooltips.js on English Wikipedia. You can ask for help on the code talkpage en:MediaWiki talk:Gadget-ReferenceTooltips.jsAmmarpad (talk) 07:33, 19 November 2020 (UTC)

Forgot my password or it expired

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.


Have not received the reset email 24.172.135.10 (talk) 16:39, 18 November 2020 (UTC)

Are you sure you have not forgot the connected email too? – Ammarpad (talk) 16:52, 18 November 2020 (UTC)
The discussion above is closed. Please do not modify it. No further edits should be made to this discussion.

This template still not have a description

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 open a template in Visual Editor, I get the following text, that says that this template doesn't have any description. Screen:https://i.imgur.com/BAFP3T9.jpg

But how to add this descritpion? Аргскригициониец (talk) 20:19, 18 November 2020 (UTC)

see extension:TemplateData documentation Bawolff (talk) 03:17, 19 November 2020 (UTC)
All the same, even with this extension, I don't understand hot to inseart a description in this page
UPD: now I understood, I should press a button Manage Template, there I can add descritpion.. Аргскригициониец (talk) 18:31, 19 November 2020 (UTC)
The discussion above is closed. Please do not modify it. No further edits should be made to this discussion.

Volunteer Help

How do I start volunteering? Do I fill out an application? Do i sign up on a website? What are the steps I have to take to start volunteering? 68.104.11.68 (talk) 20:24, 18 November 2020 (UTC)

what is it you want to volunteer to do and for which project (this help pages serves people of several different projects that are largely unrelated to each other)? Bawolff (talk) 03:17, 19 November 2020 (UTC)
How to contribute Malyacko (talk) 08:52, 19 November 2020 (UTC)

Broken Image Uploads

Hello, after trying to troubleshoot the issue i have for a while i've decided to ask for some help since i can't seem to grasp what the problem is..

I inherited a local wiki that we use for IT documentation. We recently decided that all of our webservers, both internal and external, shall run TLS 1.2 and nothing else. Enabling it on the webserver for the wiki was no problem and everything works just fine, i thought... It seems that somehow enabling TLS 1.2(HTTPS only) broke every picture we have on the wiki.


All that shows is this: [3]. If you click on it you get sent to the file history, if you click on the picture link from the file history you get sent to the pags saying that there is no text on this page. You can create this page.


From what i found ClipUpload is a plugin that makes it easy to uppload pictures. I've tried to look for some config file relating to pictures/picture links/https-links, basically anything but i can't seem to grasp what is wrong..


We are running:

MediaWiki 1.30.0

PHP 7.2.2

MariaDB 10.2.13

ICU 60.2

ClipUpload 1.3.0


I'm grateful for any help, thanks! AntonHK97 (talk) 08:17, 19 November 2020 (UTC)

@AntonHK97 Why would you run an ancient unsupported MediaWiki version (1.30.0) which is full of security issues? Please upgrade to secure versions. Malyacko (talk) 08:52, 19 November 2020 (UTC)
@Malyacko It's and old setup that i inherited when i started working at this place. It's run only on the inside with no access to the internet. Upgrading to a new version is something that i will do when i got time, i also agree that runnign a old unsuported version is compleatly wack.
However , untill this is done im still trying to fix the issue with pictures not showing/upplolading.. AntonHK97 (talk) 09:06, 19 November 2020 (UTC)
check LocalSettings.php to see if any of the settings have http:// hardcoded (check especially $wgServer and $wgImagePath) Bawolff (talk) 17:01, 19 November 2020 (UTC)

Automatically set coordinates values based on field

Update: I've found out that I can use google's API to get coordinates from a location string. Is there a way to do this without paying for google's API as am working with a budget.

I have a template which has both 'country' and 'jurisdiction' fields. I would like to display results from a query (Page Forms cargo query) on a map, but I haven't entered any coordinates values for my pages. Is it possible to somehow infer coordinates from existing fields - e.g. provide the city name rather than coordinates to display on the map?


I am relatively new to Mediawiki :) amazing so far though!

Thanks,

Willem Willemvgfruit (talk) 10:44, 19 November 2020 (UTC)

maybe osm has a similar api (honestly dont know, just a guess) Bawolff (talk) 16:59, 19 November 2020 (UTC)
You could create separate Cargo tables with country/coordinates and jurisdiction/coordinates fields, and join those tables into your query of the main table. You might be able to get the necessary coordinates data online rather than clicking on a map to create each row manually.
If you ask on the Cargo extension page I am sure the extension author would assist with better ideas :-) Jonathan3 (talk) 23:05, 19 November 2020 (UTC)
I have re-read your query and now think I better understand what you need. It's not that you need to infer coordinates from existing fields, it's that you want to avoid using Google to get the coordinates.
One answer is that you can get quite a lot of coordinates for nothing using Google.
The other answer is that what Bawolff thought might be possible. You can use "openlayers" instead of "googlemaps" in the input field parameters.
e.g.
{{{field|Address|feeds to map=Table_name_goes_here[Coordinates]}}}
{{{field|Coordinates|input type=openlayers}}}
Jonathan3 (talk) 18:49, 20 November 2020 (UTC)

How to change background color in 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.


When I make the heading of a class wikitable, I can use a "!" or a "|" to start a line.

When I use "!", then the background color of the line is as I want it, but all text in it will be written in bold.

When I start a line instead with "|", then I don't know how to make the same background color as above, but the text won't get bold.

How can I make a special background color in any line of class wikitable, without getting the line text bold? 89.204.154.18 (talk) 17:33, 19 November 2020 (UTC)

I think you can manually add CSS to individual cells/rows.
See Help:Tables#With_HTML_attributes_and_CSS_styles. Leranjun (talk) 17:52, 19 November 2020 (UTC)
Thanks, I see. When I wirte
style="style="background-color:#5dbcd2;"
it will take the color I want. When I write it in the beginning of the table, the whole table takes the color. When I write it for a cell, it is for a cell.
But how can I change the background for a whole line? It would be useful. 89.204.154.18 (talk) 18:52, 19 November 2020 (UTC)
Try this:
{|
!heading1
!heading2
|-style="background-color:red"
|cell1
|cell2
|-
|cell3
|cell4
|}
Jonathan3 (talk) 23:00, 19 November 2020 (UTC)
Thanks. Works. Next question.
I want my background color be the same as the standard color here in the back of the text "Shopping List"
Help:Tables#HTML colspan and rowspan
I tried already with this, but the colors were very different:
https://imagecolorpicker.com/
It says the color code is #5dbcd2 but when I use this color code, it looks very different. Polyphon522 (talk) 09:32, 20 November 2020 (UTC)
Maybe you can press F12 in your browser, then CTRL+F, enter "<th>", click on the row that contains it, and look on the right bottom corner of the screen, where the CSS rule list is usually located.
A colour code should be listed there. 79.249.156.201 (talk) 09:50, 20 November 2020 (UTC)
Thank you all, I found out. The color I need is #e9e9e9.
Last question.
When I start a line in class="wikitable" with an attention mark, like for instance
!cell 1||cell 2
then the background color of this line becomes automatically #e9e9e9, as I want it to. The problem is, that all text in this line becomes Bold. I don't want that.
Is there a way to use !cell 1|cell 2 (with attention mark), without making the text Bold? Polyphon522 (talk) 11:02, 20 November 2020 (UTC)
To do it for an individual table/cell, try this:
{|class="wikitable"
!style="font-weight: normal"|heading1
!heading2
|-style="background-color:red"
|cell1
|cell2
|-
|cell3
|cell4
|}
heading1 heading2
cell1 cell2
cell3 cell4
Jonathan3 (talk) 11:33, 20 November 2020 (UTC)
Solved! Polyphon522 (talk) 17:17, 20 November 2020 (UTC)
The discussion above is closed. Please do not modify it. No further edits should be made to this discussion.

Prevent a user from becoming auto-confirmed

As the title suggests, is there a way to prevent a user account from being an auto-confirmed user, or perhaps manually remove a user from the Autoconfirmed user group?

For example, if I registered an account specifically for testing non-auto-confirmed user behaviours, I wouldn't want that account to be an auto-confirmed user, even if it meets the confirmation requirements. Leranjun (talk) 17:49, 19 November 2020 (UTC)

? Anybody? Leranjun (talk) 00:18, 20 November 2020 (UTC)
i think abusefilter has some method of accomllishing this. Bawolff (talk) 01:36, 20 November 2020 (UTC)
Use GetAutoPromoteGroupsHook and inspect the user object. – Ammarpad (talk) 01:56, 20 November 2020 (UTC)
Hmm, can you please elaborate a little bit? I'm not entirely sure how to do that :P Leranjun (talk) 02:17, 20 November 2020 (UTC)
See Manual:Hooks for how to use hooks, you need to write some code in LocalSettings.php... obviously. – Ammarpad (talk) 03:55, 20 November 2020 (UTC)
Oh, but I thought that's for changing the settings for all auto-confirmed users though…? I only need to remove one user from the group, not everyone. Leranjun (talk) 04:49, 20 November 2020 (UTC)
Have you read through the link? with the hook you can do all that (whether it's only one user or 10 or all) and even more. – Ammarpad (talk) 05:36, 20 November 2020 (UTC)
Ok, will check again. Thanks! Leranjun (talk) 06:48, 20 November 2020 (UTC)

Getting 403 for all images on entire wiki, only SVG work

Hi there. I would appreciate some help before I go nuts, because I sit on this for like hours now and nothing seems to help. Mediawiki is 1.35 stable.

https://zenz-solutions.de/mediawiki/w/ is the URL of the wiki. It is hosted at Deutsche Telekom. I run a wordpress install on that webspace, and that works out of the box without any problems.


Server infos:

PHP VERSION 7.3.22-1+0~20200909.67+DEBIAN10~1.GBPDD7B72 System Linux hosting 5.9.1-cmag1-hp+ #87 SMP Wed Oct 28 10:52:30 CET 2020 x86_64 Build Date Sep 9 2020 06:55:18 Server API CGI/FastCGI Virtual Directory Support disabled


Failed to load resource: the server responded with a status of 403 (Forbidden) - that's what the dev console of chromium tells me regaridng the images that don't get loaded.


The contents are not shown for all images; theme raster graphics of the UI, uploaded stuff... everything.


Inside /images is a .htaccess file

[

<IfModule rewrite_module>

RewriteEngine On

RewriteOptions inherit

# Fix for bug T64289

Options +FollowSymLinks

</IfModule>

]

I tried to fix stuff here, but nothing works.

I did create a textfile with the name .conf in /w for security as I was told when installing the wiki.

[

<Directory "/public_html/mediawiki/w/images">

   # Ignore .htaccess files

   AllowOverride None

   

   # Serve HTML as plaintext, don't execute SHTML

   AddType text/plain .html .htm .shtml .phtml

   

   # Don't run arbitrary PHP code.

   php_admin_flag engine off

   

   # If you've other scripting languages, disable them too.

</Directory>

]


Do we need my LocalSettings.php to know more? Let me know. 217.80.209.200 (talk) 17:57, 19 November 2020 (UTC)

This is the .htaccess inside /public_html (it's from wordpress, since the wordpress install is in /public_html/cms
[
# BEGIN All In One WP Security
#AIOWPS_BASIC_HTACCESS_RULES_START
<Files .htaccess>
<IfModule mod_authz_core.c>
Require all denied
</IfModule>
<IfModule !mod_authz_core.c>
Order deny,allow
Deny from all
</IfModule>
</Files>
ServerSignature Off
LimitRequestBody 10485760
<Files wp-config.php>
<IfModule mod_authz_core.c>
Require all denied
</IfModule>
<IfModule !mod_authz_core.c>
Order deny,allow
Deny from all
</IfModule>
</Files>
#AIOWPS_BASIC_HTACCESS_RULES_END
#AIOWPS_DENY_BAD_QUERY_STRINGS_START
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteCond %{QUERY_STRING} ftp:     [NC,OR]
RewriteCond %{QUERY_STRING} http:    [NC,OR]
RewriteCond %{QUERY_STRING} https:   [NC,OR]
RewriteCond %{QUERY_STRING} mosConfig [NC,OR]
RewriteCond %{QUERY_STRING} ^.*(globals|encode|localhost|loopback).* [NC,OR]
RewriteCond %{QUERY_STRING} (\;|'|\"|%22).*(request|insert|union|declare|drop) [NC]
RewriteRule ^(.*)$ - [F,L]
</IfModule>
#AIOWPS_DENY_BAD_QUERY_STRINGS_END
#AIOWPS_PREVENT_IMAGE_HOTLINKS_START
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteCond %{HTTP_REFERER} !^$
RewriteCond %{REQUEST_FILENAME} -f
RewriteCond %{REQUEST_FILENAME} \.(gif|jpe?g?|png)$ [NC]
RewriteCond %{HTTP_REFERER} !^http(s)?://(.*)?\.zenz-solutions\.de [NC]
RewriteRule \.(gif|jpe?g?|png)$ - [F,NC,L]
</IfModule>
#AIOWPS_PREVENT_IMAGE_HOTLINKS_END
# END All In One WP Security
# BEGIN WordPress
# The directives (lines) between "BEGIN WordPress" and "END WordPress" are
# dynamically generated, and should only be modified via WordPress filters.
# Any changes to the directives between these markers will be overwritten.
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteRule ^index\.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
</IfModule>
# END WordPress
] 217.80.209.200 (talk) 18:08, 19 November 2020 (UTC)
fml, it was the hotlink protection from the wordpress install. I removed that block now.
Can anybody tell me, how to keep the hotlink prevention active in .htaccess and whitelist it for the wiki?
I am not good at .htaccess stuff... ¯\_(ツ)_/¯ 217.80.209.200 (talk) 18:13, 19 November 2020 (UTC)
kind of looks like your hotlink protection is only allowing things on subdomains.
E.g. instead of
RewriteCond %{HTTP_REFERER} !^http(s)?://(.*)?\.zenz-solutions\.de [NC]
Try
RewriteCond %{HTTP_REFERER} !^http(s)?://(.*\.)?zenz-solutions\.de [NC] Bawolff (talk) 01:34, 20 November 2020 (UTC)
This seems to be the solution. Thanks a lot! 217.80.209.200 (talk) 15:44, 20 November 2020 (UTC)

how to introduce ref while doing edit

i want to put ref after an edit on swara Nadrang (talk) 04:10, 20 November 2020 (UTC)

This might help: Help:Cite. Jonathan3 (talk) 11:34, 20 November 2020 (UTC)

Change Editor Background & Fonts

There is just nobody in the world that wants to do this I guess. I can find nothing on the web outside of changing Mediawiki page backgrounds and fonts. That's simple. I need help with the editor styles. I do a lot of wiki editing, and the popular black text on white background is like taking an ice pick to the eye for me.

Can anyone help?

Thanks ~z929669 <figure-inline></figure-inline> Talk 05:13, 20 November 2020 (UTC)

See Manual:Dark modeAmmarpad (talk) 05:32, 20 November 2020 (UTC)
Thanks Ammarpad. Not sure why that didn't come up in my searches.
I have a follow-up, but I will post another topic, since this is resolved. ~z929669 Talk 05:38, 20 November 2020 (UTC)

Security Blockers in MW 1.35

I just upgraded to MW 1.35, and I'm having some security issues. Mediawiki:Common.css is one such page that I cannot edit (as well as certain SMW property pages), even with every privilege granted. I even set wgGroupPermissions['user']['editinterface'] = true;. Permissions are same as my old software (1.21) where I have no issue with access to the page. In other words, I'm confident about my user rights settings. Perhaps there is another consideration with the new version?

Thanks in advance.

EDIT: I just got an error when trying to undelete MediaWiki:Gadgets-definition:

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

... but I AM in that group, so something seems broken. ~z929669 Talk 05:40, 20 November 2020 (UTC)

Apparently 1.21 is way very old... so many things have happened: See MediaWiki 1.32/interface-admin. I think you have to add yourself to "interface admin" group. You should go to Special:UserRights and do that or use the Createandpromote.php script. For gadget definition you need to be in a group that have `gadgets-definition-edit` right, and the confusing error might be the bug described in phab:T203083Ammarpad (talk) 06:14, 20 November 2020 (UTC)
Thanks again Ammarpad. Adding myself to Interface Administrators did the trick for the Gadgets page. Strange, I thought this user right was entirely redundant with Administrator (a subset of those rights). Thanks again for the great and accurate tips! ~z929669 Talk 14:40, 20 November 2020 (UTC)

SQL 5.x

Hello.

I'm going to use the web hosting. (Linux)

Specifications are php 7.3.23, MySQL 5.x.

Can mw 1.35 be installed?

Thanks. Gomdoli (talk) 06:12, 20 November 2020 (UTC)

It seems it meets the installation requirements, so yes, there should be no problem. Ciencia Al Poder (talk) 08:28, 20 November 2020 (UTC)
More, I asked hosting site's help desk.
Staff's answer, "PHP V7.3.23's MySQL version is 5.7.".
Is this version same? Gomdoli (talk) 10:12, 20 November 2020 (UTC)
@Gomdoli4696 Please see Manual:Installation requirements (same as what?) Malyacko (talk) 10:49, 20 November 2020 (UTC)
MySQL minimum supported version is 5.5.8 and PHP is 7.3.19. Also you should really just try instead of asking questions. If your version is not supported, you'll see a clear error message about that. – Ammarpad (talk) 10:52, 20 November 2020 (UTC)
Ah, thank you. Gomdoli (talk) 11:04, 20 November 2020 (UTC)

Views of last 30 days and graph in page information

Something I have only seen on Wikipedia, MediaWIKI.org, WikiVersity, Wiktionary, and the other WikiMedia sister projets, but not on any other MediaWiki site, is the view counter of the last 30 days in thr page information (?action=info), and clicking on it opens a graph which shows each day's views. (Not to be confused with Hit counters.


How can one set this up in MediaWiki? 79.249.156.201 (talk) 09:58, 20 November 2020 (UTC)

This is provided by Extension:PageViewInfoAmmarpad (talk) 10:47, 20 November 2020 (UTC)

$wgSMTP and PEAR

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


I was hoping to use Mailgun to send the wiki's emails but when I add the information to $wgSMTP and try to create a wiki account, I got an error about not finding PEAR.php. I found this file so changed the following line of LocalSettings.php: $path = array( $IP, "$IP/includes", "$IP/languages", "$IP/vendor/pear/pear-core-minimal/src/");. Then it was Net/Socket.php so I changed it again, to $path = array( $IP, "$IP/includes", "$IP/languages", "$IP/vendor/pear/pear-core-minimal/src/", "$IP/vendor/pear/net_socket");.
The whole time, the users were getting created, but (until this final version of include_path) the website screen went blank instead of showing the special page entitled "Account created".
The problem now is that no email was recieved and Mailgun has no record of sending any.
Any ideas on what to do next? Thanks.
Edit: I don't have anything email-related set up on my VPS. On the shared server (previously) I used localhost and it worked. But I note this from Manual:$wgSMTP: "To send emails (email confirmations, notifications, Special:Emailuser), you should use a third party email provider and allow MediaWiki to send email with it through SMTP. The settings are stored as an array in $wgSMTP. Set to false (the default value) to use the built-in PHP mail() function, but do note that if you do so your emails will most likely end up in the user's spam folder." Jonathan3 (talk) 11:25, 20 November 2020 (UTC)
If you setup your system's MTA correctly, it will probably mostly not go to spam (need to add SPF, and ensure the forward/reverse dns match. Ideally also dkim) but that's kind of annoying. You can probably make your MTA forward to some other email provider but that can be annoying to. Bawolff (talk) 09:06, 21 November 2020 (UTC)
As I am using Mailgun for other things, I hoped simply putting the credentials into $wgSMTP would be easier than setting up email on the server. Jonathan3 (talk) 19:59, 21 November 2020 (UTC)
I should add that I’m using MW1.34.4 installed from the tarball, on a Digital Ocean Ubuntu 18.04 server. Jonathan3 (talk) 17:40, 20 November 2020 (UTC)
that's weird as you really should not have to do that. Vendor should be autoloaded. Bawolff (talk) 09:07, 21 November 2020 (UTC)
The vendor directory came as part of the tarball all right, it’s just that it didn’t work.
I expect most people using MediaWiki are on a shared/managed server or a wiki farm, or on the other extreme are experts and would find setting up postfix or whatever easy, so maybe I’m the only one in the middle trying to use $wgSMTP.
Maybe there is something that needs to be on the server to make it work beyond the pear directory that comes with Mediawiki? Jonathan3 (talk) 20:02, 21 November 2020 (UTC)
Where would you recommend I report this as a potential bug (if you would recommend that at all)? Jonathan3 (talk) 21:09, 23 November 2020 (UTC)
Update.
When I get rid of the unnecessary parts of LocalSettings.php defining $path (see Project:Support desk/Flow/2020/11#h-Update_LocalSettings.php-2020-11-23T22:34:00.000Z) the "white screen" error described above does not happen.
Still no email being sent though.
No errors showing with the usual debugging stuff on ($wgShowDebug, error_reporting( -1 ), ini_set( 'display_errors', 0), $wgShowExceptionDetail). Jonathan3 (talk) 22:46, 23 November 2020 (UTC)
Final update!
I tried it with different SMTP details and it worked perfectly! So it's a problem to be resolved with my Mailgun settings. Jonathan3 (talk) 22:55, 23 November 2020 (UTC)
The discussion above is closed. Please do not modify it. No further edits should be made to this discussion.

No textes are Coming in my MediaWiki

Hello


I use MediaWiki and there are no article-textes Coming, it's empty.

Only the article-titles are visible, but next to article-title there should be the articel-text but all are empty.

So I can change everytime to a random article and the article is shown but only with article-text. I can also go to Siteinformation an can see how much edited and Words counted.


I've SSH Login to the Server and also to the database.

In table Users i See two User, but i don't know the Passwords.

If I look on phpmyadmin there are all tables visible of MediaWiki , but where are the article-textes? And how I can match them again to the article-titles?


I use this versions:

wiki version: 1.33.0

DB Version: 10.3-MariaDB

phpmyadmin 5.0.4


Best Regards! 2001:1A88:1A4:3000:C10C:58F5:3EAA:BF7C (talk) 15:06, 20 November 2020 (UTC)

See Manual:How to debug. You are also using the ancient unsupported version 1.33.0 with several security bugs. Please instead use recent supported versions. Malyacko (talk) 18:49, 20 November 2020 (UTC)
this sounds like an old bug where certain versions of pcre were incompatibe with mediawiki. Check the mediawiki debug logs for errors (especially anything mentioning pcre, regex or magicword) Bawolff (talk) 09:02, 21 November 2020 (UTC)
Thank you for the answer, i will check it! Durmitor1 (talk) 16:33, 10 December 2020 (UTC)
My problem is, I've no textes in the articles. My goal is, that to all articles the textes are back again.
I'm still looking for a solution.
I've 3 questions:
  1. Were maybe all site-textes deleted? When I've move random in the articles, there is everywhere shown that there are no pages created and I can create a new page. The titles of the created articles are available and shown, but without textes. We miss the textes. Are maybe the written textes somewhere deleted but without title.
  2. Where are the MediaWiki articles saved in the MediaWiki DB? I've access to the tables of the MediaWiki over phpmyadmin in which table the articles should be?How I can set it back or map to the articles again or maybe restore or export it.
  3. How to set up a password to MediaWiki Users I see two Users in the table user of MediaWiki but over phpmyadmin how to set new password to this users? Durmitor1 (talk) 11:11, 11 December 2020 (UTC)
This thread is about text not being shown. This thread is not about setting password for users or where things are stored in the DB. For other topics, please create other topics. Thanks. Malyacko (talk) 15:15, 13 December 2020 (UTC)
...and I still posted before: See Manual:How to debug. :) Malyacko (talk) 15:16, 13 December 2020 (UTC)

using OO.UI and jquery in js

Hi, I create a OO.ui.ButtonWidget in javascript and then display it using $( '#XXX' ).append( mybuttonwidget.$element ). Lets say the id of this ButtonWidget is YYY.


So I try to get and use its methods as follows, but it doesn't work:

$( '#YYY' ).setDisabled( true )


Now I assume the problem is that what I am fetching with jquery is not an OO.ui.ButtonWidget but just the plain text representation of that.


So my question is, how to I do the inverse of mybuttonwidget.$element, so that I can use .setDisabled or any other method of OO.ui.ButtonWidget?


Thank you 85.255.234.24 (talk) 17:30, 20 November 2020 (UTC)

Several Lua errors

Hello,


I try to getting some templates and modules in my wiki, unfortunately, I see following very often:

Lua error: expandTemplate: template loop detected (example: Module:Message box/doc)

I also get some errors

Lua error in Module:TNT at line 124: mw.text.jsonEncode: Cannot use type 'boolean' as a table key.

(example Template:BCP47/doc)


is ther anyone, who can help me, sorting that, TIA 80.108.171.42 (talk) 21:39, 20 November 2020 (UTC)

3 main pages - please, explain

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 wiki I have 3 "main pages", and I dont know, why.

Why do I have 3 main pages and can I delete the excess ones? Арскригициониец (talk) 23:43, 20 November 2020 (UTC)

> A main page where I can go through putting Mediawiki:Mainpage in search
I think you misunderstand. The text content of MediaWiki:Mainpage should be the name of the real main page. You can't just put Mediawiki:mainpage itself into search.
You can delete (or redirect) the installer provided one. That page might have been created if the lanuage in the installer was set to english but than later changed to something else. Bawolff (talk) 09:00, 21 November 2020 (UTC)
> You can't just put Mediawiki:mainpage itself into search.
But this manual says that I should do exactly that:
To change which page is the main page, in the search bar, type MediaWiki:Mainpage
Well, I installed clear English MediaWiki and understood the following:
  1. There is one main page with after install instructions on clean wiki, if the wiki is English. If it has another localisation, there will be localized mainpage that is the true main page, and the other main page with install instructions w/index.php?title=Main_Page, that's not true in this case. In English will be only one.
  2. And there is another "main page", when you put Mediawiki:Mainpage in search box. By default it contains content "MainPage" and header "Mediawiki:Mainpage". I don't know why does the engine need that one, it's a bit confusing. Аргскригициониец (talk) 15:22, 21 November 2020 (UTC)
The discussion above is closed. Please do not modify it. No further edits should be made to this discussion.

Missing pages, but data appear to be intact

My wiki is missing a bunch of pages. I think it's specifically the pages that only had one revision. Possibly only if that revision was very old.

Here's an example page: https://www.qbwiki.com/wiki/St._Anne%27s . It says there's no text in this page, but the page, revision, and text tables all seem to have the right data.

Other observations:

The revision #0 of the page named "St. Anne's" does not exist.
This is usually caused by following an outdated history link to a page that has been deleted. Details can be found in the deletion log.

(but the deletion log doesn't show anything)

  • When I try to save an edit, I am told there is an edit conflict ("Someone else has changed this page since you started editing it.")
  • I can delete the page and then re-create it
  • I fiddled around with the PHP code to see where the error text was coming from. It's Article.php line 436, in the fetchRevisionRecord() method:
// $this->mRevision might already be fetched by getOldIDFromRequest()
if ( !$this->mRevision ) {
	if ( !$oldid ) {
		$this->mRevision = $this->mPage->getRevision();

		if ( !$this->mRevision ) {
			wfDebug( __METHOD__ . " failed to find page data for title " .
				$this->getTitle()->getPrefixedText() . "\n" );

			// Just for sanity, output for this case is done by showMissingArticle().
			$this->fetchResult = Status::newFatal( 'noarticletext' );
			$this->applyContentOverride( $this->makeFetchErrorContent() );
			return null;
		}
	…

But I don't know enough about how MediaWiki works (or PHP in general, really) to figure out what's going wrong.

This problem likely started after an upgrade that I struggled with. Unfortunately, I didn't notice this problem until long after the upgrade, and when I finished the upgrade I had thought everything turned out okay, so I don't remember exactly what went wrong.

The upshot is that there are a bunch of pages (this was just one example) whose contents exist in the database but can't be accessed through the website. I'm not sure even how to systematically identify such pages. I suspect some rows or values are just missing from some table(s), but I have no clue which or how to find out.

Thoughts? Jonahgreenthal (talk) 01:37, 21 November 2020 (UTC)

Do you have backups from before the upgrade?
It is most likely that either the actor or comments migration has gone wrong. MediaWiki does a LEFT JOIN on those tables so missing entries in there will cause those revisions/pages to appear as missing.
If it is about comments, see https://phabricator.wikimedia.org/T249904.
If it is about actors, I had the following trick:
  1. identify the user names for those revisions
  2. Create proper users for them, e.g. `User::newSystemUser( '...', [ 'steal' => true ] );`
  3. Run database queries UPDATE revision SET rev_user = 0 where rev_user_name = '...'; (and similar for all affected tables, mostly logging, archive and recentchanges)
  4. Run php maintenance/cleanupUsersWithNoId.php
But you need backups to do this in case the rev_user and equivalent fields are already dropped. I guess it's possible to do it afterwards by updating the rev_actor and equivalent fields too, but I have not done that myself. Nikerabbit (talk) 20:13, 21 November 2020 (UTC)
I do have backups from before the upgrade, but the upgrade was about a year ago so restoring from the backup isn't viable.
Thanks for pointing me at revision_comment_temp and revision_actor_temp. It looks like the problem is the latter—this query returns 164 rows:

SELECT * FROM revision WHERE rev_id NOT IN (SELECT revactor_rev FROM revision_actor_temp)

Do you agree with that reasoning? (Some of the corresponding pages do exist, but the revisions seem to be missing when I view the history through the web interface.)
The rev_user_text column contains the username, so that should address your step 1, right? Are you able to elaborate on step 2 (how do I do that? what's the steal thing?) and 3 (which tables are affected?)? Thanks so much! Jonahgreenthal (talk) 00:53, 22 November 2020 (UTC)
I'd suggest running `php maintenance/migrateActors.php --force` to observe if there are errors. If there is, you should get list of usernames that match the rev_user_text of those rows. You could try running cleanupUsersWithNoId.php first or maybe even findMissingActors.php (if you have it) to see if is sufficient.
But if they don't work, my step 2 basically creates and user and actor for the name. The issue may be that there is no used account for the name, so actor cannot be created. Step 3 removes broken references to user ids which do not exist, so that cleanupUsersWithNoId can process it. The relevant tables and names should be printed out by the migrateActors script. Nikerabbit (talk) 09:11, 23 November 2020 (UTC)
Thanks. migrateActors produced a bunch of messages like this:
User name "X" is usable, cannot create an anonymous actor for it. Run maintenance/cleanupUsersWithNoId.php to fix this situation.
cleanupUsersWithNoId produced a bunch of output but didn't seem to actually do anything.
I don't know how to actually do your step 2. It looks like PHP code I'm supposed to run, but I don't know how to run custom code within the MediaWiki environment.
I don't have findMissingActors. Jonahgreenthal (talk) 19:51, 24 November 2020 (UTC)
There is shell.php and eval.php under maintenance, both allow you to run that code interactively. Nikerabbit (talk) 08:52, 25 November 2020 (UTC)
Thanks. I had to fight with shell.php pretty hard to get PsySH to work, but I think everything works now, including the solution of my original problem. I appreciate your help. Jonahgreenthal (talk) 02:48, 26 November 2020 (UTC)
I had a very similar problem and this thread was very helpful, thank you. I was able to resolve with this SQL:
INSERT INTO revision_actor_temp (revactor_rev, revactor_actor, revactor_timestamp, revactor_page) SELECT rev_id, 1 as actor, rev_timestamp, rev_page FROM revision WHERE rev_id NOT IN (SELECT revactor_rev FROM revision_actor_temp);
I was not concerned with correctly matching up the actors (and indeed think this data is lost), so replaced all of them with actor 1 (Administrator on my wiki). All of the page revisions are now accessible again. The missing actors were old now non-existent users that must have been lost in the 1.31 to 1.35 migration somewhere. 81.174.133.236 (talk) 11:02, 5 March 2021 (UTC)
I should add I needed to run php maintenance/update.php afterwards as well. 81.174.133.236 (talk) 11:00, 6 March 2021 (UTC)
thank you for this! the sql statement saved my wiki :-) Krabina (talk) 08:45, 3 September 2021 (UTC)
The SQL statement above also fixed issues on our wiki's. YOUR1 (talk) 08:31, 28 April 2022 (UTC)
The solution posted by 81.174.133.236 only works, however, on file pages the connection of the files to their pages is not reinstated. This means the files are not shown on the wiki. Reuploading with the same name is not possible either.
Note that I went from 1.25 to 1.31, to 1.32, to 1.33, 1.34 and now to 1.35. Needless to say that migrateActorswithNoId.php was useless to run. It detected the actors but did not clean them.
Going the rebuildImages.php path does not help, and neither the cleanupUsersWithNoId.php/migrateActors.php path.
I am clueless as to how to mitigate this. Looks to me like I may have run into this which I will still have to investigate. Edit: No, I do not think this is the issue. [[kgh]] (talk) 18:56, 14 March 2023 (UTC)
You may try to use this version of cleanupUsersWithNoId.php for MediaWiki 1.35 that fixes other corner-cases that the original script did not fix. Ciencia Al Poder (talk) 21:45, 16 March 2023 (UTC)
Thanks for the pointer to your patched version of the script "cleanupUsersWithNoId.php." You are a hero! In the case of the current wiki I worked on, it was a lifesaver. Let me share my experience:
Going directly from MW 1.31 to MW 1.35 and applying the script on MW 1.35 after running "update.php" did not work. The wiki was in a disastrous condition after the upgrade and is no longer usable. This outcome is expected since the script had nothing to work on in the MW 1.35 database.
Going from MW 1.31 to MW 1.32, then to MW 1.33, using the patched script you linked to on 1.33 after running "update.php," did work. For some reason, the wiki was still unusable in version MW 1.33; however, upgrading to MW 1.34 with "update.php" and from there to MW 1.35 with "update.php" mitigated the issues emerging on the wiki. As a result, the wiki is working fine as it appears to me (still pending user feedback). This way, I could prevent massive issues, including this one, from occurring if I used core software. I am still determining why the wiki is broken in version 1.33, but it is probably another story.
Directly going from MW 1.31 to MW 1.35 is not recommended for wikis, with issues surfacing after the upgrade. Do it branch by branch and apply the patched script to MW 1.33. Going from MW 1.31 via MW 1.32, MW 1.33, and MW 1.34 to MW 1.35 using the script "cleanupUsersWithNoId.php" provided by core will also not work. The result will be a disaster. On the way, "update.php" will complain for MW 1.33 to MW 1.35 that you need to run "cleanupUsersWithNoId.php," however, it will ultimately do nothing. [[kgh]] (talk) 10:16, 22 March 2023 (UTC)
Hi, I would like to share my experience here since I've been struggling with updating my MW from 1.31 onwards. Originally, I wanted to go from MW 1.31 to 1.32 and then 1.33 some time ago. As 1.33 broke my wiki due to the known actor nightmare (cleanupUsersWithNoId.php does not help), I decided to postpone the update.
Now, I gave everything another shot and followed the instructions posted by @Kghbln.
1) MW 1.31 to MW 1.32 using update.php
2) MW 1.32 to MW 1.33 using the enhanced version of cleanupUsersWithNoId.php by @Ciencia Al Poder first and only then executing update.php
3) MW 1.33 to MW 1.34 using update.php
4) MW 1.34 to MW 1.35 using update.php
Afterwards, my wiki was working fine on MW 1.35. As 1.39 is already out, I decided to continue the update process. To be on the safe side, I performed the update for each version separately (1.36 -> 1.37 -> 1.38 -> 1.39). Everything works fine now under PHP 7.4, my next step is going to push the PHP version to 8.1 but that's not related to this issue.
Btw, the query posted by 81.174.133.236 was not necessary as the enhanced script took care of everything.
Another issue I had facing this update was the removal of Manual:$wgDBmysql5. My database was still using latin1 collations and everything was working fine with $wgDBmysql5 = true; until this setting was removed in MW 1.33. Therefore, I had to adjust my DB accordingly to avoid encoding issues with special characters (some hints are given on the talk page of the setting, also see Project:Support desk/Flow/2022/02#h-Recommended_character_set_and_collation?-2022-02-23T17:06:00.000Z).
I really would like to thank @Ciencia Al Poder and @Kghbln and everyone involved for sharing the script and their paths for the update! 185.104.138.31 (talk) 08:59, 6 January 2024 (UTC)
No! I recommend wait to next stable version MW, because upgrade scipt must accept upgrade from PHP 7.x to 8.2 and some distributions as Debian for example, 8.0 and 8.1 skiped. But MW 1.42 with support PHP 8.2 not released. I know that is complication, but another choice isn't for now. Want (talk) 20:32, 12 July 2024 (UTC)
Say, I appear to have this issue in my wiki. However, I'm unable to use the above solution as my wiki has already been upgraded a few times (currently on 1.41), and I don't think I have access to the older versions anymore.
migrateActors.php --force shows 0 errors currently.
I also note that if I look at the history of a problematic page, I can see, for example, three users with edits. All appear in the list of users, and have other unaffected pages.
Any suggestions on how I might dig myself out of this? Medwards98020 (talk) 21:55, 8 July 2024 (UTC)
Did you try to run the above SQL statement? That worked for us. YOUR1 (talk) 06:30, 11 July 2024 (UTC)
Yes, it errors out as there is no "revision_actor_temp" Medwards98020 (talk) 13:18, 11 July 2024 (UTC)
There's no fix once your wiki database has been upgraded to later versions. The information of those old users is gone. Forever. There are only actor ids now. You'll have to manually select those actor ids and replace them by whatever other actor id that may be the best replacement for them. Ciencia Al Poder (talk) 22:03, 11 July 2024 (UTC)
Hmm, well, unfortunately I'm not even sure how to find the old actor IDs. Currently despite being able to see old revisions, I can't find the page in the database, but I may be not searching correctly. I'm certainly no expert on how the database is structured. Medwards98020 (talk) 23:00, 11 July 2024 (UTC)
OK, so I think I have a better idea how to fix things now.
I did some reading up on the mediawiki manual that describes the structure of the database. It now made sense that I didn't have a "revision_actor_temp", as that was only around v1.3.1 – v1.3.8, and I've already upgraded past that.
I have been able to identify a few problem pages just by coming across them browsing my wiki. I'm using phpMyAdmn tool at part of the cPanel set up for my instance. Selecting my database and searching for an exmaple page title let me find the page record, and in that, find the page ID number.
The, searching the revision field only (by selecting it and using the search tool), I was able to search for all revision entries for that page ID number. The very last/latest revision had an rev_actor ID of "0". When I had been looking at the list of revisions in the wiki, it shows them up to that point.
After backing up my database (in case I mess things up), I edited the rev_actor ID for that one revision from "0" to "1" (the ID of the main admin account). Now that revision appears with the name of the main admin account as having done the revision, and the page appears normally in the wiki.
Now I certainly can just have folks report when they run into one of these pages, and fix them as I come across them. However, my question is: Is there a legitimate use of the rev_actor ID being "0", or is that most assuredly an indication of a problem with the page? I could easily find/replace them, but I see about 2.5K entries that have a rev_actor ID of "0" currently. The wiki doesn't have anonymous edits, by the way - or at least I though so, I can historically see some edits just have IP addresses, as I look at entries that contain the null ID. Medwards98020 (talk) 04:45, 13 July 2024 (UTC)
Further searching (and some exporting and deduping search results) has given me a list of about 1000 pages/categories etc to check.
I'm finding in many cases there are pages that work, but have one or more rev_actor IDs in their edit history. These don't show in the history unless I modify it from "0", then I can see them. I'm assuming that aside from skipping steps in the view of the history, they would only be an issue if one were to attempt to revert to them (or possibly around them), but I'm probably going to fix them in any case. Medwards98020 (talk) 14:51, 13 July 2024 (UTC)
So, would doing the following work?
UPDATE `revision`
SET `rev_actor` = 1
WHERE `rev_actor` = 0 Medwards98020 (talk) 14:54, 14 July 2024 (UTC)
Yes, running that UPDATE would fix those page, but will attribute those edits to the actor "1", which may or may not be the same as the user id "1". The actor table defines which user account (or anon/external) relates to any given actor id. Ciencia Al Poder (talk) 09:48, 17 July 2024 (UTC)
So, running that does appear to have fixed the pages. I did create a specific user for the lost actors, and used that instead.
Also, there were some images that had a img_actor of "0" that also needed to be updated, and then have the update.php run, to get the images to work again. Medwards98020 (talk) 14:49, 25 July 2024 (UTC)

Upgraded: Fatal Error from User.php

Please Help -

Upgraded my wiki and I am getting the following error.


Fatal error: Uncaught Error: Call to a member function getIP() on null in /home/anthans9/public_html/w/includes/user/User.php:2153 Stack trace: #0 /home/anthans9/public_html/w/includes/user/UserOptionsManager.php(584): User->getName() #1 /home/anthans9/public_html/w/includes/user/UserOptionsManager.php(487): MediaWiki\User\UserOptionsManager->getCacheKey(Object(User)) #2 /home/anthans9/public_html/w/includes/user/UserOptionsManager.php(135): MediaWiki\User\UserOptionsManager->loadUserOptions(Object(User), 0) #3 /home/anthans9/public_html/w/includes/user/User.php(2665): MediaWiki\User\UserOptionsManager->getOption(Object(User), 'numberheadings', NULL, false) #4 /home/anthans9/public_html/w/includes/parser/ParserOptions.php(1260): User->getOption('numberheadings') #5 /home/anthans9/public_html/w/includes/parser/ParserOptions.php(1064): ParserOptions->initialiseFromUser(Object(User), Object(LanguageEn)) #6 /home/anthans9/public_html/w/includes/parser/ParserOptions.php(1076): ParserOptions->__construct(Object(User), Object(La in /home/anthans9/public_html/w/includes/user/User.php on line 2153 Ironhide1975 (talk) 02:45, 21 November 2020 (UTC)

@Ironhide1975 Upgraded from what exactly to what exactly? Malyacko (talk) 06:24, 21 November 2020 (UTC)
Upgraded from 1.26 to 1.35
I checked the server info and the TMP directory is specified, so not sure why this is displaying. Ironhide1975 (talk) 17:49, 21 November 2020 (UTC)
Okay I figured this out by installing a fresh instance of MediaWiki and seeing if it would work. Looks like some of the code in the old LocalSettings file caused the issue. I believe it's this code.
if( defined( 'MW_INSTALL_PATH' ) ) {
$IP = MW_INSTALL_PATH;
} else {
$IP = dirname( __FILE__ );
}
$path = array( $IP, "$IP/includes", "$IP/languages" );
set_include_path( implode( PATH_SEPARATOR, $path ) . PATH_SEPARATOR . get_include_path() );
require_once( "$IP/includes/DefaultSettings.php" );
if ( $wgCommandLineMode ) {
if ( isset( $_SERVER ) && array_key_exists( 'REQUEST_METHOD', $_SERVER ) ) {
die( "This script must be run from the command line\n" );
}
}
## Uncomment this to disable output compression
# $wgDisableOutputCompression = true; Ironhide1975 (talk) 20:24, 21 November 2020 (UTC)
Gavin 105.112.53.143 (talk) 23:23, 21 November 2020 (UTC)
You should remove all the above code as it's no longer relevant. See phab:T263911Ammarpad (talk) 03:08, 22 November 2020 (UTC)

Mediawiki purge requests not reaching varnish after upgrade to 1.35

I'm looking for help debugging why pages are no longer being purged by Varnish after upgrading to 1.35.

When I watch varnish for purge requests (varnishlog -g request -q 'ReqMethod eq "PURGE"') nothing is shown after I make an edit on the wiki.

Localsettings.php

$wgUseCdn = true;
$wgCdnServers = array();
$wgCdnServers[] = "127.0.0.1";


I went back to a working version 1.34 to compare log entries, from $wgDebugLogFile:

On 1.34 (working)

[squid] CdnCacheUpdate::purge: https://example.org/Sandbox https://example.org/index.php?title=Sandbox&action=history
MediaWiki::preOutputCommit: pre-send deferred updates completed

On 1.35 (not working)

[DeferredUpdates] DeferredUpdates::run: started CdnCacheUpdate #543 [squid] CdnCacheUpdate::purge: https://example.org/Sandbox https://example.org/index.php?title=Sandbox&action=history [http] PURGE: /Sandbox [http] PURGE: /index.php?title=Sandbox&action=history [http] Error fetching URL "/Sandbox": (curl error: 3) URL using bad/illegal format or missing URL [DeferredUpdates] DeferredUpdates::run: ended CdnCacheUpdate #543

T0lk (talk) 05:47, 21 November 2020 (UTC)

weird. Maybe something wrong with $wgServer, $wgCanonicalServer or $wgInternalServer settings? (Just a guess) Bawolff (talk) 08:56, 21 November 2020 (UTC)
Thanks for the reply. These are the settings:
$wgServer = "https://example.org";
$wgCanonicalServer and $wgInternalServer are not set. Varnish is used to direct http requests to https. I tried setting $wgForceHTTPS and changing some of the values of these variables but no effect. T0lk (talk) 09:10, 21 November 2020 (UTC)
I found the specific commit that broke purge on my system: https://github.com/wikimedia/mediawiki/commit/1260bf71da9c5ba8fb25fdcfbab30b128c30010a
If I apply the old version of CdnCacheUpdate.php as found here purge begins to work again. T0lk (talk) 15:31, 21 November 2020 (UTC)
I started with a brand new vm running ubuntu 20.04 and installed mediawiki and varnish as documented here, and purge is still failing silently. Here is the relevant log:
[http] PURGE: /index.php?title=Main_Page
[http] PURGE: /index.php?title=Main_Page&action=history
[error] [b3a84c0ac2047741173468fd] /index.php?title=Main_Page&action=submit   ErrorException from line 451 of /home/public_html/mediawiki/includes/libs/http/MultiHttpClient.php: PHP Warning: curl_multi_setopt(): CURLPIPE_HTTP1 is no longer supported
#0 [internal function]: MWExceptionHandler::handleError()
#1 /home/public_html/mediawiki/includes/libs/http/MultiHttpClient.php(451): curl_multi_setopt()
#2 /home/public_html/mediawiki/includes/libs/http/MultiHttpClient.php(225): MultiHttpClient->getCurlMulti()
#3 /home/public_html/mediawiki/includes/libs/http/MultiHttpClient.php(189): MultiHttpClient->runMultiCurl()
#4 /home/public_html/mediawiki/includes/deferred/CdnCacheUpdate.php(320): MultiHttpClient->runMulti()
#5 /home/public_html/mediawiki/includes/deferred/CdnCacheUpdate.php(147): CdnCacheUpdate::naivePurge()
#6 /home/public_html/mediawiki/includes/deferred/CdnCacheUpdate.php(84): CdnCacheUpdate::purge()
#7 /home/public_html/mediawiki/includes/deferred/DeferredUpdates.php(467): CdnCacheUpdate->doUpdate()
#8 /home/public_html/mediawiki/includes/deferred/DeferredUpdates.php(344): DeferredUpdates::attemptUpdate()
#9 /home/public_html/mediawiki/includes/deferred/DeferredUpdates.php(278): DeferredUpdates::run()
#10 /home/public_html/mediawiki/includes/deferred/DeferredUpdates.php(190): DeferredUpdates::handleUpdateQueue()
#11 /home/public_html/mediawiki/includes/MediaWiki.php(683): DeferredUpdates::doUpdates()
#12 /home/public_html/mediawiki/includes/MediaWiki.php(648): MediaWiki::preOutputCommit()
#13 /home/public_html/mediawiki/includes/MediaWiki.php(956): MediaWiki->doPreOutputCommit()
#14 /home/public_html/mediawiki/includes/MediaWiki.php(543): MediaWiki->main()
#15 /home/public_html/mediawiki/index.php(53): MediaWiki->run()
#16 /home/public_html/mediawiki/index.php(46): wfIndexMain()
#17 {main}
[http] Error fetching URL "/index.php?title=Main_Page": (curl error: 3) URL using bad/illegal format or missing URL
The previous version of CdnCacheUpdate.php I linked above still works as expected. T0lk (talk) 13:15, 9 December 2020 (UTC)
Issue is tracked in https://phabricator.wikimedia.org/T264735 Prod (talk) 10:08, 1 February 2021 (UTC)
I was still having the same problem after trying to upgrade to 1.39, so if anyone finds this the solution ended up being adding the port to the following settings:
$wgInternalServer = "http://example.com";
$wgUseCdn = true;
$wgCdnServers = array();
$wgCdnServers[] = "ip address:port";
Credit to Pspviwki here.
Note, this unexpectedly causes 127.0.0.1 to show up as the IP address for anonymous users in recentchanges, so I had to also set:
$wgCdnServersNoPurge = [];
$wgCdnServersNoPurge[] = "127.0.0.1/32";
Not sure if that's totally correct, but it worked. T0lk (talk) 03:36, 11 January 2023 (UTC)

Module:TNT

I cannot get Module:TNT running properly.

Product Version
MediaWiki 1.35.0
PHP 7.4.12 (cgi-fcgi)
MariaDB 10.2.36-MariaDB
ICU 50.2
Lua 5.1.5
Name Expected Actual
test_doc Lua error -- Module:TNT:124: mw.text.jsonEncode: Cannot use type 'boolean' as a table key
test_link
test_msg / msg31 text message a and b text message b and a
test_msg_errors
test_msg_format
test_msg_format_in_language

is there any suggestion?

regards, AstiGallien AstiGallien (talk) 17:12, 21 November 2020 (UTC)

@AstiGallien What is Module:TNT and where to find it? Malyacko (talk) 17:32, 21 November 2020 (UTC)
.... Module:TNT - wRoE (mulatschak.com) ... i from mediawiki, part of the multilingual templates and modules project
copied over,
added following to LocalSettings.php
wfLoadExtension( 'JsonConfig' );
$wgJsonConfigEnableLuaSupport = true;
// https://www.mediawiki.org/wiki/Extension:JsonConfig#Configuration
$wgJsonConfigModels['Tabular.JsonConfig'] = 'JsonConfig\JCTabularContent';
$wgJsonConfigs['Tabular.JsonConfig'] = array(
'namespace' => 486, // === NS_DATA, but the constant is not defined yet
'nsName' => 'Data',
'isLocal' => false,
'pattern' => '/.\.tab$/'
);
$wgJsonConfigs['Tabular.JsonConfig']['remote'] = 'https://commons.wikimedia.org/w/api.php';
... AstiGallien (talk) 17:50, 21 November 2020 (UTC)

hi, i would like to be in contact about a new wiki about 'anarchism in belgium'

hi, i would like to talk about linking our wiki'www.anarchief.org' on 'anarchism in belgium' (multilanguage mainly dutch and french but some german and english too) to the wikipedia ring/network/project. might need some technical advice and training depending on requirements.

email welcome on info@anarchief.org

thanks

JJ. 81.244.196.8 (talk) 19:19, 21 November 2020 (UTC)

For Wikipedia topics please ask in forums on a Wikipedia. This is mediawiki.org. Thanks! Malyacko (talk) 07:26, 22 November 2020 (UTC)

MediaWiki and .htaccess

I read somewhere that .htaccess slows Apache down, and elsewhere that with good caching it doesn’t make much difference. I’d like to try it out to see, and put everything into the Apache config file. But is it advised with Mediawiki? I see that some of the standard directories have .htaccess files already so, at one level anyway, it must be assumed that .htaccess is enabled. Thanks. Jonathan3 (talk) 20:11, 21 November 2020 (UTC)

the .htacess in mediawiki add some paranoia (like disabling access to the maintenance directory in case of unknown security issues. The most important one is probably disabling access to deleted images directory).
You can add all of these things to you apache config if you want and then disable .htaccess. Honestly you can also probably not worry about it to no ill effect (except that deleted images might be visible if you know exact url).
That said, the performance gain is probably going to be pretty small Bawolff (talk) 21:23, 21 November 2020 (UTC)
Thanks for this. I'll try it soon (ish) and report back! Jonathan3 (talk) 21:08, 23 November 2020 (UTC)

my page is not loading

I am trying to log in to my page by writing localhost/mediawiki(while having apache and mysql started)but the page is not loading Marymar99 (talk) 22:10, 21 November 2020 (UTC)

is it white screen, or is it a cannot connect to host error?
For the former, enable php error reporting, see How to debug, for the latter, verify that apache is really running and configured to use port 80 (use netstat commend to verify that it really is). Also check apache error log. Bawolff (talk) 00:02, 22 November 2020 (UTC)
e screen is white and its tremblingh 2.84.71.39 (talk) 13:54, 24 November 2020 (UTC)

Long loading time

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 with a Mediawiki site. The version is 1.34.3. After the setup of the system the loadingtime increased to 30-50 seconds. I dont see any error and have no idee to debug. How can I find the problem? Opacim (talk) 00:21, 22 November 2020 (UTC)

do you have caching setup. Sometimes that sort of long loading can be caused by something wrong with localization cache.
What is $wgMainCacheType (and any other cache related variables that aren't the default) set to. If you are using CACHE_ACCEL for anything, what is apcu.shm_size in your php.ini set to.
I would also reccomend setting $wgCacheDirectory to something writable by the webserver (but not served to the internet) which will help with localization cache (but its still important to make sure other object caching is working properly) Bawolff (talk) 01:04, 22 November 2020 (UTC)
Thank you, it works well with $wgMainCacheType = CACHE_ACCEL; Opacim (talk) 01:27, 22 November 2020 (UTC)
The discussion above is closed. Please do not modify it. No further edits should be made to this discussion.

Upgrade to 1.35 Class 'NamespaceInfo' not found

I'm getting the following fatal error after upgrading to 1.35


Fatal error: Uncaught Error: Class 'NamespaceInfo' not found in /var/lib/mediawiki/includes/Setup.php:450 Stack trace: #0 /var/lib/mediawiki/includes/WebStart.php(89): require_once() #1 /var/lib/mediawiki/index.php(44): require('/var/lib/mediaw...') #2 {main} thrown in /var/lib/mediawiki/includes/Setup.php on line 450


I'm running PHP 7.4.3, MySql 8.0.22-0, Ubuntu 20.04 23.233.26.51 (talk) 02:09, 22 November 2020 (UTC)

Image Thumbnail Displays File Name instead of thumbnail

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


Hello!


I have a wiki called Eurowiki which is used for RP purposes. As I started with the configuration, I encountered some errors like a lua error on the scribunto extension and a problem on the image thumbnail which displays the title of the file rather than the image itself.


Here's a link to the wiki I made and the image I thumbnail with an error.


Eurowiki (unaux.com)

File:Reitzmag National Flag.png - Eurowiki (unaux.com)


I am using the latest version of mediawiki and gd library via PHP 7.x. ImageMagick isn't a choice for the web host that I use.


I hope anyone can help me with this as I've been configuring this for days and found no solution. HM-GAAMontreaL (talk) 06:15, 22 November 2020 (UTC)

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

Create passwords with php

Hi. I would like to create account with php with a corresponding page. Therefore I try to use the crypt-function from /inclueds/password, but I do not get the same string like in the database. Is there any simple solution for creating the password-string with php? Opacim (talk) 11:48, 22 November 2020 (UTC)

can you use createAndPromote.php instead (Maybe in a shell script with edit.php) Bawolff (talk) 20:01, 22 November 2020 (UTC)

Problem uploading files.

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


When trying to upload a file to my wiki I get the following error:


Could not open lock file for "mwstore://local-backend/local-public/7/78/file.png".


I turned on $wgShowDebug and then it told me:


[LockManager] Cannot create directory '/w/images/lockdir'.


But I have that permission allowed on that directory:


drwxrwxrwx  2 www-data www-data    4096 Nov 22 08:20 images


And the same for the /home/website/tmp/ directory.


These are my settings on my LocalSettings.php:


$wgFileExtensions = [ 'png', 'gif', 'jpg', 'jpeg', 'webp' , 'pdf', 'mp3'];

$wgUploadDirectory  = "$wgResourceBasePath/images";

$wgUploadPath = "$wgResourceBasePath/images";

$wgTmpDirectory = "/home/website/tmp/";

$wgImageMagickTempDir ="/home/website/tmp/";

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

$wgAllowCopyUploads = true;

wfLoadExtension( 'UploadWizard' );

$wgApiFrameOptions = 'SAMEORIGIN';

$wgEnableUploads = true;

$wgUseImageMagick = true;

$wgImageMagickConvertCommand = "/usr/bin/convert";


Also on php.ini I have:


file_uploads = On

upload_tmp_dir = /home/website/tmp Sslw (talk) 14:10, 22 November 2020 (UTC)

Update: Ciencia-Al-Poder told me on discord to change these configs and that solved it:
$wgUploadDirectory  = "$IP/images";
$wgUploadPath = "$IP/images"; Sslw (talk) 15:08, 22 November 2020 (UTC)
Note: $wgUploadPath sould be set to "{$wgScriptPath}/images". Only $wgUploadDirectory must use $IP! Ciencia Al Poder (talk) 17:16, 22 November 2020 (UTC)
The discussion above is closed. Please do not modify it. No further edits should be made to this discussion.

2 Images displayed side by side using "frame" tag

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 like to display 2 images side by side packed left. Without "frame" (and caption) this works perfectly using:

[[image1.jpg|alt=pic1]] [[image2.jpg|alt=pic2]]

however when I add the "frame" tag in order to add a caption:

[[image1.jpg|frame|Caption 1|alt=pic1]] [[image2.jpg|frame|Caption 2|alt=pic2]]

the 2 images are right justified and stacked on top of each other.

I have tried various combinations of "left" and "right" tags etc. but cant' get the nice alignment as possible when not including "frame"

Any help appreciated.

Thanks

Dennis Mrwassen (talk) 15:06, 22 November 2020 (UTC)

Although it doesn't seem a complex problem to solve at first glance, it is in reality. I suggest you to use a gallery instead. Ciencia Al Poder (talk) 15:34, 23 November 2020 (UTC)
Although I am no expert, I can imagine that it looks easier than it is (recalling the countless hours I have spent in the past trying to figure it how to float images properly etc.)
In any case, thanks for that suggestion - I will play around with gallery. Mrwassen (talk) 20:56, 23 November 2020 (UTC)
Thanks you so much for the suggestion, I shied away from using <gallery> initially as I thought it would introduce more complexity, but after trying it out I realize that it on the contrary makes things much simpler and more predictable.
Thanks again
Dennis Mrwassen (talk) 21:09, 23 November 2020 (UTC)
The discussion above is closed. Please do not modify it. No further edits should be made to this discussion.

Is there a way to to add an alt text and/or caption on the wiki logo without too much coding? Mrwassen (talk) 15:53, 22 November 2020 (UTC)

you would need to change the skin, so not super easy. Bawolff (talk) 19:59, 22 November 2020 (UTC)
I wonder whether you could use jQuery in MediaWiki:Common.js to change the content of the relevant div.
<div id="p-logo" role="banner">
    <a title="Visit the main page" class="mw-wiki-logo" href="/wiki/MediaWiki"></a>
</div>
$("#p-logo").html('Whatever html you want here');
Jonathan3 (talk) 23:22, 22 November 2020 (UTC)
That will only change the tooltip (Title text). Tooltip it's not the same as alt-text. – Ammarpad (talk) 05:48, 23 November 2020 (UTC)
"That will only change the tooltip (Title text). Tooltip it's not the same as alt-text."
If you literally added $("#p-logo").html('Whatever html you want here'); to Common.js it would replace the whole image (as the image is created by the mw-wiki-logo class of the a tag) with the text 'Whatever html you want here'. It wouldn't just change the title text. I expect you could replace 'Whatever html you want here' with an img tag with alt text, inside an a tag. The original image would probably flash up, so you might want to change the mw-wiki-logo class so it doesn't show an image. It was just an idea to get him on the right track. Jonathan3 (talk) 20:54, 23 November 2020 (UTC)
You are correct, and I did mean "title" and not "alt" as I want to define the "hover text". Mrwassen (talk) 06:59, 23 November 2020 (UTC)
That's fairly easy. Just add $('.mw-wiki-logo').prop('title', 'Your new hover text'); to MediaWiki:Common.js. Jonathan3 (talk) 20:57, 23 November 2020 (UTC)
oh, if you want to just change the title text, there is probably a mediawiki namespace page you could just edit Bawolff (talk) 19:16, 23 November 2020 (UTC)
Thanks both. Jonathan: I wasn't aware that there was a js equivalent to Common.css. My goal was to not change any of the core code, so (assuming ot works) using this approach would achieve that right?
I will try playing around and report back with results.
Thanks
Dennis Mrwassen (talk) 05:10, 23 November 2020 (UTC)
OK so using the js idea, I now have the below script in common.js which selects a random image and adds a corresponding alt/title text as well as a custom URL (in my case linking to a wiki article).
The one (very minor) annoyance is that when the page is refreshed, the logo "blinks" briefly as the html gets "injected" - again this is very minor, but is there away of applying something like "display:none" to avoid this?
Thanks again for the idea!
Dennis
//replace the p-logo div's html with the random image html
$("#p-logo").html(randImage())
//function to select a random image with it's alt/title text and URL
function randImage() {
min = 1;
max = 3;
pic = parseInt(Math.random() * (max - min + 1) + min);
switch(pic) {
  case 1:
    url = '/wiki/index.php?title=Ruth_Anna_Maria_Wrage_-_I2';
    desc = 'Ruth Anne Maria Wrage'
    img = '/wiki/logos/FamilyTree.jpg'
    break;
  case 2:
    url = '/wiki/index.php?title=My_Childhood%27s_Picture_Book';
    desc = 'My Childhoods Picture Book';
    img = '/wiki/logos/Dagmarsgade.jpg'
    break;
  case 3:
    url = '/wiki/index.php?title=Birte_Vind_Brorsen_-_I15';
    desc = 'Birte Vind Brorsen';
    img = '/wiki/logos/Farup_Kirke.jpg'
  default:
    // code block
}
html = '<a href="' + url + '"><img src="' + img + '" alt="' + desc + '" title="' + desc + '"></a>';
return html;
} Mrwassen (talk) 07:07, 23 November 2020 (UTC)
"The one (very minor) annoyance is that when the page is refreshed, the logo "blinks" briefly as the html gets "injected" - again this is very minor, but is there away of applying something like "display:none" to avoid this?"
You could add .mw-wiki-logo { background-image: none } to MediaWiki:Common.css. Jonathan3 (talk) 21:06, 23 November 2020 (UTC)

pretty urls in mediawiki

is there a simple way to prettify urls for namespaces in the following way?

www.mediawiki.org/wiki/Talk:MediaWiki

to

www.mediawiki.org/wiki/Talk/MediaWiki

i.e. turn the Talk: to path format Talk/


I understand the articles Talk Module MediaWiki User etc and subpages might be unusable with the setup. 148.252.128.233 (talk) 18:40, 22 November 2020 (UTC)

How would this not collide with subpages? You can create both "Talk/MediaWiki" and "Talk:MediaWiki", those are two different pages. Malyacko (talk) 06:36, 23 November 2020 (UTC)
it would, in the current setup, as i mention above.
I'm wondering if just rendering unusable the article Talk and mapping the namespace as I suggest is at all possible. 148.252.128.233 (talk) 09:54, 23 November 2020 (UTC)
an alternative to avoid the issue Malyacko mentions would be to map
www.mediawiki.org/wiki/Talk:MediaWiki
to
www.mediawiki.org/Talk/MediaWiki
to avoid that collision. if that is possible at all? 148.252.128.233 (talk) 09:57, 23 November 2020 (UTC)
Nothing easy, maybe something complicated with rewrite rules might work. Bawolff (talk) 19:15, 23 November 2020 (UTC)
This is interesting, but I’m curious why you want to do this :-) Jonathan3 (talk) 23:40, 23 November 2020 (UTC)
Thanks
aesthetics, i really don't like the colon in the url 148.252.128.233 (talk) 23:56, 24 November 2020 (UTC)
You can disable sub pages so that’s part of it anyway.
You could ask about the necessary redirects on StackExchange or similar. Jonathan3 (talk) 15:19, 25 November 2020 (UTC)

Issues after updating wiki to latest version

Hi everyone.

I just updated my MediaWiki from a really old version, pre 2009... and I’m having a bunch of issues. I did also have ipbwiki installed way back but I’m not sure if that’s the issue.


here is the coding issue


wfLoadSkin( 'CologneBlue' ); wfLoadSkin( 'Modern' ); wfLoadSkin( 'MonoBook' ); wfLoadSkin( 'Vector' );

Fatal error: Uncaught Error: Call to a member function getIP() on null in /home/narthern/public_html/Narthwiki/includes/user/User.php:2153 Stack trace: #0 /home/narthern/public_html/Narthwiki/includes/session/SessionBackend.php(742): User->getName() #1 /home/narthern/public_html/Narthwiki/includes/session/SessionBackend.php(626): MediaWiki\Session\SessionBackend->save() #2 [internal function]: MediaWiki\Session\SessionBackend->MediaWiki\Session\{closure}() #3 /home/narthern/public_html/Narthwiki/vendor/wikimedia/scoped-callback/src/ScopedCallback.php(96): call_user_func_array(Object(Closure), Array) #4 /home/narthern/public_html/Narthwiki/vendor/wikimedia/scoped-callback/src/ScopedCallback.php(56): Wikimedia\ScopedCallback->__destruct() #5 /home/narthern/public_html/Narthwiki/includes/session/SessionManager.php(890): Wikimedia\ScopedCallback::consume(NULL) #6 /home/narthern/public_html/Narthwiki/includes/session/SessionManager.php(334): MediaWiki\Session\SessionManager->getSessionFromInfo(Object(MediaWiki\Session\SessionI in /home/narthern/public_html/Narthwiki/includes/user/User.php on line 2153

Fatal error: Uncaught Error: Call to a member function getIP() on null in /home/narthern/public_html/Narthwiki/includes/user/User.php:2153 Stack trace: #0 /home/narthern/public_html/Narthwiki/includes/session/SessionBackend.php(742): User->getName() #1 /home/narthern/public_html/Narthwiki/includes/session/SessionBackend.php(225): MediaWiki\Session\SessionBackend->save(true) #2 /home/narthern/public_html/Narthwiki/includes/session/SessionManager.php(478): MediaWiki\Session\SessionBackend->shutdown() #3 [internal function]: MediaWiki\Session\SessionManager->shutdown() #4 {main} thrown in /home/narthern/public_html/Narthwiki/includes/user/User.php on line 2153 Lordquake666 (talk) 01:25, 23 November 2020 (UTC)

My php is 7.3 and MySQL is 5.7.32 Lordquake666 (talk) 02:05, 23 November 2020 (UTC)
In your LocalSettings.php, do you have something like this? If you do, please try deleting it, or delete the entire LocalSettings.php and re-install to generate fresh one ( you should keep backup of your settings though). – Ammarpad (talk) 03:40, 23 November 2020 (UTC)
Thank you for that Ammarpad. I finally got it working. The only question I have now is how do I make my old user into an admin again? as I have no access on it anymore. Lordquake666 (talk) 08:49, 23 November 2020 (UTC)
You can run CreateAndPromote.php Ciencia Al Poder (talk) 15:28, 23 November 2020 (UTC)

How to reset username and password

Hi there,


Could anyone help me with resetting the password for my account? I've tried 'forgotten password' but never get the reset email through?


Thanks in advance. 194.81.238.91 (talk) 10:30, 23 November 2020 (UTC)

Check your spam folder. Also, be sure you have an account on the wiki (this wiki? another wiki?) usually by seeing if a user page exists or it has contributions. Other wikis usually have nothing related to MediaWiki.org, apart from the software being used. Ciencia Al Poder (talk) 21:39, 23 November 2020 (UTC)

$wgLogo not displaying after setting up domain redirect

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 set up my wiki in a folder of my primary domain name and everything looked fine including the $wgLogo. However, I wanted the wiki to have a different domain, so I set up a permanent redirect from an add-on domain name to mask the URL. The URLs look perfect now, and everything else looks fine, but for some reason my $wgLogo disappeared and I can't get it to come back no matter what coding tricks I try.


I've tried putting in the full URL. Nothing. Tried putting the image in different folders. Nothing. I've tried messing with the $wgResourceBasePath and $wgScriptPath and $wgServer settings. The logo just won't come back. Any ideas? 2A00:23C6:3B81:CF01:AC80:6491:5F7D:C27E (talk) 10:35, 23 November 2020 (UTC)

Actually, I've removed the wildcard option from my redirect and now the logo is appearing. Hopefully that is a permanent solution. (Obviously I figure this out moments after posting here.....) 2A00:23C6:3B81:CF01:AC80:6491:5F7D:C27E (talk) 10:41, 23 November 2020 (UTC)
The discussion above is closed. Please do not modify it. No further edits should be made to this discussion.

Having difficulties with templates

Hey guys, I'm having an issue with a really old template I made way back in 2008. I can't figure out how to fix it after updating my wiki. Can someone have a look at what I've done wrong and see if you have any solutions?

check the template below

Thank you so much!

http://nartherael.com/Narthwiki/index.php?title=Template:Narthtemp Lordquake666 (talk) 12:27, 23 November 2020 (UTC)

what's wrong with it? Bawolff (talk) 19:13, 23 November 2020 (UTC)
Whoops I actually linked the wrong template sorry.
Here’s the correct one. I figured out that I had not allowed certain functions previously, so that’s fixed but now I have another error. Mind you I did copy this off a working wiki, which was a lower version of sql and php than I have
https://nartherael.com/Narthwiki/index.php?title=Nartherael_(world) Lordquake666 (talk) 00:07, 14 December 2020 (UTC)

Is the example wrong for 1.35 on $wgPasswordPolicy 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.


On the help page https://www.mediawiki.org/wiki/Manual:$wgPasswordPolicy the example to set minimum length for a password is

$wgPasswordPolicy['policies']['default']['MinimalPasswordLength'] = 10;

But the PHP code for >=1.35 has min length as an array

'MinimalPasswordLength' => [ 'value' => 1, 'suggestChangeOnLogin' => true ], // 1.33+


So should it be the following for 1.35?

$wgPasswordPolicy['policies']['default']['MinimalPasswordLength']['value'] = 10; Bluedreamer1 (talk) 13:39, 23 November 2020 (UTC)

i think 1.35 is back compatible with the old version, but yes you are probably right. Bawolff (talk) 19:12, 23 November 2020 (UTC)
The discussion above is closed. Please do not modify it. No further edits should be made to this discussion.

Changing Fonts Wiki-Wide

Can someone suggest a 'good' way to do this? I am using the Chameleon skin and want to swap out fonts with Montesrrat for headings and Roboto for body text. I can probably do this via Common.css or Gadget:*.css, but I'm not sure how to begin other than hard coding in the skin itself. I'd love to inject my customization via resourceloader, but will settle for anything I guess. ~z929669 <figure-inline></figure-inline> Talk 14:33, 23 November 2020 (UTC)

What about this? Customization Jonathan3 (talk) 20:51, 24 November 2020 (UTC)
Thanks, but even though the heading mentions 'fonts', there is nothing specific. Apparently, there is a variable, but changing to just any font won't work without specifying the resource. This is where I need assistance. I also need to specify heading and body fonts using two distinct sources. ~z929669 Talk 20:56, 24 November 2020 (UTC)
Chameleon is a big project I think so I’m sure asking on the skin page (or GitHub or a mailing list or whatever) will lead to results. Jonathan3 (talk) 15:18, 25 November 2020 (UTC)

SimpleSAMLphp w/ AWS SSO

I'm trying to set up and configure SimpleSAMLphp on a MediaWiki installation to connect with and authenticate via the AWS SSO service. I'm totally new to setting up SSO, so am completely stumbling and haven't been able to track down much of any documentation on how to do this. The end goal is to move the entire MediaWiki site behind authentication. SimpleSAMLphp and PluggableAuth are installed and a rough configuration is in place. The LocalSettings.php file currently contains the following:

# PluggableAuth

wfLoadExtension( 'PluggableAuth' );

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

$wgPluggableAuth_EnableAutoLogin = true;

$wgPluggableAuth_EnableLocalLogin = true;

$wgPluggableAuth_EnableLocalProperties = false;

$wgPluggableAuth_ButtonLabel = 'Sign On with SSO';

$wgPluggableAuth_ExtraLoginFields = [];

#SimpleSAML

wfLoadExtension( 'SimpleSAMLphp' );

$wgSimpleSAMLphp_InstallDir = '/bitnami/mediawiki/extensions/SimpleSAMLphp';

$wgSimpleSAMLphp_AuthSourceId = 'https://portal.sso.us-west-2.amazonaws.com/saml/assertion/<<redacted>>';

$wgSimpleSAMLphp_RealNameAttribute = 'RealNameAttribute';

$wgSimpleSAMLphp_EmailAttribute ='EmailAttribute';

$wgSimpleSAMLphp_UsernameAttribute = 'UsernameAttribute';


When we go to the MediaWiki, we're presented with the login screen and an option to use SSO. Once the username and password are provided and we click on the "Sign On with SSO" button, we're given a blank http://<<site>>/wiki/Special:PluggableAuthLogin page.


What are we missing? Lumen1118 (talk) 21:23, 23 November 2020 (UTC)

make sure to enable php error reporting (see How to debug) Bawolff (talk) 21:33, 23 November 2020 (UTC)
Right... that gave us enough error data to at least get a missing prerequisite installed. Thanks! Now digging into configuration to make sure we've gotten that right. Lumen1118 (talk) 21:52, 23 November 2020 (UTC)
Okay, got quite a bit further. We now need to exchange metadata with the IdP, but only MediaWiki is running on this server so we have no access to the /simplesaml web portal. Do we need to install Apache and configure all of that, or can this be done through MediaWiki since that's the only place we're using SimpleSAMLphp? Lumen1118 (talk) 22:21, 23 November 2020 (UTC)
Got it all working after a few rounds of banging my head. Thanks for your help. Lumen1118 (talk) 01:11, 29 November 2020 (UTC)

Update LocalSettings.php

I noticed a recent comment by Ammarpad in "Issues after updating wiki to latest version" linking to phab:T263911, which ends with a comment stating that the following is not needed any more:

if( defined( 'MW_INSTALL_PATH' ) ) {
    $IP = MW_INSTALL_PATH;
} else {
    $IP = dirname( __FILE__ );
}

$path = array( $IP, "$IP/includes", "$IP/languages" );
set_include_path( implode( PATH_SEPARATOR, $path ) . PATH_SEPARATOR . get_include_path() );

require_once( "$IP/includes/DefaultSettings.php" );

if ( $wgCommandLineMode ) {
    if ( isset( $_SERVER ) && array_key_exists( 'REQUEST_METHOD', $_SERVER ) ) {
        die( "This script must be run from the command line\n" );
    }
}

I still have all this (though no known problems arising). Is there an easy way to get a fresh LocalSettings.php for adding my site settings to again? I've not cleaned it out since installing version 1.5 or 1.6... Jonathan3 (talk) 22:34, 23 November 2020 (UTC)

You usually do that by deleting the existing LocalSettings.php before upgrading (or preferably by moving it to somewhere else so that you can restore any custom settings you might have later). The installer looks for it at its default location and if it's there, it won't be regenerated. – Ammarpad (talk) 04:32, 24 November 2020 (UTC)
I see now. I think I followed the instructions each time which now say:
After extracting the tarball, you should copy or move some files and folders from the old installation directory to the new one:
  • LocalSettings.php, which contains your old configuration settings.
...
Run the update script
Next time I upgrade should I run upgrade.php without my old LocalSettings.php file, then merge the old and newly-created files into one file containing the current "boilerplate" stuff plus the necessary settings (database credentials, skins, extensions etc) from the old file? Jonathan3 (talk) 10:59, 24 November 2020 (UTC)
Yes – Ammarpad (talk) 02:18, 26 November 2020 (UTC)
Thank you very much :-)
Thinking about it, which is preferable? Downloading the files then:

What is MediaWiki?

How does MediaWiki work? I saw Wikipedia already, but MediaWiki doesn't provide any information about it. 2A01:73C0:503:B1B:0:0:3CBA:8556 (talk) 23:58, 23 November 2020 (UTC)
The front page of this very website links to Manual:What is MediaWiki? Malyacko (talk) 09:47, 24 November 2020 (UTC)
what specificly do you want to know?
see also Manual:MediaWiki architecture Bawolff (talk) 02:22, 24 November 2020 (UTC)

Can I use a dot in the name of my wiki?

Can I use a simple dot . in the name of my wiki $wgSitename? Can this cause any problems or not? Арскригициониец (talk) 03:38, 24 November 2020 (UTC)

should be fine.
./ would cause problems though. Bawolff (talk) 06:44, 24 November 2020 (UTC)

How big wiki can I make with maximum DB size 4GB?

My current hosting has 4GB size limit for DataBases. How big wiki can I make on it? Just about, how many articles? Аргскригициониец (talk) 04:53, 24 November 2020 (UTC)

a lot?
Hard to say precisely because it depends on a lot of factors. (like how many revisions, if db is used for any sort of caching, which if any compression methods are used, how big the articles are, are the big ones)
Be sure to set $wgCompressRevisions =true; Bawolff (talk) 06:43, 24 November 2020 (UTC)
What about Manual:$wgMainCacheType? I set it to CACHE_ANYTHING, does it requiere a big DB size? In fact, I don't know what it does exactly, I just enable it to keep my CAPTCHA from Extension:ConfirmEdit working on login page. Аргскригициониец (talk) 11:53, 25 November 2020 (UTC)
I don't know how a mysqldump backup correlates size-wise to the database size, but my .sql file is c.250MB and according to Special:Statistics the wiki has c.4000 content pages and c.9000 total pages. I didn't know about $wgCompressRevisions so it's still false. Jonathan3 (talk) 20:47, 24 November 2020 (UTC)
@Johnathan3: If you want a more accurate measure you can do:
SELECT table_schema AS "Database", SUM(data_length + index_length) / 1024 / 1024 AS "Size (MB)" FROM information_schema.TABLES GROUP BY table_schema
in your DB. However, keep in mind, that if objectcache table is in used, probably a lot of it is that, which is all ephemeral data which can be deleted. Bawolff (talk) 05:48, 25 November 2020 (UTC)

Flow oversight

How do I oversight to IP adress on flow talk?

My wiki's logged in user edited IP adress. Gomdoli (talk) 07:26, 24 November 2020 (UTC)

? Gomdoli (talk) 09:19, 24 November 2020 (UTC)
are you asking for this wiki (or some other Wikimedia wiki) or are you asking for your own wiki? Bawolff (talk) 09:34, 24 November 2020 (UTC)
I'm sorry. I'm asking my wiki. Gomdoli (talk) 09:49, 24 November 2020 (UTC)
Thanks, Gomdoli (talk) 22:49, 24 November 2020 (UTC)
Is your user in a group with flow-suppress and flow-delete rights? Bawolff (talk) 05:44, 25 November 2020 (UTC)
Yes, I'm wiki's oversight. [4] Gomdoli (talk) 06:05, 25 November 2020 (UTC)
Hello? Gomdoli (talk) 05:27, 27 November 2020 (UTC)

Kategorien

Links auf übergeordnete Kategorien werden teilweise nicht ausgeführt. Was kann ich tun? 84.177.144.165 (talk) 09:25, 24 November 2020 (UTC)

Erklärung:
Wenn ich einem Lemma am Schluß eine Kategorie zuordne, wird dies einmal ausgeführt, einmal nicht. 84.177.144.165 (talk) 09:41, 24 November 2020 (UTC)
Any example link? Which MediaWiki version? What is a Lemma? Malyacko (talk) 09:46, 24 November 2020 (UTC)
Kategorie:Example - Version 1.30.0 - Lemma=article 84.177.144.165 (talk) 09:57, 24 November 2020 (UTC)
You are using an ancient version full of security issues. Please upgrade to a supported version for your own safety. Malyacko (talk) 10:51, 24 November 2020 (UTC)
What is a Parser? Maybe a Parser-Problem? 84.177.144.165 (talk) 10:13, 24 November 2020 (UTC)
It's still unclear to me what to "execute" here and who to execute something. Please provide a list of steps, as a list, then what you expect to happen, and what happens instead. Thanks! Malyacko (talk) 10:52, 24 November 2020 (UTC)
...(Bearbeitet)Original wiederherstellen 84.177.144.165 (talk) 13:05, 24 November 2020 (UTC)
See my previous comment: Please provide a list of steps, as a list, then what you expect to happen, and what happens instead. Malyacko (talk) 17:00, 24 November 2020 (UTC)

Numbers not showing in English

Hi numbers not showing in English on sindhi wikipedia history of any page check and help us for showing numbers in english Kaleem Bhatti (talk) 11:36, 24 November 2020 (UTC)

@Kaleem Bhatti See phab:T268203 instead. Malyacko (talk) 11:42, 24 November 2020 (UTC)
yes but what's solution of this Kaleem Bhatti (talk) 11:43, 24 November 2020 (UTC)
Answering all the questions there Malyacko (talk) 14:15, 24 November 2020 (UTC)
which questions? Kaleem Bhatti (talk) 14:55, 24 November 2020 (UTC)
All the requested info in phab:T268203. Malyacko (talk) 17:00, 24 November 2020 (UTC)

How to add an email field to a ContactPage contact form?

I have a principally all core 1.34.2 MediaWiki website with one extension (Extension:ContactPage)

I went through ContactPage documentation here and through HTMLForm documentation here and didn't find any mention for an email field.

Just a side note - email fields are well accepted in Drupal and WordPress so I am a bit surprised not to find them in MediaWiki; perhaps I miss something.

How to add an email field to a ContactPage contact form? 49.230.16.152 (talk) 12:23, 24 November 2020 (UTC)

There's already an email field by default. 'RequireDetails' => true, will make it mandatory. – Ammarpad (talk) 16:04, 24 November 2020 (UTC)
@Ammarpad
I vaguely recalled I had an email field and didn't understand where it disappeared to, now I understand:
If 'AdditionalFields' => array() is not empty, than it stops appearing.
Because, indeed, my additional fields array isn't empty and shouldn't be empty my question still stands. 182.232.129.245 (talk) 03:29, 26 November 2020 (UTC)
I don't understand what you mean. Whether 'AdditionalFields' is empty or not, there's an email field. In fact you cannot remove it without fiddling with the extension code, maybe that's what you did. MediaWiki:contactpage-fromaddress is the label message for the email field. – Ammarpad (talk) 03:39, 26 November 2020 (UTC)
@Ammarpad
Actually it did happen to me - when my array wasn't empty the email field in the form was gone (!) but now I understand that it happened because some buggy code inside the array; when I debugged the code the problem was gone and the email field was back on the form !
The bug/problem was, if I recall correctly the lack of 'class' => 'HTMLTextField', and perhaps also the lack of a comma, in two similar fields. 182.232.129.245 (talk) 04:45, 26 November 2020 (UTC)
@Ammarpad it might have actually been a CSS problem --- as I am adding fields I am starting to have "jumbeled" CSS, for example, only the notification "your email is needed to get a response" (translated from Hebrew) appears but not the email field (although the email field appears in HTML source) and also, the checkbox box for "send me a copy of my message (translated from Hebrew) goes on top of that very message.
I think that the CSS of the form isn't modular. 182.232.129.245 (talk) 05:11, 26 November 2020 (UTC)
@Ammarpad please delete my last message above about CSS, because it is misleading:
The CSS of the form is indeed modular; it's I that caused harm with a CSS change I made long ago and I now fixed (I mistakenly made the email field to have display:none by either canceling its display solely or the display of a class it shares). 182.232.129.245 (talk) 05:23, 26 November 2020 (UTC)

Is there an equivalent to Special:AllPages with no redirects?

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.


or is there a way to hide them on the page? I want to see all non-redirect pages in the main namespace. YousufSSyed (talk) 12:31, 24 November 2020 (UTC)

There's an option to hide redirects, but it's disabled if the wiki is using $wgMiserMode. If you're on your on wiki, you should be able to see it. On Wikimedia wikis it's not possible since miser mode is enabled. – Ammarpad (talk) 15:47, 24 November 2020 (UTC)
Where's the option to hide redirects? Also is there a way to get it working even with Miser Mode on, I keep it on improve performance. YousufSSyed (talk) 08:24, 25 November 2020 (UTC)
If you disable the miser mode you'll see it. No, you can't have both. – Ammarpad (talk) 08:35, 25 November 2020 (UTC)
The discussion above is closed. Please do not modify it. No further edits should be made to this discussion.

What is the difference between label and contact-label in ContactForm?

MediaWiki 1.34.2 with Extension:ContactPage

I have read the following sentence in HTMLForm documentation here which maybe I don't understand:

Label for a form input/button. Overridden by hlabel-message.

What is the difference between label and contact-label in ContactForm?

Isn't declaring a label makes contact-label redundant? 49.230.16.152 (talk) 13:01, 24 November 2020 (UTC)

Where did you see "contact-label"? It's neither in the master branch of ContactPage nor in HTMLForm. – Ammarpad (talk) 15:39, 24 November 2020 (UTC)
I am sorry,
I confused
Where contact-label I should have been:
'label-message' => 'emailmessage', 182.232.169.61 (talk) 16:11, 25 November 2020 (UTC)
@Ammarpad 182.232.169.61 (talk) 16:11, 25 November 2020 (UTC)
The difference is already in their names. 'label-message' takes a MediaWiki message key or object. So when you have 'label-message' => 'emailmessage', the label will be fetched via standard message mechanism at MediaWiki:emailmessage. If you use 'label' => 'emailmessage', emailmessage will be output as is. – Ammarpad (talk) 02:26, 26 November 2020 (UTC)
The difference wasn't clear for me from their names :)
But after reading your explanation I understand that 'label-message' => 'emailmessage', is a command to automatically create some default label by the nature of MediaWiki per field type (and if data to do so is available) and 'label' => 'emailmessage' can utilize this possible behavior or instruct a custom label. 182.232.129.245 (talk) 04:30, 26 November 2020 (UTC)

TOCright

I had a problem with the template TOCright.

When I ad __notoc__ the template is deletet. But when I ad {{TOCright}} nothing happens.

Normaly the table of contents should appear on the right, but it is still on the left. 88.71.80.181 (talk) 14:04, 24 November 2020 (UTC)

Have you actually created a {{TOCright}} template?. __notoc__ is not a template, it's a behavior switch magic word understood by the parser, so it will work by default without you doing anything, but not so for templates. – Ammarpad (talk) 15:29, 24 November 2020 (UTC)

download from bitnami

If i download mediawiki from bitnami is the same? 2A02:587:AE14:A900:FD80:326B:5EFC:18F5 (talk) 15:56, 24 November 2020 (UTC)

We are not "Bitnami", so you may have to ask "Bitnami" what they do... Malyacko (talk) 16:59, 24 November 2020 (UTC)
Packages are maintained by people who are not us. They often contain mild differences, and are usually somewhat out of date versions. We generally don't know what they do. As a general rule, we recommend using the official version - you're more on your own if something doesn't work right with the bitnami version
(As an exception though, the debian package is known to be high quality) Bawolff (talk) 05:41, 25 November 2020 (UTC)
"more on your own" from our perspective of course. In many respects bitnami packages might be easier for you in some other aspects like setup etc.
This is always the tradeoff between different distributions that focusing on ease of use vs expertise. —TheDJ (Not WMF) (talkcontribs) 10:14, 25 November 2020 (UTC)

Cannot login to Active directory in windows

After upgrade from 1.23 to 1.30 and PHP to 7.3.19 all worked the media wiki updated the My sql db.


site is up looks good but now cannot login.


Host is server 2016 with IIS and PHP


Do not know why or where to look can anyone help? JohnAintree (talk) 16:37, 24 November 2020 (UTC)

Why would you go from an old unsupported insecure version (1.23) to an old unsupported insecure version (1.30) instead of using a supported and maintained version? Also, why can you not log in? Malyacko (talk) 16:59, 24 November 2020 (UTC)
Perhaps I am jumping to far ahead - we are on 1.23 and php 5.4.23 and MySQL 56 - I want to go to MW 1.35 PHP 7.4 and mysqL56 - can I do this in one go. I have tried about 10 times now I can get to MW1.30 PHP 7.1.329 - I'm missing something - do I need upgrade in steps or go straight.
We are on Windows 2016 and IIS - I am no php expert - its driving me mad - - been at this a week - JohnAintree (talk) 12:12, 25 November 2020 (UTC)
I think he's asking why he can't log in - I suppose you're asking what error messages he sees :-)
Might it be relevant that MW 1.30 isn't listed as compatible with PHP 7.3 in Compatibility? Also the supported MySQL version changed in MW 1.30. Jonathan3 (talk) 20:37, 24 November 2020 (UTC)
Following Manual:How_to_debug#Logging might help in uncovering a more detailed reason behind an error. —TheDJ (Not WMF) (talkcontribs) 10:09, 25 November 2020 (UTC)
Perhaps I am jumping to far ahead - we are on 1.23 and php 5.4.23 and MySQL 56 - I want to go to MW 1.35 PHP 7.4 and mysqL56 - can I do this in one go. I have tried about 10 times now I can get to MW1.30 PHP 7.1.329 - I'm missing something - do I need upgrade in steps or go straight.
We are on Windows 2016 and IIS - I am no php expert - its driving me mad - - been at this a week - JohnAintree (talk) 11:35, 25 November 2020 (UTC)
I think the general answer is to do it in one go, having backed up and checked version compatibility, but don’t sue me if it goes wrong :-) Jonathan3 (talk) 15:22, 25 November 2020 (UTC)
Back it up slap the new version over the top - and then change PHP in IIS to new version ? 208.127.198.49 (talk) 16:04, 25 November 2020 (UTC)
go Here and you'll see that php 7.4 to 7.4.2 is not supported maybe that will help 204.113.253.88 (talk) 17:00, 25 November 2020 (UTC)

Is there a way to made text appear in an article but can't be found with a search?

Like, if I have the phrase "Lorem ipsum" in an article, can I make it so that if I search "Lorem ipsum", the article and the phrase in that article don't show up in the search results? YousufSSyed (talk) 08:26, 25 November 2020 (UTC)

I don't think this is supported natively by MediaWiki, but if you're using CirrusSearch, Help:CirrusSearch#Boost-templates might be helpful. – Ammarpad (talk) 08:39, 25 November 2020 (UTC)
The first question would be.. search results of what ? MediaWiki's internal search, or some sort of external search ? —TheDJ (Not WMF) (talkcontribs) 10:08, 25 November 2020 (UTC)
I suppose subclass SearchMysql to write your own normalization method. Bawolff (talk) 10:45, 25 November 2020 (UTC)

Upgrade steps from really old version

I've been trying to upgrade this for a week - we moved our old wiki from 2008 to 2016 server now I need upgrade php for security reasons after an audit -


I have looked at the compatibility list in great detail and found every time I wen t to 1.35 from 1.23 it failed - I managed as below to go to a middle step -


Perhaps I am jumping to far ahead - we are on 1.23 and PHP 5.4.23 and MySQL 56 - I want to go to MW 1.35 PHP 7.4 and mysqL56 - can I do this in one go. I have tried about 10 times now I can get to MW1.30 PHP 7.1.329 - I'm missing something - do I need upgrade in steps or go straight.

We are on Windows 2016 and IIS - I am no php expert - its driving me mad - - been at this a week - JohnAintree (talk) 11:38, 25 November 2020 (UTC)

If there is an error then please tell us the error message. Malyacko (talk) 15:18, 25 November 2020 (UTC)
There is no error on HTTP -500 and a blank page - the roro I think is in PHP as I get to the you must upgrade PHP page then I do the I get nothing - JohnAintree (talk) 16:06, 25 November 2020 (UTC)
Go Here and you'll see that Php 7.4 to 7.4.2 is not supported
Maybe that will help 204.113.253.88 (talk) 17:02, 25 November 2020 (UTC)
Sorry, I don't mean to spam, I accidently posted it twice 204.113.253.88 (talk) 17:06, 25 November 2020 (UTC)
enable php error reporting or check your php error log.
See How to debug Bawolff (talk) 20:29, 25 November 2020 (UTC)
finally I can see why the issue is - JohnAintree (talk) 10:09, 26 November 2020 (UTC)
Compatibility#PHP I looked atthis and it says 7.4 in blue ?
Compatibility#PHP JohnAintree (talk) 09:47, 26 November 2020 (UTC)
OK I am copying 1.35 over the top of 1.23 -
=MediaWiki 1.35 internal error=
MediaWiki 1.35 requires at least PHP version 7.3.19; you are using PHP 5.4.30.
==Supported PHP versions==
Please consider upgrading your copy of PHP. PHP versions less than v7.2.0 are no longer supported by the PHP Group and will not receive security or bugfix updates.
If for some reason you are unable to upgrade your PHP version, you will need to download an older version of MediaWiki from our website. See our compatibility page for details of which versions are compatible with prior versions of PHP.
Ok now I change to
7.3.19
=The website cannot display the page=
HTTP 500
===Most likely causes:===
  • The website is under maintenance.
  • The website has a programming error.
==What you can try:==

JohnAintree (talk) 09:58, 26 November 2020 (UTC)

Fatal error: Uncaught Error: Class 'AuthPlugin' not found in C:\inetpub\wwwroot\itkb\extensions\LdapAuthentication\LdapAuthentication.php:131 Stack trace: #0 C:\inetpub\wwwroot\itkb\LocalSettings.php(140): require_once() #1 C:\inetpub\wwwroot\itkb\includes\Setup.php(143): require_once('C:\\inetpub\\wwwr...') #2 C:\inetpub\wwwroot\itkb\includes\WebStart.php(89): require_once('C:\\inetpub\\wwwr...') #3 C:\inetpub\wwwroot\itkb\index.php(44): require('C:\\inetpub\\wwwr...') #4 {main} thrown in C:\inetpub\wwwroot\itkb\extensions\LdapAuthentication\LdapAuthentication.php on line 131 JohnAintree (talk) 10:10, 26 November 2020 (UTC)
I backed up localsettings.php now can progress
but fails here
An error occurred:
Error 1091: Can't DROP 'img_user_timestamp'; check that column/key exists (localhost)
Function: Wikimedia\Rdbms\Database::sourceFile( C:\inetpub\wwwroot\itkb/maintenance/archives/patch-drop-image-user-fields.sql )
Query: ALTER TABLE `image`
DROP INDEX img_user_timestamp,
DROP INDEX img_usertext_timestamp,
DROP COLUMN img_user,
DROP COLUMN img_user_text,
ALTER COLUMN img_actor DROP DEFAULT JohnAintree (talk) 10:37, 26 November 2020 (UTC)
This is indeed painful - and difficult to install - JohnAintree (talk) 10:38, 26 November 2020 (UTC)
Uncaught Error: Class 'AuthPlugin'
[26-Nov-2020 18:54:19 Europe/Minsk] PHP Fatal error:  Uncaught Error: Class 'AuthPlugin' not found in C:\inetpub\wwwroot\itkb\extensions\LdapAuthentication\LdapAuthentication.php:131
Stack trace:
#0 C:\inetpub\wwwroot\itkb\LocalSettings.php(4): require_once()
#1 C:\inetpub\wwwroot\itkb\includes\Setup.php(143): require_once('C:\\inetpub\\wwwr...')
#2 C:\inetpub\wwwroot\itkb\includes\WebStart.php(89): require_once('C:\\inetpub\\wwwr...')
#3 C:\inetpub\wwwroot\itkb\index.php(44): require('C:\\inetpub\\wwwr...')
#4 {main}
  thrown in C:\inetpub\wwwroot\itkb\extensions\LdapAuthentication\LdapAuthentication.php on line 131 JohnAintree (talk) 15:59, 26 November 2020 (UTC)
LdapAuthentication doesnt support your version of mediawiki. You need to use LdapAuthentication2. Bawolff (talk) 20:48, 26 November 2020 (UTC)
[27-Nov-2020 12:56:04 Europe/Minsk] PHP Parse error:  syntax error, unexpected '=>' (T_DOUBLE_ARROW) in C:\inetpub\wwwroot\itkb\LocalSettings.php on line 187 JohnAintree (talk) 09:59, 27 November 2020 (UTC)
Totally give up - will stay on version 1.23 - for ever JohnAintree (talk) 16:45, 26 November 2020 (UTC)
Thanks everyone for the help I have been at this for 2 weeks and frankly I have had enough on e problem leads to the next - the wiki functions on version 1.23 and is only hosted internally - there has been problem after problem upgrading the version and PHP at the same time it seems impossible.
I'd like to thank you all for the help -
I am a systems engineer not a PHP coder -
I feel I have come to the end of the line o this and can spare no more time. JohnAintree (talk) 13:11, 27 November 2020 (UTC)

Special:Badtitle/NS108

After upgrading from 1.34 to 1.35 I have several pages that won't display anymore.

I get a "There is currently no text in this page." message.

When I navigate to the Category for those pages I see they are all prepended with

"Special:Badtitle/NS108"

Any suggestions on how to fix this? 172.83.47.216 (talk) 14:48, 25 November 2020 (UTC)

do you have a namespace with id number 108 defined? You probably should. Bawolff (talk) 20:28, 25 November 2020 (UTC)
Extension_default_namespaces#Semantic_MediaWiki suggests Semantic MediaWiki Concept's namespace uses the id. If you didn't create the namespace manually (for instance with $wgExtraNamespaces), that probably means you used to have SM and now you uninstalled it. You've to redefine the namespace, and then either move the pages and then remove the namespace/or extension that provides it again or continue using the namespace name. In short deleting namespace is not yet straightforward. – Ammarpad (talk) 02:02, 26 November 2020 (UTC)

is it possible to limit who can edit and not?

A project edited only by the elders of each specific tribe

Hi, Let me start by saying that I have profound respect for Wikipedia and your work here.

I saw a few projects dedicated to improve the knowledge on native peoples. However, I wonder if it would be possible to use wikimedia for a project on my website (as I'm told wikipedia would not host it without it being available for edit by everyone) about each native tribe edited only by the elders of this nation? No need for much references but more like the way the tribe would like it to be told.

Although not a native myself, I have a few contacts and talking with them it seems they would agree that a Wikipedia project would be the best place.

Also, there should be the option for them to keep it private at least until they agree to make it public. Is that an option? Thanks Yannick Neveux Founder and partner of Antinanco & TropicForest 501(c)3 Non-profits yannickneveux@hotmail.com 108.50.198.245 (talk) 16:25, 25 November 2020 (UTC)

Hi Yannick, welcome to the support desk for the MediaWiki software. For policy questions about a Wikipedia, please ask in a forum on that Wikipedia. (As far as I know, Wikipedia allows anyone to edit and improve articles and there is no 'ownership' of articles.) Thanks! Malyacko (talk) 17:53, 25 November 2020 (UTC)
hi, i think you might be mixing up the terms wikipedia, wikimedia, and mediawiki (i know, its confusing).
You can use the mediawiki software to make your own project that uses the same software as wikipedia. If you do that, you can have any rules you want. You would need your own webhost or use something like https://miraheze.org Bawolff (talk) 20:27, 25 November 2020 (UTC)
Ah. See also Differences between Wikipedia, Wikimedia, MediaWiki, and wiki in that case. Malyacko (talk) 21:55, 25 November 2020 (UTC)

Mozilla Thunderbird Calendar

We have lost our tasks and events this week on our server calendar. The calendar is still available, but everything is gone. How do we get it back? Kdaline (talk) 21:00, 25 November 2020 (UTC)

@Kdaline Welcome to the support desk for the MediaWiki software (see the side bar). How is your question related to MediaWiki? Malyacko (talk) 21:53, 25 November 2020 (UTC)

error of Legacy vector skin due to update on Japan Uncyclopedia

hello.I'm member of Japan Uncyclopedia. After to due to Mediawiki update,on our website,the Legacy Vector Skin is causing display error. We found that the errors are caused when some conditions which are ”The user is logged in“, “The user has set the skin to "vector" and turned on the "use legacy vector" setting“,“4 or more table of contents have been on one page“,”There is no "<ref> <reference />"on one page“. so,would you like to make MediaWiki version 1.35 compatible with legacy vector skin? 118.238.248.231 (talk) 00:06, 26 November 2020 (UTC)

you need to talk to whomever runs uncyclopedia japan. Bawolff (talk) 00:20, 26 November 2020 (UTC)

How to put "Subject" under additional fields (instead of above them)?

MediaWiki 1.34.2 with Extension:ContactPage

My principally all default contact form as an automatically-formed "Subject" field; this field defaultly appears above additional fields (of the AdditionalFields array) but I want it to defaultly appear under them.

How to put "Subject" under additional fields (instead of above them)?

I need a backend solution (if I change it frontendly with JavaScript than the order of the fields in the form's input will mismatch the order of the fields in the form's output). 182.232.129.245 (talk) 05:28, 26 November 2020 (UTC)

as = has* 182.232.129.245 (talk) 13:46, 26 November 2020 (UTC)
I think that the only solution would be to make ContactPage contact forms totally modular but I don't think this solution would be available in the coming 10 years (I am not a PHP programmer and doesn't have even 7% of the knowledge required to do so), yet if I am wrong and there is another focal solution I would gladly try to implement it, I guess. 182.232.129.245 (talk) 13:48, 26 November 2020 (UTC)
not sure its applicable but maybe the section field would help.
Also, the order of a form should not affect its output. Output is bassd on field name not order. Bawolff (talk) 20:44, 26 November 2020 (UTC)
@Bawolff
Please kindly elaborate a bit more about the section field, what did you mean to suggest? 49.230.73.252 (talk) 04:32, 27 November 2020 (UTC)
There's a field named 'section' that takes a value of 'section/subsection'. I've never used it and don't know how it works, but I know it exists Bawolff (talk) 20:22, 6 December 2020 (UTC)
Output is bassd on field name not order
Given that current release ContactPage doesn't allow fully modular forms, I don't understand how this is relevant in that particular case - in great plea, elaborate more.
Respectfully (!!!), 49.230.73.252 (talk) 04:34, 27 November 2020 (UTC)
I don't know what a modular form is.
You made the statement: "if I change it frontendly with JavaScript than the order of the fields in the form's input will mismatch the order of the fields in the form's output)" which doesn't make sense, because forms aren't ordered (Or at least not in the way you are implying). Bawolff (talk) 20:23, 6 December 2020 (UTC)
@Bawolff
By modular form I mean to a form which doesn't come with any preexisting subset of fields; the user can thus toggle and untoggle (let along sort) which fields should be, or not, in the form; thus, no prexisting email and/or subject fields will be in the form unless the user puts these there (for the good and for the bad).
About the statement; I think it makes sense because for example, if you change say the first form field to be the last with JavaScript and a user comes and submits that form -- the "last" field will still be first in the output ---- as the backend behavior wasn't changed. 182.232.193.236 (talk) 05:47, 10 December 2020 (UTC)
you can make such a form but you would have to write your own extension.
The backend doesn't look at the order of the fields in the output, it looks at the field names. As far as i know. Bawolff (talk) 22:29, 13 December 2020 (UTC)

CirrusSearch

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 using CirrusSearch. I just wanted to confirm, on a public wiki do you agree there should be no confidential information stored in elasticsearch?

And to confirm I am assuming elasticsearch is only used for Cirrussearch.


i.e. no logs are stored with, say, emails, passwords, or anything that could be a security risk?

Thank you 85.255.237.14 (talk) 12:10, 26 November 2020 (UTC)

depends if someone writes sensitive info on your wiki.
Also be careful-public access to your elastic search cluster can lead to severe security issues (unrelated to sensitive data). Bawolff (talk) 20:40, 26 November 2020 (UTC)
Understood. Thank you Bawolff 85.255.237.14 (talk) 20:45, 26 November 2020 (UTC)
The discussion above is closed. Please do not modify it. No further edits should be made to this discussion.

How to make RSS page for each article of my Wiki?

I have a private wiki about books, and I want to make some posts in other community board for each articles in my wiki.

In order to upload posts there, I need url like "https://'mywiki.com'/rss"

I thought I could deal with it with RSS feed extensions. There are some extensions about rss feed, so I tried some but nothing happened and don't know what to do even after extension installed( like Extension:RSS).

What extensions should I use in this case? 59.23.180.41 (talk) 14:06, 26 November 2020 (UTC)

Extension:FeaturedFeeds might be a good choice, but the documentation leaves something to be desired.
If you want a specific url you might need an apache rewrite rule.
See also Manual:$wgOverrideSiteFeed Bawolff (talk) 20:39, 26 November 2020 (UTC)

AuthPlugin

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.


[26-Nov-2020 18:54:19 Europe/Minsk] PHP Fatal error:  Uncaught Error: Class 'AuthPlugin' not found in C:\inetpub\wwwroot\itkb\extensions\LdapAuthentication\LdapAuthentication.php:131

Stack trace:

#0 C:\inetpub\wwwroot\itkb\LocalSettings.php(4): require_once()

#1 C:\inetpub\wwwroot\itkb\includes\Setup.php(143): require_once('C:\\inetpub\\wwwr...')

#2 C:\inetpub\wwwroot\itkb\includes\WebStart.php(89): require_once('C:\\inetpub\\wwwr...')

#3 C:\inetpub\wwwroot\itkb\index.php(44): require('C:\\inetpub\\wwwr...')

#4 {main}

  thrown in C:\inetpub\wwwroot\itkb\extensions\LdapAuthentication\LdapAuthentication.php on line 131 JohnAintree (talk) 15:59, 26 November 2020 (UTC)

Totally give up - will stay on version 1.23 - for ever JohnAintree (talk) 16:46, 26 November 2020 (UTC)
@JohnAintree In that case, feel free to get hacked, given that ancient unsupported 1.23 has lots of unfixed security issues... Upgrading would make more sense. Malyacko (talk) 23:43, 26 November 2020 (UTC)

PHP Fatal error: Uncaught Error: Class 'AuthPlugin' not found

This is pretty self-explanatory error message that probably can't be said better.
What version of LdapAuthentication are you using? and what version of core are you trying to use it with? The extension page Extension:LDAP_Authentication has multiple warnings which, collectively, are just short of "don't use this extension". Your problems will probably be solved by just using the recommended alternative Extension:LDAPAuthentication2Ammarpad (talk) 18:35, 26 November 2020 (UTC)
Fatal error: Uncaught ExtensionDependencyError: LDAPAuthentication2 requires LDAPProvider to be installed. LDAPAuthentication2 requires PluggableAuth to be installed. in C:\inetpub\wwwroot\itkb\includes\registration\ExtensionRegistry.php:405 Stack trace: #0 C:\inetpub\wwwroot\itkb\includes\registration\ExtensionRegistry.php(229): ExtensionRegistry->readFromQueue(Array) #1 C:\inetpub\wwwroot\itkb\includes\Setup.php(161): ExtensionRegistry->loadFromQueue() #2 C:\inetpub\wwwroot\itkb\includes\WebStart.php(89): require_once('C:\\inetpub\\wwwr...') #3 C:\inetpub\wwwroot\itkb\index.php(44): require('C:\\inetpub\\wwwr...') #4 {main} thrown in C:\inetpub\wwwroot\itkb\includes\registration\ExtensionRegistry.php on line 405 JohnAintree (talk) 10:00, 27 November 2020 (UTC)
@JohnAintree If you post an error message which says "LDAPAuthentication2 requires PluggableAuth to be installed", then the obvious question is why you have not installed the PluggableAuth extension yet.
Could you please provide context, instead of just dropping some output lines? Thanks! :) Malyacko (talk) 11:20, 27 November 2020 (UTC)
Warning: Declaration of GadgetResourceLoaderModule::getDependencies() should be compatible with ResourceLoaderModule::getDependencies(?ResourceLoaderContext $context = NULL) in C:\inetpub\wwwroot\itkb\extensions\Gadgets\Gadgets_body.php on line 420
[a01bb946bc56796ce801f4d3] 2020-11-27 10:27:02: Fatal exception of type "Error" JohnAintree (talk) 10:27, 27 November 2020 (UTC)
This shows the problems of LDAP and PluggableAuth extensions have been resolved and we now move to another extension, Gadgets. You've to upgrade Gadgets to the corresponding core version that you're upgrading to. You should also do this for all the extensions that you've, to avoid repeating the same thing here again over and over. – Ammarpad (talk) 12:34, 27 November 2020 (UTC)
@JohnAintree This lacks the stacktrace of the exception. See Manual:How to debug Malyacko (talk) 11:20, 27 November 2020 (UTC)
Thanks everyone for the help I have been at this for 2 weeks and frankly I have had enough on e problem leads to the next - the wiki functions on version 1.23 and is only hosted internally - there has been problem after problem upgrading the version and PHP at the same time it seems impossible.
I'd like to thank you all for the help -
I am a systems engineer not a PHP coder -
I feel I have come to the end of the line o this and can spare no more time. JohnAintree (talk) 13:11, 27 November 2020 (UTC)
The discussion above is closed. Please do not modify it. No further edits should be made to this discussion.

Parse error: syntax error, unexpected '$wgDiff3' (T_VARIABLE)

Parse error: syntax error, unexpected '$wgDiff3' (T_VARIABLE) in /srv/disk9/3666173/mywebsite.fr/LocalSettings.php on line 116 2A04:CEC0:10D5:4D09:B067:1E28:3FF2:482B (talk) 17:52, 27 November 2020 (UTC)

The uncommented line before $wgDiff3 is missing the semicolon at the end.
$​​wgShowExceptionDetails = true
# Path to the GNU diff3 utility. Used for conflict resolution.
$wgDiff3 = "/usr/bin/diff3";
Ciencia Al Poder (talk) 22:25, 27 November 2020 (UTC)

how do i scan my card for bitcoin

how do i scan my card for bitcoin 2601:145:C300:4B00:C847:7C5B:1C01:7960 (talk) 18:42, 27 November 2020 (UTC)

What does this have to do with MediaWiki (see the side bar)? What card? Malyacko (talk) 19:09, 27 November 2020 (UTC)

Project namespace

On most wikis, the project namespace is just an alias. For example, on Wikipedia, the project namespace is Wikipedia. On Wiktionary, it is Wiktionary. On Wikibooks, it is Wikibooks. MediaWiki is a project that stands out in this area, because it just uses the namespace Project. I kind of know why, but I am asking to make sure. To my knowledge, the namespace is just "Project," because logically, MediaWiki should have "MediaWiki:" as the namespace prefix, but MediaWiki: is a restricted namespace for system messages. So Project: has to be used instead, is that the reason why? AJ1m3,zsd. (talk) 18:57, 27 November 2020 (UTC)

Project: is the "canonical" name of that namespace. Like for example, all English namespace names can be used on any wiki in other languages and they will redirect to the localized namespace name.
I'm not sure but you're probably right that it remains in its canonical form here to prevent it a clash on the MediaWiki: namespace.
Note also that the project namespace is often the same as the SITENAME, but it doesn't need to be the same Ciencia Al Poder (talk) 22:24, 27 November 2020 (UTC)
yes, we use Project: for $wgMetaNamespace due to conflict with MediaWiki Bawolff (talk) 07:18, 28 November 2020 (UTC)

How to make a Cirrussearch query from within php

Hi, I am trying to build some functionality into an extension and I need to get the results of a query (cirrussearch query), which I know how to do in js using the API.


For this extension, I need to do that in php, so I'm planning on just doing new ApiQuery() etc.

Is that the best way, or am I missing something obvious?


Thank you 148.252.132.42 (talk) 00:00, 28 November 2020 (UTC)

See Extension:CirrusSearch#APIAmmarpad (talk) 02:27, 28 November 2020 (UTC)
Thank you very much Ammarpad.
The CirrusSearch API is also http api, my question was more related to the fact I'm calling it from within PHP.
i.e. using the quiery api from a browser that makes sense (or the cirrussearch api for that matter), but I'm wondering if from within PHP, is the best practice way also to use the ApiQuery API directly?
I'm just asking because I have grepped the code and I see generally no instances of apis being used within the php codebase, with the exception of tests of course.
Thank you 148.252.132.42 (talk) 09:53, 28 November 2020 (UTC)

Downloads Zero Byte File When Trying to Install

I've installed lots of different versions of MediaWiki, but this is my first time installing 1.35 and my first time installing a wiki on a2hosting. I've verified .php files work just fine, and I'm running version 7.3.24 which meets the PHP requirement for 1.35. After uploading all the files and entering the directory at the browser, it doesn't show the normal "LocalSettings.php not found." page. Instead the browser just downloads a zero byte file called "download".

What am I doing wrong? 72.130.209.247 (talk) 03:50, 28 November 2020 (UTC)

check php error logs for errors. Bawolff (talk) 07:16, 28 November 2020 (UTC)

Linking to an image from another language's MediaWiki

I'm trying to translate a Wikipedia article and the photo I want to link to only exists on another language's WikiMedia. Is there a way to include this image in an infobox (which only takes in a file name and does not use the file API) without reuploading the photo to the English MediaWiki? Nolandanley (talk) 04:35, 28 November 2020 (UTC)

From English Wikipedia you can only hotlink images hosted on Commons. If the image license allows, you should first transfer the file to Commons, then you can use it in the original project and enwiki. Otherwise you've to upload it locally to English Wikipedia before you can use it. – Ammarpad (talk) 04:57, 28 November 2020 (UTC)

How to set the short url

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 bought a domain http://www.gwki.ga on freenom. And I added nameserver so connected my wiki server. (Installed urlshortener too)

So I need to set .htaccess file, but I don't know how to.

Help me please. Gomdoli (talk) 07:16, 28 November 2020 (UTC)

+ and LocalSettings.php settings please. Gomdoli (talk) 07:16, 28 November 2020 (UTC)
Try this for .htaccess: Manual:Short_URL/Apache. Jonathan3 (talk) 00:42, 29 November 2020 (UTC)
The discussion above is closed. Please do not modify it. No further edits should be made to this discussion.

Page protection

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.


What extension does the English Wikipedia use to add all of the additional page protection options/permissions? Carolina2k22 (talk) 10:44, 28 November 2020 (UTC)

None that I'm aware of. See Manual:$wgRestrictionLevels Ciencia Al Poder (talk) 14:37, 28 November 2020 (UTC)
Thank you! Carolina2k22 (talk) 23:13, 28 November 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 label translations of ContactPage?

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.


Principally all core, Hebrew-installed MediaWiki 1.34.2 with Extension:ContactPage.

My ContactPage contact form comes with two default fields - "Your email address" field and "subject" field.

The labels of these two fields are automatically translated to Hebrew as "כתובת הדוא"ל שלך" and "נושא".

I desire to change the translations to different translations.

I can change the translations with JavaScript but I desire a backend (most preferably directly from the MediaWiki CMS) solution.

How to change the label translations of ContactPage? 49.230.196.190 (talk) 14:27, 28 November 2020 (UTC)

See Localisation Ciencia Al Poder (talk) 14:35, 28 November 2020 (UTC)
This is quite a large page with most data not associated with the very specific task I ought to do; furthermore, Extension:ContactPage is not mentioned there;
I desire a user-interface way to control the translations, is that even exist? (changing from files with text editor is not a good solution for me because the new translations will get automatically changed in upgrades). 49.230.196.190 (talk) 04:34, 29 November 2020 (UTC)
The page I linked is very relevant, and you can find good indications in the first 10% content of that page.
I don't want to spend time installing the extension or analyzing its code to find what message I have to edit to change the translation, and you don't want to read a page with an overview and instructions about how to change translations of any MediaWiki message (and extensions). However, that's not my problem. Good luck waiting for a step by step response. Ciencia Al Poder (talk) 21:40, 29 November 2020 (UTC)
Well, I took another read on the linked page and again I found it very large and not very accessible; there was some nice general information in the first three chapters but not a direct explanation on how to solve my particular problem.
Anyway, to change the translations from a user interface, what I had to do was to go to "Special pages" (translating from Hebrew), then to "System messages" (translating from Hebrew), I then filtered the list to show 5,000 entries and by CTRL+F, I searched for the desired strings and changed them by creating a new webpage for them after clicking their Red link and writing the new string in it and saving it; after saving the new webpage (containing a new string); the two strings appeared in the relevant entry (the old translation on top with Yellow background and the new translation on bottom with Green background). 49.230.19.188 (talk) 06:36, 2 December 2020 (UTC)
After I did the described action I checked my form and saw the change. 49.230.19.188 (talk) 06:37, 2 December 2020 (UTC)
The section "Finding messages" should also be useful here... Ciencia Al Poder (talk) 08:31, 2 December 2020 (UTC)
The discussion above is closed. Please do not modify it. No further edits should be made to this discussion.

MediaWiki:Sidebar toggle icon issue

I upgraded MediaWiki 1.27.3 to 1.35 on a test system and have been struggling to figure out why the toggle icons no longer showed and why the Category Tree no longer showed in the sidebar


I regressed the Vector Skin to that provided in MediaWiki 1.34 and both now work.


Some incompatible change was likely made in the Vector skin version between 1.34 and 1.35. Posting this here in case it might help someone else in their upgrade and in the hope that the MediaWiki developers can investigate why the toggle icons no longer display in the sidebar using the Vector skin and why the categorytree-portlet is not displayed after upgrading to MW 1.35 Ken Roy (talk) 14:56, 28 November 2020 (UTC)

i think collapsible sidebars got removed because people thought it gave the impression that the site loaded slowly.
Dont know about cattree, that should still work afaik Bawolff (talk) 22:15, 28 November 2020 (UTC)
Thanks Bawolff
The MediaWiki:Sidebar still collapses or expands but no icons are displayed
I tried all the entries I found on getting the CategoryTree to display in the sidebar as a portlet but none of them worked until I renamed the Vector skin folder and installed the Vector skin from MediaWiki 1.34 Ken Roy (talk) 22:46, 28 November 2020 (UTC)
I forgot to mention that I am using Extension:CollapsibleVector to collapse the sidebar
As far as I know the Vector skin provided the toggle icons, It that is not the case, why would reverting to the 1.34 Vector skin resolve my problem Ken Roy (talk) 00:05, 29 November 2020 (UTC)
by toggle do you mean the icon to collapse/uncollapse or something else? Bawolff (talk) 01:20, 29 November 2020 (UTC)
Yes, that is what I mean Ken Roy (talk) 03:00, 29 November 2020 (UTC)
I added an entry in the Talk page for the Extension:CollapsibleVector see
https://www.mediawiki.org/w/index.php?title=Extension%20talk%3ACollapsibleVector#h-Icons_to_expand_and_collapse_do_not_show_in_MW_1.35-2020-12-08T22%3A05%3A00.000Z
because one should not have to regress to a previous version of the Vector skin to get the icons for collapse/uncollapse to show Ken Roy (talk) 23:08, 8 December 2020 (UTC)
I just upgraded to MW 1.35.1 and this remains an issue.
Again had to use the Vector skin from MW 1.34 in order to the collapse/uncollapse icons to be displayed by the CollapsibleVector extension Ken Roy (talk) 20:24, 22 December 2020 (UTC)
I put this in MediaWiki:Vector.css to get it working in 1.35:
.portal h3, .vector-menu-portal h3 {
	background-size: auto !important;
}
the problem seems to come from: h3{ background-size: 100% @border-width-base; in skins/Vector/resources/skins.vector.styles/MenuPortal.less T0lk (talk) 04:27, 31 December 2020 (UTC)
Thanks T01k,
That addition to the MediaWiki:Vector.css does resolve the collapse / expand icons not showing for my sidebar with the Vector skin from MW 1.34, but now the
categorytree-portlet
no longer shows in the sidebar at all. Ken Roy (talk) 20:54, 2 January 2021 (UTC)
I opened https://phabricator.wikimedia.org/T272705 since the CategoryTree and LanguageSelector portlets do not display in MW 1.35.1 with the Vector skin included in the MediaWiki package Ken Roy (talk) 13:10, 22 January 2021 (UTC)

Crontab Space full

Hi crontab space is full how to add space in pywikibot toolforge No space left on device /usr/local/bin/crontab: unable to execute remote crontab command....... Kaleem Bhatti (talk) 06:37, 29 November 2020 (UTC)

@Kaleem Bhatti How is this related to the MediaWiki software? Please ask Toolforge questions in Toolforge support places. Thanks. Malyacko (talk) 11:16, 29 November 2020 (UTC)

Broken redirects

I recently changed from the long urls to using short urls per the guides. That's working fine, but google still has the old links and when you go to them you get a 404 error. I would like to know if it's possible to redirect the old urls to the new ones without messing anything up.

I'm using nginx. The1gofer (talk) 18:44, 29 November 2020 (UTC)

any ideas? The1gofer (talk) 18:10, 2 December 2020 (UTC)
You'll have to add a redirect rule in your nginx config to perform that redirect. Ideally, with an HTTP 301 code (permanent redirect)
https://serverfault.com/questions/548591/nginx-redirect-one-path-to-another Ciencia Al Poder (talk) 12:50, 3 December 2020 (UTC)
@Ciencia Al Poder, I agree, but I don't really understand how to write those rules without messing up short urls mediawiki is already using. The1gofer (talk) 15:09, 3 December 2020 (UTC)
@The1gofer, I hate to be the bearer of bad news, but this is more an nginx-type question and less a MediaWiki-type question. If you could frame your question in a general "URL rewrites with nginx" context, you'd possibly have better luck posting to one of the Stack Exchange Q&A sites, such as https://webmasters.stackexchange.com.
I certainly could be more helpful if you were asking about Apache, but unless you manage web servers all the time, this is a challenging problem for anybody. Any time I have to deal with rewrites, I have to go back to the Apache mod_rewrite documentation, and even when I arrive at something that does what I want after hours of frustration, I usually don't understand why it does what I want.
Best of luck, though! Ernstkm (talk) 17:07, 3 December 2020 (UTC)

Error contacting the Parsoid/RESTBase server: http-bad-status

I upgraded my MediaWiki installation from 1.33 to 1.35. I am *very* happy to be able to put Node/Parsoid/RESTBase behind me and be able to use the built-in VisualEditor.

VisualEditor works on some pages, but on others, I get the above error message and it won't start. What is going on? I removed the $wgVirtualRestConfig statements from my config file when I upgraded. Metalliqaz (talk) 19:28, 29 November 2020 (UTC)

More info. My wiki is restricted but not private:
I have
$wgGroupPermissions['*']['createaccount'] = false;
$wgGroupPermissions['*']['edit'] = false;
But not
$wgGroupPermissions['*']['read'] = false; Metalliqaz (talk) 19:47, 29 November 2020 (UTC)
Ok I fiddled with permissions and that didn't fix anything.
I have discovered that this only happens on subpages. So I could edit wiki/Foo but I can't edit wiki/Foo/Bar Metalliqaz (talk) 20:21, 29 November 2020 (UTC)
Created a bug report for this: https://phabricator.wikimedia.org/T268953 Metalliqaz (talk) 20:29, 29 November 2020 (UTC)

Moved wiki to a new server and now cannot upload images

Wiki is on server 2016 and IIS is this error MYSQL or IIS directories -
Use the form below to upload files. To view or search previously uploaded files go to the list of uploaded files, (re)uploads are also logged in the upload log, deletions in the deletion log.
To include a file in a page, use a link in one of the following forms:
  • [[File:File.jpg]] to use the full version of the file
  • [[File:File.png|200px|thumb|left|alt text]] to use a 200 pixel wide rendition in a box in the left margin with "alt text" as description
  • [[Media:File.ogg]] for directly linking to the file without displaying the file
==Upload warning==
Could not create directory "mwstore://local-backend/local-public/8/83". JohnAintree (talk) 10:37, 30 November 2020 (UTC)
Manual:Common errors and symptoms#Error: Could not open lock file for "mwstore://local-backend/local-public/./../image.png Malyacko (talk) 14:22, 30 November 2020 (UTC)
Would this be related? I attempted to upload an image to the City of Heroes Homecoming wiki, and while the file apparently uploaded, I received this for a message
"Error creating thumbnail: /bin/bash: /usr/bin/convert: No such file or directory Error code: 127" 24.22.131.2 (talk) 22:10, 30 November 2020 (UTC)
24.22.131.2, have a look at Manual:Image_administration#Image_thumbnailing. There's some useful stuff in Extension:PdfHandler too. Jonathan3 (talk) 22:37, 30 November 2020 (UTC)

Tables not aligning

So, I have this issue with tables on the main page of a wiki page, they simply refuse to allign.
[5]
Does anyone have any ides how to fix this issue, please? JokerLow (talk) 11:36, 30 November 2020 (UTC)
@JokerLow I don't see what is not aligning on that website... could you be more specific please?
(Furthermore, you seem to use tables but don't have tabular data in those tables. That's what CSS is for. Not tables.) Malyacko (talk) 14:21, 30 November 2020 (UTC)
https://imgur.com/a/4h6iyMh
This is how I see the wiki page. JokerLow (talk) 16:13, 30 November 2020 (UTC)
@JokerLow What exactly is unaligned? I see table cells embedded in divisions embedded in table cells and all of them are rendered as I'd expect on your screenshot. It's unclear what you expect where, and especially why. Malyacko (talk) 16:49, 30 November 2020 (UTC)
I probably should've been more explicit in my topic, but it was late when I made it.
These lines as it can be seen in the screenshot below, are just not lined up with each other for some reason.
https://imgur.com/a/UeREf8B
Thats the issue that I can't fix at all. JokerLow (talk) 19:52, 1 December 2020 (UTC)
@JokerLow The less horizontal space, the more table cells will wrap their content. That has nothing to do with MediaWiki but that is simply how HTML works.
Basically: Do not (ab)use tables if they do not include tabular data, like in this case.
Or don't put two things next to each other if there is no space for two things next to each other... Malyacko (talk) 13:22, 2 December 2020 (UTC)
I see...thank you. JokerLow (talk) 16:24, 2 December 2020 (UTC)
Just to offer a dissenting opinion here, while professional web designers do frown on the use of tables for layout, this is not a "professional web design," situation, so I think you're fine using tables. I know I shouldn't use tables for layout, too, but on an internal wiki, I still do in lots of cases, simply because it's the most practical and straightforward way to go.
If you want to dive into doing it the "proper" way with HTML ‎<div>s and CSS, by all means do that (it would be best to hide that stuff in a template if you did), but tables are fine if you're in the early stages of this project, as it seems like you are.
It might help in this particular case to add width="50%" to one of your columns (see Help:Tables#Column width for the specifics), but to expand on what Malyacko wrote, you're kind of trying to fit too much stuff in there, and the wrapping of the "[edit]" link (absent some kind of CSS to stop it from happening) is going to be inevitable given some window sizes and screen resolutions.
As far as "Misc" and "Economy" not lining up, if you really want them to line up horizontally, just putting those in their own table, separate from "Vortex" and "Roleplaying," will probably work. Ernstkm (talk) 16:56, 3 December 2020 (UTC)

Mobile sections and nav temblates

I have a template, navigation table, at the bottom of page, after the last section. The problem is when I use Minerva theme for mobiles, the template turns inside the last collapsed section.

Is there any way to tell the page that the template doesn't bong the last section and should go below it? Or, as far as I know, in Wikipedia they just hide such templates for mobiles, how to do it? Арскригициониец (talk) 13:11, 30 November 2020 (UTC)

If a section is consuming something it shouldn't that usually means there's an unclosed HTML tag in the page or through template. Look for that. Templates that have navbox class are usually hidden in mobile. – Ammarpad (talk) 14:59, 30 November 2020 (UTC)
The matter is that Minerva theme thinks that template is in the section because of header existing above it. So, by some way I should tell the page that the section ends here and now there is outside section content. But how to do it? Арскригициониец (talk) 13:57, 1 December 2020 (UTC)

Changes in my profile

I try to edit my own profile page, but I get this message: The action you have requested is limited to users in the group: Wiki Users. What can I do? Rüdi Jehn (talk) 20:17, 30 November 2020 (UTC)

Asking the admins of that wiki to add you to that group. :) Malyacko (talk) 22:27, 30 November 2020 (UTC)