Project:Support desk/Flow/2021/06
| This page used the Structured Discussions extension to give structured discussions. It has since been converted to wikitext, so the content and history here are only an approximation of what was actually displayed at the time these comments were made. |
| This page is an archive. |
| Please ask questions on the current support desk. |
Mediawiki upgrade—Order of upgrades
My web host is upgrading to newer version of PHP. I need to upgrade my mediawiki software and PHP software. Which one should I upgrade first?
My current versions
MW: 1.27.1
LUA: 5.1.5
PHP: 5.6.30
Intended versions:
MW: 1.36.
LUA: ? Do I need to upgrade this?
PHP: 7.4.3
Thanks. http://wiki.worldofasdar.com 01:33, 1 June 2021 (UTC)
- both at the same time?
- If you have to chose one do php. Bawolff (talk) 02:15, 1 June 2021 (UTC)
MediaWiki possibly creates a slug/alias to my long URL webpages without me wanting this
MediaWiki 1.35.2 with Long URs possibly creates a slug/alias to my long URL webpages.
For example, for each long-URLed webpage such as:
https://example.com/index.php?title=דוגמה
Another "secondary" URL is created:
https://example.com/index.php/דוגמה
Such "secondary" URLs flood my Google Search Console webpage coverage statistics and makes my time in analyzing the SEO progress of the website harder.
I believe that it shouldn't happen --- please advice me how to stop this phenomenon (if possible, without using short URLs).
Thanks in advance, 2001:44C8:4327:FD79:5516:F142:5B1E:6472 (talk) 02:53, 1 June 2021 (UTC)
- How to stop MediaWiki from behaving this way? 2001:44C8:4327:FD79:5516:F142:5B1E:6472 (talk) 04:47, 1 June 2021 (UTC)
- See Manual:$wgUsePathInfo and Manual:$wgArticlePath. Note that those settings affect what URLs MediaWiki generates. Google shouldn't index those page unless there are links pointing to them Ciencia Al Poder (talk) 07:49, 1 June 2021 (UTC)
- @Ciencia Al Poder I personally never created any such link;
- The MediaWiki installation was more than two years ago when I didn't know much about MediaWiki anyway so I can't tell what went up in the installation processes but I can assure you that any internal link I ever created was with mere MediaWiki syntax with brackets (
[]). - If it matters, I don't have
$wgArticlePath = '/wiki/$1';in my LocalSettings.php file at all. - I have created sitemaps several times though; maybe this might have to do with sitemaps? 2001:44C8:4327:FD79:D177:9757:DB67:AA0E (talk) 13:43, 1 June 2021 (UTC)
- You should definitely specify $wgArticlePath in your LocalSettings.php (Whether that be $wgArticlePath = '/index.php/$1'; or $wgArticlePath = '/index.php?title=$1'; whichever one you prefer)
- Otherwise, mediawiki will try and guess which one is correct, and that guess might change randomly, especially between web server, and cli (including sitemaps) Bawolff (talk) 02:02, 6 June 2021 (UTC)
- Good catch about cli behaving differently. I've added a note about that in Manual:$wgUsePathInfo Ciencia Al Poder (talk) 10:41, 6 June 2021 (UTC)
- Sure, check your sitemaps and see where the links are pointing to.
- If you haven't set those variables, the defaults are used, which as $wgUsePathInfo explains, it may have different values depending on php configuration. A change in how php runs may have changed it's default value.
- Also note that, even having a consistent link pattern can cause Google to still use other variants, because they were previously indexed. I'd suggest enabling $wgEnableCanonicalServerLink Ciencia Al Poder (talk) 15:12, 1 June 2021 (UTC)
- @Ciencia Al Poder thanks,
- If I understand correct, enabling $wgEnableCanonicalServerLink is an interesting way to handle that situation; it will give a canonical link to all articles indicating what their original "one and only" path should be and then make Googlebot ignore the secondary path. 2001:44C8:4440:9D50:F0A3:9F27:5489:ED0 (talk) 02:34, 2 June 2021 (UTC)
- Is that correct? 2001:44C8:4440:9D50:F0A3:9F27:5489:ED0 (talk) 08:50, 2 June 2021 (UTC)
- Yes Ciencia Al Poder (talk) 13:39, 2 June 2021 (UTC)
Media Wiki lost Images and article.
First Sorry english is´nt my language, i hope you understand my problem.
| Software | Version |
|---|---|
| MediaWiki | 1.35.1 |
| PHP | 7.4.15 (fpm-fcgi) |
| MariaDB | 10.1.38-MariaDB-0ubuntu0.18.04.1 |
| ICU | 65.1 |
After the update to 1.35.1 many images have lost ne connection.
https://holopedia.de/index.php?title=Datei:11-17(2).jpg Our Wiki can not Found this Image.
when i look in the image ordner, i found this image.
if i want to replace the image, the wiki say.
Die hochgeladene Datei ist ein exaktes Duplikat der aktuellen Version von Datei:11-17(2).jpg.
so i delete the Image and reload, than is ok.
the same think with article
https://holopedia.de/index.php?title=TT-8L_(Tattletale)_Droid
https://holopedia.de/index.php?title=TT-8L_(Tattletale)_Droid&action=history
when i want to replace, i have a conflict because the wiki think, someone is work on the article.
Thanks for your Help, and i hope you understand my Problem. 95.112.177.221 (talk) 13:55, 1 June 2021 (UTC)
Missing profile?
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. We have a link to our list of books on LibraryThing and it is now directing to the mail LibraryThing page when people click on it, although it is a link that includes our profile name. I'm also unable to log in using my information and it also isn't sending a "forgot password" link to our email when requested. Could you please advise? Thank you. 192.190.166.36 (talk) 17:21, 1 June 2021 (UTC)
- What is "LibraryThing" and how is it related to MediaWiki? Please provide context. Malyacko (talk) 18:08, 1 June 2021 (UTC)
How to configure authentication with LDAPS?
I have installed and configured LDAPAuthentication2, LDAPProvider, and PluggableAuth extensions for authentication via our domain. I can login with using port 389 but when using the secure port 636, it failed every time. In the ldap.log,it keeps showing: ldap_connect( $hostname = 'ldap://mysite.com:636', $port = 389
I'm not sure where that "$port=389" comes from in this log. In my localsettings.php, I specifically set the port to 636. The error said, "returns Can't contact LDAP server". I assumed either the port or server is wrong. I'm not sure what other settings need to be looked at. Any help is much appreciated. Laujc (talk) 21:05, 1 June 2021 (UTC)
- I don't know much about ldap, but if using the secure port, you probably need ldaps://mysite.com:636 (The S in the protocol means secure). The second port 389, is an old mechanism in php, which should be overriden by the port in the url, so i think the log is confusing, but does not mean its actually using that port. Bawolff (talk) 01:59, 6 June 2021 (UTC)
- How do I specify the "s" in the protocol? This is my php array configuration.
$LDAPProviderDomainConfigProvider = function() {$config = ['myDomain.com' => ['connection' => ["server" => "ldap.myDomain.com","port" => 636,"user" => "cn=LDAPMediaWiki,ou=ldap,ou=other,ou=myDomain users,dc=myDomain,dc=com","pass" => "password","enctype" => "tls","options" => ["LDAP_OPT_DEREF" => 1],"basedn" => "dc=myDomain,dc=com","groupbasedn" => "ou=myDomain groups,dc=myDomain,dc=com","userbasedn" => "ou=myDomain users,dc=myDomain,dc=com","searchattribute" => "samaccountname","usernameattribute" => "samaccountname","realnameattribute" => "displayname","emailattribute" => "mail","grouprequest" => "MediaWiki\\Extension\\LDAPProvider\\UserGroupsRequest\\UserMemberOf::factory"],]];return new \MediaWiki\Extension\LDAPProvider\DomainConfigProvider\InlinePHPArray( $config );};Laujc (talk) 13:53, 7 June 2021 (UTC)- Does anyone has any suggestion? Laujc (talk) 14:36, 15 June 2021 (UTC)
- I still keep getting this error. Did anyone got secure port to work on their environment? Thanks! Laujc (talk) 12:34, 17 August 2021 (UTC)
Upload fails in docker container.
Before building the docker container with the command 'chown www-data:www-data /var/www/html/images'. I would get an error like "
- Could not open lock file for "mwstore://local-backend/local-public/4/4c/whereverfile.png".
- Make sure your upload directory is configured correctly and your web server has
- permission to write to that directory.
- See https://www.mediawiki.org/wiki/Special:MyLanguage/Manual:$wgUploadDirectory for
- more information.
"
Now I get this error just above the upload form:
Could not create directory "mwstore://local-backend/local-public/3/3d".
I have tried everything I can think of here, enabled and disabled all relevant variables. (wgUploadPath etc.)
But still no luck.
Mediawiki Version 1.35.2
My docker image is based on the official image. 77.119.130.7 (talk) 22:12, 1 June 2021 (UTC)
- The only relevant error log line that I found is this one:
[FileOperation] StoreFileOp failed (batch #): {"src":"/tmp/phpmM6Q2b","dst":"mwstore://local-backend/local-temp/7/74/20210601225411!phpmM6Q2b.png","overwrite":true,"headers":[],"failedAction":"attempt"}- LocalSettings:
- $wgUploadDirectory = "/var/www/html/images";
- $wgTmpDirectory = "/var/www/html/images/tmp/";
- $wgUploadPath = "/images";
- $wgEnableUploads = true; 178.165.178.236 (talk) 22:56, 1 June 2021 (UTC)
- Using the September 3 commit here "ca4ff793fbe5a7f1bad6b16aad763afc4a1799b8" and I'm running 1.35.2. Not having to set $wgUploadDirectory or $wgUploadPath to make it work out of the box - my problem comes trying to mount a volume and then write to it. Same error. Something like this in the docker-compose.yml:
- + # Custom uploads directory.
- + - ./uploads:/var/www/html/uploads/:rw
- And then setting those in LocalSettings.php: "$wgScriptPath/uploads" but I can't find the magic combination to get it to work. I can't see a trace in the logs either. Beet keeper (talk) 07:54, 15 September 2021 (UTC)
- I should add, I am using a Wikibase image, which might not be relevant for you. In addition to the uploads directory that I mounted for the Wikibase image, I added a user to the service as follows:
- user: "www-data:www-data"
- And that solved the problems here. I could see from the container that I was able to write to my uploads directory and that it belonged to www-data. After that I attempted an upload in Wikimedia/Wikibase and it worked.
- My LocalSettings.php are also configured as follows;
- +$wgUploadDirectory = "$IP/uploads";
- +$wgUploadPath = "$wgScriptPath/uploads";
- Which I believe is in-line with the documentation. I can see the uploads in the directory and all new uploads are visible too. (Some folk may need to merge a previous "image" or "upload" directory into their new mount point to see old files. Beet keeper (talk) 09:58, 15 September 2021 (UTC)
- Usually the help desk recommends installing without docker, and instead using their official supported installation method. TiltedCerebellum (talk) 04:02, 4 June 2021 (UTC)
can I add transclusion into a 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.
i wanted to transclusion multiple pages side by side. tried below, but didn't work. any help is appreciated {| class="wikitable" |+ Caption text |- ! Header text1 !! Header text2 !! Header text3 |- | {{:PAGE1}} || {{:PAGE2}} || {{:PAGE3}} |} 132.234.229.41 (talk) 01:13, 2 June 2021 (UTC)
- That should work all right, I think. What are the names of your pages, what's in them, what did you expect to see, what did you see? Jonathan3 (talk) 20:55, 2 June 2021 (UTC)
Mindtouch to mediawiki migration
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 Support Desk,
We have been using the wiki Mindtouch Core v.9.12.3 for quite a while and now we would like to migrate our wiki to MediaWiki 1.33. Since Mediawiki is a fork from mindtouch we would like to know if there is an available tool or script to let us migrate the data.
Any help is appreciated
Regards Glennprevi (talk) 09:26, 2 June 2021 (UTC)
- MediaWiki is not a fork of Mindtouch; it's rather the other way round. Also note that MediaWiki 1.33 is an ancient and insecure version. See Version lifecycle. Please run secure software for your own safety.
- Maybe Project:Support desk/Flow/2013/08#h-Possibility_to_migrate_from_Dekiwiki_(MindTouch)_to_MediaWiki??-2013-08-08T07:26:00.000Z, https://thomask.sdf.org/blog/2019/03/25/migrating-a-dekiwiki-in-2019.html, Category:Data exchange with other systems provide some hints. Malyacko (talk) 10:59, 3 June 2021 (UTC)
Internal error in LinkRenderer.php and Skin.php after upgrade from 1.31 to 1.35
The following discussion is closed. Please do not modify it. Subsequent comments should be made on the appropriate discussion page. No further edits should be made to this discussion.
Hi!
I'm just upgrade mediawiki from 1.31 to 1.35 and get an error on every article and category page. Edit pages are opens correctly and preview works correctly too. I've tried disable all extensions and skins (exept Vector), but no success. Nginx error log is empty.
[4e53e770be0425197297765d] /wiki/Main_Page TypeError from line 313 of /var/www/w/includes/linker/LinkRenderer.php: Argument 1 passed to MediaWiki\Linker\LinkRenderer::makeKnownLink() must implement interface MediaWiki\Linker\LinkTarget, null given, called in /var/www/w/includes/skins/Skin.php on line 868
Backtrace:
#0 /var/www/w/includes/skins/Skin.php(868): MediaWiki\Linker\LinkRenderer->makeKnownLink(NULL, HtmlArmor)
#1 /var/www/w/includes/skins/Skin.php(2519): Skin->getCopyright()
#2 /var/www/w/includes/skins/SkinTemplate.php(340): Skin->getFooterLinks()
#3 /var/www/w/includes/skins/SkinTemplate.php(127): SkinTemplate->prepareQuickTemplate()
#4 /var/www/w/includes/skins/SkinTemplate.php(144): SkinTemplate->generateHTML()
#5 /var/www/w/includes/OutputPage.php(2622): SkinTemplate->outputPage()
#6 /var/www/w/includes/MediaWiki.php(947): OutputPage->output(boolean)
#7 /var/www/w/includes/MediaWiki.php(960): MediaWiki->{closure}()
#8 /var/www/w/includes/MediaWiki.php(543): MediaWiki->main()
#9 /var/www/w/index.php(53): MediaWiki->run()
#10 /var/www/w/index.php(46): wfIndexMain()
#11 {main}
Need help. Thanks. Zala67 (talk) 11:30, 2 June 2021 (UTC)
- Error appears here (w/includes/skins/Skin.php(868)):
- if ( $config->get( 'RightsPage' ) ) {
- $title = Title::newFromText( $config->get( 'RightsPage' ) );
- $link = $linkRenderer->makeKnownLink(
- $title, new HtmlArmor( $config->get( 'RightsText' ) )
- );
- So what problems could be with RightsText? In LocalSettings.php it set as
- $wgEnableCreativeCommonsRdf = true;
- $wgRightsPage = " "; # Set to the title of a wiki page that describes your license/copyright
- $wgRightsUrl = " ";
- $wgRightsText = "CC-BY-SA 3.0";
- And this worked correctly on mediawiki 1.31. Zala67 (talk) 15:05, 2 June 2021 (UTC)
- This is a total guess but how about changing those variables from " " (space) to "" (empty)? Or NULL which is probably their default anyway. Jonathan3 (talk) 20:42, 2 June 2021 (UTC)
- Yes, I've deleted them and upgrade finished well. Thank you. Zala67 (talk) 07:34, 3 June 2021 (UTC)
कृपया मदद का अनुरोध करें
कृपया मदद का अनुरोध करें
हाय, मैं अंतरराष्ट्रीय स्तर पर प्रसिद्ध कलाकार एंड्रिया बेनेट्टी पर लेख शामिल करना चाहूंगा। दुर्भाग्य से मैं भारतीय नहीं लिखता और बोलता हूं और ऑटोमेट्रिक अनुवादक के साथ आवाज का अनुवाद करने की कोशिश कर रहा हूं, एक मसौदा तैयार करने के लिए, जिसे बाद में ठीक किया जाएगा (https://hi.wikipedia.org/wiki/Special:ContentTranslation?title=Special:ContentTranslation&campaign=contributionsmenu&to=hi&page=Andrea+Benetti+%28artist%29&from=en&targettitle=Andrea+Benetti+%28artista%29) ऐसा करना संभव नहीं है, क्योंकि एक शिलालेख है जो कहता है: "आपके अनुवाद में संभावित उत्पन्न हुआ है। विवरण: जिस पाठ को आप प्रकाशित करना चाहते थे वह स्पैम फ़िल्टर द्वारा अवरुद्ध कर दिया गया था। यह संभवतः एक निषिद्ध बाहरी साइट के लिंक के कारण होता है। निम्नलिखित पाठ हमारे स्पैम फ़िल्टर को ट्रिगर करता है: वर्डप्रेस। कॉम ". मै कैसे करूँ? क्या कोई भी कृपया मेरी मदद कर सकता है? बहुत बहुत धन्यवाद, --BarbaraLuciano13 (वार्ता) 11:50, 2 जून 2021 (UTC)
- Google translation:
- please request help
- Hi, I would like to include article on internationally renowned artist Andrea Benetti. Unfortunately I don't write and speak Indian and am trying to translate voice with autometric translator, to make a draft, which will be corrected later (https://wikipedia.org/wiki/ Special:ContentTranslation?title=Special:ContentTranslation&campaign=contributionsmenu&to=en&page=Andrea+Benetti+%28artist%29&from=en&targettitle=Andrea+Benetti+%28artista%29) It is not possible to do this, because there is an inscription that says: "In your translation Potential has occurred. Description: The text you wanted to publish was blocked by a spam filter. This is probably caused by a link to a prohibited external site. The following text triggers our spam filter: WordPress. com ". how do i do Can anyone help me please? Thank you very much, --BarbaraLuciano13 (talk) 11:50, June 2, 2021 (UTC)
- I think the problem is with the URL rather than your language skills :-) Just try again without the URL. Beyond that, I don't know how to get round the URL blacklist problem, sorry! Jonathan3 (talk) 22:03, 2 June 2021 (UTC)
- Thank you!! I think I've spotted the mistake! See you soon, Barbara BarbaraLuciano13 (talk) 06:39, 3 June 2021 (UTC)
- हाय मैंने एक प्रसिद्ध इतालवी कलाकार द्वारा लेख का एक मसौदा लिखा (मेरे लिए बहुत अच्छा) https://hi.wikipedia.org/wiki/%E0%A4%B8%E0%A4%A6%E0%A4%B8%E0%A5%8D%E0%A4%AF:BarbaraLuciano13/%E0%A4%8F%E0%A4%82%E0%A4%A1%E0%A5%8D%E0%A4%B0%E0%A4%BF%E0%A4%AF%E0%A4%BE_%E0%A4%AC%E0%A5%87%E0%A4%A8%E0%A5%87%E0%A4%9F%E0%A5%80_Andrea_Benetti मुझे हिंदी नहीं आती। क्या आप एंड्रिया बेनेटी पर लेख को अंतिम रूप देने के लिए किए गए अनुवाद को बेहतर बनाने में मेरी मदद कर सकते हैं? अगर आपके पास कुछ सलाह है और मेरी मदद कर सकते हैं, तो बहुत-बहुत धन्यवाद. BarbaraLuciano13 (talk) 10:50, 4 June 2021 (UTC)
- It does not appear to be that you speak Hindi natively, so why are you posting in that language (because it seems that you're using a translator)? Leaderboard (talk) 10:53, 4 June 2021 (UTC)
- Sorry, I must have done something wrong. I would like to publish an article that is present in many languages, even in Hindi. I thought this page was in Hindi ... Excuse me. How can I get native Hindi speakers to check the draft I have preparedhttps://hi.wikipedia.org/wiki/%E0%A4%B8%E0%A4%A6%E0%A4%B8%E0%A5%8D%E0%A4%AF:BarbaraLuciano13/%E0%A4%8F%E0%A4%82%E0%A4%A1%E0%A5%8D%E0%A4%B0%E0%A4%BF%E0%A4%AF%E0%A4%BE_%E0%A4%AC%E0%A5%87%E0%A4%A8%E0%A5%87%E0%A4%9F%E0%A5%80_Andrea_Benetti ? BarbaraLuciano13 (talk) 11:04, 4 June 2021 (UTC)
Must one keep $wgResourceBasePath = $wgScriptPath; 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.
It was written in Manual:$wgResourceBasePath:
Must one keepDefault 'remoteBasePath' value for resource loader modules. If not set to a different value, then $wgScriptPath will be used as a fallback.
$wgResourceBasePath = $wgScriptPath; in LocalSettings.php?
I mean, if, when needed, MediaWiki would fallback to the default value of the variable, isn't the very declaration of the variable itself in LocalSettings.php redundant?
Thanks, 2001:44C8:4440:9D50:F0A3:9F27:5489:ED0 (talk) 16:48, 2 June 2021 (UTC)
- You're correct, $wgResourceBasePath = $wgScriptPath; is not required to be kept in LocalSettings.php.
- I don't remember the installer generating LocalSettings.php with that value set. Maybe it was manually added on your file? Ciencia Al Poder (talk) 16:50, 2 June 2021 (UTC)
- After I removed the line from LocalSettings.php and saved the file, my website kept working but I'm not sure if it's problematic to remove it from the file or not. 2001:44C8:4440:9D50:F0A3:9F27:5489:ED0 (talk) 16:50, 2 June 2021 (UTC)
- @Ciencia Al Poder thanks for the fast and kind answer.
- I have installed MediaWiki nearly 2.5 years ago (I believe it was version 1.32.x) so maybe than it was added by the installer; I don't recall adding it myself. 2001:44C8:4440:9D50:F0A3:9F27:5489:ED0 (talk) 16:53, 2 June 2021 (UTC)
Wikipedia word count
This https://en.wikipedia.org/wiki/Wikipedia:Size_of_Wikipedia says the English Wikipedia contains over 3.9 billion words, I'd like to know what tool is used to count and which parts of an article count toward this number (do references, lists or tables count?). Tools like https://en.wikipedia.org/wiki/User:Caorongjin/wordcount and https://en.wikipedia.org/wiki/Wikipedia:Prosesize don't count the words inside certain tables, so the contents of the episode list section in https://en.wikipedia.org/wiki/One_Piece_(season_1) are not counted by either (plenty of prose gets skipped because it's inside a table). How is the counting done and which words get counted? Sorry if this isn't the place to ask. Jasper Norbert (talk) 00:14, 3 June 2021 (UTC)
- I would trying asking over at Wikipedia's help desk:
- Wikipedia:Help desk TiltedCerebellum (talk) 03:56, 4 June 2021 (UTC)
- There's many people who do statistics, and they usually count things differently.
- For the amount in w:Special:Statistics, that comes from the ElasticSearch index of content namespaces[1] Bawolff (talk) 01:55, 6 June 2021 (UTC)
- Thanks, that's exactly what I wanted! Jasper Norbert (talk) 01:42, 7 June 2021 (UTC)
Error after upgrading to 1.36
Hi!
Im getting following error after upgrade to Mediawiki 1.36
MediaWiki internal error.
Original exception: [YLgkFvnClqNEHbr5jmOD6wAAAAY] /index.php?title=Main_Page Wikimedia\Rdbms\DBQueryError from line 1699 of /home/escforumwiki/public_html/includes/libs/rdbms/database/Database.php: A database query error has occurred. Did you forget to run your application's database schema updater after upgrading?
Error 1146: Table 'escforumwiki_escwiki.y5m_revision' doesn't exist (localhost)
Function: MediaWiki\Revision\RevisionStore::fetchRevisionRowFromConds
Query: SELECT rev_id,rev_page,rev_timestamp,rev_minor_edit,rev_deleted,rev_len,rev_parent_id,rev_sha1,comment_rev_comment.comment_text AS `rev_comment_text`,comment_rev_comment.comment_data AS `rev_comment_data`,comment_rev_comment.comment_id AS `rev_comment_cid`,actor_rev_user.actor_user AS `rev_user`,actor_rev_user.actor_name AS `rev_user_text`,temp_rev_user.revactor_actor AS `rev_actor`,page_namespace,page_title,page_id,page_latest,page_is_redirect,page_len,user_name FROM `y5m_revision` JOIN `y5m_revision_comment_temp` `temp_rev_comment` ON ((temp_rev_comment.revcomment_rev = rev_id)) JOIN `y5m_comment` `comment_rev_comment` ON ((comment_rev_comment.comment_id = temp_rev_comment.revcomment_comment_id)) JOIN `y5m_revision_actor_temp` `temp_rev_user` ON ((temp_rev_user.revactor_rev = rev_id)) JOIN `y5m_actor` `actor_rev_user` ON ((actor_rev_user.actor_id = temp_rev_user.revactor_actor)) JOIN `y5m_page` ON ((page_id = rev_page)) LEFT JOIN `y5m_user` ON ((actor_rev_user.actor_user != 0) AND (user_id = actor_rev_user.actor_user)) WHERE page_namespace = 8 AND page_title = 'Gadgets-definition' AND (rev_id=page_latest) LIMIT 1
Backtrace:
#0 /home/escforumwiki/public_html/includes/libs/rdbms/database/Database.php(1683): Wikimedia\Rdbms\Database->getQueryException(string, integer, string, string)
#1 /home/escforumwiki/public_html/includes/libs/rdbms/database/Database.php(1658): Wikimedia\Rdbms\Database->getQueryExceptionAndLog(string, integer, string, string)
#2 /home/escforumwiki/public_html/includes/libs/rdbms/database/Database.php(1227): Wikimedia\Rdbms\Database->reportQueryError(string, integer, string, string, boolean)
#3 /home/escforumwiki/public_html/includes/libs/rdbms/database/Database.php(1907): Wikimedia\Rdbms\Database->query(string, string, integer)
#4 /home/escforumwiki/public_html/includes/libs/rdbms/database/Database.php(2007): Wikimedia\Rdbms\Database->select(array, array, array, string, array, array)
#5 /home/escforumwiki/public_html/includes/libs/rdbms/database/DBConnRef.php(68): Wikimedia\Rdbms\Database->selectRow(array, array, array, string, array, array)
#6 /home/escforumwiki/public_html/includes/libs/rdbms/database/DBConnRef.php(331): Wikimedia\Rdbms\DBConnRef->__call(string, array)
#7 /home/escforumwiki/public_html/includes/Revision/RevisionStore.php(2373): Wikimedia\Rdbms\DBConnRef->selectRow(array, array, array, string, array, array)
#8 /home/escforumwiki/public_html/includes/Revision/RevisionStore.php(2315): MediaWiki\Revision\RevisionStore->fetchRevisionRowFromConds(Wikimedia\Rdbms\DBConnRef, array, integer, array)
#9 /home/escforumwiki/public_html/includes/Revision/RevisionStore.php(1105): MediaWiki\Revision\RevisionStore->loadRevisionFromConds(Wikimedia\Rdbms\DBConnRef, array, integer, Title)
#10 /home/escforumwiki/public_html/extensions/Gadgets/includes/MediaWikiGadgetsDefinitionRepo.php(142): MediaWiki\Revision\RevisionStore->getRevisionByTitle(Title)
#11 /home/escforumwiki/public_html/extensions/Gadgets/includes/MediaWikiGadgetsDefinitionRepo.php(109): MediaWikiGadgetsDefinitionRepo->fetchStructuredList()
#12 /home/escforumwiki/public_html/includes/libs/objectcache/wancache/WANObjectCache.php(1529): MediaWikiGadgetsDefinitionRepo->{closure}(boolean, integer, array, NULL, array)
#13 /home/escforumwiki/public_html/includes/libs/objectcache/wancache/WANObjectCache.php(1376): WANObjectCache->fetchOrRegenerate(string, integer, Closure, array, array)
#14 /home/escforumwiki/public_html/extensions/Gadgets/includes/MediaWikiGadgetsDefinitionRepo.php(116): WANObjectCache->getWithSetCallback(string, integer, Closure, array)
#15 /home/escforumwiki/public_html/extensions/Gadgets/includes/MediaWikiGadgetsDefinitionRepo.php(32): MediaWikiGadgetsDefinitionRepo->loadGadgets()
#16 /home/escforumwiki/public_html/extensions/Gadgets/includes/GadgetRepo.php(71): MediaWikiGadgetsDefinitionRepo->getGadgetIds()
#17 /home/escforumwiki/public_html/extensions/Gadgets/includes/GadgetHooks.php(114): GadgetRepo->getStructuredList()
#18 /home/escforumwiki/public_html/includes/HookContainer/HookContainer.php(320): GadgetHooks::userGetDefaultOptions(array)
#19 /home/escforumwiki/public_html/includes/HookContainer/HookContainer.php(131): MediaWiki\HookContainer\HookContainer->callLegacyHook(string, array, array, array)
#20 /home/escforumwiki/public_html/includes/HookContainer/HookRunner.php(4253): MediaWiki\HookContainer\HookContainer->run(string, array)
#21 /home/escforumwiki/public_html/includes/user/DefaultOptionsLookup.php(99): MediaWiki\HookContainer\HookRunner->onUserGetDefaultOptions(array)
#22 /home/escforumwiki/public_html/includes/user/UserOptionsManager.php(494): MediaWiki\User\DefaultOptionsLookup->getDefaultOptions()
#23 /home/escforumwiki/public_html/includes/user/UserOptionsManager.php(135): MediaWiki\User\UserOptionsManager->loadUserOptions(User, integer)
#24 /home/escforumwiki/public_html/includes/user/UserOptionsLookup.php(123): MediaWiki\User\UserOptionsManager->getOption(User, string, integer, boolean, integer)
#25 /home/escforumwiki/public_html/includes/user/User.php(2712): MediaWiki\User\UserOptionsLookup->getIntOption(User, string, integer)
#26 /home/escforumwiki/public_html/includes/user/User.php(2904): User->getIntOption(string)
#27 /home/escforumwiki/public_html/includes/linker/LinkRendererFactory.php(99): User->getStubThreshold()
#28 /home/escforumwiki/public_html/includes/ServiceWiring.php(532): MediaWiki\Linker\LinkRendererFactory->createForUser(User)
#29 /home/escforumwiki/public_html/vendor/wikimedia/services/src/ServiceContainer.php(447): Wikimedia\Services\ServiceContainer->{closure}(MediaWiki\MediaWikiServices)
#30 /home/escforumwiki/public_html/vendor/wikimedia/services/src/ServiceContainer.php(416): Wikimedia\Services\ServiceContainer->createService(string)
#31 /home/escforumwiki/public_html/includes/MediaWikiServices.php(834): Wikimedia\Services\ServiceContainer->getService(string)
#32 /home/escforumwiki/public_html/includes/page/Article.php(164): MediaWiki\MediaWikiServices->getLinkRenderer()
#33 /home/escforumwiki/public_html/includes/page/Article.php(211): Article->__construct(Title)
#34 /home/escforumwiki/public_html/includes/page/Article.php(227): Article::newFromTitle(Title, RequestContext)
#35 /home/escforumwiki/public_html/includes/actions/Action.php(188): Article::newFromWikiPage(WikiPage, RequestContext)
#36 /home/escforumwiki/public_html/includes/MediaWiki.php(166): Action::getActionName(RequestContext)
#37 /home/escforumwiki/public_html/includes/MediaWiki.php(903): MediaWiki->getAction()
#38 /home/escforumwiki/public_html/includes/MediaWiki.php(543): MediaWiki->main()
#39 /home/escforumwiki/public_html/index.php(53): MediaWiki->run()
#40 /home/escforumwiki/public_html/index.php(46): wfIndexMain()
#41 {main}
Exception caught inside exception handler: [YLgkFvnClqNEHbr5jmOD6wAAAAY] /index.php?title=Main_Page Wikimedia\Rdbms\DBQueryError from line 1699 of /home/escforumwiki/public_html/includes/libs/rdbms/database/Database.php: A database query error has occurred. Did you forget to run your application's database schema updater after upgrading?
Error 1146: Table 'escforumwiki_escwiki.y5m_page' doesn't exist (localhost)
Function: MessageCache::loadFromDB(en)-big
Query: SELECT page_title,page_latest FROM `y5m_page` WHERE page_is_redirect = 0 AND page_namespace = 8 AND (page_title NOT LIKE '%/%' ESCAPE '`' ) AND (page_len > 10000)
Backtrace:
#0 /home/escforumwiki/public_html/includes/libs/rdbms/database/Database.php(1683): Wikimedia\Rdbms\Database->getQueryException(string, integer, string, string)
#1 /home/escforumwiki/public_html/includes/libs/rdbms/database/Database.php(1658): Wikimedia\Rdbms\Database->getQueryExceptionAndLog(string, integer, string, string)
#2 /home/escforumwiki/public_html/includes/libs/rdbms/database/Database.php(1227): Wikimedia\Rdbms\Database->reportQueryError(string, integer, string, string, boolean)
#3 /home/escforumwiki/public_html/includes/libs/rdbms/database/Database.php(1907): Wikimedia\Rdbms\Database->query(string, string, integer)
#4 /home/escforumwiki/public_html/includes/libs/rdbms/database/DBConnRef.php(68): Wikimedia\Rdbms\Database->select(string, array, array, string)
#5 /home/escforumwiki/public_html/includes/libs/rdbms/database/DBConnRef.php(313): Wikimedia\Rdbms\DBConnRef->__call(string, array)
#6 /home/escforumwiki/public_html/includes/cache/MessageCache.php(533): Wikimedia\Rdbms\DBConnRef->select(string, array, array, string)
#7 /home/escforumwiki/public_html/includes/cache/MessageCache.php(448): MessageCache->loadFromDB(string, NULL)
#8 /home/escforumwiki/public_html/includes/cache/MessageCache.php(371): MessageCache->loadFromDBWithLock(string, array, NULL)
#9 /home/escforumwiki/public_html/includes/cache/MessageCache.php(1091): MessageCache->load(string)
#10 /home/escforumwiki/public_html/includes/cache/MessageCache.php(1017): MessageCache->getMsgFromNamespace(string, string)
#11 /home/escforumwiki/public_html/includes/cache/MessageCache.php(988): MessageCache->getMessageForLang(LanguageEn, string, boolean, array)
#12 /home/escforumwiki/public_html/includes/cache/MessageCache.php(930): MessageCache->getMessageFromFallbackChain(LanguageEn, string, boolean)
#13 /home/escforumwiki/public_html/includes/language/Message.php(1304): MessageCache->get(string, boolean, LanguageEn)
#14 /home/escforumwiki/public_html/includes/language/Message.php(862): Message->fetchMessage()
#15 /home/escforumwiki/public_html/includes/language/Message.php(954): Message->toString(string)
#16 /home/escforumwiki/public_html/includes/OutputPage.php(944): Message->text()
#17 /home/escforumwiki/public_html/includes/OutputPage.php(993): OutputPage->setHTMLTitle(Message)
#18 /home/escforumwiki/public_html/includes/OutputPage.php(2651): OutputPage->setPageTitle(string)
#19 /home/escforumwiki/public_html/includes/exception/MWExceptionRenderer.php(142): OutputPage->prepareErrorPage(string)
#20 /home/escforumwiki/public_html/includes/exception/MWExceptionRenderer.php(65): MWExceptionRenderer::reportHTML(Wikimedia\Rdbms\DBQueryError)
#21 /home/escforumwiki/public_html/includes/exception/MWExceptionHandler.php(106): MWExceptionRenderer::output(Wikimedia\Rdbms\DBQueryError, integer)
#22 /home/escforumwiki/public_html/includes/exception/MWExceptionHandler.php(185): MWExceptionHandler::report(Wikimedia\Rdbms\DBQueryError)
#23 /home/escforumwiki/public_html/includes/MediaWiki.php(576): MWExceptionHandler::handleException(Wikimedia\Rdbms\DBQueryError, string)
#24 /home/escforumwiki/public_html/index.php(53): MediaWiki->run()
#25 /home/escforumwiki/public_html/index.php(46): wfIndexMain()
#26 {main} SANtosito (talk) 01:20, 3 June 2021 (UTC)
- I don't know but that's to do with missing tables. Update.php creates new tables sometimes. Did you run it? Jonathan3 (talk) 06:58, 3 June 2021 (UTC)
Elastic search 6.5.4 issue
The following discussion is closed. Please do not modify it. Subsequent comments should be made on the appropriate discussion page. No further edits should be made to this discussion.
Hi Iam using elastic search 6.5.4 version for Mediawiki 1.35 . when trying to run demon showing errors.
$ ./bin/elasticsearch
Exception in thread "main" java.nio.file.AccessDeniedException: /data/www/html/wiki/elasticsearch-6.5.4/config/jvm.options
at sun.nio.fs.UnixException.translateToIOException(UnixException.java:84)
at sun.nio.fs.UnixException.rethrowAsIOException(UnixException.java:102)
at sun.nio.fs.UnixException.rethrowAsIOException(UnixException.java:107)
at sun.nio.fs.UnixFileSystemProvider.newByteChannel(UnixFileSystemProvider.java:214)
at java.nio.file.Files.newByteChannel(Files.java:361)
at java.nio.file.Files.newByteChannel(Files.java:407)
at java.nio.file.spi.FileSystemProvider.newInputStream(FileSystemProvider.java:384)
at java.nio.file.Files.newInputStream(Files.java:152)
at org.elasticsearch.tools.launchers.JvmOptionsParser.main(JvmOptionsParser.java:60)
plese suggest Pooja2425 (talk) 09:13, 3 June 2021 (UTC)
- Please ask Elasticsearch questions in Elasticsearch forums instead. See for example https://discuss.elastic.co/t/exception-in-thread-main-java-nio-file-accessdeniedexception/165497 Malyacko (talk) 10:52, 3 June 2021 (UTC)
Clickable link to a file on a network
Hello,
Wondering if there is a way to make a clickable link to a company network location within a page. Currently I'm pasting the file path, ex (S:\ENGINEER\MECHANICAL\DESIGN\PUMPS) which can be copied and pasted into file explorer. I'd rather avoid uploading the file to the wiki to cut down on version control issues, the files on the "S" drive are updated often.
Thanks! 71.14.217.19 (talk) 15:09, 3 June 2021 (UTC)
- Add
$wgUrlProtocols[] = "file://";. You can then dofile:///S:/ENGINEER/MECHANICAL/DESIGN/PUMPS. In some browsers this only works if the site is loaded with HTTPS. See the caveats on Manual:$wgUrlProtocols. Bawolff (talk) 01:50, 6 June 2021 (UTC)
Copy mediawiki from a computer to another
Hello Team,
I have mediawiki installed on a crashed computer. I would like to recover my wiki and place it on another computer.
Can anyone provide a sort of howto guide for a very inexpert user?
Thanks in advance. 137.204.93.178 (talk) 16:47, 3 June 2021 (UTC)
- If your computer was crashed then how could you installed the media-wiki?
Can you copy this now to your another computer?↠Tanbirzx (✉) 17:27, 3 June 2021 (UTC)- I recovered the hard disk and place it on another computer. 137.204.93.178 (talk) 06:34, 4 June 2021 (UTC)
- I think the MediaWiki support desk can only provide support limited to how to use MediaWiki software itself and would not cover how to recover files from a crashed computer, or now to recover your database or Wamp/Mamp--if you were using one of these (maybe you were running some other server software). Whichever software you were using to run MediaWiki, I'd visit their support forums instead since their users may have encountered a similar situation. If you need help obtaining files from a crashed computer, you'd first need to know if the hard drive still works. If it does, you might look into using a bootable Linux USB with an installation like Ubuntu (if the computer's bios supports boot from USB), that can read other file systems and allows you to boot and grab files out for example. But again, this depends on whatever software you were using to run MW, and you should probably visit their forums (this is really about how to copy files out of and recover X platform, rather than being about MW). What you asks is likely beyond the scope of this help desk. TiltedCerebellum (talk) 03:52, 4 June 2021 (UTC)
- Sorry, maybe I didn't explain well. I have the hard disk and it is OK. I mounted the HD on another computer and I want to recover the wiki.
- Maybe for this you can provide some help. 137.204.93.178 (talk) 06:36, 4 June 2021 (UTC)
- MediaWiki stores data basically in:
- File system: MediaWiki installation files and skins/extensions (you can download it again), LocalSettings.php, and any uploaded files.
- Database: It contains all the data of the wiki (text, edits, history, users...)
- Filesystem can be recovered easily by simply copying files.
- Database is more complex. You may be able to copy the data files of the database to a new installation, but it may not work if the database software is not the same version or if it's not using the same configuration.
- Once recovered you'll have to setup a webserver environment with PHP and configure it to point to your recovered MediaWiki install (maybe with modifications to LocalSettings.php) Ciencia Al Poder (talk) 11:21, 4 June 2021 (UTC)
- See also manual:Backing up a wiki, probably a lot of it is relevant.
- https://superuser.com/questions/1533792/how-to-recover-and-restore-a-mariadb-database-from-a-broken-centos-7-system might be helpful. A mariadb specific form might have better advice on the DB recover steps Bawolff (talk) 01:46, 6 June 2021 (UTC)
MediaWiki:Googlesearch
I discovered that an inclusion of a bit of a Google Search feature in MediaWiki 1.35, yet I can find official documentation, all I can find is a Meta user help post here that describes partially how to use it. Are there any additional documentation or config parameters someone can point to? (Perhaps I'm just not searching for the correct thing).
This parameter $wgDisableTextSearch = true; seems to enable the google search link/referral form packaged with MediaWiki 1.35, however it of course also disables MediaWiki text search. Looks like in the past there was a way to have both, is there some current way to have both enabled in 1.35? Our site owner prefers Google Search (with also Wikitext search since it is fully up to date), and all of the extensions supporting this in addition to MW search have dropped off (unmaintained), seems a shame that enabling Google Search should require the exclusion of MediaWiki text search. Is there any plan to enable both?
Unfortunately that user dropped off long ago when there was a user conflict between names. Thanks. TiltedCerebellum (talk) 00:13, 4 June 2021 (UTC)
- I don't think there are any plans to have both. The existing google search is meant as a fallback for when on wiki search is overloaded (Mostly relevant to back when Wikimedia hosting was much more fragile, way long ago). It would probably be up to an extension to implement a combined search. On wikimedia, some people have made gadgets to do that. Bawolff (talk) 01:44, 6 June 2021 (UTC)
After changing from php 7.2 to 7.4 and updating MW from 1.26.2 to 1.36.0 my Wiki appears to have no styling
Hello.
Yesterday I updated my php from 7.2 to 7.4 and also mediawiki from 1.26.2 to 1.36.0, and since then my Wiki appears to have no styling anymore.
I updated the wiki as suggested by a friend:
I downloaded the mediawiki-1.36.0.zip-File, unpacked it and uploaded it to my webspace with FileZille in a new folder. Then I downloaded the most recent versions of Extensions I used und put them in the Extensions folder on my webspace. After that I moved LocalSettings.php and /images from the old folder to the new and set chmod (LocalSettings.php = 600, /images = 755) and deleted the old wikifolder and renamed the new to the old. Then I run the Update funktion in mw-config from my webbrowser (only error was that APCu and WinCache could not be found).
I already googled and found this site where it says to open load.php and if you see the message /* No modules requested. Max made me put this here */ it may be an issue with the web server's .htaccess file. But I don't have an .htaccess file in my MediaWiki folder.
Does anyone know how to solve this? 188.102.129.199 (talk) 06:14, 4 June 2021 (UTC)
- Alright, now it works again!
- I just figured maybe some file might've failed to upload correctly and I uplaoded the MW 1.36.0 files again and now everything looks like it should! 188.102.129.199 (talk) 07:34, 4 June 2021 (UTC)
- Just to clarify,
/* No modules requested. Max made me put this here */is the normal expected behaviour when you load load.php with no arguments. Bawolff (talk) 01:42, 6 June 2021 (UTC)
How to configure Proton in wiki1.35
Hello Team,
How I can configure proton in wiki 1.35 with LINUX??
Kindly give proper documentation , As I have followed Proton but it could not explained well.
Error: {"status":500,"type":"internal_error","title":"ReferenceError","detail":"preq is not defined","method":"GET","uri":"/wikipoc.xyz.com/v1/png/Square_funny"}
URL: http://10.73.21.15:8080/wikipoc.xyz.com/v1/png/Square_funny
Kindly suggest. 124.253.224.245 (talk) 06:57, 4 June 2021 (UTC)
- I guess make sure that npm succesfully installed all its dependencies. Bawolff (talk) 01:40, 6 June 2021 (UTC)
Mediawiki sends no Mails..
Hallo,
I have configured $wgSMTP in Mediawiki,but when im trying reset Password .
Mediawiki sends no mails on my account..
Please can anyone suggest me,how to find out it..
Thank you Satyaps2251 (talk) 08:48, 4 June 2021 (UTC)
- Hallo,
- Thank you,but i dont understand.. Satyaps2251 (talk) 09:57, 4 June 2021 (UTC)
- Maybe your server is blocking outgoing access to the SMTP port of the remote server (some hostings block them to prevent spam, unless users explicitly ask to open it), or the remote server doesn't accept your mails.
- If you can run a command-line email tool to send a test email you may find if it errors or what could be the problem. If you feel adventurous, telnet or netcat can be used to send SMTP commands directly to the server. At least it allows for a basic connectivity test. Ciencia Al Poder (talk) 11:15, 4 June 2021 (UTC)
- What are your $wgSMPT settings? When I moved off a shared server to a VPS I had to start using Mailgun (other services are available...) as it wasn't worth the effort setting up a mail server. Jonathan3 (talk) 18:15, 7 June 2021 (UTC)
- Well, now that you mention it... some mail providers, specially Outlook, will block incoming emails from some VPS network ranges, and there's no way to lift them Ciencia Al Poder (talk) 21:27, 7 June 2021 (UTC)
- Hi,Thank you for your reply..
- please can you prpvide screen shots, how can run command-line email tool ( Im not expert on mediawiki..,)
- Thank you very much Satyaps2251 (talk) 10:53, 15 June 2021 (UTC)
- First result from Google, hope it works for you (I haven't viewed it) https://www.youtube.com/watch?v=eEd9EgIWFBg Ciencia Al Poder (talk) 11:10, 15 June 2021 (UTC)
massive bot hits
My Wiki is called "Religion-inJapan, www.univie.ac.at/rel_jap/an
| MediaWiki | 1.31.1 |
| PHP | 7.2.25 (cgi-fcgi) |
| MariaDB | 10.1.48-MariaDB |
| ICU | 50.1.2 |
I use Matomoto and exprerience from time to time (last days of a month) a massive increase in hits, from a few hundred to some 4000 a day. Closer inspection reveals that there are massiv requests on Special Pages such as "statistics". These pages are requested several times within seconds but each hit comes from a different IP address, all in the US. While I have not noticed any particular harm so far, that behaviour is kind of spooky. If nothing else, it violates my hit counting statistics. I add a graph and a visitor log for your reference. First massive increase happened in Dec 2020, second in Jan. 2021, third in May 2021.
My question is, has this phenomenon been noted before? Is there any danger involved? and/or is there a way to prevent such useless hits?
Thank you for consideration
Bernhard Bescheid (talk) 11:12, 4 June 2021 (UTC)
- That sounds like possibly a denial of service attack (but maybe not a well done one). Or maybe just a coincidence.
- A denial of service attack is when people request pages really quickly in order to try and overwhelm a server in order to try and take it offline. In many web applications, statistics pages are good targets because they often take longer than normal pages to render (In mediawiki, there are much better targets, but if it was a generic attack they might not know that)
- Or maybe someone just linked to that page from somewhere prominent, and all the traffic is just natural.
- If you run into performance problems, you could try setting $wgMiserMode = true; Bawolff (talk) 01:39, 6 June 2021 (UTC)
- If it is a crawl bot, maybe you can try deny listing those paths in robots.txt and it might just obey. Hard to predict. —TheDJ (Not WMF) (talk • contribs) 11:18, 8 June 2021 (UTC)
how to enable upload of private videos and their playback on a self-hosted intranet WIKI
Hi
soi far I only found ways to link to videos on streaming sites. But what about hosting my own videos in our intranet?
Thanks 77.7.98.231 (talk) 11:24, 4 June 2021 (UTC)
- You can upload them to MediaWiki, and Extension:TimedMediaHandler provides a player if you embed them inside pages. Ciencia Al Poder (talk) 11:32, 4 June 2021 (UTC)
hello?
Is there a step by step instructions how to add a downloaded wikipedia after installing mediawiki?
I have downloaded enwiki-latest-pages-articles-multistream.xml 2401:7400:C802:62CD:0:0:0:1B3F (talk) 11:30, 4 June 2021 (UTC)
Get links for the summary section
Hello,
I am looking to extract links from a summary section of a wikipedia page. I knew we can use the below url to extract all the links in the page : https://en.wikipedia.org/w/api.php?action=query&prop=links&titles=Deep%20learning
Is there a way where I can extract links from just the summary/overview section of the wikipedia page ?
Thank You 49.37.148.16 (talk) 11:39, 4 June 2021 (UTC)
- Its inefficient (on the wikipedia server side), and maybe not precisely what a human would describe as the "overview" section, but https://en.wikipedia.org/w/api.php?action=parse&page=Deep%20learning§ion=0&prop=links might do what you want.
- An alternative, you could use an html DOM library to parse https://en.wikipedia.org/api/rest_v1/page/html/Deep_learning to get the links you want Bawolff (talk) 01:34, 6 June 2021 (UTC)
Map 8.0.0 Extension issue in MW 1.35.1
Map Extension working fine . Iam able to see maps into Special:MapEditor too.
But unfortunately i run phpunit for testing , php tests/phpunit/phpunit.php extensions/Maps/tests
After then map is not working. iam unable to see Special:MapEditor which is visibale for me earlier.
I have again freshly re-install the Maps but its not working .
{{#display_map:center=Brandenburg Gate Berlin}} trying this too but not working.
pls suggest Pooja2425 (talk) 14:51, 4 June 2021 (UTC)
- Hi Team
- Please suggest Pooja2425 (talk) 08:24, 7 June 2021 (UTC)
Talkpages shown as empty (no threads) in mobile view
Does anyone know what could be causing mobile view to not show any threads in mobile view for the Talk namespace only?
It doesn't show up here on mobile view: https://frackinuniverse.miraheze.org/wiki/Talk:Test_of_talkpage
but it does here: https://frackinuniverse.miraheze.org/w/index.php?title=User:Reception123/sandbox&mobileaction=toggle_view_mobile Reception123 (talk) 15:28, 4 June 2021 (UTC)
- Just in case this was missed. Reception123 (talk) 06:39, 10 June 2021 (UTC)
LocalSettings.php: $wgServer being replaced on restart
On a clean installation(1.36, AWS Bitnami AMI), I updated the value of $wgServer to reflect the IP of the host. This is a temporary instance that has no DNS name yet. Everything works as expected except, whenever I restart the services, this value gets replaced. The last time I tried testing this it changes the value to 35.172.204.237.
Can someone explain this behavior? Is it because I am using an IP address? Rednevals (talk) 19:01, 4 June 2021 (UTC)
- You're saying that your LocalSettings.php file is being automatically edited every time you restart the server?
- If you just mean that the server's IP is changing (But the value in LocalSettings.php is not changing), that's expected on AWS if you're not using an elastic IP. Bawolff (talk) 01:28, 6 June 2021 (UTC)
- The value that I entered for $wgServer, which is the IP address of the EC2 instance, changes every time I restart the MediaWiki services. The VM is not being restarted and the IP has not changed. Other additions that I have made to the file are not touched, just this one value. Rednevals (talk) 13:42, 7 June 2021 (UTC)
- How do you restart "MediaWiki services"? MediaWiki is not a service. It's a web application run by PHP. PHP can be restarted if PHP-FPM is used, otherwise if you're using Apache, you'd restart Apache. There's no way PHP can modify the LocalSettings.php file upon restart Ciencia Al Poder (talk) 14:01, 7 June 2021 (UTC)
- I execute the following:
sudo /opt/bitnami/ctlscript.sh restart- The entire stack is restarted... Rednevals (talk) 14:06, 7 June 2021 (UTC)
- Read https://community.bitnami.com/t/opt-bitnami-apps-mediawiki-bnconfig-no-such-file-or-directory/84466/4
- I don't know why bitnami uses an IP address for $wgServer. That's wrong, specially if the IP is changing, because it will cache pages with the wrong IP address. Ciencia Al Poder (talk) 14:18, 7 June 2021 (UTC)
- Thanks for the link, this will help.
- I'm building a POC and do not have a DNS resolvable hostname at the moment. Once I spin up the production instance, I will be able to use the proper hostname. Rednevals (talk) 14:27, 7 June 2021 (UTC)
"The requested page title was invalid, empty, or an incorrectly linked inter-language or inter-wiki title." error
So we recently forked another wiki as the basis for our own. Most of the pages from the parent wiki made the transition just fine however some of them give the error
"The requested page title was invalid, empty, or an incorrectly linked inter-language or inter-wiki title. It may contain one or more characters that cannot be used in titles."
when we try to view them. We know the problem is something in the title, it appears to be the word "mission" of all things, however because of the error mediawiki will not allow us to edit, or even delete, the problem pages with the web interface. Does anyone here have any ideas and suggestions on how to resolve this? While we would prefer to repair the pages a way to simply delete them so we can re-enter in the data manually would work for us as well. 97.120.82.176 (talk) 20:15, 4 June 2021 (UTC)
- The unofficial mediawiki discord server let us know the problem is because we didn't have some namespaces defined and pointed us to: Manual:Using custom namespaces. With this we were able to resolve the issue and our pages are working correctly now. Posting the advice we were given here in case anyone else has this problem as well. 97.120.82.176 (talk) 22:53, 4 June 2021 (UTC)
Action Blocked
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.
While creating a new item "Aakash Kumar Jha'' whose known and famous person in India it is showing -- This action has been automatically identified as harmful, and therefore disallowed. If you believe your action was constructive, please inform an administrator of what you were trying to do. A brief description of the abuse rule which your action matched is: LTA M4
Can anyone please help me to get rid of that? Please 223.178.253.19 (talk) 15:35, 5 June 2021 (UTC)
- Was it on this wiki? If, then no, as pages which are out of project scope should not be created. Zabe (talk) 16:09, 5 June 2021 (UTC)
External links icon does not show up
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.
e.g. https://lakeus.xyz/wiki/Template:Translation_category
the CSS is weird; it contains double slashes thus becoming a invalid path. (had to write a hotfix for now)
Basically all skins are affected, unless skins like Vector which replaces the default external icon with the icons in skin files.
.mw-parser-output a.external, .link-https {
background-image: url(//resources/src/mediawiki.skinning/images/external-ltr.svg?59558);
background-position: center right;
background-repeat: no-repeat;padding-right: 13px;
} Lakejason0 (talk) 07:47, 6 June 2021 (UTC)
- What do you have $wgServer, $wgCanonicalServer, $wgScriptPath and $wgResourceBasePath set to in LocalSettings.php? (Its ok if you don't have all of those set) Bawolff (talk) 09:12, 6 June 2021 (UTC)
- $wgServer is "https://lakeus.xyz"; $wgScriptPath is ""; Resource path is made equal to script path in LocalSettings.php. Lakejason0 (talk) 10:55, 6 June 2021 (UTC)
- $wgServer is "https://lakeus.xyz"; $wgScriptPath is ""; Resource path is made equal to script path in LocalSettings.php. Lakejason0 (talk) 10:26, 6 June 2021 (UTC)
- its probably something wrong with $wgResourceBasePath, but what you describe sounds fine (if its value was a single '/' it might cause what you're describing.
- You could experiment making it a full url: $wgResourceBasePath = 'https://lakeus.xyz/'; . Not sure if that will work, but worth a try. Bawolff (talk) 19:58, 6 June 2021 (UTC)
- I've tested setting $wgResourceBasePath to $wgServer, but it doesn't help. It's being ignored in the generated CSS apparently, which makes sense since it would be used for load.php URLs and then all resources referenced by them won't require the hostname, because they would be loaded relative to the load.php URL Ciencia Al Poder (talk) 11:04, 7 June 2021 (UTC)
On the problem of abusefilter
Recently, there are some saboteurs on zhwiki. They seem to be led by a user with rollback right. Unfortunately, because of this problem, our abusefilter can be said to be invalid. They can learn the content of abusefilter at any time.
Before, the private abusefilter of our abusefilter could be seen by anyone until a patch appeared. (phab:T35380)
So I think, can we make an abusefilter only viewed by the administrator and even the creator themselves? BureibuNeko (talk) 11:47, 6 June 2021 (UTC)
- I think this is not a major problem. But you can make an abusefilter by using toolforge and you can see this-
- wikitech:Help:Toolforge ↠Tanbirzx (✉) 18:38, 6 June 2021 (UTC)
- @Tanbirzx That answer makes no sense. This is about the configuration of Extension:AbuseFilter on a Wikimedia wiki. This has nothing to do with Toolforge. Please don't add misleading comments. Malyacko (talk) 19:17, 6 June 2021 (UTC)
- wouldn't it make more sense just to remove rollback rights from the troublemaker?
- If you want to change which groups can see the details of anabuse filter (e.g
- Remove abusefilter-view-private right from rollbackers) file a request in phabricator including a link to a community discussion about the change. Bawolff (talk) 19:51, 6 June 2021 (UTC)
- Well, unfortunately, we don't know who it is. I want to establish a level for administrator to view separately. I wonder if this can be achieved technically? Thanks! BureibuNeko (talk) 12:08, 8 June 2021 (UTC)
- you could try asking on phab who is leaking data.
- The information is recorded, however its usually not given out. I'm unsure if server admins are allowed to give that out, but it wouldn't hurt to ask. Bawolff (talk) 01:25, 9 June 2021 (UTC)
- OK, thank you. I don't think it's possible, but thank you for your opinion. BureibuNeko (talk) 12:39, 9 June 2021 (UTC)
- Instead of removing permissions from the rollbacker BureibuNeko (talk) 12:09, 8 June 2021 (UTC)
- No. AbuseFilter only supports "public" and "private" filters. There are no other levels. Taavi (talk!) 13:36, 8 June 2021 (UTC)
- Ok... That's too bad.... BureibuNeko (talk) 12:40, 9 June 2021 (UTC)
- The view of abuse filter is controlled by the abusefilter-view right for all filters, and abusefilter-view-private for private filters.
- The abusefilter-view right can be removed from everybody except admins. This means "public" filters doesn't necessarily mean everyone can view them, but users with the abusefilter-view right Ciencia Al Poder (talk) 14:55, 9 June 2021 (UTC)
Error running update.php, 1.30 upgrading to 1.36
Hi - I have a pretty simple mediawiki install currently at 1.30, upgrading to 1.36.
When running update.php, I am hitting the following error (stack trimmed, can provide more if needed):
Changing 'revision.rev_text_id' default value
Modifying table site_stats ...done.
Populating ar_rev_id.
Populating ar_rev_id...
MediaWiki\Storage\NameTableAccessException from line 43 of .../mediawiki-1.36.0/includes/Storage/NameTableAccessException.php: Failed to access name from slot_roles using name = main
#0 .../mediawiki-1.36.0/includes/Storage/NameTableStore.php(263): MediaWiki\Storage\NameTableAccessException::newFromDetails('slot_roles', 'name', 'main')
#1 .../mediawiki-1.36.0/includes/Revision/RevisionStore.php(2112): MediaWiki\Storage\NameTableStore->getId('main')
#2 [internal function]: MediaWiki\Revision\RevisionStore->MediaWiki\Revision\{closure}('main')
#3 .../mediawiki-1.36.0/includes/Revision/RevisionStore.php(2113): array_map(Object(Closure), Array)
PHP version is 7.4.15.
Only 2 extensions loaded, SyntaxHighlight_GeSHi and WikiEditor 104.229.35.47 (talk) 20:28, 6 June 2021 (UTC)
- Update: restored original 1.30 database and instead decided to try upgrade to 1.35.2 instead of 1.36.
- This worked fine. 104.229.35.47 (talk) 02:59, 7 June 2021 (UTC)
- I am have run into the exact same thing when trying to go from 1.30 on a RHEL 7 server to 1.36 on RHEL8. I would be interested in a solution to get 1.36 to work. 74.209.219.198 (talk) 21:14, 7 June 2021 (UTC)
- I have the same issue when upgrading from 1.31.1 to 1.36.1. 85.238.65.208 (talk) 18:00, 29 June 2021 (UTC)
- Finally, I found a workaround: it needs to add a record manually to the slot_roles table with mysql after you selected your mediawiki database with the following command:
- insert into slot_roles (role_name) values ("main")
- After that run again the update.php and it will continue the process. 85.238.65.208 (talk) 20:17, 29 June 2021 (UTC)
- I fixed the problem via run update.php in mediawiki 1.32, after I upgraded to mediawiki 1.36 and run update.php, successfully. Виталий Липатов (talk) 20:25, 30 June 2021 (UTC)
- Solution by "85.238.65.208" works fine. TY 91.0.190.182 (talk) 12:47, 14 August 2021 (UTC)
- I did not had the slot_roles table in my database, but based on this: Manual:Slot roles table i ran sudo php populateContentTables.php and after that I could run update without problems. 84.3.95.61 (talk) 19:44, 1 October 2021 (UTC)
Need to Install PDF Renderer Service which would support to embed the images.
HI Support Desk,
Following are the installed software product version(s) those are being used in our RHEL7 server environment.
Installed software
| Product | Version |
|---|---|
| MediaWiki | 1.35.1 |
| PHP | 7.4.15 (apache2handler) |
| MySQL | 8 |
| OS | LINUX |
We are looking for PDF Renderer Service which would support to embed the images in a Wiki page to a downloaded PDF file.
We have tried with Extension:ElectronPdfService which is referred the Electron server under Git. But its not working it's deprecated.
So, please suggest us if there any other pdf renderer server available which is being used in https://www.mediawiki.org/ page. We expect if we could implement same in our wiki application
We have also tried PROTON:
I have installed this Proton, but it did not work properly. As it's not well explained that how to integrate proton.
I followed this, https://m.mediawiki.org/wiki/ServiceTemplateNode/GettingStarted
it did not work successfully.
Error: {"status":500,"type":"internal_error","title":"ReferenceError","detail":"preq is not defined","method":"GET","uri":"/wikipoc.xyz.com/v1/png/Square_funny"}
URL: http://10.73.21.15:8080/wikipoc.xyz.com/v1/png/Square_funny
Kindly suggest how we can use this in our wiki 1.35.1.
Thanks
Ashish Akki30 (talk) 08:26, 7 June 2021 (UTC)
Please help me with Main Page layout
Our company has just instalees MediaWiki.
We would like to use this kind of blocks for main page: https://yadi.sk/i/xBBc7uoXcNy70Q
Please help to add them to main page. Itwasabadidea (talk) 14:19, 7 June 2021 (UTC)
- See Template:Main page and Template:Main page/styles.css Malyacko (talk) 16:05, 7 June 2021 (UTC)
- Thank you for the answer! I am still not clear how to use it..
- can help with simple steps ? How do I import Mainpage Template to mine wiki ? i need only those blocks... Itwasabadidea (talk) 14:16, 10 June 2021 (UTC)
- @Itwasabadidea Maybe https://meta.wikimedia.org/wiki/Small_wiki_toolkits/Starter_kit/Mainpage_customization provides some more basics? We cannot teach the basics of CSS here though Malyacko (talk) 13:09, 15 June 2021 (UTC)
intl
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 try to install MediaWiki 1.36.0, and I receive this error:
MediaWiki 1.36 internal error
Installing some PHP extensions is required.
Required components
You are missing a required extension to PHP that MediaWiki requires to run. Please install:
- What is unclear with the error message and its instructions? Malyacko (talk) 16:05, 7 June 2021 (UTC)
- What instructions? I have already installed MediaWiki 1.35.0 and 1.35.1, and I did not received this error. --Paloi Sciurala (talk|contribs) 16:10, 7 June 2021 (UTC)
- As noted in the MediaWiki 1.36 upgrade notes, 1.36 and newer require the php intl extension. What instructions? "You are missing a required extension to PHP that MediaWiki requires to run. Please install: intl". Taavi (talk!) 16:16, 7 June 2021 (UTC)
- At https://www.php.net/intl there are only a lot of links. At https://www.php.net/manual/ro/intl.installation.php there is no step-by-step guide about from where to download the files and how to install. --Paloi Sciurala (talk|contribs) 16:53, 7 June 2021 (UTC)
- Which exact operating system is running on that machine? Malyacko (talk) 12:13, 8 June 2021 (UTC)
- MediaWiki files are installed on my computer, that uses a version of Windows 10. --Paloi Sciurala (talk|contribs) 15:11, 8 June 2021 (UTC)
- The problem is that I do not know how to install intl, and I do not understand how from https://www.php.net/intl. --Paloi Sciurala (talk|contribs) 14:10, 12 June 2021 (UTC)
- What should I do in order to install intl? I really do not understand how from https://www.php.net/intl. --Paloi Sciurala (talk|contribs) 13:14, 25 June 2021 (UTC)
- If you installed PHP, you do not need to ''install'' intl, it should already be there, you just need to enable it. To check you have the necessary file, go to your PHP /ext folder, and make sure that php_intl.dll file is there.
- In your PHP folder, open the php.ini file with Notepad (if you only have a php.ini-development file, copy paste it in the same folder, and rename it to php.ini). find the line ;extension=intl and remove the semicolon, so it will be extension=intl
- Also find the line that points to the PHP extensions folder /ext and edit it to the correct path. For me it's extension_dir = "C:/PHP/ext"
- Using Apache server, I also had to do the following: Copy icu****.dll files (about five of them, they should already be there when you install PHP) from your PHP root folder to Apache /bin folder. Then restart Apache service and you should be good to go.
- You can check the result with a PHP info page as described in a youtube video called Install & Set Up PHP on Apache Windows 10 (it won't let me insert the link, just search for it).
- Hope this helps. Domagoj Starcevic (talk) 11:03, 12 November 2022 (UTC)
- The error when removing the semicolon out of the extension=intl did not work for me, the error still continues, any suggestions? Nah1925 (talk) 20:02, 14 March 2023 (UTC)
- You're probably editing the wrong php.ini. See Manual:php.ini for hints to see which php.ini is being used. Also, your webserver or php-fpm may need to be restarted to pick the new settings Ciencia Al Poder (talk) 21:41, 16 March 2023 (UTC)
- Wasn't that, i actually edited the real one and i forgot to restart apache for it to actually work, after i restarted, it worked fine. Nah1925 (talk) 23:02, 16 March 2023 (UTC)
- @Domagoj Starcevic: It works. --Paloi Sciurala (talk|contribs) 01:15, 18 November 2022 (UTC)
- This is from my notes of setting up an Ubuntu 18.04 Digital Ocean VPS recently:
sudo apt install php-intl- I think after that you need:
sudo systemctl restart apache2Jonathan3 (talk) 18:02, 7 June 2021 (UTC)- Similar issue here, intl is installed, but WikiMedia does not recognize it as such. Extension is enabled in php.ini, extension dir is set correctly, other extension prerequisites that wikimedia reported run fine, but intl does not. 71.9.94.49 (talk) 18:02, 8 June 2021 (UTC)
- Even though intl is installed, wikimedia reports the extension as missing. Does it need a default_locale?
- intl
- Internationalization support => enabled
- ICU version => 68.1
- ICU Data version => 68.1
- ICU Unicode version => 13.0
- Directive => Local Value => Master Value
- intl.default_locale => no value => no value
- intl.error_level => 2 => 2
- intl.use_exceptions => Off => Off 71.9.94.49 (talk) 18:07, 8 June 2021 (UTC)
- check if its enabled on the webserver. Whether intl is enabled in commandline php is separate from if its enabled on the webserver. Bawolff (talk) 01:23, 9 June 2021 (UTC)
- How can I check, if intl is running in easyphp devserver. I enabled intl in php.ini, restarted server and restarted PC (windows). Still error message: extension intl is missing. 2A02:8070:E1BA:4C00:7497:77A6:8A5C:9F27 (talk) 19:13, 28 March 2022 (UTC)
- you can create a php webpage containing just
<?php phpinfo();- And have it served by websserver and view in browser. Bawolff (talk) 06:08, 1 April 2022 (UTC)
- These work's for me, removing the semicolon from:
- ;extension=intl
- in the file php.ini Rogelioga (talk) 17:53, 30 March 2022 (UTC)
- Hi, thanks for the answer, but with enable intl i mean, i tried uncommenting it and activate it in the easy php server settings :( still the error message. I even tried using a little older version of php.
- any other ideas? 2A02:8070:E1BA:4C00:46A:63DD:80A4:4DC1 (talk) 19:54, 30 March 2022 (UTC)
- Where do I find the php.ini file? 178.254.128.122 (talk) 14:26, 31 March 2022 (UTC)
- See: Manual:php.ini Ciencia Al Poder (talk) 14:43, 31 March 2022 (UTC)
- Thanks, but still get the error message. Any other ideas? 2A02:8070:E1BA:4C00:748A:BF4F:EE49:160C (talk) 18:21, 5 April 2022 (UTC)
- I share my solution in windows. click on the xampp's apache' config and choose the PHP(php.ini),change the ;extension=intl to extension=intl. In the end ,restart the xampp and start the apache and mysql. Jaya Johnson (talk) 13:28, 9 April 2022 (UTC)
- Hi,
- Your instructions are incomplete .Nothing really happens.It just shows a notepad with many instructions and introductions. Tumbuka Arch (talk) 22:38, 1 October 2022 (UTC)
- I am unable to resolve this error. I give up on the installation. 32.220.168.171 (talk) 15:45, 22 April 2023 (UTC)
- try using wampserver. Nah1925 (talk) 18:10, 23 April 2023 (UTC)
Job postings by the WMF
June and July are often busy times for the WMF's hiring teams. If you've got experience with MediaWiki, or know someone who does, and you are curious about what jobs are opening up, then https://wikimediafoundation.org/about/jobs/ is the page to watch. Most MediaWiki-related jobs are in the "Product" and "Technology" sections of that page. Whatamidoing (WMF) (talk) 17:50, 7 June 2021 (UTC)
- Does the WMF ghost? Leaderboard (talk) 12:44, 8 June 2021 (UTC)
- I'm not sure what that means. Whatamidoing (WMF) (talk) 20:33, 8 June 2021 (UTC)
- https://www.techrepublic.com/article/the-troubling-trend-of-ghosting-in-job-recruitment/
- Used to it having applied for > 400 positions over three years (and being ghosted from ~35% of them at least)...
- TLDR; I don't want to apply to a role in the WMF only to not have a clue on whether I passed or not. Leaderboard (talk) 21:35, 8 June 2021 (UTC)
- I don't know what their intended practices are, but I imagine that even if you eventually get hired, it may feel like you're being ghosted during the process. The WMF is surprisingly slow about hiring people. A position that's usually filled within three or four weeks (e.g., in a typical Silicon Valley company) could take the WMF three or four months. Much of this seems to be due to scheduling rather than not being able to find qualified candidates.
- I can also think of two WMF staff who interviewed for one position, but were hired into a different one instead (equivalent in one case and better in the other). It wouldn't have been appropriate to tell them that they've "been rejected" when they were about to get a (different) offer. Whatamidoing (WMF) (talk) 18:48, 22 June 2021 (UTC)
Google Analytics on MediaWiki Page
Hello
I would like to know how to add my wiki page to a google analytics tracking. I have tried different approaches, using the tag manager or trying to add the necessary codes over <head> and <body>, but I am really really new to this.
Can anyone help me with that?
Thank you Viniciusveri (talk) 19:35, 7 June 2021 (UTC)
- (What is a "tag manager"?) See e.g. Extension:Google Analytics Integration or other extensions Malyacko (talk) 09:05, 8 June 2021 (UTC)
- I've added this to LocalSettings.php:
- Jonathan3 (talk) 20:52, 10 June 2021 (UTC)
function myTrackingCode($skin, &$text) { $text .= <<<EOD <!--HTML HERE--> EOD; return true; } $wgHooks['SkinAfterBottomScripts'][] = 'myTrackingCode';
Unable to upload image
Hello Team,
I am not able to upload image. Please find error below.
Could not open lock file for "mwstore://local-backend/local-public/5/57/Equinor-banner-enterprise-wiki.jpg". Make sure your upload directory is configured correctly and your web server has permission to write to that directory. See https://www.mediawiki.org/wiki/Special:MyLanguage/Manual:$wgUploadDirectory for more information. 143.97.2.35 (talk) 07:52, 8 June 2021 (UTC)
- Hi, what is unclear with the error message that you pasted? Please also see the "Before you post" sidebar section here - thanks. Malyacko (talk) 09:04, 8 June 2021 (UTC)
- HI ,
- I did not get what you replied.
- I am facing issue in image uploads. Its giving me error:
- Could not open lock file for "mwstore://local-backend/local-public/5/57/Equinor-banner-enterprise-wiki.jpg". Make sure your upload directory is configured correctly and your web server has permission to write to that directory. 143.97.2.35 (talk) 09:14, 8 June 2021 (UTC)
- Hi, I asked what is unclear with the error message. The error message says: Make sure your upload directory is configured correctly and your web server has permission to write to that directory. Malyacko (talk) 12:12, 8 June 2021 (UTC)
Problem encoding Visual Editor - Accent
Hi,
I had provisionning a new mediawiki 1.36. Ubuntu 20.04, php 7.4.3, mysql 8.0.25, apache2.
When i use the visual editor for the first time (before, no problem), the character like é become "é". I saw on database side, the text is really writing like "é" in the table.
My database use UTF-8.
Results of command : show variables like "collation%";
utf8mb4_0900_ai_ci
Results of command : show variables like "char%";
| character_set_client | utf8mb4
| character_set_connection | utf8mb4
| character_set_database | utf8mb4
| character_set_filesystem | binary
| character_set_results | utf8mb4
| character_set_server | utf8mb4
| character_set_system | utf8mb3
| character_sets_dir | /usr/share/mysql/charsets/
However, on the first page, no problem with accent character.. Just in the area of visual editor. After leave visual editor, the page keep the encoding problem.
Thanks a lot.
Kind regards,
Gwen 217.167.243.253 (talk) 10:24, 8 June 2021 (UTC)
- If, i try to edit page with 'Edit source', i have an error : It appears that your browser does not support Unicode. It is required to edit pages, so your edit was not saved.
- Thanks,
- Kind regards,
- Gwen 217.167.243.253 (talk) 12:26, 8 June 2021 (UTC)
- I solved the problem. It was on the php side. I modified the php.ini, specifically UTF-8 in iconv and exif.
- exif.encode_unicode = UTF-8
- iconv.input_encoding = UTF-8
- iconv.internal_encoding = UTF-8
- iconv.output_encoding = UTF-8
- Kind regards,
- Gwen 217.167.243.253 (talk) 13:52, 8 June 2021 (UTC)
Phabricator
Hi,
I tried to connect to Phabricator by logging in with my Mediawiki account, then I failed on writting my email. I can't check my email for connecting, nor changing it from Phabricator.
How can we fix that?
I don't even understand why my account didn't link by itself, I have a global account since 2011. LD (talk) 00:40, 9 June 2021 (UTC)
- @LD Please bring this up Talk:Phabricator/Help instead (as linked from the Phabricator frontpage). This is about an incorrect email address? Thanks. Malyacko (talk) 07:32, 9 June 2021 (UTC)
- @Malyacko thanks for answering, I moved this subject to /help. This is what it is. LD (talk) 12:04, 9 June 2021 (UTC)
Edit occasionally removes code from a page on save
After an edit I click Save and then all <br> are gone, but also code as <span style="font-family: 'Courier New'; font-weight: normal; font-style: normal; text-decoration: none;">./configupdate.sh</span>.
And 'just for fun' it also removes my surname from the page, corrupting my e-mailadres.
Unfortunately this happens occasionally, most edits go well. 145.48.13.13 (talk) 11:57, 9 June 2021 (UTC)
- What editor are you using? There's the old plain wikitext editor, VisualEditor, and some extensions provide a WYSIWYG editor. Ciencia Al Poder (talk) 12:39, 9 June 2021 (UTC)
- In Preferences I had "Enable the visual editor. It will be available in the following namespaces: User, File, Category, (Main)" turned on,
- after the corruptions I've turned it off.
- Same result, unfortunately
- This "Enable the editing toolbar
- This is sometimes called the '2010 wikitext editor'." is turned on 145.48.13.13 (talk) 12:45, 9 June 2021 (UTC)
- addition:
- MediaWiki 1.35.1
- VisualEditor 0.1.2 and WikiEditor 0.5.3 are installed 145.48.13.13 (talk) 12:47, 9 June 2021 (UTC)
- Maybe your server has some Web Application Firewall or similar that strips what it interprets may be a XSS injection attempt, resulting in some parts of the code removed from Visual Editor that never arrives to the wiki Ciencia Al Poder (talk) 13:18, 9 June 2021 (UTC)
- I don't think so.
- It happens occasionally and
- it's a private server there is no firewall between the host and the server.
- But, i'll check with the FW admin, and i'll turn off the server FW 145.48.13.13 (talk) 06:25, 10 June 2021 (UTC)
- occasionally is a b*tch, MediaWiki-edit is working as it's supposed to...
- Haven't turned of the FW yet. 145.48.13.13 (talk) 09:41, 10 June 2021 (UTC)
Doubt with #if function
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.
Sorry if this is a stupid question, but I'm kinda new to mediawiki and couldn't find any useful info online.
I created a simple template, and wanted to make it so, when the first field is empty ({{{1|}}}), both colums are merged into one, showing "N/A".
Can't use colspan because of the #if funcion, and <span> doesn't seem to work either, acting only on the word and not on the whole field.
Here's an example on what the template looks like at the moment:
{| width="100%" class="sortable" style="text-align:center; background: #e1e1e1; border:3px solid #5b5a5a"
|-
! colspan="2" | Name |-
| style="background:#FFF" width="50%" | {{#if {{{1|}}}| {{{1|}}} | N/A}}
| style="background:#FFF" width="50%" | {{#if {{{2|}}}| {{{2|}}} | N/A}}
|}
Thank you in advance for the help. MauCavans (talk) 15:35, 9 June 2021 (UTC)
- If you provided a literal copy, the reason is obvious: every parser function is separating by
:from (first) parameter.{{#if:condition|yeah}}will work. PerfektesChaos (talk) 18:42, 9 June 2021 (UTC)
- No, this isn't a literal copy, my bad for the mistype.
- My doubt was another:
- - if the text string {{{1|}}} is not empty, I want the value to only occupy its column (as it does)
- - if the text string {{{1|}}} is empty, I want one "N/A" to occupy both the columns
- Doing {{#if: {{{1|}}}| {{{1|}}} |colspan="2"| N/A}} doesn't seem to work, as #if: function will take colspan="2" as third parameter.
- As I said before, I'm pretty new to mediawiki, so sorry if there's an obvious way to do it that I don't know yet. MauCavans (talk) 23:07, 9 June 2021 (UTC)
- try
- {{#if: {{{1|}}}| {{{1|}}} {{!}}colspan="2"|N/A }} Bawolff (talk) 09:39, 10 June 2021 (UTC)
- sometimes it will be easier to use html-style table syntax.
- Also remember when using wiki style table syntax, you can use {{!}} if you need the | to go to the table layer. Bawolff (talk) 19:11, 9 June 2021 (UTC)
- This seems to do what you want:
{| class="wikitable" |- ! colspan="2" | Name |- | {{#if: {{{1|}}} | {{{1}}} {{!}} {{{2|}}} | colspan="2" {{!}} N/A }} |}- I've tested it with:
- Jonathan3 (talk) 12:32, 10 June 2021 (UTC)
{{test template|a|b}} {{test template|c|}} {{test template||d}} {{test template}} - Yes, thank you, that's exactly what I was looking for!
- Strangely enough, the | style="background:#FFF" at the start of the line is what seems to be causing the bug. I'll have to look for another way around it.
- Thanks a lot to all of you for the help! MauCavans (talk) 17:53, 10 June 2021 (UTC)
- Maybe it's the # symbol. You could try "background: white" or use a class and Common.css Jonathan3 (talk) 18:26, 10 June 2021 (UTC)
- Thank you, I fixed it by setting the same backgroun to every line:
{| width="100%" class="sortable" style="text-align:center; background: #e1e1e1; border:3px solid #5b5a5a" |- ! colspan="2" | Name |- style="background=#FFF" | {{#if: {{{1|}}} | width="50%"{{!}}{{{1|}}} {{!}} width="50%"{{!}}{{{2|}}} | colspan="2"{{!}}N/A}} |}
- Again, really really thanks for the help. This little thing was bugging me for so long. MauCavans (talk) 18:37, 10 June 2021 (UTC)
- You're welcome. It's nice to hear that something has helped. Jonathan3 (talk) 20:49, 10 June 2021 (UTC)
Is it possible to transclude only a certain number of dot points without using ?
Hi. I'm new to MediaWiki so sorry if I'm missing something obvious.
I have a news page on my wiki that contains a list of news items formatted into dot points on a page in reverse chronological order. I'd like to transclude most recent (top most) 6 to the main page (sort of like ITN on Wikipedia). I know you can achieve this with <onlyinclude>, but then I'm relying on whoever adds the new news item to remember to move the <onlyinclude> up.
Seems like Extension:Labeled Section Transclusion would be a solution if I wanted to transude the first 6 sections, but that doesn't solve my problem with dot points.
Does anyone have any alternative solutions? TwentyOneX (talk) 15:53, 9 June 2021 (UTC)
- Basically wiki pages are showing static contents. A news ticker would be a challenge.
- If this should run semi-automatic, you would need advanced techniques as offered by Lua modules, and quite a lot of experience.
- The index has no knowledge about newest messages, if they are on other pages, and it is hard to find arbitrary named pages to be included.
- What can be achieved is providing the index of the six most recent news in the top region of a wiki page, which will contain all stories in detail, and generate this index new every time that page was changed, perhaps by adding entirely new sections. That can be done by reading the page content itself, hopefully without creating a loop. At least the index page can read the one page with all messages in detail, grabbing the first or last six headlines.
- Another approach would be a JavaScript gadget which is a much better technology to deal with dynamic things, creating some HTML code from whatever and inserting that wherever. PerfektesChaos (talk) 18:53, 9 June 2021 (UTC)
- you could give it to a template that outputs something different using {{#ifeq:{{PAGENAME}}|...|..., but lua is probably the best solution. Bawolff (talk) 19:08, 9 June 2021 (UTC)
- Thank you for the feedback. As suspected this would require lot more effort than it can be justified as a "nice to have" feature. I think the manual workload is doable so far, so I think I'll put implementing this on the back-burner. TwentyOneX (talk) 07:20, 10 June 2021 (UTC)
- I did something similar with a modified version of the old bullet feed extension. Essentially, your bullet points (I guess this is the same as dot points) are the basis of an RSS feed, and you use an RSS reader on the other page. Jonathan3 (talk) 10:42, 10 June 2021 (UTC)
Mediawiki 1.36.0 Installer not working!
I just downloaded Mediawiki 1.36.0 and tried to install from Windows 10. And it failed to open the installation page! Here I have attached the installation page.
I would like to mention that, on this same environment i am running a Mediawiki 1.35.1 Nasir Khan Saikat • talk • 17:44, 9 June 2021 (UTC)
- You should just ignore these warnings for the meantime. This is phab:T278037 – Ammarpad (talk) 08:24, 11 June 2021 (UTC)
- @Ammarpad thanks for your help. Nasir Khan Saikat • talk • 17:52, 19 June 2021 (UTC)
failed to open stream: No such file or directory LocalSettings.php
Hi, after installing mediawiki in docker,i get
Fatal error: require_once(): Failed opening required '/var/www/html/LocalSettings.php' (include_path='/var/www/html/vendor/pear/console_getopt:/var/www/html/vendor/pear/mail:/var/www/html/vendor/pear/mail_mime:/var/www/html/vendor/pear/net_smtp:/var/www/html/vendor/pear/net_socket:/var/www/html/vendor/pear/net_url2:/var/www/html/vendor/pear/pear-core-minimal/src:/var/www/html/vendor/pear/pear_exception:.:/usr/local/lib/php') in /var/www/html/includes/Setup.php on line 145
Here my docker-compose.yml
version: '2.1'
services:
mediawiki:
image: arm64v8/mediawiki
restart: always
ports:
- 8080:80
links:
- database
volumes:
- /var/www/html/images
- ./LocalSettings.php:/var/www/html/LocalSettings.php
database:
image: mariadb
restart: always
environment:
# @see https://phabricator.wikimedia.org/source/mediawiki/browse/master/includes/DefaultSettings.php
MYSQL_DATABASE: my_wiki
MYSQL_USER: wikiuser
MYSQL_PASSWORD: example
MYSQL_RANDOM_ROOT_PASSWORD: 'yes'
I need help :-) 88.127.245.110 (talk) 21:14, 9 June 2021 (UTC)
- The LocalSettings.php file is been mounted as a directory. You should remove from the volume and rerun docker-compose 190.215.14.121 (talk) 13:57, 19 May 2022 (UTC)
How can I suppress redirects when moving a page to/from specific namespace?
Is there any configuration or extension can suppress redirects automatically when moving a page to/from specific namespace, particularly for users without suppressredirect permission? Func86 (talk) 14:49, 10 June 2021 (UTC)
- Please see this-
- Help:Moving a page and
- also see this- [[2]] for more help. ↠Tanbirzx (✉) 17:41, 10 June 2021 (UTC)
- I guess it's not possible unless you give that user right to the relevant users.
- I wonder whether you could automatically tick the box with JavaScript/jQuery. Jonathan3 (talk) 18:49, 10 June 2021 (UTC)
Timed out connection?
Five or ten minutes ago, the project sites connected to the server weren't working properly. Meanwhile, the Internet in my area overall has been fine. Right now, I'm able to connect Wikipedia and other projects. What went wrong with the servers or whatever? George Ho (talk) 07:25, 11 June 2021 (UTC)
- Hi, this is the support desk for the MediaWiki software. In case you refer to some Wikimedia websites (?), then feel free to ask on meta:Tech or IRC or such if you have good reasons to think that something wasn't "working properly" (whatever that means) server-side. Malyacko (talk) 12:23, 11 June 2021 (UTC)
- if you want to dig, if its on wikimedia end it might be listed in https://wikitech.wikimedia.org/wiki/Server_Admin_Log . If its on your end it will be pretty hard to tell. Bawolff (talk) 23:11, 11 June 2021 (UTC)
PDF upload failure
Hi!
I use MadieWiki 1.35.2 on Ubuntu. Everything works fine including image upload.
Now I allowed also PDF upload via
$wgFileExtensions = [ 'png', 'gif', 'jpg', 'jpeg', 'webp', 'pdf' ];
Unfortuately it does not work. I get the error
Fehler beim Hochladen
Das Verzeichnis „mwstore://local-backend/local-public/5/5f“ konnte nicht angelegt werden.
The permissions seems to be Ok since I can actually upload images.
Enabling the "PdfHandler" extension (of course with all needed packages installed) makes no difference. I get the same error.
Any clue about the reason of this issue i.e. why does especially an upload of a PDF gives this error?
TIA,
GreatOom GreatOom (talk) 07:26, 11 June 2021 (UTC)
- Extension:PdfHandler#Troubleshooting
- Manual:How_to_debug#Logging —TheDJ (Not WMF) (talk • contribs) 14:04, 11 June 2021 (UTC)
- Thanks TheDJ.
- Your reply did help to get a clue what's wrong. I enabled debug output and there was indeed still a permissions issue.
- The "images" directory itself was owned by root and not by www-data and therefore the upload was not possible because no sub directory could be created. GreatOom (talk) 06:34, 14 June 2021 (UTC)
Delete Page
A wikitia page was created from a draft wikipedia page of mine. Is there a way to delete the wikitia page as we ended up deleting the wikipedia draft.
thank you 151.198.1.34 (talk) 12:47, 11 June 2021 (UTC)
- Have you tried contacting wikitia ? While they might run MediaWiki, the MediaWiki software, nor Wikipedia are affiliated in any sort of way with wikitia. —TheDJ (Not WMF) (talk • contribs) 13:47, 11 June 2021 (UTC)
- Thanks. Let me try. I haven't been able to figure out how to contact them. 151.198.1.34 (talk) 19:21, 11 June 2021 (UTC)
- Just don’t..why would you have to? Michellelobin (talk) 18:20, 13 June 2021 (UTC)
Accessing the wiki with ZeroTier
I am trying to access my wiki running on XAMPP with ZeroTier. I have changed its address $wgServer in LocalSettings.php from localhost to the address ZeroTier gave me, but the wiki's main page still seems to be running on localhost. Some pages point to the IP address but ultimately time out. How should I proceed? Magibon-san (talk) 17:33, 11 June 2021 (UTC)
- What is the main problem of your wiki's main page?
- Please notify that. ↠Tanbirzx (✉) 18:58, 11 June 2021 (UTC)
- Currently, the wiki opens up as normal at localhost (although the ZeroTier address is set). Sometimes a setup.php error appears on the main page but I can't reproduce it at the moment. Interestingly, when I click "Printable version" in the sidebar, on the very bottom of the print preview it shows the proper address. Magibon-san (talk) 20:52, 11 June 2021 (UTC)
- Is apache (or whatever web server) setup to listen on the zerotier ip? Can you verify that your computer is actually accessible from that ip? Bawolff (talk) 23:07, 11 June 2021 (UTC)
- Yes. It still does not work. Wiki just times out. Any other server I create using that IP works just fine. Magibon-san (talk) 23:15, 11 June 2021 (UTC)
- to me this sounds like something wrong on a layer below mediawiki. Try and see if the tcp connection actually is succesfully established. Bawolff (talk) 06:11, 12 June 2021 (UTC)
hacked
Hello, I have been using wiki for a short time with the intention of having a collective creation space for 7 people.
This month it has been hacked and there are more than 18 thousand users who upload hundreds of pages of irrelevant content.
What do I do to?:
1 Retrieve my content
2 Eliminate the rubbish introduced
3 Prevent new users with or without registrations from uploading content
Thanks for the help 191.112.29.170 (talk) 22:30, 11 June 2021 (UTC)
- as an aside, getting spammed and getting hacked are different things.
- There is some advice on manual:combatting spam Bawolff (talk) 23:05, 11 June 2021 (UTC)
How do I redirect a MediaWiki page to a folder with html?
How do I redirect a mediawiki page to a folder with html?
so I can use
https://www.mediawiki.org/wiki/Extension:HTMLets Wikedneeded (talk) 11:08, 12 June 2021 (UTC)
- @Wikedneeded That extension does not require redirecting some MediaWiki page to make that extension work. What makes you think so? Malyacko (talk) 11:13, 12 June 2021 (UTC)
MediaWiki Installation Shows Only Random Alphanumeric Characters
My installation of MediaWiki 1.36 shows only random alphanumeric characters on every page whenever I access any page.
I saw this topic with the same problem Project:Support desk/Flow/2021/01#h-Showing_weird_characters_on_every_page_on_my_mediawiki-2021-01-16T17:13:00.000Z but it seems like there wasn't a solution referenced on this page.
$wgDisableOutputCompression was suggested as having something to do with it, but I've tried every version of this comment multiple times and it doesn't change anything.
I have rechecked my local settings.php file multiple times, reinstalled MediaWiki (trying different versions such as 1.31 besides 1.36 but I'm still getting the same problem.
Could it be something to do with my PHP installation or with Namecheap hosting?
Link to what I see here https://encyclopedia.irkutskicetruckers.com/ or image of it https://i.imgur.com/0TGNy3T.jpg
Thanks,
James JamesGreenWY (talk) 16:40, 12 June 2021 (UTC)
- Works without a problem in Firefox, so this is indeed $wgDisableOutputCompression. What does "every version of this comment multiple times" mean? What exactly *did* you do and where, without paraphrasing? Malyacko (talk) 17:09, 12 June 2021 (UTC)
- I tried:
- $wgDisableOutputCompression = false;
- $wgDisableOutputCompression = true;
- $wgDisableOutputCompression = "";
- $wgDisableOutputCompression = ;
- My problem was stupider though I missed the "##"
- Still doesn't work with Chrome but at least Firefox is a start. Thanks again JamesGreenWY (talk) 02:44, 16 June 2021 (UTC)
- I'm getting the same problem and I've tried setting it to both true and false
- $wgDisableOutputCompression = true; Bswenson2 (talk) 22:41, 12 June 2021 (UTC)
how can i add a google translate button in my wiki?
how can i add a google translate button in my wiki? I have tried all of the secure html programs but it still does not work Wikedneeded (talk) 18:12, 12 June 2021 (UTC)
- Which extensions have you tried? Jonathan3 (talk) 22:33, 13 June 2021 (UTC)
- I used an html extension to do it. thanks for responding jonathan3 Wikedneeded (talk) 20:39, 9 July 2021 (UTC)
- Maybe Extension:Widgets? Jonathan3 (talk) 21:47, 9 July 2021 (UTC)
How to hide or remove "This page was last edited on " date
The following discussion is closed. Please do not modify it. Subsequent comments should be made on the appropriate discussion page. No further edits should be made to this discussion.
I need to remove this message displayed at the bottom of page:
"This page was last edited on 18 July 2017, at 18:06."
I can't find anything here https://www.mediawiki.org/wiki/Manual:Configuration_settings_(alphabetical) . Is it possible? How do I do it? 103.6.156.188 (talk) 20:08, 13 June 2021 (UTC)
- I think the answer is here: Manual:Footer. Jonathan3 (talk) 22:33, 13 June 2021 (UTC)
- @Jonathan3, thank you kind stranger. It worked. 103.6.156.183 (talk) 15:24, 14 June 2021 (UTC)
- Good :-) Jonathan3 (talk) 18:02, 14 June 2021 (UTC)
Mainpage Editor Disable Help
Do you know how we can disable it?
/index.php/Main_Page?veaction=edit
Editor disable Commands ? 78.191.60.127 (talk) 20:41, 13 June 2021 (UTC)
- Do you mean this? Help:Protecting and unprotecting pages
- Or maybe this? Manual:User_rights Jonathan3 (talk) 22:34, 13 June 2021 (UTC)
Need to Install PDF Renderer Service which would support to embed the images.
HI Support Desk,
Following are the installed software product version(s) those are being used in our RHEL7 server environment.
Installed software
| Product | Version |
|---|---|
| MediaWiki | 1.35.1 |
| PHP | 7.4.15 (apache2handler) |
| MySQL | 8 |
| OS | LINUX |
We are looking for PDF Renderer Service which would support to embed the images in a Wiki page to a downloaded PDF file.
I have installed this Proton, but it did not work properly. As it's not well explained that how to integrate proton.
I followed this, https://m.mediawiki.org/wiki/ServiceTemplateNode/GettingStarted
it did not work successfully.
Error: {"status":500,"type":"internal_error","title":"ReferenceError","detail":"preq is not defined","method":"GET","uri":"/wikipoc.xyz.com/v1/png/Square_funny"}
URL: http://10.73.21.15:8080/wikipoc.xyz.com/v1/png/Square_funny
Kindly suggest how we can use this in our wiki 1.35.1. Akki30 (talk) 07:24, 14 June 2021 (UTC)
- Hi! Have a look at Extension:Mpdf or Extension:UEModulePDF (Part of BlueSpice MediaWiki distribution; may rely on other extensions) Osnard (talk) 10:54, 14 June 2021 (UTC)
- Is this extension convert html to pdf with Image? Akki30 (talk) 14:37, 14 June 2021 (UTC)
- Those extensions will export a wikipage into PDF.
- Mpdf: Not sure, but I guess so.
- UEModulePDF: Yes. Osnard (talk) 15:11, 14 June 2021 (UTC)
- So UEModulePDF extension can download pdf with image?? Also there is no details for Extension:UEModulePDF on page that how to configure it.
- Is this compatible with PHP 7.4?
- I have tried MPDF and its downgliding pdf but not giving full path of image, can you please suggest where we can enable full path for image?
- When I set as html not pdf so i saw the image url is not full (/wiki135/images/5/57/enterprise-wiki.jpg).
- Can you please suggest from where its pickup up URL? Akki30 (talk) 17:48, 14 June 2021 (UTC)
- Please don't post the same comments in several places. You already posted this in Project:Support desk/Flow/2021/06#h-Does_Extension:Mpdf_generate_PDF_with_IMAGE?-2021-06-15T11:14:00.000Z. Malyacko (talk) 13:07, 15 June 2021 (UTC)
- Yes, UEModulePDF is compatible with PHP 7.4 and it will embed images in the PDF. Be aware that you will need to set up a Java Webserver as PDF renderer as well. See https://en.wiki.bluespice.com/wiki/Setup:Installation_Guide/Webservices/PDF-Export
- You will probably need to set up the following extensions for UEModulePDF
- Be aware that only LTS branches
REL1_31andREL1_35are supported. - BlueSpice is also available as a MediaWiki distribution that bundels lots of extensions for the business usecase.
- I am a little suprised that MPDF shouldn't be able to embed images. Are you sure you have set it up properly? Osnard (talk) 13:46, 15 June 2021 (UTC)
- Yes I have set it up properly as given in MPDF documentation. (Extension:Mpdf)
- The path is not coming full in HTML.
- (/wiki135/images/5/57/enterprise-wiki.jpg).
- From where I can change it, or it should be pick this automatically. Path should be like :
- https://localhost/wiki135/images/5/57/enterprise-wiki.jpg not /wiki135/images/5/57/enterprise-wiki.jpg
- Error: Error parsing image file - image type not recognised, and not supported by GD imagecreate
- Steps I have done:
- wget https://extdist.wmflabs.org/dist/extensions/Mpdf-REL1_35-94bd27c.tar.gz
- 2. tar -xzf Mpdf-REL1_35-94bd27c.tar.gz -C /data/www/html/wiki135/extensions
- 3. cd data/www/html/wiki135
- #php maintenance/update.php
- 4. added("extensions/Mpdf/composer.json") in wiki135/composer.local.json-sample
- {
- "extra": {
- "merge-plugin": {
- "include": [
- "extensions/Mpdf/composer.json"] } } }
- 5. in mpdf dir
- #composer update --no-dev
- 6.added in LocalSettings.php
- require_once( "$IP/extensions/Mpdf/vendor/autoload.php");
- wfLoadExtension( 'Mpdf' );
- $wgMpdfSimpleOutput=true;
- 7.Given 777 to all 3 dir (/data/www/html/wiki135/extensions/Mpdf/vendor/mpdf/mpdf)
- /ttfontdata/
- /tmp/
- /graph_cache/
- http://localhost/wiki135/index.php/Main_Page?title=Main_Page&action=mpdf Akki30 (talk) 15:05, 15 June 2021 (UTC)
- Have you set `$wgServer` or `$wgCanonicalServer` in you wikis configuration?
- Have you set `$wgMpdfSimpleOutput = false`? Osnard (talk) 06:51, 16 June 2021 (UTC)
- When I set $wgMpdfSimpleOutput = true , its giving me PDF without image, but when I set it false its giving error:
- /data/www/html/wiki135/extensions/Mpdf/vendor/mpdf/mpdf/classes/otl.php: Can't open file /data/www/html/wiki135/extensions/Mpdf/vendor/mpdf/mpdf/ttfontdata/dejavusanscondensed.GSUBGPOStables.dat
- I cant see this file dejavusanscondensed.GSUBGPOStables.dat in /ttfontdata
- I have already given 777 to Dir /Mpdf/vendor/mpdf/mpdf/ttfontdata/
- $wgServer , Yes we have set our server name in Localsettings.php Akki30 (talk) 09:11, 16 June 2021 (UTC)
- Please help me to fix this. Akki30 (talk) 10:24, 16 June 2021 (UTC)
- Sorry, I am not an expert for Extension:Mpdf. Maybe the author can support you if you ask on the corresponding talk page. Osnard (talk) 11:46, 16 June 2021 (UTC)
- Hi As I can see there are many posts are pending, no one replied even. Could you please suggest to me something else, I need to fix this ASAP.
- Kindly check my steps what I have done, if you think that something I missed please let me know. Akki30 (talk) 15:37, 16 June 2021 (UTC)
- You may want to evaluate BlueSpice. It is available as Docker image. So you don't need to set up the PDF-Export manually. Osnard (talk) 08:47, 17 June 2021 (UTC)
- How to use BlueSpice, As there is no proper documentation that how to implement this in our application. Akki30 (talk) 10:44, 17 June 2021 (UTC)
- There is a helpdesk that may answer your questions: https://en.wiki.bluespice.com/ Osnard (talk) 10:56, 17 June 2021 (UTC)
- Is BlueSpice work as an extension like Mpdf or its separate CMS like a wiki. The new implementation will take time and I need to fix it by this week only. Kindly suggest working extension with PHP 7.4, if possible provide proper documentation for PDF export with BlueSpice.
- One more thing, We are using LDAP+SSO login in our application Can you confirm that is MPDF compatible with these Protocol services. Akki30 (talk) 11:18, 17 June 2021 (UTC)
- Hello Team,
- Can you please confirm the above information? Akki30 (talk) 06:56, 18 June 2021 (UTC)
- AFAIK MPdf is not affected in any way by the choice of the authentication method.
- BlueSpice is a "distriution" of MediaWiki. You can think of it as an extension bundle, tailored to business needs. It has extensions for PDF export and LDAP/SSO. Osnard (talk) 11:40, 18 June 2021 (UTC)
- Hello,
- I am facing issue when trying to export PDF.
- Internal error
- Jump to navigationJump to search
- [YNA2dtUOfwBtUQ0sXxfrYQAAAAo] 2021-06-21 06:49:26: Fatal exception of type "MpdfException" 157.39.144.18 (talk) 06:51, 21 June 2021 (UTC)
- But it's affecting our project, with LDAP+SSO it's not working and it's throwing us an unauthorized error in the image function. ( function _imageTypeFromString(&$data) )
- $data is printing unauthorized error.
- We have set 777 permission to the image folder.
- We are already configured MPDF, if possible please provide any resource who can resolve this issue, In the above post, I have mentioned all steps that I have done in MPDF.
- The same code is working fine where we are not using LDAP+SSO. Are you sure that MPDF works with the server which is secured with a password? Akki30 (talk) 14:01, 18 June 2021 (UTC)
- No I am not sure. Apparently Mpdf actually tries to load the files via HTTP and therefore fails on the webserver authentication. One way to fix this could be to add a "bypass" of that authentication for any HTTP call coming from "localhost". If you are using Apache Webserver with "mod_auth_kerb" you can do this by "Require ip 127.0.0.1". Be aware that the requests by Mpdf will probably be "anonymous" (no user context). Therefore you may need to also adjust wiki permissions in such cases (e.g. setting "read" permission for "*" group). Such bypasses are always a little hacky.
- Btw. you should not use "777" on your "images/" directory. Osnard (talk) 09:51, 21 June 2021 (UTC)
- Thanks, That is a bit convenient for me, Could you please focus on "Bypass". How can we bypass with IP? If our requests by Mpdf will probably be "anonymous" then will this allow us to get server data to convert HTML to PDF.
- Please clear this.
- One more thing Could you please let me know which plugin Mediawiki is using to download pdf?
- https://www.mediawiki.org/w/index.php?title=Special:DownloadAsPdf&page=MediaWiki&action=show-download-screen Akki30 (talk) 12:50, 21 June 2021 (UTC)
- MediaWiki has no plugins; the extension would be https://gerrit.wikimedia.org/g/mediawiki/extensions/ElectronPdfService/ Malyacko (talk) 14:55, 21 June 2021 (UTC)
- Is ElectronPDFService is compatible with wiki 1.35 for image in pdf and works with the server which is secured with a password like LDAP?
- Well I have tried this and got error.
- Error:
- The requested URL /api/rest_v1/page/pdf/Main_Page was not found on this server. Akki30 (talk) 15:06, 21 June 2021 (UTC)
- Hello ,
- I am using Electron PDF , I got stuck at a point in RestBase's config.yaml.
- baseUriTemplate: "{{'http://127.0.0.1:7231/{domain}/v1'}}"
- What should be here?/
- can I edit like "{{'http://10.10.10.10:8080/wiki.com/wikineww/v1'}}"
- And what will be YOUR_RESTBASE_SERVER ?
- curl http://YOUR_RESTBASE_SERVER:7231/YOUR_WIKI_WEBSITE/v1/page/html/Main_Page Akki30 (talk) 10:10, 22 June 2021 (UTC)
- Can you please look in to this? Akki30 (talk) 05:07, 23 June 2021 (UTC)
- Anyone will reply or need to post same query again? Akki30 (talk) 11:52, 23 June 2021 (UTC)
- If anyone knows an answer, they might reply. If nobody knows an answer, they will not reply. Do NOT post the same query again. Thanks. Malyacko (talk) 13:42, 23 June 2021 (UTC)
- Hello team,
- It's very disappointing that the wiki service team could not help me to resolve my one issue.
- Also not mentioned proper documentation for any service. I have followed properly all documents but didn't work.
- Electron PDF has very bad documentation, not clearly written how to implement, and whatever is written not working. Akki30 (talk) 06:26, 29 June 2021 (UTC)
- I experienced the same pain & frustration as Apath11 in terms of the broken images on the MediaWiki PDF Export feature. MediaWiki should provide the end users a solution ASAP. Otherwise the upgrade does not look good!!! 161.185.161.80 (talk) 21:32, 2 December 2021 (UTC)
- I can help you in PDF... I have fixed this issue by my self only. Akki30 (talk) 10:35, 3 December 2021 (UTC)
- I am sorry to hear that. Please feel free to file a feature request on Phabricator.
- Also, please consider to request professional (payed) support. Osnard (talk) 07:30, 3 December 2021 (UTC)
- See How to report a bug. (PS: "ASAP" is sold out.) Malyacko (talk) 17:02, 3 December 2021 (UTC)
MediaWiki Application on MS Azure
Hi Mediawiki,
I am looking for a contact to send an email to, regarding a Mediawiki application on the MIicrosoft Azure AD gallery.
If someone can respond to v-mmahmood@microsoft.com. Your urgent response would be most appreciated.
Thank you
Kind regards
Mohammed 46.208.91.232 (talk) 15:58, 14 June 2021 (UTC)
- hi, i dont think that's an official mediawiki distribution, so we're not involved with it (AFAIK) Bawolff (talk) 01:50, 15 June 2021 (UTC)
Show text for only logged out or in users
I want to put a greeting on the main page that says something like "Hello, <username>!" for logged in users and "Hello! Log in or register" for logged out users. How can I do this. I want it to display this on the same page, too. Jkrosado (talk) 20:12, 14 June 2021 (UTC)
- extension:userFunctions might help.
- May have performance implications (since it cannot reuse page text across users) Bawolff (talk) 01:49, 15 June 2021 (UTC)
Problem reading article from inside extension
The following discussion is closed. Please do not modify it. Subsequent comments should be made on the appropriate discussion page. No further edits should be made to this discussion.
Hello Support.
I have written an extension which loads a Latex preamble, adds contents from Wiki page section and generates and displays the Latex compilation result. It has been working for many years. Now I need to make the preamble editable and I miserably fail.
The working code looks as follows:
$templateFileName = TEMPLATE_PATH."amstex1.tex";
$template = file_get_contents( $templateFileName);
self::debugLog ("have template file \n");
What I now want to do instead is this:
// attempt to get template from mediawiki itself
self::debugLog (" Will now load from mediawiki itself \n");
try {
$myTitle = Title::newFromTextThrow( 'MediaWiki:AmstexTemplate' );
if ($myTitle->canExist) {self::debugLog ("can exist");}
else {self::debugLog("not existing");}
$myArticle = new Article( $myTitle );
$template = $myArticle->getPage()->getContent()->getNativeData();
self::debugLog ("Done");
} catch (Exception $e) { self::debugLog ("In generateTex exception handler"); }
self::debugLog ("Loaded template");
My problem is: It looks like the system vanishes into Nirwana in the Title::newFromTextThrow call. I get no debug information, no exception, just nothing. So I also fail to debug this.
What can I do? 2003:E7:5704:900:AD27:9111:48F9:9408 (talk) 20:14, 14 June 2021 (UTC)
- I also had various other versions, such as
- $myTitle = Title::newFromTextThrow( 'AmstexTemplate', NS_MEDIAWIKI );
- but the problem seems that I get absolutely no debug or return information back. 2003:E7:5704:900:AD27:9111:48F9:9408 (talk) 20:31, 14 June 2021 (UTC)
- Looks like the server is complaining that it does not find the class Title. How come? 2003:E7:5704:900:AD27:9111:48F9:9408 (talk) 20:59, 14 June 2021 (UTC)
- But when I
- include "/var/www/html/wiki4/includes/Title.php";
- I get a Cannot declare class Title, because the name is already in use. 2003:E7:5704:900:AD27:9111:48F9:9408 (talk) 21:34, 14 June 2021 (UTC)
- Ok. Sorry. Problem solved. It was a twisted logic in the extension. Sorry for bothering. 2003:E7:5704:900:AD27:9111:48F9:9408 (talk) 22:13, 14 June 2021 (UTC)
New site / garbage in Opera, Vivaldi / ok in Firefox / Chrome goes somewhere else
The following discussion is closed. Please do not modify it. Subsequent comments should be made on the appropriate discussion page. No further edits should be made to this discussion.
I've just installed MediaWiki for a test installation, but I am running into some unexpected results.
- Firefox is the only browser showning what I expected
- Opera and Vivaldi show just garbage
- Chrome shows a default page of the webhoster, that this domain is parked
| Produkt | Versjon |
|---|---|
| MediaWiki | 1.36.0 |
| PHP | 7.3.19 (cgi-fcgi) |
| MySQL | 5.7.23 |
| ICU | 63.1 |
Site: intranett.node.no GordonBernstein (talk) 10:59, 15 June 2021 (UTC)
- See Manual:$wgDisableOutputCompression Malyacko (talk) 13:06, 15 June 2021 (UTC)
- That one didn't fix it, but I found a page that did.
- https://www.mediawiki.org/w/index.php?title=Project%3ASupport%20desk/Flow/2020/12#c-119.236.103.35-2020-12-22T14%3A55%3A00.000Z-2A00%3A23C4%3A9DC4%3AD001%3A782A%3AEA07%3AFDE0%3A55F3-2020-12-20T01%3A29%3A00.000Z GordonBernstein (talk) 14:09, 15 June 2021 (UTC)
Does Extension:Mpdf generate PDF with IMAGE?
HI Support Desk,
Following are the installed software product version(s) those are being used in our RHEL7 server environment.
| Product | Version |
|---|---|
| MediaWiki | 1.35.1 |
| PHP | 7.4.15 (apache2handler) |
| MySQL | 8 |
| OS | LINUX |
Is this extension convert html to pdf with Image?
Is this compatible with PHP 7.4?
I have tried MPDF and it's downloading pdf but not giving the full path of the image, can you please suggest where we can enable a full path for an image?
When I set format as a HTML in url (&format=html), I saw the image URL is not full (/wiki135/images/5/57/enterprise-wiki.jpg).
Can you please suggest from where its pickup up URL and how can get pdf with the image? Akki30 (talk) 11:14, 15 June 2021 (UTC)
- Extension:Mpdf answers the first two questions. Where to see some "full image URL"? In the PDF output? Malyacko (talk) 13:06, 15 June 2021 (UTC)
MediaWiki 1.36 internal error
The following discussion is closed. Please do not modify it. Subsequent comments should be made on the appropriate discussion page. No further edits should be made to this discussion.
Getting a MediaWiki 1.36 internal error
...missing required extension to PHP
mbstring
fileinfo
intl
Extension are enabled in php.ini; PHPINFO.PHP shows the loaded configuration file BUT right above it shows Configuration File Path (php.ini) = no value
Fairly new to this. I'm sure it's a easy fix. Any advice? Dossod11 (talk) 20:31, 15 June 2021 (UTC)
- Are these PHP extensions installed on your system? Which system is this about? Malyacko (talk) 08:58, 16 June 2021 (UTC)
- These extension are listed under the Wiki > Extensions Folder.
- I used the below php installation:
- - php-8.0.7-nts-Win32-vs16-x64
- MS Server 2019
- PHP Info:
- - System: Windows NT 10.0 build 17763 (Windows Server 2016) i586
- - Compiler: Visual c++ 2019
- - Configuration File (php.ini) Path: no value
- - Loaded Configuration File: C:\Program Files (x86)\php\php.ini 168.245.155.45 (talk) 14:51, 16 June 2021 (UTC)
- You have to both have them in the folder and enable in php.ini file. Bawolff (talk) 16:25, 16 June 2021 (UTC)
- Thats cofirmed. They are in the folder and enabled in the php.ini file.
- Might be a dumb question. Does the Microsoft Visual C++ version has something to do with it?
- I have the below listed/ installed:
- MS Visual C++ 2010 x64 Redistributable 10.0.40219
- MS Visual C++ 2010 x86 Redistributable 10.0.40219
- MS Visual C++ 2015-2019 Redistributable (x64) 14.20.27508
- MS Visual C++ 2015-2019 Redistributable (x86) 14.20.27508
- Another question about php-8.0.7 ..
- The php-8.0.7-ntsWin32-vs16-x64 is the version I've installed. I think thats the correct one for a MS Server 2019/64. Correct?
- Just trying to pinpoint what the issue is/ why these three extensions don't load. 168.245.155.45 (talk) 17:33, 16 June 2021 (UTC)
- Resolved.
- The answer was right in front of me! It was the incorrect PHP version. Installing the correct "compatible" PHP version resolved the issue. Dossod11 (talk) 15:27, 17 June 2021 (UTC)
Link color
sry i have a question.
I would like to change all link colors at once with ONE css class if that is possible.
red = nonexistent pages
green = existing visited AND unvisited pages as well as external links.
how do I have to adjust the css?
so far I have:
.navbox1 a { color: green !important; }
.new {color:#ba0000 !important;}
but .new ONLY works if I don't use the navbox1 class. 95.116.151.212 (talk) 21:05, 15 June 2021 (UTC)
- More complex selectors take precedence. See https://developer.mozilla.org/en-US/docs/Web/CSS/Specificity Bawolff (talk) 16:24, 16 June 2021 (UTC)
Error 500 on random pages
The following discussion is closed. Please do not modify it. Subsequent comments should be made on the appropriate discussion page. No further edits should be made to this discussion.
Hello. I'm tearing my hair out over here and could use some assistance. Thanks for taking the time to read this.
Our MediaWiki installation which we planned on using as part of a collaborative writing project has been nothing but trouble from the minute it was deployed; after non-stop problems it has now taken to randomly giving HTTP 500 errors on random pages. This is incredibly inconvenient and extremely frustrating, to say the least...
The wiki is live (sorta... hah) at https://www.the-democratika.com/wiki and a random example of a broken page is https://www.the-democratika.com/wiki/index.php?title=Fujing although they seem to change every so often so by the time you read this that particular page might be fine... All that appears is "Error 500" anyway. Versions of MediaWiki and so forth can be found at https://www.the-democratika.com/wiki/index.php?title=Special:Version (this page seems to work pretty consistently) and PHP info at https://www.the-democratika.com/phpinfo.php.
The error logs keep saying they can't load 3 particular PHP extensions, they are "php_pdo_oci.dll", "php_pdo_firebird.dll" and "php_oci8_12c.dll"; I don't know what they do and haven't heard of them before, and no amount of disabling or enabling or even completely deleting these extensions seems to change anything. It also says the errors are in Unknown on Line 0 (??) and the IIS logs are just logging that an error 500 happened without any details. ANY assistance is appreciated because I'm at my wits end.
Thank you again. Fatify (talk) 00:13, 16 June 2021 (UTC)
- > php_pdo_oci.dll", "php_pdo_firebird.dll" and "php_oci8_12c.dll"
- These are database support for dbs you probably aren't using. The error is just a warning you could probably ignore. You can fix it by not loading them in php.ini. either way, its a red hering, and should not effect mediawiki.
- Webserver and php error logs should have more details but you may need to filter out warnings to get actual error. Bawolff (talk) 01:20, 16 June 2021 (UTC)
- Well this is the thing, I have tried not loading them in php.ini but they still show up in errors every time I try to access one of these broken pages. It's incredibly bizarre, but I'm glad to hear it's probably unrelated.
- These errors about the extensions are all that appear in the PHP error logs, normally about 3 or 4 repeated errors for each extension all timestamped within a few seconds of one another roughly at the time when the broken page is requested. I have, at the minute, nothing else to work off of.
- Webserver logs contain nothing other than the fact that an error 500 did happen, unless I'm looking in the wrong places (IIS is a wicked and complex beast) I'll dig a little deeper and see if I can find much else.
- Thank you again Fatify (talk) 01:37, 16 June 2021 (UTC)
- Oh and before I forget, every error is "in Unknown on line 0", which certainly doesn't help debugging efforts Fatify (talk) 01:40, 16 June 2021 (UTC)
- "in Unknown on line 0" means a startup error, probably some bad value in php.ini or missing php extension or located in the wrong directory.
- See also:
- https://www.programmersought.com/article/24391878104/
- https://stackoverflow.com/questions/11967563/php-php-warning-php-startup-in-unknown-on-line-0 Ciencia Al Poder (talk) 09:46, 16 June 2021 (UTC)
- The extension directory is correctly set as "C:\Program Files\PHP\v7.4\ext\" in php.ini, all the other solutions in the stackoverflow thread seem to be Apache specific but I am running IIS.
- I copied those DLLs to System32 as the first page suggested and there has been no change. Fatify (talk) 14:51, 16 June 2021 (UTC)
- There are usually multiple php.ini files. maybe you might be editing the wrong one (although what you said looks correct based on your phpinfo).
- For the actual error. Total guess, but i think it might be a timeout error. Try increasing php_max_execution_time and any similar settings in IIS. Also make sure that you have winCache php extension installed and configured with a big enough cache size and $wgMainCacheType = CACHE_ACCEL; (that should make mediawiki faster)
- note, most of our users use apache not iis, we're probably better tested on apache. Bawolff (talk) 16:18, 16 June 2021 (UTC)
- Well what do you know, the problem was timeout. It was set to 30 seconds, which I guess was just a little bit too short for some pages, hence the randomness of the broken pages. I've increased it to a bigger number and it works fine now. Thank you so much for your patience and support, we can finally get back to writing (I'm a little ashamed the solution was so simple, but I'm glad its over nonetheless)
- I tried installing WinCache before and it seemed to break some things, but looking back on it I think I might have installed it wrong. I'll give it another try soon.
- I have definitely noticed the MediaWiki community's preference of Apache and LAMP stacks in general; we use IIS because it's baked into Windows Server and there's several services we need for which the software is Windows only, hence our using it. I certainly hope any future IIS users with this issue will find this thread useful. If I have any more information to share on the matter I'll append it to the end.
Is there a formal way I can mark your reply as the answer/credit you as the solution beyond clicking "thanks" on your post?Nevermind, worked it out- Thank you again. Fatify (talk) 22:11, 16 June 2021 (UTC)
Override number of files shown on category pages
Hello!
Can you override the default 200 files that are shown per page at category pages? It seems as it is Manual:$wgCategoryPagingLimit that needs to be overridden somehow. Jonteemil (talk) 01:18, 16 June 2021 (UTC)
- Indeed. Is something unclear with the documentation at Manual:$wgCategoryPagingLimit? As an admin of your wiki you can change that value for your users. Malyacko (talk) 08:56, 16 June 2021 (UTC)
- Let me rephrase, can I override the number of files shown at category pages for my account, regardless of what the default value of the wiki is? Jonteemil (talk) 10:29, 16 June 2021 (UTC)
- No. – Ammarpad (talk) 05:20, 17 June 2021 (UTC)
- Okay, thanks. Jonteemil (talk) 15:08, 17 June 2021 (UTC)
Short URL Redirects to index.php
Hi.
I am currently implementing the short url into my wiki. It works, however it does not redirect to the wiki url but the index.php file.
Everything is copied from the short url configs.
Thanks in advance. 136.158.7.154 (talk) 02:08, 16 June 2021 (UTC)
- You probably didn't copy everything. For example: Manual:Short URL/Apache#LocalSettings.php Ciencia Al Poder (talk) 09:50, 16 June 2021 (UTC)
- I did copy everything. 136.158.7.154 (talk) 01:12, 17 June 2021 (UTC)
- You probably didn't copy everything. For example: Manual:Short URL/Apache#LocalSettings.php Ciencia Al Poder (talk) 07:49, 17 June 2021 (UTC)
- It’s not really helping since I already told you that I copied everything. 136.158.7.154 (talk) 11:40, 17 June 2021 (UTC)
- The information you provide is not helpful either to figure out what's wrong.
- You can start by sharing your configuration, link to your site, etc Ciencia Al Poder (talk) 21:53, 17 June 2021 (UTC)
- Hi,
- Same user as before. Coping it led to a 404 error. 2404:3C00:255D:3100:0:0:0:2 (talk) 02:04, 18 June 2021 (UTC)
- Here is the code:
# Enable the rewrite engine RewriteEngine On # Short URL for wiki pages RewriteRule ^/?wiki(/.*)?$ %{DOCUMENT_ROOT}/w/index.php [L] # Redirect / to Main Page RewriteRule ^/*$ %{DOCUMENT_ROOT}/w/index.php [L]- LocalSettings.php:
- 2404:3C00:255D:3100:0:0:0:2 (talk) 02:08, 18 June 2021 (UTC)
$wgScriptPath = "/w"; $wgArticlePath = "/wiki/$1";
- If you manually type an index.php URL, it won't redirect to a /wiki/ URL.
- The configuration purpose is:
- The wiki will generate /wiki/ URLs on normal view links (not edit, diff, history links). This is the LocalSettings.php configuration.
- Your webserver will recognize /wiki/ URLs and translate them into /w/index.php URLs (without a redirect, browser will stay at /wiki/). This is what the apache configuration does.
- Does it work for you as I explained? Ciencia Al Poder (talk) 08:03, 18 June 2021 (UTC)
- I have done it to an article link, it still leads to a 404 error. 136.158.7.154 (talk) 12:08, 18 June 2021 (UTC)
- Basically, it looks like your rewrite rules are not applied, or %{DOCUMENT_ROOT} points to the wrong location.
- Try changing %{DOCUMENT_ROOT}/w/index.php to the full path of index.php (in the filesystem).ç
- Also, set up some debugging to see how the rewrite is being done (or if it's being applied at all): https://stackoverflow.com/a/9632952/7268905 Ciencia Al Poder (talk) 15:06, 18 June 2021 (UTC)
- It’s still the same, even with the webroot in. 136.158.7.154 (talk) 11:01, 19 June 2021 (UTC)
- Debugging is your only option. Or your server is pretty broken Ciencia Al Poder (talk) 15:10, 19 June 2021 (UTC)
- How do I see the debug output? 136.158.7.154 (talk) 05:45, 10 July 2021 (UTC)
- See the stackoverflow link I posted before Ciencia Al Poder (talk) 14:07, 10 July 2021 (UTC)
- There is a error log, which says
$wgPasswordSenderand$wgEnableEmailare undefined and unexpected in that order. - For the first one
$wgResourceBasePathkiis undefined. I cant find any reference to it in MediaWiki. - The second one says that the variable is unexpected.
- There is a third one where the string “apache” is unexpected, and it expected a closing [.
- All lines go to the variables,
$wgPasswordSenderto itself,$wgEnableEmailto$wgEmailAuthentication, and the Apache to$wgDBserver136.158.7.154 (talk) 05:59, 19 July 2021 (UTC)
Cargo query export to Excel or CSV gives error This page isn’t working
Hi,
I am trying to install Mediawiki for our internal Documentation in organisation.
| Product | Version |
|---|---|
| MediaWiki | 1.35.2 |
| PHP | 8.0.7 (apache2handler) |
| MariaDB | 10.1.48-MariaDB-0ubuntu0.18.04.1 |
| ICU | 65.1 |
| Lua | 5.1.5 |
When I am setting a cargo query to output as table, it works fine. But when I set it to export results to CSV or Excel file then on clicking file download link, it shows a blank page saying --
This page isn’t working
XXX.XX.XXX.XX is currently unable to handle this request.
HTTP ERROR 500
I am sure our server is working fine, so there is no problem with it.
I also did NOT find any special settings instructions in Cargo to enable export in CSV or Excel. So I am clueless what is wrong or where to find out.
Please help ! Pharmankur (talk) 07:16, 16 June 2021 (UTC)
- Hi! Are there any logs available? PHP error log for example? Please have a look at Manual:How_to_debug to learn about getting logs. Osnard (talk) 08:40, 16 June 2021 (UTC)
- You'd definitely get an answer on the Cargo talk page. Jonathan3 (talk) 10:07, 16 June 2021 (UTC)
- @Osnard
- Hi, Php error reporting is already enabled by
- ----<?php
- error_reporting( -1 );
- ini_set( 'display_errors', 1 );
- ----@Jonathan3
- Somehow I did not find any help available on setting up excel or csv export ! Pharmankur (talk) 07:05, 18 June 2021 (UTC)
- An Error 500 must leave traces in the logs. Without them the error can not be fixed. Osnard (talk) 11:36, 18 June 2021 (UTC)
- What's your Cargo query? Jonathan3 (talk) 11:52, 18 June 2021 (UTC)
- Hi
- @Osnard
- With my default log setting LogLevel warn [ in /etc/apache2/apache2.conf ]
- Only log entry there [ in /var/log/apache2/error.log ] is :-
- ----[Sat Jun 19 13:24:29.712779 2021] [mpm_prefork:notice] [pid 21458] AH00163: Apache/2.4.29 (Ubuntu) configured -- resuming normal operations
- [Sat Jun 19 13:24:29.712864 2021] [core:notice] [pid 21458] AH00094: Command line: '/usr/sbin/apache2'
- ----If there is any other place to look for the logs, I am not aware.
- @Jonathan3
- My cargo query which works (shows a table on webpage) :-
- {{#cargo_query: tables=Infobox |fields=Infobox._ID, Infobox._pageName, Infobox.Description, Infobox.01_Type_of_Document, Infobox.02_Doc_ID_No, Infobox.03_Supersede_by, Infobox.06_Effective_from_date, Infobox.07_Review_on_date, Infobox.04_For_Department, Infobox.09_Other_Info, Infobox.10_Prepared_by, Infobox.11_Checked_by, Infobox.12_Approved_by |format=table }}
- But when I want the same table downloadable in excel, I am trying (and gives error in the discussion) :-
- {{#cargo_query: tables=Infobox |fields=Infobox._ID, Infobox._pageName, Infobox.Description, Infobox.01_Type_of_Document, Infobox.02_Doc_ID_No, Infobox.03_Supersede_by, Infobox.06_Effective_from_date, Infobox.07_Review_on_date, Infobox.04_For_Department, Infobox.09_Other_Info, Infobox.10_Prepared_by, Infobox.11_Checked_by, Infobox.12_Approved_by |format=excel }} Pharmankur (talk) 08:06, 19 June 2021 (UTC)
- Inserted gif animation of my screens
- https://pasteboard.co/K7jFAMU.gif Pharmankur (talk) 10:38, 19 June 2021 (UTC)
- That's helpful. I get the same error:
This page isn’t working www.... is currently unable to handle this request. HTTP ERROR 500
format=csvworks and can be loaded by Excel.- I wonder whether @Yaron Koren: could help here. Jonathan3 (talk) 13:32, 19 June 2021 (UTC)
- Can you confirm you have installed "PhpSpreadsheet" as stated on the official docs?
Osnard (talk) 09:44, 21 June 2021 (UTC)- If you plan to export data to an Excel spreadsheet, you need to install the PhpSpreadsheet library on your server. This can be done by adding
phpoffice/phpspreadsheetto your composer.local.json and runningcomposer update --no-dev -o.
- If you plan to export data to an Excel spreadsheet, you need to install the PhpSpreadsheet library on your server. This can be done by adding
- I don't, and hadn't noticed that requirement when reproducing the error above - oops. Jonathan3 (talk) 11:49, 21 June 2021 (UTC)
- Hi,
- @Osnard and @Jonathan3
- I have already tried that ... This is what composer.local.json looks like
- ----{
- "require": {
- "mediawiki/mermaid": "~3.0",
- "phpoffice/phpspreadsheet": "~1.18.0"
- }
- }
- ----But I get error when running composer update --no-dev -o
- ----myserver@myserver:/mnt/WIKIs/EisenDocs$ composer update --no-dev -o
- Deprecation Notice: Required parameter $path follows optional parameter $schema in /usr/share/php/JsonSchema/Constraints/UndefinedConstraint.php:62
- Deprecation Notice: Required parameter $path follows optional parameter $schema in /usr/share/php/JsonSchema/Constraints/UndefinedConstraint.php:108
- Deprecation Notice: Method ReflectionParameter::getClass() is deprecated in /usr/share/php/Composer/Repository/RepositoryManager.php:129
- Deprecation Notice: Method ReflectionParameter::getClass() is deprecated in /usr/share/php/Composer/Repository/RepositoryManager.php:129
- In ArrayLoader.php line 44:
- Unknown package has no name defined ([{"name":"composer\/installers","versi
- on":"v1.11.0","version_normalized":"1.11.0.0","source":{"type":"git","url":
- "https:\/\/github.com\/composer\/installers.git","reference":"ae03311f45dfe
- 194412081526be2e003960df74b"},"dist":{"type":"zip","url":"https:\/\/api.git
- hub.com\/repos\/composer\/installers\/zipball\/ae03311f45dfe194412081526be2
- e003960df74b","reference":"ae03311f45dfe194412081526be2e003960df74b","shasu
- m":""},"require":{"composer-plugin-api":"^1.0 || ^2.0"},"replace":{"roundcu
- be\/plugin-installer":"*","shama\/baton":"*"},"require-dev":{"composer\/com
- poser":"1.6.* || ^2.0","composer\/semver":"^1 || ^3","phpstan\/phpstan":"^0
- .12.55","phpstan\/phpstan-phpunit":"^0.12.16","symfony\/phpunit-bridge":"^4
- .2 || ^5","symfony\/process":"^2.3"},"time":"2021-04-28T06:42:17+00:00","ty
- pe":"composer-plugin","extra":{"class":"Composer\\Installers\\Plugin","bran
- ch-alias":{"dev-main":"1.x-dev"}},"installation-source":"dist","autoload":{
- "psr-4":{"Composer\\Installers\\":"src\ .......................
- ----Instead when I try php composer.phar update --no-dev
- myserver@myserver:/mnt/WIKIs/EisenDocs$ php composer.phar update --no-dev
- > ComposerHookHandler::onPreUpdate
- Loading composer repositories with package information
- Updating dependencies
- Nothing to modify in lock file
- Installing dependencies from lock file
- Nothing to install, update or remove
- Package phpunit/php-token-stream is abandoned, you should avoid using it. No replacement was suggested.
- Generating optimized autoload files
- 7 packages you are using are looking for funding.
- Use the `composer fund` command to find out more!
- ----It does something but still , finally excel does NOT get exported !
- ----Note -- I am using PHP8.0 ... Does it have some role here ? Pharmankur (talk) 06:06, 23 June 2021 (UTC)
- I don't understand composer but the compatibility page does say that MediaWiki isn't compatible with PHP 8. Jonathan3 (talk) 09:48, 23 June 2021 (UTC)
- Maybe try switching to PHP 7.4. Osnard (talk) 12:26, 23 June 2021 (UTC)
- Hi @Osnard and @Jonathan3 : Many Thanks !
- Observed that CSV export started working somehow ! ( I think reinstalling through Composer done the trick ) Now issue remains only with XLS export.
- ----About PHP 7.4, According to Download
- MediaWiki is not compatible with PHP 7.4.0 to 7.4.2 due to an upstream bug. Use PHP 7.4.3 or later instead. See task T246594 for more information.
- ----Secondly we have already made many compatibility changes to extensions codes to make them suitable for PHP8.0 (Resolved many deprecation issues). So cannot fall back to earlier versions of PHP.
- Conversely, is there any way to make phpoffice/phpspreadsheet compatible with PHP 8.0 ?? Pharmankur (talk) 09:11, 24 June 2021 (UTC)
- Good news!
- Yes, the incompatibility of MW is just three patchlevel versions (7.4.0, 7.4.1 and 7.4.2). If you do not happen to use one of those (which seems very unlikely) MW will run just fine.
- Regarding PHP 8 compatibilty of phpoffice/phpspreadsheet: Looks like V1.18 should be compatible: https://github.com/PHPOffice/PhpSpreadsheet/blob/1.18.0/composer.json Osnard (talk) 15:38, 24 June 2021 (UTC)
- @Osnard
- Yeah I can see the documentation states that, but for me phpoffice/phpspreadsheet is not working.
- Might be I am doing something incorrect, but no idea. Pharmankur (talk) 11:34, 25 June 2021 (UTC)
Possible bug or am i dong something wrong?
The following discussion is closed. Please do not modify it. Subsequent comments should be made on the appropriate discussion page. No further edits should be made to this discussion.
I am trying t update my MediaWiki software to MediaWiki 1.36 but I am getting this weird error:
"MediaWiki 1.36 requires PHP 7.3.19 or higher; you are using PHP 7.3.8."
This happens whenever I attempt to load any page on my Wiki. Since my PHP is version is 7.3.8 which is clearly a higher version number then 7.3.19 then it would appear this a bug but could there be something I am dong wrong? Charlesb488 (talk) 11:36, 16 June 2021 (UTC)
- 8 < 19 Clump (talk) 11:42, 16 June 2021 (UTC)
- Oops, never mind. I see somehow I must have misread 7.3.19 as 7.3.1.9 or something like that. Charlesb488 (talk) 19:33, 16 June 2021 (UTC)
Error when 1.36 installer tries to convert old database
Hi all. A user had an old instance of MediaWiki (1.23.13) running on a machine whose disk just crashed. All he had was a backup of the mysql database.
I decided to load up a new system with Ubuntu 20.04 and mysql 8. After restoring the database I started the installation of MediaWiki 1.36.0. During the installation it detected the restored database and asked if I wanted to migrate it to the new version. It encountered this error:
...index PRIMARY already set on user_former_groups table.
...index PRIMARY already set on user_properties table.
...comment table already exists.
...revision_comment_temp table already exists.
Adding ar_comment_id field to table archive ...
An error occurred:
Error 1101: BLOB, TEXT, GEOMETRY or JSON column 'ar_comment' can't have a default value (localhost)
Function: Wikimedia\Rdbms\Database::sourceFile( /var/www/mediawiki136/maintenance/archives/patch-archive-ar_comment_id.sql )
Query: ALTER TABLE `archive`
ALTER COLUMN ar_comment SET DEFAULT '',
ADD COLUMN ar_comment_id bigint unsigned NOT NULL DEFAULT 0 AFTER ar_comment
On the surface it seems like it should be a simple fix. Go into the database and remove the default value for the ar_comment column. The data type of ar_comment is "tinyblob". For the life of me I can't figure out how to change the default for this.
Anyone have any ideas on how I can get past this error?
Thanks!
-Gary Gprichardson (talk) 17:45, 16 June 2021 (UTC)
- I'm running into the same issue, any news on this?
- Thanks,
- Edgar 84.247.45.84 (talk) 14:29, 24 June 2021 (UTC)
- Looks like your ar_comment field is a BLOB or TEXT column, instead of a varbinary(767) as it should be (see Manual:Archive table). Looks like it was defined as tinyblob on old versions.
- You may need to convert first that field to varbinary(767)
- There must be some migration script to do that change, I suppose... Ciencia Al Poder (talk) 10:10, 25 June 2021 (UTC)
- Hi, I would like to check if you have resolved this error? I am having the same issue when upgrading to 1.37.1 99.199.31.212 (talk) 05:52, 21 March 2022 (UTC)
- Same here, while i encounter this error while installing fresh 1.38.2 with my old mysql db. 203.9.125.252 (talk) 12:28, 3 August 2022 (UTC)
I've requested new password link a few times now and nothing has been sent. Could I get some help?
I've requested new password link a few times now and nothing has been sent. Could I get some help? 12.1.133.226 (talk) 18:17, 16 June 2021 (UTC)
- On which website? – Ammarpad (talk) 05:17, 17 June 2021 (UTC)
Merge several history edits to a single one
Is it possible to to squash multiple consecutive edits from the same user into one edit ?
In my use case I edit my wiki with SublimeText with the Mediawiker extension,
so by habit I his `CTRL+S` many times over and create new small revisions for the page.
What I'm looking to see if there is an option to squash history edits, e.g over full-day
Image: https://i.imgur.com/oZK7Ox5.png
P.S
I saw the Help:Merge history page, this is not what I'm looking for. Rabin.IO (talk) 18:25, 16 June 2021 (UTC)
- No, this is not possible in any supported way. If you're looking for 'any way' (and since it's your wiki, anyway) I think you can delete the page and recreate the edit in the way you want it. – Ammarpad (talk) 05:14, 17 June 2021 (UTC)
- Hi Ammarpad,
- Thank you for the quick reply, from your answer its sound absolute.
- Is from your familiarity with the the DB schema it is something practical,
- or is it better not to go in that direction at all? Rabin.IO (talk) 08:48, 17 June 2021 (UTC)
- "is it better not to go in that direction at all?" Yes. – Ammarpad (talk) 13:18, 17 June 2021 (UTC)
Rabin.IO (talk) 08:48, 17 June 2021 (UTC)
How to restrict editing templates for everyone except sysop?
I can't understand how exactly I can restrict editing TEMPLATE namespace for everyone except sysops. If I use one of this:
$wgNamespaceProtection[NS_TEMPLATE] = ['sysop'];
$wgNamespaceProtection[NS_TEMPLATE] = ['user'];
It blocks editing templates for everyone, including sysops. Аргскригициониец (talk) 21:41, 16 June 2021 (UTC)
- The mapping is to user-right not user-group. Since apparently there's no 'user' user-right on you your wiki (and thus no one can even have it in the first place) your setting is effectively disabling editing the namespace for everyone.
- You should either create a new right 'edit-template' for instance, add it to sysop group and restrict the editing to that same right OR use any existing right that you know only sysops have. Also read doc Manual:$wgNamespaceProtection. – Ammarpad (talk) 05:09, 17 June 2021 (UTC)
Add Meta data to a skin
I was following the doc to create new skin (Manual:How to make a MediaWiki skin).
I need to add a number of meta data on the pages. Can you please let me know or refer a doc to do so?
Along with the starter doc for skins, where can i find more details about developing/ upgrading a skin? Nasir Khan Saikat • talk • 22:44, 16 June 2021 (UTC)
- What kind of meta data? Malyacko (talk) 10:55, 17 June 2021 (UTC)
- Meta for Facebook and Twitter, meta keyword, meta description. Nasir Khan Saikat • talk • 15:16, 17 June 2021 (UTC)
- If you are creating a skin purely to add meta tags, you could instead consider Extension:WikiSEO. Jonathan3 (talk) 15:20, 17 June 2021 (UTC)
- Thanks for the reference, I will check that. But I would prefer to have the options to show meta data from the skin as well.
- I am trying to create a skin with mustache structure but found only found very few doc so far. Nasir Khan Saikat • talk • 15:24, 17 June 2021 (UTC)
Is it possible to clear a user's watchlist as an Admin user?
When we have users that leave our organization we disable them in mediawiki, however, if they had pages in their watchlist that get edited, mediawiki still tries to send them an email. This email bounces due to their email account no longer existing. What is the best way to manage watchlist for 'gone' accounts? 71.192.251.183 (talk) 13:40, 17 June 2021 (UTC)
- An “Admin user” has no access to private things, and I am not aware of any configuration that permits wiki users to interact here.
- However, there is the site sysop with database access. They can act as master next to god and at least delete records and field contents from involved databases. PerfektesChaos (talk) 14:00, 17 June 2021 (UTC)
- How would this work exactly? We are hoping to not have to manually interact with the underlying database. 71.192.251.183 (talk) 15:23, 17 June 2021 (UTC)
- How about logging in as the user and visiting Special:EditWatchlist/clear? Jonathan3 (talk) 15:19, 17 June 2021 (UTC)
- We don't know the user's credentials. 71.192.251.183 (talk) 15:23, 17 June 2021 (UTC)
- Try Manual:Resetting passwords. Jonathan3 (talk) 11:55, 18 June 2021 (UTC)
- Thank you. Yes, we can do that, but were hoping for a simpler process. 'Blocking' a user should prevent email from sending to that account and ideally clear their watchlist as well, or at least have the option to. 71.192.251.183 (talk) 12:16, 18 June 2021 (UTC)
- I am afraid a password reset has no influence on mailing behaviour. For security I will tell you the more safe way.
- First you need any DMS tool which is able to edit your database. There are hundreds, also for free.
- If you want to disconnect people forever, you may open database table
user.- Flter to the
user_namein question. - Clear field
user_emailof that record. - Without address there is no spam any longer.
- Flter to the
- If you want to keep connection in some cases, you could operate selectively.
- Then you need the user ID of the account in question.
- Best you find it on Special:Info/User:PerfektesChaos.
- My user ID is:
299181 - It is the key in database table
useras well.
- Now open database table
user_propertiesand filter to that user ID. - There are three fields in this table:
up_userup_propertyup_value
- You might simply delete records you do not like.
- Or you might want to selectively change preferences. Those
up_propertyrelated to page editing business are and may be deleted or cleared:echo-subscriptions-email-article-linkedecho-subscriptions-email-edit-thankecho-subscriptions-email-mentionecho-subscriptions-email-page-reviewecho-subscriptions-email-revertedPerfektesChaos (talk) 07:29, 21 June 2021 (UTC)
Uploading Word 2007+ docx documents keeps failing
On my mediawiki 1.35.2 wiki I cannot upload word 2007+ .docx files; server is running CentOS 7 + php 7.3.20; the error I get is
File extension ".docx" does not match the detected MIME type of the file (application/zip).
I've looked through the code and turned on debugging:
[Mime] MimeAnalyzer::guessMimeType: WARNING: use of the $ext parameter is deprecated. Use improveTypeFromExtension($mime, $ext) instead.
[Mime] MimeAnalyzer::doGuessMimeType: analyzing head and tail of /tmp/phpOphnoK for magic numbers.
[Mime] MimeAnalyzer::doGuessMimeType: ZIP signature present in /tmp/phpOphnoK
[Mime] MimeAnalyzer::detectZipType: WARNING: use of the $ext parameter is deprecated. Use improveTypeFromExtension($mime, $ext) instead.
[Mime] MimeAnalyzer::detectZipType: unable to identify type of ZIP archive
[Mime] MimeAnalyzer::guessMimeType: guessed mime type of /tmp/phpOphnoK: application/zip
[Mime] MimeAnalyzer::doGuessMimeType: analyzing head and tail of /tmp/phpOphnoK for magic numbers.
[Mime] MimeAnalyzer::doGuessMimeType: ZIP signature present in /tmp/phpOphnoK
[Mime] MimeAnalyzer::detectZipType: unable to identify type of ZIP archive
[Mime] MimeAnalyzer::guessMimeType: guessed mime type of /tmp/phpOphnoK: application/zip
[Mime] MimeAnalyzer::improveTypeFromExtension: improved mime type for .zip: application/zip
MediaHandlerFactory::getHandler: no handler found for application/zip.
mime: <application/zip> extension: <zip>
I can attach a test .docx file to reproduce (if I find out how).
What am I doing wrong ? JJKeijser (talk) 14:51, 17 June 2021 (UTC)
- As a follow up to my own post:
- I figured out what is causing the issue; when I create/export a document in LibreOffice as a .docx file, I cannot upload it to Mediawiki 1.35; when I save it in Word , I can. The reason is that LibreOffice has a different order of the .xml files inside the .docx file. Note that a .docx/.xlsx/.pptx file is just a ZIP file. So when I do
- $ unzip -l test.docx
- Archive: test.docx
- Length Date Time Name
- --------- ---------- ----- ----
- 573 06-17-2021 10:07 _rels/.rels
- 763 06-17-2021 10:07 docProps/core.xml
- 510 06-17-2021 10:07 docProps/app.xml
- 531 06-17-2021 10:07 word/_rels/document.xml.rels
- 1429 06-17-2021 10:07 word/document.xml
- 2429 06-17-2021 10:07 word/styles.xml
- 853 06-17-2021 10:07 word/fontTable.xml
- 241 06-17-2021 10:07 word/settings.xml
- 1374 06-17-2021 10:07 [Content_Types].xml
- --------- -------
- 8703 9 files
- I see that the file [[Content_Types].xml is at the bottom for a LibreOffice .docx file , but for a file saved in Word, it is near the top:
- unzip -l NOR.docx
- Archive: NOR.docx
- Length Date Time Name
- --------- ---------- ----- ----
- 1837 01-01-1980 00:00 [Content_Types].xml
- 590 01-01-1980 00:00 _rels/.rels
- 1825 01-01-1980 00:00 word/_rels/document.xml.rels
- 162448 01-01-1980 00:00 word/document.xml
- 2572 01-01-1980 00:00 word/footnotes.xml
- 2566 01-01-1980 00:00 word/endnotes.xml
- 2490 01-01-1980 00:00 word/footer1.xml
- 7643 01-01-1980 00:00 word/theme/theme1.xml
- 2863 01-01-1980 00:00 word/settings.xml
- 646 01-01-1980 00:00 word/webSettings.xml
- 32545 01-01-1980 00:00 word/styles.xml
- 27124 01-01-1980 00:00 word/numbering.xml
- 617 01-01-1980 00:00 docProps/core.xml
- 1677 01-01-1980 00:00 word/fontTable.xml
- 998 01-01-1980 00:00 docProps/app.xml
- --------- -------
- 248441 15 files
- And this actually causes the MimeAnalyzer.php code to not recognize the first document as a valid .docx file; unzipping + zipping the first file results in a valid upload.
- Clearly this is a faulty assumption somewhere in the MimeAnalyzer.php code; wouldn't it be easier to use the PHP ZIP extension for this? then one can simply extract the `[Content_Types].xml` file and determine the type. JJKeijser (talk) 07:49, 29 June 2021 (UTC)
Skin Favicon and Logo
I want to use the custom Favicon and use the logo configured in the LocalSettings.php file. I found the following code in the Skin:Example, but unfortunately it does not show the logo.
Please help me to solve the issue and you may refer a doc where I can find the solution.
```
<div id="p-logo" class="mw-portlet" role="banner">
<a href="{{link-mainpage}}">
{{#data-logos}}
{{#icon}}<img src="{{.}}" width="40" height="40">{{/icon}}
{{#wordmark}}<img src="{{src}}" width="{{width}}" height="{{height}}">{{/wordmark}}
{{^wordmark}}<h1>{{msg-sitetitle}}</h1>{{/wordmark}}
{{/data-logos}}
</a>
</div>
``` Nasir Khan Saikat • talk • 15:48, 17 June 2021 (UTC)
- anyone knows the answer? Nasir Khan Saikat • talk • 18:21, 19 June 2021 (UTC)
- Do you mean you want a favicon and want that favicon to be the same as your existing logo? Jonathan3 (talk) 19:21, 21 June 2021 (UTC)
- I need two help,
- I need to know how to set a favicon.
- Example skin does not show any logo, whereas the logo path mentioned on the LocalSettings have a file there. So what is the reason of now showing it? Nasir Khan Saikat • talk • 23:31, 22 June 2021 (UTC)
- Just upload a favico.ico to the main directory. There are lots of articles about this (and probably better ways) on the internet
- Skins are complicated. Just use Vector for now :-) Jonathan3 (talk) 09:51, 23 June 2021 (UTC)
flow extension and mediawiki
The following discussion is closed. Please do not modify it. Subsequent comments should be made on the appropriate discussion page. No further edits should be made to this discussion.
Hello everyone, I want to present this problem that I have with the flow extension that is because mediawiki runs in 32-bit binary it has a common problem so it shows the dates of 1969, etc. when a topic is published on a talk page. how can this problem be solved? 189.217.121.39 (talk) 16:13, 17 June 2021 (UTC)
- Please see the sidebar for basic info needed, and please describe a list of clear steps to see and reproduce an actual date problem somewhere (where?), instead of jumping to conclusions (what exactly and where is a "32-bit binary" involved? what makes you think that is related at all?) Malyacko (talk) 20:11, 17 June 2021 (UTC)
- as mentioned here that problem with flow is what is happening, when publishing a topic that error occurs from the dates. 189.217.121.39 (talk) 22:13, 17 June 2021 (UTC)
- See the "How to fix it" section on the page that you linked then Malyacko (talk) 08:05, 18 June 2021 (UTC)
Add Webfonts to the skin
I need to use some fonts on my skin. Can you please let me what is the best/ recommended approach to embed an external font?
I need to add a Google Font for the text and also want to FontAwesome icon fonts to the skin. Nasir Khan Saikat • talk • 17:54, 17 June 2021 (UTC)
- Please see this-
- [[[[3]]|Google Fonts]].
- You can also try this- Extension:FontAwesome ↠Tanbirzx (✉) 19:47, 17 June 2021 (UTC)
- @Tanbirzx The question was how to add an external font to a skin. How is your link related at all to answering that question? Malyacko (talk) 20:05, 17 June 2021 (UTC)
- @Malyacko I have just given this link for taking some needful sense about webfonts and texts. Thank you ↠Tanbirzx (✉) 04:24, 18 June 2021 (UTC)
- @Tanbirzx The question was how to add a custom external font (!) to a skin (!). Your links do not help answer the question... Malyacko (talk) 08:04, 18 June 2021 (UTC)
- thanks @Tanbirzx for your links but unfortunately those links does not help. I have the links to google font and I know how to use in in a website. @Malyacko understands my question properly and I agree with him that those links will not help to what I asked for.
- If i repeat my question here again, I need to know the recommended way to use a Google font to a mediawiki skin. I know I can use Common.css and I know there might be extensions to meet the need, but as I am developing a skin I want to add it with the skin. So I do not want to use any external approach to achieve the goal, unless using a extension is the recommended way. Nasir Khan Saikat • talk • 17:30, 19 June 2021 (UTC)
MW 1.36 - session.save_path
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.
Started the MediaWiki Installation >> selecting continue under the language page >> stay on the same language page with the following message above:
Your session data was lost! Check your php.ini and make sure session.save_path is set to an approbiate path.
PHP.ini shows session.save_path = "C:\PHP\tmp"
php.info shows the path under the session.save_path.
Any advice why this message comes up?
===============
PHP Version 7.3.28
MW 1.36
Server 2019
MSSQL Dossod11 (talk) 18:16, 17 June 2021 (UTC)
- Check also that object cache is set up right (e.g. for apcu, check apcu.shm_size . If using IIS check equivalent wincache settings) Bawolff (talk) 08:37, 18 June 2021 (UTC)
- Wincache 2.0.0.8 is installed and listed under the php.ini
- Not sure where to check apcu.shm_size. I'm using IIS; what wincache settings would I have to check.
- The Handler Mapping (*.php, PHP Via FastCGI, FastCGIModule, "Do you want to create a FastCGI application for this executable: yes) is set. Dossod11 (talk) 19:26, 21 June 2021 (UTC)
- Somehow it started working with a different browser. I'll close this post up. Thanks for the help. Dossod11 (talk) 16:51, 29 June 2021 (UTC)
error - Actor table doesn't exist when running dumpBackup.php on wiki family
I'm running MW 1.35 with three wikis (languages). I have $wgSharedTables[] = 'actor'; set, and have had that when I upgraded from MW 1.29 to 1.35 - so only the central wiki has the table.
When I try to run dumpBackup.php on any of the secondary wikis, I get an error from WikiExporter::dumpPages() (see at the bottom of this post).
I tried debugging this, and it looks like Database::qualifiedTableComponents() is called twice for the actor table - the 1st time it has the correct aliases in its tableAliases and the joinedTable is set to the shared table, but the 2nd time tableAliases is empty.
I'm completely out of my depth here - anyone has a clue what could be happening? Let me know of I shuld provide any more details. Thanks!
Wikimedia\Rdbms\DBQueryError from line 1699 of /var/www/kzlocal/w/includes/libs/rdbms/database/Database.php: Error 1146: Table 'kz_dev_ar.actor' doesn't exist (localhost)
Function: WikiExporter::dumpPages
Query: SELECT rev_id,rev_page,rev_timestamp,rev_minor_edit,rev_deleted,rev_len,rev_parent_id,rev_sha1,comment_rev_comment.comment_text AS `rev_comment_text`,comment_rev_comment.comment_data AS `rev_comment_data`,comment_rev_comment.comment_id AS `rev_comment_cid`,actor_rev_user.actor_user AS `rev_user`,actor_rev_user.actor_name AS `rev_user_text`,temp_rev_user.revactor_actor AS `rev_actor`,page_namespace,page_title,page_id,page_latest,page_is_redirect,page_len,slot_revision_id,slot_content_id,slot_origin,slot_role_id,content_size,content_sha1,content_address,content_model,page_restrictions,1 AS `_load_content` FROM `page` JOIN `revision` ON ((page_id=rev_page AND page_latest=rev_id)) JOIN `revision_comment_temp` `temp_rev_comment` ON ((temp_rev_comment.revcomment_rev = rev_id)) JOIN `comment` `comment_rev_comment` ON ((comment_rev_comment.comment_id = temp_rev_comment.revcomment_comment_id)) JOIN `revision_actor_temp` `temp_rev_user` ON ((temp_rev_user.revactor_rev = rev_id)) JOIN `actor` `actor_rev_user` ON ((actor_rev_user.actor_id = temp_rev_user.revactor_actor)) JOIN `slots` ON ((slot_revision_id = rev_id)) JOIN `content` ON ((content_id = slot_content_id)) WHERE (rev_page>0 OR (rev_page=0 AND rev_id>0)) ORDER BY page_id ASC LIMIT 50000 </nowiki>
#0 /var/www/kzlocal/w/includes/libs/rdbms/database/Database.php(1683): Wikimedia\Rdbms\Database->getQueryException()
#1 /var/www/kzlocal/w/includes/libs/rdbms/database/Database.php(1658): Wikimedia\Rdbms\Database->getQueryExceptionAndLog()
#2 /var/www/kzlocal/w/includes/libs/rdbms/database/Database.php(1227): Wikimedia\Rdbms\Database->reportQueryError()
#3 /var/www/kzlocal/w/includes/libs/rdbms/database/Database.php(1907): Wikimedia\Rdbms\Database->query()
#4 /var/www/kzlocal/w/includes/libs/rdbms/database/DBConnRef.php(68): Wikimedia\Rdbms\Database->select()
#5 /var/www/kzlocal/w/includes/libs/rdbms/database/DBConnRef.php(313): Wikimedia\Rdbms\DBConnRef->__call()
#6 /var/www/kzlocal/w/includes/export/WikiExporter.php(471): Wikimedia\Rdbms\DBConnRef->select()
#7 /var/www/kzlocal/w/includes/export/WikiExporter.php(299): WikiExporter->dumpPages()
#8 /var/www/kzlocal/w/includes/export/WikiExporter.php(161): WikiExporter->dumpFrom()
#9 /var/www/kzlocal/w/maintenance/includes/BackupDumper.php(322): WikiExporter->allPages()
#10 /var/www/kzlocal/w/maintenance/dumpBackup.php(84): BackupDumper->dump()
#11 /var/www/kzlocal/w/maintenance/doMaintenance.php(107): DumpBackup->execute()
#12 /var/www/kzlocal/w/maintenance/dumpBackup.php(144): require_once('/var/www/kzloca...')
#13 {main}FFS Talk 20:06, 17 June 2021 (UTC)
Deleted pages still appear on Special:UncategorizedPages
The following discussion is closed. Please do not modify it. Subsequent comments should be made on the appropriate discussion page. No further edits should be made to this discussion.
I've tried to run refreshLinks.php and updateSpecialPages.php but a deleted page still appears on Special:UncategorizedPages no matter what I try. Any idea how this could be fixed? Reception123 (talk) 05:56, 18 June 2021 (UTC)
- Check if the page has an invalid name (for example, not in NFC in the database). If so, you might have to delete it using the api and its page id, instead of deleting it by name. Bawolff (talk) 08:35, 18 June 2021 (UTC)
- Thanks, will do that! Reception123 (talk) 09:19, 18 June 2021 (UTC)
- Tried deleting via Page ID and it still doesn't seem to take effect (still shows up on Special pages) :( Reception123 (talk) 10:16, 18 June 2021 (UTC)
Changing homepage name to site name per $wgSitename value
MediaWiki 1.35.2 in Hebrew.
I desire that the <h1> heading of my website's homepage would be the site name as the $wgSitename value, instead the current, default-created, generic heading עמוד ראשי (which I would translate to English as "main page").
I want to achieve that:
- Without creating any 301 redirect
- Without installing any addon extension
Is it possible from the core somehow, perhaps by utilizing SITENAME magic word? 2001:44C8:44C8:6B18:B0B9:2D7D:C2AA:6000 (talk) 06:42, 18 June 2021 (UTC)
- The page named MediaWiki:Mainpage controls the "name" of the main page. Edit that page. Bawolff (talk) 08:33, 18 June 2021 (UTC)
- Hello @Bawolff
- I think I don't have such a page; from a search on all webpages with
מדיה-ויקי:(MediaWiki:) namespace, I got:- מדיה ויקי:Cite references link many
- מדיה ויקי:Cite references link one
- מדיה ויקי:Common.css
- מדיה ויקי:Common.js
- מדיה ויקי:Emailsubject
- מדיה ויקי:Sidebar
- מדיה ויקי:Sitenotice
- Furthermore, navigating to example.com/MediaWiki:Mainpage brings not found 404.
- What should a user do in such a case? 2001:44C8:44C8:6B18:484F:35FB:CD28:A71C (talk) 10:29, 18 June 2021 (UTC)
- Try Manual:FAQ. Jonathan3 (talk) 12:00, 18 June 2021 (UTC)
- @Jonathan3
- In the FAQ there is the section:
- How do I change the Main Page title?
Simply click on the "Move" tab, and move the page to the desired page title.Usually you also want to change which page is the configured as "main page".- This brings me back to the MediaWiki:Mainpage I mentioned above. 2001:44C8:44C8:6B18:484F:35FB:CD28:A71C (talk) 12:42, 18 June 2021 (UTC)
- @Jonathan3 to further clarify my point: After "moving the main page to another name" the logo links to a deleted webpage
- Again, I humbly remind that I don't want to use redirects. 2001:44C8:44C8:6B18:484F:35FB:CD28:A71C (talk) 12:44, 18 June 2021 (UTC)
- Okay,
- What I did and might have solved this, was to go to Special pages --->>> System Messages and there to search for "mainpage" (without quote marks) and to edit:
- מדיה ויקי:Mainpage
- מדיה ויקי:Mainpage-description
- מדיה ויקי:Mainpage-nstab
- I have edited the system message for each one of them to
{{SITENAME}}and saved now the logo image points to my "new" homepage with the new name; - I think that the only thing left for me to do is to also edit the sidebar menu link to point to it as well, because it's currently hard-wired to point to the "old" homepage. 2001:44C8:44C8:6B18:484F:35FB:CD28:A71C (talk) 12:57, 18 June 2021 (UTC)
- Just to clarify a previous point, pages starting with mediawiki: (including translations) have a default value even if they don't exist, and you have to create them to change their defaults.
- The default sidebar will use MediaWiki:mainpage as the link to the main page (and mediawiki:mainpage-description as the text of the link). Its possible you customized the sidebar to be hardcoded, or maybe some caching is happening, in which case a dummy edit to mediawiki:sidebar might help (or just wait a few days) Bawolff (talk) 06:45, 19 June 2021 (UTC)
- @Bawolff if I am not wrong, the original value of the sidebar link was (as in the sidebar edit page):
mainpage|עמוד ראשי- I then changed it too:
mainpage|MediaWiki- It might have been something else than
mainpage|עמוד ראשיbut I don't recall ever changing it before my action earlier today. 2001:44C8:44C8:6B18:F523:B14E:AB6B:5379 (talk) 06:51, 19 June 2021 (UTC) - if I am not wrong, the original value of the sidebar link was (as in the sidebar edit page):
mainpage|עמוד ראשי- I then changed it too:
mainpage|{{SITENAME}}- It might have been something else than
mainpage|עמוד ראשיbut I don't recall ever changing it before my action earlier today. 2001:44C8:44C8:6B18:F523:B14E:AB6B:5379 (talk) 06:52, 19 June 2021 (UTC) - Added <nowiki></nowiki> tags in my second post. 2001:44C8:44C8:6B18:F523:B14E:AB6B:5379 (talk) 06:53, 19 June 2021 (UTC)
- The original value is supposed to be:
- mainpage|mainpage-description
- It will substitute that for the mediawiki namespace page of that name. If that doesn't exist, it will use the value as specified. See manual:interface/Sidebar for details. Bawolff (talk) 06:43, 20 June 2021 (UTC)
- @Bawolff
- ==My current sidebar menu pattern is as follows:==
* navigation ** mainpage|{{SITENAME}} ** recentchanges-url|recentchanges ** randompage-url|randompage ** CUSTOM_LINK_1 ** CUSTOM_LINK_2 ** יצירת קשר:טופס|יצירת קשר * SEARCH * TOOLBOX * LANGUAGES- ==My current system messages pattern is as follows:==
- מדיה ויקי:Mainpage
- מדיה ויקי:Mainpage-description
- מדיה ויקי:Mainpage-nstab
- All got just
{{SITENAME}}as value. - ==My question==
- I find my website to work fine, but I misunderstand if in your last post you clue that my website has a problem that I should take care of, so do you think I should change any of the two patterns I just described? 2001:44C8:44C8:6B18:28FD:BC92:A295:3870 (talk) 08:08, 20 June 2021 (UTC)
- If what you have works, keep it Bawolff (talk) 00:21, 26 June 2021 (UTC)
$wgUploadSizeWarning
Hello,
in the LocalSettings I filled in:
$wgMaxUploadSize = [ '*' => 1024 * 1024, // 1000 KB
'url' => 500 * 1024, // 500 KB ];
But how can I change the warning?
$wgUploadSizeWarning = 1000000;
for example is without any effect. If I test it with a oversized jpg the system says:
"Etwas ist schief gelaufen. Offset plus current chunk is greater than claimed file size"
How can I change this message into "Diese Datei ist zu groß. Maximal sind 1000 KB zulässig" ? PorzWiki (talk) 07:40, 18 June 2021 (UTC)
- This looks like two system messages together: "ooui-dialog-process-error" says "Etwas ist schief gelaufen" (or "visualeditor-dialog-error" says "Etwas ist schief gelaufen …"), and then "apierror-invalid-chunk" adds "Offset plus current chunk is greater than claimed file size."
- You can edit those message through their pages, e.g. "MediaWiki:apierror-invalid-chunk", but here's a couple of points:
- You probably shouldn't change the first message, as it's a generic error message, followed by a more specific one, and might be used in a lot of other places.
- "apierror-invalid-chunk" isn't the error message you're supposed to get if the file size is too big - that's either:
- "file-too-large": "Die hochgeladene Datei war zu groß.", or "uploadstash-file-too-large" or
- "uploadstash-file-not-found-not-exists": "Der Pfad konnte nicht gefunden werden oder die Datei ist nicht eindeutig."
- "apierror-invalid-chunk" is supposed to show when the original file size claimed was X, but the current chunk uploaded (when the upload is in chunks) already exceeds that claimed file size. If it shows for files that are simply too big, that might be a bug... FFS Talk 19:51, 19 June 2021 (UTC)
ShortURL problems: 404 (used Redwerks)
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 been trying to set up a Short URL for my MediaWiki install. I am using the latest version of everything that is available to me; I am doing this on a private debian server so i have root access, etc. The Redwerks configuration generator has given me the following code:
RewriteEngine On
RewriteRule ^/?wiki(/.*)?$ %{DOCUMENT_ROOT}/w/index.php [L]
RewriteRule ^/?$ %{DOCUMENT_ROOT}/w/index.php [L]
RewriteCond %{DOCUMENT_ROOT}%{REQUEST_URI} !-f
RewriteCond %{DOCUMENT_ROOT}%{REQUEST_URI} !-d
RewriteRule ^/?w/images/thumb/[0-9a-f]/[0-9a-f][0-9a-f]/([^/]+)/([0-9]+)px-.*$ %{DOCUMENT_ROOT}/w/thumb.php?f=$1&width=$2 [L,QSA,B]
RewriteCond %{DOCUMENT_ROOT}%{REQUEST_URI} !-f
RewriteCond %{DOCUMENT_ROOT}%{REQUEST_URI} !-d
RewriteRule ^/?w/images/thumb/archive/[0-9a-f]/[0-9a-f][0-9a-f]/([^/]+)/([0-9]+)px-.*$ %{DOCUMENT_ROOT}/w/thumb.php?f=$1&width=$2&archived=1 [L,QSA,B]
as well as
$wgScriptPath = "/w";
$wgScriptExtension = ".php";
$wgArticlePath = "/wiki/$1";
and
$wgEnableUploads = true;
$wgGenerateThumbnailOnParse = false;
As you can see, i am performing a fairly standard version of this process with my wiki installed at /w/ and intending to use /wiki/Page_name styled links. The root of my web server is /var/www/html. The RewriteRule stuff has been put in 000-default.conf inside /etc/apache2/sites-available.
All of this config should be correct as far as I know.
I then went into my apache2.conf and changed AllowOverride on all three blocks I could find there. I started out by only changing it for the third one (/var/www) but that did not work. Unfortunately, having all three changed to AllowOverride All did not fix my problem. (screenshot: http://g2f.nl/07vvtxd.png)
With all of the above, if all of the troubleshooting threads I have read are to be believed, it should work. However, it does not. I am completely stumped here, and could use some third party input. It would be much appreciated! 2A02:A44B:DA4B:1:B0FE:484E:7A2F:350C (talk) 08:33, 18 June 2021 (UTC)
- I should clarify: As the thread title suggestions, what specifically isn't working is the fact that, when i visit the wiki using short URLs, I am getting 404 Not Found errors. I can however still visit the wiki using standard long-form index.php/Page_name type URLs. 2A02:A44B:DA4B:1:B0FE:484E:7A2F:350C (talk) 08:35, 18 June 2021 (UTC)
- I have also tried using the .htaccess method, but that also did not work for me and resulted in the same 404 situation. 2A02:A44B:DA4B:1:B0FE:484E:7A2F:350C (talk) 08:38, 18 June 2021 (UTC)
- I should also mention I have tried this with $wgUsePathInfo present as well and that did not change anything. 2A02:A44B:DA4B:1:B0FE:484E:7A2F:350C (talk) 08:53, 18 June 2021 (UTC)
- This is strange. Rules look good to me. Did you restart the Apache service?
- Note that all files in /etc/apache2/sites-available may bot be enabled. Look for /etc/apache2/sites-enabled
- Be sure you put them in the relevant <Location> or <VirtualHost> section (one that's actually being used for the wiki, all of them if you have separate sections for http and https) Ciencia Al Poder (talk) 10:00, 18 June 2021 (UTC)
- I did indeed restart the service several times during this process, so that's definitely not the problem. As I tried the .htaccess method as well as the root method, and tried changing different configurations by ticking different boxes on the Redwerks generator, i each time restarted apache before checking.
- In my sites-enabled, there are only symlinks to the files in sites-available, including 000-default which I edited. If I use a2ensite, i get the message that 000-default is already enabled.
- In that file, there was already an existing rewriterule to redirect all requests to https. I placed the rewriterules generated by Redwerks in that same location, removing the "RewriteEngine on" as that line was already there from my prior rewrite rule.
- (This was all located right above </VirtualHost> closing tag.) 2A02:A44B:DA4B:1:B0FE:484E:7A2F:350C (talk) 10:07, 18 June 2021 (UTC)
- The thing is, I don't have a separate VirtualHost for https, so there's only really one file for me to edit here. The fact that the htaccess method ALSO doesn't work, leads me to believe something is going wrong on the "AllowOverride" side of things.
- In the guide, I noticed this:
- "If the path to your script directory is aliased by the webserver via an Alias directive, as it is in Debian among others, the RewriteRule will work as long as you add the PT flag (ie: change [L] to [PT,L]) to Pass Through the request to the next handler - mod_alias, which will correctly redirect the request, as per Stack Overflow"
- I have not yet tried this. This might be what's going wrong. Will report back. 2A02:A44B:DA4B:1:B0FE:484E:7A2F:350C (talk) 10:10, 18 June 2021 (UTC)
- Unfortunately, the above trick also didn't do it. Still getting a 404. 2A02:A44B:DA4B:1:B0FE:484E:7A2F:350C (talk) 10:12, 18 June 2021 (UTC)
- I also tried the Alias method as outlined in the guide, to no avail. 2A02:A44B:DA4B:1:B0FE:484E:7A2F:350C (talk) 10:16, 18 June 2021 (UTC)
- Never mind!!
- I've been a bit of an idiot. I did not realize that 000-default-le-ssl was in fact my https VirtualHost.
- Adding the rules to that file as well fixed the problem.
- Thank you so much for pointing this out to me, or I would likely never have thought of checking that file.
- This problem has been fixed now! 2A02:A44B:DA4B:1:B0FE:484E:7A2F:350C (talk) 10:28, 18 June 2021 (UTC)
Translating Content
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 have a wiki site that I can edit. I can create pages and edit them just fine, but I need to build the whole site in english and spanish. Is it possible to do this without installing the translation extension? I don't have access to the server, just the frontend functionality for editing the site. Is it possible to create a link in the left sidebar to spanish and english versions of the site; is there an easier way to do this?
I'm very new to MediaWiki and any help is appreciated.
Thanks! EGCasas (talk) 12:59, 18 June 2021 (UTC)
- Yes, you can create a link on the sidebar. Here's the manual: Manual:Interface/Sidebar on how to do it. MarioSuperstar77 (talk) 13:51, 18 June 2021 (UTC)
- Thanks EGCasas (talk) 08:07, 21 June 2021 (UTC)
Error message
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.
Dear Support Desk,
While working in a project, we got the error when opening said project that went as follows: Failed to start session in HCP Cloud.
How can we solve this to get back to work? 2001:1C03:5725:B300:7017:BE81:A086:F157 (talk) 14:20, 18 June 2021 (UTC)
- Welcome to the support desk for the MediaWiki (!) software. How is this related to the MediaWiki software? Malyacko (talk) 18:53, 18 June 2021 (UTC)
locuszoom
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 could you help? I'm trying to run the example script in locuszoom (as denoted on the manual: https://genome.sph.umich.edu/wiki/LocusZoom_Standalone) however get the following error message.
(base) clovegrove@gechco:/data/clovegrove/locuszoom/examples$ ./run_example.py
Running: /data/clovegrove/locuszoom/bin/locuszoom --metal Kathiresan_2009_HDL.txt --refgene FADS1
Traceback (most recent call last):
File "/data/clovegrove/locuszoom/bin/locuszoom", line 26, in <module>
from m2zfast import main
File "/data/clovegrove/locuszoom/bin/../src/m2zfast.py", line 126
exec "self.%s = v" % str(k)
^
SyntaxError: invalid syntax
Thank you! 88.109.79.246 (talk) 14:38, 18 June 2021 (UTC)
- Welcome to the support desk for the MediaWiki (!) software. We cannot help with potentially incorrect content on random third-party website. You may want to ask on that wiki instead. Malyacko (talk) 18:52, 18 June 2021 (UTC)
Migrate
The following discussion is closed. Please do not modify it. Subsequent comments should be made on the appropriate discussion page. No further edits should be made to this discussion.
Is it possible to migrate a wiki.fandom.com database of almost 1,000 pages to a mediawikia.org project without having to redo each page. UFO-Alien Database (talk) 16:11, 19 June 2021 (UTC)
- Basically, yes.
- For a good programmer it is no big deal to populate a wiki automatically from any external source.
- There are some WMF wikis which are almost only written by automatic bot activities. PerfektesChaos (talk) 18:12, 19 June 2021 (UTC)
- I don't know what mediawikia is. Do you mean mediawiki (us)? We don't host projects, just provide the software. You can use the software to host it yourself. Otherwise try contacting miraheze or shoutwiki if you're looking for a fandom like host that is not fandom. Bawolff (talk) 06:40, 20 June 2021 (UTC)
- Maybe wikia.org? Jonathan3 (talk) 12:47, 20 June 2021 (UTC)
Bot request - text select/cut help
The following discussion is closed. Please do not modify it. Subsequent comments should be made on the appropriate discussion page. No further edits should be made to this discussion.
I've been looking around and I'm not sure where I can make a bot request for editing mediawiki projects, such as for editing a Fandom wiki. I've seen a bot request page for Wikipedia itself, but I'm not editing that.
I'm definitely not an experienced coder, so I don't know how to create one from scratch, nor add it to a wiki, etc.
I'm asking for a bot to remove (not replace) a single certain text from multiple certain pages. The reason behind this request is that while I'm editing, I'm able to use my browser's "find" feature to highlight the text I want, but unfortunately, this feature does not also duel select the highlighted text for me to easily cut (I have to manually do this with my cursor which is quite tedious and time consuming as the text is repeated hundreds of times on a single page). Is there a way to easily autoselect the same text and cut it without needing a bot?
My example:
Specific source code text to be removed: <br />
From all main pages titled: placeholderarticlepagename/Transcript
(Note: The pages I intend to edit out these breaks are not template pages) SpiritHawk7 (talk) 20:17, 19 June 2021 (UTC)
What is an Nstab in MediaWiki terminology?
The following discussion is closed. Please do not modify it. Subsequent comments should be made on the appropriate discussion page. No further edits should be made to this discussion.
I need to understand the term Nstab to ensure I work with MediaWiki:Mainpage-nstab system message correctly.
- The manual page MediaWiki:Nstab-help currently contains only one word --- "help"
- The manual page MediaWiki:Nstab-mediawiki currently contains only one word --- "Interface page"
What is an Nstab in MediaWiki terminology?
This question is a follow up for the question Changing homepage name to site name per $wgSitename value. 2001:44C8:44C8:6B18:28FD:BC92:A295:3870 (talk) 13:30, 20 June 2021 (UTC)
- It is a namespace tab. Malyacko (talk) 14:37, 20 June 2021 (UTC)
- Some example of the term in the context of MediaWiki would be helpful. 2001:44C8:44C8:6B18:28FD:BC92:A295:3870 (talk) 16:55, 20 June 2021 (UTC)
- On the standard Vector skin there are two main tabs, one for the page and one for the related talk page. I guess their names vary per namespace and this is how you set the relevant values. Jonathan3 (talk) 19:55, 20 June 2021 (UTC)
- The tab in the upper left corner of this (desktop) page is labeled “Topic” in English but “Thema” in German as controlled via MediaWiki:nstab-topic (imported from upstream) and “Wątek” in Polish via local MediaWiki:nstab-topic/pl. Well, if you visit the particular thread.
- The main namespace, the focus of interest with ns=0, is called “Gallery” on commons:Earth but “Article” on w:en:Earth (English Wikipedia) and “Item” on d:Q2 (Wikidata). Defined via MediaWiki:nstab-main or inherited from upstream (“Page”). PerfektesChaos (talk) 07:08, 21 June 2021 (UTC)
- So I understand that Nstab is the tab which would generally be "main page" (for main pages only) or "article" (for article pages only), "topic" (for topic pages here in the MediaWiki community website), etc. and is pretty much only the uppermost-leftmost tab in MediaWiki websites. 2001:44C8:424C:7D3F:F1D0:3E15:B502:52D5 (talk) 15:13, 21 June 2021 (UTC)
MediaWiki 1.36.0 installation - unable to update extension schema
Howdy, new-ish to MediaWiki, trying to install the 'ConfirmAccount' extension on a cpanel (no php command prompt) I'm getting the following error using the web updater
Any help is greating appreciated!
Environmental checks
Basic checks will now be performed to see if this environment is suitable for MediaWiki installation. Remember to include this information if you seek support on how to complete the installation.
PHP 8.0.7 is installed.
Warning: Could not find APCu or WinCache.
Object caching is not enabled.
[6ad36df033a4c4dbc1744ade] /mw19/mw-config/?page=Welcome Error: Call to undefined function Shellbox\escapeshellarg()
Backtrace:
from /home/anonymo2/public_html/mw19/vendor/wikimedia/shellbox/src/Shellbox.php(148)
#0 /home/anonymo2/public_html/mw19/vendor/wikimedia/shellbox/src/Command/Command.php(69): Shellbox\Shellbox::escape()
#1 /home/anonymo2/public_html/mw19/includes/shell/Shell.php(130): Shellbox\Command\Command->params()
#2 /home/anonymo2/public_html/mw19/includes/utils/ExecutableFinder.php(74): MediaWiki\Shell\Shell::command()
#3 /home/anonymo2/public_html/mw19/includes/utils/ExecutableFinder.php(105): ExecutableFinder::findExecutable()
#4 /home/anonymo2/public_html/mw19/includes/installer/Installer.php(941): ExecutableFinder::findInDefaultPaths()
#5 /home/anonymo2/public_html/mw19/includes/installer/Installer.php(554): Installer->envCheckDiff3()
#6 /home/anonymo2/public_html/mw19/includes/installer/WebInstallerWelcome.php(32): Installer->doEnvironmentChecks()
#7 /home/anonymo2/public_html/mw19/includes/installer/WebInstaller.php(269): WebInstallerWelcome->execute()
#8 /home/anonymo2/public_html/mw19/mw-config/index.php(82): WebInstaller->execute()
#9 /home/anonymo2/public_html/mw19/mw-config/index.php(40): wfInstallerMain()
#10 {main} Bcunni2 (talk) 19:37, 20 June 2021 (UTC)
- Apparently MediaWiki's not compatible with PHP 8: Compatibility.
- The apcu thing would be easy for your hosting company to sort out. Jonathan3 (talk) 19:53, 20 June 2021 (UTC)
execute php in mediawiki page
Hi,
I want MediaWiki to execute a PHP code when I open a page. Example
<?php $_SESSION['pageName']="XYZ"; ?>
so I can use this information (the session value) in another PHP form that I have designed.
Is there a way?
thanks in advance 2A02:2F0C:5A0C:4E00:9C78:A978:1B20:2BD7 (talk) 10:01, 21 June 2021 (UTC)
- I'm curious about what you want to do overall :-) Jonathan3 (talk) 08:10, 22 June 2021 (UTC)
- Normally people would put such code in LocalSettings.php or a hook. See manual:Hooks Bawolff (talk) 00:15, 24 June 2021 (UTC)
Error in MPDF
I am getting error for some pages. Can anyone help here?
AA] 2021-06-21 10:39:18: Fatal exception of type "MpdfException" 143.97.2.35 (talk) 10:40, 21 June 2021 (UTC)
I want to start a wiki like wikiHow experts can you help me?
Please help me in creating a wiki like wikiHow Kunalyadav1234 (talk) 11:23, 21 June 2021 (UTC)
- See the links on https://www.mediawiki.org/ Malyacko (talk) 21:17, 21 June 2021 (UTC)
- User:Jack Phoenix might know about what wikihow specific stuff is still publicly available. Unfortunately wikihow close sourced much of their code. Bawolff (talk) 00:13, 24 June 2021 (UTC)
- The ShoutHow project, a side project of mine, aims at improving original, first-party extensions (and other code) created by wikiHow in order to provide an experience comparable to that of the "real deal". It's a hodgepodge of upstream MediaWiki + skins + extensions (currently based on MW 1.35.2) + wikiHow extensions + skin(s) + custom core patches + custom extensions. There is an installation manual available and patches are always welcome, but regardless, you should treat it as alpha-grade research code rather than something you can immediately deploy — even if it is indeed based on real wikiHow code.
- For those curious: wikiHow closed down the self-serve source code portal,
src.wikihow.com, in November 2020, as per this discussion. But even before that, there had been a fair amount of closed-source bits 'n' pieces in the codebase, such as various backend scripts etc. that have a MW special page front-end. Additionally the skin was sorta made closed source in late 2014 as wikiHow removed theskinsdirectory from the public source code dumps altogether. That said, the older, non-responsive skin (skins/Owl) was made obsolete at some point and wikiHow.com has used the responsive skin fromextensions/MobileFrontendWikihowfor quite some time. I was unable to figure out how to make that the default on a more vanilla installation (such as ShoutHow). - Overall I suggest that you focus on the specific features you want and see if there are extensions that can achieve the desired result. One of the reasons the ShoutHow platform is essentially a fork of MediaWiki is that not only are there some (small-ish) core hacks to core MediaWiki files, but a lot of the extensions etc. depend on each other and also the skins (though I have been working on improving the cross-skin-compatibility with the ultimate goal that you could be using whatever skin you want and all pages still render as expected; wikiHow did not and does not allow any other skins than the site default, so their developers do not test features with any other skin, obviously). Jack Phoenix (Contact) 08:17, 6 July 2021 (UTC)
- this is a very nice project of yours!
- do you have a working demo or showcase websites that use your code? 2001:4BC9:A47:EF1F:A9E3:4B44:1B15:FDAD (talk) 17:05, 4 February 2023 (UTC)
- Thank you for the kind words, they're much appreciated!
- Alas, there's no public demo of this or anything; though my original comment was written in July 2021, nothing has really changed in that regard (other than that, as per version lifecycle etc., the current LTS version of upstream MediaWiki is 1.39 and 1.35 is the legacy LTS release). The software is still there, the installation guide is hopefully accurate enough to be usable in installing it and the listed installation requirements are also likely to be accurate enough.
- Unless you're a die-hard MediaWiki enthusiast or being paid to work on this (or both!), I'd be very wary of running this on a public server. Though I've tried to fix all the issues I've come across, whether security or regular bugs, there are no doubt more than plenty of them left.
- Luckily, for many features, there are great, maintained alternatives that work with a "vanilla" MediaWiki. For example:
- user avatars and structured profile pages — Extension:SocialProfile
- gathering feedback about articles from your readers — Extension:ArticleFeedbackv5
- tool for thanking authors — Extension:Thanks, Extension:WikiLove (neither is functionally identical to wikiHow's ThankAuthors extension, but close enough)
- Full disclaimer: I maintain ArticleFeedbackv5 (for some definition of the word maintain, anyway), SocialProfile and the entire social tools family of extensions, so I'm of course somewhat biased. :-)
- Either way, you should consider the question "what features [from wikiHow] do I want?" and then start searching for maintained extensions to fulfill your need for such features.
- Of course I'd be more than happy to receive contributions from you or anyone else, but the sheer size of the ShoutHow project is daunting and there's a lot of undocumented...well, everything, really. Not just code, but there's no user-facing documentation for a lot of things. Furthermore, that is pretty much why it'll be very tricky, annoying and time-consuming to move the platform to MediaWiki 1.39 in the future. As said, core hacks aren't something you ever should do, and when you start to need more than two hands' fingers to count the amount of core hacks you have, you have really messed up somewhere and you need a paid team of competent developers to maintain them, probably (or better yet, rewrite them in a fashion which does not require the usage of core hacks). That's one of the reasons why I can't really recommend using this silly research project of mine anywhere as of now. Jack Phoenix (Contact) 20:14, 4 February 2023 (UTC)
contact hosting customer support
"Internal Server Error: The server encountered an internal error or misconfiguration and was unable to complete your request. Please contact the server administrator at webmaster@rockyhorrorwiki.org to inform them of the time this error occurred, and the actions you performed just before this error. More information about this error may be available in the server error log."
according to faq...
Ask your hosting customer support to disable it completely or the rules affecting your edits."
But who is my "hosting customer support" and how do I contact them?
@Michaelbaribeau Michaelbaribeau (talk) 15:20, 21 June 2021 (UTC)
- We don't know too. Maybe you should use how to find my hosting provider – Ammarpad (talk) 18:30, 21 June 2021 (UTC)
- Thank you. It brings up dreamhost but not a 'user' support only customer support. Guess I better try another thread with outlining the issue and see if there is another option
- @Michaelbaribeau. Michaelbaribeau (talk) 19:49, 21 June 2021 (UTC)
To document a processus with mediawiki.
I'm looking for a way to document a processus with mediawiki. Governance, management. Is it possible to build a tree or a flowchart on Mediawiki ? If not... do you know technics to draw near this goal. Thanks ! Dehaasbe (talk) 20:15, 21 June 2021 (UTC)
Visual Editor nightmare?
Hello few days ago I have installed mediawiki and I really like it. Now the only thing that is not working is the visual editor. Each time ÄI try to start it I am getting the nasty message "Error contacting the Parsoid/RESTBase server: http-request-error". I have already tried some options that have been mentioned here but nothing seeems to help. What is missing in order to get it to work as editing in source code is not really much of a fun and takes along time to do it. Thank you in advance. Nidzo2021 (talk) 21:54, 21 June 2021 (UTC)
Saving Edit Get Internal Server Error
Didn't use to have any trouble but now I not only get this Internal Server Error screen when I try to save an edit but also when I try to view changed even is there are no changes. There are 2 other pages I work on that are very similar and I don't get any error from them. I'm just a novice user not admin or owner. Any suggestions would be appreciated. Here's the page I'm working on...
http://www.rockyhorrorwiki.org/wiki2/index.php?title=The_Denton_High_Drama_Club
@Michaelbaribeau Michaelbaribeau (talk) 22:12, 21 June 2021 (UTC)
- Feel free to contact the administrators of that wiki so they can investigate. Malyacko (talk) 07:31, 22 June 2021 (UTC)
- Thank you. How do I find the administrators' contact? Michaelbaribeau (talk) 13:09, 22 June 2021 (UTC)
- See http://www.rockyhorrorwiki.org/wiki2/index.php?title=Special:ListUsers/sysop for a list of admins on that website. Malyacko (talk) 19:50, 22 June 2021 (UTC)
- Thank you. I see the list of admin but I don't understand how to contact them. There's no emails, no chat boxes, and these 'talk' links only tell me there is no text and I'm not allowed to start a talk page.@Michaelbaribeau Michaelbaribeau (talk) 22:31, 22 June 2021 (UTC)
- In that case there might not be any way Malyacko (talk) 06:46, 23 June 2021 (UTC)
importing a MediaWiki 1.17.0 DB into a fresh install of MediaWiki 1.36.0
Good morning all !
I am in charge of "restoring" a dead website, which includes a MediaWiki about traditional boat building.
Having access to the database and all the files on the old server, I backed up everything.
I have successfully installed a new MediaWiki 1.36.0 on the new server, now I wonder the steps I have to follow to restore the old instance into the new one?
Thanks for your help! Yvautrin (talk) 07:24, 22 June 2021 (UTC)
- When I moved to a new server I used bits from these pages. I don't think it makes much difference that you're upgrading from an old version, as the update.php script seems to take care of everything.
- You need to upgrade to MW1.35 first. Leaderboard (talk) 10:12, 23 June 2021 (UTC)
- I'm sorry - I hadn't noticed that. I'm still on 1.34 myself... here's the relevant part of the upgrade page:
- Since Version 1.36, MediaWiki only commits to supporting upgrades from two LTS releases ago (see phab:T259771). Upgrades from older versions of MediaWiki will have to be performed in multiple steps. This means that if you want to upgrade to 1.36 from 1.23 or earlier, you'll first have to upgrade your 1.23 wiki to 1.27 (or 1.35), and, from 1.27 (or 1.35), you'll be able to upgrade to 1.36. Jonathan3 (talk) 11:11, 23 June 2021 (UTC)
Picture upload doesn't work
Hello,
I want to include a picture in a wiki-page. Unfortunately, I don't have written upload files (I have the german version, hope this is what its called in english) on the left side. Because of that, I uploaded the picture with filezilla directly into the folder mediawiki/images. When I now include the code [./Special:FilePath/Bild1.png File:Bild1.png] there only comes the error Category: Pages with defect Filelinks (again, just translated, maybe in english is something else written).
What am I doing wrong? Lea Schmidt93 (talk) 11:33, 22 June 2021 (UTC)
- Mediawiki does not support direct uploads with ftp/filezilla. You must upload with the page Special:Upload on your wiki. Bawolff (talk) 00:10, 24 June 2021 (UTC)
- Are you enabling uploads in LocalSettings.php?
- $wgEnableUploads = true;
- This activates a menu entry in the left column. Besides typical image formats you may also upload PDF files and may be other popular document formats, but for this you need to declare them such as:
- $wgFileExtensions = array('png','gif','jpg','jpeg','doc','xls','mpp','pdf','ppt','tiff','bmp','docx', 'xlsx', 'pptx','ps','odt','ods','odp','odg'); Tigrillolinux (talk) 13:53, 24 June 2021 (UTC)
How can I get MediaWiki's Visual Editor to work?
When I try editing the main page of my MediaWiki I get the following error:
Error contacting the Parsoid/RESTBase server (HTTP 500)
I added:
wfLoadExtension( 'VisualEditor' );
wfLoadExtension( 'Parsoid', 'vendor/wikimedia/parsoid/extension.json' );
to the LocalSettings.php but it did not help.
Here's some info about my configuration:
OS: Windows 10
MySQL version: 8.0.25
PHP version: 7.3.28
MediaWiki version: 1.36.0
Any help is appreciated. MrJConstantine (talk) 12:11, 22 June 2021 (UTC)
- In MediaWiki 1.36 this should work out if the box. Just by enabling the VisualEditor configuration. No need for RESTBase at all. Make sure you don't have any additional configuration (maybe leftovers from an older version). Also make sure all extensions are up to date and are compatible with the MediaWiki core version. Osnard (talk) 12:34, 22 June 2021 (UTC)
- @Osnard I've never used MediaWiki before so I don't have any leftovers, that's for sure. I tried just enabling the VisualEditor configuration but it did not work. I downloaded the latest stable version of MediaWiki and did everything by-the-book, but unfortunately at the moment I can't fix this issue :( MrJConstantine (talk) 13:05, 22 June 2021 (UTC)
- This is a working configuration:
wfLoadExtension( 'VisualEditor' ); // Enable by default for everybody $wgDefaultUserOptions['visualeditor-enable'] = 1; $wgDefaultUserOptions['visualeditor-enable-experimental'] = 1; $wgDefaultUserOptions['visualeditor-newwikitext'] = 1; // Optional: Set VisualEditor as the default for anonymous users // otherwise they will have to switch to VE // $wgDefaultUserOptions['visualeditor-editor'] = "visualeditor"; // Don't allow users to disable it $wgHiddenPrefs[] = 'visualeditor-enable'; $wgHiddenPrefs[] = 'visualeditor-newwikitext'; // Per default, the VisualEditor only works with Namespace 0 (NS_MAIN), // i.e. the main article namespace. To change this, adapt the following example // that enables namespaces 0 (main), 2 (user) and 102 (some user specific one) $wgVisualEditorAvailableNamespaces = [ NS_MAIN => true, NS_USER => true, 102 => true, "_merge_strategy" => "array_plus" ]; $wgVisualEditorEnableWikitext = true;
- Maybe try it. Please make sure you have only this in your
LocalSettings.php. Osnard (talk) 16:02, 22 June 2021 (UTC) - @Osnard Unfortunately, that did not help :( MrJConstantine (talk) 08:08, 23 June 2021 (UTC)
- Any other clues? Now it seems like it's impossible to make VE work with MW 1.36.0. MrJConstantine (talk) 08:22, 24 June 2021 (UTC)
- The error has changed to
Error contacting the Parsoid/RESTBase server (HTTP 403)but I still can't get this thing to work :( MrJConstantine (talk) 09:45, 6 July 2021 (UTC) - Upgraded to MediaWiki 1.36.1 and still have the 500 error. MrJConstantine (talk) 10:30, 6 July 2021 (UTC)
- Maybe this helps:
- Error contacting the Parsoid/RESTBase server (HTTP 403)
- Caused by the 'writeapi' right being revoked (or not granted). Check your LocalSettings.php and remove any overrides for this right. (T265043)
- See also https://phabricator.wikimedia.org/T265043 Osnard (talk) 11:31, 6 July 2021 (UTC)
- @Osnard I've already tried https://phabricator.wikimedia.org/T265043, but still nothing.
- I have the following errors in the log file:
[DBQuery] LCStoreDB::get [0s] localhost: SELECT lc_value FROM `l10n_cache` WHERE lc_lang = 'ru' AND lc_key = 'messages:internalerror' LIMIT 1[DBQuery] LCStoreDB::get [0s] localhost: SELECT lc_value FROM `l10n_cache` WHERE lc_lang = 'ru' AND lc_key = 'messages:internalerror-fatal-exception' LIMIT 1[DBQuery] LCStoreDB::get [0s] localhost: SELECT lc_value FROM `l10n_cache` WHERE lc_lang = 'en' AND lc_key = 'messages:apierror-visualeditor-docserver-http' LIMIT 1[DBQuery] LCStoreDB::get [0.001s] localhost: SELECT lc_value FROM `l10n_cache` WHERE lc_lang = 'en' AND lc_key = 'messages:http-curl-error' LIMIT 1[http] * Error fetching URL: SSL certificate problem: unable to get local issuer certificate* There was a problem during the HTTP request: 0 Error[exception] [47b9eb2400dbb1791733ef65] /abwiki/rest.php/localhost/v3/page/html/Заглавная_страница/1?redirect=false&stash=true LogicException: Title not found!#0 C:\inetpub\abwiki\abwiki\extensions\VisualEditor\includes\VEParsoid\src\Rest\Handler\ParsoidHandler.php(418): VEParsoid\Rest\Handler\ParsoidHandler->createPageConfig(NULL, integer, NULL, NULL)#1 C:\inetpub\abwiki\abwiki\extensions\VisualEditor\includes\VEParsoid\src\Rest\Handler\PageHandler.php(85): VEParsoid\Rest\Handler\ParsoidHandler->tryToCreatePageConfig(array)#2 C:\inetpub\abwiki\abwiki\includes\Rest\Router.php(395): VEParsoid\Rest\Handler\PageHandler->execute()#3 C:\inetpub\abwiki\abwiki\includes\Rest\Router.php(322): MediaWiki\Rest\Router->executeHandler(VEParsoid\Rest\Handler\PageHandler)#4 C:\inetpub\abwiki\abwiki\includes\Rest\EntryPoint.php(165): MediaWiki\Rest\Router->execute(MediaWiki\Rest\RequestFromGlobals)#5 C:\inetpub\abwiki\abwiki\includes\Rest\EntryPoint.php(130): MediaWiki\Rest\EntryPoint->execute()#6 C:\inetpub\abwiki\abwiki\rest.php(31): MediaWiki\Rest\EntryPoint::main()#7 {main}- but I can't figure out how to deal with that. MrJConstantine (talk) 13:19, 6 July 2021 (UTC)
- Okay, so there are two interesting thing in there:
- Error fetching URL: SSL certificate problem: unable to get local issuer certificate
- LogicException: Title not found!
- While #1 seems to inidicate a issue in the webserver (self signed SSL certigficate?), I don't think this is the root cause.
- Looks like #2 may be a good one: You could try to log what is in the `$title` variable. E.g. by placing a `error_log( var_export( $title, true ) );`:
error_log( var_export( $title, true ) );$title = $title ? Title::newFromText( $title ) : Title::newMainPage();- Most likely it is some encoding issue. You have a page title "Заглавная_страница" which for some reason can not be used to create a Title object. Most likely there is some encoding issue involved.
- https://github.com/wikimedia/mediawiki-extensions-VisualEditor/blob/REL1_35/includes/VEParsoid/src/Rest/Handler/ParsoidHandler.php#L337-L351 Osnard (talk) 13:51, 6 July 2021 (UTC)
- I have no certificates attached to my server at all. Is it obligatory?
- Where should I place
error_log( var_export( $title, true ) ); $title = $title ? Title::newFromText( $title ) : Title::newMainPage();? Into theLocalSettings.php? MrJConstantine (talk) 14:50, 6 July 2021 (UTC)
- Here: https://github.com/wikimedia/mediawiki-extensions-VisualEditor/blob/b73df7e472116ff09f3febb6ece1f513808c08bd/includes/VEParsoid/src/Rest/Handler/ParsoidHandler.php#L341 Osnard (talk) 15:47, 6 July 2021 (UTC)
- I have placed the aforementioned code into the ParsoidHelper.php but I'm not sure where in the log should I look for it?
- I find this line
[DBQuery] LinkCache::fetchPageRow [0s] localhost: SELECT page_id,page_len,page_is_redirect,page_latest,page_restrictions,page_content_model FROM `page` WHERE page_namespace = 0 AND page_title = 'Заглавная_страница' LIMIT 1strange a bit. What doesLIMIT 1mean? MrJConstantine (talk) 08:46, 7 July 2021 (UTC) - The
LIMIT 1means that just one row should be returned from the DB. That's okay. - What happens if you run this exact query in your database?
- Looking at
Заглавная_страница, which should probably beЗаглавная_страницаI feel like there is really an encoding issue. This could be webserver related. - As you are on Windows, are you using IIS? If so check out the official IIS docs on encoding (search for UTF-8). Osnard (talk) 10:08, 7 July 2021 (UTC)
- What happens if you run this exact query in your database? - It shows
Empty set (0.00 sec)when I runSELECT page_id,page_len,page_is_redirect,page_latest,page_restrictions,page_content_model FROM `page` WHERE page_namespace = 0 AND page_title = 'Заглавная_страница'from my DB. - Yes, I'm on Windows and I use IIS 10.
- I reinstalled MediaWiki, only this time I've chosen English as Wiki language. Now everything seems to work fine. But the problem is that my Wikipedia will be mostly in Russian except for the code examples. The question is how can I make it work if I choose Russian as Wiki language? Do I have to install some plugins or something? Or I can choose English but then use Russian when I need it to fill in my wikipedia? MrJConstantine (talk) 10:10, 7 July 2021 (UTC)
- Here's the web.config file on my IIS server:
<?xml version="1.0" encoding="UTF-8"?><configuration><system.webServer><handlers><add name="PHP-FastCGI" path="*.php" verb="*" modules="FastCgiModule" scriptProcessor="C:\PHP73\php-cgi.exe" resourceType="Either" /></handlers><defaultDocument><files><add value="Index.php" /></files></defaultDocument></system.webServer></configuration>MrJConstantine (talk) 07:45, 8 July 2021 (UTC)- I am pretty sure that the language chosen at installation time should not have any effect here. You should be able to use ASCII chars in a cyrillic wiki, as well as cyrillic chars in a english wiki. I believe this may actually be webserver related. Maybe you want to try out Apache on Windows, or even switch to a Linux OS in general. Osnard (talk) 09:43, 8 July 2021 (UTC)
- Unfortunately, changing the server or the OS is not an option because of the company policy. MrJConstantine (talk) 13:06, 8 July 2021 (UTC)
- The second line of the original post was breaking MediaWiki on a local Windows 10 with XAMPP setup. I was able to get the VisualEditor extension to work by adding only the line below to LocalSettings.php file. Nothing else is needed.
- # Enable VisualEditor
- wfLoadExtension( 'VisualEditor' ); Tangpoet (talk) 17:34, 1 February 2023 (UTC)
Got Stuck in RESTbase ElectronPDF
The following discussion is closed. Please do not modify it. Subsequent comments should be made on the appropriate discussion page. No further edits should be made to this discussion.
Hello ,
I am posting this issue again because i did not get any update in my last post.
I am using Electron PDF , I got stuck at a point in RestBase's config.yaml.
baseUriTemplate: "{{'http://127.0.0.1:7231/{domain}/v1'}}"
What should be here?/
can I edit like "{{'http://10.10.10.10:8080/wiki.com/wikineww/v1'}}"
And what will be YOUR_RESTBASE_SERVER ?
curl http://YOUR_RESTBASE_SERVER:7231/YOUR_WIKI_WEBSITE/v1/page/html/Main_Page Akki30 (talk) 13:41, 22 June 2021 (UTC)
Include extern pictures via link directly
Hello,
is it possible to include an extern picture, for example https://www.picture-organic-clothing.com/wp-content/uploads/2021/05/picture-activewear.jpg directly into my wiki text?
I know it is possible to make it a link like this: [./Https://www.picture-organic-clothing.com/wp-content/uploads/2021/05/picture-activewear.jpg example] , but I want to see the picture directly. Lea Schmidt93 (talk) 13:42, 22 June 2021 (UTC)
- Have you tried it by writing that [[ Link|picture name ]] into your text? ↠Tanbirzx (✉) 16:10, 22 June 2021 (UTC)
- @Tanbirzx The markup that you posted is for (1) creating (2) internal (3) links. The question is about (1) embedding (2) external (3) image files. These two things have nothing to do with each other. Malyacko (talk) 19:47, 22 June 2021 (UTC)
- @Lea Schmidt93 See Manual:Linked images and Manual:$wgAllowExternalImages Malyacko (talk) 19:48, 22 June 2021 (UTC)
- When you get it set up then [https://www.example.com https://www.picture-organic-clothing.com/wp-content/uploads/2021/05/picture-activewear.jpg] should turn the picture into a link to example.com Jonathan3 (talk) 22:26, 23 June 2021 (UTC)
Login Button not working after Short URL
Hello,
I added the short URL feature to my MediaWiki site, and since now, the Login button on the upper right corner isn't working. It always redirects to the old /.../index.php page, and not to the short URL.
If I access the Loginpage via the Special Site Page, everything is working fine.
Is there a possibility to change that hyperlink from the Login Button?
Thanks! 193.80.211.83 (talk) 13:47, 22 June 2021 (UTC)
- What skin are you using? Jonathan3 (talk) 11:17, 23 June 2021 (UTC)
this action has been canceled as a precaution against session hijacking
Hello,
I'm trying to move our Mediawiki instance to another webserver. To test this server I added the new Server IP Address in my local hosts file. This seems to work well - I can see the Mediawiki login page.
But if I'm trying to log in, there's always the following error message:
"There seems to be a problem with your login session; this action has been canceled as a precaution against session hijacking. Please resubmit the form."
I am not able to login. My Mediawiki instance on old Webserver works well.
I'm searching like two days for a proper solution without success.
What I've tried:
- Changing cache settings to different values ($wgMainCacheType, $wgSessionCacheType)
- $wgCookieSecure = false;
- Disabled the LdapAuthentication.php Plugin
My questions are:
- How can I resolve this issue?
- Where can I find logfiles that indicates more information to solve this issue?
Thank you,
Best regards
Dennis 31.16.160.133 (talk) 14:13, 22 June 2021 (UTC)
- I had this when moving a wiki to a new server... in the end I tried a few things simultaneously but I think it was the cache settings that fixed it (and time is a healer). What settings have you tried? Jonathan3 (talk) 22:22, 23 June 2021 (UTC)
- Also try deleting your cookies. Bawolff (talk) 00:08, 24 June 2021 (UTC)
- Yes, I remember now, I had to keep trying on different browsers. I generally use Chrome and it was a while longer before I could log in using Chrome (despite clearing all history including cookies). Jonathan3 (talk) 06:58, 24 June 2021 (UTC)
Where Is The Admin Contact
The following discussion is closed. Please do not modify it. Subsequent comments should be made on the appropriate discussion page. No further edits should be made to this discussion.
The posted the issue below and was advised to contact the admin, where can I find the admin contact?
Lately I'm getting an Internal Server Error screen when I try to save an edit but also when I try to view changed even is there are no changes. There are 2 other pages I work on that are very similar and I don't get any error from them. I'm just a novice user not admin or owner. Here's the page I'm working on...
http://www.rockyhorrorwiki.org/wiki2/index.php?title=The_Denton_High_Drama_Club
@Michaelbaribeau Michaelbaribeau (talk) 16:22, 22 June 2021 (UTC)
- You already asked this in Project:Support desk/Flow/2021/06#h-Saving_Edit_Get_Internal_Server_Error-2021-06-21T22:12:00.000Z. Please do not post duplicate questions for no good reason. Malyacko (talk) 19:44, 22 June 2021 (UTC)
Problems installing Stamp on mac OSX
I need help installing the stamp on the mac.
Could any user help me?
Eu instalei o ANACONDA, mas não consigo dar sequência. 2804:FE4:FD25:3900:78E1:734C:F37E:FA88 (talk) 22:34, 22 June 2021 (UTC)
- Welcome to the support desk for MediaWiki. Please see the sidebar. Why do you think that we know what "Stamp" is? Malyacko (talk) 06:45, 23 June 2021 (UTC)
upgrade 1.31 to 1.35 issue DB size jumped by 50%
Just upgrade from 1.31 to 1.35 and the DB size of _text jumped from 263 MB to 396 MB. is that expected?
update.php took 1hr in first run, and in GoLive run 1.5hrs
- MediaWiki 1.31.14
PHP 7.2.24-0ubuntu0.18.04.7 (apache2handler) MySQL 5.7.33-0ubuntu0.18.04.1 +---------------------------+------------+ | Tables | Size in MB | +---------------------------+------------+ | ABC_text | 262.52 | | ABC_searchindex | 10.88 | | ABC_revision | 4.83 | | ABC_logging | 3.88 |
- MediaWiki 1.35.2
PHP 7.4.3 (apache2handler) MySQL 8.0.25-0ubuntu0.20.04.1 +---------------------------+------------+ | Tables | Size in MB | +---------------------------+------------+ | ABC_text | 395.52 | | ABC_searchindex | 10.71 | | ABC_revision_actor_temp | 3.77 | | ABC_logging | 3.41 |
TiloWiki (talk) 00:08, 23 June 2021 (UTC)
- bump. anybody? TiloWiki (talk) 20:04, 29 June 2021 (UTC)
Namespace internal-linking
Quoted from https://www.mediawiki.org/wiki/Namespace_manager
Default link prefix.
Links from this namespace to other pages which do not have a prefix will be treated as if they were prefixed with this text. For example, if this was set to "User", a link in the given namespace [[Dogmaster3000]] would be rendered as if it was written [[User:Dogmaster3000|Dogmaster3000]]. The most common use for this is namespace-internal linking. For example, it could be assumed that any unprefixed link in the "Cookbook" namespace points to another recipe, rather than a page in the Main Namespace.
How can enable this feature on my newly defined namespace on my MediaWiki instance? I did create a new namespace, but it keeps linking to the main namespace, instead of namespace-internal linking. I'm looking for easier way to do namespace-internal linking. Renamed user 5cb535d47ac833448f09633576bf74ba (talk) 02:11, 23 June 2021 (UTC)
- The top of that page links to an "experimental" extension and says:
- This page is obsolete. It is being retained for archival purposes. It may document extensions or features that are obsolete and/or no longer supported. Do not rely on the information here being up-to-date.
- Unfortunately I can't help with that extension, or your query, though I can see how it might be useful for me too... Jonathan3 (talk) 09:53, 23 June 2021 (UTC)
- The feature was a proposal. It was never implemented. Bawolff (talk) 00:06, 24 June 2021 (UTC)
siteadmin
hi, i updated my wiki to version 1.36.1, before of that i block the database of the wiki with the action siteadmin but now i can't unblock the database with the same action y don't know what do, someone can help with this please?
url: https://laplumaazul.tk/wiki/index.php/La_pluma_azul:P%C3%A1gina_principal
Software instalado
| Producto | Versión |
|---|---|
| MediaWiki | 1.36.1 |
| PHP | 7.3.27-1~deb10u1 (cgi-fcgi) |
| MySQL | 5.5.62-0+deb8u1 |
| ICU | 63.1 |
| Lua | 5.1.5 |
Gota de agua (talk) 03:51, 24 June 2021 (UTC)
- What "action"? Please say exactly what you did. – Ammarpad (talk) 12:30, 25 June 2021 (UTC)
Math formula: Recommended extension
Hi!
I use Mediawiki 1.35.2 with the Math extension on two servers (Ubuntu 20.04.2 LTS). Today I got a temporary error on one server "Math extension cannot connect to Restbase … https://wikimedia.org/api/rest_v1/".
To prevent such errors on future I want to get some advice about the recommended installation.
Extension:Math states MediaWiki 1.25+ but " Not formally tested" since 1.32. Is it still recommended?
Also I'd like to know if it is possible to make the formula rendering local on my server. I did read about vagrant but I'm not sure if this is the correct way to go…
I would be glad to get some advice to get it working without any external server access.
TIA,
GreatOom GreatOom (talk) 07:56, 24 June 2021 (UTC)
- Alternatively you may try Extension talk:Math which doesn't need any external server access.
- As well you should rather address your questions to the specific group Extension talk:Math S0ring (talk) 08:25, 25 June 2021 (UTC)
- ... I meant to try to use Extension:MathJax S0ring (talk) 06:54, 29 June 2021 (UTC)
{{plural:2|is|are}}
Bonjour, et excusez moi d'avance si le message est en français, mais je ne vois pas vraiment l'utilité de {{plural:2|is|are}} ? ~~~~
{{plural:2|is|are}}Bonjour, et excusez moi d'avance si le message est en français, mais je ne vois pas vraiment l'utilité de {{plural:2|is|are}} ? 77.152.229.29 09:37, 23 June 2021 (UTC)
- It looks like you would use Template:Plural within another template.
- E.g. you'd call {{infobox|...|v=34|...}}
- And that template might include
- {{plural|{{{v|}}}|voiture|voitures}}
- So it would say
- 34 voitures
- But if v=1 it would say
- 1 voiture Jonathan3 (talk) 12:07, 24 June 2021 (UTC)
- Plural is not a template but a builtin thing. See help:magic words. Behaviour varries depending on page language. Bawolff (talk) 01:25, 26 June 2021 (UTC)
- @Jonathan3: Ok merci je croyais que ce modèle était utilisé dans les articles directement ~ 92.184.98.222 (talk) 12:18, 24 June 2021 (UTC)
- I don't imagine so (but I could be wrong!)
- There is some documentation on the template page itself. You could maybe also see "what links here" for that page. Jonathan3 (talk) 12:50, 24 June 2021 (UTC)
Benutzer und Rechte
ich habe eine Frage zu den Benutzern und Gruppen und zwar, habe ich ein Benutzer erstellt und diesen auch in eine Gruppe zugewiesen die schreiben bearbeiten und etc. machen kann. Aber das Problem ist er tut nicht das was er machen soll, ich kann keine nichts bearbeiten obwohl der Benutzer der Gruppe angehört, die bearbeiten können, und die Rechte auch im LocalSettings gespeichert sind. Auf der Spezialseite steht auch das er der Gruppe angehört, das er die und die Rechte hat. Kann mir da jemand helfen? 2003:F4:D71C:4700:CD8F:9976:6244:EA94 (talk) 12:04, 24 June 2021 (UTC)
- Ich habe die Version 1.31 und das ganze läuft auf einer NAS-Box, das sollte aber eigentlich keine Rolle spielen. Das komische ist auch. Ich habe testweise die Leserecht entnommen von der Gruppe aber ich kann trotzdem lesen. Er verhält sich so als wäre er nicht in der Gruppe aber bei der Spezialseite steht, dass er in der Gruppe ist 2003:F4:D71C:4700:CD8F:9976:6244:EA94 (talk) 12:13, 24 June 2021 (UTC)
- Da ist dir anhand deiner Beschreibung von hier aus nicht weiter zu helfen.
- Prüfe mal anhand der w:de:, ob du die Gruppen und Rechte analog konfiguriert hast; siehe auch w:de:H:BEK.
- Versionen der MediaWiki-Software und die Umgebung haben darauf keinen Einfluss. PerfektesChaos (talk) 13:53, 24 June 2021 (UTC)
- Ich habe das Problem gefunden und zwar konnten die geschützten Seiten nur vom Admin bearbeitet werden. Die Einstellung findet man unter oben an der Leiste unter "Mehr" -> "geschützte Seiten" aber trotzdem danke für die Hilfestellung. :) 2003:F4:D71C:4700:90B4:BC04:7744:60A7 (talk) 12:04, 25 June 2021 (UTC)
How to prevent FOUC in an extension
I have an extension which defines a style file, places it into an extension bundle and does an $out->addModules in an onOutputPageBeforeHtml hook.
Unfortunately I get a flash of unstyled content (FOUC) affecting the class specifications.
I tried to put the style into Common.css - just the same problem.
My current workaround is to use $out->addHtml to inject a style tag containing the class definitions - but, of course, this is not really nice software engineering. Another workign workaround is to hardcode the style as part of the HTML tags. This is even less nice.
What is the best practice of adding css so that I get no FOUC?= 2003:E7:570A:2200:998A:9322:CAC5:CA6E (talk) 15:24, 24 June 2021 (UTC)
- This section should explain the requirements. To summarize, you'll need to create a separate resource loader module with the styles in them, and load that through
$out->addModuleStyles. —Mainframe98 talk 15:28, 24 June 2021 (UTC) - Thnx. Works. 2003:E7:5707:4B00:C1B0:C242:1549:CB0 (talk) 20:04, 25 June 2021 (UTC)
500 - Internal Server 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.
500 - Internal Server Error after Media Wiki 1.35 Installation.
The installation went all the way through to the point where I needed to download the localsetting.php. Put that file in the correct folder and when I call it up, http://servername/index.php the 500 - Internal Server Error comes up.
PHP 7.3.28
Server 2019 Dossod11 (talk) 17:38, 24 June 2021 (UTC)
- Found out that our group policy is the issue. Installing MW before joining to the domain resolved the 500- Internal Server Error. MW Main Page started up.
- Thanks Dossod11 (talk) 18:09, 24 June 2021 (UTC)
Is string-searching possible?
Is w:en:String-searching_algorithm possible with wiki? I need it to look for whether an input value given for a template contain the specific characters "[[" for wikilinking, so that the template can automatically remove extra brackets if they were manually added.
I am looking specifically for merging Clickable_buttons and similar templates that break with extra link brackets Vis M (talk) 20:20, 24 June 2021 (UTC)
- Please consult Help:CirrusSearch for basic and advanced features. PerfektesChaos (talk) 15:00, 25 June 2021 (UTC)
- No, I am looking for something like "w:en:Module:String". I think templates "Str find" and "Replace" would suffice Vis M (talk) 15:07, 25 June 2021 (UTC)
- In this case you got the central point already.
- I could recommend w:de:Wikipedia:Lua/Modul/WLink/en #getPlain which will have stripped off any link syntax.
- However, you might fail to detect any
{{within template parameters since they have been resolved (expanded) already at the time the parameter value is passed to the receiving template. Supposed they have been properly balanced. PerfektesChaos (talk) 15:17, 25 June 2021 (UTC) - Ok, thanks Vis M (talk) 15:49, 25 June 2021 (UTC)
Error database
error database
i Try installing Centrauth but when running the commands to merge the accounts I get this:
alAuth/maintenance/migratePass0.php
PHP Deprecated: Use of $wgParser was deprecated in MediaWiki 1.32. [Called from require_once in /home/lapluma/laplumaazul.tk-web/htdocs/wiki/includes/Setup.php at line 838] in /home/lapluma/laplumaazul.tk-web/htdocs/wiki/includes/debug/MWDebug.php on line 376
CentralAuth migration pass 0:lapluma_azul preparing migration data...Wikimedia\Rdbms\DBConnectionError from line 1507 of /home/lapluma/laplumaazul.tk-web/htdocs/wiki/includes/libs/rdbms/loadbalancer/LoadBalancer.php: Cannot access the database: Unknown error (sql)
#0 /home/lapluma/laplumaazul.tk-web/htdocs/wiki/includes/libs/rdbms/loadbalancer/LoadBalancer.php(995): Wikimedia\Rdbms\LoadBalancer->reportConnectionError()
#1 /home/lapluma/laplumaazul.tk-web/htdocs/wiki/includes/libs/rdbms/loadbalancer/LoadBalancer.php(960): Wikimedia\Rdbms\LoadBalancer->getServerConnection(0, 'lapluma_cargo', 4)
#2 /home/lapluma/laplumaazul.tk-web/htdocs/wiki/includes/libs/rdbms/loadbalancer/LoadBalancer.php(1099): Wikimedia\Rdbms\LoadBalancer->getConnection(-2, Array, 'lapluma_cargo', 4)
#3 /home/lapluma/laplumaazul.tk-web/htdocs/wiki/extensions/CentralAuth/includes/CentralAuthUtilityService.php(110): Wikimedia\Rdbms\LoadBalancer->getConnectionRef(-2, Array, 'lapluma_cargo')
#4 /home/lapluma/laplumaazul.tk-web/htdocs/wiki/extensions/CentralAuth/includes/CentralAuthUtils.php(36): CentralAuthUtilityService->getCentralDB()
#5 /home/lapluma/laplumaazul.tk-web/htdocs/wiki/extensions/CentralAuth/includes/CentralAuthUser.php(900): CentralAuthUtils::getCentralDB()
#6 /home/lapluma/laplumaazul.tk-web/htdocs/wiki/extensions/CentralAuth/maintenance/migratePass0.php(56): CentralAuthUser::storeMigrationData('lapluma_azul', Array)
#7 /home/lapluma/laplumaazul.tk-web/htdocs/wiki/extensions/CentralAuth/maintenance/migratePass0.php(27): MigratePass0->doPassZero()
#8 /home/lapluma/laplumaazul.tk-web/htdocs/wiki/maintenance/doMaintenance.php(112): MigratePass0->execute()
#9 /home/lapluma/laplumaazul.tk-web/htdocs/wiki/extensions/CentralAuth/maintenance/migratePass0.php(78): require_once('/home/lapluma/l...')
#10 {main} Gota de agua (talk) 04:16, 25 June 2021 (UTC)
Infobox formatting problems with width and text wrapping
Hi, I am facing some issues with infoboxes on my own wiki.
I am under the impression I have installed every infobox template available (that I have in use) and therefore I cannot account for the difference in formatting.
As an example, please see this infobox on my page on my personal wiki:
https://www.encyclopediabritannia.org/index.php?title=German_Canadians
Now compare this to the wikipedia version:
https://en.wikipedia.org/wiki/German_Canadians
As you can see, the formatting is very different. The wikipedia infobox is centred, and the text wraps, yet mine does not. The text makes the width of the infobox wider, when it should not.
This also happens on the infobox template itself.
Here is the template on my wiki:
https://www.encyclopediabritannia.org/index.php?title=Template:Infobox#Examples
Here is the template on wikipedia:
https://en.wikipedia.org/wiki/Template:Infobox#Examples
Again, the formatting on the template itself seems to be broken. I am not sure why this happens, but the formatting is broken and therefore *every* infobox on my wiki is broken.
Can anyone shed some light on this for me?
Thank you!
Edit 1: I have fixed the earlier issue, the Apache server was broken by an automated script. The above problem still exists though! ECBritannia (talk) 04:39, 25 June 2021 (UTC)
- They have in w:en:MediaWiki:Common.css at
.infoboxa specificationwidth: 22em;controlling The text makes the width of the infobox wider, when it should not. Maybe more interesting things. - https://www.encyclopediabritannia.org/index.php?title=MediaWiki:Common.css did not yet, but that selector is already present. PerfektesChaos (talk) 14:36, 25 June 2021 (UTC)
- I have done it, THANK YOU! You are fantastic ! ECBritannia (talk) 18:24, 25 June 2021 (UTC)
- Thanks for your help!
- I cannot edit the common.css page on my own wiki, I want to make it a mirror of that on mediawiki/wikipedia but I cannot edit it
- Do you know how I can give myself permissions? I am the only admin ECBritannia (talk) 18:11, 25 June 2021 (UTC)
- For modification of site CSS or JavaScript you need to be interface admin and as site maintainer you should be able to assign yourself to that group. The same way you made your account to be general admin (sysop group). PerfektesChaos (talk) 18:21, 25 June 2021 (UTC)
- You are amazing, thank you! ECBritannia (talk) 18:25, 25 June 2021 (UTC)
Can't login to meta.wikimedia.org or wikisouce.org, although I can to wikipedias
Hello! I'm currently logged into en.wikipedia.org and several other language wikipedias, but not to meta.wikipedia.org or any of the others, such as wikisource.org. In the past I had an account on meta.wikipedia.org, and made a user page, here: https://meta.wikimedia.org/wiki/User:Jaredscribe What happened? Can I get my account back? Thanks, Jaredscribe. 108.161.30.106 (talk) 04:49, 25 June 2021 (UTC)
- Try clearing all cookies and relogging in. Bawolff (talk) 01:22, 26 June 2021 (UTC)
Mediawiki Backup
How can i backup my mediawiki localsetting.php and the content of the mediawiki? the mediawiki runs on a NAS box, but this should not be a problem.
MediaWiki version 1.31 2003:F4:D71C:4700:90B4:BC04:7744:60A7 (talk) 12:01, 25 June 2021 (UTC)
- wie kann ich mein mediawiki localsetting.php und den Inhalt in regelmäßigen Abschnitten sichern? Das ganze läuft auf einer NAS Box mit der 1.31 Version, sollte aber kein Problem darstellen. 2003:F4:D71C:4700:90B4:BC04:7744:60A7 (talk) 12:06, 25 June 2021 (UTC)
- Does Manual:Backing up a wiki answer your question? Ciencia Al Poder (talk) 15:59, 25 June 2021 (UTC)
SyntaxHighlight not working in MediaWiki 1.36.0
Hi
I tried to enable SyntaxHighlight on my newly installed Wiki, running inside XAMPP 8.0.6 on Windows 10 Version 2004, 64bit.
Attempt 1: Using the incorporated pygmentize
Firtstly I had to rename "pygmentize" to "pygmentize.pyc" and add the following line to LocalSettings.php:
$wgPygmentizePath = 'D:/xampp/htdocs/mywiki/extensions/SyntaxHighlight_GeSHi/pygments/pygmentize.pyc';
When I edit a page with syntaxhighlight, the following messages are logged in the wiki logfile:
[Called from SyntaxHighlight::{closure} in D:\xampp\htdocs\mywiki\extensions\SyntaxHighlight_GeSHi\includes\SyntaxHighlight.php at line 293]
[exec] Executing: cmd /s /c ""D:/xampp/htdocs/mywiki/extensions/SyntaxHighlight_GeSHi/pygments/pygmentize.pyc" "-l" "php" "-f" "html" "-O" "cssclass=mw-highlight,encoding=utf-8,startinline=1""
[exec] Error running cmd /s /c ""D:/xampp/htdocs/mywiki/extensions/SyntaxHighlight_GeSHi/pygments/pygmentize.pyc" "-l" "php" "-f" "html" "-O" "cssclass=mw-highlight,encoding=utf-8,startinline=1"": Zugriff verweigert
Zugriff verweigert means access denied
If I call the above command on the command line it works fine and delivers correct result (if you input some lines on the standard input):
D:\>cmd /s /c ""D:/xampp/htdocs/mywiki/extensions/SyntaxHighlight_GeSHi/pygments/pygmentize.pyc" "-l" "php" "-f" "html" "-O" "cssclass=mw-highlight,encoding=utf-8,startinline=1"" print "Hello"; ^Z <div class="mw-highlight"><pre><span></span><span class="k">print</span> <span class="s2">"Hello"</span><span class="p">;</span> </pre></div> D:\>
Attempt 2: Using external pygmentize.exe
I replaced the line in localsettings.php with:
$wgPygmentizePath = 'C:/Python39/Scripts/pygmentize.exe';
This time the following lines are logged:
[Called from SyntaxHighlight::{closure} in D:\xampp\htdocs\mywiki\extensions\SyntaxHighlight_GeSHi\includes\SyntaxHighlight.php at line 293]
[exec] Executing: cmd /s /c ""C:/Python39/Scripts/pygmentize.exe" "-l" "php" "-f" "html" "-O" "cssclass=mw-highlight,encoding=utf-8,startinline=1""
[exec] Error running cmd /s /c ""C:/Python39/Scripts/pygmentize.exe" "-l" "php" "-f" "html" "-O" "cssclass=mw-highlight,encoding=utf-8,startinline=1"": Fatal Python error: _Py_HashRandomization_Init: failed to get random numbers to initialize Python
According to this thread, the Environment variable SystemRoot must be set properly, otherwise the Win32 API call CryptAcquireContext will fail when called inside python during initialization. (quoted from above link).
On my system, SystemRoot is properly set, even inside the script D:\xampp\htdocs\mywiki\extensions\SyntaxHighlight_GeSHi\includes\SyntaxHighlight.php Maybe some security features prevent access to SystemRoot?
Again, when invoked on the command line it works fine:
D:\>cmd /s /c ""C:/lang/Python39/Scripts/pygmentize.exe" "-l" "php" "-f" "html" "-O" "cssclass=mw-highlight,encoding=utf-8,startinline=1"" echo "hello"; ^Z <div class="mw-highlight"><pre><span></span><span class="k">echo</span> <span class="s2">"hello"</span><span class="p">;</span> </pre></div> D:\>
Using:
- Window 10 Version 2004, 64bit
- XAMPP 8.0.6
- MediaWiki 1.36.0
- Python 3.9.5
- Pygments 2.9.0 (for the external attempt)
Hope this information is helpful to fix this issue. Eddi27L (talk) 13:04, 25 June 2021 (UTC)
- I just discovered, that there is already a similar thread Migrating from 1.9.3 to 1.34 - Geshi no longer available. Eddi27L (talk) 17:32, 25 June 2021 (UTC)
- The issue is described in https://phabricator.wikimedia.org/T199989
- I´ve tried the patch [3] mentioned there: https://gerrit.wikimedia.org/r/c/mediawiki/core/+/762736/4/includes/shell/Command.php
- (editing the
includes/shell/Command.phpfile), it fixed in may case (also have to point to apygmentize.exewith$wgPygmentizePath, the bundledpygmentizescript is not enough). - However not officially included in any release yet. Escalatr (talk) 13:49, 16 March 2023 (UTC)
update.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.
Installed MW 1.35/ SQL/ Server 2019. Upgraded to BlueSpice. BlueSpice came up. Imported existing extensions/ modified the localsetting.php. After SQL DB datadump import, the page errors out.
MediaWiki internal Error …… DBQueryError …
I believe I need to run the update.php.
How do I run it exactly? Dossod11 (talk) 14:35, 25 June 2021 (UTC)
- Just log in using putty or whatever and follow the instructions on this website. Go to the maintenance directory and type php update.php :-) Jonathan3 (talk) 08:52, 26 June 2021 (UTC)
- I can't use putty. Is there a way just to update it while i'm RDP to the server? I tried powershell or cmd on the actual server itself but it doesn't work, it tries to find a program to open the update.php
- I tried the Webupdater and I'm getting a error: MagicWord.PhP Error: Invalid Magic Word 'ifanon' Dossod11 (talk) 13:12, 28 June 2021 (UTC)
- Nevermind. I figured it out.
- Had to add the php to the system. Below the steps if anyone has the same issue:
- On Windows:
- Go to Control Panel and open the System icon (Start → Control Panel)
- Go to the Advanced tab
- Click on the 'Environment Variables' button
- Look into the 'System Variables' pane
- Find the Path entry (you may need to scroll to find it)
- Double click on the Path entry
- Enter your PHP directory at the end, including ';' before (e.g.
;C:\php) - Press OK Dossod11 (talk) 14:37, 28 June 2021 (UTC)
- On Windows:
Copy table rows from other pages
I have tables in multiple pages and want to create a new table (in a different page) that automatically lists all rows with matching value in one column.
Example page 1:
2020-12-31 | NBA | Celtics | Lakers
2020-12-31 | NFL | Bears | Packers
2020-12-31 | MLB | Yankees | Red Sox
2020-12-31 | NHL | Islanders | Rangers
2020-12-31 | MLB | Mets | Phillies
Example page 2 (auto-generated table based on matching value in column 2):
2020-12-31 | MLB | Yankees | Red Sox
2020-12-31 | MLB | Mets | Phillies
I would appreciate if someone can just point me to what script/function/extension I need for this and I'll read up on the details. 112.198.162.28 (talk) 14:56, 25 June 2021 (UTC)
- You probably need Extension:Cargo for that. Ciencia Al Poder (talk) 15:58, 25 June 2021 (UTC)
- Thank you! That or WikiDB extension seems to be the easiest solutions. 112.198.162.28 (talk) 03:50, 26 June 2021 (UTC)
[YNZDbJbA7mMTTaQbGLQ-5AAAwAU] 2021-06-25 20:58:23: Fatal exception of type "RuntimeException"
This started yesterday. There's no rhyme or reason why this is happening, it's just... there. This happens every time I try to edit a page in any way. I don't know where to even start in finding where this infuriating problem is coming from.
The wiki is: https://songsofsyx.com/wiki/index.php?title=Main_Page
The username I'm using there is "Zippy". 2603:6000:D740:3F1:B12F:30BA:9D90:30B8 (talk) 21:10, 25 June 2021 (UTC)
- Set $wgShowExceptionDetails=true; in LocalSettings.php Bawolff (talk) 00:19, 26 June 2021 (UTC)
- Thanks, but now I'm getting this:
- [YNerps7Vh-lnKjPfneJrDwAAMi8] /wiki/index.php?title=Main_Page&action=submit RuntimeException: SFS IP file contents and file md5 do not match!
- Backtrace:
- from /home1/songsog8/public_html/wiki/extensions/StopForumSpam/includes/DenyListUpdate.php(222)
- #0 /home1/songsog8/public_html/wiki/extensions/StopForumSpam/includes/DenyListUpdate.php(86): MediaWiki\StopForumSpam\DenyListUpdate::fetchDenyListIPsRemote()
- #1 /home1/songsog8/public_html/wiki/includes/libs/objectcache/wancache/WANObjectCache.php(1707): MediaWiki\StopForumSpam\DenyListUpdate::MediaWiki\StopForumSpam\{closure}(boolean, integer, array, NULL, array)
- #2 /home1/songsog8/public_html/wiki/includes/libs/objectcache/wancache/WANObjectCache.php(1539): WANObjectCache->fetchOrRegenerate(string, integer, Closure, array, array)
- #3 /home1/songsog8/public_html/wiki/extensions/StopForumSpam/includes/DenyListUpdate.php(90): WANObjectCache->getWithSetCallback(string, integer, Closure, array)
- #4 /home1/songsog8/public_html/wiki/extensions/StopForumSpam/includes/DenyListUpdate.php(44): MediaWiki\StopForumSpam\DenyListUpdate::loadDenyListIPs()
- #5 /home1/songsog8/public_html/wiki/extensions/StopForumSpam/includes/DenyListManager.php(67): MediaWiki\StopForumSpam\DenyListUpdate->doUpdate()
- #6 /home1/songsog8/public_html/wiki/extensions/StopForumSpam/includes/Hooks.php(142): MediaWiki\StopForumSpam\DenyListManager::isDenyListed(string)
- #7 /home1/songsog8/public_html/wiki/includes/HookContainer/HookContainer.php(338): MediaWiki\StopForumSpam\Hooks::onGetUserPermissionsErrorsExpensive(Title, User, string, string)
- #8 /home1/songsog8/public_html/wiki/includes/HookContainer/HookContainer.php(137): MediaWiki\HookContainer\HookContainer->callLegacyHook(string, array, array, array)
- #9 /home1/songsog8/public_html/wiki/includes/HookContainer/HookRunner.php(2029): MediaWiki\HookContainer\HookContainer->run(string, array)
- #10 /home1/songsog8/public_html/wiki/includes/Permissions/PermissionManager.php(508): MediaWiki\HookContainer\HookRunner->onGetUserPermissionsErrorsExpensive(Title, User, string, string)
- #11 /home1/songsog8/public_html/wiki/includes/Permissions/PermissionManager.php(458): MediaWiki\Permissions\PermissionManager->checkPermissionHooks(string, User, array, string, boolean, Title)
- #12 /home1/songsog8/public_html/wiki/includes/Permissions/PermissionManager.php(308): MediaWiki\Permissions\PermissionManager->getPermissionErrorsInternal(string, User, Title, string)
- #13 /home1/songsog8/public_html/wiki/includes/EditPage.php(736): MediaWiki\Permissions\PermissionManager->getPermissionErrors(string, User, Title, string)
- #14 /home1/songsog8/public_html/wiki/includes/EditPage.php(598): EditPage->getEditPermissionErrors(string)
- #15 /home1/songsog8/public_html/wiki/includes/actions/EditAction.php(71): EditPage->edit()
- #16 /home1/songsog8/public_html/wiki/includes/actions/SubmitAction.php(38): EditAction->show()
- #17 /home1/songsog8/public_html/wiki/includes/MediaWiki.php(531): SubmitAction->show()
- #18 /home1/songsog8/public_html/wiki/includes/MediaWiki.php(315): MediaWiki->performAction(Article, Title)
- #19 /home1/songsog8/public_html/wiki/includes/MediaWiki.php(913): MediaWiki->performRequest()
- #20 /home1/songsog8/public_html/wiki/includes/MediaWiki.php(546): MediaWiki->main()
- #21 /home1/songsog8/public_html/wiki/index.php(53): MediaWiki->run()
- #22 /home1/songsog8/public_html/wiki/index.php(46): wfIndexMain()
- #23 {main} 2603:6000:D740:3F1:B871:79A0:C9F9:EDFF (talk) 22:37, 26 June 2021 (UTC)
- Yeah, you are asked to set it so as to get this info. Now see phab:T279449 and the fix for the problem there. – Ammarpad (talk) 23:00, 26 June 2021 (UTC)
Sitemap location
Does anyone know the default location for sitemaps? I can't seem to locate mine, especially as I have looked numerous times for it /sitemap.xml to no avail
https://www.encyclopediabritannia.org/index.php?title=Main_Page
Is the wiki!
I also have autositemap extension enabled, which I have 100% checked is working, as it has generated a file that I have confirmed with Cpanel
Does anyhone know where this is stored as a URL so I can submit to google? ECBritannia (talk) 00:56, 26 June 2021 (UTC)
- Where to store it and how it is served is determined by the configuration settings detailed on Extension:AutoSitemap.
- For you, it likely was saved to the root of your install and thus is available here https://www.encyclopediabritannia.org/sitemap.xml —TheDJ (Not WMF) (talk • contribs) 15:00, 28 June 2021 (UTC)
Namespace numbers differ between import-ready XML and destination wiki; will it actually work?
Hello again. Now that my ByetHost experiment from last October has officially vanished in recent weeks (for lack of funds), I have had no choice but to start over on Miraheze. (Still panging over the fall of Referata since last September--although I'll still ping Mr. Koren on the matter.)
About an hour ago, the namespace system on the just-launched Miraheze version of my creative-venture wiki began anew with specs for "Documentation", assigned the number of 3000. On the old ByetHost site, I had namespace-allocation trouble that began with "Documentation", set as "050", falling back to "40"--and that's what I ended up with in the backup. Towards the end of our short-lived trial, I managed to fix things up under the intended "50"--but the damage had been done, lessons were learned, and the experiment faded away some time afterward.
Before I resume my import campaign, will the old doc pages still work with the new number regardless? As per usual, I am ensuring nothing goes wrong before I can move on with the rest of my setup.
(MW 1.36)
--Slgrandson (talk) 11:25, 26 June 2021 (UTC)
Live site forwards to test site
I have created a local, working, wiki, so that I can debug etc offline.
I changed the database connection code, then copied the code and database to my online server.
However, the online server redirects to my local copy. No pages appear from the online server.
Somewhere, I have the instruction that the URL of the home page is http://wiki, (which is the local site)
What have I missed? Pete626 (talk) 15:00, 26 June 2021 (UTC)
MediaWiki - worst linux packet ever!
I tried install this wiki by instructions on: Manual:Installation guide. Web process installation went ok wiki start page seemed to be allright, so i tried log in and what disapointment! NO CSS STYLES, ugly structure without ANY style. I tried take advice here:Manual:Common errors and symptoms -> "The wiki appears without styles applied and images are missing", but this modest guidance is useless at this case. After a few hours trying to find solution i found NOTHING. Still i dont know what is resposible for this odd behavior.
Step2
I decided to set up mediawiki just from repo (debian buster) and removed manual previous installation and... another disapointment. Cant even pass starting setup at web page.
I got: AS below and again no solution on internet.
[e6c60aa55d7922810d565350] /mediawiki/mw-config/index.php MWException from line 1387 of /usr/share/mediawiki/includes/parser/Preprocessor_DOM.php: PPFrame_DOM::expand: Invalid parameter type
Backtrace:
#0 /usr/share/mediawiki/includes/parser/Parser.php(2942): PPFrame_DOM->expand(NULL, integer)
#1 /usr/share/mediawiki/includes/parser/Parser.php(1293): Parser->replaceVariables(string)
#2 /usr/share/mediawiki/includes/parser/Parser.php(443): Parser->internalParse(string)
#3 /usr/share/mediawiki/includes/installer/Installer.php(695): Parser->parse(string, Title, ParserOptions, boolean)
#4 /usr/share/mediawiki/includes/installer/WebInstaller.php(710): Installer->parse(string, boolean)
#5 /usr/share/mediawiki/includes/installer/WebInstallerLanguage.php(81): WebInstaller->getHelpBox(string)
#6 /usr/share/mediawiki/includes/installer/WebInstaller.php(281): WebInstallerLanguage->execute()
#7 /usr/share/mediawiki/mw-config/index.php(79): WebInstaller->execute(array)
#8 /usr/share/mediawiki/mw-config/index.php(38): wfInstallerMain()
#9 {main}
I'v never met before such bad linux package (20 year old project), unfinished installator and mediawiki wiki page is mess. 37.47.163.62 (talk) 17:42, 26 June 2021 (UTC)
- MediaWiki is one of the easiest things to install, so probably you missed something simple. How about starting step 1 again, and type up every stage, so that someone here can help you where you went wrong? Jonathan3 (talk) 19:36, 26 June 2021 (UTC)
- "MediaWiki is one of the easiest things to install" :ppp ok i know thats joke :p
- "so probably you missed something simple." - IF i missed something thats mean that this given instruction is missing something. I tried circa 10x reinstalling it from scratch with different settings (for example without any extensions, no private wiki etc). Im not a genius with linux, but also not amateur. BTW there is no link to recommended apache settings. MediaWiki wizard show no errors and doesnt report any missings components. Its easy next->next-> copy localsettings.php to folder.
- Propably its bug. Its not normal when you log in and there is suddenly no CSS styles, and i see you also have no clues in this situation.
- Much simpler way is to install mediawiki from repo and see what happens... but even here, there are parse errors from the beginning. Is anybody here who can help and tell what should i check to repair this errors? 37.47.163.62 (talk) 21:33, 26 June 2021 (UTC)
- I bet you can get it to work all right. Don't worry. Maybe it'll be as easy as changing Manual:$wgServer. The sidebar of this page contains some information to include in a message here. Start with that, and explain what steps you have taken :-) Jonathan3 (talk) 21:51, 26 June 2021 (UTC)
- "Maybe it'll be as easy as changing Manual:$wgServer." listen, I mentioned before that i read "The wiki appears without styles applied and images are missing" and it didnt help at all. This setting have nothing to do with missings CSS styles especially after logging in.
- I have $wgServer set to my domain.
- BTW: This statement is very unclear:
- Under Database Config, you may change the database name and DB username to new values, but you must turn on "Use superuser account", name:
debian-sys-maint- giving the mysql root password you configured earlier.
- What does mean "turn on debian-sys-main"? I put there name of the newly created database for mediawiki and new user for that base with all granted privileges for that database. I doubt if it has any impact for problems with CSS or parsing but its worth to ask. 37.47.163.62 (talk) 11:48, 27 June 2021 (UTC)
- ps.
- visualeditor dont load to full (its loading blue stripe stop at half way) 37.47.163.62 (talk) 12:00, 27 June 2021 (UTC)
- ps2. If i set in LocalSettings.php variable on "true" instead false, CSS styles works OK.
- $wgGroupPermissions['*']['read'] = true;
- So..it seems to be problem with permissions. Authenticated user dont have access to styles. 37.47.163.62 (talk) 12:42, 27 June 2021 (UTC)
- Tried to install earlier versions. With 1.31.15 and got the same parser error as in my first comment. Absolutely nothing is working here. Turned off visualeditor and I noticed that i dont have access to WikiEditor.... (only to code editor) which extensions is turned on: wfLoadExtension( 'WikiEditor' ); Man this software is just pure trash... I wasted 15 hours on it. As a experiment i installed dokuwiki - no problems at all.. works fine, but i wanted mediawiki.Sad. 37.47.163.62 (talk) 17:34, 27 June 2021 (UTC)
- Just stick with whatever you can get to work and make the most of it :-) Jonathan3 (talk) 22:12, 27 June 2021 (UTC)
- OK. so i should stay with mediawiki. So what is problem with these parsers errors and no CSS styles? 37.47.163.62 (talk) 22:21, 27 June 2021 (UTC)
- Just guessing on the information provided so far. If $wgGroupPermissions has an effect then how about removing all lines in LocalSettings.php that mention that variable?
- I'm just another enthusiastic amateur... someone else might know the answer from reading your description. Jonathan3 (talk) 15:05, 28 June 2021 (UTC)
- I appreciate you help. Actaully i found "solution"? Just apt purge out all php, php-common packages. Installed them again and magic. no problems. There is also no problems with.. parsing .
- maybe this instruction was responsible?: "It may complain that php extensions like mbstring and xml are missing even you have installed them. Please manually activate them by using: sudo phpenmod mbstring
- sudo phpenmod xml". I dont know.
- My advice for people having problem with missing CSS styles, and/or parsing is to remove all php packets and install them again and all needed dependiences libapache2-mod-php , php-intl acpu etc. 37.47.141.120 (talk) 14:13, 29 June 2021 (UTC)
Error: Call to undefined function
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 get this error:
[ecddbb42e30503c6ea64a307] /index.php?title=Hauptseite&oldid=9383 Error: Call to undefined function MediaWiki\suppressWarnings()
Backtrace:
from /var/www/vhosts/mywiki.com/MediaWiki/extensions/AddHTMLMetaAndTitle/AddHTMLMetaAndTitle.php(152)
#0 /var/www/vhosts/mywiki.com/MediaWiki/includes/HookContainer/HookContainer.php(338): wfInsertMeta()
#1 /var/www/vhosts/mywiki.com/MediaWiki/includes/HookContainer/HookContainer.php(137): MediaWiki\HookContainer\HookContainer->callLegacyHook()
#2 /var/www/vhosts/nmywiki.com/MediaWiki/includes/HookContainer/HookRunner.php(2754): MediaWiki\HookContainer\HookContainer->run()
...
#13 /var/www/vhosts/mywiki.com/MediaWiki/index.php(53): MediaWiki->run()
#14 /var/www/vhosts/mywiki.com/MediaWiki/index.php(46): wfIndexMain()
#15 {main}
What can I do? 2003:C5:FF3F:6E3F:CDC4:1264:7893:31D6 (talk) 20:21, 26 June 2021 (UTC)
- Maybe Extension:AddHTMLMetaAndTitle is incompatible with your MediaWiki version, whatever it is. Maybe you downloaded MediaWiki using git and didn't get the extra stuff using composer afterwards? These are just guesses to help until someone gives you the answer :-) Jonathan3 (talk) 20:49, 26 June 2021 (UTC)
- It is
| Software | Version |
|---|---|
| MediaWiki | 1.36.1 |
| PHP | 7.3.28 (fpm-fcgi) |
| MariaDB | 10.1.48-MariaDB-0ubuntu0.18.04.1 |
| ICU | 60.2 |
- Do you get the error without the extension? Jonathan3 (talk) 09:29, 27 June 2021 (UTC)
- That extension is probably not compatible with MW 1.36. You should disable it or find a fix for it – Ammarpad (talk) 09:36, 27 June 2021 (UTC)
- No. The error only appears when I look at some of the old version of the main page. 2003:C5:FF3F:6E3F:A88C:A194:D122:AA87 (talk) 09:39, 27 June 2021 (UTC)
- Thank you! Case closed. 2003:C5:FF3F:6E3F:A88C:A194:D122:AA87 (talk) 09:40, 27 June 2021 (UTC)
Wiki gives 403 code when handling any request that includes the text "Northwind"
I run a wiki for a personal roleplaying group where they can put their characters and other relevant content. It makes use of MediaWiki version 1.34.2 installed via Softaculous.
Something very odd happened recently. A player tried to create a Wiki page for their character "Northwind", but upon trying to create a page the webserver responded with a 403 forbidden error.
Trying to create the page n a private window, on another IP, with another account, etc. all cause the same thing to happen.
Trying to create a page with another title and including the text "Northwind" in the wiki entry body results in a 403 error. Trying to create a page and then move it to "Northwind" creates a 403 error.
Nobody can seem to be able to put the word "Northwind" oin this wiki, for some mysterious reason. Why does my wiki installation not like this particular word? 68.73.121.239 (talk) 01:19, 27 June 2021 (UTC)
- You're probably triggering ModSecurity rule. You should try disabling it to see. – Ammarpad (talk) 09:34, 27 June 2021 (UTC)
Timestamp Error after Mediawiki 1.35 upgrade + Server move
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 moved my Server + upgraded to Mediawiki 1.35 and now I am getting Timestamp Errors on one of my Wikis. I tried everything but I keep getting this error when logging in or when posting / editing something. I don't know where to start...
I guess it is because of the comma instead of using an dot. But I dont't know why its that way 31.19.213.101 (talk) 19:01, 27 June 2021 (UTC)
- Okay I solved the Issue. I changed $wgShellLocale = "en_US.utf8"; to $wgShellLocale = "de_DE.utf8"; after changing back it worked again. 31.19.213.101 (talk) 19:08, 27 June 2021 (UTC)
How to restrict editing abilities
Hi I've tried to read as much as I could before asking but nothing makes any sense to me or worked from what I read in the help files. I need to restrict my wiki to only allow certain approved users to edit (or basically to do anything besides read the wiki and have discussion).
$wgGroupPermissions['all']['edit'] = false;
I tried adding that to my local settings but it did nothing. Any help? SixtusGermanicus (talk) 06:38, 28 June 2021 (UTC)
- The implicit group of unauthenticated users (=not logged in) is
*. For authenticated ones it isuser. If you wanted to restrict editing to a certain group of authenticated users you can use something like $wgGroupPermissions['*']['edit'] = false;$wgGroupPermissions['user']['edit'] = false;$wgGroupPermissions['wiki-editors']['edit'] = true;Osnard (talk) 06:55, 28 June 2021 (UTC)
Special:WantedPages returns no results
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.
Special:WantedPages no longer appear to return results ("There are no results for this report."). Unfortunately, there are many red links on my wiki, so I know this is inaccurate. I tried running rebuildall.php and runJobs.php to no avail.
The last two changes I have made to my wiki recently were a Job queue (cron, running twice an hour) and adding a custom namespace. I'm not sure if either of these are the cause of this issue, though.
| MediaWiki | 1.35.0 |
| PHP | 7.3.28 (litespeed) |
| MariaDB | 10.3.24-MariaDB-cll-lve |
Link to my wiki showing the issue:
https://drawntolife.wiki/en/Special:WantedPages BakiDance1 (talk) 18:40, 28 June 2021 (UTC)
- This also seems to affect other special pages: UncategorizedFiles, UncategorizedCategories, ListRedirects, WantedFiles, FewestRevisions, LonelyPages, AncientPages... Basically, anything that has something to do with listing pages. BakiDance1 (talk) 18:44, 28 June 2021 (UTC)
- Oh, I feel silly! I've been struggling all day. The solution was to run Manual:UpdateSpecialPages.php See also: Project:Support desk/Flow/2014/01#h-[RESOLVED]_Why_is_Special:PopularPages_blank-2014-01-07T23:45:00.000Z BakiDance1 (talk) 20:54, 28 June 2021 (UTC)
LTA BMW
While i create a new item on wikidata for " Kourosh ZZ" I saw a this error massage :
LTA BMW Mennow2004 (talk) 19:03, 28 June 2021 (UTC)
- Maybe this named item was previously deleted. You can try this "Kourosh zz". By using small letter (z). ↠Tanbirzx (✉) 05:32, 29 June 2021 (UTC)
- @Tanbirzx Entering a random incorrect spelling does not solve a problem; it creates a new problem instead. Malyacko (talk) 18:41, 29 June 2021 (UTC)
- "LTA" usually stands for Long-Term Abuse. Feel free to bring this up in a Wikidata support forum as this is unrelated to the MediaWiki software itself. Malyacko (talk) 18:44, 29 June 2021 (UTC)
Spambots
Our wiki is constantly getting swarmed with spambots. However, the spam filter we put up gave us tons of Runtime exception errors. Anyone have a foolproof, errorproof way of doing this? 2603:6000:D740:3F1:FC93:D017:9FA:5E93 (talk) 20:34, 28 June 2021 (UTC)
When is run the page index.php am getting the error like Warning: mkdir(): File exists in C:\*****\****\****\GlobalFunctions.php on line 2147
Warning: mkdir(): File exists in GlobalFunctions.php on line 2147
[48773a85477a49fc88be25c4] [no req] MWException from line 2154 of GlobalFunctions.php: No writable temporary directory could be found. Please set $wgTmpDirectory to a writable directory.
Backtrace:
#0 includes\Setup.php(609): wfTempDir()
#1 includes\WebStart.php(137): require_once(string)
#2 index.php(40): require(string)
#3 {main} 1.22.230.152 (talk) 04:52, 29 June 2021 (UTC)
- If sounds like your tmp directory is not writable by the web server user.
- Have a look at $wgTmpDirectory, there are some debugging suggestions there. Sam Wilson 05:39, 29 June 2021 (UTC)
- i am really new to this can you please tell me wer i can find tm file 1.22.230.152 (talk) 06:13, 29 June 2021 (UTC)
- No if i change to writable also same error am getting 1.22.230.152 (talk) 06:26, 29 June 2021 (UTC)
- What is $wgTmpDirectory set to? Malyacko (talk) 18:36, 29 June 2021 (UTC)
find mysql-version 5.5.8
The following discussion is closed. Please do not modify it. Subsequent comments should be made on the appropriate discussion page. No further edits should be made to this discussion.
hi !
on https://www.mediawiki.org/wiki/Download/de is the version of mysql 5.5.8+ listed.
but the problem is to find the download.
special the subnummer x.x8 will not listed on https://downloads.mysql.com/archives/community/
could someone help?
i want to install on windows server 2016.
regards jan JanTappenbeck (talk) 13:43, 29 June 2021 (UTC)
- The plus means "version 5.5.8 or any later version". No need for that subnumber and no need to install ancient versions. Malyacko (talk) 18:36, 29 June 2021 (UTC)
search - function for mediawiki (CirrusSearch?)
hi!
8 years ago i install my last version of mediawiki and it would be very strange to install on windows.
current i had to install on windows server 2016 an my question is: "is it required to use a special search extension? or is mediawiki powerfull enough?"
or is there a extension easiert to install - we are max. 10 users of read and 2-3 authors at the same time.
reagards Jan JanTappenbeck (talk) 13:48, 29 June 2021 (UTC)
- I guess Cirrus is rather satisfying, with many wiki specific options. PerfektesChaos (talk) 13:50, 29 June 2021 (UTC)
- you know your needs better than we do. So its hard to say. Bawolff (talk) 05:19, 30 June 2021 (UTC)
Trouble with $wgServer: External and Internal Networks
I can't access my wiki from external and internal network at the same time.
If i set the $wgServer to "myInternalIP", all hosts in my internal network can access the wiki.
I have a rule on my firewall that redirect myExternalIP:port to myInternalIP, so i can have external access to the wiki, and i do, but only to the first page. When i try to access any other page, the wiki try to access myInternalIP/otherpage, because its set on the $wgServer.
I already tried to set $wgServer to "myExternalIP", but that way, the hosts on my internal network cannot access the wiki.
I did some search, and found other people with the same problem, but no solution.
I found this post, from 2016, but it didn't work:
$wgServer = "http://example.com"; // your external ip or domain
$wgInternalServer = "http://192.168.0.70"; // your local ip address 186.194.232.102 (talk) 18:13, 29 June 2021 (UTC)
- wgInternalServer is for things like cdns and static caches (varnish), not for direct access to your server by web browsers in your network.
- If your wiki needs to be accessible via multiple domains or ips, you need to autodetect which one is currently in use and populate $wgServer based on that.
- You could try
- $wgServer = WebRequest::detectServer();
- This has minor security implications (potential host header based cache poisioning). Bawolff (talk) 05:18, 30 June 2021 (UTC)
- It worked! Thanks a lot, friend. It really helped me!!! 186.194.232.102 (talk) 10:28, 1 July 2021 (UTC)
word with single uncapitalized letter does not yield any search return.
Hello,
I created the page Ou XiFan , I would like the search term Ou Xifan to at least show the article in a list of results, it's only a single letter with a different capitalization. Is this a bug?
https://en.wikipedia.org/w/index.php?search=Ou+Xifan
https://en.wikipedia.org/wiki/Ou_XiFan TZubiri (talk) 03:01, 30 June 2021 (UTC)
- The problem was only temporary and appears to be fixed!
- Next time I create a similar page I will try to confirm whether the issue occurs and how long it takes to update, as well as ruling out the influence of any local cache. TZubiri (talk) 05:07, 30 June 2021 (UTC)
real_connect(): (HY000/2002): Connection refused
Hello, Here's my error... I'm facing this error and I don't know what to do.
I saw this posts but it didn't work for me. [5] [6]
Please help me. 221.146.117.239 (talk) 03:26, 30 June 2021 (UTC)
- Could be various things…
- Is the database on the same machine as the web server? Have you tried (as it suggests) with 'localhost' instead of '127.0.0.1'? Are you able to connect to the database in other ways (e.g. on the command line)? Is the DB listening on different port to the default? Sam Wilson 04:00, 30 June 2021 (UTC)
- I'll check whether my MySQL listening to other ports. Please wait for my answer until 2021-06-31 UTC. I'll post my results until than. 221.146.117.239 (talk) 14:12, 30 June 2021 (UTC)
Supporting Languages in Sidebars
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 there!
I was recently looking into supporting multiple languages on my Wiki (1.32.0), and was running into problems with the sidebar. I noticed that this Wiki uses pages like 'mw-mainpage-url' in Mediawiki:Sidebar, and a page like 'mw-mainpage-url/[language abbreviation]' exists for each language. These mw-mainpage-url/XX pages change what the sidebar displays when a user changes their language preferences without employing a particularly complex system. This seems like exactly what I need, but my own Wiki doesn't seem to follow that behavior. On my Wiki, changing the language preference does alter the sidebar a little, but the sidebar still directs the user to whatever page is indicated by mw-mainpage-url, instead of (for example) mw-mainpage-url/de.
Is this different behavior owed to an extension? I'm so exhausted from reading documentation, so I apologize if this seems obvious to you. Duuusty (talk) 10:47, 30 June 2021 (UTC)
- You’re welcome, don’t worry. There are many many building blocks.
- IIRC it depends on Extension:UniversalLanguageSelector.
- You may also check whether Special:MyLanguage/OurHomepage is working. That is the same mechanism.
- Special:MyLanguage/MediaWiki is the start page of this wiki in user language.
- Template:Main_page is the same thing in English.
- Template:Main_page/de is explicitly German.
- Special:MyLanguage/Template:Main_page is user language if translation available. PerfektesChaos (talk) 14:42, 30 June 2021 (UTC)
- Hi there! Thanks so much for the pointers. I think I've got it installed correctly (I am nooot my organization's IT, but I figured I'd dabble to explore options before requesting it from them :'D), and for the most part it seems to be functioning correctly. However, I'm running into an issue matching this Wiki's specific configuration. On this Wiki, the sidebar file links only to mw-mainpage-url, with an additional /XX file for each language. It switches flawlessly between the files without utilizing 'Special:MyLanguage'.
- On my Wiki, if I link the sidebar to mw-mainpage-url, it will push the user to Main_Page (the contents of mw-mainpage-url) no matter which language (via ULS) they are using. The only way I can get it to work 'properly' is by making mw-mainpage-url point to 'Special:MyLanguage/Main_Page'. This isn't necessarily a big difference, but I'm curious to know if I've done something wrong with my setup to cause this. Duuusty (talk) 03:43, 1 July 2021 (UTC)
- If you have created the appropriate MediaWiki:mw-mainpage-url/eo correctly this shall work. You will explicitly need one system message subpage for each code.
- The basic functionality is almost 20 years old and should work with all current MediaWiki versions:
{{int:mw-mainpage-url}}will be evaluated toMediaWikifor the user language, transcluding a message subpage if code present, else falling back to content of MediaWiki:mw-mainpage-url which is supposed to provide the native language of the wiki.- There might be some dependency on skins but all skins maintained and used within WMF should have implemented that. PerfektesChaos (talk) 14:45, 2 July 2021 (UTC)
- To be more precise:
{{int:mw-mainpage-url}}will be evaluated wrt existing language subpage under certain conditions, e.g. as regular wikitext on Project:Sandbox, but obviously not within a Topic box of this talk tool. PerfektesChaos (talk) 15:01, 2 July 2021 (UTC) - Hahaaa whoops, I'm a big idiot. I had completely neglected the parsing for the link :') Thanks so much for your help! I think I've got things in working order now. Duuusty (talk) 11:00, 5 July 2021 (UTC)