Project:Support desk/Flow/2022/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. |
Getting a 503 Error
Getting a 503 Error for Diamond and Pearl walkthrough.
Error 503 Backend fetch failed
Backend fetch failed
Guru Meditation:
XID: 307630720
Varnish cache server 173.66.42.120 (talk) 03:20, 1 June 2022 (UTC)
- You have to complain bulbapedia admins.
- However its probably just temporary Bawolff (talk) 04:20, 1 June 2022 (UTC)
export everything
How do I export everything for import to Confluence? MichaelB29708 (talk) 16:17, 1 June 2022 (UTC)
- See Confluence forums like https://community.atlassian.com/t5/Confluence-questions/Exporting-MediaWiki-to-Confluence/qaq-p/1034181 or https://stackoverflow.com/questions/36643748/mediawiki-to-confluence-migration Malyacko (talk) 11:27, 2 June 2022 (UTC)
Transfer all pages from one server to another
My current wiki is running Mediawiki 1.27 which is obviously extremely outdated. I also need to update the server to Ubuntu 20.04 from 18.04. When I update to 20.04 it completely breaks the wiki and it won't load any page. So I have decided to start a new server which will be our new wiki. I got the newest version of Mediawiki installed and running and I got my skin all loaded up. I have tried looking around the mediawiki wiki pages and I am not quite sure what is the best method to transfer my pages and extensions over from the old server to the new. Do I mysqldump the info? Running mysql on the new server with the new mediawiki version and then picking the dumped sql file as a source for the mediawiki database causes the wiki to stop working. No pages will load because of an error.
What would you all suggest for transferring all of this data? Mpb8877 (talk) 18:10, 1 June 2022 (UTC)
- Does this help?
- Manual:Moving a wiki Jonathan3 (talk) 18:43, 1 June 2022 (UTC)
- I have seen this page but like I said when I rewrite the mysql database it breaks the wiki and I get nothing but a white screen with this error:
- MediaWiki internal error.
- Original exception: [96869a41066409ad467fac2c] /index.php/Main_Page Wikimedia\Rdbms\DBQueryError: A database query error has occurred. Did you forget to run your application's database schema updater after upgrading or after adding a new extension?
- Please see https://www.mediawiki.org/wiki/Special:MyLanguage/Manual:Upgrading and https://www.mediawiki.org/wiki/Special:MyLanguage/Manual:How_to_debug for more information.
- Error 1054: Unknown column 'page_links_updated' in 'field list' (localhost)
- Function: WikiPage::pageData
- Query: SELECT page_id,page_namespace,page_title,page_restrictions,page_is_redirect,page_is_new,page_random,page_touched,page_links_updated,page_latest,page_len,page_content_model FROM `page` WHERE page_namespace = 0 AND page_title = 'Main_Page' LIMIT 1
- Backtrace:
- from /var/www/html/mediawiki/includes/libs/rdbms/database/Database.php(1606)
- #0 /var/www/html/mediawiki/includes/libs/rdbms/database/Database.php(1590): Wikimedia\Rdbms\Database->getQueryException()
- #1 /var/www/html/mediawiki/includes/libs/rdbms/database/Database.php(1564): Wikimedia\Rdbms\Database->getQueryExceptionAndLog()
- #2 /var/www/html/mediawiki/includes/libs/rdbms/database/Database.php(1173): Wikimedia\Rdbms\Database->reportQueryError()
- #3 /var/www/html/mediawiki/includes/libs/rdbms/database/Database.php(1810): Wikimedia\Rdbms\Database->query()
- #4 /var/www/html/mediawiki/includes/libs/rdbms/database/Database.php(1911): Wikimedia\Rdbms\Database->select()
- #5 /var/www/html/mediawiki/includes/libs/rdbms/database/DBConnRef.php(69): Wikimedia\Rdbms\Database->selectRow()
- #6 /var/www/html/mediawiki/includes/libs/rdbms/database/DBConnRef.php(337): Wikimedia\Rdbms\DBConnRef->__call()
- #7 /var/www/html/mediawiki/includes/page/WikiPage.php(411): Wikimedia\Rdbms\DBConnRef->selectRow()
- #8 /var/www/html/mediawiki/includes/page/WikiPage.php(433): WikiPage->pageData()
- #9 /var/www/html/mediawiki/includes/page/WikiPage.php(473): WikiPage->pageDataFromTitle()
- #10 /var/www/html/mediawiki/includes/page/WikiPage.php(594): WikiPage->loadPageData()
- #11 /var/www/html/mediawiki/includes/page/WikiPage.php(668): WikiPage->exists()
- #12 /var/www/html/mediawiki/includes/page/WikiPage.php(300): WikiPage->getContentModel()
- #13 /var/www/html/mediawiki/includes/page/WikiPage.php(286): WikiPage->getContentHandler()
- #14 /var/www/html/mediawiki/includes/page/Article.php(2039): WikiPage->getActionOverrides()
- #15 /var/www/html/mediawiki/includes/actions/ActionFactory.php(262): Article->getActionOverrides()
- #16 /var/www/html/mediawiki/includes/actions/ActionFactory.php(362): MediaWiki\Actions\ActionFactory->getAction()
- #17 /var/www/html/mediawiki/includes/actions/Action.php(111): MediaWiki\Actions\ActionFactory->getActionName()
- #18 /var/www/html/mediawiki/includes/MediaWiki.php(177): Action::getActionName()
- #19 /var/www/html/mediawiki/includes/MediaWiki.php(872): MediaWiki->getAction()
- #20 /var/www/html/mediawiki/includes/MediaWiki.php(564): MediaWiki->main()
- #21 /var/www/html/mediawiki/index.php(53): MediaWiki->run()
- #22 /var/www/html/mediawiki/index.php(46): wfIndexMain()
- #23 {main}
- Exception caught inside exception handler: [96869a41066409ad467fac2c] /index.php/Main_Page Wikimedia\Rdbms\DBQueryError: A database query error has occurred. Did you forget to run your application's database schema updater after upgrading or after adding a new extension?
- Please see https://www.mediawiki.org/wiki/Special:MyLanguage/Manual:Upgrading and https://www.mediawiki.org/wiki/Special:MyLanguage/Manual:How_to_debug for more information.
- Error 1146: Table 'mediawiki.revision_comment_temp' doesn't exist (localhost)
- Function: MessageCache::loadFromDB(en)-small
- Query: SELECT /*! STRAIGHT_JOIN */ 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 FROM `page` JOIN `revision` ON ((page_id = rev_page)) 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)) WHERE page_is_redirect = 0 AND page_namespace = 8 AND (page_title NOT LIKE '%/%' ESCAPE '`' ) AND (page_len <= 10000) AND (page_latest = rev_id)
- Backtrace:
- from /var/www/html/mediawiki/includes/libs/rdbms/database/Database.php(1606)
- #0 /var/www/html/mediawiki/includes/libs/rdbms/database/Database.php(1590): Wikimedia\Rdbms\Database->getQueryException()
- #1 /var/www/html/mediawiki/includes/libs/rdbms/database/Database.php(1564): Wikimedia\Rdbms\Database->getQueryExceptionAndLog()
- #2 /var/www/html/mediawiki/includes/libs/rdbms/database/Database.php(1173): Wikimedia\Rdbms\Database->reportQueryError()
- #3 /var/www/html/mediawiki/includes/libs/rdbms/database/Database.php(1810): Wikimedia\Rdbms\Database->query()
- #4 /var/www/html/mediawiki/includes/libs/rdbms/database/DBConnRef.php(69): Wikimedia\Rdbms\Database->select()
- #5 /var/www/html/mediawiki/includes/libs/rdbms/database/DBConnRef.php(319): Wikimedia\Rdbms\DBConnRef->__call()
- #6 /var/www/html/mediawiki/includes/cache/MessageCache.php(569): Wikimedia\Rdbms\DBConnRef->select()
- #7 /var/www/html/mediawiki/includes/cache/MessageCache.php(447): MessageCache->loadFromDB()
- #8 /var/www/html/mediawiki/includes/cache/MessageCache.php(370): MessageCache->loadFromDBWithLock()
- #9 /var/www/html/mediawiki/includes/cache/MessageCache.php(1112): MessageCache->load()
- #10 /var/www/html/mediawiki/includes/cache/MessageCache.php(1040): MessageCache->getMsgFromNamespace()
- #11 /var/www/html/mediawiki/includes/cache/MessageCache.php(1011): MessageCache->getMessageForLang()
- #12 /var/www/html/mediawiki/includes/cache/MessageCache.php(953): MessageCache->getMessageFromFallbackChain()
- #13 /var/www/html/mediawiki/includes/language/Message.php(1491): MessageCache->get()
- #14 /var/www/html/mediawiki/includes/language/Message.php(968): Message->fetchMessage()
- #15 /var/www/html/mediawiki/includes/language/Message.php(1071): Message->format()
- #16 /var/www/html/mediawiki/includes/OutputPage.php(1041): Message->text()
- #17 /var/www/html/mediawiki/includes/OutputPage.php(1090): OutputPage->setHTMLTitle()
- #18 /var/www/html/mediawiki/includes/OutputPage.php(2843): OutputPage->setPageTitle()
- #19 /var/www/html/mediawiki/includes/exception/MWExceptionRenderer.php(148): OutputPage->prepareErrorPage()
- #20 /var/www/html/mediawiki/includes/exception/MWExceptionRenderer.php(76): MWExceptionRenderer::reportHTML()
- #21 /var/www/html/mediawiki/includes/exception/MWExceptionHandler.php(107): MWExceptionRenderer::output()
- #22 /var/www/html/mediawiki/includes/exception/MWExceptionHandler.php(202): MWExceptionHandler::report()
- #23 /var/www/html/mediawiki/includes/MediaWiki.php(583): MWExceptionHandler::handleException()
- #24 /var/www/html/mediawiki/index.php(53): MediaWiki->run()
- #25 /var/www/html/mediawiki/index.php(46): wfIndexMain()
- #26 {main}
- Seems like it might have something to do with reconfiguring schema. Not sure how to do that though
- Also running update.php gives me this:
- MediaWiki 1.38.0-rc.1 Updater
- justinrainbow/json-schema: not installed, 5.2.11 required.
- Error: your composer.lock file is not up to date. Run "composer update --no-dev" to install newer dependencies
- so I am not sure how to go about getting this justinrainbow schema? Can I get it off my old server? Mpb8877 (talk) 19:30, 1 June 2022 (UTC)
- justinrainbow is included with the mediawiki release. Are you sure you extracted the tar/zip file correctly and aren't mixing multiple versions of mediawiki.
- The other error is caused by not running update.php succesfully. Bawolff (talk) 21:01, 1 June 2022 (UTC)
- There is no other version of mediawiki on the machine. I just used tar to extract it it is mentioned on the wiki pages for mediawiki. I run update.php and it gives me this error:
- MediaWiki 1.38.0-rc.1 Updater
- justinrainbow/json-schema: not installed, 5.2.11 required.
- Error: your composer.lock file is not up to date. Run "composer update --no-dev" to install newer dependencies
- I know where to get this schema I just don't know where I would put it in the files of the server once I have it. Mpb8877 (talk) 14:34, 3 June 2022 (UTC)
- Same here even with the release version 1.38.0!
- CheckComposerLockUpToDate fails when upgrading from MW 1.37.2 to 1.38.0
- httxs://phabricator.wikimedia.org/T309860
- Apply the patchset to fix it. 2.207.117.104 (talk) 15:18, 4 June 2022 (UTC)
- Okay so I a little confused. The post linked by 2.207.11.104 says the json-schema is included. Is it not included or is it? Mpb8877 (talk) 15:36, 6 June 2022 (UTC)
- json-schema was not included. This is fixed with mediawiki 1.38.1 release:
- === Changes since MediaWiki 1.38.0 ===
- * (T309860) Add justinrainbow/json-schema to vendor.
- * (T309933) Drop PHP 7.2 support in MediaWiki 1.38; require 7.3.19. 2.207.117.104 (talk) 19:54, 6 June 2022 (UTC)
- Okay so I just uninstalled Mediawiki 1.38.0 and installed mediawiki 1.38.1 and now when I import he databases I get the same error (which is expected) but when I run update.php now it gives me this error:
- Can not upgrade from versions older than 1.29, please upgrade to that version or later first.
- I don't know where it's getting that I am running an older version. Given my old wiki was on Mediawiki 1.27 could that be my issue? Mpb8877 (talk) 15:21, 7 June 2022 (UTC)
- I'm going to guess it's related to the information below from manual:Upgrading (though I don't know why it mentions 1.29). See also Version lifecycle. Maybe go for 1.35 first.
- 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) 13:33, 9 June 2022 (UTC)
- Well see that's the thing. I am not upgrading. I am installing it for the first time. I have a machine with 1.27 but I am not upgrading that machine. I am simply installing Mediawiki for the first time on a new machine and it is acting like I am upgrading. Do I need to fresh install 1.36 and upgrade it to 1.38? Mpb8877 (talk) 14:52, 10 June 2022 (UTC)
- You're using the database from a version 1.27 wiki and files from version 1.38.
- As I understand it, the update.php script usually updates the database (new tables etc).
- So effectively you are upgrading.
- Maybe it's something to do with version 1.38. It's only new so maybe has a bug. I don't know.
- How about just moving to version 1.35 (LTS) and sticking with it for a while? Then move to 1.39 (LTS) when it's released in November. Jonathan3 (talk) 20:16, 11 June 2022 (UTC)
- Alright. Working with 1.35 seemed to work...sort of. Usually after I import my database of pages it freaks out and the wiki won't even load. Then I run update.php and something breaks. This time, the wiki freaked out on me but when I ran update.php it actually ran. After this the wiki loaded again and I was back on the main page. The problem is, none of my pages showed up. It's as if I didn't load the database at all. I did catch and error while update.php was running that was :
- php: Error 1091: Can't DROP INDEX `log_user_text_type_time`; check that it exists (localhost)
- Function: Wikimedia\Rdbms\Database::sourceFile( /var/www/html/mediawiki/maintenance/archives/patch-drop-logging-user-fields.sql )
- Query: ALTER TABLE `logging`
- DROP INDEX user_time,
- DROP INDEX log_user_type_time,
- DROP INDEX log_user_text_type_time,
- DROP INDEX log_user_text_time,
- DROP COLUMN log_user,
- DROP COLUMN log_user_text,
- ALTER COLUMN log_actor DROP DEFAULT
- #0 /var/www/html/mediawiki/includes/libs/rdbms/database/Database.php(1684): Wikimedia\Rdbms\Database->getQueryException()
- #1 /var/www/html/mediawiki/includes/libs/rdbms/database/Database.php(1659): Wikimedia\Rdbms\Database->getQueryExceptionAndLog()
- #2 /var/www/html/mediawiki/includes/libs/rdbms/database/Database.php(1228): Wikimedia\Rdbms\Database->reportQueryError()
- #3 /var/www/html/mediawiki/includes/libs/rdbms/database/Database.php(5074): Wikimedia\Rdbms\Database->query()
- #4 /var/www/html/mediawiki/includes/libs/rdbms/database/Database.php(5009): Wikimedia\Rdbms\Database->sourceStream()
- #5 /var/www/html/mediawiki/includes/libs/rdbms/database/DBConnRef.php(68): Wikimedia\Rdbms\Database->sourceFile()
- #6 /var/www/html/mediawiki/includes/libs/rdbms/database/MaintainableDBConnRef.php(35): Wikimedia\Rdbms\DBConnRef->__call()
- #7 /var/www/html/mediawiki/includes/installer/DatabaseUpdater.php(771): Wikimedia\Rdbms\MaintainableDBConnRef->sourceFile()
- #8 /var/www/html/mediawiki/includes/installer/DatabaseUpdater.php(930): DatabaseUpdater->applyPatch()
- #9 /var/www/html/mediawiki/includes/installer/DatabaseUpdater.php(554): DatabaseUpdater->dropField()
- #10 /var/www/html/mediawiki/includes/installer/DatabaseUpdater.php(517): DatabaseUpdater->runUpdates()
- #11 /var/www/html/mediawiki/maintenance/update.php(181): DatabaseUpdater->doUpdates()
- #12 /var/www/html/mediawiki/maintenance/doMaintenance.php(107): UpdateMediaWiki->execute()
- #13 /var/www/html/mediawiki/maintenance/update.php(253): require_once('/var/www/html/m...')
- #14 {main}
- Is this preventing my pages from loading? Mpb8877 (talk) 17:27, 13 June 2022 (UTC)
- Sometimes that means a db update is half applied and you have to manually apply the unapplied parts. Bawolff (talk) 14:48, 1 July 2022 (UTC)
- Hello,
- I'm having a problem trying to install SSL certificate through Let's Encrypt. The wiki is crashing and I can't load it. What should I do to install SSL certificate successfully on my wiki? Does anyone have a guide or website that might help? 178.254.128.122 (talk) 11:58, 2 June 2022 (UTC)
- Let's Encrypt have a helpful forum: https://community.letsencrypt.org/ Jonathan3 (talk) 17:17, 2 June 2022 (UTC)
- Mpb8877: I had exactly the same dependency issue as you described (justinrainbow), even on a freshly installed mediawiki 1.38 setup, and managed to fix it as follows:
- $ cd /var/www/w/vendor/
- $ composer require justinrainbow/json-schema:5.2.11 37.171.92.180 (talk) 06:57, 4 June 2022 (UTC)
Using a bulleted list within a template variable.
Hi, I am currently trying to make a bulleted list work within a template variable, but no matter what I try the formatting never just works and it either just shows the first entry of the list or none of them.
https://cdn.discordapp.com/attachments/832219868639264833/981679238191153212/unknown.png
https://cdn.discordapp.com/attachments/832219868639264833/981679238409252884/unknown.png
This is an example of something that I thought should work but just doesn't. If anyone can help me that would be greatly appreciated. Zachruff (talk) 22:08, 1 June 2022 (UTC)
- Maybe in the template add a line return before e.g. {{{usedon}}}? Or enclose it in html p tags? Jonathan3 (talk) 17:23, 2 June 2022 (UTC)
- Which tags exactly would you recommend trying? Sorry I am still kind of a noob when it comes to all this formatting stuff Zachruff (talk) 16:07, 3 June 2022 (UTC)
- I think I just meant when * appears anywhere, make sure it ends up at the beginning of a new line (can't remember fully now). If you cut and paste your code here it would make it easier to find what's wrong. Jonathan3 (talk) 20:22, 11 June 2022 (UTC)
How do I add an image for one of my boxers?
What is the process to add an image or images to one of my boxers profiles? 47.145.96.113 (talk) 23:50, 1 June 2022 (UTC)
- See Help:Images for the MediaWiki software itself; contact the website that you refer to for rules on that website. Malyacko (talk) 11:26, 2 June 2022 (UTC)
MultiLanguage Manager open in Modal window and does not work
Yes, I know MultiLanguageManager is not supported in last versjon but customer wants exact same functionality as before.
I can edit translation from
https://xxxx/wiki/Spesial:MultiLanguageManager/page, but when open from edit translation in top menu it open in a modal windows which does not work. How can I turn of this modal window? 195.139.179.110 (talk) 07:23, 2 June 2022 (UTC)
the time has come
Dear wikimedia friends, the time has come. after really many attempts we won't be able to upgrade it to the very latest version of your wiki. managed to upgrade from version 29 to version 30. However, we can't get any further because the database is too large.
users 646,324 and PAGES: 1,795,562. ssh does not provide the hosting. The max execute has been modified and visible in the php ini. however the database upgrading does not start after a certain time has error 500 on.
Would love to see a solution please. 2A02:A212:46:6A80:113A:19A7:A3B3:956D (talk) 14:55, 2 June 2022 (UTC)
- change to a host that provides ssh would be the obvious solution.
- Sometimes people use cron script hacks to get around lack of ssh. Bawolff (talk) 18:52, 2 June 2022 (UTC)
- come on devs, there must be a other solution? 2A02:A212:46:6A80:F564:3ED3:349F:FC25 (talk) 20:10, 2 June 2022 (UTC)
difference between standalone and integrated mode of parsoid
Parsoid has two modes standalone and integrated, integrated mode works via cli but I get errors in standalone mode. What is the difference between them? Sajangohil11 (talk) 19:33, 2 June 2022 (UTC)
Ores display default order
This irritates me every time I use
https://ores.wikimedia.org/ui/
The articlequality values are reported in alphabetical order:
B C FA GA Start Stub
which is not an order that they make any sense in.
Is it possible to display these from Best- to worst- order instead?
FA GA B C Start Stub
It would make life (and explaining results to people) SO much easier.
Many thanks, ~ Mary Mark Ockerbloom (talk) 19:36, 2 June 2022 (UTC)
- Should file a task at https://phabricator.wikimedia.org . Its unlikely the people who can change that are watching this page. Bawolff (talk) 21:49, 2 June 2022 (UTC)
How to change the "Deletepagetext"?
The following discussion is closed. Please do not modify it. Subsequent comments should be made on the appropriate discussion page. No further edits should be made to this discussion.
Hello,
I have a question: There are several pages, where you can change standardised texts. For example you can change the Uploadtext via "MediaWiki:Uploadtext" or the Movepagetext via "MediaWiki:Movepagetext".
But how can you change the Deletepagetext? There is no such page like "MediaWiki:Deletepagetext" or something similar.
Greetings, Hydrotoxinlaser Hydrotoxinlaser (talk) 21:29, 2 June 2022 (UTC)
- Add ?uselang=qqx (or &uselang=qqx if the url already has a ?) To end of url to see the message names. Bawolff (talk) 21:48, 2 June 2022 (UTC)
Errors after updating MW Farm to 1.38.0
The following discussion is closed. Please do not modify it. Subsequent comments should be made on the appropriate discussion page. No further edits should be made to this discussion.
Hi,
At my Wiki farm on subdomains I hav following error after moving from 1.37.2 to 1.38.0:
Deprecated: Use of InternalParseBeforeSanitize hook (used in VariablesHooks::onInternalParseBeforeSanitize) was deprecated in MediaWiki 1.35. [Called from MediaWiki\HookContainer\HookContainer::run in /var/www/admin/www/mediawiki-1.38.0/includes/HookContainer/HookContainer.php at line 137] in /var/www/admin/www/mediawiki-1.38.0/includes/debug/MWDebug.php on line 377
Deprecated: Use of $wgUser was deprecated in MediaWiki 1.35. [Called from MediaWiki\HookContainer\HookContainer::callLegacyHook in /var/www/admin/www/mediawiki-1.38.0/includes/HookContainer/HookContainer.php at line 338] in /var/www/admin/www/mediawiki-1.38.0/includes/debug/MWDebug.php on line 377
Warning: call_user_func_array() expects parameter 1 to be a valid callback, class 'User' does not have a method 'isLoggedIn' in /var/www/admin/www/mediawiki-1.38.0/includes/StubObject.php on line 120
Deprecated: $wgUser reassignment detected [Called from MediaWiki\HookContainer\HookContainer::callLegacyHook in /var/www/admin/www/mediawiki-1.38.0/includes/HookContainer/HookContainer.php at line 338] in /var/www/admin/www/mediawiki-1.38.0/includes/debug/MWDebug.php on line 377
Any ideas how to resolve the issue? Fokebox (talk) 08:48, 3 June 2022 (UTC)
Time from "publishing" translation to text actually available
Hello. Four months ago, I translated and published an article that existed in Spanish into English. I can't really find any information on how long it takes from when I publish the translation to when it is then available to the public and attached to the original article in Spanish. I can see the translation in my contributions, but it hasn't advanced anywhere. Is it in a queue to be reviewed? How long does this take? Or did I miss a step somewhere? Thanks for your help! Mcfellie (talk) 19:24, 3 June 2022 (UTC)
- I assume you are referring to w:User:Mcfellie/Manuel Álvarez Ortega.
- Its in userspace. I don't think its in any queue, so it might need to be marked as waiting or something. I'm not familar with how wikipedia does this sort of thing. I would suggest asking at w:WP:TEAHOUSE. They would know better how to help you. Bawolff (talk) 09:22, 5 June 2022 (UTC)
- Thanks, I'll do that. Mcfellie (talk) 13:00, 6 June 2022 (UTC)
No JPG thumbnails after 1.38 upgrade
The following discussion is closed. Please do not modify it. Subsequent comments should be made on the appropriate discussion page. No further edits should be made to this discussion.
After upgrading to 1.38.0 from 1.37.2, new JPG images are not having thumbnails created. The file page shows a white box and a size of 0x0 pixels. PNG files work as expected. The original file is uploaded successfully, as accessing the file directly through the webserver displays it correctly.
What I've tried to far:
- Looking for obvious PHP or webserver errors. I don't see anything.
- Switching from Imagemagick to gd. Same results.
- Confirmed that the images and images/thumb directories have the proper permissions. Yes, they are 755 and owned by the appropriate user.
- Turned on $wgDebugLogFile to find more details. This is where it gets interesting. For PNG files, I can see where it tries (and succeeds) in generating thumbnails. It calls out to /usr/bin/convert as expected. For JPG files, these lines are nowhere to be found. It's like it's not even trying to create a thumbnail.
Any ideas? JalapenoParty (talk) 02:41, 5 June 2022 (UTC)
- It could be a metadata extraction issue. If mediawiki cannot detect the dimensions of the file, it gets reported as 0x0 and it will assume file is broken so it wont try to thumbnail.
- Try recording the debug log when uploading a new jpg file, see if anything weird is in the log. Bawolff (talk) 09:18, 5 June 2022 (UTC)
- That pointed me in the right direction, thank you!
- I found the error:
JpegHandler::getSizeAndMetadata: Internal error: exif_read_data not present. $wgShowEXIF may be incorrectly set or not checked by an extension.- So I just needed to enable the
exifmodule in my PHP configuration. I am confused why this happened though. I don't see any mention of this module in the official requirements, nor any changes to it in the 1.38 release notes. My system's PHP package also hasn't been updated since originally installed. - Do you know if this is a documentation issue, or did I just miss something? JalapenoParty (talk) 14:50, 5 June 2022 (UTC)
- In theory its supposed to still work without it. Maybe the fallback broke at some point and nobody noticed. Bawolff (talk) 00:30, 6 June 2022 (UTC)
- Submitted a bug report (T310013) and marking as resolved.
- (Same user here, I forgot my Wikipedia account carried through to other WM sites.) Jacob Steffler (talk) 18:50, 6 June 2022 (UTC)
Closing sidebar (1.38 Vector-2022)
After upgrading to 1.38.0 from 1.37.x. For anonymous, not logged in user, the default left sidebar always closes when a page is loaded and it needs to be opened from three lines-icon on every page. When me as a page owner is logged in, the sidebar is always visible.
I look for setting or method to have the sidebar ALWAYS visible.
Thanks! 2001:14BA:A069:3A00:8C78:EAB9:E142:6474 (talk) 06:53, 5 June 2022 (UTC)
I accidentally broke my Common.css
I'm using a localhost (offline) and I was editing on common.css when my wiki ended up looking like this [2] Since I can't access any page, I can't rewrite the css to fix it. Is there anyway to rewrite the css without using the webpage? Meltrosz (talk) 15:59, 5 June 2022 (UTC)
- Maybe you can use the edit.php maintenance script to clear out the page. JalapenoParty (talk) 17:01, 5 June 2022 (UTC)
- Have you tried on index.php?title=MediaWiki:Common.css&action=edit&safemode=1 ? Or index.php?title=MediaWiki:Common.css&action=delete ? Malyacko (talk) 18:39, 5 June 2022 (UTC)
- Web browsers usually have a button somewhere to disable css. In Firefox: View > Page Style > No Style. Bawolff (talk) 00:29, 6 June 2022 (UTC)
Anyone to hide the top bar when scrolling
Pretty straight forward. I've been looking around and I haven't found much in the way of how one would even go about doing this. I'd like to make it so that the top bar (containing search bar, username section/login, etc) disappears when you scroll down the page, and I'd like to also make it so that it comes back when you scroll up. Syfri (talk) 19:10, 5 June 2022 (UTC)
1054 sql errors after upgrade from 1.36, to 1.37, and to 1.38.
The following discussion is closed. Please do not modify it. Subsequent comments should be made on the appropriate discussion page. No further edits should be made to this discussion.
Hey everyone.
I am really worried cause it's been years since I am not able to upgrade my installation. My work and study of more than 20 years is in my wiki, and I am so afraid to lose it one day if I can not upgrade.
I hope you guys can help me out to solve this issue. Thank you in advance, I continue with the detais of the issue:
My installation is hosted in Namecheap (first installed using softacolous many years ago). For the two releases I have tried, 1.37 and 1.38 I followed the same steps:
1 Rename the previous directory in which mediawiki was installed.
2 Backup DB in cpanel.
3 Clone last stable version from command line.
4 Install dependencies from command line.
5 complete installation, using the credentials of the data dase.
6 Generate Localsettings.php and upload to directory.
7 run php update.php. (the error is the same before and after update.php)
Result:
MediaWiki internal error.
Original exception: [6ca63e99dae5ab17a1b4bf1c] /index.php Wikimedia\Rdbms\DBQueryError: A database query error has occurred. Did you forget to run your application's database schema updater after upgrading or after adding a new extension?
Please see https://www.mediawiki.org/wiki/Special:MyLanguage/Manual:Upgrading and https://www.mediawiki.org/wiki/Special:MyLanguage/Manual:How_to_debug for more information.
Error 1054: Unknown column 'page_restrictions' in 'field list' (localhost)
Function: WikiPage::pageData
Query: SELECT page_id,page_namespace,page_title,page_restrictions,page_is_redirect,page_is_new,page_random,page_touched,page_links_updated,page_latest,page_len,page_content_model FROM `page` WHERE page_namespace = 0 AND page_title = 'Main_Page' LIMIT 1
Backtrace:
from /home/clanunre/book.clantr.us/includes/libs/rdbms/database/Database.php(1809)
#0 /home/clanunre/book.clantr.us/includes/libs/rdbms/database/Database.php(1793): Wikimedia\Rdbms\Database->getQueryException(string, integer, string, string)
#1 /home/clanunre/book.clantr.us/includes/libs/rdbms/database/Database.php(1768): Wikimedia\Rdbms\Database->getQueryExceptionAndLog(string, integer, string, string)
#2 /home/clanunre/book.clantr.us/includes/libs/rdbms/database/Database.php(1327): Wikimedia\Rdbms\Database->reportQueryError(string, integer, string, string, boolean)
#3 /home/clanunre/book.clantr.us/includes/libs/rdbms/database/Database.php(2012): Wikimedia\Rdbms\Database->query(string, string, integer)
#4 /home/clanunre/book.clantr.us/includes/libs/rdbms/database/Database.php(2112): Wikimedia\Rdbms\Database->select(array, array, array, string, array, array)
#5 /home/clanunre/book.clantr.us/includes/page/WikiPage.php(415): Wikimedia\Rdbms\Database->selectRow(array, array, array, string, array, array)
#6 /home/clanunre/book.clantr.us/includes/page/WikiPage.php(437): WikiPage->pageData(Wikimedia\Rdbms\DatabaseMysqli, array, array)
#7 /home/clanunre/book.clantr.us/includes/page/WikiPage.php(477): WikiPage->pageDataFromTitle(Wikimedia\Rdbms\DatabaseMysqli, Title, array)
#8 /home/clanunre/book.clantr.us/includes/page/WikiPage.php(598): WikiPage->loadPageData()
#9 /home/clanunre/book.clantr.us/includes/page/WikiPage.php(672): WikiPage->exists()
#10 /home/clanunre/book.clantr.us/includes/page/WikiPage.php(304): WikiPage->getContentModel()
#11 /home/clanunre/book.clantr.us/includes/page/WikiPage.php(290): WikiPage->getContentHandler()
#12 /home/clanunre/book.clantr.us/includes/page/Article.php(2012): WikiPage->getActionOverrides()
#13 /home/clanunre/book.clantr.us/includes/actions/ActionFactory.php(255): Article->getActionOverrides()
#14 /home/clanunre/book.clantr.us/includes/actions/ActionFactory.php(349): MediaWiki\Actions\ActionFactory->getAction(string, Article, RequestContext)
#15 /home/clanunre/book.clantr.us/includes/actions/Action.php(111): MediaWiki\Actions\ActionFactory->getActionName(RequestContext)
#16 /home/clanunre/book.clantr.us/includes/MediaWiki.php(176): Action::getActionName(RequestContext)
#17 /home/clanunre/book.clantr.us/includes/MediaWiki.php(892): MediaWiki->getAction()
#18 /home/clanunre/book.clantr.us/includes/MediaWiki.php(564): MediaWiki->main()
#19 /home/clanunre/book.clantr.us/index.php(53): MediaWiki->run()
#20 /home/clanunre/book.clantr.us/index.php(46): wfIndexMain()
#21 {main}
Exception caught inside exception handler: [6ca63e99dae5ab17a1b4bf1c] /index.php Wikimedia\Rdbms\DBQueryError: A database query error has occurred. Did you forget to run your application's database schema updater after upgrading or after adding a new extension?
Please see https://www.mediawiki.org/wiki/Special:MyLanguage/Manual:Upgrading and https://www.mediawiki.org/wiki/Special:MyLanguage/Manual:How_to_debug for more information.
Error 1054: Unknown column 'page_restrictions' in 'field list' (localhost)
Function: LinkBatch::doQuery (for Skin::preloadExistence)
Query: SELECT page_id,page_len,page_is_redirect,page_latest,page_restrictions,page_content_model,page_namespace,page_title FROM `page` WHERE (page_namespace = 1 AND page_title = 'Main_Page') OR (page_namespace = 4 AND page_title IN ('Privacy_policy','About','General_disclaimer') )
Backtrace:
from /home/clanunre/book.clantr.us/includes/libs/rdbms/database/Database.php(1809)
#0 /home/clanunre/book.clantr.us/includes/libs/rdbms/database/Database.php(1793): Wikimedia\Rdbms\Database->getQueryException(string, integer, string, string)
#1 /home/clanunre/book.clantr.us/includes/libs/rdbms/database/Database.php(1768): Wikimedia\Rdbms\Database->getQueryExceptionAndLog(string, integer, string, string)
#2 /home/clanunre/book.clantr.us/includes/libs/rdbms/database/Database.php(1327): Wikimedia\Rdbms\Database->reportQueryError(string, integer, string, string, boolean)
#3 /home/clanunre/book.clantr.us/includes/libs/rdbms/database/Database.php(2012): Wikimedia\Rdbms\Database->query(string, string, integer)
#4 /home/clanunre/book.clantr.us/includes/libs/rdbms/database/DBConnRef.php(68): Wikimedia\Rdbms\Database->select(string, array, string, string)
#5 /home/clanunre/book.clantr.us/includes/libs/rdbms/database/DBConnRef.php(324): Wikimedia\Rdbms\DBConnRef->__call(string, array)
#6 /home/clanunre/book.clantr.us/includes/cache/LinkBatch.php(329): Wikimedia\Rdbms\DBConnRef->select(string, array, string, string)
#7 /home/clanunre/book.clantr.us/includes/cache/LinkBatch.php(223): LinkBatch->doQuery()
#8 /home/clanunre/book.clantr.us/includes/cache/LinkBatch.php(197): LinkBatch->executeInto(LinkCache)
#9 /home/clanunre/book.clantr.us/includes/skins/Skin.php(387): LinkBatch->execute()
#10 /home/clanunre/book.clantr.us/includes/skins/Skin.php(231): Skin->preloadExistence()
#11 /home/clanunre/book.clantr.us/includes/skins/SkinFallback.php(20): Skin->initPage(OutputPage)
#12 /home/clanunre/book.clantr.us/includes/skins/SkinTemplate.php(140): SkinFallback->initPage(OutputPage)
#13 /home/clanunre/book.clantr.us/includes/OutputPage.php(2644): SkinTemplate->outputPage()
#14 /home/clanunre/book.clantr.us/includes/exception/MWExceptionRenderer.php(158): OutputPage->output()
#15 /home/clanunre/book.clantr.us/includes/exception/MWExceptionRenderer.php(77): MWExceptionRenderer::reportHTML(Wikimedia\Rdbms\DBQueryError)
#16 /home/clanunre/book.clantr.us/includes/exception/MWExceptionHandler.php(107): MWExceptionRenderer::output(Wikimedia\Rdbms\DBQueryError, integer)
#17 /home/clanunre/book.clantr.us/includes/exception/MWExceptionHandler.php(202): MWExceptionHandler::report(Wikimedia\Rdbms\DBQueryError)
#18 /home/clanunre/book.clantr.us/includes/MediaWiki.php(583): MWExceptionHandler::handleException(Wikimedia\Rdbms\DBQueryError, string)
#19 /home/clanunre/book.clantr.us/index.php(53): MediaWiki->run()
#20 /home/clanunre/book.clantr.us/index.php(46): wfIndexMain()
#21 {main} Antoniobarijo (talk) 02:19, 6 June 2022 (UTC)
- > 6 Generate Localsettings.php and upload to directory
- When updating you should keep the old LocalSettings.php (along with the images directory and maybe the extensions directory), and it should be present when running the installer. Otherwise mediawiki will think its a new installation and not an upgrade.
- Anyways, this error usually means you ran update.php for a newer version of mediawiki than the one you are using,so check you replaced the files correctly. Bawolff (talk) 04:00, 6 June 2022 (UTC)
- Thank you so much for the help Bawolff.
- I did so:
- 1.Upload and extract 1.38
- 2. Run dependencies
- 3. Move images folder, extensions folder, and old LocalSettings.php to run installer
- But I get a 500. I can not run the installer with the old LocalSettings.php present before the run. Guess the problem is the LocalSettings.php file?
- I tried to debug and of course no results, make sense since installation is not there.
- Thank you. Antoniobarijo (talk) 13:40, 6 June 2022 (UTC)
- Bawolff, I got it.
- Thank you very much for your help, it worked.
- Now I am in 1.38!
- I had to comment in LocalSettings.php some extensions, that were not working anymore due to version issues, after that, just like you said.
- Than you. Antoniobarijo (talk) 16:55, 6 June 2022 (UTC)
reset my password
The following discussion is closed. Please do not modify it. Subsequent comments should be made on the appropriate discussion page. No further edits should be made to this discussion.
I have forgotten my login password. How do I reset 2401:4900:1F3D:B6AC:E145:B98C:6EFD:224E (talk) 05:32, 6 June 2022 (UTC)
- Click
Forgot your password?. 154.121.55.97 (talk) 11:31, 6 June 2022 (UTC)
LocalSettings
Hi there, sorry for the dumb question, but how can we check the LocalSettings.php file for a specific wiki (in my case fr.wikipedia)? And are the LocalSettings the same for all wikipedias? Thanks Binabik (talk) 08:54, 6 June 2022 (UTC)
- Hi, wikimedia LocalSettings.php are very complicated so they are split among multiple files.
- You can view them at https://github.com/wikimedia/operations-mediawiki-config/tree/master/wmf-config InitialiseSettings.php is probably the one you want if you want to know settings for a specific wiki, but depending on what you are looking for other files might be what you want. Bawolff (talk) 11:36, 6 June 2022 (UTC)
- Thanks, that's what I was looking for! Binabik (talk) 14:03, 6 June 2022 (UTC)
Special:Notifications
The following discussion is closed. Please do not modify it. Subsequent comments should be made on the appropriate discussion page. No further edits should be made to this discussion.
How I add the Special:Notifications special page. 154.121.55.97 (talk) 11:25, 6 June 2022 (UTC)
- Its part of extension:Echo Bawolff (talk) 11:33, 6 June 2022 (UTC)
- Thanks. 105.105.32.74 (talk) 18:03, 6 June 2022 (UTC)
- Mark this topic as resolved. 105.105.32.74 (talk) 18:05, 6 June 2022 (UTC)
search by word
Hello.
I have a Test page with "Test" theme, and "Test page" line in it.
When I try to search by "Test", I can find this page.
But I can't find it by "Test page" or "page".
How to set up it? Chart411 (talk) 12:11, 6 June 2022 (UTC)
- Please see "Post a new question" in the sidebar. Do you use the CirrusSearch extension or not? Malyacko (talk) 08:33, 7 June 2022 (UTC)
Search API
How i can get all pages according to a namespace in Action API? 103.255.6.75 (talk) 06:08, 7 June 2022 (UTC)
- What have you tried exactly? What happened? What did you expect to happen instead? API:Main page has an item called "List pages matching a criterion". Malyacko (talk) 08:32, 7 June 2022 (UTC)
Upgrade MediaWiki 1.37.2 to 1.38.1 EU
I have tried to upgrade my MediaWiki 1.37.2 to 1.38.1:
- Copied the images folder in the new version
- Added my extra extensions in the extensions folder of the new version
- Copied de LocalSettings.php (but commented-out all extensions)
Running 'php maintenance/update.php' gives the error
"Fatal error: Uncaught FatalError: $wgBaseDirectory must not be modified in settings files! Use the MW_INSTALL_PATH environment variable to override the installation root directory. in /var/www/html/includes/Setup.php:237
Stack trace:
#0 /var/www/html/maintenance/doMaintenance.php(96): require_once()
#1 /var/www/html/maintenance/update.php(264): require_once('/var/www/html/m...')
#2 {main}
thrown in /var/www/html/includes/Setup.php on line 237"
Also, going to the site , gives the error:
"Fatal error: Uncaught FatalError: $wgBaseDirectory must not be modified in settings files! Use the MW_INSTALL_PATH environment variable to override the installation root directory. in /var/www/html/includes/Setup.php:237 Stack trace: #0 /var/www/html/includes/WebStart.php(93): require_once() #1 /var/www/html/index.php(44): require('/var/www/html/i...') #2 {main} thrown in /var/www/html/includes/Setup.php on line 237"
How can I solve this error? Arviestarman (talk) 07:47, 7 June 2022 (UTC)
- Are you setting $wgBaseDirectory in LocalSettings.php ? Bawolff (talk) 09:15, 7 June 2022 (UTC)
- No, I have not set the $wgBaseDirectory. Arviestarman (talk) 11:07, 7 June 2022 (UTC)
- Unless MW_INSTALL_PATH or wgBaseDirectory have been modified, I have no idea. Try removing any extensions/customizations in LocalSettings.php to try and narrow down the cause. Bawolff (talk) 21:52, 8 June 2022 (UTC)
- I have the same Problem as well. As you using a wiki farm with a symbolic link too? Otherwise i have not clue about why $wgBaseDirectory is complaining Pmathewd (talk) 10:52, 9 June 2022 (UTC)
- I had a similar problem to this. I found that there were some settings in LocalSettings.php that caused the problem: relating to $IP and MW_INSTALL_PATH. I guess I should have removed them at a previous version upgrade but didn't.
- To ensure a clean version of LocalSettings.php I installed a new version of 1.38.1 on a test site, then compared the old and new LocalSettings.php, editing the old one accordingly. That then worked OK in the old site. PaulTimperley (talk) 10:35, 19 June 2022 (UTC)
- I also have this error, but I am unable to recreate a clean LocalSettings.php. Can someone point out what else I can do? 62.104.194.32 (talk) 11:48, 5 July 2022 (UTC)
- I had the same error. In my case it has to do with a section of "security" related stuff at the top of my localsettings.php. These are old wikis, and I don't remember where this came from, but once I removed the following section my wiki loads again.
require_once( "$IP/includes/DefaultSettings.php" );- (edits: removed part that doesn't break it) Tenbergen (talk) 20:01, 26 July 2022 (UTC)
- Thank-you, Tenbergen: your removal of that "require_once" statement fixed my issues (unable to run update.php and Apache not serving) 142.58.181.234 (talk) 18:09, 11 October 2022 (UTC)
How to set up table of contents to the left bar?
Hi. We have now option to set up table of contents to the left bar just like it is now at WikiPedia? I haven't found anything to make it? Does someone know? Fokebox (talk) 09:17, 7 June 2022 (UTC)
- Use the Vector 2022 skin. Malyacko (talk) 09:43, 7 June 2022 (UTC)
- I have set:And nothing happens with TOC Fokebox (talk) 13:02, 7 June 2022 (UTC)
$wgDefaultSkin = "vector-2022"; wfLoadSkin( 'Vector' ); $wgVectorResponsive = true;
- Hi! Still have no idea how to set up the TOC at left side bar. Plz help! Fokebox (talk) 11:39, 16 June 2022 (UTC)
- @Malyacko 141.136.76.26 (talk) 02:07, 18 June 2022 (UTC)
- Please don't ping me for no reason. Malyacko (talk) 11:03, 18 June 2022 (UTC)
Customized skin
Hi. I am currently using MW 1.35.6 with a customized skin (since MW 1.20)
Unfortunately my skin is not yet compatible for the new update to 1.37 and above. Is there a way to fix it? Pmathewd (talk) 10:53, 7 June 2022 (UTC)
- Which skin are you using? 105.105.32.74 (talk) 11:06, 7 June 2022 (UTC)
- it is a custom made one. The filter does not let me add the URL to my wiki here. However i just found out that it is based on the skin MonoBook Pmathewd (talk) 11:47, 7 June 2022 (UTC)
- I thnk its author no longer maintains your skin. 197.202.41.196 (talk) 12:44, 7 June 2022 (UTC)
- If its your custom skin, you will have to update it yourself to be compatible.
- You can post urls inside nowiki tags Bawolff (talk) 23:33, 7 June 2022 (UTC)
- Thx for your reply. I managed to fix the custom skin Pmathewd (talk) 11:23, 9 June 2022 (UTC)
Error when adding text with VisualEditor at Discussion pages (Structured discussions 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.
Hi! I have updated my wiki to 1.38.1:
| Продукт | Версия |
|---|---|
| MediaWiki | 1.38.1 |
| PHP | 7.4.28 (cgi-fcgi) |
| MySQL | 5.7.27-30 |
| ICU | 50.1.2 |
| Lua | 5.1.5 |
Flow:
| Flow | 1.2.0 (74ffd17) 08:41, 26 May 2022 |
When I try to post a message at discussion page (using Flow and Visual Editor) I have following error:
At previous versions of MW the problem was resolved suing this patch. And all worked fine. After upgrading MW to 1.38.1 this patch did not helped and Flow stopped working at all. Without this patch I have error shown above. So what can be the reason of this? How to resolve the problem? Fokebox (talk) 12:07, 7 June 2022 (UTC)
- P.S. If I post message in code mode all works fine. Fokebox (talk) 12:08, 7 June 2022 (UTC)
- The Flow extension is no longer maintained and will be removed in the next years. 197.202.41.196 (talk) 19:20, 7 June 2022 (UTC)
- Wikimedia may decide not to use it, however it is likely people outside wikimedia will continue to even after wikimedia disables it. Bawolff (talk) 23:31, 7 June 2022 (UTC)
- I mean I use Structured discussions extension. Fokebox (talk) 20:53, 7 June 2022 (UTC)
- Can you set $wgShowExceptionDetails = true; to give a more detailed error message? Bawolff (talk) 23:30, 7 June 2022 (UTC)
- Here it is what I have:
- [YqBBEKBG-g1ZK4kRcLTeewAAAMo] Exception caught: Conversion from 'html' to 'wikitext' was requested, but core's Parser only supports 'wikitext' to 'html' conversion Fokebox (talk) 06:26, 8 June 2022 (UTC)
- I would suggest filing a bug in phabricator (Assuming there isn't one already) Bawolff (talk) 21:49, 8 June 2022 (UTC)
- This patch has resolved the problem. I hope that the solution will be deployed in future versions of extension Fokebox (talk) 07:28, 10 June 2022 (UTC)
- I have found at least two topics on the issue:
- I believe there is no need to make additional one. I looked both topics, but the solution is still unclear for me. Fokebox (talk) 06:34, 9 June 2022 (UTC)
Permanently inserting a box to certain pages regardless of their current content
There is a proposed gadget on Japanese Wikipedia that inserts a warning box on specific pages ("Wikipedia:Sandbox" and its talk page) even when they are blanked. This is intended to replace a template-based warning box, which is vulnerable to accidental removal, although we have a bot to periodically initialize the page.
I have two concerns. 1) JS requirement: Being a gadget, it would not work when JavaScript is disabled. Is there a MediaWiki extension more suitable for this purpose, one that works without JS? 2) Performance implications: It seems wasteful to load the gadget for the vast majority of viewers who are visiting the rest of the pages that should not affected by this. Don't we have to worry about performance at all over a single JS file? Is there a better way to go about it? whym (talk) 14:36, 7 June 2022 (UTC)
- For 1) it would certainly be possible to make one fairly easily, but afaik none exists currently.
- People do often use editnotices for this purpose. Bawolff (talk) 23:28, 7 June 2022 (UTC)
- Thanks a lot. The fact that editnotices are used seems to suggest that the JS approach is fine, performance-wise. (I'm not a huge fan of editnotices because they don't work on mobile (phab:T201595), but that's besides the point, I guess.) whym (talk) 03:55, 9 June 2022 (UTC)
The "LDAPProvider" extension must be installed for this script to run. Please enable it and then try again.
Hi:
I installed MediaWiki so I want to enable LDAP Authentication.
My Mediawiki directory is in /var/www/mediawiki
I installed all required extensions, they are in folders within /var/www/mediawiki/extensions
I cannot login. When I try to login, I receive this message: "Invalid username or password..."
So I go to CLI and execute this command:
php /var/www/mediawiki/extensions/LDAPProvider/maintenance/CheckConnection.php
So I receive this message:
The "LDAPProvider" extension must be installed for this script to run. Please enable it and then try again. Redbob365 (talk) 20:04, 7 June 2022 (UTC)
- Did you add the correct line to LocalSettings.php Bawolff (talk) 23:27, 7 June 2022 (UTC)
Mediawiki on a Synology NAS and accessible outside the local networ
Thank you in advance for your help with this. I am running my MediaWiki on a Synology NAS and I would like to make it available over the Internet, in other words outside the local area network. I access by Synology via QuickConnect. I have searched for an answer, but did not find a definitive solution. Other Synology NAS applications, such as those for photos, files, etc. work fine. I would like to avoid having set up special configurations the router, etc. as those devices might get swapped out over time. Thanks, PHIL Philipteyssier (talk) 02:53, 8 June 2022 (UTC)
- You would probably have better luck asking on a synology forum or a networking forum. This isn't really mediawiki specific, and without knowing the specifics, there is very little we can say beyond basics.
- Basics would be: verify that the ip address of the host is globally routable (e.g. not a local ip), verify no firewalls are blocking access. Bawolff (talk) 05:54, 8 June 2022 (UTC)
- Thanks for the response. I will ask there too. I was asking here because there must be a lot of users who have Mediawiki set up on their Synology NAS and was hoping for some insight. When I ask Synology tech support, they just say, that is a third party software application and we don't support it. So it is the classic between the cracks. Philipteyssier (talk) 14:22, 8 June 2022 (UTC)
- My general advice is to use docker containers on Synology instead of the pre packaged applications that are not Synology's own applications. But not all synology's are suitable for Docker. —TheDJ (Not WMF) (talk • contribs) 08:52, 10 June 2022 (UTC)
Uploading Files more than 100MB
I need help. I am running MediaWiki 1.37.2 on a Raspberry Pi with Raspbian. I have an issue I need to be able to increase the file upload size maybe even up to around 25-50GB. Is there anyway around this limit as the files I need to upload would be on a local server and want it to be wiki style. 74.102.238.209 (talk) 18:52, 8 June 2022 (UTC)
- I think normally mediawiki has a limit of around 4gb, but that might depend on the file backend.
- If its already on the server, use importImages.php.
- If not on the server, you probably need to use either chunked upload or upload by url. Bawolff (talk) 21:47, 8 June 2022 (UTC)
Sidebar customisation by namespace
On my creative-venture wiki, I've had a bit of trouble getting a particular sidebar section to work on the namespaces it's supposed to be visible on. Despite following the advice at Manual:Interface/Sidebar#Parser functions in sidebar, the target section is not showing up and the affected HTML segment is no better for it.
From my site's own Sidebar message:
* {{#switch:{{NAMESPACE}}{{!}}Voablivrile{{!}}Grammar{{!}}Corpus {{!}}Entry{{!}}Morpheme{{!}}Rhymes=Tovasala}}
** {{#switch:{{NAMESPACE}}{{!}}Voablivrile{{!}}Grammar{{!}}Corpus {{!}}Entry{{!}}Morpheme{{!}}Rhymes=Portal:Tovasala Dictionary{{!}}Home page}}
** {{#switch:{{NAMESPACE}}{{!}}Voablivrile{{!}}Grammar{{!}}Corpus {{!}}Entry{{!}}Morpheme{{!}}Rhymes=Voablivrile:Grammar{{!}}Grammar}}
** {{#switch:{{NAMESPACE}}|Voablivrile|Grammar|Corpus|Entry|Morpheme|Rhymes=Special:Random/Entry{{!}}Random headword}}
** {{#switch:{{NAMESPACE}}|Voablivrile|Grammar|Corpus|Entry|Morpheme|Rhymes=Special:Random/Morpheme{{!}}Random morpheme}}
** {{#switch:{{NAMESPACE}}|Voablivrile|Grammar|Corpus|Entry|Morpheme|Rhymes=Special:RandomInCategory/Snippets{{!}}Random snippet}}
** {{#switch:{{NAMESPACE}}|Voablivrile|Grammar|Corpus|Entry|Morpheme|Rhymes=Special:Random/Rhymes{{!}}Random rhyme list}}
HTML source:
<nav id="p-{{#switch:{{NAMESPACE}}{{!}}Voablivrile{{!}}Grammar{{!}}Corpus_{{!}}Entry{{!}}Morpheme{{!}}Rhymes=Tovasala}}" class="mw-portlet mw-portlet-_switch_NAMESPACE_Voablivrile_Grammar_Corpus_Entry_Morpheme_Rhymes_Tovasala emptyPortlet vector-menu vector-menu-portal portal" aria-labelledby="p-{{#switch:{{NAMESPACE}}{{!}}Voablivrile{{!}}Grammar{{!}}Corpus_{{!}}Entry{{!}}Morpheme{{!}}Rhymes=Tovasala}}-label" role="navigation"
>
<h3 id="p-{{#switch:{{NAMESPACE}}{{!}}Voablivrile{{!}}Grammar{{!}}Corpus_{{!}}Entry{{!}}Morpheme{{!}}Rhymes=Tovasala}}-label" class="vector-menu-heading"> <span>{{#switch:{{NAMESPACE}}{{!}}Voablivrile{{!}}Grammar{{!}}Corpus {{!}}Entry{{!}}Morpheme{{!}}Rhymes=Tovasala}}</span>
Either I'll have to wait on a native fix from @Bawolff: or otherwise, or I'll provide a CSS-based solution of my own if it works later. --Slgrandson (talk) 16:42, 9 June 2022 (UTC)
.NET required.
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 attempt to install the configuration, but .net is required. Its installed and downloaded but the configurator still wont install. 76.71.112.21 (talk) 20:19, 9 June 2022 (UTC)
- .Net is not required for MediaWiki Ciencia Al Poder (talk) 21:15, 9 June 2022 (UTC)
Migration von joomla zu wordpress
Hi,
Ich habe eine Website auf Basis von innenreinigung auto berlin, die mit Joomla erstellt wurde, aber ich habe nicht viel Erfahrung mit Joomla und fühle mich mit WordPress wohler. Kann ich meine Website auch von Joomla zu WordPress migrieren und wie geht das? Afaq3 (talk) 03:50, 10 June 2022 (UTC)
- @Afq3: This is the support desk for neither Joomla nor WordPress. You should probably ask on one of those projects!
- (Actually, this is just spam isn't it?) Sam Wilson 07:21, 10 June 2022 (UTC)
- how is this a spam? You probably have misunderstood my query, Actually joomla forum redirected me here I don't know why but I thought this platform somewhere related to joomla. If my question is irrelevant or the platform is not relevant, I will remove my post. Afaq3 (talk) 09:49, 10 June 2022 (UTC)
- I do apologise! It was just the link that make me wonder; oftentimes commercial links are people trying to get links on other people's websites.
- But yeah, I'm afraid there's no much connection between Joomla and MediaWiki. I don't know how much help we can be!
- Feel free to ask any specific questions about MediaWiki though. :-) Sam Wilson 11:33, 10 June 2022 (UTC)
Question
Is there a method to change the logo on the window title of the wiki? 197.202.110.178 (talk) 08:07, 10 June 2022 (UTC)
Migration of old Database to fresh Mediawiki Installation?
Due to a datacorruption within my old installation, which wasn't economical solveable, I had to scrap my entire webserver installation and had to begin from scratch. Now I'm sitting with a complete backup from my old Mediawiki database and keep wondering if I can simply put the files in the mysql folder and expect Mediawiki to work with them.
Or must I tell MySQL/Mediawiki something to integrate them?
The original Mediawiki version was 1.31.x and now I'm on 1.38.1 91.42.82.181 (talk) 09:13, 10 June 2022 (UTC)
- Depends on how complete your backup is. If its complete enough you may be able to get mysql to read it.
- If mysql can read it, then yes. You need to make your own LocalSettings.php (either from backup or make new one, dont run installer, or if you do, only for making localsettings.php but dont use newly created db) and then run update.php to update the version of db to 1.38 Bawolff (talk) 09:41, 10 June 2022 (UTC)
- Thanks. I did run the normal Mediawiki installation, but scrapped the freshly created database (LocalSettings.php was lost to data corruption).
- It's working like a charm :) 91.42.84.132 (talk) 17:32, 15 June 2022 (UTC)
Group sync not working.
A few days ago, I downloaded the latest versions of MediaWiki and extensions (prior to this I was running 1.22 on an older server). I set it up using the instructions here: Manual:Active Directory Integration I am using eDirectory, not Active Directory, but it was fairly easy to make the necessary adjustments. Logins work fine authenticating against my LDAP server. However, group information is not syncing at all. I also noticed that if I set $LDAPAuthentication2AllowLocalLogin = true; and login as the original wikiadmin that was created when I setup the wiki, the wikiadmin account does not have admin rights. Not sure what could have caused that.
Here is the section I added to the end of LocalSettings.php
#---------------LDAP---------------
// Private Wiki. External LDAP login. Default NS requires login.
$wgEmailConfirmToEdit = false;
$wgGroupPermissions['*']['edit'] = false;
$wgGroupPermissions['*']['read'] = true;
$wgGroupPermissions['*']['createaccount'] = false;
$wgGroupPermissions['sysop']['createaccount'] = false;
$wgGroupPermissions['*']['autocreateaccount'] = true;
$wgBlockDisablesLogin = true;
// Load LDAP Config from JSON
$ldapJsonFile = "$IP/ldap.json";
$ldapConfig = false;
if (is_file($ldapJsonFile) && is_dir("$IP/extensions/LDAPProvider")) {
$testJson = @json_decode(file_get_contents($ldapJsonFile),true);
if (is_array($testJson)) {
$ldapConfig = true;
} else {
error_log("Found invalid JSON in file: $IP/ldap.json");
}
}
// Activate Extension
if ( $ldapConfig ) {
wfLoadExtension( 'PluggableAuth' );
wfLoadExtension( 'LDAPProvider' );
wfLoadExtension( 'LDAPAuthentication2' );
wfLoadExtension( 'LDAPAuthorization' );
wfLoadExtension( 'LDAPUserInfo' );
wfLoadExtension( 'LDAPGroups' );
$LDAPProviderDomainConfigs = $ldapJsonFile;
$wgPluggableAuth_ButtonLabel = "Login";
// Force LDAPGroups to sync by choosing a domain ( e.g. first JSON object in ldap.json )
$LDAPProviderDefaultDomain = "mydomain.com";
}
Here is my ldap.json (sanitized)
{
"mydomain.com": {
"connection": {
"server": "server_ip_address",
"port": "389",
"user": "cn=ldapproxyuser,o=myo",
"pass": "secret stuff here",
"enctype": "tls",
"options": {
"LDAP_OPT_DEREF": 1
},
"basedn": "o=myo",
"userbasedn": "o=myo",
"groupbasedn": "o=myo",
"searchattribute": "cn",
"usernameattribute": "cn",
"realnameattribute": "cn",
"emailattribute": "mail",
"grouprequest": "MediaWiki\\Extension\\LDAPProvider\\UserGroupsRequest\\Configurable::factory",
"groupobjectclass": "member",
"groupattribute": "groupMembership",
"presearchusernamemodifiers": [ "spacestounderscores", "lowercase" ]
},
"userinfo": [],
"authorization": [],
"groupsync": {
"mechanism": "mappedgroups",
"mapping": {
"bureaucrat": "cn=MediawikiAdmins,o=myo",
"interface-admin": "cn=MediawikiAdmins,o=myo",
"sysop": "cn=MediawikiAdmins,o=myo"
}
}
}
}
I have tried running /LDAPProvider/maintenance/ShowUserGroups but it isn't returning anything. I'm not even seeing error messages, so I am at a bit of a loss as to why the groups do not sync. I'm also not seeing anywhere in the database that would possibly hold group or permission information for users. Any suggestions for how to fix this or at least how to troubleshoot it? Thank you! Kle555 (talk) 19:00, 10 June 2022 (UTC)
How do I publish the article I created for the world to see?
I started in the User Page, created a full article, added the photo and website link but it doesn't reflect when I google search the person.
Is there a trial or waiting period, for sure I'm missing something because I just can't see to figure this out. @AlignWA is the page I'm trying to create for the world. 70.110.129.170 (talk) 04:02, 11 June 2022 (UTC)
- if this is about english wikipedia, please ask at w:WP:TEAHOUSE Bawolff (talk) 04:19, 11 June 2022 (UTC)
How do I change the blue area when I save my edits?
How do I change the blue area when I save my edits? https://i.imgur.com/tt1i743.jpg 2400:4152:6600:2900:117F:733C:6E33:F07 (talk) 00:15, 12 June 2022 (UTC)
- Manual:$wgEditSubmitButtonLabelPublish
- Is this what you are looking for? IAmChaos (talk) 02:33, 12 June 2022 (UTC)
Serving file cache directly on Apache
I'm trying to follow the instructions here to serve file cache directly. It doesn't seem to work.
My .htaccess looks like this:
# Enable the rewrite engine
RewriteEngine On
# Short URL for wiki pages
RewriteRule ^/?wiki(/.*)?$ %{DOCUMENT_ROOT}/AAAA/index.php [L]
# Redirect / to Main Page
RewriteRule ^/*$ %{DOCUMENT_ROOT}/AAAA/index.php [L]
RewriteBase /
# If a cached page exists under /w/html_cache, do an internal redirect to it:
RewriteCond %{HTTP_COOKIE} !UserID=
RewriteCond %{QUERY_STRING} !.
RewriteCond %{DOCUMENT_ROOT}/AAAA/images/cache/%1.html -s
RewriteRule ^wiki/(.+)$ /AAAA/images/cache/%1.html [B,L,NS]
I am able to locate the html cache files in the directory (AAAA/images/cache), but I am not able to open them by going to eg. domain.com/AAAA/images/cache/Main_Page.html . I'm not sure whether this is by design. I am able to open the file in an html editor, so maybe I'm just using the wrong address.
To be exact, the files look like ns0%3AMain_Page.html
I tried adding the ns0%3A to the URL too, but it still didn't work.
I would appreciate any help.
Installed software
| Product | Version |
|---|---|
| MediaWiki | 1.37.1 |
| PHP | 7.4.29 (litespeed) |
| MariaDB | 10.3.24-MariaDB-cll-lve |
| ICU | 63.1 |
| Lua | 5.1.5 |
Entry point URLs
| Entry point | URL |
|---|---|
| Article path | /wiki/$1
|
| Script path | /AAAA
|
| index.php | /AAAA/index.php
|
| api.php | /AAAA/api.php
|
| rest.php | /AAAA/rest.php
|
Makertrainer (talk) 17:08, 12 June 2022 (UTC)
- I think the html cache rules have to come before the short url rewrite rules.
- What is $wgFileCacheDirectory set to? Bawolff (talk) 21:18, 12 June 2022 (UTC)
Overwriting of images in wikimedia
I have done a face detection on some wikimedia pictures and because it took some time I saved the result in a key-value format. The key is name of the picture on mediawiki and the value are all the faces that were found. Later I realized, that there might be a problem with using the result file as some of the pictures could have been overwritten. How likely is that someone uploads a picture with the same name as another picture which already exists on wikimedia?
For example:
this is the original
https://commons.wikimedia.org/wiki/File:Ayn_Rand_(1943_Talbot_portrait).jpg
and someone overwrite it with completely different picture or a crop of the original.
I remember reading somewhere, that pictures and other files are not deleted from wikimedia, even though they are no longer used. But I just cannot find it right now.
The only case I can think of is, that picture gets deleted, because of some permission issues and then gets replaced by a different picture, but with the same name. Can you think of different cases? Kotrblu2 (talk) 07:57, 13 June 2022 (UTC)
- Its not common, but can happen - for example, if a pucture was very explicit and used for vandalism.
- See c:COM:DR.
- You can fetch an sha1 ientifier via api that is more stable. Bawolff (talk) 17:36, 13 June 2022 (UTC)
- Could you point me to the sha1 identifier via API? I was looking for it for a while as I though that would ultimately solve my problem. Kotrblu2 (talk) 08:54, 14 June 2022 (UTC)
- See API:Imageinfo —TheDJ (Not WMF) (talk • contribs) 13:27, 15 June 2022 (UTC)
Cite this page as BibTeX/BibLaTeX
Actually, you can click on "cite this page" and you'll get a list of different citation styles including two merely identical code boxes for BibTeX.
The first example assumes, that the user does not use the LaTeX-Package url, the second assumes, he does. In both cases, the "url" key is not a recognized key of the BibTeX type "@misc".
Instead of these two merely identical entries, IMHO, you should present a more up to date BibLaTeX entry, which is based on the "@Online"-Type. Compared to the BibTeX entry type "@Misc", this type knows the keywords url, urldate and some other cool stuff.
A valid entry for the page "BibLaTeX" should look like this:
@Online{enwiki:biber,
Editor = {Wikipedia, The Free Encyclopedia},
Title = {Biber},
Date = {2022-04-05},
URL = {https://en.wikipedia.org/w/index.php?title=Biber_(LaTeX)&oldid=1081204234},
Version = 1081204234,
URLdate = {2022-06-13},
LangID = {english}
}
The values for all fields (except Langid) where taken literally from the box "Bibliographic details for Biber (LaTeX)" of the afore mentioned page, in particular Wiki: Publisher --> BibLaTeX: Editor, Wiki: Page Name --> BibLaTeX: Title, Wiki: Date of last revision --> BibLaTeX Date, Permanent link --> BibLaTeX: URL, Page Version ID --> BibLaTeX: Version, BibLaTeX: Date retrieved --> URLdate.
The key "Langid" is mandatory, but helpful if you choose from different translated pages. In most cases, the value of this field is most likely to be identical with the languages of the translated pages. The correct value is the babel language name. In Germany there is a second language name, which is ngerman.
I already have suggested the inclusion of BibLaTeX a while ago. I was send some data/style sheets. I was not able to understand that style sheets. Therefore, I am politely asking someone with programming knowlegde, to update the "Cite this page" to incorporate the BibLaTeX code as well. If this person has questions about the BibLaTeX key and values, I would happily love to help out. Titanic-jb (talk) 08:01, 13 June 2022 (UTC)
login issue
hi. i have an account and i know my user name but i forgotten my email id , how can i get that ? Syed md ataullah (talk) 09:39, 13 June 2022 (UTC)
- What website is this issue about? – Ammarpad (talk) 17:46, 13 June 2022 (UTC)
Erase automatically non-used pages and documents
Hi all, is there a way to configure MediaWiki so that it erases "pages" that are marked with a specific attribute.
Say that I have pages that I want to remove added here: https://wiki.company.com/wiki/Categori:Erase
Is there a way of doing this automatically without needing to visit this page all the time to check if there are pages to erase?
Thanks in advance! Mirha513 (talk) 11:44, 13 June 2022 (UTC)
- There's no such feature. You can use deleteBatch.php script however to delete the pages in batch, but you'll still need to collect the page titles. – Ammarpad (talk) 17:45, 13 June 2022 (UTC)
- Hi @Ammarpad, thanks for the tip.
- If I rewrote the question: Is there anyway to first collect the pages in category Categori:Erase and than use the deletePatch.php script to remove those?
- Maybe there is some other type of script for this purpose or is this something that needs to be developed on my own? Mirha513 (talk) 06:50, 15 June 2022 (UTC)
- You use the API for that, which means you have to do some work. See API:Categorymembers for examples. – Ammarpad (talk) 08:56, 15 June 2022 (UTC)
degree of difficulty in using SMW
I would like to know if users who do not know about ontologies (no knowledge, as they are from other areas) can collaborate and use SMW+ 2804:14C:BD85:93E8:F1EF:E193:F9ED:F6CC (talk) 18:38, 13 June 2022 (UTC)
- Sounds possible. Jonathan3 (talk) 21:58, 16 June 2022 (UTC)
MediaWiki not creating thumbnails for JPEG images
The following discussion is closed. Please do not modify it. Subsequent comments should be made on the appropriate discussion page. No further edits should be made to this discussion.
For some reason, My MediaWiki install isn't creating thumbnails for jpegs. I've tried uploading 2 jpeg images and the File: pages show a blank placeholder image, reporting 0 x 0 as dimensions, and having an _error -1 metadata while able to show the file size. The files got uploaded correctly as they're there in images/x/xx/. Both images aren't big, they're around 1280x720.
I've tried uploading a png image, however it does work fine.
I then tried debug logging while reloading the File: pages, hoping to see some ImageMagick command failures as I'm using ImageMagick 7 and there's no mention of using "magick.exe" instead of "convert.exe" in any MediaWiki manual so far, however it turns out that I can't find any trace of thumbnails in the File: jpeg pages (tried searching for "thumbnail", "TransformationalImageHandler", etc. only found in the png page). No empty folders in thumbs either, it looks just like the whole thumbnailing part got skipped.
So I guess my question is how do I turn on/fix JPEG thumbnailing?
Installed Software:
| Product | Version |
|---|---|
| MediaWiki | 1.38.1 |
| PHP | 8.1.7 (cgi-fcgi) |
| MariaDB | 10.6.8-MariaDB |
| ICU | 70.1 |
| Lua | 5.1.5 |
| Pygments | 2.11.2 |
Some screenshots from the File: pages
PS. tried uploading a small 10 x 10 jpeg, thumbnail still fails so it's definitely not some filesize/dimension limiter NutchapolSal (talk) 21:53, 14 June 2022 (UTC)
- There is a bug in mediawiki 1.38 where jpeg are broken if you have php's exif extension disabled (should be fixed next release of mediawiki). Try enabling it in your php.ini file and see if that helps.
- Alternatively, try setting $wgShowEXIF=false; Bawolff (talk) 22:49, 14 June 2022 (UTC)
- Setting
$wgShowEXIF = false;only removed the _error -1 metadata, and enabling exif didn't do anything (still shows the same blank placeholder) - I'm running on Windows Server 2012 R2 (with Media Foundation enabled and updates installed), could that have something to do with the issue? NutchapolSal (talk) 09:49, 15 June 2022 (UTC)
- After enabling exif, were newly uploaded still broken, or was it jusf preexisting files? Bawolff (talk) 21:02, 15 June 2022 (UTC)
- Oh, only just preexisting files.
- I think it might not just be thumbnails, as they doesn't embed when doing
[[File:badfile.jpg]], but shows a link to the File: page NutchapolSal (talk) 22:19, 15 June 2022 (UTC) - Tried running rebuildImages.php, didn't fixed it. Tried just uploading a new version incase getting the file through "new file processing" again might help, rejected for being the exact same file. I guess the only way to "solve" this is to delete + clear deleted files then uploading as a new file. (if that still doesn't work, Bruh) NutchapolSal (talk) 03:31, 16 June 2022 (UTC)
- Looked in the database, I'm guessing the broken fields affecting image things are
img_width,img_height,img_bits, in image table. Filling in these ones manually fixes the problem completely (i dont think that's a good idea).img_metadataisn't technically broken anyways, only filled with placeholder. Pages with those images embedded but still not showing up can probably be fixed with a page purge. NutchapolSal (talk) 04:31, 16 June 2022 (UTC) - Try refreshImageMetadata.php --force Bawolff (talk) 04:32, 16 June 2022 (UTC)
- Ok that script actually fixed everything
- TYSM NutchapolSal (talk) 04:38, 16 June 2022 (UTC)
Report with Page Titles
I have a wiki with a large set of pages with URLs like Rule001 and Rule002 etc. Each page then has on it a header such as "Listen Carefully" and "No Loud Noises".
On "report" pages such as a Category page, I see Rule001 and Rule002. My question how can I make "report" pages that show the headers "Listen Carefully" and "No Loud Noises" etc.
Each page starts with code like this:
= Listen Carefully =
So they are all well organized and consistent. We have Semantic MediaWiki installed as well.
Any suggestions? HSRobinson (talk) 13:17, 15 June 2022 (UTC)
- Could you rename the pages to something like "Rule001: Listen Carefully"? You could also have a redirect from "Rule001" to "Rule001: Listen Carefully". Jonathan3 (talk) 10:33, 17 June 2022 (UTC)
Update.php failing
Running a fresh install of 1.35.6 on a new VM and importing mysql data from a previous wiki VM on 1.27. Mediawiki installation went fine and then my import of my old mysql database went fine as well. I ran update.php and it seemed fine... but I don't think it was. The wiki still displays fine and the main page still loads. The problem is, none of my pages showed up. It's as if I didn't load the database at all. I did catch and error while update.php was running that was :
php: Error 1091: Can't DROP INDEX `log_user_text_type_time`; check that it exists (localhost)
Function: Wikimedia\Rdbms\Database::sourceFile( /var/www/html/mediawiki/maintenance/archives/patch-drop-logging-user-fields.sql )
Query: ALTER TABLE `logging`
DROP INDEX user_time,
DROP INDEX log_user_type_time,
DROP INDEX log_user_text_type_time,
DROP INDEX log_user_text_time,
DROP COLUMN log_user,
DROP COLUMN log_user_text,
ALTER COLUMN log_actor DROP DEFAULT
#0 /var/www/html/mediawiki/includes/libs/rdbms/database/Database.php(1684): Wikimedia\Rdbms\Database->getQueryException()
#1 /var/www/html/mediawiki/includes/libs/rdbms/database/Database.php(1659): Wikimedia\Rdbms\Database->getQueryExceptionAndLog()
#2 /var/www/html/mediawiki/includes/libs/rdbms/database/Database.php(1228): Wikimedia\Rdbms\Database->reportQueryError()
#3 /var/www/html/mediawiki/includes/libs/rdbms/database/Database.php(5074): Wikimedia\Rdbms\Database->query()
#4 /var/www/html/mediawiki/includes/libs/rdbms/database/Database.php(5009): Wikimedia\Rdbms\Database->sourceStream()
#5 /var/www/html/mediawiki/includes/libs/rdbms/database/DBConnRef.php(68): Wikimedia\Rdbms\Database->sourceFile()
#6 /var/www/html/mediawiki/includes/libs/rdbms/database/MaintainableDBConnRef.php(35): Wikimedia\Rdbms\DBConnRef->__call()
#7 /var/www/html/mediawiki/includes/installer/DatabaseUpdater.php(771): Wikimedia\Rdbms\MaintainableDBConnRef->sourceFile()
#8 /var/www/html/mediawiki/includes/installer/DatabaseUpdater.php(930): DatabaseUpdater->applyPatch()
#9 /var/www/html/mediawiki/includes/installer/DatabaseUpdater.php(554): DatabaseUpdater->dropField()
#10 /var/www/html/mediawiki/includes/installer/DatabaseUpdater.php(517): DatabaseUpdater->runUpdates()
#11 /var/www/html/mediawiki/maintenance/update.php(181): DatabaseUpdater->doUpdates()
#12 /var/www/html/mediawiki/maintenance/doMaintenance.php(107): UpdateMediaWiki->execute()
#13 /var/www/html/mediawiki/maintenance/update.php(253): require_once('/var/www/html/m...')
#14 {main}
Is this preventing my pages from loading? Mpb8877 (talk) 15:32, 15 June 2022 (UTC)
- Probably not by itself, but maybe preventing the rest of update.php from running does.
- Its likely var/www/html/mediawiki/maintenance/archives/patch-drop-logging-user-fields.sql got partially applied. You can try applying the parts of that file individually manually, and then rerunning update.php Bawolff (talk) 21:01, 15 June 2022 (UTC)
- I tried running through the sql file running each line manually using mysql and it couldn't drop the indexes because they didn't exist?
- So essentially, even running it manually gives me the same error of " Can't DROP INDEX `log_user_text_type_time check that it exists"
- If I run DESCRIBE on the logging table it indeed does not have that element so I am not sure why it even runs these mysql commands. Mpb8877 (talk) 17:42, 16 June 2022 (UTC)
- If the index doesn't exist you don't need to drop it (drop means "delete". If it doesn't exist that probably just means the line has already been run) Bawolff (talk) 10:29, 17 June 2022 (UTC)
- Well I tried deleting the lines in the file that would cause an error since the columns or indexes do not exist and the update ran and completed with no errors. But once again, no pages. The wiki has none of my pages from the sql file.
- Just to clarify I have a sqldump file that I run
- mysql -p mediawiki < mediawiki_data.sql
- with mediawiki being the database and meidawiki_data.sql being the dump file.
- This runs fine but only takes about 8 seconds. I am not sure if that is short or long but our wiki has 625 pages so I thought it would be decently long.
- Then the update, after deleting the error lines, takes 1.8 seconds and it keeps talking about how 0 columns and rows were affected which can't be right. How vital are those lines to the update? Is there a reason it wouldn't update? Mpb8877 (talk) 15:55, 17 June 2022 (UTC)
- > This runs fine but only takes about 8 seconds. I am not sure if that is short or long but our wiki has 625 pages so I thought it would be decently long.
- That's a reasonable amount of time for that many pages.
- > keeps talking about how 0 columns and rows were affected which can't be right.
- depending on the situatiom, that might be expected. Bawolff (talk) 17:12, 4 July 2022 (UTC)
- So why is it crashing on that line then? Should I just delete that line in the file if it is always going to crash? Is there a MySQL setting to ignore lines it can't run? Mpb8877 (talk) 14:24, 17 June 2022 (UTC)
- How would I got about applying those parts manually as you said? I am very new to this so feel free to explain it like I am a 2-year-old. Mpb8877 (talk) 14:32, 16 June 2022 (UTC)
Deprecated : Use of ParserOutput::addModules with non-array argument was deprecated in MediaWiki 1.38.
I am using MW 1.38.1 and all my extensions are on 1.38v, but i am still seeing the below error:
/var/www/html/includes/debug/MWDebug.phpon line377
Deprecated: Use of ParserOutput::addModules with non-array argument was deprecated in MediaWiki 1.38. [Called from {closure} in /var/www/html/LocalSettings.php at line 188] in/var/www/html/includes/debug/MWDebug.phpon line377
could you please help me with error?
Thanks Saibgs (talk) 16:34, 15 June 2022 (UTC)
- ParserOutput::addModules with non-array argument was completely removed in 1.38. Remove it for your wiki to work. 41.200.182.153 (talk) 17:18, 15 June 2022 (UTC)
- remove from the code , can you point me there? Saibgs (talk) 18:22, 15 June 2022 (UTC)
- See the error message that you posted, it includes file names and line numbers Malyacko (talk) 18:58, 15 June 2022 (UTC)
- thank you , it is now resolved. i am checking at different file. 192.171.187.136 (talk) 19:48, 15 June 2022 (UTC)
- Just a question on this :
- does the deprecated code in MW 1.38 is also deprecated across all the other extensions used for MW?
- today morning i have updated my docker image tag : stable and i had this Geocrumbs extension in my MW and got this error again at : Deprecated : Use of ParserOutput::getProperty was deprecated in MediaWiki 1.38. Saibgs (talk) 09:30, 17 June 2022 (UTC)
- updated the relative extensions resolved the issue. Saibgs (talk) 08:37, 21 June 2022 (UTC)
Problem with RebuildFileCache.php
Please look:
Manual talk:RebuildFileCache.php
Sections: Problem with --end & Same problem 185.114.141.247 (talk) 18:03, 15 June 2022 (UTC)
- What are you trying to do and why is this a problem Bawolff (talk) 00:09, 16 June 2022 (UTC)
- Sounds like the
--endparameter is being ignored. Jonathan3 (talk) 10:28, 17 June 2022 (UTC) - Yes, i would say "half ignored". The script stops, but too late (e.g. 100 IDs after the "--end"-ID). 195.192.207.37 (talk) 16:23, 17 June 2022 (UTC)
- I've not looked at it in any detail so could well be wrong, but it looks like the script has a batch size of 100 hard coded into it (see https://phabricator.wikimedia.org/source/mediawiki/browse/master/maintenance/rebuildFileCache.php$46) which might explain what you have observed. Jonathan3 (talk) 14:38, 18 June 2022 (UTC)
- Thanks! I've reduced the batch size to 10 and now, the script stops with endID + "only" ~10 more IDs. This is better, but the core problem still exists. Should i report a bug? 195.192.205.33 (talk) 22:23, 18 June 2022 (UTC)
- I don't know whether it's a bug. But I think you can put feature requests on Phabricator too so, either way, yes you could.
- You could edit Manual talk:RebuildFileCache.php to explain how the script works.
- Pleased you got it to work.
- What happens when you change the batch size to 1? Does it slow things down a lot? Jonathan3 (talk) 20:45, 19 June 2022 (UTC)
- Back again.
- Change to 1 does not slow down anything. I think this only affects big Wikis (>100.000). 195.192.205.169 (talk) 21:24, 3 July 2022 (UTC)
Local account - automatically created by user login
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,
When checking my global account information I noticed a suspicious entry under list of local accounts. Apparently a local account for be-tarask was created. I am pretty sure that I have never logged in under this language. Should I be concerned that my account was hacked? How can I close such a local account?
Thanks, Thomas Thomke1967 (talk) 05:41, 16 June 2022 (UTC)
- you shouldn't worry, it is not a sign you have been hacked. The account will be autocreated on viewing that wiki even if you never log in. There is nothing you can do to close the account. Bawolff (talk) 09:09, 16 June 2022 (UTC)
- Thank you, much appreciated @Bawolff Thomke1967 (talk) 00:40, 17 June 2022 (UTC)
Error contacting the Parsoid/RESTBase server (HTTP 403)
I have upgraded from 1.38 to 1.38.1 and still getting the 403 errors when i edit the main page or add new page in to MW.
Any help? 192.171.187.136 (talk) 08:02, 16 June 2022 (UTC)
- Any help on this error ? Saibgs (talk) 12:30, 16 June 2022 (UTC)
- I tried adding few configurations as per forum : https://phabricator.wikimedia.org/T265043
- But it doesn't seem to be working. Saibgs (talk) 10:43, 21 June 2022 (UTC)
Unable to install MediaWiki 1.38.1
Hello, having an absolute nightmare trying to get a fresh installation of mediawiki. I was able to install as low as 1.27 but then when I try to access /mw-config/index.php to go through the installation process I'm greeted with the error of a missing fileinfo extension. Trying to then find this is tricky because it seems this extension is archived on the mediawiki site. I managed to find it on github but when I upload it nothing happens. It says that I need to add a line to require the file to my localsettings.php but I do not have that file anywhere since I haven't gone through the installation process. Anybody have any ideas? RobHowdle (talk) 08:42, 16 June 2022 (UTC)
- Fileinfo is a php extension not a mediawiki extension (the old mediawiki extension of the same name is unrelated). It is normally installed by default. https://www.php.net/manual/en/fileinfo.setup.php
- You may have to modify your php.ini file to enable it. You could also try getting your copy of php from a different place. Bawolff (talk) 09:08, 16 June 2022 (UTC)
- Thank you, that makes sense. All my google searches were pointing to a mediawiki extension. I've contacted my host and asked them to install it. RobHowdle (talk) 09:14, 16 June 2022 (UTC)
SSL Certificate Let's Encrypt AWS
Hello,
I have a mediawiki site with the lamp stack.
I'm having a problem trying to install SSL certificate through Let's Encrypt. My wiki is crashing and I can't load it.
I tried to install the SSL certificate of Let's Encrypt and now my wiki doesn't want load.
It produced this output when I type the URL on google: "This site can’t be reached."
My web server is (include version): Apache version 2.4.53
The operating system my web server runs on is Amazon Linux 2, version 5.10
My hosting provider is: AWS Pandassauro (talk) 12:24, 16 June 2022 (UTC)
- Not a mediawiki problem. Try asking at a more generic forum. Bawolff (talk) 19:52, 16 June 2022 (UTC)
- Let's Encrypt have a forum. Jonathan3 (talk) 21:54, 16 June 2022 (UTC)
cannot start my MW after updating my flaggedrevs extensions from 1.37 to 1.38
due to the Deprecated : Use of ParserOutput: get property from geocrumbs.
i have updated my extensions from 1.37 to 1.38 then I get below error. can you help on this ?
Wikimedia\Rdbms\DBQueryError from line 1606 of /var/www/html/includes/libs/rdbms/database/Datab │
│ ase.php: Error 1062: Duplicate entry '2763-0' for key 'mw_flaggedtemplates.PRIMARY' (mysql) │
│ Function: Wikimedia\Rdbms\Database::sourceFile( /var/www/html/extensions/FlaggedRevs/backend/sc │
│ hema/mysql/patch-flaggedtemplates-fr_title.sql ) │
│ Query: ALTER TABLE `mw_flaggedtemplates` │
│ DROP PRIMARY KEY, │
│ ADD PRIMARY KEY (ft_rev_id, ft_tmp_rev_id), │
│ DROP COLUMN ft_title, │
│ DROP COLUMN ft_namespace Saibgs (talk) 12:00, 17 June 2022 (UTC)
- this is the records for the key :
- select * from mw_flaggedtemplates where ft_rev_id=2763-0;
- +-----------+--------------+----------------+---------------+
- | ft_rev_id | ft_namespace | ft_title | ft_tmp_rev_id |
- +-----------+--------------+----------------+---------------+
- | 2763 | 10 | Languages | 2764 |
- | 2763 | 10 | Languages/Lang | 0 |
- | 2763 | 10 | Nmbox | 0 |
- | 2763 | 10 | Purge | 0 |
- +-----------+--------------+----------------+---------------+ Saibgs (talk) 12:24, 17 June 2022 (UTC)
- Any help will be appreciated, this is holding the production migration. Saibgs (talk) 13:36, 17 June 2022 (UTC)
- The problem are the entries that have ft_tmp_rev_id of 0.
- I suppose you could delete those entries. Definitely make backups if you do. Ymmv. Bawolff (talk) 03:57, 19 June 2022 (UTC)
- Yes, I have deleted the duplicates and the query says we need to drop the columns so data is not really needed. hence dropped the columns and dups deleted. it worked. Saibgs (talk) 08:36, 21 June 2022 (UTC)
Formatting text
Is there a way to add a formatting toolbar such as Bold and Font type, bullets etc to the wiki. Couldn't find anything under preferences
Thanks
Scott ScottG55 (talk) 15:48, 17 June 2022 (UTC)
- Install the WikiEditor extension. 197.207.152.144 (talk) 18:58, 17 June 2022 (UTC)
- you can use the visualeditor 189.217.111.253 (talk) 23:30, 17 June 2022 (UTC)
Ran n upgrade to 1.35 and getting a php error
The following discussion is closed. Please do not modify it. Subsequent comments should be made on the appropriate discussion page. No further edits should be made to this discussion.
Ran an upgrade from 1.27 to 1.35 and I get the error
"MediaWiki 1.35 requires PHP 7.3.19 or higher (and not 7.4.0 - 7.4.2); you are using PHP 7.0.33-0ubuntu0.16.04.16."
I am not running php 7.0.33 anymore. When I run "php -v" I get:
PHP 7.3.33-2+ubuntu18.04.1+deb.sury.org+1 (cli) (built: Jun 10 2022 13:47:09) ( NTS )
Copyright (c) 1997-2018 The PHP Group
Zend Engine v3.3.33, Copyright (c) 1998-2018 Zend Technologies
with Zend OPcache v7.3.33-2+ubuntu18.04.1+deb.sury.org+1, Copyright (c) 1999-2018, by Zend Technologies
Which is in the right range of php versions. What's going on here? Don't believe I have any other php versions running Mpb8877 (talk) 17:01, 17 June 2022 (UTC)
- Finally got it to verify my php version but just purging all versions and reinstalling just the 7.3.33 version but then it said it needed mbstring and xml. I installed those and suddenly I get a http error 500? Any ideas? Mpb8877 (talk) 17:30, 17 June 2022 (UTC)
- Seems to be an LDAP extension giving me errors:
- Uncaught Error: Class 'AuthPlugin' not found in /var/www/html/extensions/LdapAuthentication/LdapAuthenticationPlugin.php:19 Stack trace: #0 /var/www/html/includes/AutoLoader.php(109): require() #1 [internal function]: AutoLoader::autoload('LdapAuthenticat...') #2 /var/www/html/LocalSettings.php(146): spl_autoload_call('LdapAuthenticat...') #3 /var/www/html/includes/Setup.php(143): require_once('/var/www/html/L...') #4 /var/www/html/includes/WebStart.php(89): require_once('/var/www/html/i...') #5 /var/www/html/index.php(44): require('/var/www/html/i...') #6 {main} thrown in /var/www/html/extensions/LdapAuthentication/LdapAuthenticationPlugin.php on line 19
- Is it outdated? Mpb8877 (talk) 17:34, 17 June 2022 (UTC)
Upgrade to Version 1.35 Strange Error
- After upgrading from 1.27 to 1.3.6 I get this error after everything is setup.
- [9532b957ffff3f6addbbb536] /index.php/Main_Page InvalidArgumentException from line 510 of /var/www/html/includes/libs/rdbms/database/Database.php: Wikimedia\Rdbms\Database::getClass no viable database extension found for type 'mysql'
- Backtrace:
- #0 /var/www/html/includes/libs/rdbms/database/Database.php(459): Wikimedia\Rdbms\Database::getClass(string, NULL)
- #1 /var/www/html/includes/libs/rdbms/loadbalancer/LoadBalancer.php(1245): Wikimedia\Rdbms\Database::attributesFromType(string, NULL)
- #2 /var/www/html/includes/objectcache/SqlBagOStuff.php(935): Wikimedia\Rdbms\LoadBalancer->getServerAttributes(integer)
- #3 /var/www/html/includes/objectcache/SqlBagOStuff.php(196): SqlBagOStuff->getConnectionViaLoadBalancer(string)
- #4 /var/www/html/includes/objectcache/SqlBagOStuff.php(300): SqlBagOStuff->getConnection(string)
- #5 /var/www/html/includes/objectcache/SqlBagOStuff.php(264): SqlBagOStuff->fetchBlobMulti(array)
- #6 /var/www/html/includes/libs/objectcache/MediumSpecificBagOStuff.php(115): SqlBagOStuff->doGet(string, integer)
- #7 /var/www/html/includes/libs/objectcache/CachedBagOStuff.php(64): MediumSpecificBagOStuff->get(string, integer)
- #8 /var/www/html/includes/session/SessionManager.php(940): CachedBagOStuff->get(string)
- #9 /var/www/html/includes/session/SessionInfo.php(165): MediaWiki\Session\SessionManager->generateSessionId()
- #10 /var/www/html/includes/session/SessionProvider.php(214): MediaWiki\Session\SessionInfo->__construct(integer, array)
- #11 /var/www/html/includes/session/SessionManager.php(294): MediaWiki\Session\SessionProvider->newSessionInfo(NULL)
- #12 /var/www/html/includes/session/SessionManager.php(268): MediaWiki\Session\SessionManager->getEmptySessionInternal(WebRequest)
- #13 /var/www/html/includes/session/SessionManager.php(218): MediaWiki\Session\SessionManager->getEmptySession(WebRequest)
- #14 /var/www/html/includes/WebRequest.php(826): MediaWiki\Session\SessionManager->getSessionForRequest(WebRequest)
- #15 /var/www/html/includes/session/SessionManager.php(137): WebRequest->getSession()
- #16 /var/www/html/includes/Setup.php(725): MediaWiki\Session\SessionManager::getGlobalSession()
- #17 /var/www/html/includes/WebStart.php(89): require_once(string)
- #18 /var/www/html/index.php(44): require(string)
- #19 {main}
- Honestly not sure what to make of it. Any pointers?
- Get the same errors and a crash when running update.php Mpb8877 (talk) 17:52, 17 June 2022 (UTC)
- This sounds like a mysql vs mysqli issue Bawolff (talk) 23:56, 17 June 2022 (UTC)
- Seems I just didn't have a php mysql extension installed because of a previous purge. Installed the package, ran update.php and got a blank white screen. I have error display on. No errors. Just a blank white screen. Any ideas? Mpb8877 (talk) 18:04, 17 June 2022 (UTC)
- After running an inspect through chrome looks like I had a problem with the skin. I took it off our erudite skin and onto the default vector skin and now I have an error of
- Uncaught Exception: Unable to open file /var/www/html/skins/vector/skin.json: filemtime(): stat failed for /var/www/html/skins/vector/skin.json in /var/www/html/includes/registration/ExtensionRegistry.php:185 Stack trace: #0 /var/www/html/includes/GlobalFunctions.php(88): ExtensionRegistry->queue('/var/www/html/s...') #1 /var/www/html/LocalSettings.php(123): wfLoadSkin('vector') #2 /var/www/html/includes/Setup.php(143): require_once('/var/www/html/L...') #3 /var/www/html/includes/WebStart.php(89): require_once('/var/www/html/i...') #4 /var/www/html/index.php(44): require('/var/www/html/i...') #5 {main} thrown in /var/www/html/includes/registration/ExtensionRegistry.php on line 185
- Where to go from here? Mpb8877 (talk) 18:12, 17 June 2022 (UTC)
- The error means vector is not installed or you have a really really old version. Ensure your copy of vector matches the version of mediawiki you have. If you downloaded from the official zip/tar file, it should automatically include the right version. Bawolff (talk) 23:58, 17 June 2022 (UTC)
- Embarrassingly, it was because the folder was called "Vector" (capitalized) and I typed in the skin "vector" (not capitalized). Finally my pages loaded. Switched up skins actually to erudite and got that working. My only issue now actually is that my search bar used to be at the top of the page above the page headers and now with the update it is at the bottom of the page. The person who set up our wiki left absolutely no documentation on their setup. Is there a default setting for moving the search bar? Mpb8877 (talk) 15:46, 20 June 2022 (UTC)
- I dont think there is any setting for moving the search bar. Probably people would use on wiki css for that (MediaWiki:common.css or Mediawiki:vector.css) Bawolff (talk) 20:56, 23 June 2022 (UTC)
No skin or extension in MediaWiki 1.39
In the MediaWiki 1.39 skins and extensions directories, I could not find any skin or extension. 197.207.152.144 (talk) 08:32, 18 June 2022 (UTC)
- Should I manually download them? 197.207.152.144 (talk) 08:42, 18 June 2022 (UTC)
- MediaWiki 1.39 has not been released: See Download. If you download something from somewhere then provide clear and specific info what you did where in which steps, including URLs. Malyacko (talk) 11:02, 18 June 2022 (UTC)
- If you have a git clone of 1.39alpha it is normal for those directories to be empty in the git repo. Bawolff (talk) 12:26, 18 June 2022 (UTC)
- I will manually download all extensions and skins bundled with 1.38. 41.200.174.170 (talk) 14:21, 18 June 2022 (UTC)
Cannot Customize MediWiki install
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 installed MediaWiki at https://dstall.com/MOD/, uploaded custom logo, found path to image and edited LocalSettings.php file per MediaWiki Help -
$wgScriptPath = "/MOD";
$wgLogo = $wgScriptPath . '/images/7/76/MOD.png';
Custom logo does not load, even after emptying browser cache and refreshing.
I want my install to match Wikipedia, so I created MediaWiki:Common.css and MediaWiki:Common.js pages, emptied browser cache and refreshed, but my wiki still has smaller text of MediaWiki install, not larger text of Wikipedia.
I also want to create columns of text blocks with color backgrounds like on the Wikipedia Main Page, as well as color heading blocks and 2 col for References, but have no idea how to even begin to accomplish that! DStallTX (talk) 14:04, 18 June 2022 (UTC)
- You're on 1.38.1. Maybe this from Manual:$wgLogo helps:
- Caution:Mediawiki installations after MediaWiki 1.35.0 should be using wgLogos as $wgLogo is no longer supported. Jonathan3 (talk) 14:44, 18 June 2022 (UTC)
- Per manual link you cited, I'm using just as it says -
- $wgLogo = $wgScriptPath . '/images/7/76/MOD.png';
- When I change $wgLogo in that line to wgLogos, it breaks my install and no page displays. DStallTX (talk) 20:49, 18 June 2022 (UTC)
- Syntax error. $wgLogos i an array, look at the manual. 195.192.205.33 (talk) 22:05, 18 June 2022 (UTC)
- Changed $wgLogo to $wgLogos.
- Logo still does not load. DStallTX (talk) 22:57, 18 June 2022 (UTC)
- See previous comment. Still syntax error if you did not make its value an array. Malyacko (talk) 01:04, 19 June 2022 (UTC)
- Please tell me exactly what to copy into LocalSettings.php file
- I'm not a programmer. I don't know what syntax error is or to what you're referring.
- Please type it out exactly as I'm supposed to copy to LocalSettings.php file DStallTX (talk) 13:14, 19 June 2022 (UTC)
- See the "Example" section on Manual:$wgLogos linked in the first reply here Malyacko (talk) 15:32, 19 June 2022 (UTC)
- I've already seen it. If I understood what you want me to see there and do, then I'd do it.
- I need to know specifically what to enter in LocalSettings.php file DStallTX (talk) 19:21, 19 June 2022 (UTC)
- Try:
- Jonathan3 (talk) 20:43, 19 June 2022 (UTC)
$wgLogos = [ '1x' => "$wgScriptPath/images/7/76/MOD.png", ];
- Perfect! Muchas gracias Jonathan3. You're a gentleman and a scholar! DStallTX (talk) 16:08, 20 June 2022 (UTC)
Unable to post anything on local personal wiki
this is a fresh wiki (I am new) and is only for me to use on localhost:1000, tho whenever I try to post anything, it takes a while then it just says "The server did not respond within the expected time."
[Sat Jun 18 13:29:36 2022] PHP Fatal error: Maximum execution time of 30 seconds exceeded in D:\tools\mediawiki-1.38.1\includes\libs\http\MultiHttpClient.php on line 280
[Sat Jun 18 13:29:36 2022] [::1]:55306 [200]: POST /api.php - Maximum execution time of 30 seconds exceeded in D:\tools\mediawiki-1.38.1\includes\libs\http\MultiHttpClient.php on line 280
| Product | Version |
|---|---|
| MediaWiki | 1.38.1 |
| PHP | 7.4.12 (cli-server) |
| MariaDB | 10.8.3-MariaDB |
| ICU | 66.1 |
thanks in advance! Psych2Float (talk) 16:07, 18 June 2022 (UTC)
- Does it also fail if not using visual editor?
- To speed things up, one thing you could try, is make sure apcu is enabled in php.ini (if using php -S you may also need to set apc.enable_cli) and in mediawiki LocalSettings.php make sure $wgMainCacheType = CACHE_ACCEL; Bawolff (talk) 00:09, 19 June 2022 (UTC)
Change the logo in Vector 2022
Is there such method to replace the plain text <nowiki>MediaWiki<nowiki> with my own logo in Vector 2022? 41.200.174.170 (talk) 17:39, 18 June 2022 (UTC)
Trying to update my picture on my personal page
Hello
Hope this finds you well.
Filmmaker Tim Sullivan here-
https://en.wikipedia.org/wiki/Tim_Sullivan_(director)
trying to update the photo on my page
Can you help me?
NRETim (talk) 19:52, 18 June 2022 (UTC)
- This is not the right place to ask. Try asking at w:WP:TEAHOUSE Bawolff (talk) 00:03, 19 June 2022 (UTC)
Upload Parse Error?
I'm getting real fustrated with this website I'm using as a host, considering hopping to another service because the upload/edit errors feel nonstop.
Anyway, any time I try uploading a file, sometimes it works, sometimes it doesnt. This is ONE of the errors I get when trying to upload.
[Yq5HJgV6eBMjQ5mwLLAC_AABDxY] /index.php?title=Special:Upload Error: Cannot access parser properties before loading data
Backtrace:
from /home/vendor/wikimedia/xmp-reader/src/Reader.php(580)
#0 /home/vendor/wikimedia/xmp-reader/src/Reader.php(580): XMLReader->setParserProperty(integer, boolean)
#1 /home/vendor/wikimedia/xmp-reader/src/Reader.php(361): Wikimedia\XMPReader\Reader->checkParseSafety(string)
#2 /home/includes/media/BitmapMetadataHandler.php(182): Wikimedia\XMPReader\Reader->parse(string)
#3 /home/includes/media/JpegHandler.php(105): BitmapMetadataHandler::Jpeg(string)
#4 /home/includes/media/MediaHandler.php(221): JpegHandler->getSizeAndMetadata(TrivialMediaHandlerState, string)
#5 /home/includes/utils/MWFileProps.php(88): MediaHandler->getSizeAndMetadataWithFallback(FSFile, string)
#6 /home/includes/upload/UploadBase.php(552): MWFileProps->getPropsFromPath(string, string)
#7 /home/includes/upload/UploadBase.php(485): UploadBase->verifyPartialFile()
#8 /home/includes/upload/UploadBase.php(391): UploadBase->verifyFile()
#9 /home/includes/upload/UploadFromFile.php(95): UploadBase->verifyUpload()
#10 /home/includes/specials/SpecialUpload.php(550): UploadFromFile->verifyUpload()
#11 /home/includes/specials/SpecialUpload.php(244): SpecialUpload->processUpload()
#12 /home/includes/specialpage/SpecialPage.php(647): SpecialUpload->execute(NULL)
#13 /home/includes/specialpage/SpecialPageFactory.php(1366): SpecialPage->run(NULL)
#14 /home/includes/MediaWiki.php(314): MediaWiki\SpecialPage\SpecialPageFactory->executePath(string, RequestContext)
#15 /home/includes/MediaWiki.php(930): MediaWiki->performRequest()
#16 /home/includes/MediaWiki.php(564): MediaWiki->main()
#17 /home/index.php(53): MediaWiki->run()
#18 /home/index.php(46): wfIndexMain()
#19 {main} 174.86.57.96 (talk) 21:47, 18 June 2022 (UTC)
retrieve user accounts...
hello,
an associtation asked me to retrieve the accounts and pwd of their wiki.
I just have access to phpmyadmin and sftp
I know for others cms how to change or create an admin account, but i do not find in mediawiki
Would someone please help me ?
Thanks Serge billon (talk) 14:59, 19 June 2022 (UTC)
- See https://www.mediawiki.org/wiki/Manual:Resetting_passwords#Direct_database_modification Bawolff (talk) 01:43, 20 June 2022 (UTC)
- thanks a lot ! Serge billon (talk) 06:37, 20 June 2022 (UTC)
Parsoid Issue in Docker on Localhost
I find myself unable to activate the visual editor using the current MediaWiki release and a simple two-container docker setup (mediaiki + mariadb containers) on localhost. Every time I try to load the Visual Editor, I get a Parsoid error along the lines of
Error contacting the Parsoid/RESTBase server: (curl error: 7) Couldn't connect to server
I'm generating the mediawiki instance with install.php, using values that are passed to the script via docker environment variables. The database server is identified using docker-compose network aliases, in this case "database", and I'm wondering if that alias only works when run serverside, and fails when parsoid tries to make client-side requests (this is a completely random guess, I don't actually even know what parsoid is).
Thanks! Titaniumbones (talk) 17:12, 19 June 2022 (UTC)
- Its probably not your db. Parsoid can be a microservice, but in this case its probably mediawiki failing to connect to itself. Bawolff (talk) 01:41, 20 June 2022 (UTC)
Image permissions
Hello. I have a wiki I'm starting up. It has a few users. The primary user uploaded a bunch of photos. I'd like to give other users permission to use these photos for wiki articles. When the other users go to add photos to an article, they don't see any of the uploaded images available for selection. Is there a setting to allow this? Thanks. Rlg2022 (talk) 19:38, 19 June 2022 (UTC)
help me upgrade mediawiki from 1.19 to the latest version
help me upgrade mediawiki from 1.19 to the latest version 79.139.203.40 (talk) 22:06, 19 June 2022 (UTC)
- It's all here: Manual:Upgrading.
- NB: "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) 23:07, 19 June 2022 (UTC)
Settings avilable to change the header in mail 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.
Hi,
I'm facing the problem while sending the mail by using the PHP mail function in MediaWiki.
I'm getting the Error: Unknown error in PHP's mail() function. So, I go through the code, find the mail PHP mail function in the hole sourceCode and find the function send().
If I manually changed the From address of the mail function by changing the value of $header by "From: example@domain.com" it works properly.
I just wanted to know, if there is any setting available in MediaWiki to change the value of the $header variable or change the From email address in the PHP mail function. 115.187.32.100 (talk) 07:06, 20 June 2022 (UTC)
Internal error??
The following discussion is closed. Please do not modify it. Subsequent comments should be made on the appropriate discussion page. No further edits should be made to this discussion.
Hi all. I now got this internal error today:
[Yp90y1vSOvWxxKvcGHgkeQAAABI] /index.php?title=Main_Page MWException from line 1212 of /nfs/c10/h05/mnt/229444/domains/fibrowiki.com/html/includes/WebRequest.php: WebRequest::getRawIP: Could not determine the remote IP address due to multiple values. Backtrace:
0 /nfs/c10/h05/mnt/229444/domains/fibrowiki.com/html/includes/WebRequest.php(1239): WebRequest->getRawIP()
1 /nfs/c10/h05/mnt/229444/domains/fibrowiki.com/html/includes/Setup.php(740): WebRequest->getIP()
2 /nfs/c10/h05/mnt/229444/domains/fibrowiki.com/html/includes/WebStart.php(88): require_once(string)
3 /nfs/c10/h05/mnt/229444/domains/fibrowiki.com/html/index.php(39): require(string)
4 {main}
Hope someone can help explain this to me.
TIA Thepainking (talk) 14:09, 20 June 2022 (UTC)
- Please include your webserver, php version and which php sapi (e.g. is it fastcgi?) Bawolff (talk) 17:29, 20 June 2022 (UTC)
- sorry for the delayed response. I appreciate your assistance in this matter as i'm not developer-savy Thepainking (talk) 16:32, 27 August 2022 (UTC)
- Honestly, i'm not sure what you mean by web server. if you instruct me how to find it then i can tell you.
- THe php version is 7.3.11 FastCGI (stable) Thepainking (talk) 16:30, 27 August 2022 (UTC)
- Please see "Post a new question" in the sidebar. "web server" is something like Apache or nginx. Malyacko (talk) 16:48, 27 August 2022 (UTC)
- Can you also tell us the result of a php script containing
- var_dump($_SERVER['REMOTE_ADDR'] ); Bawolff (talk) 17:40, 27 August 2022 (UTC)
- Upgrade to PHP 7.3.19+ or PHP 7.4.3+. Your version of PHP is not compatible due to an upstream bug. 197.202.41.217 (talk) 18:10, 1 September 2022 (UTC)
remote IP address issue. please explain!
Hey everyone. Hope all are well. having an IP issue with my wikis. I looked into WEBREQUEST.PHP and not sure how to resolve this. PLease help!
if ( is_array( $_SERVER['REMOTE_ADDR'] ) || strpos( $_SERVER['REMOTE_ADDR'], ',' ) !== false ) { throw new MWException( __METHOD__ . " : Could not determine the remote IP address due to multiple values." );
TIA Thepainking (talk) 16:21, 20 June 2022 (UTC)
Issues with LDAPAuthentication2 and PluggableAuth
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 recently upgraded my wiki from an older version that ran the old LDAPAuthentication. Now that I am on 1.35.6 I need to use LDAPAuthentication2. I have already installed LDAPAuthentication2, LDAPProvider and PluggableAuth. I have set up LDAPProvider's .json file with the same info LDAPAuthentication original use to need. I am not getting the error about setting up a domain for it anymore so that seems fine. My wiki will indeed load but when I try to login to the wiki with my ldap account like I did in my previous version I get this error:
[aa047da4f6bfd10c7b82b7d4] /index.php/Special:PluggableAuthLogin Error from line 244 of /var/www/html/extensions/LDAPProvider/src/PlatformFunctionWrapper.php: Call to undefined function ldap_connect()
Backtrace:
#0 /var/www/html/extensions/LDAPProvider/src/PlatformFunctionWrapper.php(261): MediaWiki\Extension\LDAPProvider\PlatformFunctionWrapper->connect(string, integer)
#1 /var/www/html/extensions/LDAPProvider/src/Client.php(100): MediaWiki\Extension\LDAPProvider\PlatformFunctionWrapper::getConnection(string)
#2 /var/www/html/extensions/LDAPProvider/src/Client.php(88): MediaWiki\Extension\LDAPProvider\Client->makeNewConnection()
#3 /var/www/html/extensions/LDAPProvider/src/Client.php(329): MediaWiki\Extension\LDAPProvider\Client->init()
#4 /var/www/html/extensions/LDAPAuthentication2/src/PluggableAuth.php(184): MediaWiki\Extension\LDAPProvider\Client->canBindAs(string, string)
#5 /var/www/html/extensions/LDAPAuthentication2/src/PluggableAuth.php(55): MediaWiki\Extension\LDAPAuthentication2\PluggableAuth->checkLDAPLogin(string, string, string, NULL, NULL, NULL)
#6 /var/www/html/extensions/PluggableAuth/includes/PluggableAuthLogin.php(36): MediaWiki\Extension\LDAPAuthentication2\PluggableAuth->authenticate(NULL, string, NULL, NULL, NULL)
#7 /var/www/html/includes/specialpage/SpecialPage.php(600): PluggableAuthLogin->execute(NULL)
#8 /var/www/html/includes/specialpage/SpecialPageFactory.php(635): SpecialPage->run(NULL)
#9 /var/www/html/includes/MediaWiki.php(307): MediaWiki\SpecialPage\SpecialPageFactory->executePath(Title, RequestContext)
#10 /var/www/html/includes/MediaWiki.php(945): MediaWiki->performRequest()
#11 /var/www/html/includes/MediaWiki.php(548): MediaWiki->main()
#12 /var/www/html/index.php(53): MediaWiki->run()
#13 /var/www/html/index.php(46): wfIndexMain()
#14 {main}
Any idea what this means? Not sure what this ldap_connect function is and why it won't load.
(just mentioning but my searchstring setting for ldapprovider is set to "" right now. Not sure if that matters since that's the default)
Also I do have php-ldap installed. I think my issue might be I haven't enabled it correctly. All I have done is enabled it in the php.ini file by uncommenting the
;exstension=ldap Mpb8877 (talk) 16:42, 20 June 2022 (UTC)
- Was solved by importing an old php7.3 repository and directly installing php7.3-ldap Mpb8877 (talk) 15:39, 21 June 2022 (UTC)
Invalid name Go to navigationGo to Search The page name contains invalid UTF-8 characters. Return to Home page.
Hello. After rolling back from php 8.1 to 7.4, and updating WM from 1.37 to 1.38, this error appeared.
Invalid name
Go to navigation Go to Search
The page name contains invalid UTF-8 characters.
Return to Home page.
What could be wrong and where to look for the problem. Perhaps this is a known error after downgrading php or upgrading the WM.
On php 8.1 and VM 1.37, thumbnails did not work correctly, so I decided to come up with this configuration
Config: WS 2019 & IIS 10 & php 7.4.3 & SQLite 3 & WM 1.38
PHP configuration on serv at the corresponding address in phpinfo.php MadeInBlack (talk) 16:58, 20 June 2022 (UTC)
- Maybe something wrong with localisation cache. Try clearing all caches. Make sure you updated all files and dont have 1.37 files mixed in.
- Possibly related to IIS. There has been unicode issues with it in the past, but that was long time ago.
- It could probably be worked around by editing the page mediawiki:mainpage on your wiki. Bawolff (talk) 17:23, 20 June 2022 (UTC)
- @Bawolff I didn’t want to get into the code that I couldn’t break anything, but apparently I had to MadeInBlack (talk) 18:02, 20 June 2022 (UTC)
Common.CSS and Common.js will not apply to my site
I want my WikiMedia sites to match Wikipedia, so I created MediaWiki:Common.css and MediaWiki:Common.js pages, copied and pasted code from Wikipedia's files of same names, emptied browser cache and refreshed, but my wiki still has smaller text of MediaWiki install, not larger text of Wikipedia.
I would like to be able to reproduce Wikipedia site styling and Wikipedia Main Page -
• single and two column layout
• div blocks with color background
• block headers with color background
• custom font types, sizes, etc.
and Wikipedia page -
• feature div block on right side
• Contents div block on left
• two column layout for tables (see Road to the Finals on page at above link)
• two column layout for References
How can I do that?
I copied source code from Wikipedia Main Page but that didn't work. DStallTX (talk) 17:42, 20 June 2022 (UTC)
- Pretty much everything on Wikipedia is overly complicated. It would be easier learning enough HTML/CSS/JavaScript to do it from scratch :-) But using Wikipedia (and its code) for inspiration. Jonathan3 (talk) 19:05, 20 June 2022 (UTC)
- That's what I am trying to do - use Wikipedia code but it's not working because nothing changes on my site.
- So why is that? Just like with logo not begin replaced, something's not right. What do I check?
- Here's files I copied from Wikipedia.
- Is there something more I need to do to get Wikipedia CSS and JS to work on my site?
- https://dstall.com/DIY/index.php/MediaWiki:Common.css
- https://dstall.com/DIY/index.php/MediaWiki:Common.js DStallTX (talk) 21:47, 20 June 2022 (UTC)
- Just start from scratch and try to achieve one effect at a time :-) Jonathan3 (talk) 22:17, 20 June 2022 (UTC)
- If I had more than one lifetimes to live, I would, but I don't.
- Here's what happens when I enter Wikipedia Main Page source code -
- https://dstall.com/DIY/index.php/Main_Page DStallTX (talk) 23:33, 20 June 2022 (UTC)
- you copied the main page code incorrectly. You need to copy the wikitext source not the html.
- Consider using Special:import and w:special:export Bawolff (talk) 06:22, 21 June 2022 (UTC)
- I need to start with hiding the Main Page title.
- then creating a div container that is full width with Welcome to ... wiki text on color background. DStallTX (talk) 23:39, 20 June 2022 (UTC)
- Manual:FAQ#How_do_I_hide_the_main_page_title?
- Welcome to ... wiki
- Jonathan3 (talk) 10:29, 21 June 2022 (UTC)
<div style="background: orange">Welcome to...</div>
- Per instructions at Manual:FAQ#How_do_I_hide_the_main_page_title? for WikiMedia 1.38.1. I created both MediaWiki:mainpage-title and MediaWiki:mainpage-title-loggedin pages (for logged-out and logged-in users respectively), and left both empty.
- Note that MediaWiki changed lower case mainpage to upper case Mainpage.
- MediaWiki:Mainpage-title
- MediaWiki:Mainpage-title-logged-in
- Is there something else I have to do to hide MainPage title? DStallTX (talk) 17:52, 27 June 2022 (UTC)
- Commin.js and common.css are probably not the only pages you have to copy Bawolff (talk) 06:19, 21 June 2022 (UTC)
Special:Mostlinked and WantedPages never ending
| MediaWiki | 1.35.5 |
| PHP | 7.4.3 (fpm-fcgi) |
| MySQL | 8.0.29-0ubuntu0.20.04.3 |
| ICU | 66.1 |
Howdy,
we have changed to $wgMiserMode = true some months ago, updateSpecialPages is running every night. Great function, however there are 2 SpecialPages that are running and running for 5, 8, 12 hours and never coming to and end. For the moment, I have excluded them from being updated by the script so that the script runs through within some 5 minutes.
Is there a way to find out why Mostlinked/Wantedpages are hanging? How could I find out what they're doing all the time? Any hints appreciated.
PS. For whatever reason this problem emerged after changing the database's character set, Project:Support desk/Flow/2022/02#h-Recommended_character_set_and_collation?-2022-02-23T17:06:00.000Z, coincidence or causality? I can't imagine. 2003:C2:3F41:E00:896A:31C4:4B22:4203 (talk) 08:58, 21 June 2022 (UTC)
- How many pages are in your wiki?
- Different special pages take different time, and some of them can be quite slow, but 12 hours seems excessive even for a very large wiki. However maybe if the server runs out of ram and starts swapping stuff or something. Do other things work when this is happening? Is mysqld using cpu? I/o? During this time?
- Its not impossible that the charset change effected something but it seems kind of unlikely
- During this, is the query listed on the server via SHOW PROCESSLIST; ? Are there a large number of queries in flight? If you do SHOW EXPLAIN FOR <processid>; for the wanted pages query, what is the output. Bawolff (talk) 09:44, 21 June 2022 (UTC)
- Thank you Bawolff, and sorry, I have had private issues the last few days.
- We have round about 133,000 pages, thereof 57,000 articles (approx. 40,000 redirects, don't know where the difference is)
- I started the Mostlinked job manually 5 hrs ago and it is still running. The mysqld process uses 100...150% CPU but users working on articles will hardly notice the server load. It is a virtual system with 4 CPUs, total CPU usage varying between 15% and 40%. No noticeable swapping.
- The database processlist shows the event scheduler, the special page, my shell process and a count of sleeping processes (usually 0 to 5 as far as I saw). Explaining the special page process:
- mysql> explain for connection 158074;
- +----+-------------+-----------+------------+-------+---------------+--------------+---------+-----------------------------+---------+----------+----------------------------------------------+
- | id | select_type | table | partitions | type | possible_keys | key | key_len | ref | rows | filtered | Extra |
- +----+-------------+-----------+------------+-------+---------------+--------------+---------+-----------------------------+---------+----------+----------------------------------------------+
- | 1 | SIMPLE | pagelinks | NULL | index | NULL | pl_namespace | 1030 | NULL | 2391153 | 100.00 | Using index; Using temporary; Using filesort |
- | 1 | SIMPLE | page | NULL | ref | name_title | name_title | 4 | ppdb.pagelinks.pl_namespace | 5684 | 100.00 | Using where; Using index |
- +----+-------------+-----------+------------+-------+---------------+--------------+---------+-----------------------------+---------+----------+----------------------------------------------+
- 2 rows in set (0,00 sec)
- Though I have some SQL experience, I don't understand the EXPLAIN output. There are 2.43 million records in the pagelinks table (not 2,39m as shown). And why is key_len = 1030? Here is the pagelinks description:
- mysql> describe ppdb.pagelinks;
- +-------------------+--------------+------+-----+---------+-------+
- | Field | Type | Null | Key | Default | Extra |
- +-------------------+--------------+------+-----+---------+-------+
- | pl_from | int unsigned | NO | PRI | 0 | |
- | pl_namespace | int | NO | PRI | 0 | |
- | pl_title | varchar(255) | NO | PRI | | |
- | pl_from_namespace | int | NO | MUL | 0 | |
- +-------------------+--------------+------+-----+---------+-------+
- mysql> show indexes from ppdb.pagelinks;
- +-----------+------------+------------------------+--------------+-------------------+-----------+-------------+----------+--------+------+------------+---------+---------------+---------+------------+
- | Table | Non_unique | Key_name | Seq_in_index | Column_name | Collation | Cardinality | Sub_part | Packed | Null | Index_type | Comment | Index_comment | Visible | Expression |
- +-----------+------------+------------------------+--------------+-------------------+-----------+-------------+----------+--------+------+------------+---------+---------------+---------+------------+
- | pagelinks | 0 | PRIMARY | 1 | pl_from | A | 139218 | NULL | NULL | | BTREE | | | YES | NULL |
- | pagelinks | 0 | PRIMARY | 2 | pl_namespace | A | 227346 | NULL | NULL | | BTREE | | | YES | NULL |
- | pagelinks | 0 | PRIMARY | 3 | pl_title | A | 2391153 | NULL | NULL | | BTREE | | | YES | NULL |
- | pagelinks | 1 | pl_backlinks_namespace | 1 | pl_from_namespace | A | 20 | NULL | NULL | | BTREE | | | YES | NULL |
- | pagelinks | 1 | pl_backlinks_namespace | 2 | pl_namespace | A | 165 | NULL | NULL | | BTREE | | | YES | NULL |
- | pagelinks | 1 | pl_backlinks_namespace | 3 | pl_title | A | 379761 | NULL | NULL | | BTREE | | | YES | NULL |
- | pagelinks | 1 | pl_backlinks_namespace | 4 | pl_from | A | 2356577 | NULL | NULL | | BTREE | | | YES | NULL |
- | pagelinks | 1 | pl_namespace | 1 | pl_namespace | A | 20 | NULL | NULL | | BTREE | | | YES | NULL |
- | pagelinks | 1 | pl_namespace | 2 | pl_title | A | 181466 | NULL | NULL | | BTREE | | | YES | NULL |
- | pagelinks | 1 | pl_namespace | 3 | pl_from | A | 2378003 | NULL | NULL | | BTREE | | | YES | NULL |
- +-----------+------------+------------------------+--------------+-------------------+-----------+-------------+----------+--------+------+------------+---------+---------------+---------+------------+ 2003:C2:3F0F:9800:68A6:A572:4C81:CA77 (talk) 14:27, 28 June 2022 (UTC)
- So keylen is how many bytes of the index is used (sometimes only part of the index is used).
- Its normal for row estimates to be off. They are order of magnitude gueses.
- So, the concerning thing i see from that join, is the second row for the join to the page table. I was expecting the number of rows to be 1, the key length to be more than 4, and filtered to be closer to 0. It sounds like its using only the namespace, instead of namespace and title as the index. This will significantly slow things down.
- Maybe this is caused by charset issues - i dont know enough about mysql internals to really say, but maybe if pagelinks.pl_title and page.page_title were different charsets/collations, it might prevent the index from being used, or something like that.
- The other possibility is its something to do with page_title not being in the group by clause, but i dont know why that would make a difference. Bawolff (talk) 02:19, 1 July 2022 (UTC)
- It seems we are on the track here. Invaluable hint, thank you ...! The pagelinks.pl_title and page.page_title are slightly different, the second one is ai_ci.
- I am still struggling with correcting this (my own) mistake, trying to rebuild the pagelinks table but it takes a very long time.
- I'll inform you later, in a few weeks because we are going on vacation now. 2003:C2:3F24:200:7936:FD16:1C06:D7CD (talk) 07:37, 8 July 2022 (UTC)
- Continuing at the very bottom. 2003:C2:3F30:A000:55E0:6D6D:CE8:3CD5 (talk) 12:36, 4 August 2022 (UTC)
- There is one mysterious message in the mysql log:
- 2022-06-28T09:11:00.315992Z 1 [ERROR] [MY-012574] [InnoDB] Unable to lock ./ibdata1 error: 11
- repeated 15 times between 11.00am and 11.14am, 11am is exactly the time I startet my test. 2003:C2:3F0F:9800:68A6:A572:4C81:CA77 (talk) 14:33, 28 June 2022 (UTC)
- OMG, sorry, please ignore the previous posting. The lock error appears again and again, once every minute, until 12.40, the last log entries are:
- 2022-06-28T09:12:40.346740Z 1 [ERROR] [MY-012574] [InnoDB] Unable to lock ./ibdata1 error: 11
- 2022-06-28T09:12:40.346916Z 1 [ERROR] [MY-012592] [InnoDB] Operating system error number 11 in a file operation.
- 2022-06-28T09:12:40.346980Z 1 [ERROR] [MY-012596] [InnoDB] Error number 11 means 'Resource temporarily unavailable'
- 2022-06-28T09:12:40.347071Z 1 [ERROR] [MY-012215] [InnoDB] Cannot open datafile './ibdata1'
- 2022-06-28T09:12:40.347233Z 1 [ERROR] [MY-012959] [InnoDB] Could not open or create the system tablespace. If you tried to add new data files to the system tablespace, and it failed here, you should now edit innodb_data_file_path in my.cnf back to what it was, and remove the new ibdata files InnoDB created in this failed attempt. InnoDB only wrote those files full of zeros, but did not yet use them in any way. But be careful: do not remove old data files which contain your precious data!
- 2022-06-28T09:12:40.347280Z 1 [ERROR] [MY-012930] [InnoDB] Plugin initialization aborted with error Cannot open a file.
- 2022-06-28T09:12:40.844981Z 1 [ERROR] [MY-010334] [Server] Failed to initialize DD Storage Engine
- 2022-06-28T09:12:40.845406Z 0 [ERROR] [MY-010020] [Server] Data Dictionary initialization failed.
- 2022-06-28T09:12:40.846542Z 0 [ERROR] [MY-010119] [Server] Aborting
- 2022-06-28T09:12:40.847841Z 0 [System] [MY-010910] [Server] /usr/sbin/mysqld: Shutdown complete (mysqld 8.0.29-0ubuntu0.20.04.3) (Ubuntu).
- (END)
- What does this mean? 2003:C2:3F0F:9800:68A6:A572:4C81:CA77 (talk) 14:41, 28 June 2022 (UTC)
- You might have to ask at a mysql forum for that one. Bawolff (talk) 02:21, 1 July 2022 (UTC)
- Sorry, false alarm. The lock error never appeared again, so it is clear that it has nothing to do with the repoted SpecialPage problem. 2003:C2:3F24:200:7936:FD16:1C06:D7CD (talk) 07:27, 8 July 2022 (UTC)
- Bawolff, once again you are our hero.
- Now I have corrected the pagelinks.pl_title and page.page_title collation (... and all other xxxx.title), so they all match utf8mb4_0900_as_ci ... and voilà, all of the special pages including Mostlinked and WantedPages come to an end within a few minutes.
- Many, many thanks!!! 2003:C2:3F30:A000:55E0:6D6D:CE8:3CD5 (talk) 12:43, 4 August 2022 (UTC)
- Glad to hear it worked out Bawolff (talk) 06:54, 5 August 2022 (UTC)
Error a file with this name exists already
I keep running into this error every time I want to update an image (see title). Now I even have this error when the image that is supposed to be duplicated doesn't even show up in display. Thus, I have no way to delete the old one. Is there a good way to deal with image updates? Like an image inventory or something that I am missing? Would appreciate some help, this is driving me crazy. Thanks!
I would have added a screenshot of the error but I don't have administrator privileges...
Here's the text: A file with this name exists already, please check File:XXXX if you are not sure if you want to change it. Arniobra25 (talk) 12:23, 21 June 2022 (UTC)
- Its not an error, just a warning. Just click yes to it. Bawolff (talk) 14:39, 21 June 2022 (UTC)
Tagging Pages
Hello! I was taking a look and couldn't see anything straight away so I thought I'd ask here. I'm interested in tagging my pages. Popular search terms that I think people would search for I want to try to set up to link to a general page. Ideally there would be somewhere where I can add tags to a page and when those tags are search it returns you to this page. Is this possible either natively or with an extension? It seems like something that would be highly used, at least I think so anyway. RobHowdle (talk) 12:53, 21 June 2022 (UTC)
- categories perhaps Bawolff (talk) 14:38, 21 June 2022 (UTC)
HideSidebar for Vector skin
Is there a solution link Extension:HideSidebar working for vector skin?
Anonymus user should only see Login and nothing else in Mediawiki:Sidebar Hgmaerkle (talk) 12:54, 21 June 2022 (UTC)
URL after upgrade
My previous installation 1.35 adressed in the format //drebbel.net/wiki/index.php?title=Main_Page etc.
The upgraded 1.38 (same server, cloned databases) generates links like //drebbel.net/wiki/index.php/Main_Page and gets stuck
What can I do? EFFemeer (talk) 15:22, 21 June 2022 (UTC)
- Set $wgUsePathInfo = false;
If you know your webserver and php version could you also file a bug in https://phabricator.wikimedia.org about pathinfo detection not working in 1.38Bawolff (talk) 18:38, 21 June 2022 (UTC)- Hi, this is a bug in 1.38. It will be fixed in the next release of mediawiki (32e27c7c1cad0f2) Bawolff (talk) 07:49, 22 June 2022 (UTC)
Could not authenticate credentials against domain "LDAP"
I recently upgraded from Mediawiki 1.27 to 1.35.6 and I am having trouble migrating over LDAPAuthentication. I know that LDAPAuthentication is out of service and now we are supposed to use LDAPAuthentication2. With this comes using the the extension LDAPProvider and PluggableAuth. I have them all installed and I am basically trying to copy over my info from the old version which used LDAPAuthentication original to LDAPAuthentication2. Here is what I did.
Here is my original LDAPAuthentication settings: (note I subbed out actual server address and password)
$wgLDAPUseLocal = false;
$wgLDAPDomainNames = [ 'padl' ];
$wgLDAPServerNames = [ 'padl' => 'A.B.C.D' ];
$wgLDAPEncryptionType = [ 'padl' => 'tls' ];
#$wgLDAPPort = [ 'padl' => 389 ];
$wgLDAPProxyAgent = [ 'padl' => 'cn=admin,dc=ceas,dc=wmich,dc=edu>
$wgLDAPProxyAgentPassword = [ 'padl' => 'password' ];
$wgLDAPSearchAttributes = [ 'padl' => 'uid' ];
$wgLDAPBaseDNs = [ 'padl' => 'cn=users,dc=ceas,dc=wmich,dc=edu>
$wgLDAPLowerCaseUsername = [ 'padl' => true ];
I should mention "padl" is a personally setup ldap config
For LDAPAuthentication2 you set up a .json file for LDAPProvider to use. Here is that file: (with same things subbed out)
{
"LDAP": {
"connection": {
"server": "A.B.C.D",
"port": "389",
"enctype": "tls",
"user": "cn=admin,dc=ceas,dc=wmich,dc=edu",
"pass": "password",
"options": {
"LDAP_OPT_DEREF": 1
},
"basedn": "cn=admin,dc=ceas,dc=wmich,dc=edu",
"groupbasedn": "cn=admin,dc=ceas,dc=wmich,dc=edu",
"userbasedn": "cn=admin,dc=ceas,dc=wmich,dc=edu",
"searchattribute": "uid",
"searchstring": "",
"usernameattribute": "samaccountname",
"realnameattribute": "cn",
"emailattribute": "mail"
}
}
}
This gives me the error "Could not authenticate credentials against domain "LDAP""
To be perfectly honest, even after reading the LDAPProvider page I am not exactly sure what all these settings do. I just need to be able to login using out LDAP accounts like on version 1.27.
Thanks. Mpb8877 (talk) 15:47, 21 June 2022 (UTC)
- Turned on debug logs after trying to log in and I get this:
- 2022-06-21 18:01:28 wiki mediawiki-mw_: ldap_connect( $hostname = 'ldap://server name', $port = 389 );
- 2022-06-21 18:01:28 wiki mediawiki-mw_: # __METHOD__ returns Resource id #746
- 2022-06-21 18:01:28 wiki mediawiki-mw_: ldap_set_option( $linkID, $option = 17, $newval = 3 );
- 2022-06-21 18:01:28 wiki mediawiki-mw_: # returns 1
- 2022-06-21 18:01:28 wiki mediawiki-mw_: ldap_set_option( $linkID, $option = 8, $newval = 0 );
- 2022-06-21 18:01:28 wiki mediawiki-mw_: # returns 1
- 2022-06-21 18:01:28 wiki mediawiki-mw_: ldap_start_tls( $linkID );
- 2022-06-21 18:01:28 wiki mediawiki-mw_: # returns 1
- 2022-06-21 18:01:28 wiki mediawiki-mw_: ldap_bind( $linkID, $bindRDN = 'cn=admin,dc=ceas,dc=wmich,dc=edu', $bindPassword = 'XXXX' );
- 2022-06-21 18:01:28 wiki mediawiki-mw_: # returns 1
- 2022-06-21 18:01:28 wiki mediawiki-mw_: ldap_search( $linkID, $baseDN = '', $filter = '(=username)', $attributes = [ '*', 'memberof' ], $attrsonly = , $sizelimit = , $timelimit = , $deref = );
- 2022-06-21 18:01:28 wiki mediawiki-mw_: # returns
- 2022-06-21 18:01:28 wiki mediawiki-mw_: ldap_error( $linkID );
- 2022-06-21 18:01:28 wiki mediawiki-mw_: # returns Bad search filter
- Not sure what this Bad Search filter is. I can confirm my DN's are valid. Is there some setting I am missing here.
- ALSO: I don't have LDAPAuthorization. Is that necessary? Mpb8877 (talk) 18:10, 21 June 2022 (UTC)
Cite button is stuck
Hello,
For the past week I have been having problems with the cite button. It is sometimes stuck, a small blue window with 3 dots appears where the citation should be placed, but there is no citation window to fill the details. At this stage, if I try to leave the edit tab, it takes some time before I can do so.
I have been working on: https://en.wikipedia.org/w/index.php?title=Fibromyalgia&action=edit§ion=63
| Product | Version |
|---|---|
| MediaWiki | 1.39.0-wmf.17 (27d58b4)
20:35, 20 June 2022 |
| PHP | 7.2.34-18+0~20210223.60+debian10~1.gbpb21322+wmf5 (fpm-fcgi) |
| MariaDB | 10.4.22-MariaDB-log |
SigTif (talk) 16:34, 21 June 2022 (UTC)
- Any errors in the web browser developer console? Bawolff (talk) 18:35, 21 June 2022 (UTC)
- Yes, thank you. After about 2 minutes, the cite option appeared and the following comment appeared on the console:
- A page or script is accessing at least one of navigator.userAgent, navigator.appVersion, and navigator.platform. Starting in Chrome 101, the amount of information available in the User Agent string will be reduced.
- To fix this issue, replace the usage of navigator.userAgent, navigator.appVersion, and navigator.platform with feature detection, progressive enhancement, or migrate to navigator.userAgentData.
- Note that for performance reasons, only the first access to one of the properties is shown.
- 2. AFFECTED RESOURCES
- 1. 1 source
- 1.
| adblock-functions.js:1 |
- 3.
- o Learn more: User-Agent String Reduction SigTif (talk) 17:20, 23 June 2022 (UTC)
- that message is probably unrelated to cite not working (although you may want to try disabling your adblocker just to make sure its not breaking anything) Bawolff (talk) 20:54, 23 June 2022 (UTC)
Back Button
How can I add a back button? I create a page and I want to go back a page or two. I have to go to the main page and then go to the page, subpage, and that subpage or two to get where I want. Is there a button that can take me to my subpage almost like a back button? 107.199.22.126 (talk) 23:45, 21 June 2022 (UTC)
- I'm not sure I understand your question or how your wiki works.
- If you are on a subpage and want to go to the parent page, if you have configured $wgNamespacesWithSubpages, MediaWiki will create breadcrumbs that link to the parent pages.
- If you want a sort-of browser back button, use the back button that your browser provides. There are some extensions that may provide links to recently visited pages, like Extension:JSBreadCrumbs Ciencia Al Poder (talk) 08:33, 22 June 2022 (UTC)
Short URL Will Not Work
I've tried a half doz or more sets of code for LocalSettings.php and .htaccess files to remove index.php from MediaWiki links, and none of them work.
I do not know how to write or modify code, so please post entire code as it should be written and indicate what file it is to be copied to.
My MediaWiki site is installed at www.domain/MOD/ - so please modify code accordingly for that location.
Please specify where.htaccess file is to be modified — at public_html folder or at /MOD/ subfolder. DStallTX (talk) 01:36, 22 June 2022 (UTC)
- Found solution for shared hosting server -
- Changing the URL Structure -
- Manual:Short URL#URL like - example.com/wiki/Page title
- Root Access -
- If you are on a shared host, you most likely don't. In this case you will be required to use a method that requires "no root access". You can jump directly to the MediaWiki ShortURL Builder tool and follow the on-screen instructions. Select "I don't have root access" after entering your wiki's URL. DStallTX (talk) 03:43, 22 June 2022 (UTC)
- Well, now when I click Edit or Edit Source tab, I get —
- "Error contacting the Parsoid/RESTBase server (HTTP 400)"
- Now what's wrong?
- How do I fix this?
- Per instructions —
- LocalSettings.php —
- $wgScriptPath = "/MOD";
- $wgArticlePath = "{$wgScriptPath}/$1";
- $wgUsePathInfo = true;
- .htaccess in /MOD/ —
- RewriteEngine On
- RewriteCond %{DOCUMENT_ROOT}%{REQUEST_URI} !-f
- RewriteCond %{DOCUMENT_ROOT}%{REQUEST_URI} !-d
- RewriteRule ^(.*)$ %{DOCUMENT_ROOT}/MOD/index.php [L]
- RewriteCond %{DOCUMENT_ROOT}%{REQUEST_URI} !-f
- RewriteCond %{DOCUMENT_ROOT}%{REQUEST_URI} !-d
- RewriteRule ^/?MOD/images/thumb/[0-9a-f]/[0-9a-f][0-9a-f]/([^/]+)/([0-9]+)px-.*$ %{DOCUMENT_ROOT}/MOD/thumb.php?f=$1&width=$2 [L,QSA,B]
- RewriteCond %{DOCUMENT_ROOT}%{REQUEST_URI} !-f
- RewriteCond %{DOCUMENT_ROOT}%{REQUEST_URI} !-d
- RewriteRule ^/?MOD/images/thumb/archive/[0-9a-f]/[0-9a-f][0-9a-f]/([^/]+)/([0-9]+)px-.*$ %{DOCUMENT_ROOT}/MOD/thumb.php?f=$1&width=$2&archived=1 [L,QSA,B] DStallTX (talk) 03:49, 22 June 2022 (UTC)
- It's only the Edit tab that gives error. Edit Source works. DStallTX (talk) 03:51, 22 June 2022 (UTC)
- Is there a WYSIWYG extension that will work with short URL?
- I deactivated VisualEditor extension in LocalSettngs.php, and now there's only an Edit tab for editing source.
- I installed CodeEditor extension but it completely breaks install (displays blank page). DStallTX (talk) 13:02, 22 June 2022 (UTC)
- Visual editor can work with short urls. Its unclear why it is not working for you, and you'd need to figure that out. 400 would kind of be an odd error code for it to be short url related. Bawolff (talk) 16:19, 22 June 2022 (UTC)
- And how much would I have to pay to find that out? I'm not capable of DIY bc I'm not an engineer, "just" a designer. But I can't get to point of data entry until I get site up and running which looks like that could take a huge investment of time and probably not even possible without a huge amount of money paying the code sorcerers. Main Page link in Sidebar is broken. Muddy incomplete instructions on how to create Portals. "Support" responses with links to MediaHelp files that are sketchy at best, instructons that waste time bc they don't work when implemented. DStallTX (talk) 20:19, 22 June 2022 (UTC)
- There are a list of people at Professional development and consulting. Depending on what you need, some of them can be quite pricey.
- There are also managed hosting options like Miraheze or https://www.wikiteq.com/ which might be more what you are looking for Bawolff (talk) 07:12, 23 June 2022 (UTC)
- No instructions on how to create Article series, create and apply template. Etc. Etc. Not really worth looking at MediaWiki help files, have to go elsewhere for 3rd party info. DStallTX (talk) 20:21, 22 June 2022 (UTC)
- Did you propoerly installed the ShortURL extension? 154.121.57.107 (talk) 07:24, 23 June 2022 (UTC)
- The ShortUrl extension is unrelated to what DStallTX is talking about. Bawolff (talk) 14:25, 23 June 2022 (UTC)
- Bawolff - is there a problem with the code I'm using for short URLs in LocalSettings.php file?
- I've tried other code and it broke my site. My site is on a shared hosting server, so I followed instructions for that. See top comment on this thread. DStallTX (talk) 18:10, 27 June 2022 (UTC)
- The 400 error code makes it seem like short urls could be related, but i dont know for sure. Check out access log and error log when using visual editor (for internal requests to rest.php) Bawolff (talk) 15:15, 1 July 2022 (UTC)
Cross origin API requests from file URLs
The following discussion is closed. Please do not modify it. Subsequent comments should be made on the appropriate discussion page. No further edits should be made to this discussion.
Hi. I'm using the Electron framework to develop an application using the MediaWiki API. I used the login part of the API and successfully logged in, but as soon as I try to edit a page (such as my sandbox on TestWiki), it says that I'm not logged in. I suspect this might be because my origin is file://. So I set ?origin=file:// or ?origin=null and get 'origin parameter does not match Origin header' for both of those. How do I make cross site requests from file URLs? Weeklyd3 (talk) 06:23, 22 June 2022 (UTC)
- And also, I have CORS disabled so I don't get CORS errors. Weeklyd3 (talk) 06:24, 22 June 2022 (UTC)
- So its probably not a CORS issue but may be related to the same origin policy in some shape or form. Make sure you are setting the withCredentials option if using fetch or xmlhttprequest
- You should use the developer tools features to try and figure out if cookies are being set properly and re-sent on subsequent requests.
- More generally, if this is a desktop application, you may want to consider using oauth instead. Bawolff (talk) 07:56, 22 June 2022 (UTC)
- OK, it looks like cookies are being sent out, but I get this stern warning from the edit filter:
- Warning: This action has been automatically identified as harmful. Unconstructive actions will be quickly reverted, and egregious or repeated unconstructive editing will result in your account or IP address being blocked. If you believe this action to be constructive, you may submit it again to confirm it. A brief description of the abuse rule which your action matched is: Editing user page by anonymous user
- I found out I was getting the cookies like
set-cookie: testwiki_BPsession=gq1js9fnt9qdapo1d1mv45saqqu2srsf; path=/; secure; HttpOnly
- ...but it was getting blocked by SameSite (the default is SameSite=lax) Weeklyd3 (talk) 16:51, 22 June 2022 (UTC)
- That sounds like your edit is hitting abusefilter, which is probably unrelated to any login issues. Bawolff (talk) 07:03, 23 June 2022 (UTC)
- Is there some way to get the server to send
SameSite=noneon the responses? Weeklyd3 (talk) 18:34, 22 June 2022 (UTC) - You can't change mediawiki, but electron probably has apis to make requests more manually where you manage the cookies yourself.
- This is also why i suggested maybe looking into oauth (2) as it doesnt use cookies so avoids this issue. Bawolff (talk) 07:06, 23 June 2022 (UTC)
- Ok. I'll take a look into OAuth. Thanks! Weeklyd3 (talk) 15:55, 23 June 2022 (UTC)
Item labelling
Can the team put description on all items if it's tradable or not or just post it in your wiki. 110.54.156.129 (talk) 07:25, 22 June 2022 (UTC)
- You're in the wrong place Bawolff (talk) 07:48, 22 June 2022 (UTC)
How to hide History button for unlogeed users?
Hi,
I want to hide the History button for the unlogged user only. How to do that, I don't know how to do that. P02051998 (talk) 08:14, 22 June 2022 (UTC)
- Anyone? P02051998 (talk) 06:02, 23 June 2022 (UTC)
- You could try adding
.user-anon #ca-history {display:none}- To the page named MediaWiki:common.css on your wiki (note i have not tested this) Bawolff (talk) 07:16, 23 June 2022 (UTC)
Broken Link for Main Page in Sidebar
I moved links around in Sidebar, deleted link for Main Page, then later put it back.
Now it won't work.
I put source back just the way it was -
* navigation
** mainpage|mainpage-description
Why isn't it working?
Logo still links to Main Page, but Main Page text link it Sidebar does not.
See -
American Adam DStallTX (talk) 14:43, 22 June 2022 (UTC)
- Try to clean cache. Fokebox (talk) 14:46, 22 June 2022 (UTC)
- I always clean cache; it's a given.
- What else could it be? DStallTX (talk) 17:21, 22 June 2022 (UTC)
- The link to your wiki doesnt work Bawolff (talk) 18:21, 22 June 2022 (UTC)
- I know. I tried installing TinyMCE extension and it broke the site, and it won't come up when I delete code from LocalSettings.php file.
- Same has happened with 4 or more other extensions, but site has always come back after code deleted from LocalSettings.php file (and .htaccess when required).
- What a mess! Who designs stuff like this? Why aren't extensions rated for compatibility with MediaWiki by version? Why all the trial and error waste of time? Everyone having to find things out for themselves the hard way? I guess that's the inefficient way that open source operates.
- Yet another Third Industrial Revolution (aka Digital Age) waste of time that's got me wondering yet again if it's all worth it. Too bad, because I can really see the potential of wikis to organize information in ways that can stimulate creativity and communication. DStallTX (talk) 20:14, 22 June 2022 (UTC)
- You probably made a typo in LocalSettings.php. Enable php error reporting (see How to debug) so it tells you what went wrong instead of just not working.
- The reason i ask about the link is i would like to check some things about this issue (exact value of mediawiki:sidebar, value of the page mediawiki:mainpage, and mediawiki:mainpage-description ) Bawolff (talk) 07:01, 23 June 2022 (UTC)
- Per MW help file you referenced, I added code to LocalSettings.php
- No error displayed, but I'm also having trouble with extensions. Cannot load any extension except intersection without breaking site.
- Have been trying the following extensions - 'ShortUrl' ; 'Cargo' ; 'CodeEditor' ; 'UserFunctions' ; 'PageForms' ; 'ParserFunctions' ; 'CategoryTree' ;
- Could not use some (e.g. CodeEditor) bc they broke site. Deactivating them, removing code from LocalSettings.php (and .htaccess as required) always brought site back up until yesterday.
- Just got site back up today by deactivating VisualEditor, which was must have been conflicting with code I entered for short URL (shared server) in LocalSettings and .htaccess which actually worked (unlike many other tries). With short URL code, clicking on Edit tab (VisualEditor) would not work and could only use Edit Source tab.
- I removed short URL code from LocalSettings and .htaccess in order to use VisualEditor and I think that's point at which site went down.
- Here's what reports with VisualEditor extension activated -
- Fatal error: Uncaught Exception: Unable to open file DStallTX (talk) 12:21, 23 June 2022 (UTC)
- That particular error means that the visual editor extension is missing its php files or they are in the wrong place (e.g. /public_html/MOD/extensions/VisualEditor/extension.json is missing). Try downloading it again. Bawolff (talk) 14:15, 23 June 2022 (UTC)
- Here's what's on line 182 -
- throw new Exception( "Unable to open file $path: {$err['message']}" ); DStallTX (talk) 12:26, 23 June 2022 (UTC)
- Double checked and that's with intersection activated only.
- Deactivating it fixes site - https://dstall.com/MOD/index.php/Main_Page
- It now seems that any extension breaks site. DStallTX (talk) 12:29, 23 June 2022 (UTC)
- The main page link is broken due to the edit that was made to https://dstall.com/MOD/index.php/MediaWiki:Mainpage by making it empty, you are saying that the current page is the main page.
- Anyways, if you want to reset it to default, just delete https://dstall.com/MOD/index.php/MediaWiki:Mainpage (deleting will use mediawiki default, setting it to nothing overrides the default to empty which is not what you want) Bawolff (talk) 14:20, 23 June 2022 (UTC)
- Thanks for fix for Main Page link and Visual Editor. There was no VisualEditor in folder; maybe it inadvertently got deleted. What a relief not to have to reinstall MediaWiki!
- However, VisualEditor still will not work with short URL - Error contacting the Parsoid/RESTBase server (HTTP 400). Display error code is still in LocalSettings, but error doesn't break site. Error is shown as overlay with horiz progress bar. See screenshot - http://dstall.com/I/ScreenShot.jpg
- The only method of creating short URL that works for me (tried 4 or more ways) on shared server is the following -
- LocalSettings.php -
- $wgArticlePath = "{$wgScriptPath}/$1";
- $wgUsePathInfo = true;
- .htaccess -
- RewriteEngine On
- RewriteCond %{DOCUMENT_ROOT}%{REQUEST_URI} !-f
- RewriteCond %{DOCUMENT_ROOT}%{REQUEST_URI} !-d
- RewriteRule ^(.*)$ %{DOCUMENT_ROOT}/MOD/index.php [L]
- RewriteCond %{DOCUMENT_ROOT}%{REQUEST_URI} !-f
- RewriteCond %{DOCUMENT_ROOT}%{REQUEST_URI} !-d
- RewriteRule ^/?MOD/images/thumb/[0-9a-f]/[0-9a-f][0-9a-f]/([^/]+)/([0-9]+)px-.*$ %{DOCUMENT_ROOT}/MOD/thumb.php?f=$1&width=$2 [L,QSA,B]
- RewriteCond %{DOCUMENT_ROOT}%{REQUEST_URI} !-f
- RewriteCond %{DOCUMENT_ROOT}%{REQUEST_URI} !-d
- RewriteRule ^/?MOD/images/thumb/archive/[0-9a-f]/[0-9a-f][0-9a-f]/([^/]+)/([0-9]+)px-.*$ %{DOCUMENT_ROOT}/MOD/thumb.php?f=$1&width=$2&archived=1 [L,QSA,B] DStallTX (talk) 20:55, 23 June 2022 (UTC)
- Try checking apache error log (this is often separate from php error log).
- 400 is kind of weird. If short urls were broken i would tend to expect it to be a 500, but idk. Bawolff (talk) 20:58, 23 June 2022 (UTC)
- Here's error log - http://dstall.com/Log.pdf
- Is there anything there?
- If not, is there another WYSIWYG extension I could try instead of VisualEditor? DStallTX (talk) 00:23, 24 June 2022 (UTC)
- Problem appears to be with code for short URL bc it breaks VisualEditor on other WikiMedia site as well - https://dstall.com/DIY/
- It also causes Upload file link to disappear from Tools navigation, which reappeared at /DIY/ site after deactivating short URL code, but does not reappear at /MOD/ site.
- How can I get Upload file link back at /MOD/ site?
- Is there different code I can use for short URL that will not interfere with VisualEditor?
- Short URL code also does something very strange - it caused links in DIY navigation to connect to /MOD/ site. DStallTX (talk) 03:08, 24 June 2022 (UTC)
Error contacting the Parsoid/RESTBase server (HTTP 403)
I keep getting this error message every single time that I try to edit a pre-existing page or try to create one and publish it. I know that some questions on this error message have been asked, but the solutions don't seem to work (for example, I tried using the "Workaround " on this topic: Extension talk:VisualEditor/2020#h-Maybe_they'll_fix_it-2020-10-02T19:05:00.000Z, but it didn't work out for me either).
My specifications are as follows:
Bluehost website that uses cpanel
Non-private
MediaWiki 1.38.1
My code in LocalSettings.php is as follows:
// All user restrictions:
$wgGroupPermissions['*']['edit'] = false;
$wgGroupPermissions['*']['createpage'] = false;
$wgGroupPermissions['*']['editmyoptions'] = false;
$wgGroupPermissions['*']['editmywatchlist'] = false;
$wgGroupPermissions['*']['writeapi'] = false;
$wgGroupPermissions['*']['createtalk'] = false;
$wgGroupPermissions['*']['viewmywatchlist'] = false;
// Editor
$wgGroupPermissions['Editor'] = $wgGroupPermissions['user'];
$wgGroupPermissions['user' ]['edit'] = false;
$wgGroupPermissions['user' ]['createpage'] = false;
$wgGroupPermissions['Editor']['edit'] = true;
$wgGroupPermissions['sysop' ]['edit'] = true;
$wgGroupPermissions['Editor']['writeapi'] = true;
$wgGroupPermissions['Editor']['createtalk'] = true;
For context I am trying to create my own User Group (Editor), which will be the only group of users that would be allowed to Edit and create pages. Guillaume Taillefer (talk) 20:35, 22 June 2022 (UTC)
- Bump Guillaume Taillefer (talk) 15:47, 23 June 2022 (UTC)
- Bump again since no one has been able to answer my question Guillaume Taillefer (talk) 16:01, 26 June 2022 (UTC)
Thanks for restoring my account
- I don't know who did this, but my HEARTFELT thanks to whoever corrected my LibraryThing account. It had turned into two accounts, but now all is back to normal!! THANKS!!
- Diane Stephens 2603:7000:3B40:54:C12:23E4:1DD7:888F (talk) 20:41, 22 June 2022 (UTC)
- Welcome to MediaWiki ↠Tanbirzx (✉) 18:57, 24 June 2022 (UTC)
- We are not associated with librarything. You might want to tell them instead. Bawolff (talk) 06:59, 23 June 2022 (UTC)
Mobile version of new Vector 2022 skin
The following discussion is closed. Please do not modify it. Subsequent comments should be made on the appropriate discussion page. No further edits should be made to this discussion.
Hi!
I use following MW:
| MediaWiki | 1.38.1 |
| PHP | 7.3.32 (cgi-fcgi) |
| MySQL | 5.7.34 |
I would suggest to the development team to improve the outlay of Mobile version of new Vector 2022 skin. I have svg logo uploaded and as you can see that the search button is very close to the logo (Google Chrome from iPhone 11):
I would line the buttons with margins as it shown on the image below: Fokebox (talk) 08:18, 23 June 2022 (UTC)
- i think this should be filed at https://phabricator.wiimedia.org Bawolff (talk) 14:13, 23 June 2022 (UTC)
- See How to report a bug Malyacko (talk) 16:08, 23 June 2022 (UTC)
- Done! https://phabricator.wikimedia.org/T311254 Fokebox (talk) 16:26, 23 June 2022 (UTC)
Running a script does not do anything
I tried running deleteOldRevisions.php, but it just sends me to the next line of the console, without doing anything, other scripts (even update.php) don't work. How can I fix this? 217.104.25.134 (talk) 09:26, 23 June 2022 (UTC)
- Please see "Post a new question" in the sidebar. Malyacko (talk) 12:12, 23 June 2022 (UTC)
- In particular please include exactly what you typed, what was output, and what OS. Bawolff (talk) 14:13, 23 June 2022 (UTC)
Upload MediaWiki SQL dump
Hello,
after uploading the SQL Dump following error occurred: [YrSa S0ON1UHDPwQzSH@vgAAAAAQ] 2022-06-23 16:52:27: Fataler Ausnahmefehler des Typs „Wikimedia\Rdbms\DBQueryError“
Someone has an Idea what I have to do? Thanks in andvance 2A02:3102:8500:640:DC10:8DFA:5D46:177 (talk) 16:57, 23 June 2022 (UTC)
- Error basically means you did it wrong.
- Beyond that we would need more details. What sort of sql dump are you uploading? What process did you use to upload it? Etc
- Also be sure to set $wgShowExceptionDetails=true; Bawolff (talk) 17:01, 23 June 2022 (UTC)
403 forbidden error for skin directory
I use Apache2 for web server. Although I have set proper permission for the mediawiki directory, including skins/, the skin directory is still inaccessible with a 403 forbidden error, rendering my wiki without style.
I edited the main apache configuration file and the mediawiki configuration file in conf/extra/, but to no avails. Cranberryeris (talk) 22:47, 23 June 2022 (UTC)
- Skin css is not served from /skins/ but via load.php, so the lack of styles is probably unrelated to skins being inaccessible. Bawolff (talk) 12:26, 24 June 2022 (UTC)
There is something seriously wrong with article width.
I am currently browsing on my iPad, and it seems like there is a glitch that causes the entire page to either condense or stretch out. On some pages, the font size is larger than normal. In addition, some categories in Commons have extremely small fonts. Something similar is happening on my iPhone, though rather than entire pages being stretched out or condensed, the font size just changes, which is not as annoying. Blubabluba9990 (talk) 01:25, 24 June 2022 (UTC)
- Please read "Post a new question" in the sidebar. Malyacko (talk) 06:41, 24 June 2022 (UTC)
- Ah, if this is about Wikimedia wikis, this sounds like phab:T311119. https://meta.wikimedia.org/wiki/Tech is best for questions about Wikimedia websites. See also How to report a bug. Malyacko (talk) 07:51, 24 June 2022 (UTC)
- There is also a font size issue as well. Some articles have different font sizes than others, and they are larger than usual. For example, this page right now appears to have a larger font than it used to. This does not happen in Monobook. It also appears to be more scrunched than usual. Blubabluba9990 (talk) 14:19, 24 June 2022 (UTC)
Get namespace from number using the API
The following discussion is closed. Please do not modify it. Subsequent comments should be made on the appropriate discussion page. No further edits should be made to this discussion.
Hi, is there a way to get the namespace associated with a number? From API:Usercontribs I can get the namespace numbers, but I want the namespace names. I'm looking for something like mw.config.get("wgFormattedNamespaces"), but off wiki. Weeklyd3 (talk) 03:15, 24 June 2022 (UTC)
- Does this help? API:Siteinfo#Namespaces Jonathan3 (talk) 08:42, 24 June 2022 (UTC)
- Yes, it does. Thank you! Weeklyd3 (talk) 15:29, 24 June 2022 (UTC)
Ext:Cargo: Exporting data
Dear ∀,
I am wondering how to employ the options in Extension:Cargo/Exporting_data.
Is this something to call in #cargo_declare? Within #cargo_store? Within the URL of the table?
Imagine, the URL of my table is
https://mywiki.tld/wiki/Special:CargoTables/Mytable
How can I export this table to csv?
Thank you in advance! Ciciban (talk) 10:59, 24 June 2022 (UTC)
- Just follow the instructions on that page :-)
- Try:
{{#cargo_query: table=Mytable | fields = _pageName, Field2, Field3 | format = csv }}- You'll get more help at Extension_talk:Cargo. Jonathan3 (talk) 19:34, 24 June 2022 (UTC)
- 🙏🏻 – Ciciban (talk) 07:41, 26 June 2022 (UTC)
Bug Reports
Where do bug reports go?
Specifically, wfWikiID() has been deprecated, but there is no information (that I could find) in this Wiki on what ought to replace it (a documentation bug). Also, the Extension:ConfirmAccount (still) uses $wgMemc, which has also been deprecated (a bug in an extension). Fortunately, this Wiki does explain that $wgMemc can be set to ObjectCache::getLocalClusterInstance(). In fact, the newest install might do that somewhere, and perhaps my upgrade process causes that code not to execute. In any case, if $wgMemc is deprecated, then ConfirmAccount should no longer be using it. Dscotese (talk) 18:36, 24 June 2022 (UTC)
- > ObjectCache::getLocalClusterInstance()
- Pretty sure modern code isnt supposed to use that but use some MediaWikiService thing.
- Anyways, deprecations and what they should be replaced with are documented in release notes. See the HISTORY and RELEASE-NOTES file included with mediawiki.
- Bugs can be filed at https://phabricator.wikimedia.org Bawolff (talk) 19:46, 24 June 2022 (UTC)
- How to report a bug Malyacko (talk) 08:41, 25 June 2022 (UTC)
UTF-8 URL failures using IIS 8.5
I noticed that links with Unicode seem to break, I've tried debug logging and looks like Start requests has their URLs messed up, some Unicode characters replaced with ?, or replaced with garbled text
eg. /wiki/index.php/LA₀_Wiki:About> Start request GET /wiki/index.php/LA?_Wiki:About or /wiki/index.php/File:Rk!!!_ที่โดนสุขุมวางเพลิง!!!.jpg > Start request GET /wiki/index.php/File:Rk!!!_·Õèâ´¹ÊØ¢ØÁÇÒ§à¾ÅÔ§!!!.jpg
I'm using Windows Server 2012 R2 with IIS 8.5, I've searched the internet for this but there's seem to only be a hotfix for IIS 7.0 or IIS 7.5, which I'm not sure if it's appliable to IIS 8.5 NutchapolSal (talk) 20:13, 24 June 2022 (UTC)
- Does it work using long url forms? (E.g. $wgUsePathInfo=false; in localsettings )
- Otherwise, try switching to apache if that's an option. Bawolff (talk) 22:15, 24 June 2022 (UTC)
- Yes, It does work using long url forms
- Switching is an option but I don't really want to do it NutchapolSal (talk) 22:56, 24 June 2022 (UTC)
How to Reinstall MediaWiki and Save Content?
Upload file link has disappeared from Toolbar, so I want to reinstall MediaWiki to recover it, but want to make sure I don't lose my content.
If I don't delete MySQL database, I think Softaculous installer will recognize it and reuse it. So does that mean all my content will remain?
To be safe, I'll download database and LocalSettings.php file. I only have 1 image file so I'll just reupload it, and reinstall what few extensions I have.
Will that work so that I don't lose my content? DStallTX (talk) 15:37, 26 June 2022 (UTC)
- You should probably just figure out why the upload link disapeared. Are you logged in? What happens when you go directly to the page named Special:Upload ? Bawolff (talk) 18:13, 26 June 2022 (UTC)
- It's there just like accessed from Upload link. How do I figure out why/how it disappeared? I'm not a programmer. DStallTX (talk) 19:20, 26 June 2022 (UTC)
- Usually upload link only appears if you have permission to upload files. So most commonly it disappears when logged out because by default only logged in users can upload files.
- This can also vary with different skins potentially. Bawolff (talk) 00:48, 27 June 2022 (UTC)
- I'm using default Vector skin. I logged out and logged back in but upload link is still missing.
- What else could cause this?
- Will I have to reinstall MediaWiki to restore upload link?
- Is there no way to access code for Toolbar?
- The upload page exists, so why doesn't upload link appear? DStallTX (talk) 01:15, 27 June 2022 (UTC)
- I think its unlikely that reinstalling mediawiki will affect this (depends on how you define "reinstall" but if you keep the same localsettings.php and db its unlikely anything will change).
- Other things, have you changed $wgUploadNavigationUrl from its default? Have you changed any config related to upload permissions, installed upload related extensions, css targeting the upload link, related mediawiki namespace pages, etc? Bawolff (talk) 04:04, 27 June 2022 (UTC)
- Its because you copied code from english wikipedia to hide the upload link into https://dstall.com/MOD/index.php/MediaWiki:Vector.css Bawolff (talk) 04:14, 27 June 2022 (UTC)
How to create article series?
Where can I find help creating article series like this - https://en.wikipedia.org/wiki/Botany ?
or just creating something like this - https://en.wikipedia.org/wiki/Horse ?
or simply how to move TOC to right side of page like this - https://en.wikipedia.org/wiki/Enlightenment ?
I tried following instructions here - https://en.wikipedia.org/wiki/Wikipedia:Article_series but I ended up with some kind of Template loop error. Obviously, I did somethign wrong. Can someone please guide me through this step by step? DStallTX (talk) 15:53, 26 June 2022 (UTC)
- the information at https://developer.mozilla.org/en-US/docs/Web/CSS/float may be helpful. These are all floated elements.
- You can rearrange the table of contents with the __TOC__ magic word - so you can put it in a div that is floated right and has a width set.
- E.g. (using wikitext editor not visual editor)
- <div style="float:right;width:20em;border thin solid black">__TOC__ or other content here</div> Bawolff (talk) 18:26, 26 June 2022 (UTC)
- Hopefully that will help with floating TOC to right side of page.
- But how do I create article series with navigation box like here - https://en.wikipedia.org/wiki/Botany ?
- I tried following instructions here - https://en.wikipedia.org/wiki/Wikipedia:Article_series but I ended up with some kind of Template loop error. Obviously, I did somethign wrong. Can someone please guide me through this step by step? DStallTX (talk) 19:24, 26 June 2022 (UTC)
- the series boxes are also just floated content. Bawolff (talk) 00:46, 27 June 2022 (UTC)
- But how do you call up a series? Table of contents is _TOC_ yes? So what is series? DStallTX (talk) 01:09, 27 June 2022 (UTC)
- There is no such thing as a series. Its just a box with some links in it. Bawolff (talk) 03:54, 27 June 2022 (UTC)
- On my ModWiki | Humanity page, I created right sidebar div like you showed me, and placed source code from this Wikipedia page for sidebar in it. — NOT the source code from there but from Wikipedia:Article series
- and this showed up - Template loop detected, Template Documentation.
- So I created Template Documentation and added code per Wikipedia Templated:Documentation and then Template Documentation text disappeared and Templates: Sidebar with collapsible lists showed up in its place
- So I created Template:Sidebar with collapsible lists by copying/pasting code from Wikipedia Templates:Sidebar with collapsible lists and now I have Template loop detected: and beneath it Template:Sidebar with collapsible lists, but no right sidebar.
- Can you please give me some more info about how to create this right sidebar based on Wikipedia code?
- I don't know enough about programming to follow How to resolve template loop detected issue in MediaWiki DStallTX (talk) 18:21, 27 June 2022 (UTC)
- The version on your wiki looks nothing like the version on wikipedia. It sounds like you copied the usage instructions not the template? The end result is that you made a template that uses Sidebar with collapsible lists, instead of creating that template - hence the loop error, as you tried to define it in terms of itself. Anyways, You have to press edit or view source on the wikipedia page to see the source code of the template.
- Additionally this template requires extension:Scribunto to work, so you should install that if you want to copy it.
- If you want to copy templates, consider using the page Special:export on wikipedia (be sure to check, include templates), which will download a file, and then use Special:import on your wiki to import. This is a lot easier than manually copying. Bawolff (talk) 00:34, 28 June 2022 (UTC)
- I pasted code copied from Usage section on https://en.wikipedia.org/wiki/Template:Sidebar#Usage and Template:Sidebar text link shows up on my ModWiki | Humanity page in right sidebar.
- Per Wikipedia Special:Export page https://en.wikipedia.org/wiki/Special:Export - I search Wikipedia for Special:Export/Template:Sidebar, and this is what I get -https://en.wikipedia.org/wiki/Special:Export/Template:Sidebar
- When I copy and paste that into my Template:Sidebar page, this is what I get - https://dstall.com/MOD/index.php/Template:Sidebar
- When I upload Scribunto extension and activate it in LocalSettings, all that Template:Sidebar text is added to right div box at my Humanity page, ending in Script error: No such module "Sidebar".
- When I copy code from https://en.wikipedia.org/wiki/Module:Sidebar and paste into Module:Sidebar page on my site I get this - https://dstall.com/MOD/index.php?title=Module:Sidebar&action=submit DStallTX (talk) 14:41, 28 June 2022 (UTC)
- > Per Wikipedia Special:Export page https://en.wikipedia.org/wiki/Special:Export - I search Wikipedia for Special:Export/Template:Sidebar, and this is what I get -https://en.wikipedia.org/wiki/Special:Export/Template:Sidebar
- As i said before, you need to make sure the "include templates" checkbox is checked. You have to go through the form on special:export, writing the page name into the "add pages manually" textbox and checking the include templates checkbox, you cannot do the search for subpage thing as that will not include templates.
- > When I copy and paste that into my Template:Sidebar page, this is what I get - https://dstall.com/MOD/index.php/Template:Sidebar
- You cannot copy and paste the output of special:export. You have to use the page special:import on your wiki to import the saved file.
- > When I copy code from https://en.wikipedia.org/wiki/Module:Sidebar and paste into Module:Sidebar page on my site I get this - https://dstall.com/MOD/index.php?title=Module:Sidebar&action=submit
- You get an empty page?
- to be clear when you say you copy and paste from https://en.wikipedia.org/wiki/Module:Sidebar you actually mean from the text box on https://en.wikipedia.org/w/index.php?title=Module:Sidebar&action=edit , right ? Bawolff (talk) 16:40, 28 June 2022 (UTC)
- This is so messed up, I can't begin to tell you what I did with what result.
- Pls start over. Tell me what Wikipedia page to name for Special:Export incl template, and what within that export to copy/paste into my nav div on my ModWiki | Humanity page.
- I've gotten error message before that there's no Module:Sidebar, so pls be specific and include ALL parts/steps that are needed to get this working. Undoubtedly, there are Templates and Modules involved because I've gotten errors naming such.
- I need help understanding what's being explained at MediaWiki Manual:Importing Wikipedia infoboxes tutorial, and on Wikipedia pages - Infobox, Help:Infobox, Wikipedia:List of infoboxes.
- I need to outline this procedure step by step - including what Modules and Templates I need to setup, all pieces involved, step by step in order.
- Now I can't Special:Import because Wikibase is not installed and I have NO IDEA how to install it on shared hosting. Is that possible? If not, now I'm dead in the water! Could this be yet more complicated?
- Import failed: The lua binary (.../domains/dstall.com/public_html/MOD/extensions/Scribunto/includes/engines/LuaStandalone/binaries/lua5_1_5_linux_64_generic/lua) is not executable.
- After digging around, I was able to download and install Wikibase extension, modify composer.local.json sample file and save as .json file, and modify LocalSettings with extension registration (item 1.Enable Wikibase Repository only - 2nd item)/
- But now I get Error: Class 'Diff\Differ\MapDiffer' not found.
- After deactivating Wikibase extension in LocalSettings, I was able to successfully import MediaWiki:Common.css from Wikipedia, but now when I go to my my MediaWik:Common.css there's an internal error - MWException: The lua binary is not exectuable https://dstall.com/MOD/index.php/MediaWiki:Common.css DStallTX (talk) 17:57, 28 June 2022 (UTC)
- wikibase is very complex to install and setup. I would reccomend modifying templates to not use it if possible over trying to set it up.
- The lua binary is not executable error suggests there was an error in how you uploaded the extension files. Normally if you extract a tar archive it will maintain executable bits. To fix this you need to change permission on the file to mark it executable. How to do this depends on the type of access you have to tge server. If you have shell (ssh) or ftp access use the chmod comnand. If using cpannel,there should be some dialog in the file manager.
- Mediawiki:common.css is not a lua page, so i dont know why you would get lua errors on that page.
- I dont know why special:import would need wikibase.
- (English) Wikipedia templates can be complex to copy over. It is often less effort to make your own. Sometimes older versions of the template from many years ago are less convoluted and thus easier to copy. Bawolff (talk) 02:30, 29 June 2022 (UTC)
- I definitely wouldn't copy templates from Wikipedia as they're always so complicated. You might get ideas from them though. I also definitely wouldn't use Wikibase or Scribunto/Lua unless you're really confident about that sort of thing. Just draw out on paper what you want your infobox/box of links to look like, and figure out how to implement it. Maybe type it out here and see whether anyone can solve your specific problem rather than general ones that might not need to be solved :-) Jonathan3 (talk) 08:23, 29 June 2022 (UTC)
- Yes, I'm thinking the same, that export/import from Wikipedia is overkill for my purposes, and I'd rather KISS to minimize issues.
- I think a simple collapsible navbar in box on right side is all I really need, showing index of article series. I'm grouping all my pages into a few series like "Economy" here - https://dstall.com/MOD/index.php/Index_of_economy_articles
- There's currently only 2 categories in Economy series (but I might add more) - Agrarianism and Industrialism. Under Industrialism there's currently 5 subcategories - Capitalism, Business, Consumerism, Propaganda, and Science, with sub-subcategories in each of those.
- I need to know how to create article series box like on Wikipedia - https://en.wikipedia.org/wiki/Wikipedia:Article_series - with collapsible div boxes, text links, and triangle button (or show/hide link) so I can have expandible/collapsible lists in each box corresponding to subcategories, sub-subcategories in those, etc - however deep that may go.
- All I need is to see code sample(s) and I can take it from there. So far, code I've copied from Wikipedia hasn't worked and has just caused issues. I've tried code shown at https://en.wikipedia.org/wiki/Wikipedia:Article_series but that's for Template:History of the United States sidebar. So do I create a Template:Economy sidebar? What code do I enter in it? How do I call it on my Economy page and subpages in Economy series? DStallTX (talk) 12:05, 29 June 2022 (UTC)
- If you really want to keep it simple you could use the CategoryTree extension (which is bundled with core) and use:
{{#categorytree:Economy}}Jonathan3 (talk) 12:36, 29 June 2022 (UTC)- I activated CategoryTree extension in LocalSettings, finally figured out how to define subcategories, and got a menu working.
- But I notice that links are to Category pages. Is there any way to link to article pages from Category Tree instead of to Category pages?
- I'd rather have div boxes that I can style like the Wikipedia Article Series infobox. Is there a way to do that? - https://en.wikipedia.org/wiki/Wikipedia:Article_series DStallTX (talk) 14:06, 29 June 2022 (UTC)
- The available settings are all here: Extension:CategoryTree.
- See also: Manual:Collapsible elements.
- There are probably many better ways to do it, but there might be enough here to get you started:
<div style="float: right; width: 400px; background: orange"> <div class="mw-collapsible"> '''Economy''' <div class="mw-collapsible-content"> [[Agrarianism]] - [[Industrialism]] </div> </div> <div class="mw-collapsible mw-collapsed"> '''Industrialism''' <div class="mw-collapsible-content"> [[Capitalism]] - [[Business]] - [[Consumerism]] - [[Propaganda]] - [[Science]] </div> </div> </div>
- Economy
- Agrarianism - Industrialism
- Industrialism
- Capitalism - Business - Consumerism - Propaganda - Science
- Jonathan3 (talk) 20:46, 29 June 2022 (UTC)
- I think this could be it. Is there any reason it won't work? It's nothing but a list with CSS. Scroll down to Tree Menu Demo - https://code-boxx.com/css-collapsible-tree-menu/ I guess it all depends on what's allowd - HTML restriction
- Would be nice if php could populate the list with categories, and build page links instead of category links. Place code in template, then call navbar template on each page (just like php include).
- I just tested it; input type and label tags don't work - https://dstall.com/MOD/index.php/Government DStallTX (talk) 02:36, 30 June 2022 (UTC)
- That doesn't make sense. Economy category opens with 2 subcategories Agrarianism and Industrialism, but then the Industrialism subcategory is repeated as a category equal to Economy?
- Is there no way to redirect Category links in Category Tree to article pages instead of category pages?
- I'm looking for a nav menu that's like the Category Tree, but links to pages, and has an active function that opens tree to current page.
- For example, on Foreign Policy page, https://dstall.com/MOD/index.php/Foreign_Policy - the page should load with nav menu subcategory "Military" open to reveal "Foreign Policy" which would be active https://www.w3schools.com/html/html_links_colors.asp - with link, visited and hover functions as well.
- Search for "result" on this page - https://developer.mozilla.org/en-US/docs/Web/HTML/Element/details
- Could template be constructed (like php include) that would load nav menu in div? How do you code it so it knows when to make link a:active? DStallTX (talk) 23:48, 29 June 2022 (UTC)
- You can use Manual:Collapsible elements instead of the details thing from mdn.
- > How do you code it so it knows when to make link a:active?
- I'm not sure i understand what you are trying to do here. a:active is css syntax to mean a link that is currently being clicked.
- For category tree use mode=pages e.g. <categorytree mode="pages">Economy</categorytree> Bawolff (talk) 01:55, 1 July 2022 (UTC)
- That code produces entire category tree (Economy with Agrarianism and Industrialism subcategories) just as does other code -#categorytree:Humanity - enclosed by double braces,
- as well as an Economy stand alone link beneath the tree.
- Only the standalone Economy link connects to Economy page. Category tree links connect to category pages just like code with braces.
- I want the entire category tree (not just single link) and every link in the tree to link to pages not category pages.
- I know a:active is css syntax, and am wondering if there's a way to produce a page tree in html like a navbar menu that can have all the usual nav attributes. It could be created as a template so it only has to be edited once when new pages are added to the category, and not updated on every page.
- Or maybe more simply, if there's simply a way to force all links in category tree to pages instead of category pages, . . .
- and to force tree to open to current page - such as my Business page would force Economy tree to open not just to 2 subcategories (Agrarianism and Industrialism) but would force Industrialism to show its subcategories - Business, Capitalism, Consumerism, Propaganda, Science. DStallTX (talk) 16:06, 1 July 2022 (UTC)
- Quick side comment on lua binary executableness: My wiki is hosted at Godaddy where Installatron is used for version maintenance. Whenever Installatron does an upgrade, the execute bit in the lua binaries is not set: extensions/Scribunto/includes/engines/LuaStandalone/binaries/*/lua
- I have long since given up trying to get this fixed, and manually chmod this bit whenever I do an upgrade. So it's possible that you're getting the lua error message just by using lua, independent of everything else. Larrydberg (talk) 15:11, 30 June 2022 (UTC)
TFWiki Help
For days I’ve been getting the following message:
ERROR
The requested URL could not be retrieved
Access Denied: Blocked due to abuse coming from this location.
Access control configuration prevents your request from being allowed at this time. Please contact your service provider if you feel this is incorrect.
Your cache administrator is webmaster@tfwiki.net
(squid/2.7.STABLE9)
The following error was encountered while trying to retrieve the URL: Transformers Wiki - TFWiki.net via my WiFi. I was able to get on with my cellular data but the WiFi access causes this error page. I think this must mean my IP address is being blocked but I don't know why it would be, as I never log in and add information to the site. I'd really like to access this site via my WiFi and IP address. All other websites seem to be working. I tried to contact the webmaster@tfwiki.net but it was returned with the MAILERDAEMON not delivered message. Since TFWiki is part of you, i thought I could contact you.Please help me return to the site I love so much! Thank you!
Charlie M. Hugefart (talk) 19:18, 26 June 2022 (UTC)
- > Since TFWiki is part of you
- TFWiki is not part of us. We can't help you.
- Maybe try other common emails like info@tfwiki.net admin@tfwiki.net root@tfwiki.net etc Bawolff (talk) 00:45, 27 June 2022 (UTC)
Боковая панель
Добрый день! Я создала свою вики wiki.abiroy-team.ru, хочу добавить навигацию на страницы, установила расширение DynamicSidebar, прописала в LocalSettings информацию wfLoadExtension( 'DynamicSidebar' );но после этого мой сайт перестает работать. Также было когда я пыталась настроить всплывающие подсказки (предпросмотр ссылок). Подскажите, пожалуйста, в чем может быть проблема? 81.23.151.96 (talk) 09:34, 27 June 2022 (UTC)
- Что за версия MW? Меню настраивается в Mediawki:Sidebar Fokebox (talk) 10:34, 27 June 2022 (UTC)
- MediaWiki (RUS) 1.34 81.23.151.96 (talk) 10:51, 27 June 2022 (UTC)
Unable to set logo after using Tweeki skin as default
I have my png file in the assets folder and configured the localsetting.php with below 2 settings but none works.
$wgLogo = "/resources/assets/logo.png";
$wgLogo = [ '1x' => "$wgResourceBasePath/resources/assets/logo.png" ];
if tweeki skin is removed it works fine, can you suggest what configuration needs to be added. Saibgs (talk) 09:43, 27 June 2022 (UTC)
- Some skins use different config for logos then the default. For third party skins i would suggest consulting their documentation. Bawolff (talk) 18:07, 27 June 2022 (UTC)
- From memory - is the new array variable not $wgLogos? Jonathan3 (talk) 19:03, 27 June 2022 (UTC)
- yes i used $wgLogos but neither works, Saibgs (talk) 07:35, 28 June 2022 (UTC)
- When you use Vector does the new logo show? Jonathan3 (talk) 21:29, 28 June 2022 (UTC)
- yes Saibgs (talk) 16:11, 14 July 2022 (UTC)
Add class to pages in specific wiki category
How do I apply a class or script to pages under a certain cateogory only? When a category is created in wiki and pages are added to it, isn't there I classname I can use in to add style in Common.css to target pages under [[Category:Name]]? 180.190.212.20 (talk) 14:28, 27 June 2022 (UTC)
- I have a feeling this isn't possible.
- It's possible to have CSS per namespace though.
- Maybe the pages could be categorised via a template that contains the stuff you want (depending on what you want). Maybe you could then even use JavaScript to change things based on that. Jonathan3 (talk) 08:18, 29 June 2022 (UTC)
- Thank you. Extension:TemplateStyles seems to be the answer. I also managed to do this by using this JS code:
- $("#firstHeading:contains('keyword')") 180.190.212.20 (talk) 03:54, 30 June 2022 (UTC)
I am very new to this, so bear that in mind.
I seem to be duplicating content into my index so that its only showing the latest edits on ALL my pages (the same content) overwriting the original content I had.
What am I doing wrong? 2607:FEA8:C2DF:1D00:A992:3FFA:F2F8:9354 (talk) 19:49, 27 June 2022 (UTC)
- Please check "Post a new question" in the sidebar. Malyacko (talk) 20:54, 27 June 2022 (UTC)
Unable to edit items using website interface
I believe my issue is related to the apache configuration, is there any default configuration that I could try to solve my problem. 82.154.83.59 (talk) 12:17, 28 June 2022 (UTC)
- Please check "Post a new question" in the sidebar and provide way more information, and how you come to any conclusions. Malyacko (talk) 12:24, 28 June 2022 (UTC)
- The medawiki version in use is 1.38, the php is 7.4.19 (fpm-fcgi) and is using MariaDB version 10.3.32-MariaDB.
- The link for the database item I am trying to change is htt https://profmus.fcsh.unl.pt/static/wiki/index.php/Item:Q56
- And the the problem that I am having is access blocked for not having in the header "Access-Control-Allow-Origin", I do not know if this is solvable by changing the apache configuration and what changes should I made. Joaofalexandre (talk) 09:02, 29 June 2022 (UTC)
- I think it might be related to $wgServer in your LocalSettings.php starting with http:// instead of https:// Bawolff (talk) 16:57, 29 June 2022 (UTC)
I want to delete an account
I have had a bad experience with the editor of a website powered by WikiMedia. As a result I want to revert all my edits, which are not many and recent, and delete my account entirely from the site. I am told this is not possible. Instead, the editor has employed Blocking, which I find offensive. How can it be that I can create an account and then not delete it. This seems like a violation of rights.
Please advise the best way to proceed. I DO NOT WANT any further association with Jerripedia. 72.39.94.235 (talk) 14:15, 28 June 2022 (UTC)
- The site admins are correct that deleting an account is not a feature in mediawiki software, and blocking is the closest solution to deactivating an account. There is nothing offensive about that. You could ask the admin of that site to rename your account to further obscure your identity, or if there are not too many edits then perhaps hide your username in the edit histories, but nothing can be done about it here. Clump (talk) 15:38, 28 June 2022 (UTC)
- Just to clarify - while Jerripedia uses the mediawiki software, we (mediawiki devs) do not control them or have any power over them (or even heard of them before right now).
- In some jurisdictions you may have rights to ask a website to delete private data of you, if that's something you want to persue, you should consult with a lawyer. Bawolff (talk) 16:32, 28 June 2022 (UTC)
MWException: Error: invalid magic word 'phptag'
Hello,
After installing PhpTags-REL1_37 i have this error on every page of the site
MediaWiki internal error.
Original exception: [YrcCgsRyDlDjQjo3ifr1hQAAABE] / MWException: Error: invalid magic word 'phptag'
Backtrace:
from /home/jounot/domain1/www/includes/MagicWord.php(129)
Could you help me please?
Thank you 78.202.190.23 (talk) 15:00, 28 June 2022 (UTC)
- Perhaps a bug in the extension. I would suggest asking the extension author.
- (The other possibility is something is wrong with your localization cache, and manually purging it might help if that is the problem, but i think its much more likely to be a problem with the phptags extension) Bawolff (talk) 01:47, 1 July 2022 (UTC)
- Thank you 78.202.190.23 (talk) 18:31, 1 July 2022 (UTC)
How to make thumbnails of .tiff, .pdf, .mp4, .webm, .mov, etc files appear on their respective media pages
I'm trying to upload different files to my MediaWiki site to test out if everything was gonna work or not. The uploads were successful, but when I got to each file page for the file I uploaded, it appears that it wasn't showing the thumbnail of the file. For some weird reason, whenever I tried uploading JPEGs or PNGs the thumbnails would show up, but when I tried to upload PDFs, TIFFs, MP4s, WEBMs, MOVs, etc the thumbnails wouldn't show up (or in the case for media files the media player didn't show up). I don't know if it is some sort of extension(s) I have to install or something else but for pdfs I was expecting to see something like this: https://en.wikipedia.org/w/index.php?title=File%3ABonaparte_-_Acte_de_M%C3%A9diation%2C_1803.pdf&page=1. As for any movie or audio files, just the standard Wikimedia Commons players. And for TIFF, just the way that is done with JPEG and PNG. If anyone could help with this I would be grateful, thanks Guillaume Taillefer (talk) 20:57, 28 June 2022 (UTC)
- You need extension:TimedMediaHandler, extension:PDFHandler and extension:PagedTiffHandler Bawolff (talk) 21:12, 28 June 2022 (UTC)
- Thank you for the response! I downloaded each one (except for PDFHandler because it is already downloaded) and added their respective wfLoadExtension(); functions in LocalSettings.php. However when I tried doing the PDFHandler it wouldn't show the pdf like in the link I sent you (I even downloaded that pdf and uploaded it to my site but the problem remained). All that is added is a warning about PDFs. Then I tried the TIFF handler but the same problem happened. Finally I tried to do the TimeMediaHandler but now whenever I try to go to the pages specifically for those files my web browser gives me the error that the page is inaccessible. Thanks Guillaume Taillefer (talk) 22:08, 28 June 2022 (UTC)
- These extensions require some additional programs installed on the server which might be the issue (although often they are already installed), check their docs for details. Other than that, are there any error messages? What does mediawiki say the dimensions of the file are.
- Also if newly uploaded files work but old ones dont, you might need to purge the old pages.
- For the page inaccessible thing - make sure that php error reporting is enabled. See How to debug for details. Bawolff (talk) 01:08, 29 June 2022 (UTC)
- No there isn't any error messages for the TIFF and PDF file formats both of which show 0 x 0 dimentions. However for the case of the media player (of which this problem I was about to post about in its respective Discussion page), my browser either tells me that the page is inaccessible or the page loads and gives me this error message:
[YrucAQ2Mk-EubQoECBuYnwAAAM8] 2022-06-29 00:25:37: Fatal exception of type "Wikimedia\Rdbms\DBQueryError" - Before I didn't have ffmpeg but then I tried installing the 5.0.1 standard Linux version from this page (which was linked from the official website) https://johnvansickle.com/ffmpeg/, and extracted the files into a folder to which I linked to with the specific function ($wgFFmpegLocation), but the same problems happened. Guillaume Taillefer (talk) 02:04, 29 June 2022 (UTC)
- "No there isn't any error messages for the TIFF and PDF file formats both of which show 0 x 0 dimentions."
- I had this problem with PDFs on a shared server and couldn't get to the bottom of it, despite advice from here. When I set up a VPS from scratch it just started to work. That knowledge might or might not help you! Jonathan3 (talk) 08:15, 29 June 2022 (UTC)
- So 0x0 dimension usually means there is a problem extracting width and height. For pdfs, this usually means pdfinfo command is not installed. For tiff, i think this means identify is not installed. Sometimes these values get saved so after changing something you should upload a new file to test (or run refreshImageMetadata.php). It can also mean mediawiki cannot run external programs (check php error log. Also mediawiki debug log may have more info on precisely what command is run)
- For the timedmediahandler error - most commonly that means you need to run update.php (or the web installer) . Also consider enabling $wgShowExceptionDetails=true; in LocalSettings.php Bawolff (talk) 16:53, 29 June 2022 (UTC)
- I'm sorry for not responding for months, but do you know exactly how to download xpdf and configure it for MediaWiki? What file(s) do I put it in, do I need to extract anything, run anything, etc? Thanks Guillaume Taillefer (talk) 23:32, 12 September 2022 (UTC)
- It depends on your operating systems. On debian typically via apt get. Now a days people tend to use poppler-utils instead of xpdf. Bawolff (talk) 00:09, 13 September 2022 (UTC)
- I am using Bluehost which uses CentOS, unfortunately on a Shared Hosting account. Therefore I can't use yum, sudo, apt get, etc unfortunately. I did manage to download the tar zip file from xpdf and put it into the usr/bin/pdfinfo sub-directory and unzipped it. However whenever I try to use the command
which gs convert pdfinfo pdftotextit only gives me the results of: /usr/bin/gs/usr/bin/convert- In the INSTALL file under the folder that is created from the zip file, it says that
There is no need to "install" anything from this package. You canunpack the tar file and run the binaries directly from there.- However by "running the binaries directly from here" is what I don't exactly know what to do Guillaume Taillefer (talk) 02:07, 13 September 2022 (UTC)
- If the folder you are installing it to is not in your $PATH it wont show up in which and you have to use the full path to ru it.
- E.g. if it is in a subdirectory usr/bin /pdfinfo of the current directory you would run it as ./usr/bin/pdfinfo
- You may have to use chmod command to set the execute bit (chmod u+x path/to/file) although it may have already been done for you if its from a tar file. Bawolff (talk) 05:59, 13 September 2022 (UTC)
- So, I think I know what you mean but I want to make sure and ask some questions. The bin folder that I put the xpdf files under is under a directory (lets just call it "site"), which is also under a directory called "home". so /home/site/bin/. However through my SSH I figured out where the other two files (convert and gs) were actually located, and they weren't in /home/site/bin/. Instead I figured out that there was a parent directory above home/ with no name (lets just call it parent). Under parent (which as I found out doesn't allow for the ls command and gives you an error), I figured out that the true usr directory was under parent, and that when you go to bin under that folder, thats where all the other "scripts" such as convert and gs are. so parent/home/site/bin and parent/usr/bin. The problem is however, is that usr is a read-only directory (because I'm on shared hosting), and so I can't put, delete, or modify anything under usr. Therefore I can't put pdfinfo nor pdftotext in there. I then tried modifying $wgPdfInfo and $wgPdftoText to the correct directories to which pdfinfo and pdftotext are located, but when I go to any pdf files (even ones I uploaded after modifying the variables), the 0 x 0 problem still shows. I'm not sure if the solutions you gave have to do with this, but I wanted to explain the full problem to better solve it. Again thank you for all your help. Guillaume Taillefer (talk) 02:23, 15 September 2022 (UTC)
- For reference, what you are referring to as "parent" is usually called the root directory, or just /.
- That all sounds like the normal setup for shared hosting. Most programs are in /usr/bin (or a few other more obscure directories), but only the system administrator can add things there.
- Programs can normally be anywhere, but if they arent in the normal directory, you have to type out the full path name instead of just the program name.
- The one extra thing is the program has to have the execute permissions in order to run as a program. You can change a program permission with the chmod command.
- Some shared hosts dont let you run custom programs (perhaps via selinux rules or something), so that's a possibility that may or may not apply to you, although most hosts do allow it.
- If you enable the mediawiki debug log (see How to debug) it should include what it tried to run and errors encountered which might help with debugging.
- There are also many different types of linux. If you got precompiled binaries, its possible you have the wrong type. I would try running these commands with the full path ( so if binary is in the site directory, typing /home/site/pdfinfo ) from ssh to make sure the programs work. Bawolff (talk) 06:44, 15 September 2022 (UTC)
- So I was able to finally find a version of xpdf that supports glibc 2.12... through the wayback machine (I got 4.02 from mid-late 2020). I then replaced 4.04 with 4.02, and now the new pdftotext and pdfinfo work, except for a few problems. So the new paths that they are under is
home/site/bin/xpdf-tools-linux-4.02/bin64/(pdfinfo/pdftotext). I then ran each one with the ./ command thing before home/site/etc and they worked, giving me a list of commands to run with pdfinfo or pdftotext. However, thats basically where it ends. I tried to link each filepath with the$wgPdftoTextand$wgPdfInfovariables, each one with the filepath that I mentioned, but then I type inwhich pdfinfo pdftotextinto my SSH, and nothing shows. I then tried your chmod u+x thing for each one and each command worked without errors, but then I went back again to the which command and still nothing. Each file has all permissions set to 777, and still nothing. Guillaume Taillefer (talk) 22:35, 4 October 2022 (UTC) - Nvm, this part I actually solved, since then I added the
$wgPdfProcessor = '/usr/bin/gs';$wgPdfPostProcessor = $wgImageMagickConvertCommand;- to LocalSettings.php above the pdfinfo and pdftotext link variables (I don't know if this contributed to solving the problem, but just wanted to let future users know)
- I then ran both the refreshImageMetadata.php and rebuildImages.php scripts, and then I went back to the pdf files, and they worked!!! :) Guillaume Taillefer (talk) 23:19, 4 October 2022 (UTC)
- So I was able to finally find a version of xpdf that supports glibc 2.12... through the wayback machine (I got 4.02 from mid-late 2020). I then replaced 4.04 with 4.02, and now the new pdftotext and pdfinfo work, except for a few problems. So the new paths that they are under is
- I tried the debugging this, but no errors pop up. I have both programs set their permissions as 0777 so they can do as they want. I then tried executing each program via the ./pdfinfo and .pdftotext (I was in bin) and they gave me this error:
./pdfinfo: /lib64/libc.so.6: version `GLIBC_2.14' not found (required by ./pdfinfo/pdfinfo). I looked into it and found that I needed to download glibc 2.14 and found where I could download it from gnu. I couldn't find however where exactly to extract it for MediaWiki. Thanks Guillaume Taillefer (talk) 20:33, 18 September 2022 (UTC)- You probably dont want to just download your own libc. That gets really complicated. Its probably better to find a copy of pdfinfo that has been compiled for the version of glibc included with your OS or try compiling it yourself (also rather complex).
- if you really want to try a custom libc, read up on LD_LIBRARY_PATH, but i really reccomend against it. Bawolff (talk) 06:22, 19 September 2022 (UTC)
- I also have a problem with tiff files. The extension seems to be working, but I have three different issues. This first two go with tiff files where their title with the extension ends with .tiff. First, some tiff files do give me a thumbnail but its with a grey background with the message saying:
Error creating thumbnail: File with dimensions greater than 12.5 MP. The second type of files is when I go to them, at the top (I have debug available now lol) it gives me the following repeating error message: Notice: Undefined index: first_page in /home/site/public_html/extensions/PagedTiffHandler/includes/PagedTiffHandler.php on line 518Notice: Undefined index: last_page in /home/site/public_html/extensions/PagedTiffHandler/includes/PagedTiffHandler.php on line 531- At one point in the middle of it repeating (it repeats line 531 one more than 518), it puts the following:
Notice: Undefined index: page_count in /home/site/public_html/extensions/PagedTiffHandler/includes/PagedTiffHandler.php on line 505- The full page below with the rest of the page's content show a blank thumbnail at 0 x 0.
- Then theres the tiff files where when I upload them, they get a .tif title instead of a .tiff. When I go to the page for them, even though the files do no have two pages on them (like a pdf file) it shows the dropdown to flip to other pages (like in pdfhandler). There are two pages, the first one just being one with a thumbnail displaying the same error message with the 12.5 MP thing from above, and the second one being the actual image file. Guillaume Taillefer (talk) 21:41, 18 September 2022 (UTC)
- for the 12.5MP thing, adjust $wgMaxImageArea in LocalSettings.php Bawolff (talk) 06:23, 19 September 2022 (UTC)
- I tried increasing it to as much as
$wgMaxImageArea = 10e7;, but in all cases they say instead of 12.5MP, same message but with 100MP. Btw these things are scanns of documents of around 3200 dpi and above. I know that Mediawiki (mine especially) is able to reduce the size of the image to fit on the page because as I mentioned with a bunch of the tiffs it gives me two pages (when theres only one) of the same thing, one with the image itself, and the other exactly the same size with the error message. Also even though for the images that are displayed, if I click on "open media viewer", it gives me the error that it couldn't be displayed, retry, etc. I have no idea what I'm supposed to try and do to fix all that Guillaume Taillefer (talk) 02:43, 23 September 2022 (UTC)
- For the double paged one as well, even if I click on the one that shows the proper thumbnail, if I go into MediaViewer, it gives me an error message saying: There seems to be a technical issue. You can retry if it persists. Error: error in provider, thumb info not found Guillaume Taillefer (talk) 22:39, 18 September 2022 (UTC)
- TimedMediaHandler breaks visualeditor? Can you please explain why this happens?
- { "error": { "code": "internal_api_error_TypeError", "info": "[f16b2d79985533c31ed7fe29] Exception caught: DOMElement::setAttribute(): Argument #2 ($value) must be of type string, null given", "errorclass": "TypeError", "trace": "TypeError at Abhishek.lal (talk) 12:18, 3 November 2024 (UTC)
- Make sure you are using correct version of everything.
- https://phabricator.wikimedia.org/T350594 Bawolff (talk) 20:26, 3 November 2024 (UTC)
Gadget insert wikicode in visualEditor
Hello,
I would like a code in order to insert wikicode by the visualEditor (like <br>) so I start tocreate a tool who insert wikitext on Talk:VisualEditor/Gadgets/Add a tool (mediawiki.org) but it doesn't work. So after asking I got a code who don't work the code User:Matma Rex/nwe-nowiki.js - Wikipedia but it don't work too here my error.
So what I did wrong ? If anyone could help or have a tips with this I would be grateful, thanks. Nicolas senechal (talk) 07:51, 29 June 2022 (UTC)
Query recent changes from the last 30 seconds
Is there a way to get the last 30 seconds of recent changes? I used rcstart=(30 seconds before UNIX timestamp), but my computer's time isn't the same as the server time. Weeklyd3 (talk) 15:43, 29 June 2022 (UTC)
Mobile Nepali Wikipedia logo
- Nepali wiki's logo is currently shown in Hindi not in Nepali. It currently reads "विकिपीडिया" it should be "विकिपिडिया". Can you change it? Thanks. बडा काजी (talk) 19:07, 29 June 2022 (UTC)
- @Bada Kaji Hi, for changing stuff on Wikimedia wikis, please always follow https://meta.wikimedia.org/wiki/Requesting_wiki_configuration_changes - thanks! For general tech questions about Wikimedia wikis, see https://meta.wikimedia.org/wiki/Tech Malyacko (talk) 09:20, 30 June 2022 (UTC)
- Hi, please file a bug at https://phabricator.wikimedia.org - (optionally) in the tags section mark it as site-requests
- Because the people who process these requests dont speak nepalu or hindi, linking to a discussion about the issue on nepali wikipedia can help speed the request along. Bawolff (talk) 23:09, 29 June 2022 (UTC)
Viewing recent uploaded files at wiki farm website
Hi,
I am running wiki farm. I have set up uploading files at separate domain files.mysite.com and after uploading a file to my server I can use it at my en.mysite.com. But the proble is when I use VisualEditor to insert an image I don't see it to be appeared at recent uploaded files. Meanwhile it is appeared at files.mysite.com.
Please help to resolve the issue. Fokebox (talk) 09:15, 30 June 2022 (UTC)
(Resolved) "Fatal error: Cannot declare class ResourceLoader" after installing wikibase
Hello,
I have a small problem since the installation of Wikibase (Mandatory extension for Infobox), I have the following error message which appears "Fatal error: Cannot declare class ResourceLoader, because the name is already in use in E: \ProgramFiles\XAMPP\htdocs\*\includes\resourceloader\ResourceLoader.php on line 60"
Here's what's on line 60 of resourceLoader.php :
class ResourceLoader implements LoggerAwareInterface { /** @var int */ public const CACHE_VERSION = 9; /** @var string JavaScript/CSS pragma to disable minification. * */ public const FILTER_NAME = '/*@name*/';
How does this happen?
I'm on Windows 10, for now my wiki is in Localhost, and I'm on the latest stable version of Mediawiki.
Thanks for your future help. 2A01:CB11:68E:7F00:454A:B870:B529:16D (talk) 10:11, 30 June 2022 (UTC)
- whats the line number of the error? (Includes/ResourceLoader.php is supposed to declare it, the interesting thing is what else is declaring it)
- Also how did you install wikibase? Are you sure you actually want wikibase (easier to just modify infoboxes not to use it) Bawolff (talk) 15:11, 30 June 2022 (UTC)
- I installed Wikibase with the help of this link: Wikibase/Installation
- But to have the infoboxes you need Wikibase, right ? At least that's what it says on "Manual:Importing Wikipedia infoboxes tutorial 2A01:CB11:68E:7F00:207D:68C6:27BE:1BD1 (talk) 16:08, 30 June 2022 (UTC)
- It depends on the infobox. Often its less work to edit them to remove the wikibase dependency.
- Anyways, is there more to the error message you posted? Normally it would have some additional info.
- EDIT: I was incorrect on this. I thought the error message would include where the class was first defined, but I guess that isn't true. Bawolff (talk) 16:45, 30 June 2022 (UTC)
- Since I am French, I need the infoboxes of the French Wikipedia.
- When i try to go to my wiki i only get the message
- "E:\ProgramFiles\XAMPP\htdocs\*\includes\resourceloader\ResourceLoader.php on line 60" 2A01:CB11:68E:7F00:207D:68C6:27BE:1BD1 (talk) 16:49, 30 June 2022 (UTC)
- Hmm. Can you use a search function to try and find what other files have the text "class ResourceLoader" in them?
- [The error message basically means there are two, when there should only be one. includes\resourceloader\ResourceLoader.php is the one that is supposed to be there, so the question is, where is the other one] Bawolff (talk) 05:31, 1 July 2022 (UTC)
- Do you know how I can check? Should I check everything one by one?
- I tried to put the debug to see if it could help me but it does not change anything (I used this link for the debug : Manual:How to debug)
- Thank you 2A01:CB11:68E:7F00:205A:9EC:A33B:5C31 (talk) 17:20, 1 July 2022 (UTC)
- On linux you would use grep. I dont know enough about windows to suggest an equivalent.
- Alternatively, maybe it would be easy to start over and reinstall mediawiki. Bawolff (talk) 19:27, 1 July 2022 (UTC)
- Hello,
- I deleted and reinstalled mediawiki.
- And I noticed that Wikibase was not mandatory and that on my old wiki I forgot to put TemplateStyle.
- My new Wiki works great.
- I'm sorry to have wasted your time for nothing, especially after an error on my part.
- Thank you, however, for answering me. 2A01:CB11:68E:7F00:E95A:146D:2891:1255 (talk) 10:57, 3 July 2022 (UTC)
- Note the tutorial you are reading was changed recently to imply that wikibase is less mandatory, so not your fault. Bawolff (talk) 17:09, 4 July 2022 (UTC)
Are there skin download statistics anywhere?
I wish to download a new, non-core skin and try it on my MediaWiki 1.36.1 website.
Are there skin download statistics anywhere?
Just to know what most popular, hence somewhat likely to have more problems solved / documentation? 109.64.132.172 (talk) 15:49, 30 June 2022 (UTC)
- Or rather, skin usage statistics. 109.64.132.172 (talk) 16:34, 30 June 2022 (UTC)
- Wikiapiry has this, but its been down recently. Bawolff (talk) 16:43, 30 June 2022 (UTC)
- @Bawolff I have run a Google search on that keyword and didn't find anything.
- Perhaps it was down a long time? 109.64.132.172 (talk) 16:59, 30 June 2022 (UTC)
- I spelled it wrong. https://wikiapiary.com/wiki/Skin:Vector is the site. I think it has been down for about a month. User:MarkAHershberger might know more. Bawolff (talk) 17:28, 30 June 2022 (UTC)
Does changing the logo slow response time?
The following discussion is closed. Please do not modify it. Subsequent comments should be made on the appropriate discussion page. No further edits should be made to this discussion.
http://horawiki.org/
MediaWiki 1.37.2, PHP 7.4.29 (litespeed), MySQL 5.6.51-cll-lve, ICU 63.1, Lua 5.1.5
Hi. I'm trying to improve my wiki's response time. I suspect that the problem is mostly from the hosting platform, but here's a possibility:
Just for fun, I change the logo randomly each page view:
$logos = array(
"1","2","3","4","5","6","7","8","9","10","11","12","13",
"14","15","16","17","18","19","20","21","22","23"
);
$wgLogo = "$wgScriptPath/logos/" . $logos[array_rand($logos)] . "-thumb.jpg";
It occurs to me that perhaps this is problematic because it screws up cacheing or something. Taking it out seems to make a difference but I'm not completely sure.
So the question is: Am I shooting myself in the foot here? And if so, can I avoid the problem by hashing the page name to pick the logo, so that a given page always has the same logo?(Better: hash page name and month together, so everything re-randomizes now and then.)
Thanks for any explanation, advice, or alternatives. Larrydberg (talk) 23:29, 30 June 2022 (UTC)
- So it may slow down loading of the logo (if the user gets a logo of a page they haven't seen before). However it shouldn't slow down anything else.
- When trying to optimize for performance, you should be sure to measure your changes. It is very easy to go down wrong avenues if you dont measure things as human preception is often misleading. Web browsers have a developer tools feature that allows you to measure things. Bawolff (talk) 01:39, 1 July 2022 (UTC)