Project:Support desk/Flow/2021/10
| 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. |
Show all hooks for specific page
The following discussion is closed. Please do not modify it. Subsequent comments should be made on the appropriate discussion page. No further edits should be made to this discussion.
Is there a way to see the hooks that are called for a specific page and they order they are called in? Lorenmaxwell (talk) 01:35, 1 October 2021 (UTC)
- You could enable Profiling.
- Generally speaking though, no. Bawolff (talk) 02:45, 1 October 2021 (UTC)
- Wonderful -- that helped greatly! Lorenmaxwell (talk) 03:31, 1 October 2021 (UTC)
Is it possible to search for punctuation marks?
I have to search for all the pages that contain - > punctuation marks.
When I simply type the - > in the search field nothing is being found.
Is this type of search possible in MediaWiki? MrJConstantine (talk) 09:36, 1 October 2021 (UTC)
- If you make use of CirrusSearch and set it up correctly, you can use "insource:/regex/" to search for specific characters. —TheDJ (Not WMF) (talk • contribs) 11:17, 1 October 2021 (UTC)
Help with this error
Lua error in Module:TNT at line 159: Missing JsonConfig extension; Cannot load https://commons.wikimedia.org/wiki/Data:I18n/Uses TemplateStyles.tab. Thatnewman (talk) 12:18, 1 October 2021 (UTC)
- > Missing JsonConfig extension
- Install Extension:JsonConfig. Profit Ciencia Al Poder (talk) 16:42, 1 October 2021 (UTC)
- While you also have to configure it to use commons as a repo (not really documented), or make your own repo and copy over data namespaces (kind of annoying to do). Not exactly trivial. Bawolff (talk) 23:23, 1 October 2021 (UTC)
poi2gpx on WikiVoyage doesn't work
When trying to download GPX file (POIs) on WikiVoyage there is an error. 93.103.160.29 (talk) 14:40, 1 October 2021 (UTC)
- This is the support forum for the MediaWiki software stack, not for wikivoyage. Maybe try here https://en.wikivoyage.org/wiki/Wikivoyage:Travellers%27_pub ? —TheDJ (Not WMF) (talk • contribs) 19:02, 1 October 2021 (UTC)
Hunk #2 FAILED at 245 when applying MW 1.31.16 patch
I tried to apply the patch 1.31.16 to two 1.31.15 installations with the following result:
... checking file includes/specials/SpecialContributions.php Hunk #2 FAILED at 245. 1 out of 2 hunks FAILED checking file includes/widget/search/FullSearchResultWidget.php ... Krabina (talk) 14:48, 1 October 2021 (UTC)
- You mean this one
- https://releases.wikimedia.org/mediawiki/1.31/mediawiki-1.31.16.patch.zip on top of this one: https://releases.wikimedia.org/mediawiki/1.31/mediawiki-1.31.15.zip ???
- Worked without a hitch for me with a clean apply. Are you sure of your versions ? —TheDJ (Not WMF) (talk • contribs) 19:09, 1 October 2021 (UTC)
- yes. I downloaded the .gzip version though. All the patching went great on MW 1.35, but in both my tries with MW 1.31.15 I got the messeage above.
- In my second instance, I even had to patch the installation up to 1.15 which also went smootly, only the last patch showed the problem. Krabina (talk) 08:12, 4 October 2021 (UTC)
- so you applied multiple patches on 1.31 ? First to bring it to 1.31.15 and then to 1.31.16 ? —TheDJ (Not WMF) (talk • contribs) 10:08, 4 October 2021 (UTC)
- in one case yes. It was on 1.31.12 and I brought it up to 1.31.15 and failed with 1.31.16.
- The other installation was already on 1.31.15 (by applying patches when they were issued). Krabina (talk) 10:19, 4 October 2021 (UTC)
- k, what I think is the simplest, is to download a 1.31.5 original zip, unpack it next to your own installation (be careful not to override when unzipping). Then run diff -ruN 1.31.5-download/includes yourinstallation/includes
- just to see what the differences between the 2 bases are. —TheDJ (Not WMF) (talk • contribs) 11:10, 4 October 2021 (UTC)
- Krabina (talk) 13:43, 5 October 2021 (UTC)
diff -ruN mediawiki-1.31.15/includes/api/ApiQueryRecentChanges.php silver/includes/api/ApiQueryRecentChanges.php --- mediawiki-1.31.15/includes/api/ApiQueryRecentChanges.php 2021-06-23 16:27:44.000000000 +0200 +++ silver/includes/api/ApiQueryRecentChanges.php 2019-07-11 10:06:50.000000000 +0200 @@ -631,8 +631,8 @@ if ( isset( $params['show'] ) && $this->includesPatrollingFlags( array_flip( $params['show'] ) ) ) { - return 'private'; - } + return 'private'; + } if ( isset( $params['token'] ) ) { return 'private'; } diff -ruN mediawiki-1.31.15/includes/auth/AuthManager.php silver/includes/auth/AuthManager.php --- mediawiki-1.31.15/includes/auth/AuthManager.php 2021-06-23 16:27:44.000000000 +0200 +++ silver/includes/auth/AuthManager.php 2020-09-28 09:58:27.739140044 +0200 @@ -897,8 +897,8 @@ // When the main account's authentication data is changed, invalidate // all BotPasswords too. if ( !$isAddition ) { - \BotPassword::invalidateAllPasswordsForUser( $req->username ); - } + \BotPassword::invalidateAllPasswordsForUser( $req->username ); + } } /**@}*/ diff -ruN mediawiki-1.31.15/includes/logging/LogEventsList.php silver/includes/logging/LogEventsList.php --- mediawiki-1.31.15/includes/logging/LogEventsList.php 2021-06-23 16:27:44.000000000 +0200 +++ silver/includes/logging/LogEventsList.php 2019-07-11 10:06:56.000000000 +0200 @@ -568,7 +568,7 @@ * @return bool */ public static function userCanViewLogType( $type, User $user = null ) { - if ( $user === null ) { + if ( $user === null ){ global $wgUser; $user = $wgUser; } diff -ruN mediawiki-1.31.15/includes/specials/SpecialChangeEmail.php silver/includes/specials/SpecialChangeEmail.php --- mediawiki-1.31.15/includes/specials/SpecialChangeEmail.php 2021-06-23 16:27:44.000000000 +0200 +++ silver/includes/specials/SpecialChangeEmail.php 2019-07-11 10:06:50.000000000 +0200 @@ -61,9 +61,9 @@ parent::execute( $par ); } - protected function getLoginSecurityLevel() { - return $this->getName(); - } + protected function getLoginSecurityLevel() { + return $this->getName(); + } protected function checkExecutePermissions( User $user ) { if ( !AuthManager::singleton()->allowsPropertyChange( 'emailaddress' ) ) { diff -ruN mediawiki-1.31.15/includes/specials/SpecialContributions.php silver/includes/specials/SpecialContributions.php --- mediawiki-1.31.15/includes/specials/SpecialContributions.php 2021-06-23 16:27:44.000000000 +0200 +++ silver/includes/specials/SpecialContributions.php 2020-12-22 15:14:53.657816326 +0100 @@ -248,20 +248,20 @@ } $work = new PoolCounterWorkViaCallback( 'SpecialContributions', $poolKey, [ 'doWork' => function () use ( $pager, $out ) { - # Show a message about replica DB lag, if applicable - $lb = MediaWikiServices::getInstance()->getDBLoadBalancer(); - $lag = $lb->safeGetLag( $pager->getDatabase() ); - if ( $lag > 0 ) { - $out->showLagWarning( $lag ); - } + # Show a message about replica DB lag, if applicable + $lb = MediaWikiServices::getInstance()->getDBLoadBalancer(); + $lag = $lb->safeGetLag( $pager->getDatabase() ); + if ( $lag > 0 ) { + $out->showLagWarning( $lag ); + } - $output = $pager->getBody(); - if ( !$this->including() ) { - $output = '<p>' . $pager->getNavigationBar() . '</p>' . - $output . - '<p>' . $pager->getNavigationBar() . '</p>'; - } - $out->addHTML( $output ); + $output = $pager->getBody(); + if ( !$this->including() ) { + $output = '<p>' . $pager->getNavigationBar() . '</p>' . + $output . + '<p>' . $pager->getNavigationBar() . '</p>'; + } + $out->addHTML( $output ); }, 'error' => function () use ( $out ) { $msg = $this->getUser()->isAnon() diff -ruN mediawiki-1.31.15/includes/specials/SpecialEditTags.php silver/includes/specials/SpecialEditTags.php --- mediawiki-1.31.15/includes/specials/SpecialEditTags.php 2021-06-23 16:27:44.000000000 +0200 +++ silver/includes/specials/SpecialEditTags.php 2019-07-11 10:06:50.000000000 +0200 @@ -225,7 +225,7 @@ // phpcs:ignore Generic.CodeAnalysis.ForLoopWithTestFunctionCall for ( $list->reset(); $list->current(); $list->next() ) { $item = $list->current(); - if ( !$item->canView() ) { + if ( !$item->canView() ){ throw new ErrorPageError( 'permissionserrors', 'tags-update-no-permission' ); } $numRevisions++; diff -ruN mediawiki-1.31.15/includes/user/User.php silver/includes/user/User.php --- mediawiki-1.31.15/includes/user/User.php 2021-06-23 16:27:44.000000000 +0200 +++ silver/includes/user/User.php 2021-10-01 16:45:58.107282616 +0200 @@ -1801,8 +1801,8 @@ ? $sessionUser->getName() : IP::sanitizeIP( $sessionUser->getRequest()->getIP() ); if ( $this->getName() === $globalUserName && !$this->isAllowed( 'ipblock-exempt' ) ) { - $ip = $this->getRequest()->getIP(); - } + $ip = $this->getRequest()->getIP(); + } // User/IP blocking $block = Block::newFromTarget( $this, $ip, !$bFromSlave ); diff -ruN mediawiki-1.31.15/includes/user/UserGroupMembership.php silver/includes/user/UserGroupMembership.php --- mediawiki-1.31.15/includes/user/UserGroupMembership.php 2021-06-23 16:27:44.000000000 +0200 +++ silver/includes/user/UserGroupMembership.php 2020-05-26 14:33:37.903366159 +0200 @@ -396,7 +396,7 @@ // link to the group description page, if it exists $linkTitle = self::getGroupPage( $group ); - if ( $format === 'wiki' ) { + if ( $format === 'wiki' ) { if ( $linkTitle ) { $linkPage = $linkTitle->getFullText(); $groupLink = "[[$linkPage|$groupName]]"; @@ -407,8 +407,8 @@ if ( $linkTitle ) { $groupLink = Linker::link( $linkTitle, htmlspecialchars( $groupName ) ); } else { - $groupLink = htmlspecialchars( $groupName ); - } + $groupLink = htmlspecialchars( $groupName ); + } } if ( $expiry ) { @@ -420,9 +420,9 @@ $expiryT = $uiLanguage->userTime( $expiry, $uiUser ); if ( $format === 'wiki' ) { - return $context->msg( 'group-membership-link-with-expiry' ) - ->params( $groupLink, $expiryDT, $expiryD, $expiryT )->text(); - } else { + return $context->msg( 'group-membership-link-with-expiry' ) + ->params( $groupLink, $expiryDT, $expiryD, $expiryT )->text(); + } else { $groupLink = Message::rawParam( $groupLink ); return $context->msg( 'group-membership-link-with-expiry' ) ->params( $groupLink, $expiryDT, $expiryD, $expiryT )->escaped(); - I encountered the same problem when applying the mediawiki-1.31.16.patch on top of the 1.31.15. @Krabina did you find a solution? 2003:ED:5F08:F000:DC70:E26C:CAC0:2AF (talk) 06:17, 6 October 2021 (UTC)
- Not yet. I think it is always possible (and in our case I guess a good idea) to delete all folders except for images and other custom things (extension) and copy all files from a fresh 1.13.16 downloads in your document root.
- However, I hope that there is another solution. Thank you for mentioning that you have the same problem, this helps to relize that it is not my individual mistake. Krabina (talk) 12:02, 6 October 2021 (UTC)
- hmm. those all seem like whitespace differences you have there Krabina... maybe a patch from an earlier update had the whitspace (tab vs space) incorrect ??? —TheDJ (Not WMF) (talk • contribs) 22:07, 6 October 2021 (UTC)
- When I try to install the mediawiki-1.31.16.patch on top of the 1.31.15, the includes/specials/SpecialContributions.php is rejected. In the newly created includes/specials/SpecialContributions.php.rej I get the following log:
- 2003:ED:5F06:E300:AD5F:A404:4C52:34A2 (talk) 07:01, 7 October 2021 (UTC)
--- includes/specials/SpecialContributions.php 2021-06-23 16:27:44.768833900 +0100 +++ includes/specials/SpecialContributions.php 2021-09-30 17:44:14.791467700 +0100 @@ -245,21 +243,24 @@ $poolKey .= 'u:' . $this->getUser()->getId(); } $work = new PoolCounterWorkViaCallback( 'SpecialContributions', $poolKey, [ - 'doWork' => function () use ( $pager, $out ) { - # Show a message about replica DB lag, if applicable - $lb = MediaWikiServices::getInstance()->getDBLoadBalancer(); - $lag = $lb->safeGetLag( $pager->getDatabase() ); - if ( $lag > 0 ) { - $out->showLagWarning( $lag ); - } + 'doWork' => function () use ( $pager, $out, $target ) { + if ( !$pager->getNumRows() ) { + $out->addWikiMsg( 'nocontribs', $target ); + } else { + # Show a message about replica DB lag, if applicable + $lag = $pager->getDatabase()->getSessionLagStatus()['lag']; + if ( $lag > 0 ) { + $out->showLagWarning( $lag ); + } - $output = $pager->getBody(); - if ( !$this->including() ) { - $output = ' <p>' . $pager->getNavigationBar() . '</p> ' . - $output . - ' <p>' . $pager->getNavigationBar() . '</p> '; + $output = $pager->getBody(); + if ( !$this->including() ) { + $output = $pager->getNavigationBar() . + $output . + $pager->getNavigationBar(); + } + $out->addHTML( $output ); } - $out->addHTML( $output ); }, 'error' => function () use ( $out ) { $msg = $this->getUser()->isAnon()
preferences tab not working
All went fine till 15 september but suddenly I cant see Wikieditor and preferences tab, such as editing apperance and other. I can not click on it, it is like disabled.
https://wrestlepedia.org/index.php/Special:Preferences please help me Wpsupport (talk) 17:03, 1 October 2021 (UTC)
- Check your web browser's developer tools for potential errors, try a different browser, and/or contact wrestlepedia.org if they changed anything. Malyacko (talk) 13:34, 2 October 2021 (UTC)
- have you fixed it? I'm having the same problem. Raymondkkk1 (talk) 12:39, 12 August 2024 (UTC)
Problem with Varnish caching with Hitch
I'm using Varnish caching with Hitch for SSL on my wiki. I have finished setting up the wiki itself (Nginx) (8081) which is behind Varnish (8443) which is behind Hitch (443). I tried to access my site with SSL, but it redirects me directly to port 8081. Can anyone tell me how to fix this? I use the aaPanel control panel, so if I generate a SSL certificate there, it will automatically apply it to my port 8081 site, and Varnish doesn't support SSL. So I generated a ZeroSSL certificate and placed it in /etc/cert/cert.pem.
This is my Varnish config (/etc/varnish/default.vcl):
https://gist.github.com/wolf20482/cc7d25b8674b969437b5193c2a836dba
This is my Hitch config (/etc/hitch/hitch.conf):
https://gist.github.com/wolf20482/9a1142f6e966fc1eb59611645c7eef26
This is my Nginx virtual host config:
https://gist.github.com/wolf20482/3ce1102dc3ae2aff0aa4f33192ab7bba
My wiki web address is https://scpvncommunitywiki.xyz (it will automatically redirect to 8081, the varnish backend, as you visit it)
Everything on the wiki is fine, except that when I visit it at port 443, it redirects to 8081, which is the varnish backend.
Special:Version information
MediaWiki: 1.36.1
PHP: 7.4.24 (fpm-fcgi)
MariaDB: 10.0.38-MariaDB
PS: The problem described above only happens when I visit https://scpvncommunitywiki.xyz (domain only), not https://scpvncommunitywiki.xyz/wiki/Trang_Chính Wolf20482 (talk) 07:46, 2 October 2021 (UTC)
- What is $wgServer set to in your LocalSettings.php ?
- In your nginx you have
#REWRITE-START URL rewrite rule reference, any modification will invalidate the rewrite rules set by the panel include /www/server/panel/vhost/rewrite/scpvncommunitywiki.xyz.conf; #REWRITE-END
- Maybe its related to that? Bawolff (talk) 10:27, 3 October 2021 (UTC)
- My $wgServer is https://scpvncommunitywiki.xyz
- My $wgInternalServer is http://scpvncommunitywiki.xyz:8081 Wolf20482 (talk) 11:57, 3 October 2021 (UTC)
Cyrillic URL encode
URL problem:
Cyrillic renders correctly in MediaWiki Sidebar, but Cyrillic is encoded in articles(titles).
Example:
On other WiKi, there is no problem.
What is the problem?
MediaWiki 1.36.1
PHP 7.4.21 (apache2handler)
MariaDB 10.5.11-MariaDB-1
It is necessary to correctly display the Cyrillic alphabet in articles (headings), and encode the URL only when copying.
Thanks. 90.150.90.194 (talk) 18:24, 2 October 2021 (UTC)
- My WiKi:
- arch-cat.ru/ 90.150.90.194 (talk) 18:26, 2 October 2021 (UTC)
- I dont see anything onviously wrong when i go to your site. Can you be more specific? Bawolff (talk) 10:26, 3 October 2021 (UTC)
- Yes, the spam filter is in the way.
- When using the content(mw-toc-heading), the url is encoded. How to remove it?
- arch-cat.ru/index.php/Debian#URL encoded
- On other wiki, no problem.
- ru.wikisource.org/wiki/Александр_Сергеевич_Пушкин#URL not encoded
- When using content(mw-toc-heading), url is not encoded, encoded only when copied. How can I do the same?
- Thanks. 90.150.90.194 (talk) 19:57, 3 October 2021 (UTC)
- Oh. See Manual:$wgFragmentMode Bawolff (talk) 03:01, 5 October 2021 (UTC)
- It works, thanks. 90.150.90.194 (talk) 08:37, 5 October 2021 (UTC)
Get database without running server
We have a wiki running on a vm, but this VM got corrupted so we can't run it anymore. We do have access to the files however. Is there a way to get the database when the VM is mounted? It should be a postgresql DB. 2A02:1810:849F:2100:36EE:1645:2D7D:A3DA (talk) 22:16, 2 October 2021 (UTC)
- Probably yes, as long as the db files aren't corrupted. You should ask this on a specialist postgres forum or maybe stack overflow. Bawolff (talk) 10:25, 3 October 2021 (UTC)
Display entry in category
I have entries that are a person's name. I've flagged all of these for a specific category and use their last name as a sort key. This works great for keeping all the Smith's under the "S" subheading.
However, is there a way to indicate how each entry should be displayed on the category page?
For instance, I'd like "John Smith" to appear under the "S" category, perhaps as "Smith, John"? 174.108.83.130 (talk) 23:49, 2 October 2021 (UTC)
- Maybe extension:DisplayTitle does that, not sure Bawolff (talk) 10:23, 3 October 2021 (UTC)
- Thank you very much. It does 99% of what I want, but it is still putting "Smith, John" under "J". I'll dig further to try fix this 174.108.83.130 (talk) 18:51, 3 October 2021 (UTC)
- Fixed it using DEFAULTSORT! Now 100% solution. 174.108.83.130 (talk) 19:13, 3 October 2021 (UTC)
forgot my password
Hey.
i forgot my password, entered my email but did not revcieve the email with a new password in it.
Hopefully i recieve the email with my new password so i can log in @ modplug forum again,
Best regards,
Ronald 2A02:A46C:9AA:1:1E:B03C:6B3E:11EA (talk) 01:53, 3 October 2021 (UTC)
- If your using your own server open terminal goto ur installation directory then goto maintence and run php Createandpremote.php --force YOURUSER YOURPASSWORD 2A02:C7E:2D3D:AF00:E469:1BCB:185C:2943 (talk) 06:33, 3 October 2021 (UTC)
How to get latest modified article title?
Hey,
I wanna get 'only one' recently modified article 'TITLE' name. how can I get?
I already know that function 'SimpleChanges' to get recently modified article title, but it has <ul><li> list so that I cannot use it.
Best regards,
Smile. 58.143.52.4 (talk) 02:37, 3 October 2021 (UTC)
- If you want to display the name of the most recently modified page, I'm sure you could do that using the DynamicPageList3 extension. Jonathan3 (talk) 08:25, 3 October 2021 (UTC)
- Where do you want to get it from? As in, are you working in a php extension, js on the client side, wikitext, or a generic web api call? Bawolff (talk) 10:22, 3 October 2021 (UTC)
Magic words in JWB [solved]
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. It's been years since I've used magic words in AWB. I thought the syntax was s.t. like %%PAGENAME%%, but can't figure out how to make it work w JWB. I'd like to add a category to a batch of files that incorporates the file name. I could use { + {PAGENAME} + }, but I'd want to modify the results. (Each file conveniently starts with the first word of the appropriate cat, so with a couple runs I should be able to cat them all properly.)
Thanks, Kwamikagami (talk) 05:52, 3 October 2021 (UTC)
Solved: prepend with $x. Kwamikagami (talk) 18:44, 3 October 2021 (UTC)
Central Notice help
Hello Everyone I need help with my centralnotice.. I Already have the Extension installed and configured, it is working perfectly..... But I want the banner should be permanent with no close button.. How do I set that.??? Thatnewman (talk) 07:34, 3 October 2021 (UTC)
- I don't know the answer (sorry) but it sounds like MediaWiki:Sitenotice might work for you and be simpler. Jonathan3 (talk) 08:22, 3 October 2021 (UTC)
- Alright thanks , and one quick question... I am having a course next week and i want to learn how to understand mediawiki language perfectly.. Which language would you recommend. is it Php or which one.. Thanks Thatnewman (talk) 08:50, 3 October 2021 (UTC)
- > understand mediawiki language perfectly
- Understand what part and to what end?
- MediaWiki is mostly written in php but with some important client side bits in javascript. Bawolff (talk) 10:20, 3 October 2021 (UTC)
- Alright Thanks so Much, I really appreciate Thatnewman (talk) 12:49, 3 October 2021 (UTC)
Issue with Preferences ;- Number of edits:
Which ever i click my Preferences , and click my total edits i always get this error
[4ed30fdfb34764867a473194] /wiki/Special:Contributions/website RuntimeException: Failed to make ORES request to [https://ores.wikimedia.org/v3/scores/Username_/?format=json], There was a problem during the HTTP request: 404 Not Found
Backtrace:
from /home/Username/en.website.org/extensions/ORES/includes/ORESService.php(131)
#0 /home/Username/en.website.org/extensions/ORES/includes/Services/PopulatedSqlModelLookup.php(65): ORES\ORESService->request(array)
#1 /home/Username/en.website.org/extensions/ORES/includes/Services/PopulatedSqlModelLookup.php(56): ORES\Services\PopulatedSqlModelLookup->initializeModels(array)
#2 /home/Username/en.website.org/extensions/ORES/includes/Services/PopulatedSqlModelLookup.php(93): ORES\Services\PopulatedSqlModelLookup->getModels()
#3 /home/Username/en.website.org/extensions/ORES/includes/Hooks/Helpers.php(65): ORES\Services\PopulatedSqlModelLookup->getModelId(string)
#4 /home/Username/en.website.org/extensions/ORES/includes/Hooks/ContributionsHooksHandler.php(43): ORES\Hooks\Helpers::joinWithOresTables(string, string, array, array, array)
#5 /home/Username/en.website.org/includes/HookContainer/HookContainer.php(338): ORES\Hooks\ContributionsHooksHandler::onContribsGetQueryInfo(ContribsPager, array)
#6 /home/Username/en.website.org/includes/HookContainer/HookContainer.php(137): MediaWiki\HookContainer\HookContainer->callLegacyHook(string, array, array, array)
#7 /home/Username/en.website.org/includes/HookContainer/HookRunner.php(1336): MediaWiki\HookContainer\HookContainer->run(string, array)
#8 /home/Username/en.website.org/includes/specials/pagers/ContribsPager.php(396): MediaWiki\HookContainer\HookRunner->onContribsPager__getQueryInfo(ContribsPager, array)
#9 /home/Username/en.website.org/includes/pager/IndexPager.php(466): ContribsPager->getQueryInfo()
#10 /home/Username/en.website.org/includes/pager/RangeChronologicalPager.php(109): IndexPager->buildQueryInfo(string, integer, boolean)
#11 /home/Username/en.website.org/includes/specials/pagers/ContribsPager.php(233): RangeChronologicalPager->buildQueryInfo(string, integer, boolean)
#12 /home/Username/en.website.org/includes/pager/IndexPager.php(278): ContribsPager->reallyDoQuery(string, integer, boolean)
#13 /home/Username/en.website.org/includes/pager/IndexPager.php(733): IndexPager->doQuery()
#14 /home/Username/en.website.org/includes/specials/SpecialContributions.php(305): IndexPager->getNumRows()
#15 /home/Username/en.website.org/includes/specialpage/SpecialPage.php(646): SpecialContributions->execute(string)
#16 /home/Username/en.website.org/includes/specialpage/SpecialPageFactory.php(1386): SpecialPage->run(string)
#17 /home/Username/en.website.org/includes/MediaWiki.php(309): MediaWiki\SpecialPage\SpecialPageFactory->executePath(Title, RequestContext)
#18 /home/Username/en.website.org/includes/MediaWiki.php(913): MediaWiki->performRequest()
#19 /home/Username/en.website.org/includes/MediaWiki.php(546): MediaWiki->main()
#20 /home/Username/en.website.org/index.php(53): MediaWiki->run()
#21 /home/Username/en.website.org/index.php(46): wfIndexMain()
#22 {main} Thatnewman (talk) 08:54, 3 October 2021 (UTC)
- Might i suggest either disabling, reconfiguring or updating the ORES extension? Bawolff (talk) 10:19, 3 October 2021 (UTC)
Fatal error on loading Main page
Hey All.
I upgraded (actually newly installing and transfering DB) MW from 1.34.0 to 1.36.2.
I think all DBs are succesfully installed but it makes error on Main page.
[ type fatal error on "Wikimedia\Timestamp\TimestampException" ]
when I added [ $wgShowExceptionDetails = true; ] on LocalSettings.php, it prints out.
[e75cdd34c72b56a4aa946b1d] /index.php?title=%EB%8C%80%EB%AC%B8 Wikimedia\Timestamp\TimestampException: Wikimedia\Timestamp\ConvertibleTimestamp::setTimestamp: Invalid timestamp - 2.02E+13
Backtrace:
from /var/www/clients/client338/web1632/web/vendor/wikimedia/timestamp/src/ConvertibleTimestamp.php(240)
#0 /var/www/clients/client338/web1632/web/vendor/wikimedia/timestamp/src/ConvertibleTimestamp.php(165): Wikimedia\Timestamp\ConvertibleTimestamp->setTimestamp()
#1 /var/www/clients/client338/web1632/web/includes/Revision/RevisionStoreRecord.php(73): Wikimedia\Timestamp\ConvertibleTimestamp->__construct()
#2 /var/www/clients/client338/web1632/web/includes/Revision/RevisionStoreCacheRecord.php(67): MediaWiki\Revision\RevisionStoreRecord->__construct()
#3 /var/www/clients/client338/web1632/web/includes/Revision/RevisionStore.php(1763): MediaWiki\Revision\RevisionStoreCacheRecord->__construct()
#4 /var/www/clients/client338/web1632/web/includes/Revision/RevisionStore.php(1569): MediaWiki\Revision\RevisionStore->newRevisionFromRowAndSlots()
#5 /var/www/clients/client338/web1632/web/includes/Revision/RevisionStore.php(3217): MediaWiki\Revision\RevisionStore->newRevisionFromRow()
#6 /var/www/clients/client338/web1632/web/includes/page/WikiPage.php(873): MediaWiki\Revision\RevisionStore->getKnownCurrentRevision()
#7 /var/www/clients/client338/web1632/web/includes/page/WikiPage.php(912): WikiPage->loadLastEdit()
#8 /var/www/clients/client338/web1632/web/includes/page/Article.php(393): WikiPage->getRevisionRecord()
#9 /var/www/clients/client338/web1632/web/includes/page/Article.php(660): Article->fetchRevisionRecord()
#10 /var/www/clients/client338/web1632/web/includes/page/Article.php(561): Article->generateContentOutput()
#11 /var/www/clients/client338/web1632/web/includes/actions/ViewAction.php(74): Article->view()
#12 /var/www/clients/client338/web1632/web/includes/MediaWiki.php(531): ViewAction->show()
#13 /var/www/clients/client338/web1632/web/includes/MediaWiki.php(315): MediaWiki->performAction()
#14 /var/www/clients/client338/web1632/web/includes/MediaWiki.php(913): MediaWiki->performRequest()
#15 /var/www/clients/client338/web1632/web/includes/MediaWiki.php(546): MediaWiki->main()
#16 /var/www/clients/client338/web1632/web/index.php(53): MediaWiki->run()
#17 /var/www/clients/client338/web1632/web/index.php(46): wfIndexMain()
#18 {main}
I think this means that there was a timestamp with 2.02E+13 but I cannont find it. I guess that There wound be time difference error because it print out the time now as 2021-10-03 18:05:35 but it is 2021-10-04 03:06:35 here in Korea. (9 hours difference)
I don't know how I can fix it. can somebody help me? 58.143.52.4 (talk) 18:07, 3 October 2021 (UTC)
- I think maybe a timestamp is missing a digit and its interpreting it as a unix timestamp instead.
- Normal timestamps are 14 digits in YYYYMMDDHHMMSS.
- for the page in question, you could check in db what is the page_latest foeld for that page, which gives you a revision id. You could see what rev_timestamp is set to for the revision that has a rev_id matching the page_latest field. Bawolff (talk) 02:59, 5 October 2021 (UTC)
correction to my previous complaint, it s map 4,283,503, american homefront, We can not research Medium tanks till day 4 how is it possible for North California able to have produced them allready
The following discussion is closed. Please do not modify it. Subsequent comments should be made on the appropriate discussion page. No further edits should be made to this discussion.
This is an outragiously unfair practice and will be reported to the gaming commision 2604:2D80:690D:BB00:34C3:5FE8:D820:345 (talk) 22:23, 3 October 2021 (UTC)
- You are in the wrong place. Please do read the sidebar. Malyacko (talk) 09:09, 4 October 2021 (UTC)
Hide Main Page title, the second one
Hello Everyone i need help hiding my main page title..
I added body.page-Main_Page.action-view h1.firstHeading, body.page-Main_Page.action-submit h1.firstHeading { display: none; } on my css and it worked... But the other one is still showing.
Main Page
From Wikipedia
The One Showing (From Wikipedia) is still showing.. How can i remove it also. Thatnewman (talk) 23:46, 3 October 2021 (UTC)
Right-to-Left issue: Flip parenthesis inside a link
MediaWiki 1.36.1 in Hebrew.
In the following text, the parenthesis adjacent to the English text should appear from the right but appears from the left.
[[מתודת document.write()]]
I tried to fix it with a template changing right to left.
Template:מל
<span dir="ltr">{{{1}}}</span>
Input
[[מתודת {{מל|document.write()}}]]
Output
[[מתודת document.write()]]
My question
As my fix try failed, how would you suggest to try to fix it? 49.230.58.235 (talk) 00:41, 4 October 2021 (UTC)
- I think that's just how the HTML pre tag works. Jonathan3 (talk) 11:36, 4 October 2021 (UTC)
[[מתודת ()document.write]]
You could just type it the wrong way round :-) Jonathan3 (talk) 13:49, 4 October 2021 (UTC)
- @Jonathan3 thanks, I really want to avoid such tricks to ensure easy maintenance in the long run.
- I might do it with JavaScript though. 49.230.62.107 (talk) 15:25, 4 October 2021 (UTC)
- What effect (overall) are you trying to achieve? Jonathan3 (talk) 16:57, 4 October 2021 (UTC)
- @Jonathan3
- Just that the parenthesis in the output will be on the right. 49.230.62.107 (talk) 01:35, 5 October 2021 (UTC)
welcome to BIDI land!
So computers don't know if the parenthesis go with the hebrew or the english text.
One way to fix: add ‎ immediately after the parenthisis. This is an invisible character called a LEFT-TO-RIGHT MARK that looks like an english character in terms of directionality. If () is surrounded by "english" characters (including ‎) on both sides they should behave like english parenthesis
[[מתודת document.write()‎]]
The other alternative is like you were doing with the direction tag, but just for the english part.
[[מתודת document.write()|מתודת <span dir="auto">document.write()</span>]]
As you can see, the wikitext source looks messed up but it should look fine when rendered. (Dir=auto is newer compared to dir=ltr. Its a bit less confusing how it works compared to dir=ltr. Either should work in this case.).
if typing it out in a ltr wiki, the wikitext source looks like
[[מתודת document.write()|מתודת <span dir="auto">document.write()</span>]]
There are also some other override characters. Honestly, they are rarely needed and a bit confusing how they work and difficult to type. 99% of the time ‎ ‏ (Or equivalently &רלמ; . RIGHT-TO-LEFT MARK is the only one with a hebrew equivalent. The hebrew equivalent is a custom mediawiki thing and doesn't work in normal html) and <span dir=auto>. If you want to learn more on the subject see https://www.w3.org/International/articles/inline-bidi-markup/uba-basics and https://www.w3.org/International/articles/inline-bidi-markup/ which also lists the more obscure control characters and what they do. Bawolff (talk) 02:47, 5 October 2021 (UTC)
- Thanks a lot Bawolff, I should seek some single-character-character which represents the multi-character-character ‎ 49.230.62.107 (talk) 03:57, 5 October 2021 (UTC)
- Things starting with & in wikitext are just another way to write a character. E.g. you can write → directly or you can do → which will make the same character.
- Similarly, you can write ‎ directly. It can just be difficult because its an invisible character, so its hard to copy and paste. On windows you can insert by holding down alt, typing a + character and then 200E (200F if you want rlm instead of lrm) Bawolff (talk) 00:27, 6 October 2021 (UTC)
Update error v.1.32 to 1.36: Main slot of revision not found in database.
We're upgrading a Mediawiki website from version 1.22 to 1.36, but for sure on process, we are making release by release. We reached until version 1.34 with some warnings, but all solved. The issue is from version 1.34 > 1.35, the message next:
[2da7d6b00d8c220c100c264d] / MediaWiki\Revision\RevisionAccessException: Main slot of revision not found in database. See T212428.
Backtrace:
from /var/www/wiki/includes/Revision/RevisionStore.php(1479)
#0 /var/www/wiki/includes/Revision/RevisionStore.php(1409): MediaWiki\Revision\RevisionStore->constructSlotRecords(string, Wikimedia\Rdbms\ResultWrapper, integer, Title)
#1 /var/www/wiki/includes/Revision/RevisionStore.php(1405): MediaWiki\Revision\RevisionStore->loadSlotRecords(string, integer, Title)
#2 /var/www/wiki/includes/Revision/RevisionStore.php(1518): MediaWiki\Revision\RevisionStore->loadSlotRecords(string, integer, Title)
#3 [internal function]: MediaWiki\Revision\RevisionStore->MediaWiki\Revision\{closure}()
#4 /var/www/wiki/includes/Revision/RevisionSlots.php(167): call_user_func(Closure)
#5 /var/www/wiki/includes/Revision/RevisionSlots.php(109): MediaWiki\Revision\RevisionSlots->getSlots()
#6 /var/www/wiki/includes/Revision/RevisionRecord.php(181): MediaWiki\Revision\RevisionSlots->getSlot(string)
#7 /var/www/wiki/includes/Revision/RevisionRecord.php(164): MediaWiki\Revision\RevisionRecord->getSlot(string, integer, NULL)
#8 /var/www/wiki/includes/cache/MessageCache.php(1207): MediaWiki\Revision\RevisionRecord->getContent(string)
#9 /var/www/wiki/includes/libs/objectcache/wancache/WANObjectCache.php(1707): MessageCache->{closure}(boolean, integer, array, NULL, array)
#10 /var/www/wiki/includes/libs/objectcache/wancache/WANObjectCache.php(1539): WANObjectCache->fetchOrRegenerate(string, integer, Closure, array, array)
#11 /var/www/wiki/includes/cache/MessageCache.php(1227): WANObjectCache->getWithSetCallback(string, integer, Closure)
#12 /var/www/wiki/includes/libs/objectcache/BagOStuff.php(208): MessageCache->{closure}(integer)
#13 /var/www/wiki/includes/cache/MessageCache.php(1229): BagOStuff->getWithSetCallback(string, integer, Closure)
#14 /var/www/wiki/includes/cache/MessageCache.php(1131): MessageCache->loadCachedMessagePageEntry(string, string, string)
#15 /var/www/wiki/includes/cache/MessageCache.php(1039): MessageCache->getMsgFromNamespace(string, string)
#16 /var/www/wiki/includes/cache/MessageCache.php(1010): MessageCache->getMessageForLang(Language, string, boolean, array)
#17 /var/www/wiki/includes/cache/MessageCache.php(952): MessageCache->getMessageFromFallbackChain(Language, string, boolean)
#18 /var/www/wiki/includes/language/Message.php(1377): MessageCache->get(string, boolean, Language)
#19 /var/www/wiki/includes/language/Message.php(895): Message->fetchMessage()
#20 /var/www/wiki/includes/language/Message.php(987): Message->format(string)
#21 /var/www/wiki/includes/Title.php(687): Message->text()
#22 /var/www/wiki/includes/MediaWiki.php(136): Title::newMainPage()
#23 /var/www/wiki/includes/MediaWiki.php(156): MediaWiki->parseTitle()
#24 /var/www/wiki/includes/MediaWiki.php(874): MediaWiki->getTitle()
#25 /var/www/wiki/includes/MediaWiki.php(546): MediaWiki->main()
#26 /var/www/wiki/index.php(53): MediaWiki->run()
#27 /var/www/wiki/index.php(46): wfIndexMain()
#28 {main} Mauricioadriano (talk) 15:12, 4 October 2021 (UTC)
- The title is "1.32" because I identified major changes from 1.32 to 1.33, so I think better recover the backup of this version... but the return was the same. I also have the log of the execution of update.php. Mauricioadriano (talk) 15:20, 4 October 2021 (UTC)
- Does info at phab:T212428 help? Bawolff (talk) 02:28, 5 October 2021 (UTC)
- yes Bawolff, I did. Mauricioadriano (talk) 19:08, 13 October 2021 (UTC)
Creating New Footer Icon
Hello i am trying to customize new footer icon
$wgFooterIcons['poweredby']['myicon'] = [
"src" => "/path/to/my/image.png",
// you may also use a direct path to the source, e.g. "http://example.com/my/custom/path/to/MyCustomLogo.png"
"url" => "http://example.com/",
"alt" => "Some text here...",
// For HiDPI support, you can specify paths to larger versions of the icon.
"srcset" =>
"/path/to/1.5x_version.png 1.5x, " .
"/path/to/2x_version.png 2x",
// If you have a non-default sized icon you can specify the size yourself.
"height" => "31",
"width" => "88",
];
I know where to add text and url... which of them will i edit to the image path.... Thatnewman (talk) 16:35, 4 October 2021 (UTC)
- The one labelled src.
- Srcset is optional, its used to load higher resolution versions on browsers like iphones where the screen is higher resolution than normal screens. If you dont want that just dont include a srcset key. Bawolff (talk) 02:26, 5 October 2021 (UTC)
I can't get my Wiki website to get indexed by Google Search Console
Hello, everyone.
I just created my MediaWiki website 2 days ago. I'm used to WordPress websites and have experience with PHP and SEO but the MediaWiki stuff is somewhat new to me. My website is working perfectly, I'm using Google Analytics with no issues and I ran a bunch of OnPage SEO reports which say my website is fully working.
However, I added my MediaWiki website in Google Search Console and in URL inspection tool, when I ask Google Search Console to index my website, they refuse indexation based on results in the real time test. In this real time results my site doesn't even get crawled. Also, I have a fully working sitemap.xml file which I added with AutoSitemap extension for MediaWiki. My XML sitemap is getting indexed by some other bunch of 3rd party tools around the internet, but Google can't recognize the file in Search Console.
My Wiki is this one, in pt_BR language: https://newworld.wiki.br/
Does anyone have experience with what I should do in this situation? Anything to point me to the right place? Thanks a lot! 2804:14D:90A8:8251:8906:3583:833B:9FF0 (talk) 17:15, 4 October 2021 (UTC)
- What's the reason google search console gives for refusing to index? Bawolff (talk) 02:23, 5 October 2021 (UTC)
Can't Edit Main Page after Deleting Revisions
Is there a way to overcome the following error?
MWexception ... could not find text for current revision
It prevents the user from editing the Main page.
Said user is a teacher in our network who has been using MediaWiki since 2009 to get learners to create a knowledge base. This semester, a student pointed out that it was possible to use page history to access pages from previous years. In this case, that'd be a strategy to cheat in the assignment.
One solution found was to delete revisions.
Help:RevisionDelete - MediaWiki
This was done directly in the database. And it was working... until the user deleted revisions for the Main page.
Now, the Main page says that revision number NNNN doesn't exist and that it should be solved in the deletion log... which is empty.
Attempting to edit the Main page produces the aforementioned exception (which is apparently a “Sanity check for bug 37225”).
Adding and editing other pages still works.
The database backup would be difficult to retrieve.
What's the best course of action, at this point? Is there a way to create a new Main page? Creating a blank revision?
Thanks! AlexEnkerli (talk) 18:33, 4 October 2021 (UTC)
- > This was done directly in the database. And it was working... until the user deleted revisions for the Main page.
- The page you linked does not suggest directly editing the db. Can you list exactly what commands you did?
- Generally speaking,bad things happen when you delete the most recent revision of a page (you should first make a new revision without the info and delete the old one).
- If you just modified rev_deletrd field you could just set it back to 0 on the page in question. If you actually deleted the whole row, you could try putting it back, or just delete the whole page entirely and recreate it. Bawolff (talk) 02:22, 5 October 2021 (UTC)
- @Bawolff: The teacher did delete the entire row for the latest revision. So I guess the best thing to do is to delete the page. How do we recreate it afterwards? (I did retrieve the Main page's content from a cache. I just want to know how to create a new Main page.)
- Of course, you're right, the instructions didn't talk about the db. The teacher and a ped counsellor were already using the db to delete pages in bulk. I do realize it wasn't the proper approach. It's the one which was most compatible with existing practice.
- For reference, here's how it went:
- We all went to the `revision` table and tested with a single revision, then with revisions for the same page. Once we checked that it had the desired result, we set about doing the same for all the other unwanted revisions. If memory serves, there were 17k of them.
- With the `revision` table set to 250 rows, we'd select all rows, unselect the initial and most recent revisions, and click delete. The teacher finished that process.
- So... As long as I know how to create a new Main page, I guess it'll be the best approach. Maybe I'll try that on a separate instance. AlexEnkerli (talk) 15:36, 5 October 2021 (UTC)
- There is a workaround. Create a new page called "Main Page new". Put some content in it. Then move "Main Page new" to "Main Page" and let it overwrite the old one. Buster2223 (talk) 23:41, 6 October 2021 (UTC)
Trouble with transfer/upgrading
I have a wiki at https://www.informationism.orgthat I had hosted at Siteground. Because it was going to cost me so much to continue hosting it there I moved to Hostinger and got them to transfer the site. However after transfer there was no content on the pages. This issue may be a well known one: Project:Support desk/Flow/2015/03#h-Page_Content_not_showing._Header_&_side_menu_show.-2015-03-17T22:07:00.000Z and Manual:Common errors and symptoms#All pages have no content.2C but when editing a page the wiki text is there
The advice is to upgrade which I attempted to do so. However when I upgraded I got the message that the wiki couldn't access the database. So now I have two installations of mediawiki that don't work and Hostsinger say they can't help because they are not "software developers" is there anyone here who could help me get back on my feet? Andrewrutherford (talk) 23:23, 4 October 2021 (UTC)
- Hmm mw 1.16 and php 5.3. That is pretty old. So yeah, you need to upgrade mediawiki (or downgrade pcre that php is linked to)
- To start with, to upgrade mw you would have to upgrade php.
- If command line php says it cant connect to db, that might meandb drivers are not installed for it or not enabled in php.ini. remember that cli php is totally different than web php and can have different version or config. Bawolff (talk) 02:15, 5 October 2021 (UTC)
- Thanks very much for your help. On my new installation: https://www.informationism.org/mediawiki-1.25.2/index.php It says:
- =Sorry! This site is experiencing technical difficulties.=
- Try waiting a few minutes and reloading.
- (Cannot access the database)
- Is there any advised quick fix for this? Andrewrutherford (talk) 07:49, 5 October 2021 (UTC)
- Sounds rough. Make sure you keep good backups. Keep in mind you'll run into trouble with different versions of mediawiki, mysql, and php.
- I think your best bet is to do gradual upgrades until you get to a Mediawiki version that supports php7.1. Then do a dump and a fresh install on the new server. (to change to 7.1 How to Change the PHP Version of Your Website – Hostinger Tutorials)
- It's kind of lame that your new host didn't know this. Another route might be just get a refund and try someone else. Buster2223 (talk) 19:53, 5 October 2021 (UTC)
Duplicate rows in Cargo
I have installed mediawiki and Cargo 3.0, using Postrgesql 13. I am following the book catalog example and have got it mostly working. However, I get duplicate rows of books. How can I fix this? Lbundle (talk) 01:39, 5 October 2021 (UTC)
- This is a known problem - best to head over to Cargo's talk page with full details.
- My workaround is to use GROUP BY in all queries, and periodically to recreate the tables... Jonathan3 (talk) 08:27, 5 October 2021 (UTC)
How do I delete or edit the Donate link in side bar
How can i edit the donate link in side bar. Thatnewman (talk) 05:57, 5 October 2021 (UTC)
- Side bar can be edited at: Mediawiki:Sidebar Fokebox (talk) 07:40, 5 October 2021 (UTC)
- See manual:Sidebar Bawolff (talk) 02:49, 6 October 2021 (UTC)
Creating Two media wiki on same domain
Hello I don't know if this is a good idea.
For Example I have a wiki website that function like Wikipedia to at www.en.website.com and I am trying to create another website that function like wikidata.
www.wikidata.website.com... Which is I created my wiki on a subdomain and I want to create another wiki on another subdomain... What do you think? Should i continue or i should buy different hosting for the wikidata.
Just Like the way there is Wikipedia and simple.wikipedia Thatnewman (talk) 16:43, 5 October 2021 (UTC)
- Doesn't really matter, do whichever meets your needs. Bawolff (talk) 02:49, 6 October 2021 (UTC)
Problems with a project (links)
Hello there,
The problem is that when respondents click on the link, a blank screen appears, it is random, in some cases it happens yes and in others it does not. It is also that the password is incorrect although it is not, refreshing the page loads correctly.
We did the test on another server by exporting the survey and importing it and the same thing happens to us.
We want to know if the problem may be in the design of the form or is it a limesurvey bug and if someone can give us a solution or tip. Paulo Nuchi (talk) 17:04, 5 October 2021 (UTC)
- @Paulo Nuchi We are not Limesurvey. You'll have to contact Limesurvey for Limesurvey questions. See the sidebar. Malyacko (talk) 20:03, 5 October 2021 (UTC)
Thumbnail error in page
Hello Team ,
I am getting error in Employees:Data_Science page.
Error creating thumbnail: File with dimensions greater than 12.5 MP.
Thanks Akki30 (talk) 05:52, 6 October 2021 (UTC)
- Please see this- [Thumbnail error] or you can change the picture size manually. ↠Tanbirzx (✉) 08:45, 6 October 2021 (UTC)
- Manual:$wgMaxImageArea Bawolff (talk) 12:55, 7 October 2021 (UTC)
JavaScript to search on double click but not when editing page
Using 1.31.16. and trying to achieve site search on double click on a word, but without having it triggered when editing a page. What I have so far is triggered even when double clicking while editing a page.
document.addEventListener("dblclick", function () {
var w = String(window.getSelection());
if (w){
location.href="https://lsj.gr/index.php?search=" + encodeURIComponent(w)
}
});
Spiros71 (talk) 07:06, 6 October 2021 (UTC)
- Try looking at mw.config.get("wgAction") Bawolff (talk) 12:54, 7 October 2021 (UTC)
- Yes, that did it thanks! Spiros71 (talk) 14:46, 7 October 2021 (UTC)
- Is it possible not to have it triggered when a user is logged in? Spiros71 (talk) 09:19, 8 October 2021 (UTC)
- Use
mw.user.isAnon(). Also read docs – Ammarpad (talk) 16:15, 9 October 2021 (UTC) - Thanks! Spiros71 (talk) 07:47, 10 October 2021 (UTC)
translate : regression in the display of items to translate
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 always use skin Vector and in my preferences, the "police style in modification area" I chosed -> Fixed case (i.e. style Courrier)
When I go to the list of items to translate via => Special:Translate
the text appears in the font of the page (police without serif) as always => ok. When I click on an item to translate it, BOTH the english text AND the text of the modification area appear now in fixed case (in previous versions ONLY the translated text was concerned and the english text remain in police without serif).
Regression:
- font of english text MUST not be changed since it is NOT concerned by the preference option
- font of english text must remain the reference of what is displayed on the web page
- lost of immediate visual performance about the text i translate (the EN origin, the FR target)
- lose of space ont the page - in this case
Nb: skin Vector new or old dont solve the problem.
Any idea ?
Christian 🇫🇷 FR (talk) 10:53, 6 October 2021 (UTC)
- That is intentional, see phab:T291147 Malyacko (talk) 10:08, 7 October 2021 (UTC)
- If it was intentional :-( ...
- Welcome to the proposed workaround :-)
- "If you absolutely do want a monospace editor and a sans-serif source message, add the following to your common.css." :
.mw-special-Translate .sourcemessage.mw-editfont-monospace {font-family: inherit;}- Christian 🇫🇷 FR (talk) 16:48, 8 October 2021 (UTC)
- well done, it works when creating user common.css subpage with the proposed contents - previous aspect has been restored !
- Thanks.
- Christian 🇫🇷 FR (talk) 16:57, 8 October 2021 (UTC)
Documentation on the benefits of Elasticsearch in Wikibase and what is missing without?
have had a look at each of the documentation links but I am still coming up short on why a user would need to run Elasticsearch as an extra feature, and what is missing without. Is there anything anyone can point to? Or if it's missing from the docs, is it something we can contribute to filling in? Beet keeper (talk) 12:44, 6 October 2021 (UTC)
How to enable Search results Box
Hello i want to enable the box that appear when ever you search something see screenshot below. https://prnt.sc/1v0tdf1 Thatnewman (talk) 13:00, 6 October 2021 (UTC)
Suddenly magic word isn't effective
MediaWiki 1.36.1
I have checked various webpages which got the __NOINDEX__ magic word in the start of their input and in all of them didn't have <meta name="robots" content="noindex"> anywhere in the output HTML source (CTRL+U).
In previous checks a few months back all webpages I checked had it and I don't know what happened that suddenly they don't; what's worth checking? 49.230.57.142 (talk) 13:35, 6 October 2021 (UTC)
- Maybe Manual:$wgExemptFromUserRobotsControl? Jonathan3 (talk) 17:34, 6 October 2021 (UTC)
- Thanks Jonathan3.
- Firstly, I should apologize for my wrong deduction in the original post; by "all webpages I checked had it" I actually meant to different webpages that are created by the system and confused that I got the same test result for the aforementioned articles.
- I also never worked with Manual:$wgExemptFromUserRobotsControl before.
- ==Change==
- I have added to LocalSettings.php the following code line:In my understanding it means "Don't restrict any
$wgExemptFromUserRobotsControl = [];
__NOINDEX__and/or__INDEX__magic words;". - ==Outcome==
- After the change I have tested several articles to which I have added
__NOINDEX__and all these had<meta name="robots" content="noindex,follow"/>in their source code. - I also tested several articles to which I didn't add
__NOINDEX__and all these didn't have<meta name="robots" content="noindex,follow"/>. - So it seems to me that now the website works as exptected. 49.230.62.230 (talk) 19:57, 6 October 2021 (UTC)
- Good :-) Jonathan3 (talk) 21:05, 6 October 2021 (UTC)
Main page title not visible in URL when $wgUseFileCache is enabled
The following discussion is closed. Please do not modify it. Subsequent comments should be made on the appropriate discussion page. No further edits should be made to this discussion.
Hey,
I'm having some kind of problem with displaying the main page title in the URL when $wgUseFileCache is enabled. When I access my domain by simply entering domain.com in the URL I get taken to my wiki and the URL looks like domain.com/wiki/. The main page title is not shown in the URL unless I enter it manually domain.com/wiki/Main_Page_Title Both ways work but I would like to show the main page title at all times, even when $wgUseFileCache is enabled. Is that possible? Could someone please point me in the right direction? Mukilol2 (talk) 16:05, 6 October 2021 (UTC)
- Id suggest apache rewrite rules Bawolff (talk) 12:52, 7 October 2021 (UTC)
Migrate Mediawiki to new server and upgrade it
The following discussion is closed. Please do not modify it. Subsequent comments should be made on the appropriate discussion page. No further edits should be made to this discussion.
We are currently running Mediawiki 1.15 on CentOS release 6.10, plan is to migrate to Centos 7 and upgrade at the same time. Can you please advise how I should do it ?
1) Migrate MW 1.15 to new server and then upgrade
Or
2) Install MW 1.35 with latest mysql, php etc.. and migrate
Thanks,
Pritesh Pritesh j thakkar (talk) 17:17, 6 October 2021 (UTC)
- I spent ages finding Project:Support desk/Flow/2021/09#h-Need_some_help_with_upgrading_mediawiki-2021-09-14T12:52:00.000Z which is pretty much the same question, then realised you'd asked that question too :-) Jonathan3 (talk) 17:29, 6 October 2021 (UTC)
- I have been trying 1) moving existing version and upgrade 2) building new server with packages required for 1.35 and migrate but not any luck so wanted to make sure what approach I should be taking.
- Appreciate if you could provide some input.
- Thanks, Pritesh j thakkar (talk) 18:39, 6 October 2021 (UTC)
- Just download everything new on the new server, transfer across your LocalSettings.php and whatever else like images, and the old database, and run update.php. Jonathan3 (talk) 21:03, 6 October 2021 (UTC)
- Though there are lots of pages about this so it's best to follow them rather than only what I've written above :-) Jonathan3 (talk) 21:03, 6 October 2021 (UTC)
- Definitely try number 2. What does "not any luck" mean? Jonathan3 (talk) 21:04, 6 October 2021 (UTC)
- I agree, 2 will be easier most likely Bawolff (talk) 12:51, 7 October 2021 (UTC)
- Thank you @Jonathan3 @Bawolff
- I managed to get it fixed, it was all working on a new mediawiki server. I am trying to refresh mysql db again since there are some new pages created by users that I would like to refresh db with. I tried to do that and now I am seeing following error :
- mysqldump -u <user> -p<pass>wikidb -c --skip-lock-tables > wikidb.sql
- gunzip -c wikidb.sql.gz | sudo mysql -C -u <user>-p wikidb
- php update.php
- Received following error :Original exception: [YWmRkgNQLmsYaojzRST7gQAAAAI] [no req] Wikimedia\Rdbms\DBQueryError from line 1699 of /var/www/html/mediawiki/includes/libs/rdbms/database/Database.php: A database query error has occurred. Did you forget to run your application's database schema updater after upgrading?
- So tried running php migrateComments.php
- php migrateComments.php
- ...comments already migrated.
- Can you please advise how I can fix following error ?
- MediaWiki internal error.
- Original exception: [YWmVIxnDqojwmKP6L2q8EgAAAAU] [no req] Wikimedia\Rdbms\DBQueryError from line 1699 of /var/www/html/mediawiki/includes/libs/rdbms/database/Database.php: A database query error has occurred. Did you forget to run your application's database schema updater after upgrading?
- Error 1054: Unknown column 'ct_tag_id' in 'on clause' (localhost)
- Function: IndexPager::buildQueryInfo (NewPagesPager)
- Query: SELECT rc_id,rc_timestamp,rc_namespace,rc_title,rc_minor,rc_bot,rc_new,rc_cur_id,rc_this_oldid,rc_last_oldid,rc_type,rc_source,rc_patrolled,rc_ip,rc_old_len,rc_new_len,rc_deleted,rc_logid,rc_log_type,rc_log_action,rc_params,comment_rc_comment.comment_text AS `rc_comment_text`,comment_rc_comment.comment_data AS `rc_comment_data`,comment_rc_comment.comment_id AS `rc_comment_cid`,actor_rc_user.actor_user AS `rc_user`,actor_rc_user.actor_name AS `rc_user_text`,rc_actor,page_len AS `length`,page_latest AS `rev_id`,page_namespace,page_title,page_content_model,(SELECT GROUP_CONCAT(ctd_name SEPARATOR ',') FROM `change_tag` JOIN `change_tag_def` ON ((ct_tag_id=ctd_id)) WHERE ct_rc_id=rc_id ) AS `ts_tags` FROM `recentchanges` JOIN `comment` `comment_rc_comment` ON ((comment_rc_comment.comment_id = rc_comment_id)) JOIN `actor` `actor_rc_user` ON ((actor_rc_user.actor_id = rc_actor)) JOIN `page` ON ((page_id=rc_cur_id)) WHERE rc_new = 1 AND (rc_namespace = 0) AND page_is_redirect = 0 ORDER BY rc_timestamp DESC LIMIT 51
- Thanks,
- Pritesh Pritesh j thakkar (talk) 14:52, 15 October 2021 (UTC)
- I haven't a clue. In your situation I'd just start from scratch again, seeing as it worked to begin with.
- When I used mysqldump and mysql I didn't use any extra parameters beyond username, password and database name.
- Maybe you need to empty the database before using mysql again? Jonathan3 (talk) 16:15, 15 October 2021 (UTC)
- I was able to fix it by dropping/refreshing database. Here is what I did.
- mysql -u root -p
- drop database wikidb;
- show databases;
- CREATE DATABASE wikidb;
- GRANT ALL PRIVILEGES ON wikidb.* TO '<USER>'@'localhost' IDENTIFIED BY '<PASSWORD>' WITH GRANT OPTION;
- FLUSH PRIVILEGES;
- exit;
- gunzip -c wikidb.sql.gz | sudo mysql -C -u <USER> -p wikidb
- php update.php
- Thank you for help,
- Pritesh Pritesh j thakkar (talk) 16:42, 15 October 2021 (UTC)
ERROR: The certificate of ‘releases.wikimedia.org’ has expired.
The following discussion is closed. Please do not modify it. Subsequent comments should be made on the appropriate discussion page. No further edits should be made to this discussion.
Just tried to download a new version using wget https://releases.wikimedia.org/mediawiki/1.36/mediawiki-1.36.2.tar.gz and get error
--2021-10-06 13:21:02-- https://releases.wikimedia.org/mediawiki//mediawiki-..tar.gz
Resolving releases.wikimedia.org (releases.wikimedia.org)... 2620:0:861:ed1a::1, 208.80.154.224
Connecting to releases.wikimedia.org (releases.wikimedia.org)|2620:0:861:ed1a::1|:443... connected.
ERROR: The certificate of ‘releases.wikimedia.org’ is not trusted.
ERROR: The certificate of ‘releases.wikimedia.org’ has expired.
Tenbergen (talk) 20:24, 6 October 2021 (UTC)
- Your wget (or something that it relies on) is outdated. Wikimedia uses letsencrypt certificates and the root for those kinds of certificates recently expired. Some OSes and some software on those OSes that have not been updated in the last half year might not be able to connect for that reason. See also 2021 Let's Encrypt root expiry —TheDJ (Not WMF) (talk • contribs) 22:10, 6 October 2021 (UTC)
- You were right. I use Dreamhost and they had an old OS on the VPS. Once I flagged it they updated it and I could wget the file. Thanks @TheDJ for giving the right info to get them to do it quickly. Tenbergen (talk) 14:34, 21 October 2021 (UTC)
- I had this, too and after updating the the recent certs I got from the distro everything was fluffy again. [[kgh]] (talk) 17:17, 21 October 2021 (UTC)
creating Bot to import stuff from wikipedia
Hello i am trying to install Templates and module from Wikipedia, Is there a way to create a bot that will imports all the modules and templates from Wikipedia to my website. Web4funs (talk) 21:39, 6 October 2021 (UTC)
Importing with Special:import
Hello I dont know why if i try to import xml file above 250kb I always get
403
Forbidden
Access to this resource on the server is denied! Thatnewman (talk) 11:00, 7 October 2021 (UTC)
- Check if you have a WAF or apache mod_security installed.
- Check also for limitrequestbody directive in your apache config.
- Your apache error log might have more info. Bawolff (talk) 12:47, 7 October 2021 (UTC)
- where do i see apache.. cause i cant find any file .....I am on hosting Thatnewman (talk) 17:43, 7 October 2021 (UTC)
- That depends on your host and operating system, so it's a question for your hosting. Malyacko (talk) 20:54, 7 October 2021 (UTC)
Error Message on webpage
The following discussion is closed. Please do not modify it. Subsequent comments should be made on the appropriate discussion page. No further edits should be made to this discussion.
Hi everyone.
Whenever I go on my wiki or make any changes to my wiki pages i get redirected and receive a message that suddenly started today:
Bad title
The requested page title is too long. It must be no longer than 255 bytes in UTF-8 encoding.
Can anyone explain to me what this means and how i can resolve it?
TIA Thepainking (talk) 14:49, 7 October 2021 (UTC)
- Error is saying pagd title is too long.
- What is the name of the page you are editing.
- Could be some issue with rewrite rules or proxy servers if you have that set up. Bawolff (talk) 05:55, 8 October 2021 (UTC)
- encyclopediaoftouchbodysenseandpain.com
- I have noticed that when you type this in the URL address bar it gets repeated several times and becomes unnecessarily lengthy. I am not sure why...???? Thepainking (talk) 14:36, 8 October 2021 (UTC)
- Looks like you have a rewrite rule in place that adds /Main_Page at the start of the URL everytime Ciencia Al Poder (talk) 17:07, 8 October 2021 (UTC)
- what does that actually mean, "rewrite rule"?
- Also i added that to the URL to try and solve the problem but it didnt work. im going to change it back to its original Thepainking (talk) 17:38, 8 October 2021 (UTC)
- i figured it out and it has been fixed. thanks everyone for their assistance! Thepainking (talk) 18:30, 8 October 2021 (UTC)
Wanted Pages ghost entries
In our Wiki, there are several instances in the Wanted Pages section where it claims a group of articles link back to a deleted article, despite all links being purged from said pages.
Example would be that there was once a page named "The Fairy's Wing". Mediawiki claims that there is a hyperlink on 21 pages, but none of them even have those three words.
Currently on MediaWiki version 1.35.1 Suzzie2 (talk) 18:40, 7 October 2021 (UTC)
- Example here. Suzzie2 (talk) 18:47, 7 October 2021 (UTC)
- Hmm. Looks like a job didnt get executed at one point.
- some options:
- You could try making a null edit (where you add a newline to end of page) to all pages alleged to link there
- you can use Api:Purge to purge cache via api (i just tested that with Greenface article and it worked). Make sure linkupdates option is on
- you can run refreshLinks.php (generally slow if you have lots of articles) Bawolff (talk) 05:53, 8 October 2021 (UTC)
- Hey, thank you for your response! Can you show me what you ran for Greenface? I'm trying to understand what to enter where, and the example for Api:Purge that MediaWiki provides is flying straight over my head. Suzzie2 (talk) 22:10, 8 October 2021 (UTC)
- I used https://wiki.massivecraft.com/Special:ApiSandbox#action=purge&format=json&forcelinkupdate=1&titles=Greenface
- To make the request.
- Just making dummy edits to pages is probably the easiest option. Bawolff (talk) 00:32, 9 October 2021 (UTC)
- Thank you for this! I have one more question for you- I'm very unfamiliar when using the API. When I enter the titles into the bar and hit submit request, I get an error: error":{"code":"mustbeposted","info":"The \"purge\" module requires a POST request.
- At the risk of sounding dumb, what is a POST request? Suzzie2 (talk) 14:09, 9 October 2021 (UTC)
- Its kind of like when you submit a form vs when you just click on a link or go to a url (which is called a GET request). POST requests have extra data in them that's not included in the url [note: i oversimplified this a bit, there are a bunch of other technical details]. In web browsers they are often used for things that take some action (where GET is more read only or "idempotent")
- When using Special:ApiSandbox if you press the blue "make request" button in the top right, instead of copying the url, it will submit the request as a POST request. Bawolff (talk) 06:34, 11 October 2021 (UTC)
Juxtaposing two magic words
In the start of a webpage I have the following pattern:
__NOINDEX__ __NOTOC__ Content Content Content Content Content
This causes a line break.
How should juxtapose the two magic words in one line correctly?
Thanks, 49.230.57.177 (talk) 02:40, 8 October 2021 (UTC)
- Put them on the same line Bawolff (talk) 05:42, 8 October 2021 (UTC)
- Bawolff, like this (?)If it's the only option I will do it but is it?
__NOINDEX____NOTOC__
- It's a bit "messy". 49.230.63.69 (talk) 07:23, 8 October 2021 (UTC)
- I put that stuff at the bottom of the page, on separate lines. Maybe it creates a line return but I've never noticed it there Jonathan3 (talk) 07:59, 8 October 2021 (UTC)
MediaWiki registration spam despite anti-spam measures
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.
Despite removing user registration I'm getting registration spam (users like "AJEShasta742286"). I followed the recommendations on how to secure my mediawiki from abuse and spam after a large-ish spam attack, so this comes unexpected. I believe there's a mechanism I still don't understand; There should be no possibility for a normal user to register right now and I don't see possibility any in my wiki as there is no "register" in the special pages or anywhere else in the wiki, the only thing someone should be able to do is to request an account because I installed the addon Confirm User Accounts.
Any help would be highly appreciated.
I'm using mediawiki 1.361 and PHP 7.4.21 (fpm-fcgi) with the following LocalSettings.php:
http://paste.debian.net/plain/1214704 Hórdómr (talk) 07:46, 8 October 2021 (UTC)
- I used ConfirmAccount for a while too, but it was a pain in the neck as you couldn't delete the spam registrations all at once.
- I was using ConfirmEdit which seemed absolutely useless until I moved to QuestyCaptcha. That seems to work! Jonathan3 (talk) 10:22, 8 October 2021 (UTC)
- Sorry for not knowing the answer to your actual question :-)
- What do you see when you go to Special:UserLogin or Special:CreateAccount? Jonathan3 (talk) 10:27, 8 October 2021 (UTC)
- Good hunch! Though it's only showing "Create another account" on the bottom when logged in as sysop. As an anonymous user "Create another account" isn't there as expected from the settings in LocalSettings.php.
- Anonymous users trying to use Special:CreateAccount (which isn't visible in Special pages) are redirected to Special:RequestAccount, this is also what I expect. Hórdómr (talk) 10:42, 8 October 2021 (UTC)
Importing a page with templates doesn't work properly
In a staging environment I've imported this page from Wikipedia.it, but I get many errors. I've been playing with template errors since a few days, but I can't clearly understand how MediaWiki is thought to work. Can you help me to understand where to to start to look for fixing disambiguation error?
My blog is wordpress-251650-782015.cloudwaysapps.com/wiki/Cheeta Hyperreview (talk) 12:59, 8 October 2021 (UTC)
- Looks like you haven't installed/enabled the Extension:ParserFunctions Ciencia Al Poder (talk) 17:05, 8 October 2021 (UTC)
What is the use of the category "Dual template Parameters" ?
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 noticed many pages with the category "Dual template Parameters" (actually 'dubbele sjabloonparameters') This seems to be related to the use of a so called infobox is there any use or is it a bug in some template? 83.81.245.170 (talk) 13:26, 8 October 2021 (UTC)
- This happens when one of the templates uses the same parameter name twice. This is an error, because only the last parameter with the same name will be used, meaning your editors may get confused as to why the parameter they're editing doesn't change in the template. Ciencia Al Poder (talk) 17:08, 8 October 2021 (UTC)
- Thank you, will try to find out what parameter name is used twice .
- Next a real bug, I think, I used the to prevent it from showing up, still after each source edit it shows up once.
- Hmm, makes some sense as, if it is an error report, the error itself happens after each edit. 83.81.245.170 (talk) 21:06, 9 October 2021 (UTC)
- ... I used __ HIDDEN CAT __ to prevent ...
- without spaces
- I wont say I give up, but I removed about any double value I found in:
- < avatar.fandom.com/nl/wiki/Sjabloon:Stad_vuur_infobox >
- What did I miss out ? 83.81.245.170 (talk) 11:13, 10 October 2021 (UTC)
- Was an ancient piece of code
- Sorry to bother 83.81.245.170 (talk) 14:37, 12 October 2021 (UTC)
installing
i just downloaded the file and now... what? it may seem stupid but: how can i use the wiki for my company? 79.210.43.125 (talk) 14:04, 8 October 2021 (UTC)
- Please see Manual:Installing Fokebox (talk) 14:23, 8 October 2021 (UTC)
- You need a web host. (E.g. dreamhost, aws, rackspace,etc) Bawolff (talk) 00:29, 9 October 2021 (UTC)
- And buy a domain name for your wiki Fokebox (talk) 05:10, 9 October 2021 (UTC)
Add page with JSON content model to category
Hello! How would a page with content model JSON be added to a category? Thanks! Tol (talk | contribs) @ 18:42, 8 October 2021 (UTC)
- This is not supported currently. – Ammarpad (talk) 16:35, 9 October 2021 (UTC)
- @Ammarpad: Ah; thank you. Tol (talk | contribs) @ 17:55, 9 October 2021 (UTC)
Settings, there are NO boxes to check for several areas, and I do NOT want Surname in Uppercase
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.
Under General Settings, these help pages show a box to be checked for Surname Uppercase, Enable FamilySearch and Problem Alerts. But on my computer, there are NO boxes showing at all in these areas. The program is not allowing me to uncheck the unseen box for Surname Uppercase / Display surnames uppercase. I do not like surnames in uppercase and have never used that feature. In RootsMagic ver 7, it was turned off. I do not know what is wrong, I can not get it to change to NORMAL, showing of surnames; ie: Kester vs the uppercase of KESTER. It did not transfer from my ver 7 settings, and as I already pointed out there are NO boxes showing as are shown in your examples, so there is no box to UN-check to turn this feature off. Can this please be either corrected in a program update, or can someone please advise how to disable this feature, Please! little ps: This MediaWiki is not currently letting me log in with my old user name and password, nor is it letting me open a new account, so it is showing me that it will add this topic anonymously. 2601:647:C803:1E20:244E:9EF2:5CE6:480D (talk) 00:00, 9 October 2021 (UTC)
- I think you're in the wrong place. I don't know which website you are talking about but it doesn't sound like mediawiki. Bawolff (talk) 00:27, 9 October 2021 (UTC)
- What is "RootsMagic" and why do you think that we know about that? Malyacko (talk) 10:23, 9 October 2021 (UTC)
URl short
Hello how can i make my website look like this https://en.website.org/w/index.php?search= Mine looks like this https://en.website.org/index.php?search=s Where do i add the /w/ Thatnewman (talk) 11:20, 9 October 2021 (UTC)
Heroku Hosting Error
Hi, I'm having trouble hosting mediawiki on heroku using the postgres extension. Here's what I've done so far:
- Set up the project locally
- Commit to a Github Repository
- Create a new project in Heroku
- Link to Github Repository
- Add the Postgres add-on in Heroku
- Run composer update
- Add the Heroku postgres credentials to LocalSettings.php
- Run composer update in terminal
- Push local postgres stuff to the heroku one using heroku pg:push
When I visit the website, it displays:
Wikimedia\Rdbms\DBQueryError: A database query error has occurred. Did you forget to run your application's database schema updater after upgrading?
Error 42P01: ERROR: relation "mediawiki.l10n_cache" does not exist
LINE 1: SELECT /* LCStoreDB::get */ lc_value FROM "mediawiki"."l1...
^
Function: LCStoreDB::get
Query: SELECT lc_value FROM "mediawiki"."l10n_cache" WHERE lc_lang = 'en' AND lc_key = 'deps' LIMIT 1
Backtrace:
from /app/includes/libs/rdbms/database/Database.php(1719)
#0 /app/includes/libs/rdbms/database/Database.php(1703): Wikimedia\Rdbms\Database->getQueryException()
#1 /app/includes/libs/rdbms/database/Database.php(1678): Wikimedia\Rdbms\Database->getQueryExceptionAndLog()
#2 /app/includes/libs/rdbms/database/Database.php(1244): Wikimedia\Rdbms\Database->reportQueryError()
#3 /app/includes/libs/rdbms/database/Database.php(1929): Wikimedia\Rdbms\Database->query()
#4 /app/includes/libs/rdbms/database/Database.php(1768): Wikimedia\Rdbms\Database->select()
#5 /app/includes/libs/rdbms/database/DBConnRef.php(68): Wikimedia\Rdbms\Database->selectField()
#6 /app/includes/libs/rdbms/database/DBConnRef.php(300): Wikimedia\Rdbms\DBConnRef->__call()
#7 /app/includes/cache/localisation/LCStoreDB.php(64): Wikimedia\Rdbms\DBConnRef->selectField()
#8 /app/includes/cache/localisation/LocalisationCache.php(448): LCStoreDB->get()
#9 /app/includes/cache/localisation/LocalisationCache.php(494): LocalisationCache->isExpired()
#10 /app/includes/cache/localisation/LocalisationCache.php(413): LocalisationCache->initLanguage()
#11 /app/includes/cache/localisation/LocalisationCache.php(332): LocalisationCache->loadSubitem()
#12 /app/languages/Language.php(2652): LocalisationCache->getSubitem()
#13 /app/includes/cache/MessageCache.php(1052): Language->getMessage()
#14 /app/includes/cache/MessageCache.php(1010): MessageCache->getMessageForLang()
#15 /app/includes/cache/MessageCache.php(952): MessageCache->getMessageFromFallbackChain()
#16 /app/includes/language/Message.php(1377): MessageCache->get()
#17 /app/includes/language/Message.php(895): Message->fetchMessage()
#18 /app/includes/language/Message.php(987): Message->format()
#19 /app/includes/title/MalformedTitleException.php(51): Message->text()
#20 /app/includes/title/MediaWikiTitleCodec.php(376): MalformedTitleException->__construct()
#21 /app/includes/Title.php(3359): MediaWikiTitleCodec->splitTitleString()
#22 /app/includes/Title.php(463): Title->secureAndSplit()
#23 /app/includes/MediaWiki.php(83): Title::newFromURL()
#24 /app/includes/MediaWiki.php(156): MediaWiki->parseTitle()
#25 /app/includes/MediaWiki.php(874): MediaWiki->getTitle()
#26 /app/includes/MediaWiki.php(546): MediaWiki->main()
#27 /app/index.php(53): MediaWiki->run()
#28 /app/index.php(46): wfIndexMain()
#29 {main}
I've tried running the update script multiple times already. Any help would be greatly appreciated! Honeycombi98 (talk) 13:25, 9 October 2021 (UTC)
- Did you run the mediawiki installer to begin with? Are you sure database/schema name are correct? Bawolff (talk) 06:27, 11 October 2021 (UTC)
- I'm not sure which mediawiki installer your referring to, but I followed the interactive prompt to get everything to work locally. I'm also sure that my LocalSettings.php has the correct heroku database information. Honeycombi98 (talk) 19:28, 13 October 2021 (UTC)
warning stat failed for WikibaseRepo.FederatedProperties.entitytypes.php
Turning on error reporting in my wiki, I am seeing this warning:
Warning: filesize(): stat failed for /var/www/vhosts/wiki_1_36/w/extensions/Wikibase/repo/includes../../WikibaseRepo.FederatedProperties.entitytypes.php in /var/www/vhosts/wiki_1_36/w/includes/debug/MWDebug.php on line 593
I can see that this file exists in /var/www/vhosts/wiki_1_36/w/extensions/Wikibase/repo, which is one level up not two levels up. Is there an include somewhere trying to go two levels up? It would seem so from this filesize() call.
I am on MediaWiki 1.36.2. Lwangaman (talk) 15:47, 9 October 2021 (UTC)
- actually it's not just an issue of going two levels up, I believe there's an issue of a missing "/" character, or better yet an extra ".." after "repo/includes". Without that extra ".." the stat should work correctly. Still not sure what is calling filesize() here. Lwangaman (talk) 16:40, 10 October 2021 (UTC)
- Can you include your LocalSettings.php (minus passwords and secret keys) Bawolff (talk) 06:25, 11 October 2021 (UTC)
- Lwangaman (talk) 13:42, 11 October 2021 (UTC)
<?php # This file was automatically generated by the MediaWiki 1.34.2 # installer. If you make manual changes, please keep track in case you # need to recreate them later. # # See includes/DefaultSettings.php for all configurable settings # and their default values, but don't forget to make changes in _this_ # file, not there. # # Further documentation for configuration settings may be found at: # https://www.mediawiki.org/wiki/Manual:Configuration_settings # Protect against web entry if ( !defined( 'MEDIAWIKI' ) ) { exit; } //ini_set("memory_limit","1024M"); //ini_set("opcache.memory_consumption", "256M"); error_reporting(E_ALL); ini_set("display_errors", 1); $wgShowExceptionDetails = true; $wgShowDBErrorBacktrace = false; $wgShowSQLErrors = true; $wgResourceLoaderDebug = false; //$wgDebugToolbar = true; //$wgDevelopmentWarnings = true; //$wgShowDebug = true; $wgRunJobsAsync = true; $wgJobRunRate = 0.5; //most jobs will be handled by the mw-jobqueue service created at /etc/systemd, a minimal part we will allow on opening of pages $wgCookieExpiration = 86400; //make the login cookie last at least a day $wgExtendedLoginCookieExpiration = null; $validWikiIDs = ["en","it","es","fr","de","pt"]; if ( defined( 'MW_DB' ) ) { // Set $wikiId from the defined constant 'MW_DB' that is set by maintenance scripts. $wikiId = MW_DB; $wgServer = "https://{$wikiId}.seminaverbi.bibleget.io"; } elseif (isset($_SERVER['SERVER_NAME'])) { $wikiId = explode(".",$_SERVER['SERVER_NAME'])[0]; if(in_array($wikiId,$validWikiIDs)){ $wgServer = "https://{$wikiId}.seminaverbi.bibleget.io"; } else { die( $_SERVER['SERVER_NAME'] . ' is not a valid language wiki. The currently available language wikis are: ' . PHP_EOL . implode(".seminaverbi.bibleget.io, \n",$validWikiIDs) . '.seminaverbi.bibleget.io' ); } } else { // Fail gracefully if no value was set to the $wikiId variable, i.e. if no wiki was determined die( 'It was not possible to determine the wiki ID.' ); } ## Database settings $wgDBtype = "mysql"; $wgDBserver = "localhost"; $wgDBname = "seminaverbi_" . $wikiId; $wgDBuser = "##########"; $wgDBpassword = "##########"; $wgSharedDB = "seminaverbi"; //central database for user accounts $wgSharedTables = [ 'user', 'objectcache' ]; // Note that 'user_properties' is not included. # MySQL specific settings $wgDBprefix = ""; # MySQL table options to use during installation or update $wgDBTableOptions = "ENGINE=InnoDB, DEFAULT CHARSET=binary"; switch ($wikiId) { case "en": $wgSitename = "Seeds of the Word"; $wgLanguageCode = 'en'; $wgAmericanDates = true; break; case "it": $wgSitename = "Semi del Verbo"; $wgLanguageCode = 'it'; break; case "es": $wgSitename = "Semillas de la Palabra"; $wgLanguageCode = 'es'; break; case "fr": $wgSitename = "Graines de la Parole"; $wgLanguageCode = 'fr'; break; case "de": $wgSitename = "Die Samen von das Wort"; $wgLanguageCode = 'de'; break; case "pt": $wgSitename = "Sementes da Palavra"; $wgLanguageCode = 'pt'; break; } ## Uncomment this to disable output compression # $wgDisableOutputCompression = true; $wgMetaNamespace = "Semina_Verbi"; ## The URL base path to the directory containing the wiki; ## defaults for all runtime URL paths are based off of this. ## For more information on customizing the URLs ## (like /w/index.php/Page_title to /wiki/Page_title) please see: ## https://www.mediawiki.org/wiki/Manual:Short_URL $wgScriptPath = "/w"; $wgArticlePath = "/wiki/$1"; $wgUsePathInfo = true; ## The URL path to static resources (images, scripts, etc.) $wgResourceBasePath = $wgScriptPath; $wgCacheDirectory = "$IP/cache/$wgDBname"; $wgUploadDirectory = "$IP/images"; $wgUploadPath = "$wgResourceBasePath/images"; $wgSharedUploadPath = "https://en.seminaverbi.bibleget.io/w/images"; $wgSharedUploadDirectory = "$IP/images"; $wgSharedUploadDBname = "seminaverbi_en"; $wgUseSharedUploads = true; $wgCrossSiteAJAXdomains = [ '*.wikipedia.org', '*.seminaverbi.bibleget.io' ]; ## The URL path to the logo. Make sure you change this from the default, ## or else you'll overwrite your logo when you upgrade! $wgLogos = [ '1x' => "$wgServer/assets/holy-bible-xxl_SeminaVerbi_135.png" ]; $wgFavicon = "$wgServer/assets/favicon_32.png"; ## UPO means: this is also a user preference option $wgEnableEmail = true; $wgEnableUserEmail = true; # UPO $wgEmergencyContact = "admin@bibleget.io"; $wgPasswordSender = "admin@bibleget.io"; $wgEnotifUserTalk = true; # UPO $wgEnotifWatchlist = true; # UPO $wgEmailAuthentication = true; $wgAllowUserJs = true; $wgObjectCaches['redis'] = [ 'class' => 'RedisBagOStuff', //'servers' => [ '127.0.0.1:6379' ], 'servers' => [ '/run/redis/redis-server.sock' ] // 'connectTimeout' => 1, // 'persistent' => false, // 'password' => 'secret', // 'automaticFailOver' => true, ]; ## Shared memory settings $wgMainCacheType = 'redis'; //$wgMemCachedServers = []; $wgParserCacheType = 'redis'; $wgMessageCacheType = 'redis'; $wgLanguageConverterCacheType = 'redis'; # Changing this will log out all existing sessions. $wgAuthenticationTokenVersion = "1"; $wgSessionCacheType = 'redis'; $wgJobTypeConf['default'] = [ 'class' => 'JobQueueRedis', //'redisServer' => '127.0.0.1:6379', 'redisServer' => '/run/redis/redis-server.sock', 'redisConfig' => [], 'claimTTL' => 3600, 'daemonized' => true ]; ## To enable image uploads, make sure the 'images' directory ## is writable, then set this to true: $wgEnableUploads = true; $wgUseImageMagick = true; $wgImageMagickConvertCommand = "/usr/local/bin/convert"; # InstantCommons allows wiki to use images from https://commons.wikimedia.org $wgUseInstantCommons = true; # and this should allow to use images from wikipedia... $wgForeignFileRepos[] = [ 'class' => 'ForeignAPIRepo', 'name' => 'enwiki', 'apibase' => 'https://en.wikipedia.org/w/api.php', 'hashLevels' => 2, 'fetchDescription' => true, 'descriptionCacheExpiry' => 43200, 'apiThumbCacheExpiry' => 86400, ]; $wgForeignFileRepos[] = [ 'class' => 'ForeignAPIRepo', 'name' => 'itwiki', 'apibase' => 'https://it.wikipedia.org/w/api.php', 'hashLevels' => 2, 'fetchDescription' => true, 'descriptionCacheExpiry' => 43200, 'apiThumbCacheExpiry' => 86400, ]; # Periodically send a pingback to https://www.mediawiki.org/ with basic data # about this MediaWiki instance. The Wikimedia Foundation shares this data # with MediaWiki developers to help guide future development efforts. $wgPingback = true; ## If you use ImageMagick (or any other shell command) on a ## Linux server, this will need to be set to the name of an ## available UTF-8 locale $wgShellLocale = "C.UTF-8"; ## Set $wgCacheDirectory to a writable directory on the web server ## to make your wiki go slightly faster. The directory should not ## be publicly accessible from the web. #$wgCacheDirectory = "$IP/cache"; $wgSecretKey = "####################################################"; # Site upgrade key. Must be set to a string (default provided) to turn on the # web installer while LocalSettings.php is in place $wgUpgradeKey = "##########"; ## For attaching licensing metadata to pages, and displaying an ## appropriate copyright notice / icon. GNU Free Documentation ## License and Creative Commons licenses are supported so far. $wgRightsPage = ""; # Set to the title of a wiki page that describes your license/copyright $wgRightsUrl = "https://creativecommons.org/licenses/by/4.0/"; $wgRightsText = "Creative Commons Attribution"; $wgRightsIcon = "$wgResourceBasePath/resources/assets/licenses/cc-by.png"; # Path to the GNU diff3 utility. Used for conflict resolution. $wgDiff3 = "/usr/bin/diff3"; # The following permissions were set based on your choice in the installer $wgGroupPermissions['*']['createaccount'] = false; $wgGroupPermissions['*']['edit'] = false; $wgEnableDnsBlacklist = true; $wgDnsBlacklistUrls = array( 'xbl.spamhaus.org.', 'dnsbl.tornevall.org.', 'spam.dnsbl.sorbs.net.', 'rbl.dnsbl.im.', 'noptr.spamrats.com.', 'all.s5h.net.', 'z.mailspike.net.' ); $wgDnsBlacklistUrls['edit'] = true; $wgDnsBlacklistUrls['create'] = true; $wgDnsBlacklistUrls['createtalk'] = true; $wgDnsBlacklistUrls['addurl'] = true; $wgDnsBlacklistUrls['createaccount'] = true; $wgRateLimits['edit']['newbie'] = [ 4, 60 ]; $wgGroupPermissions['reupload']['*'] = false; $wgEmailConfirmToEdit = true; $wgShowIPinHeader = false; # Enabled extensions. Most of the extensions are enabled by adding # wfLoadExtensions('ExtensionName'); # to LocalSettings.php. Check specific extension documentation for more details. # The following extensions were automatically enabled: wfLoadExtension( 'CategoryTree' ); wfLoadExtension( 'Cite' ); wfLoadExtension( 'CiteThisPage' ); wfLoadExtension( 'CodeEditor' ); wfLoadExtension( 'ConfirmEdit' ); wfLoadExtension( 'Gadgets' ); wfLoadExtension( 'ImageMap' ); wfLoadExtension( 'InputBox' ); wfLoadExtension( 'Interwiki' ); wfLoadExtension( 'LocalisationUpdate' ); wfLoadExtension( 'MultimediaViewer' ); wfLoadExtension( 'Nuke' ); wfLoadExtension( 'OATHAuth' ); wfLoadExtension( 'PageImages' ); wfLoadExtension( 'ParserFunctions' ); wfLoadExtension( 'PdfHandler' ); wfLoadExtension( 'Poem' ); wfLoadExtension( 'Renameuser' ); wfLoadExtension( 'ReplaceText' ); wfLoadExtension( 'Scribunto' ); wfLoadExtension( 'SpamBlacklist' ); $wgBlacklistSettings = [ 'spam' => [ 'files' => [ "https://meta.wikimedia.org/w/index.php?title=Spam_blacklist&action=raw&sb_ver=1", "https://en.wikipedia.org/w/index.php?title=MediaWiki:Spam-blacklist&action=raw&sb_ver=1" ], ], ]; wfLoadExtension( 'SyntaxHighlight_GeSHi' ); //wfLoadExtension( 'SyntaxHighlightPages' ); wfLoadExtension( 'TextExtracts' ); wfLoadExtension( 'TitleBlacklist' ); $wgGroupPermissions['sysop']['tboverride'] = false; $wgTitleBlacklistSources = [ [ 'type' => 'url', 'src' => 'https://meta.wikimedia.org/w/index.php?title=Title_blacklist&action=raw' ] ]; wfLoadExtension( 'WikiEditor' ); # End of automatically generated settings. # Add more configuration options below. //$wgScribuntoUseGeSHi = true; //$wgScribuntoUseCodeEditor = true; //$wgSyntaxHighlightPagesSuffixes = ['txt', 'html', 'css', 'xml', 'js', 'php']; $wgPygmentizePath = '/usr/local/bin/pygmentize'; //$wgPygmentizePath = '/var/www/vhosts/bibleget.io/seminaverbi_1_36/w/extensions/SyntaxHighlight_GeSHi/pygments/pygmentize'; # The following are default values, no need to set them #$wgInterwikiMagic = true; #$wgHideInterlanguageLinks = false; $wgInterwikiCentralDB = 'seminaverbi_en'; $wgGroupPermissions['sysop']['interwiki'] = true; wfLoadExtension( 'StopForumSpam' ); $wgSFSIPListLocation = '/var/www/vhosts/bibleget.io/seminaverbi.bibleget.io/w/stopspam/listed_ip_30_ipv46_all.txt'; wfLoadExtension( 'AbuseFilter' ); $wgGroupPermissions['sysop']['abusefilter-modify'] = true; $wgGroupPermissions['*']['abusefilter-log-detail'] = true; $wgGroupPermissions['*']['abusefilter-view'] = true; $wgGroupPermissions['*']['abusefilter-log'] = true; $wgGroupPermissions['sysop']['abusefilter-privatedetails'] = true; $wgGroupPermissions['sysop']['abusefilter-modify-restricted'] = true; $wgGroupPermissions['sysop']['abusefilter-revert'] = true; wfLoadExtension( 'AntiSpoof' ); $wgSharedTables[] = 'spoofuser'; wfLoadExtension( 'TorBlock' ); $wgGroupPermissions['user']['torunblocked'] = false; $wgTorLoadNodes = false; //run a cron job on loadExitNodes.php $wgTorAllowedActions = [ 'read' ]; wfLoadExtension( 'CheckUser' ); $wgGroupPermissions['sysop']['checkuser'] = true; $wgGroupPermissions['sysop']['checkuser-log'] = true; $wgGroupPermissions['sysop']['investigate'] = true; wfLoadExtension( 'GeoData' ); wfLoadExtension( 'MobileFrontend' ); $wgMFAutodetectMobileView = true; $wgMFDefaultSkinClass = 'SkinMinerva'; $wgMFNearby = true; # Enabled skins. # The following skins were automatically enabled: wfLoadSkin( 'MinervaNeue' ); wfLoadSkin( 'MonoBook' ); wfLoadSkin( 'Timeless' ); wfLoadSkin( 'Vector' ); ## Default skin: you can change the default skin. Use the internal symbolic ## names, ie 'vector', 'monobook': $wgDefaultSkin = "vector"; wfLoadExtension( 'Elastica' ); wfLoadExtension( 'CirrusSearch' ); $wgSearchType = 'CirrusSearch'; $wgCirrusSearchUseCompletionSuggester = 'yes'; $wgCirrusSearchCompletionSettings = 'fuzzy-subphrases'; //$wgCirrusSearchPhraseSuggestProfiles = 'default'; $wgCirrusSearchCompletionSuggesterSubphrases = [ 'build' => true, 'use' => true, 'type' => 'anywords', 'limit' => 10, ]; $wgCirrusSearchCompletionSuggesterUseDefaultSort = true; $wgDebugLogGroups['CirrusSearch'] = "$IP/extensions/CirrusSearch/error.log"; //$wgDebugLogGroups['resourceloader'] = "$IP/debug-resourceloader-{$wgDBname}.log"; //$wgDebugLogFile = "$IP/debug-{$wgDBname}.log"; //$wgDisableSearchUpdate = true; wfLoadExtension( 'Echo' ); wfLoadExtension( 'Babel' ); wfLoadExtension( 'cldr' ); wfLoadExtension( 'CleanChanges' ); $wgCCTrailerFilter = true; $wgCCUserFilter = false; $wgDefaultUserOptions['usenewrc'] = 1; wfLoadExtension( 'LocalisationUpdate' ); $wgLocalisationUpdateDirectory = "$IP/cache"; wfLoadExtension( 'Translate' ); $wgGroupPermissions['user']['translate'] = true; $wgGroupPermissions['user']['translate-messagereview'] = true; $wgGroupPermissions['user']['translate-groupreview'] = true; $wgGroupPermissions['user']['translate-import'] = true; $wgGroupPermissions['sysop']['pagetranslation'] = true; $wgGroupPermissions['sysop']['translate-manage'] = true; $wgTranslateDocumentationLanguageCode = 'qqq'; $wgExtraLanguageNames['qqq'] = 'Message documentation'; # No linguistic content. Used for documenting messages wfLoadExtension( 'UniversalLanguageSelector' ); wfLoadExtension( 'TemplateStyles' ); wfLoadExtension( 'Popups' ); wfLoadExtension( 'JsonConfig' ); if ( !isset( $wgJsonConfigModels ) ) { $wgJsonConfigModels = []; } if ( !isset( $wgJsonConfigs ) ) { $wgJsonConfigs = []; } $wgJsonConfigEnableLuaSupport = true; // https://www.mediawiki.org/wiki/Extension:JsonConfig#Configuration $wgJsonConfigModels['Tabular.JsonConfig'] = 'JsonConfig\JCTabularContent'; $wgJsonConfigs['Tabular.JsonConfig'] = [ 'namespace' => 486, 'nsName' => 'Data', // page name must end in ".tab", and contain at least one symbol 'pattern' => '/.\.tab$/', 'license' => 'CC0-1.0', 'isLocal' => false, ]; $wgJsonConfigModels['Map.JsonConfig'] = 'JsonConfig\JCMapDataContent'; $wgJsonConfigs['Map.JsonConfig'] = [ 'namespace' => 486, 'nsName' => 'Data', // page name must end in ".map", and contain at least one symbol 'pattern' => '/.\.map$/', 'license' => 'CC0-1.0', 'isLocal' => false, ]; // Enable Tabular data namespace on Commons - T148745 // Enable Map (GeoJSON) data namespace on Commons - T149548 // TODO: Consider whether this hard-coding to Commons is appropriate if ( $wgDBname === 'commonswiki' ) { // Ensure we have a stable cross-wiki title resolution // See JCSingleton::parseTitle() $wgJsonConfigInterwikiPrefix = "meta"; $wgJsonConfigs['Tabular.JsonConfig']['store'] = true; $wgJsonConfigs['Map.JsonConfig']['store'] = true; } else { $wgJsonConfigInterwikiPrefix = "commons"; $wgJsonConfigs['Tabular.JsonConfig']['remote'] = [ 'url' => 'https://commons.wikimedia.org/w/api.php' ]; $wgJsonConfigs['Map.JsonConfig']['remote'] = [ 'url' => 'https://commons.wikimedia.org/w/api.php' ]; } wfLoadExtension( 'TemplateData' ); $wgTemplateDataUseGUI = true; wfLoadExtension( 'TimedMediaHandler' ); $wgFFmpegLocation = '/usr/bin/ffmpeg'; // Most common ffmpeg path on Linux // The minimum size for an embed video player ( smaller than this size uses a pop-up player ) $wgMinimumVideoPlayerSize = 200; // If transcoding is enabled for this wiki (if disabled, no transcode jobs are added and no // transcode status is displayed). Note if remote embedding an asset we will still check if // the remote repo has transcoding enabled and associated flavors for that media embed. $wgEnableTranscode = true; // The total amout of time a transcoding shell command can take: $wgTranscodeBackgroundTimeLimit = 3600 * 8; // Maximum amount of virtual memory available to transcoding processes in KB $wgTranscodeBackgroundMemoryLimit = 2 * 1024 * 1024; // 2GB avconv, ffmpeg2theora mmap resources so virtual memory needs to be high enough // Maximum file size transcoding processes can create, in KB $wgTranscodeBackgroundSizeLimit = 3 * 1024 * 1024; // 3GB // Number of threads to use in avconv for transcoding $wgFFmpegThreads = 1; // The NS for TimedText (registered on MediaWiki.org) // https://www.mediawiki.org/wiki/Extension_namespace_registration // Note commons pre-dates TimedMediaHandler and should set $wgTimedTextNS = 102 in LocalSettings.php $wgTimedTextNS = 710; // Set TimedText namespace for ForeignDBViaLBRepo on a per wikiID basis // $wgTimedTextForeignNamespaces = array( 'commonswiki' => 102 ); //$wgTimedTextForeignNamespaces = array(); /** * Default enabled transcodes * * -If set to empty array, no derivatives will be created * -Derivative keys encode settings are defined in WebVideoTranscode.php * * -These transcodes are *in addition to* the source file. * -Only derivatives with smaller width than the source asset size will be created * -Regardless of source size at least one WebM and Ogg source will be created from the $wgEnabledTranscodeSet * -Derivative jobs are added to the MediaWiki JobQueue the first time the asset is uploaded * -Derivative should be listed min to max */ // Starting from 1.31 // All valid string values are listed in the extension's extension.json file $wgEnabledTranscodeSet = [ '160p.webm' => true, '240p.webm' => true, '360p.webm' => true, '480p.webm' => true, '720p.webm' => true, '1080p.webm' => true, ]; $wgEnabledAudioTranscodeSet = [ 'ogg' => true, // ogg+vorbis 'opus' => false, // ogg+opus 'mp3' => true, // raw mp3 'm4a' => false, // mp4+aac (mp4a.40.5) ]; // If mp3 source assets can be ingested: $wgTmhEnableMp3Uploads = true; wfLoadExtension( 'Score' ); $wgScoreTrim = true; $wgScoreLilyPond = "/usr/bin/lilypond"; $wgScoreAbc2Ly = '/usr/bin/abc2ly'; $wgScoreFluidsynth = '/usr/bin/fluidsynth'; $wgScoreSoundfont = '/usr/share/sounds/sf2/FluidR3_GM.sf2'; $wgScoreTimidity = '/usr/bin/timidity'; $wgScoreLame = '/usr/bin/lame'; $wgScoreSafeMode = true; $wgShellRestrictionMethod = 'firejail'; //$wgShellboxUrl = 'http://shellbox.internal/shellbox'; //$wgShellboxSecretKey = '##################################'; // LoginNotify code loaded before Notifications wfLoadExtension( 'LoginNotify' ); $wgNotifyTypeAvailabilityByCategory['login-success']['web'] = false; $wgLoginNotifyAttemptsNewIP = 3; wfLoadExtension( 'GlobalPreferences' ); // No need to set $wgGlobalPreferencesDB if it's the same as $wgSharedDB. //$wgGlobalPreferencesDB = '<global_preferences_database>'; wfLoadExtension( 'MassMessage' ); wfLoadExtension( 'TemplateSandbox' ); wfLoadExtension( 'UserMerge' ); // By default nobody can use this function, enable for bureaucrat? $wgGroupPermissions['bureaucrat']['usermerge'] = true; // Don't let users get deleted outright (T69789) $wgUserMergeEnableDelete = false; wfLoadExtension( 'CodeMirror' ); # Enables use of CodeMirror by default but still allow users to disable it $wgDefaultUserOptions['usecodemirror'] = 1; wfLoadExtension( 'CharInsert' ); wfLoadExtension( "timeline" ); $wgTimelinePloticusCommand = "/usr/bin/ploticus"; $wgTimelinePerlCommand = "/usr/bin/perl"; putenv("GDFONTPATH=/usr/share/fonts/truetype/freefont"); // Directory containing FreeSans.ttf. wfLoadExtension( 'LabeledSectionTransclusion' ); wfLoadExtension( 'Math' ); // ensure 'mathml'; is added to the $wgMathValidModes array; $wgMathValidModes[] = 'mathml'; // Set Mathoid as default rendering option; $wgDefaultUserOptions['math'] = 'mathml'; $wgMathFullRestbaseURL = 'https://en.wikipedia.org/api/rest_'; $wgMathMathMLUrl = 'https://mathoid-beta.wmflabs.org/'; wfLoadExtension( 'wikihiero' ); wfLoadExtension( 'PagedTiffHandler' ); // Path to identify $wgImageMagickIdentifyCommand = '/usr/bin/identify'; // Use exiv2? if false, MediaWiki's internal EXIF parser will be used $wgTiffUseExiv = true; // Path to exiv2 (Mediawiki core configuration option) $wgExiv2Command = '/usr/bin/exiv2'; // Use tiffinfo? if false, ImageMagick's identify command will be used $wgTiffUseTiffinfo = true; // Path to tiffinfo $wgTiffTiffinfoCommand = '/usr/bin/tiffinfo'; $wgTiffMaxMetaSize = 1048576; $wgMaxImageArea = 10e7; // 100MP $wgMaxAnimatedGifArea = 10e7; // 100MP wfLoadExtension( 'VipsScaler' ); $wgVipsCommand = '/usr/bin/vips'; $wgVipsOptions = [ [ 'conditions' => [ 'mimeType' => 'image/png', 'minArea' => 2e7, ], ], [ 'conditions' => [ 'mimeType' => 'image/tiff', 'minShrinkFactor' => 1.2, 'minArea' => 5e7, ], 'sharpen' => [ 'sigma' => 0.8 ], ], ]; wfLoadExtension( 'RelatedArticles' ); $wgRelatedArticlesLoggingBucketSize = 0; $wgRelatedArticlesUseCirrusSearch = true; $wgRelatedArticlesOnlyUseCirrusSearch = false; #$wgRelatedArticlesDescriptionSource = 'wikidata'; #Requires Extension:TextExtracts, fetched from the prop=extracts api. $wgRelatedArticlesDescriptionSource = 'textextracts'; #Requires Extension:Description2 (or any other extension that sets the description page property). #$wgRelatedArticlesDescriptionSource = 'pagedescription'; /** * Wikibase Settings * for Repo and Client */ $wgEnableWikibaseRepo = false; if($wikiId === 'en'){ require_once "$IP/extensions/Wikibase/repo/Wikibase.php"; call_user_func( function() { global $wgContentHandlerUseDB, $wgDBname, $wgExtraNamespaces, $wgNamespacesToBeSearchedDefault, $wgWBRepoSettings; $wgContentHandlerUseDB = true; $baseNs = 120; // Define custom namespaces. Use these exact constant names. define( 'WB_NS_ITEM', $baseNs ); define( 'WB_NS_ITEM_TALK', $baseNs + 1 ); define( 'WB_NS_PROPERTY', $baseNs + 2 ); define( 'WB_NS_PROPERTY_TALK', $baseNs + 3 ); // Register extra namespaces. $wgExtraNamespaces[WB_NS_ITEM] = 'Item'; $wgExtraNamespaces[WB_NS_ITEM_TALK] = 'Item_talk'; $wgExtraNamespaces[WB_NS_PROPERTY] = 'Property'; $wgExtraNamespaces[WB_NS_PROPERTY_TALK] = 'Property_talk'; // Tell Wikibase which namespace to use for which kind of entity $wgWBRepoSettings['entityNamespaces']['item'] = WB_NS_ITEM; $wgWBRepoSettings['entityNamespaces']['property'] = WB_NS_PROPERTY; // Make sure we use the same keys on repo and clients, so we can share cached objects. $wgWBRepoSettings['sharedCacheKeyPrefix'] = $wgDBname . ':WBL/' . rawurlencode(MW_VERSION ); $wgWBRepoSettings['sharedCacheKeyGroup'] = $wgDBname; // NOTE: no need to set up $wgNamespaceContentModels, Wikibase will do that automatically based on $wgWBRepoSettings // Tell MediaWiki to search the item namespace $wgNamespacesToBeSearchedDefault[WB_NS_ITEM] = true; // the special group includes all the sites in the specialSiteLinkGroups, // grouped together in a 'Pages linked to other sites' section. $wgWBRepoSettings['siteLinkGroups'] = [ 'wikipedia', 'wikinews', 'wikiquote', 'wikisource', 'wikivoyage', 'wikibooks', 'wiktionary', 'commons', 'special', 'seminaverbi' ]; // these are the site_group codes as listed in the sites table $wgWBRepoSettings['specialSiteLinkGroups'] = [ 'commons', 'wikidata' ]; // Example configuration for enabling termbox // both exemplary and used to enable it for CI tests $wgWBRepoSettings['termboxEnabled'] = true; $wgWBRepoSettings['ssrServerUrl'] = 'http://termbox-ssr.example.com'; $wgWBRepoSettings['ssrServerTimeout'] = 0.1; } ); $wgEnableWikibaseRepo = true; $wgLocalDatabases = [ 'seminaverbi_en', 'seminaverbi_it', 'seminaverbi_es', 'seminaverbi_fr', 'seminaverbi_de', 'seminaverbi_pt' ]; $wgWBRepoSettings['localClientDatabases'] = array( 'en' => 'seminaverbi_en', 'it' => 'seminaverbi_it', 'es' => 'seminaverbi_es', 'fr' => 'seminaverbi_fr', 'de' => 'seminaverbi_de', 'pt' => 'seminaverbi_pt', ); } require_once "$IP/extensions/Wikibase/client/WikibaseClient.php"; // The global site ID by which this wiki is known on the repo. // Defaults to $wgDBname. $wgWBClientSettings['siteGlobalID'] = $wikiId; $wgWBClientSettings['injectRecentChanges'] = true; $wgWBClientSettings['showExternalRecentChanges'] = true; // If this wiki also runs the Wikibase repo extension, // use the automatic defaults for repo-related settings. // If this wiki isn't running the repo extension, // configure an example repo. if ( !defined( 'WB_VERSION' ) ) { // Base URL for building links to the repository. // Assumes your wiki is setup as "http://repo.example.org/wiki/" // This can be protocol relative, such as "//www.wikidata.org" $wgWBClientSettings['repoUrl'] = "https://en.seminaverbi.bibleget.io"; // This setting is optional if you have the same type of setup for your // repo and client. It will default to using the client's $wgArticlePath setting, // and if you do not have $wgArticlePath set anywhere, MediaWiki has a default for it. $wgWBClientSettings['repoArticlePath'] = "/wiki/$1"; // Assuming your wiki is setup with such script path as "http://repo.example.org/w/api.php". This // should be the same as the $wgScriptPath setting if you have it set in your repo. If $wgScriptPath // is not set, then MediaWiki assumes a default. // // If your client and repo are setup in the same way, then the below setting is optional and will // default to what you have $wgScriptPath set in the client. $wgWBClientSettings['repoScriptPath'] = "/w"; // Tell the client which namespace ID on the repo holds which type of entity. $baseRepoNs = 120; define( 'WB_REPO_NS_ITEM', $baseRepoNs ); define( 'WB_REPO_NS_PROPERTY', $baseRepoNs + 2 ); $wgWBClientSettings['repositories'] = [ '' => [ 'repoDatabase' => 'seminaverbi_en', 'baseUri' => $wgWBClientSettings['repoUrl'] . '/entity', 'entityNamespaces' => [ 'item' => WB_REPO_NS_ITEM, 'property' => WB_REPO_NS_PROPERTY ], 'prefixMapping' => [ '' => '' ], ] ]; } $wgEnableWikibaseClient = true; $wgWBClientSettings['siteLinkGroups'] = [ 'wikipedia', 'wikinews', 'wikiquote', 'wikisource', 'wikivoyage', 'wikibooks', 'wiktionary', 'commons', 'special', 'seminaverbi' ]; $wgWBClientSettings['siteGroup'] = 'seminaverbi'; $wgWBRepoSettings['enableEntitySearchUI'] = false; //Only load WikibaseLexeme if WikibaseRepo is enabled if($wgEnableWikibaseRepo){ wfLoadExtension( 'WikibaseLexeme' ); } wfLoadExtension( 'CentralAuth' ); # General CentralAuth configuration $wgCentralAuthCookies = true; $wgCentralAuthDatabase = 'seminaverbi'; $wgCentralAuthAutoMigrate = true; $wgCentralAuthAutoMigrateNonGlobalAccounts = true; $wgCentralAuthCookieDomain = '.seminaverbi.bibleget.io'; $wgCentralAuthAutoLoginWikis = [ # Mapping from domain name to wiki id for other wikis to automatically login into "https://en.seminaverbi.bibleget.io" => "seminaverbi_en", "https://it.seminaverbi.bibleget.io" => "seminaverbi_it", "https://fr.seminaverbi.bibleget.io" => "seminaverbi_fr", "https://de.seminaverbi.bibleget.io" => "seminaverbi_de", "https://es.seminaverbi.bibleget.io" => "seminaverbi_es", "https://pt.seminaverbi.bibleget.io" => "seminaverbi_pt" ]; # Create the local account on pageview, set false to require a local login to create it. $wgCentralAuthCreateOnView = true; # Activates the redirect to the "central login wiki" $wgCentralAuthLoginWiki = 'seminaverbi_en'; # Skips the "login success" page $wgCentralAuthSilentLogin = true; $wgCookieSameSite = "None"; $wgUseSameSiteLegacyCookies = true; $wgConf = new SiteConfiguration; $wgConf->wikis = [ 'seminaverbi_en', 'seminaverbi_it', 'seminaverbi_es', 'seminaverbi_fr', 'seminaverbi_de', 'seminaverbi_pt' ]; $wgConf->localVHosts = ['localhost']; function efGetSiteParams( $conf, $wiki ) { $site = null; $lang = null; foreach( $conf->suffixes as $suffix ) { if ( substr( $wiki, 0, strlen( $suffix ) ) == $suffix ) { $site = $suffix; $lang = substr( $wiki, strlen( $suffix ) + 1 ); break; } } return [ 'suffix' => $site, 'lang' => $lang, 'params' => [ 'lang' => $lang, 'site' => $site, 'wiki' => $wiki, ], 'tags' => [], ]; } $wgConf->suffixes = ["seminaverbi"]; $wgConf->settings = [ 'wgServer' => array( 'default' => "https://{$wikiId}.seminaverbi.bibleget.io", //default means applied to all wikis. We want our location to be http://localhost/(wiki). If your wikis are hosted on different domains, then you would override this, but let's keep it simple ), 'wgCanonicalServer' => array( 'default' => "https://{$wikiId}.seminaverbi.bibleget.io", ), 'wgScriptPath' => [ 'default' => '/w', //script path, where index.php is located ], 'wgArticlePath' => [ 'default' => "/wiki/$1", ], 'wgLanguageCode' => array( //dont change, if all wikis are english *BE careful not to alter this line if you use RegEx to replace COD with your wiki name! 'default' => $wikiId, ), 'wgLocalInterwiki' => [ 'default' => $wikiId, ], ]; $wgConf->siteParamsCallback = 'efGetSiteParams'; $wgConf->extractAllGlobals( $wgDBname ); wfLoadExtension( 'WikimediaBadges' ); wfLoadExtension( 'AdvancedSearch' ); wfLoadExtension( 'BetaFeatures' ); wfLoadExtension( 'CentralNotice' ); //$wgCentralNoticeGeoIPBackgroundLookupModule = 'ext.centralNotice.freegeoipLookup'; if($wikiId === 'en'){ $wgNoticeInfrastructure = true; $wgNoticeProjects = array('it', 'de', 'es', 'fr', 'pt'); } else { $wgNoticeInfrastructure = false; $wgNoticeProject = $wikiId; $wgCentralHost = 'https://en.seminaverbi.bibleget.io'; $wgCentralSelectedBannerDispatcher = 'https://en.seminaverbi.bibleget.io/wiki/Special:BannerLoader'; $wgCentralDBname = 'seminaverbi_en'; $wgCentralBannerRecorder = 'https://en.seminaverbi.bibleget.io/wiki/Special:RecordImpression'; } wfLoadExtension( 'CommonsMetadata' ); wfLoadExtension( 'Disambiguator' ); wfLoadExtension( 'DismissableSiteNotice' ); $wgDismissableSiteNoticeForAnons = true; // T59732 $wgMajorSiteNoticeID = '2'; wfLoadExtension( 'ExternalGuidance' ); $wgExternalGuidanceMTReferrers = [ 'translate.google.com', 'translate.googleusercontent.com' ]; $wgExternalGuidanceKnownServices = [ 'Google', 'translate.google.com', 'translate.googleusercontent.com' ]; wfLoadExtension( 'FileExporter' ); wfLoadExtension( 'FileImporter' ); $wgFileImporterCommonsHelperServer = 'https://www.mediawiki.org'; $wgFileImporterCommonsHelperBasePageName = 'Extension:FileImporter/Data/'; $wgFileImporterCommonsHelperHelpPage = 'https://www.mediawiki.org/wiki/Extension:FileImporter/Data'; $wgFileImporterSourceSiteServices = []; //empty will allow imports from any wikimedia site //Set the list to [ 'FileImporter-WikimediaSitesTableSite' ] if you only want to allow imports from sites that are in the sites table. $wgFileImporterInterWikiMap = [ 'en.seminaverbi.bibleget.io' => 'en', 'it.seminaverbi.bibleget.io' => 'it', 'es.seminaverbi.bibleget.io' => 'es', 'fr.seminaverbi.bibleget.io' => 'fr', 'de.seminaverbi.bibleget.io' => 'de', 'pt.seminaverbi.bibleget.io' => 'pt', 'mediawiki.org' => 'mw', 'en.wikipedia.org' => 'enwiki' ]; $wgFileImporterWikidataEntityEndpoint = 'https://www.wikidata.org/wiki/Special:EntityData/'; $wgFileImporterWikidataNowCommonsEntity = 'Q5611625'; $wgFileImporterSourceWikiDeletion = true; $wgFileImporterSourceWikiTemplating = true; // Temporarily enable for testing, see T228851 if ( $wgDBname === 'testwiki' ) { $wgFileImporterWikidataEntityEndpoint = 'https://test.wikidata.org/wiki/Special:EntityData/'; $wgFileImporterWikidataNowCommonsEntity = 'Q210317'; } wfLoadExtension( 'GlobalBlocking' ); $wgGlobalBlockingDatabase = 'seminaverbi_globalblocking'; $wgApplyGlobalBlocks = true; $wgGlobalBlockingBlockXFF = true; // Apply blocks to IPs in XFF (T25343) wfLoadExtension( 'GlobalCssJs' ); // Setup seminaverbi as central wiki $wgResourceLoaderSources['seminaverbi'] = [ 'apiScript' => 'https://en.seminaverbi.bibleget.io/w/api.php', 'loadScript' => 'https://en.seminaverbi.bibleget.io/w/load.php', ]; $wgGlobalCssJsConfig = array( 'wiki' => 'seminaverbi_en', 'source' => 'seminaverbi', ); wfLoadExtension( 'GlobalUserPage' ); $wgGlobalUserPageAPIUrl = 'https://en.seminaverbi.bibleget.io/w/api.php'; $wgGlobalUserPageDBname = 'seminaverbi_en'; wfLoadExtension( 'GuidedTour' ); wfLoadExtension( 'InterwikiSorting' ); $wgInterwikiSortingSort = 'alphabetic'; wfLoadExtension( 'MobileApp' ); wfLoadExtension( 'OAuth' ); $wgMWOAuthCentralWiki = 'seminaverbi_en'; $wgMWOAuthSecureTokenTransfer = true; $wgOAuth2GrantExpirationInterval = 'infinity'; $wgGroupPermissions['sysop']['mwoauthproposeconsumer'] = true; wfLoadExtension( 'PageViewInfo' ); wfLoadExtension( 'PoolCounter' ); wfLoadExtension( 'ReadingLists' ); $wgReadingListsMaxEntriesPerList = 500; wfLoadExtension( 'RevisionSlider' ); wfLoadExtension( 'SandboxLink' ); wfLoadExtension( 'SecureLinkFixer' ); wfLoadExtension( 'SecurePoll' ); $wgGroupPermissions['sysop']['securepoll-create-poll'] = true; wfLoadExtension( 'TemplateWizard' ); wfLoadExtension( 'Thanks' ); wfLoadExtension( 'TwoColConflict' ); wfLoadExtension( 'WebAuthn' ); wfLoadExtension( 'WikimediaMessages' ); wfLoadExtension( "timeline" ); $wgTimelinePloticusCommand = "/usr/bin/ploticus"; $wgTimelinePerlCommand = "/usr/bin/perl"; putenv("GDFONTPATH=/usr/share/fonts/truetype/freefont"); // Directory containing FreeSans.ttf. wfLoadExtension( 'WikibaseImport' ); $namespaceConstantDefs = ['NS_USER','NS_USER_TALK','NS_PROJECT','NS_FILE','NS_FILE_TALK','NS_TEMPLATE','NS_TEMPLATE_TALK','NS_HELP','NS_HELP_TALK','NS_CATEGORY','NS_CATEGORY_TALK']; //'NS_MEDIAWIKI','NS_MEDIAWIKI_TALK', $namespaceAliases = ['U', 'UT', 'P', 'F', 'FT', 'T', 'TT', 'H', 'HT', 'C', 'CT']; //'MW', 'MWT', foreach($namespaceConstantDefs as $idx => $NSC){ if(defined($NSC) ){ $wgNamespaceAliases[$namespaceAliases[$idx]] = constant($NSC); if($NSC==='NS_PROJECT'){ $wgNamespaceAliases['WP'] = NS_PROJECT; } } } wfLoadExtension( 'EmbedVideo' ); $wgEmbedVideoRequireConsent = false; $wgEmbedVideoDefaultWidth = 640; wfLoadExtension( 'VisualEditor' ); //$wgReadOnly = ( PHP_SAPI === 'cli' ) ? false : 'This wiki is currently being upgraded to a newer software version. Please check back in a couple of hours.';
Sticker "Powered by MediaWiki"
Why it showing sticker Powered by MediaWiki? 47.234.198.142 (talk) 16:49, 9 October 2021 (UTC)
- Probably because "it" (?) is. Malyacko (talk) 21:35, 9 October 2021 (UTC)
- That can be disabled:
- Manual:$wgFooterIcons#Disable icons Jonathan3 (talk) 13:34, 10 October 2021 (UTC)
No sucess installing mediawiki on Fedora 34
...have ipb_id field in ipblocks table.
...have ipb_expiry field in ipblocks table.
...already have interwiki table
...indexes seem up to 20031107 standards.
...have rc_type field in recentchanges table.
...index new_name_timestamp already set on recentchanges table.
...have user_real_name field in user table.
...querycache table already exists.
...objectcache table already exists.
...categorylinks table already exists.
...have pagelinks; skipping old links table updates
...il_from OK
...have rc_ip field in recentchanges table.
...index PRIMARY already set on image table.
...have rc_id field in recentchanges table.
...have rc_patrolled field in recentchanges table.
...logging table already exists.
...have user_token field in user table.
...have wl_notificationtimestamp field in watchlist table.
...watchlist talk page rows already present.
...user table does not contain user_emailauthenticationtimestamp field.
...page table already exists.
...have log_params field in logging table.
...logging table has correct log_title encoding.
...have ar_rev_id field in archive table.
...have page_len field in page table.
...revision table does not contain inverse_timestamp field.
...have rev_deleted field in revision table.
...have img_width field in image table.
...have img_metadata field in image table.
...have user_email_token field in user table.
...page_namespace is already a full int (int(11)).
...ar_namespace is already a full int (int(11)).
...rc_namespace is already a full int (int(11)).
...wl_namespace is already a full int (int(11)).
...qc_namespace is already a full int (int(11)).
...log_namespace is already a full int (int(11)).
...have img_media_type field in image table.
...already have pagelinks table.
...image table does not contain img_type field.
...already have unique user_name index.
...user_groups table exists and is in current format.
...have ss_total_pages field in site_stats table.
...user_newtalk table already exists.
...have iw_trans field in interwiki table.
...wl_notificationtimestamp is already nullable.
...index times already set on logging table.
...have ipb_range_start field in ipblocks table.
...no page_random rows needed to be set
...have user_registration field in user table.
...templatelinks table already exists
...externallinks table already exists.
...job table already exists.
...have ss_images field in site_stats table.
...langlinks table already exists.
...querycache_info table already exists.
...filearchive table already exists.
...have ipb_anon_only field in ipblocks table.
...have user_newpass_time field in user table.
...redirect table already exists.
...querycachetwo table already exists.
...have ipb_enable_autoblock field in ipblocks table.
...index pl_namespace on table pagelinks includes field pl_from.
...index tl_namespace on table templatelinks includes field tl_from.
...index il_to on table imagelinks includes field il_from.
...have rc_old_len field in recentchanges table.
...have user_editcount field in user table.
...page_restrictions table already exists.
...have log_id field in logging table.
...have rev_parent_id field in revision table.
...have pr_id field in page_restrictions table.
...have rev_len field in revision table.
...have rc_deleted field in recentchanges table.
...have log_deleted field in logging table.
...have ar_deleted field in archive table.
...have ipb_deleted field in ipblocks table.
...have fa_deleted field in filearchive table.
...have ar_len field in archive table.
...have ipb_block_email field in ipblocks table.
...index cl_sortkey on table categorylinks includes field cl_from.
...have oi_metadata field in oldimage table.
...have ar_page_id field in archive table.
...have img_sha1 field in image table.
...protected_titles table already exists.
...page_props table already exists.
...updatelog table already exists.
...category table already exists.
...category table already populated.
...have ar_parent_id field in archive table.
...have user_last_timestamp field in user_newtalk table.
...protected_titles table has correct pt_title encoding.
...have ss_active_users field in site_stats table.
...ss_active_users user count set...
...have ipb_allow_usertalk field in ipblocks table.
...change_tag table already exists.
...user_properties table already exists.
...log_search table already exists.
...l10n_cache table already exists.
...ct_rc_id key doesn't exist.
...have rd_interwiki field in redirect table.
...*_mime_minor fields are already long enough.
...iwlinks table already exists.
...index iwl_prefix_title_from already set on iwlinks table.
...have ul_value field in updatelog table.
...have iw_api field in interwiki table.
...iwl_prefix key doesn't exist.
...have cl_collation field in categorylinks table.
...categorylinks up-to-date.
...module_deps table already exists.
...ar_page_revid key doesn't exist.
...skipping index ar_revid because index ar_revid_uniq already set on archive table.
...user_last_timestamp is already nullable.
...index user_email already set on user table.
...up_property in table user_properties already modified by patch patch-up_property.sql.
...uploadstash table already exists.
...user_former_groups table already exists.
...have rev_sha1 field in revision table.
...batch conversion of user_options: nothing to migrate. done.
...user table does not contain user_options field.
...have ar_sha1 field in archive table.
...index page_redirect_namespace_len already set on page table.
...have us_chunk_inx field in uploadstash table.
...have job_timestamp field in job table.
...have ipb_parent_block_id field in ipblocks table.
...index ipb_parent_block_id already set on ipblocks table.
...category table does not contain cat_hidden field.
...have page_content_model field in page table.
...site_stats table does not contain ss_admins field.
...recentchanges table does not contain rc_moved_to_title field.
...sites table already exists.
...have fa_sha1 field in filearchive table.
...have job_token field in job table.
...have job_attempts field in job table.
...have us_props field in uploadstash table.
...ug_group in table user_groups already modified by patch patch-ug_group-length-increase-255.sql.
...ufg_group in table user_former_groups already modified by patch patch-ufg_group-length-increase-255.sql.
...index pp_propname_page already set on page_props table.
...index img_media_mime already set on image table.
...iwl_prefix_title_from index is already non-UNIQUE.
...index iwl_prefix_from_title already set on iwlinks table.
...have ar_id field in archive table.
...have el_id field in externallinks table.
...have rc_source field in recentchanges table.
...have page_links_updated field in page table.
...have user_password_expires field in user table.
...have pp_sortkey field in page_props table.
...recentchanges table does not contain rc_cur_time field.
...index wl_user_notificationtimestamp already set on watchlist table.
...have page_lang field in page table.
...have pl_from_namespace field in pagelinks table.
...have tl_from_namespace field in templatelinks table.
...have il_from_namespace field in imagelinks table.
...img_major_mime in table image already modified by patch patch-img_major_mime-chemical.sql.
...oi_major_mime in table oldimage already modified by patch patch-oi_major_mime-chemical.sql.
...fa_major_mime in table filearchive already modified by patch patch-fa_major_mime-chemical.sql.
...comment fields are up to date.
...hitcounter doesn't exist.
...site_stats table does not contain ss_total_views field.
...page table does not contain page_counter field.
...msg_resource_links doesn't exist.
...msg_resource doesn't exist.
...bot_passwords table already exists.
...have wl_id field in watchlist table.
...cl_collation key doesn't exist.
...index cl_collation_ext already set on categorylinks table.
...collations up-to-date.
...index rc_name_type_patrolled_timestamp already set on recentchanges table.
...rev_page_id index already non-unique.
...pl_namespace, tl_namespace, il_to indices are already non-UNIQUE.
...have ct_id field in change_tag table.
...rc_ip in table recentchanges already modified by patch patch-rc_ip_modify.sql.
...have el_index_60 field in externallinks table.
...ug_user_group key doesn't exist.
...have ug_expiry field in user_groups table.
...img_media_type in table image already modified by patch patch-add-3d.sql.
...ip_changes table already exists.
...index PRIMARY already set on categorylinks table.
...index PRIMARY already set on templatelinks table.
...index PRIMARY already set on pagelinks table.
...index PRIMARY already set on text table.
...index PRIMARY already set on imagelinks table.
...index PRIMARY already set on iwlinks table.
...index PRIMARY already set on langlinks table.
...index PRIMARY already set on log_search table.
...index PRIMARY already set on module_deps table.
...index PRIMARY already set on objectcache table.
...index PRIMARY already set on querycache_info table.
...index PRIMARY already set on site_stats table.
...index PRIMARY already set on user_former_groups table.
...index PRIMARY already set on user_properties table.
...comment table already exists.
...revision_comment_temp table already exists.
...have ar_comment_id field in archive table.
...have fa_description_id field in filearchive table.
...img_description field does not exist in image table, skipping modify field patch.
...have ipb_reason_id field in ipblocks table.
...have log_comment_id field in logging table.
...have oi_description_id field in oldimage table.
...have pt_reason_id field in protected_titles table.
...have rc_comment_id field in recentchanges table.
...rev_comment field does not exist in revision table, skipping modify field patch.
...have img_description_id field in image table.
...index PRIMARY already set on l10n_cache table.
...bot_passwords.bp_user is already unsigned int.
...change_tag.ct_log_id is already unsigned int.
...change_tag.ct_rev_id is already unsigned int.
...page_restrictions.pr_user is already unsigned int.
...user_newtalk.user_id is already unsigned int.
...user_properties.up_user is already unsigned int.
...slots table already exists.
...have slot_origin field in slots table.
...content table already exists.
...slot_roles table already exists.
...content_models table already exists.
...actor table already exists.
...revision_actor_temp table already exists.
...have ar_actor field in archive table.
...have ipb_by_actor field in ipblocks table.
...have img_actor field in image table.
...have oi_actor field in oldimage table.
...have fa_actor field in filearchive table.
...have rc_actor field in recentchanges table.
...have log_actor field in logging table.
...rev_text_id field does not exist in revision table, skipping modify field patch.
...table site_stats already modified by patch patch-site_stats-modify.sql.
...index rc_namespace_title_timestamp already set on recentchanges table.
...change_tag_def table already exists.
...el_index_60 in table externallinks already modified by patch patch-externallinks-el_index_60-drop-default.sql.
Running maintenance/deduplicateArchiveRevId.php...
Deduplicating ar_rev_id...
An error occurred:
Precondition failed: MediaWiki\User\DefaultOptionsLookup::getOption called on a registered user Agompel (talk) 21:47, 9 October 2021 (UTC)
- Which exact MediaWiki version, taken from where, following which installation steps? Malyacko (talk) 22:07, 9 October 2021 (UTC)
Help With Protection
Hello I want the only person Who can MOVE an article or any pages for my wiki to be an administration /sysop..... Don't want user to move page Thatnewman (talk) 08:34, 10 October 2021 (UTC)
- Check out the move permission here -
- https://m.mediawiki.org/wiki/Manual:User_rights Jonathan3 (talk) 13:32, 10 October 2021 (UTC)
Show recent changes since start of last session
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'd like to show all the recent changes since a registered user's last session.
For example, if a registered user visited on Jan 1 and then again on Jan 20, for the entire session on Jan 20 I'd like to show the recent changes since their session on Jan 1.
If they visit again on Jan 25, then for their entire session on Jan 25 I'd like to show the recent changes since their session on Jan 20.
Is there anywhere that captures the start of the last session even though a new session has started?
If not, what would be the best hook to get the session ID from so that I could store this myself? I'm currently looking at BeforeInitialize, but am not sure that's the best one. Lorenmaxwell (talk) 13:13, 10 October 2021 (UTC)
- This unmaintained extension might be a good place to start - https://m.mediawiki.org/wiki/Extension:LastLoginTime
- You could maybe calculate the necessary days for the days= url filter on special:recentchanges. Jonathan3 (talk) 13:31, 10 October 2021 (UTC)
- Thanks, Jonathan3. I had looked at that but I believe it only shows the last time a user fully logged in, not the last time they started a session. Since a user can stay logged in for a year, it's not quite what I was hoping for. Lorenmaxwell (talk) 17:36, 10 October 2021 (UTC)
- I see. You could maybe look at how email notification of changes to watched pages work.
- That is able to show "changes since last visit". Jonathan3 (talk) 18:39, 10 October 2021 (UTC)
- Great idea -- I'll dig around there! Lorenmaxwell (talk) 18:46, 10 October 2021 (UTC)
How to make a tooltip? Can't make heads or tails of Help pages
I have a tiny personal wiki but am not very skilled and for the life of me, can't figure how to make a tooltip. I just want to show readers a sentence or two of more detail (text) if they hover over my tooltip'ed text. That's all I want! laugh
Googling produces results like:
- https://en.wikipedia.org/wiki/Wikipedia:Tooltips which says use
{{H:title|The tool tip|The text}} - https://en.wikipedia.org/wiki/Template:Hover_title which defines a Hover title or something.
But they both seem to point to:
- https://en.wikipedia.org/wiki/Template:Tooltip which has completely different examples
And then they're all talking about templates, which has this god-awful page: https://en.wikipedia.org/wiki/Help:A_quick_guide_to_templates
If I try a single one of the tooltip examples, my wiki text has a red-colored, e.g., "Template:Tooltip " which has a tooltip of "Template:Tooltip (page does not exist)".
I seem to be completely missing one or more things here. Do I have to install some extension in my common.css or something? Do I have to make some new separate Template page for the actual text of every single tooltip? (This would be incredibly labyrinthine - I just want a 10 word tooltip!)
I'm so lost I don't know where to start.
I'm using MediaWiki 1.35.1.
Thanks if you can help! RedKnight7 (talk) 13:20, 10 October 2021 (UTC)
- The extension SimpleTooltip will do this and is easy to use.
- I'd link to it but can't copy and paste into this page any more on the iPhone. Jonathan3 (talk) 13:25, 10 October 2021 (UTC)
- Thanks, you must mean MediaWiki's Extension:SimpleTooltip. I could get this to work. So I appreciate it.
- It's a little buggy; it indents everything down the rest of the page, to whatever level the paragraph that the tooltip was in. I'm presenting technical analyses and have lots of bullets and indenting. As a workaround I have to force the tooltip's paragraph to have zero indentation. So it's kind of gimped. I see templates for Outdent but pfft...
- Anyway, you've shown me to an extension that also held my hand for how to successfully install an extension. Maybe I'll look at some of those other more sophisticated tooltip extensions some day. But for today, it's enough that I sunk four hours already just to get one buggy tooltip to show, lol.
- If anybody knows a way to stop SimpleTooltip from forcing indentation on the remainder of the page, that's great. RedKnight7 (talk) 11:18, 11 October 2021 (UTC)
- What do you have that it messes up? I'm still on MW 1.34 (naughty me) and haven't noticed any problems. Jonathan3 (talk) 19:30, 11 October 2021 (UTC)
- Hi, bullets (*) and indents (:). Try indenting a paragraph you have a SimpleTooltip in. Eh, make it three colons.
- Doesn't it indent all the subsequent paragraphs on the page, for you? RedKnight7 (talk) 19:58, 11 October 2021 (UTC)
- You could use a title attribute on a span, div or abbr element
- e.g.
- Bawolff (talk) 06:23, 11 October 2021 (UTC)
<span title="tooltip here">normal text</span>
- Hi, Yes that works, but it doesn't signal that the "normal text" has a tooltip to view. A reader would have to accidentally hover over it to realize that one is there. I guess I could force it by making the normal text say "(tooltip)". So there's that. But it's still not as nice as the type of tooltip (with underscored text) that is commonly used. Hmm.
- Thanks. RedKnight7 (talk) 11:48, 12 October 2021 (UTC)
- I think the dotted underscore comes from using the abbr attribute instead of span.
- You can also use css to add an underline via the style attribute (Either directly, or via border-bottom) Bawolff (talk) 04:40, 14 October 2021 (UTC)
Failed to invoke Pygments: Error clone: main.c:2608 main: Operation not permitted [Called from SyntaxHighlight::highlightInner
With MediaWiki 1.35.3, I was able to get the SyntaxHighlight extension to work by using an external pygmentize:
$wgPygmentizePath = '/usr/local/bin/pygmentize';
However after upgrading to MediaWiki 1.36.2, pygmentize is no longer working correctly. If I turn on error reporting:
error_reporting(E_ALL);
ini_set("display_errors", 1);
$wgShowExceptionDetails = true;
$wgShowDBErrorBacktrace = false;
$wgShowSQLErrors = true;
$wgResourceLoaderDebug = false;
$wgDebugToolbar = true;
$wgDevelopmentWarnings = true;
$wgShowDebug = true;
I then get these errors:
Notice: Failed to invoke Pygments: Error clone: main.c:2608 main: Operation not permitted [Called from SyntaxHighlight::highlightInner in /path/to/mediawiki_1_36/w/extensions/SyntaxHighlight_GeSHi/includes/SyntaxHighlight.php at line 316] in /path/to/mediawiki_1_36/w/includes/debug/MWDebug.php on line 499Same or similiar problem for lilypond:
Unable to obtain LilyPond version:
Error clone: main.c:2608 main: Operation not permittedIn the debug data I see the following information:
[exec] Executing: '/usr/bin/firejail' '--quiet' '--profile=/path/to/mediawiki_1_36/w/includes/shell/firejail.profile' '--blacklist=/path/to/mediawiki_1_36/w/LocalSettings.php' '--noroot' '--seccomp' '--private-dev' '--net=none' -- /bin/bash '/path/to/mediawiki_1_36/w/vendor/wikimedia/shellbox/src/Command/limit.sh' ''\''/usr/local/bin/pygmentize'\'' '\''-l'\'' '\''js'\'' '\''-f'\'' '\''html'\'' '\''-O'\'' '\''cssclass=mw-highlight,encoding=utf-8,linenos=inline'\''' 'SB_INCLUDE_STDERR=;SB_CPU_LIMIT=180; SB_CGROUP='\'''\''; SB_MEM_LIMIT=314572800; SB_FILE_SIZE_LIMIT=104857600; SB_WALL_CLOCK_LIMIT=180; SB_USE_LOG_PIPE=yes'
[exec] Error running '/usr/bin/firejail' '--quiet' '--profile=/path/to/mediawiki_1_36/w/includes/shell/firejail.profile' '--blacklist=/path/to/mediawiki_1_36/w/LocalSettings.php' '--noroot' '--seccomp' '--private-dev' '--net=none' -- /bin/bash '/path/to/mediawiki_1_36/w/vendor/wikimedia/shellbox/src/Command/limit.sh' ''\''/usr/local/bin/pygmentize'\'' '\''-l'\'' '\''js'\'' '\''-f'\'' '\''html'\'' '\''-O'\'' '\''cssclass=mw-highlight,encoding=utf-8,linenos=inline'\''' 'SB_INCLUDE_STDERR=;SB_CPU_LIMIT=180; SB_CGROUP='\'''\''; SB_MEM_LIMIT=314572800; SB_FILE_SIZE_LIMIT=104857600; SB_WALL_CLOCK_LIMIT=180; SB_USE_LOG_PIPE=yes': Error clone: main.c:2608 main: Operation not permitted
[objectcache] fetchOrRegenerate(global:highlight:f3eb16b7c32d4a36f595352942cb4e1b): miss, new value computed
[error] [YWLA1o0mAVG7arGqGzx1GAAAAA4] /wiki/User_talk:Johnrdorazio ErrorException: PHP Notice: Failed to invoke Pygments: Error clone: main.c:2608 main: Operation not permitted
[Called from SyntaxHighlight::highlightInner in /path/to/mediawiki_1_36/w/extensions/SyntaxHighlight_GeSHi/includes/SyntaxHighlight.php at line 316]
[warning] Failed to invoke Pygments: Error clone: main.c:2608 main: Operation not permitted
[Called from SyntaxHighlight::highlightInner in /path/to/mediawiki_1_36/w/extensions/SyntaxHighlight_GeSHi/includes/SyntaxHighlight.php at line 316]I opened a discussion on the SyntaxHighlight extension discussion page, but seems to me to be more of a problem with MediaWiki Shellbox::Command. In any case on that discussion page there are a few tests I carried out to try to figure out what is happening... Lwangaman (talk) 15:29, 10 October 2021 (UTC)
- I guess you could do $wgShellRestrictionMethod = false; its a bit less secure. Bawolff (talk) 00:14, 12 October 2021 (UTC)
- $wgShellRestrictionMethod = false; does at least get Lilypond and Pygments working again. Not sure what is needed to get it to work with firejail. Lwangaman (talk) 17:53, 12 October 2021 (UTC)
- Based on the error message, I would guess something is wrong with the firejail profile, and its blocking things it shouldn't Bawolff (talk) 04:39, 14 October 2021 (UTC)
Add New Admin group
I am the Admin of my wiki and the group are Administrators, Autoconfirmed users, Bureaucrats, Interface administrators, Users.
Where do I add the rest? Thatnewman (talk) 16:42, 10 October 2021 (UTC)
redirect list fails at some result lines
< https://avatar.fandom.com/nl/wiki/Speciaal:Doorverwijzinglijst?limit=1&offset=468 > -until- < https://avatar.fandom.com/nl/wiki/Speciaal:Doorverwijzinglijst?limit=1&offset=479 >
The result is not a list of the redirect but some random? page
Traveller in Time 83.81.245.170 (talk) 18:59, 10 October 2021 (UTC)
- it seems to redirect to a comment inside that article actually. Not sure why. Please contact fandom for support regarding fandom. —TheDJ (Not WMF) (talk • contribs) 19:30, 10 October 2021 (UTC)
User doesn't have edit rights
I've created a new wiki with me as the admin. In my preferences page, I see I'm part of the autoconfirmed users and users. But in the user list special page my user is listed without these two groups (it is in bureaucrat, interface administrator, administrator). As a result, I can't edit any pages. In fact, the group drop down in that page doesn't have those groups either.
What is the result of this and how to fix it? Maybe I should have a designated 'admin' user and then create a normal user for me to use that for edits? 84.111.224.227 (talk) 07:57, 11 October 2021 (UTC)
- This seems to be related to the MinervaNeue skin I'm using. When I change to another, I get the edit tab (as well as others), but when I click it, VisualEditor tries to load and I get "Error contacting the Parsoid/RESTBase server: (curl error: 7) Couldn't connect to server". I'm using 1.36 with the VisualEditor that came with it. I also see in the debug log the following exception
- #13 {main}
- [GlobalTitleFail] MessageCache::parse called with no title set.
- #0 /var/www/html/includes/language/Message.php(1331): MessageCache->parse(string, NULL, boolean, boolean, Language)
- #1 /var/www/html/includes/language/Message.php(922): Message->parseText(string)
- #2 /var/www/html/includes/language/Message.php(953): Message->format(string)
- #3 /var/www/html/includes/TemplateParser.php(173) : eval()'d code(73): Message->__toString()
- #4 /var/www/html/includes/TemplateParser.php(291): TemplateParser->{closure}(array, array)
- #5 /var/www/html/includes/skins/SkinMustache.php(143): TemplateParser->processTemplate(string, array)
- #6 /var/www/html/includes/skins/SkinTemplate.php(146): SkinMustache->generateHTML()
- #7 /var/www/html/includes/OutputPage.php(2634): SkinTemplate->outputPage()
- #8 /var/www/html/includes/MediaWiki.php(927): OutputPage->output(boolean)
- #9 /var/www/html/includes/MediaWiki.php(940): MediaWiki::{closure}()
- #10 /var/www/html/includes/MediaWiki.php(546): MediaWiki->main()
- #11 /var/www/html/index.php(53): MediaWiki->run()
- #12 /var/www/html/index.php(46): wfIndexMain()
- #13 {main} 84.111.224.227 (talk) 09:35, 11 October 2021 (UTC)
- I looked at the troubleshooting section for VisualEditor and it says: "Ensure that the mediawiki container name does not equal to the domain the wiki is running on. If both names are equal, the api will try to connect to the domain the wiki is running on, but only receive the local ip of the container. This will cause errors when ssl is enabled."
- My container is running on my laptop with port mapping (8080 to 80) I access it via 127.0.0.1. The container name is whatever docker picked (tender_tereshkova) 84.111.224.227 (talk) 09:48, 11 October 2021 (UTC)
- A skin problem. Started a thread there. 84.111.224.227 (talk) 12:24, 11 October 2021 (UTC)
Fehler bei Server Umzug
Hallo, bekomme folgenden Fehler nach einem Serverumzug.
[YWPydfcfsMXdxCjZFNZeowAABHo] /index.php?title=Spezial:Anmelden Error from line 402 of /mnt/web304/c0/87/52226087/htdocs/medwiki/includes/specialpage/SpecialPageFactory.php: Class 'SpecialUserLogin' not found
Backtrace:
#0 /mnt/web304/c0/87/52226087/htdocs/medwiki/includes/MediaWiki.php(255): MediaWiki\Special\SpecialPageFactory->getPage()
#1 /mnt/web304/c0/87/52226087/htdocs/medwiki/includes/MediaWiki.php(860): MediaWiki->performRequest()
#2 /mnt/web304/c0/87/52226087/htdocs/medwiki/includes/MediaWiki.php(517): MediaWiki->main()
#3 /mnt/web304/c0/87/52226087/htdocs/medwiki/index.php(42): MediaWiki->run()
#4 {main}
Und ich finde einfach keinen Lösungsansatz. MarkusBoehm85 (talk) 08:18, 11 October 2021 (UTC)
- Hallo!
- Existiert die genannte Datei "/mnt/web304/c0/87/52226087/htdocs/medwiki/includes/specialpage/SpecialPageFactory.php" auf dem Webserver denn? Falls nicht ist beim Umzug etwas schiefgegangen, denn sie sollte Teil der MediaWiki-Anwendung sein.
- Bitte auch mal die Dateisystemberechtigungen überprüfen. Darf der Webserver-Benutzer auf die Code-Dateien zugreifen?
- Um welche Version von MediaWiki handelt es sich? Gibt es Details zur Serverumgebung? Osnard (talk) 09:51, 11 October 2021 (UTC)
- Hallo, ja die Datei existiert noch/wieder auf dem Server.
- Server liegt bei Strato. Ich bin gerade am prüfen der dateiberechtigungen. danke für den tip. MarkusBoehm85 (talk) 12:59, 11 October 2021 (UTC)
- Dateiberechtigungen wurden nun auf 755 gesetzt trotzdem kommt der Fehler weiterhin genau gleich.
- Es handelt sich um die Version 1.32 des MediaWiki. MarkusBoehm85 (talk) 06:27, 12 October 2021 (UTC)
Class 'SpecialUserLogin' not foundbedeutet, dass der MediaWiki-Classloader entweder die Datei nicht laden konnte, oder dass die Klasse/Datei nicht am Classloader registiert ist. Ersteres haben wir bereits abusgeschloßen.- Existiert denn in der Datei
autoload.phpder entsprechende Eintrag? https://github.com/wikimedia/mediawiki/blob/1.32.6/autoload.php#L1416 - Generell würde ich empfehlen auf die MediaWiki Version 1.35 (derzeitiger Long Term Support Release) zu aktualisieren.
- Sind denn Erweiterungen installiert, welche das Login-Verfahren beeinflußen? Z.B. Extension:Auth_remoteuser oder Extension:PluggableAuth?
- P.S.: Ich sehe gerade, dass es im Zusammenhang mit der SpecialPageFactory eigentlich "Userlogin" heißen müsste, nicht "SpecialUserLogin": https://github.com/wikimedia/mediawiki/blob/1.32.6/includes/specialpage/SpecialPageFactory.php#L104
- Ich vermute daher, dass es auch irgendetwas mit einer Erweiterung oder einem Eintrag in der LocalSettings.php zu tun haben könnte. Osnard (talk) 06:15, 13 October 2021 (UTC)
- Noch eine Idee: Es könnte an einem "Redirect Loop" liegen. Das scheint bei einem Server-Umzug nicht unwahrscheinlich. Bitte mal die Konfigurationen zu Manual:$wgUsePathInfo und Manual:$wgArticlePath, sowie eventuelle URL-Rewrite-Rules in der Webserver-Konfiguration prüfen. Osnard (talk) 06:19, 13 October 2021 (UTC)
- Wollte nun das Update auf die 1.35.4 machen und bekomme nun folgende Meldung:
- [YWaZqAdlbNNS1tlyJakpKgAADBg] /mw-config/?page=ExistingWiki Exception from line 177 of /mnt/web304/c0/87/52226087/htdocs/medwiki/AA_NEU/includes/registration/ExtensionRegistry.php: Unable to open file /mnt/web304/c0/87/52226087/htdocs/medwiki/AA_NEU/extensions/UploadLocal/extension.json: filemtime(): stat failed for /mnt/web304/c0/87/52226087/htdocs/medwiki/AA_NEU/extensions/UploadLocal/extension.json
- Backtrace:
- #0 /mnt/web304/c0/87/52226087/htdocs/medwiki/AA_NEU/includes/GlobalFunctions.php(51): ExtensionRegistry->queue()
- #1 /mnt/web304/c0/87/52226087/htdocs/medwiki/AA_NEU/LocalSettings.php(162): wfLoadExtension()
- #2 /mnt/web304/c0/87/52226087/htdocs/medwiki/AA_NEU/includes/installer/Installer.php(661): require(string)
- #3 /mnt/web304/c0/87/52226087/htdocs/medwiki/AA_NEU/includes/installer/WebInstallerExistingWiki.php(29): Installer::getExistingLocalSettings()
- #4 /mnt/web304/c0/87/52226087/htdocs/medwiki/AA_NEU/includes/installer/WebInstaller.php(269): WebInstallerExistingWiki->execute()
- #5 /mnt/web304/c0/87/52226087/htdocs/medwiki/AA_NEU/mw-config/index.php(82): WebInstaller->execute()
- #6 /mnt/web304/c0/87/52226087/htdocs/medwiki/AA_NEU/mw-config/index.php(40): wfInstallerMain()
- #7 {main}
- habe den Ordner UploadLocal aber schon gelöscht und in der LocalSettings deaktiviert mit #. MarkusBoehm85 (talk) 08:34, 13 October 2021 (UTC)
How to render uploaded text file inside another page of mediawiki similar to image ?
Please let us know, someone knows this AshwiniUpasani (talk) 09:03, 11 October 2021 (UTC)
- I don't think this can be done out of the box. It sounds like a task for a media handling extension. But it does not seem that there is one available for regular text files. You may want try to create one though. Osnard (talk) 09:54, 11 October 2021 (UTC)
How to hide few content of page of mediawiki based on sitename
In the media wiki page, we want to hide few content of the page based on the sitename.
In this, apart from few content, other content should be visible to user. Is there any way that, we can hide the content based on the sitename in media wiki page. AshwiniUpasani (talk) 09:14, 11 October 2021 (UTC)
- Please have a look at Help:Magic_words#Technical_metadata and Help:Extension:ParserFunctions#ifeq. You should be able to do something like
{{#ifeq:{{SITENAME}}|Wiki1|Text for wiki 1|Text for other wikis}}Osnard (talk) 10:01, 11 October 2021 (UTC) - Btw. if you meant "pagename" rather than "sitename", this is also possible using
{{FULLPAGENAME}}rather than{{SITENAME}}. Osnard (talk) 10:03, 11 October 2021 (UTC)
How to embed one mediawiki page into the another have
In one mediawiki file, we would like to embed another mediawiki page whithout using the page links. AshwiniUpasani (talk) 09:21, 11 October 2021 (UTC)
- The only way to archive this would be using Transclusion. Basically it is the same as using wikitext templates, but with an explicit namespace prefix. E.g.
{{:Some_page_from_the_main_namespace}}. Osnard (talk) 09:57, 11 October 2021 (UTC)
How to use conditional if inside the page for showing the content based on sitename condition
Inside the media wiki page, we want to use the if condition excute few things based on the sitename .
how can we do this ? AshwiniUpasani (talk) 09:43, 11 October 2021 (UTC)
- Please make One Thread! MarkusBoehm85 (talk) 09:46, 11 October 2021 (UTC)
- See help:extension:ParserFunctions (#ifeq:) and help:Magic Words (the SITENAME magic word) Bawolff (talk) 19:39, 11 October 2021 (UTC)
CSS per category
The following discussion is closed. Please do not modify it. Subsequent comments should be made on the appropriate discussion page. No further edits should be made to this discussion.
I can set CSS per namespace in Common.css, but can't work out whether this is possible per category. I don't think so but it seems to have been possible 11 years ago: Project:Support desk/Flow/2011/04#h-Css_for_categories-2011-04-02T16:54:00.000Z. Thanks for any advice. Jonathan3 (talk) 09:56, 11 October 2021 (UTC)
- The body element has a different class depending on the page title. You could use that. Bawolff (talk) 19:37, 11 October 2021 (UTC)
- Thanks. That could be useful but not in my case, unless I were to rename the pages. I'll likely move them to a separate namespace and apply CSS that way (see Project:Support desk/Flow/2021/10#h-Move_every_page_in_a_category_to_custom_namespace-2021-10-11T09:59:00.000Z). Jonathan3 (talk) 09:26, 12 October 2021 (UTC)
Move every page in a category to custom namespace
The following discussion is closed. Please do not modify it. Subsequent comments should be made on the appropriate discussion page. No further edits should be made to this discussion.
Is there a quick way of doing this?
I'd be happy for the pages to remain in the category (I can remove that later using ReplaceText).
My reason for considering using namespaces instead of categories is to stop the pages (ordinarily) showing up on search results and (less importantly) to indicate that the pages are of a different type by the namespace itself and by a using different page background colour. Jonathan3 (talk) 09:59, 11 October 2021 (UTC)
- One simple way would be to save the list of pages into a text file, then use "search&replace" on that file to compose the target page names and feed it into the command line script Manual:MoveBatch.php.
- The list of pages can either be obtained from the respective category page, or by using the MediaWiki API. Osnard (talk) 10:09, 11 October 2021 (UTC)
- Thank you :-)
- Mainly for my own reference: there are further ideas on the talk page at Manual talk:MoveBatch.php under the heading "Moving a bunch of pages to another namespace". Jonathan3 (talk) 15:39, 11 October 2021 (UTC)
- Thanks again. This worked perfectly! Jonathan3 (talk) 21:31, 12 October 2021 (UTC)
installing some template
Hello when ever I tried to import some template i always get White screen. Help please
Example Template:3-el perm inversions Thatnewman (talk) 10:23, 11 October 2021 (UTC)
- How to debug please enable php error reporting. Bawolff (talk) 19:36, 11 October 2021 (UTC)
- I have done that, but the problem is when i try to import some template or create them manually.. the screen will just be white....wont display anything Thatnewman (talk) 06:45, 12 October 2021 (UTC)
- Does apache error log say anything? Bawolff (talk) 07:56, 12 October 2021 (UTC)
- The Thing is I am not running it on server. I am using a hosting service. So i added error_reporting( -1 ); ini_set( 'display_errors', 1 ); at the begging of my localsetting and it display this error .
- Warning: Use of undefined constant NS_POLICY - assumed 'NS_POLICY' (this will throw an Error in a future version of PHP) in /home/database/en.website/LocalSettings.php on line 355
- Warning: Use of undefined constant c - assumed 'c' (this will throw an Error in a future version of PHP) in /home/database/en.website.org/LocalSettings.php on line 390
- Deprecated: Caller from MediaWiki::restInPeace ignored an error originally raised from MediaWiki\Extension\Math\MathRenderer::readFromDatabase: [1146] Table 'Mydatabase.mwnq_mathoid' doesn't exist (localhost) in /home/database/en.website.org/includes/debug/MWDebug.php on line 376
- on my LINE 355 i Have $wgNamespaceProtection[NS_POLICY] = array( 'editpolicy' );
- on Line 390
- 389 $wgImportTargetNamespace = null;
- 390 $wgExportAllowHistory = c;
- 391 $wgExportMaxHistory = 0;
- 392 $wgExportMaxLinkDepth = 0; Thatnewman (talk) 08:49, 12 October 2021 (UTC)
- what its saying is that
- define("NS_POLICY", number of policy namespace here);
- Is either missing or after the namespace protection line instead of before it.
- i have no idea what you are trying to do with
- $wgExportAllowHistory = c;
- You probably meant true instead of c.
- And last of all, there is something wrong with math extension. Either run update.php or disable the extension (this is the major error) Bawolff (talk) 16:33, 13 October 2021 (UTC)
- Nope, it just wen blank...I have tried the code on some other new wiki and it seems to work perfect on there... so don't know why i am getting the error Thatnewman (talk) 08:32, 12 October 2021 (UTC)
It's impossible to log in
The following discussion is closed. Please do not modify it. Subsequent comments should be made on the appropriate discussion page. No further edits should be made to this discussion.
Rested my password at least 10 times.
Email adress ? not working. Apparently I need to install an extra extension, thanks for telling me that, did not lose 30mn trying to find out why it wasn't working.
Using the script ? writes on the DB fine, still unable to login.
Modifying the database directly ? Still unable to login.
I'm litteraly copy pasting the password string I've inputed in all of that methods. Still unable to login.
Restarted apache. Reloaded apache. Restarted the entire machine.
Still. unable. to. login.
Apparently, for unknown black magic, my password is STILL wrong.
Please tell me what's happening. I'm losing my mind. Themistik (talk) 17:52, 11 October 2021 (UTC)
- > Email adress? not working. Apparently I need to install an extra extension, thanks for telling me that, did not lose 30mn trying to find out why it wasn't working
- You don't? Idk even know what you could install that would be relavent. If you selected disable during the install process you would have to change it.
- To confirm, the error message is incorrect password? (And not say something about session hijacking)?
- For the purpose of debugging can you set your password to something else (as the following will reveal what it is to us):
- Can you enable mediawiki debug log (see How to debug) and give us the output when trying to login. Can you also include the row from the user table corresponding to your user and tell us what you think the password is? Bawolff (talk) 19:35, 11 October 2021 (UTC)
- It seems I do, because mail simply does not work, despite being the right mail adress. I saw a post on this board that you need to install an SMTP extension.
- Yes, the message is indeed incorrect password.
- I don't understand what kind of debug I'm supposed to choose, there is a ton of them. Themistik (talk) 19:49, 11 October 2021 (UTC)
- I found out by changing my password to something simple, without letters, numbers or special characters.
- Apparently you're not allowed to put special characters into your password otherwise it will simply not work. Great major security issue here.
- Solved, but not really solved. Themistik (talk) 19:58, 11 October 2021 (UTC)
Embeding FLAC
The following discussion is closed. Please do not modify it. Subsequent comments should be made on the appropriate discussion page. No further edits should be made to this discussion.
Is there a way to embed a flac file in a wiki page? "Media:" does not embed the way it does for OGG, it just creates a link on my Wiki. Andrew Branscom (talk) 01:40, 12 October 2021 (UTC)
Targeted harassment
I am being harassed across wikis by an IP user. Can someone direct me to the administrator noticeboard where I can receive assistance with this on Media Wiki? Citrivescence (talk) 02:51, 12 October 2021 (UTC)
- Unless the harrasment is happening on this wiki (in which case see CoC or in a clear cut case pick a random active admin and leave a message on their talk page) we aren't the people to deal with it.
- For cross wikimedia (non-technical) project issues try https://meta.wikimedia.org especially https://meta.wikimedia.org/wiki/Harassment Bawolff (talk) 07:54, 12 October 2021 (UTC)
How to securely appoint an helper editor?
The following discussion is closed. Please do not modify it. Subsequent comments should be made on the appropriate discussion page. No further edits should be made to this discussion.
MediaWiki 1.36.1, all core website, with just one user (for myself); only I and users I appoint can edit the website.
My website may be starting to become too large for me to maintain it myself and I would need to appoint an helper, a general content editor which by definition most of hers/his edits would be dwarf edits, typo fixing, wikization and alike.
Is there any guide on this particular problem and how to solve it? How to do it securely by any mean of information security? How to "correctly" monitor edits by the helper (maybe there is something extra to contribs available and handy without installing any extension?)
How would you suggest to do that? 182.232.53.152 (talk) 08:03, 12 October 2021 (UTC)
- This topic just had a trolling attempt about 5 hours ago, I found it by chance. 182.232.145.95 (talk) 10:20, 18 October 2021 (UTC)
- A better discussion may continue at:
- Project:Support desk/Flow/2021/10#h-Is_there_a_way_to_make_an_editor_edit_only_dwarf_edits_or_edits_up_until_a_certa-2021-10-17T12:17:00.000Z 182.232.145.95 (talk) 10:20, 18 October 2021 (UTC)
White screen after forcing https
The following discussion is closed. Please do not modify it. Subsequent comments should be made on the appropriate discussion page. No further edits should be made to this discussion.
I am running MW 1.35.0, MySQL 5.7.33, PHP 7.4 on shared webspace (ionos 1&1) and have recently activated a SSL-certificate for the page.
When I just set $wgServer = "https:// ...;" nothing happened.
When I set $wgForceHTTPS = true; The Wiki only shows a white page, no favicon. Oddly Special:Version loads nicely with a green and closed lock symbol.
I called my provider and everything seems to work fine on their end.
php-Error logs don't show anything.
Can someone point me to where else to look for a solution? Could it be some extension? Im using among others SemanticMediawiki, Lockdown, Skin:Chameleon
Any idea or hint is highly appreciated ThiloSch (talk) 09:27, 12 October 2021 (UTC)
- Check the browser console and see if there are server responses erroring out and then see what error they give. —TheDJ (Not WMF) (talk • contribs) 11:22, 12 October 2021 (UTC)
- Hi and thanks for your help.
- so meanwhile I could use the wiki with a secure connection on FireFox seemingly without issues. Chrome still showed a white screen with following Error in the browser console:
GET <Wiki address> net::ERR_HTTP2_PROTOCOL_ERROR 200- Also, but I don't know if this is related. After I tried to use HTTPS yesterday I couldn't log into the wiki using chrome this morning. The problem persisted even when I changed back to http. Is this a separate issue?
- Finally I stumbled across this and now both issues went away. I only sort of know what I am doing here, so should I make sure output compression works?
- Thanks again ThiloSch (talk) 14:35, 13 October 2021 (UTC)
Update Mediawiki to latest
- I got an message sayijg i should update my mediawiki from 1.36.1 to 1.36.2.. SHould I? Thatnewman (talk) 09:28, 12 October 2021 (UTC)
- Yes, you should. Joseph202 (talk) 15:09, 12 October 2021 (UTC)
- Is that a serious question? Release notes/1.36 Malyacko (talk) 12:31, 12 October 2021 (UTC)
- I am just asking if i wont loose my previous work Thatnewman (talk) 12:39, 12 October 2021 (UTC)
- Usually nothing breaks with minor version changes so you might as well go ahead. There are some security patches so that's another reason to do it. Jonathan3 (talk) 13:47, 12 October 2021 (UTC)
Pages permission by user
Is it possible to show pages to an AD group only? My Wiki has been set with LDAP config FedericoSalaEm (talk) 10:21, 12 October 2021 (UTC)
- What did you mean by AD group? ↠Tanbirzx (✉) 17:05, 12 October 2021 (UTC)
Unable to edit over a VPN
Hi,
I have a mediawiki used as a user knowledgebase at work, in the office. But over a VPN from home, I can't edit, but I can read the pages. Pressing Save, or Preview, does nothing. Does anyone have any idea what am I doing wrong? CherryHinton (talk) 10:59, 12 October 2021 (UTC)
- Have you checked the browser console ? Have you checked the webserver logs ? Have you checked the mediawiki debug log ? —TheDJ (Not WMF) (talk • contribs) 11:21, 12 October 2021 (UTC)
Easy way to find URL for an image?
I'm trying to put a background (watermark) image on a page and found this code:
<div style="background-image: url('image_path');">
As I understand it, I'd need to log onto my host site's server to find this actual URL.
Isn't there any way for me to find the URL through my wiki's interface (like, on the image's page), rather than go through that rigmarole every time I need a URL? Seems like my wiki ought to be able to tell me, since obviously it's aware of it already. Somehow.
This is for a tiny personal wiki (MW v 1.35.1) where the images are internal to my site and everything on the wiki is mine.
Thanks if you can help! RedKnight7 (talk) 11:54, 12 October 2021 (UTC)
- I don't think you would use the file path. You could use the absolute URL from your wiki, e.g. on https://www.example.com/wiki/File:Background.jpg click on the image and it'll be something like https://www.example.com/wiki/images/a/b/Background.jpg Jonathan3 (talk) 19:56, 12 October 2021 (UTC)
- Ah right I see it now... I didn't think to look there. Many thanks!
- Still can't get it to show as a background image though. Nothing happens. Oh well, I'm not going to worry about this any more for now. RedKnight7 (talk) 20:54, 12 October 2021 (UTC)
- So that should work (background-image in common.css). In your web browser there is an inspect element feature where you can see what css applies to an element which can help you figure out why its not working. Bawolff (talk) 16:26, 13 October 2021 (UTC)
- Maybe you could include it using Common.css based on the page name. Jonathan3 (talk) 21:24, 12 October 2021 (UTC)
- Nope, I tried it and it doesn't work. it's discussed here: Project:Support desk/Flow/2016/08#h-How_to_use_an_image_as_a_background_for_a_wiki_page-Internal_error-2016-08-19T08:16:00.000Z. Jonathan3 (talk) 21:30, 12 October 2021 (UTC)
- All they are saying over there is the person could not add it to common.css as they weren't an admin, but it should work fine if they were an admin. Bawolff (talk) 16:28, 13 October 2021 (UTC)
- I must have failed to make it work for some other reason :-) Jonathan3 (talk) 18:06, 13 October 2021 (UTC)
- You can't include background-image in inline css (stylr attribute). You have to put it in mediawiki:common.css or use extension:TemplateStyles
- As Johnathan said, be sure to use a direct url to the image or thumbnail,not the file description page Bawolff (talk) 16:22, 13 October 2021 (UTC)
Skin Minerva styles
Hi,
It appears that my site (https://en.famepedia.org) is loading skins.minerva.content.styles instead of skins.minerva.base.styles...
Please how do I load skins.minerva.base.styles or is it possible to load both? Joseph202 (talk) 15:13, 12 October 2021 (UTC)
If statement in Template:Infobox breaking lines outside Infobox
Hello everyone, how are you?
I'm having a strange issue and I can't find a way to fix this.
I'm developing a New World wiki in portuguese language and I'm using an Infobox to display certain details about game items in my wiki. I started using #if and #ifeq statements so I can use parameters as optional. When I don't add them, they shouldn't show up. This is working correctly. However, whenever I don't add a specific parameter, a new paragraph/line break is created in the HTML just before the Infobox. This is quite strange and adds a lot of space between the wiki page title and the rest of the content, where my Infobox starts.
Does anyone know how to fix this weird behavior? I have no idea how.
This is the infobox template I'm using: https://newworld.wiki.br/w/index.php?title=Template:Infobox
This is an example of page using this infobox template where I didn't add some parameters and for each parameter I don't add, a new paragraph line is inserted in the top of the content: https://newworld.wiki.br/wiki/Escudo_Circular_de_A%C3%A7o
As you can see, there are 5 paragraphs added with no content before the infobox.
Does anyone have a clue about what's going on?
I appreciate your help. 2804:14D:90A8:8E77:D927:5272:C882:8F07 (talk) 17:17, 12 October 2021 (UTC)
- It's a pain in the neck, but all the line returns between your if statements are probably doing this.
- If that's the case, then one solution would be to make sure all the if statements are on one line.
- I think the line returns appear before the table because the if statements are outside the table structure, i.e. not within tr or td tags. Jonathan3 (talk) 19:48, 12 October 2021 (UTC)
- I had a similar issue but with #if statements and inside the table. For me, it went away when I inserted the last pipe for the else statement.
- Could it possibly work if you wrap an if around the ifeq, so it only gets evaluated when the variable is not empty? ThiloSch (talk) 08:23, 14 October 2021 (UTC)
- So, I tried almost EVERYTHING I could think of, with no success. The only thing I was able to change is that the line breaks are now inside the infobox and not outside. I found some help in other Wiki pages, such as Help:Conditional_tables in Wikipedia and Help:Table#Conditional_table_row in MediaWiki.
- I was able to arrive to this code, closer to what they provide:
{| class="infobox {{#ifeq {{{raridade|}}} | Comum | comum }}{{#ifeq {{{raridade|}}} | Incomum | incomum }}{{#ifeq {{{raridade|}}} | Raro | raro }}{{#ifeq {{{raridade|}}} | Épico | epico }}{{#ifeq {{{raridade|}}} | Lendário | lendario }}" <tr class="topo"> <td style="text-alignleft; width 22%;">{{image}}</td> <td><h3>{{PAGENAME}}</h3><div class="categoria">{{categoria}}</div>{{#if{{{raridade|}}}|<div class="raridade">{{{raridade}}}</div>}}</td> </tr> {{#if{{{pontuacao|}}}|{{!}}- ! {{{pontuacao}}} {{!}} Pontuação do <br />Equipamento }} {{#if{{{dano|}}}|{{!}}- ! {{{dano}}} {{!}} Dano }} {{#if{{{chance|}}}|{{!}}- ! {{{chance}}} {{!}} Chance de Acerto Crítico }} {{#if{{{multiplicador|}}}|{{!}}- ! {{{multiplicador}}} {{!}} Multiplicador de Dano Crítico }} {{#if{{{bloquear|}}}|{{!}}- ! {{{bloquear}}} {{!}} Bloquear Dano de Vigor}} {{#if{{{estabilidade|}}}|{{!}}- ! {{{estabilidade}}} {{!}} Estabilidade de Bloqueio}} {{#if{{{armadurafisico|}}}|{{!}}- ! {{{armadurafisico}}} {{!}} Avaliação da Armadura - Físico{{!}}- ! {{{armaduraelemental}}} {{!}} Avaliação da Armadura - Elemental}} {{#if{{{danocortante|}}}|{{!}}- ! [[FileDano-Cortante-icon.png]] {{{danocortante}}} {{!}} Dano Cortante}} {{#if{{{danocontundente|}}}|{{!}}- ! [[FileDano-Contundente-icon.png]] {{{danocontundente}}} {{!}} Dano Contundente}} {{#if{{{danoperfurante|}}}|{{!}}- ! [[FileDano-Perfurante-icon.png]] {{{danoperfurante}}} {{!}} Dano Perfurante}} {{#if{{{danoimaterial|}}}|{{!}}- ! [[FileDano-Imaterial-icon.png]] {{{danoimaterial}}} {{!}} Dano Imaterial}} {{#if{{{danodegelo|}}}|{{!}}- ! [[FileDano-de-Gelo-icon.png]] {{{danodegelo}}} {{!}} Dano de Gelo}} {{#if{{{danoarcano|}}}|{{!}}- ! [[FileDano-Arcano-icon.png]] {{{danoarcano}}} {{!}} Dano Arcano}} {{#if{{{bonus1|}}}|{{!}}- ! [[FileBonus-icon.png]] {{!}} {{{bonus1}}}}} {{#if{{{bonus2|}}}|{{!}}- ! [[FileBonus-icon.png]] {{!}} {{{bonus2}}}}} |}
- I just don't have a clue on why I would add ifnotempty instead of #if.
- However, I still get the problem. Tables and #if conditionals just really don't work together in wiki! Mostly it seems to be because the | (pipe) character, which you should change to | so they are not part of the #if parserfunction.
- However, I tried so many times for the past 3 days and I didn't achieve a simple result of not getting a line break in the wrong place! This is so disappointing. The only thing I could see is the line breaks when I have multiple blank conditionals. It's the blank ones that are not working very well.
- If anyone knows how to overcome this, please help.
- Thanks a lot again. 2804:14D:90A8:8251:2531:3AD3:8BF8:1734 (talk) 20:46, 14 October 2021 (UTC)
- This is the actual code I tried:2804:14D:90A8:8251:2531:3AD3:8BF8:1734 (talk) 20:47, 14 October 2021 (UTC)
<tr class="topo"><td style="text-alignleft; width 22%;">{{{image}}}</td><td><h3>{{PAGENAME}}</h3><div class="categoria">{{{categoria}}}</div>{{#if{{{raridade|}}}|<div class="raridade">{{{raridade}}}</div>}}</td></tr> {{#if{{{pontuacao|}}}|{{!}}- {| class="infobox {{#ifeq {{{raridade|}}} | Comum | comum }}{{#ifeq {{{raridade|}}} | Incomum | incomum }}{{#ifeq {{{raridade|}}} | Raro | raro }}{{#ifeq {{{raridade|}}} | Épico | epico }}{{#ifeq {{{raridade|}}} | Lendário | lendario }}" !{{{pontuacao}}} {{!}} Pontuação do <br />Equipamento }} {{#if{{{dano|}}}|{{!}}- !{{{dano}}} {{!}} Dano }} {{#if{{{chance|}}}|{{!}}- !{{{chance}}} {{!}} Chance de Acerto Crítico }} {{#if{{{multiplicador|}}}|{{!}}- ! {{{multiplicador}}} {{!}} Multiplicador de Dano Crítico }} {{#if{{{bloquear|}}}|{{!}}- ! {{{bloquear}}} {{!}} Bloquear Dano de Vigor}} {{#if{{{estabilidade|}}}|{{!}}- ! {{{estabilidade}}} {{!}} Estabilidade de Bloqueio}} {{#if{{{armadurafisico|}}}|{{!}}- ! {{{armadurafisico}}} {{!}} Avaliação da Armadura - Físico{{!}}- ! {{{armaduraelemental}}} {{!}} Avaliação da Armadura - Elemental}} {{#if{{{danocortante|}}}|{{!}}- ! [[FileDano-Cortante-icon.png]] {{{danocortante}}} {{!}} Dano Cortante}} {{#if{{{danocontundente|}}}|{{!}}- ! [[FileDano-Contundente-icon.png]] {{{danocontundente}}} {{!}} Dano Contundente}} {{#if{{{danoperfurante|}}}|{{!}}- ! [[FileDano-Perfurante-icon.png]] {{{danoperfurante}}} {{!}} Dano Perfurante}} {{#if{{{danoimaterial|}}}|{{!}}- ! [[FileDano-Imaterial-icon.png]] {{{danoimaterial}}} {{!}} Dano Imaterial}} {{#if{{{danodegelo|}}}|{{!}}- ! [[FileDano-de-Gelo-icon.png]] {{{danodegelo}}} {{!}} Dano de Gelo}} {{#if{{{danoarcano|}}}|{{!}}- ! [[FileDano-Arcano-icon.png]] {{{danoarcano}}} {{!}} Dano Arcano}} {{#if{{{bonus1|}}}|{{!}}- ! [[FileBonus-icon.png]] {{!}} {{{bonus1}}}}} {{#if{{{bonus2|}}}|{{!}}- ! [[FileBonus-icon.png]] {{!}} {{{bonus2}}}}} |}
- I couldn't make sense of that code even from the source but have you tried putting all the if statements on one line? e.g.
{{#if:....|...}}{{#if:...|...}}{{#if:...|...}}- If you're using tables it's probably easier to just use the table/tr/td html tags rather than wikitext.
- Also you could use a div instead of a table for the infobox. Jonathan3 (talk) 21:35, 14 October 2021 (UTC)
Warning someone that you're leaving the wiki
Is there any existing extension or tool that warns readers that they're leaving the wiki? It's common for some types of websites and usually displays a message like "You are now leaving OurSite.com for an external site. OurSite is not responsible for the content of other websites". Does that exist in MediaWiki? Whatamidoing (WMF) (talk) 20:37, 12 October 2021 (UTC)
- Personally i find those types of things annoying.
- We do have it for certain special cases - e.g. special:search/google:foo, where open redirects can happen (open redirect is a type of security vuln where you trick a person into thinking they are on a different website than they actually are. Its sometimes used in phishing attacks)
- So outside of open redirects, no i'm not aware of anything. Bawolff (talk) 16:17, 13 October 2021 (UTC)
- You may be able to just intercept any external link click and show some alert dialog using JavaScript in MediaWiki:Common.js
$(document).on( 'click', 'a.external', function() { alert( 'You are leaving ' + mw.config.get('wgSiteName') ); } );- But that of course will only work for clients with JavaScript enabled. Osnard (talk) 12:43, 14 October 2021 (UTC)
- Osnard, that might be good enough. I imagine that a system that worked for most of the cases, most of the time would be handy for some purposes, especially a wiki that was on a sensitive topic. Whatamidoing (WMF) (talk) 20:41, 21 October 2021 (UTC)
- I would imagine that most intranet instances of mediawiki would find benefit in this capability. I work for a large company that is looking for this capability on their corporate instance. 76.166.193.10 (talk) 13:26, 8 June 2022 (UTC)
- I wonder whether folks associated with the Enterprise hub would have other ideas about how to address this problem. Whatamidoing (WMF) (talk) 05:25, 13 June 2022 (UTC)
Exclude redirects from search results
It looks like this has been discussed a lot over the years, usually beginning with questions like mine here (I'd really like to have redirects excluded from search results). What's the current situation on this? I wasn't able to find a definitive answer. Thanks. Jonathan3 (talk) 21:37, 12 October 2021 (UTC)
- I assume from the silence that it isn't possible :-)
- Any ideas on how to implement this? Is there a hook that could be used in an extension? Thanks. Jonathan3 (talk) 14:04, 22 October 2021 (UTC)
Call to undefined function enableSemantics()
hello i am having problems in my wiki to install semantic mediawiki, i followed the steps as mentioned in the official page but when enabling the enableSemantics function ( ), mediawiki shows me the following error:
[932dc61b19f096e65daeff2b] / wiki / mw-config /? Page = ExistingWiki Error: Call to undefined function enableSemantics ()
I have no idea what it could be but is there a solution? Gota de agua (talk) 02:08, 13 October 2021 (UTC)
- Please see "Post a new question" in the sidebar, plus Manual:How to debug Malyacko (talk) 05:25, 13 October 2021 (UTC)
- @Malyacko, Well, I already tried to get more details about this error, apparently I have not been able to find more details it always shows only that "Call to undefined function enableSemantics ()" error, I don't know if this also has to do with the installation problem of the extension validator, as far as I know, is a dependency for semantic mediawiki, these are the resources installed in my wiki:
| Producto | Versión |
|---|---|
| MediaWiki | 1.36.2 |
| PHP | 7.3.27-1~deb10u1 (cgi-fcgi) |
| MySQL | 5.5.62-0+deb8u1 |
| ICU | 63.1 |
| Lua | 5.1.5 |
Gota de agua (talk) 15:43, 13 October 2021 (UTC)
- Please provide a stacktrace of the error. Malyacko (talk) 08:42, 14 October 2021 (UTC)
download old e-mails into TRASH in mass?
download old e-mails in mass into trash (1200) ? 23.84.48.89 (talk) 04:27, 13 October 2021 (UTC)
- "Before you post" here in sidebar? Malyacko (talk) 05:24, 13 October 2021 (UTC)
Footer links
Hello,
I would like to remove from the footer the imprint, the privacy notice and the about us text. I have a theme which adapts XenForo and MediaWiki, where the style is passed along, so I don't need that anymore. How can I remove this?
I do not want to use CSS because of SEO.
Kind regards
~Nicklas
View image RealStaticDev (talk) 06:08, 13 October 2021 (UTC)
- Hi, have you tried the search? Manual:Footer Malyacko (talk) 07:16, 13 October 2021 (UTC)
- Hello, yes I have already tried 3 hours around but I am to no ergebniss gekommem. Do you know how I can solve this? 2003:D3:A70B:8600:98D2:76F9:E9B4:F4EA (talk) 12:11, 13 October 2021 (UTC)
- Generally you can just edit the relevant message page so that it's a hyphen only. Has that not worked?
- "To remove the privacy, about and/or disclaimer links entirely, replace the link text with a single dash ("
-")." Jonathan3 (talk) 18:32, 13 October 2021 (UTC)
Bug/CSS: list of other projets overlapping with their logos
Hello,
I was redirected from Phabricator: https://phabricator.wikimedia.org/T293046 . Please see the ticket for details.
I would like to report and potentially fix a bug reported in some wikis. How to fix a bug on local wiki (e.g. https://ar.wikiversity.org/) ? ForzaGreen (talk) 07:45, 13 October 2021 (UTC)
- You check and fix the CSS for "li.wb-otherproject-link" on the page "MediaWiki:Common.css" Malyacko (talk) 14:46, 13 October 2021 (UTC)
Maps not loading with Form
Hi, We are facing issue to load Maps if we are using pageform /forms on same page.
Maps bwlow js are not loading properly.
<script src="//maps.googleapis.com/maps/api/js?language=en&amp;amp;key=XXXXXXXXXXXXXX"></script>
"ext.maps.googlemaps3","ext.maps.googlemaps3ajax"
MediaWiki 1.35.3
PHP 7.4.23 (apache2handler)
MySQL 8.0.26
Maps :9.0
PageForms :5.2.1
---Maps & Page from text -----------------------------------
{{#ask: coordinates::+ |limit=20000|?coordinates|?BASIN |format=map |type=hybrid |hidenamespace=on |kml=url |searchmarkers=all }}
Pooja2425 (talk) 09:53, 13 October 2021 (UTC)
Wiki SEO confg
How do Configure the Description on google with . Extension:WikiSEO
I know this is the setting
{{#seo:|title_mode=append|title=Example SEO Wiki|keywords=WikiSEO, SEO, MediaWiki|description=An example description for this wiki|image=Wiki_Logo.png|image_alt=Wiki Logo|site_name=Example SEO Wiki|locale=en_EN|type=website|modified_time=2025-03-27|published_time=2020-11-01}}
Apart from putting it in my Mainpage, where can i insert it? Thatnewman (talk) 13:52, 13 October 2021 (UTC)
- You can put the #seo thing on any page. Jonathan3 (talk) 21:24, 15 October 2021 (UTC)
How to backup sqlite
I thought the only backup i need is for the <wiki>.sqlite file. But the following restore fails:
- A new wiki container (no database or LocalSettings.php file)
- Download the <wiki>.sqlite file
- Go through the new wiki wizard in browser. It detects there is an existing files and suggest to update it
- Copy the LocalSettings.php file to the wiki
When I open the wiki I get an error: Error 1: no such table: l10n_cache
I didn't backup the I10n_cache file, since it is not mentioned in Manual:SQLite/Back-up and also its name suggests it is something that can be recreated.
How do I fix this? 84.111.224.227 (talk) 13:55, 13 October 2021 (UTC)
- you can use the sqlite command line tool to create a new db.
- sqlite3 wiki.l10n_cache.sqlite
- And then give it the following input
CREATE TABLE l10n_cache ( lc_lang BLOB NOT NULL, lc_key TEXT NOT NULL, lc_value BLOB NOT NULL, PRIMARY KEY (lc_lang, lc_key) ); PRAGMA journal_mode=WAL;- Which should recreate the l10n table. Bawolff (talk) 04:44, 14 October 2021 (UTC)
Dead Wiki
The following discussion is closed. Please do not modify it. Subsequent comments should be made on the appropriate discussion page. No further edits should be made to this discussion.
Hey guys,
so I just stumbled upon a wiki called "logopaediewiki.de"
And I wanted to add stuff, so I tried to make a account, but it gives me a error message.
Something like "The E-Mail can not be send, there's a php error".
The thing is, the last time someone has edited something on the page was in 2017.
So I guess that the admin is not taking care of the site anymore and no one can add or edit anything because he can't/won't fix that issue.
Is there anyway to get that fixed to use that wiki? 2001:16B8:10E5:D200:5823:8FA0:DE4D:518C (talk) 16:03, 13 October 2021 (UTC)
- We dont control that wiki. You would have to contact whomever is in charge of it Bawolff (talk) 20:43, 13 October 2021 (UTC)
Velashi (talk) 13:36, 14 October 2021 (UTC)
- Found him. Thanks. Velashi (talk) 13:38, 14 October 2021 (UTC)
Mediawiki Extensions
Hope all are well.
Wondering if there is a page i can find extensions, specifically for version 1.31.10? Seems like all the extensions i want (i.e. wikieditor) are not compatible due to this old version and i do not want to update this version and lose all my work. Thepainking (talk) 18:39, 13 October 2021 (UTC)
- WikiEditor is definitely compatibe. You might have to download the REL1_31 branch directly from github though. https://github.com/wikimedia/mediawiki-extensions-WikiEditor/archive/refs/heads/REL1_31.zip
- However we strongly encourage upgrading and upgrading does not delete any data. Bawolff (talk) 20:42, 13 October 2021 (UTC)
- can you please provide me instructions on how to update? is it just simply taking a newer version of mediawiki and extracting its contents in to my server? Is there anything i would have to do to protect my content? Thepainking (talk) 15:36, 19 October 2021 (UTC)
Dropdown menu of pages not showing.
When clicking on "More" to "Delete", "Move" or "Protect" a page, there is this little dropdown selection... but it won't show. Only the little arrow next to "More" is switching up or down.
| MediaWiki | 1.36.2 |
| PHP | 7.4.13 (cgi-fcgi) |
| MariaDB | 10.3.23-MariaDB-0+deb10u1 |
| ICU | 57.1 |
| Lua | 5.1.5 |
Rasputin 93 (talk) 19:29, 13 October 2021 (UTC)
Loading Minerva Base Styles
Hi, It appears that my site (https://en.famepedia.org) is loading skins.minerva.content.styles instead of skins.minerva.base.styles... Please how do I load skins.minerva.base.styles or is it possible to load both?
Any one has Idea??? Joseph202 (talk) 20:55, 13 October 2021 (UTC)
Can not log in to another media wiki called "Schnupptrupp"
Hello, I need help because I cannot log in to another wiki called "Schnupptrupp". Please help, thank you :) König Molinox (talk) 00:21, 14 October 2021 (UTC)
- Contact the owner of that wiki. We have no control over their wiki. Bawolff (talk) 04:37, 14 October 2021 (UTC)
MW migration problems
Hi,
we are using multiple MW instances ($wgVersion = '1.19.2';) on an old MS Server 2008 R2 with PHP 5.3.2
Now I´m trying to migrate this MWs wo a new server: Ubuntu - Apache2 - MySQL - PHP 7.4 - MW 1.36.2
First Problem is, I cannot simply copy the MW and the database to the new server, because of the newer PHP version.
What would be the correct way to migrate the old MWs to the new server with PHP 7.4 and MW 1.36.2?
Thy for the help! Horst0r (talk) 07:32, 14 October 2021 (UTC)
- There was a similar question here recently. You download the new software on the new server, transfer across the database and your own files (including LocalSettings.php), then run update.php. There's a page about upgrading and a page about moving a wiki that should help.
- Check what version to move to first. I think it might have to be in steps - to 1.35 first maybe? It's mentioned on the upgrade page. Jonathan3 (talk) 10:14, 14 October 2021 (UTC)
- @Jonathan3 thx for the hint, I will give it a try to update the old MW in multiple steps; hopefully this will work; Horst0r (talk) 13:47, 14 October 2021 (UTC)
- Good luck.
- The upgrading page says:
- If you are upgrading to MediaWiki 1.36 or later, only upgrades from the last two LTS releases will be supported (phab:T259771). This will mean that for very old versions, that you first upgrade to MediaWiki 1.35 and then upgrade to 1.36. Jonathan3 (talk) 13:59, 14 October 2021 (UTC)
- hmm, for my understanding I will have to follow the following upgrade path, as mentioned under "How do I upgrade from a really old version?":
- 1.19.2 --> 1.5.8 --> 1.35.4 --> 1.36.2 Horst0r (talk) 10:07, 15 October 2021 (UTC)
- Version numbers aren't like decimal numbers. So 1.19 is newer than 1.5. So you wouldn't need to go via 1.5.8. Jonathan3 (talk) 16:17, 15 October 2021 (UTC)
- @Jonathan3 sorry, my bad. Thanks for the hint!
- I have two MWs to migrate;
- 1.15.3 --> 1.35.4 --> 1.36.2
- 1.19.2 --> 1.35.4 --> 1.36.2
- hopefully this works; Horst0r (talk) 08:11, 18 October 2021 (UTC)
User Page Design
Hello everyone,
I notice this new feature on simple wiki on User page
Special:Homepage
https://paste.pics/995398f21101ee2bcff79c59170c785d
What Extension would i use or how.
How do i activate
Newcomer homepage Thatnewman (talk) 08:51, 14 October 2021 (UTC)
update.php error 1.31 -> 1.35: duplicate database entry
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.
Howdy,
we are migrating from MW 1.31.15 (PHP 7.2.24, MySQL 5.7.34) to 1.35.4 (PHP 7.4.24, same DB). When running update.php, I get:
<code>
Beginning migration of logging.log_user and logging.log_user_text to logging.log_actor
... log_id=100
... log_id=200
...
... log_id=4800
Wikimedia\Rdbms\DBQueryError from line 1699 of /var/www/test/mediawiki/includes/libs/rdbms/database/Database.php: Error 1062: Duplicate entry '' for key 'actor_name' (localhost)
Function: MigrateActors::addActorsForRows
Query: INSERT INTO `actor` (actor_name) VALUES ('')
#0 /var/www/test/mediawiki/includes/libs/rdbms/database/Database.php(1683): Wikimedia\Rdbms\Database->getQueryException()
#1 /var/www/test/mediawiki/includes/libs/rdbms/database/Database.php(1658): Wikimedia\Rdbms\Database->getQueryExceptionAndLog()
#2 /var/www/test/mediawiki/includes/libs/rdbms/database/Database.php(1227): Wikimedia\Rdbms\Database->reportQueryError()
#3 /var/www/test/mediawiki/includes/libs/rdbms/database/Database.php(2343): Wikimedia\Rdbms\Database->query()
#4 /var/www/test/mediawiki/includes/libs/rdbms/database/Database.php(2323): Wikimedia\Rdbms\Database->doInsert()
#5 /var/www/test/mediawiki/includes/libs/rdbms/database/DBConnRef.php(68): Wikimedia\Rdbms\Database->insert()
#6 /var/www/test/mediawiki/includes/libs/rdbms/database/DBConnRef.php(369): Wikimedia\Rdbms\DBConnRef->__call()
#7 /var/www/test/mediawiki/maintenance/includes/MigrateActors.php(219): Wikimedia\Rdbms\DBConnRef->insert()
#8 /var/www/test/mediawiki/maintenance/includes/MigrateActors.php(305): MigrateActors->addActorsForRows()
#9 /var/www/test/mediawiki/maintenance/includes/MigrateActors.php(115): MigrateActors->migrate()
#10 /var/www/test/mediawiki/maintenance/includes/LoggedUpdateMaintenance.php(45): MigrateActors->doDBUpdates()
#11 /var/www/test/mediawiki/includes/installer/DatabaseUpdater.php(1385): LoggedUpdateMaintenance->execute()
#12 /var/www/test/mediawiki/includes/installer/DatabaseUpdater.php(554): DatabaseUpdater->migrateActors()
#13 /var/www/test/mediawiki/includes/installer/DatabaseUpdater.php(517): DatabaseUpdater->runUpdates()
#14 /var/www/test/mediawiki/maintenance/update.php(181): DatabaseUpdater->doUpdates()
#15 /var/www/test/mediawiki/maintenance/doMaintenance.php(107): UpdateMediaWiki->execute()
#16 /var/www/test/mediawiki/maintenance/update.php(253): require_once('/var/www/test/m...')
#17 {main}
</code>
I would like to ask if there is a script to cleanup the database, or whatelse I could do to avoid the error. Kind regards, K. 2003:C2:3F22:8200:ADF6:543E:2092:8D2 (talk) 16:09, 14 October 2021 (UTC)
- Looks like your logging table has some rows with log_user_text empty but different log_user.
- You can try to set them to an "external" user and see if that works. Example:
update logging set log_user_text = 'unknown>unknown' where log_user_text = ;Ciencia Al Poder (talk) 17:33, 15 October 2021 (UTC)- Thank you, I'll try that tomorrow. After the DB update, can I simply re-run the update.php script or will I have to clear or prepare the DB tables prior to that? 2003:C2:3F22:8200:9C76:A21A:B4C4:D86A (talk) 18:15, 15 October 2021 (UTC)
- I found out all of the odd logging records were from the year 2007, long before I came along. After applying the update to the logging table, I re-run update.php script. The script is stable, it continues working where it stopped before.
- Problem solved, thanks a lot! 2003:C2:3F22:8200:3D5E:3CF4:4409:5FFA (talk) 08:52, 16 October 2021 (UTC)
Upgrading from 1.34
- I am fairly sure it should be possible to upgrade straight to 1.36 but is this right?
- The wording on the upgrading page isn't entirely clear, at least to me! Thanks. Jonathan3 (talk) 22:48, 14 October 2021 (UTC)
- You can do that without doubt. And most welcome. ↠Tanbirzx (✉) 12:46, 15 October 2021 (UTC)
- I'm pretty sure that's right. Bawolff (talk) 23:28, 14 October 2021 (UTC)
- Thanks. It looked like to get to 1.36 you had to be on a LTS version, but that wouldn't make sense on an ongoing basis. It must mean you need to be starting from no earlier than the relevant LTS version. Which in my case I think is 1.31. Jonathan3 (talk) 16:19, 15 October 2021 (UTC)
Why does Timeless, a core skin, contains about 300KB of resources in each webpage load?
MediaWiki 1.36.1 with Timeless skin in Hebrew.
When I test any MediaWiki webpage of my website in Google Pagespeed Insights (GPI) I get these two resource webpages:
- example.com/load.php?lang=he&modules=startup&only=scripts&raw=1&skin=timeless
- example.com/load.php?lang=he&modules=skins.timeless&only=styles&skin=timeless
Both webpages contain about 35201 characters (about 4MB in size each) which is a huge amount of JavaScript and CSS for "wiki pages" (mostly if not only containing text).
Maybe it does with the fact that my website is Hebrew (due to the lang=he query string).
I assume that my SEO could have been much better if I wouldn't have to load so much JavaScript and CSS in any webpage.
Please opine about what to do (or not to do) with this situation. 49.230.134.86 (talk) 03:51, 15 October 2021 (UTC)
- You're not just counting timeless there, most of it is probably base mediawiki not timeless.
- 35201 characters = 35 kb (?)
- But the answer is probably related to the choice of embedding images used in ui inside css. Which has a lot of pros and cons for performance (probably less useful on sites using http/2).
- If you don't like it, i guess use a different skin. However i'm doubtful this affects SEO. Bawolff (talk) 05:44, 15 October 2021 (UTC)
- @Bawolff
- Sorry, yes, 8KB not 8MB, I confused.
- My website is imageless in general (doesn't even have an image logo).
- From what I recall, none of my article webpages was ever loaded with any (skin-originated) image.
- The errors in PGI are:
- Remove unused JavaScript
- Eliminate render blocking resources
- I also found another JavaScript file with 278,970 characters (275KB):Why would such a large file get loaded alongside any webpage?... 49.230.134.86 (talk) 06:51, 15 October 2021 (UTC)
example.com/load.php?lang=he&modules=jquery%2Csite%7Cjquery.client%7Cmediawiki.String%2CTitle%2Capi%2Cbase%2Ccldr%2CjqueryMsg%2Clanguage%2Cutil%7Cmediawiki.libs.pluralruleparser%7Cmediawiki.page.ready%7Cskins.timeless.js%7Cuser.defaults&skin=timeless&version=40y9s
- > Why would such a large file get loaded alongside any webpage?
- Because MediaWiki is a complicated website, with lots of different functionalities that it has to facilitate.
- > I also found another JavaScript file with 278,970 characters (275KB):
- This query, fetches the jQuery framework, string utilities, title parsing, api clients, language information, translation information, the initial page setup and timeless specific javascript. All functionality needed.
- > I assume that my SEO could have been much better
- I very much doubt that. This is peanuts compared to something like the website of the New York Times. People are obsessed over SEO in the wrong places. SEO primarily is a function of content and interest. Only after that performance starts mattering. Have good content and SEO will follow. —TheDJ (Not WMF) (talk • contribs) 09:56, 15 October 2021 (UTC)
- @TheDJ
- A website being "complicated" doesn't justify loading so much content for webpages of a heading and text.
- Why not load only what's really needed per each page?
- (did you develop that?)
- SEO is much more than "the function of content and interest" and program performance (amount of load content, loading times, code quality, etc.) has a great role in it from my personal experience with various CMSs and from the experience of everyone I know that do it professionally. 49.230.134.86 (talk) 15:04, 15 October 2021 (UTC)
- "Why not load only what's really needed per each page?" That is already the case. If you think it is not, then feel free to locally experiment with somehow loading less things. Malyacko (talk) 13:26, 16 October 2021 (UTC)
- @ערן
- Is there any connection to Hebrew? If so, how would you in Hebrew wiki deal with that? 49.230.20.227 (talk) 07:37, 16 October 2021 (UTC)
- You can replace the lang to en (either by changing the URLs about from lang=he to lang=en, or loading the original page with uselang=en parameter, or if you have admin access change the language in LocalSettings.php and compare to en. I doubt Hebrew have much to contribute here.
- You can also load the page with debug=1 parameter - this will ask MW to load the resources separately and can help to deduce what are the resources that consume more size. (note that in this mode there is no minification) Eran (talk) 07:45, 16 October 2021 (UTC)
Sidebar image
I want to add an image to the sidebar of my site with an external link. When I edit Mediawiki:Sidebar the image is successfully added and the link works, but when I refresh the sidebar the image does not appear.
www.jerripedia.org
| Product | Version |
|---|---|
| MediaWiki | 1.17.2 |
| PHP | 5.6.40 (litespeed) |
| MySQL | 10.3.31-MariaDB-log-cll-lve |
Mikebisson (talk) 08:40, 15 October 2021 (UTC)
- Your software version has been unmaintained for nine years and is full of security issues. Please upgrade first for your own safety. Malyacko (talk) 15:36, 15 October 2021 (UTC)
- Also the sidebar doesn't support adding images. It's only for links, and a different link text at best Ciencia Al Poder (talk) 17:25, 15 October 2021 (UTC)
Struggling with Pretty URLs | No Root Access
I want to rewrite my URLs from:
example.com/w/index.php/Main_Page
to
example.com/wiki/Main_Page
I've done this before, several years ago, with the same hosting provider and similar instructions. I am not exactly a newby, but I am not super-knowledgeable - I'm starting over, and I'd like to get this task done before I add many more articles.
Most of the steps I've followed simply lead me to 404 errors or worse.
However...
I have followed various manuals over recent days, and somehow have currently arrived at the following result:
example.com/w/Main_Page
Note that the /index.php section of the URL is now gone. Progress? Maybe. It makes me want to leave well enough alone while I determine why I'm getting /w out of my rewrite rules instead of /wiki, but I am more than willing to reset my .htaccess and LocalSettings.php files back to their original state if you think I should start from scratch. I'm open to ideas because it's really important to be to get this done.
My files:
.htaccess
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteCond %{DOCUMENT_ROOT}%{REQUEST_URI} !-f
RewriteCond %{DOCUMENT_ROOT}%{REQUEST_URI} !-d
RewriteRule ^(.*)$ %{DOCUMENT_ROOT}/w/index.php [L]
</IfModule>
LocalSettings.php
$wgScriptPath = "/w";
$wgArticlePath = "{$wgScriptPath}/$1";
$wgUsePathInfo = false;
$wgScriptExtension = ".php";
Please let me know if I haven't provided enough information. I'm really trying here.
Thanks in advance for reading. I look forward to more ideas. I just feel like I'm missing something obvious because I'm up in the middle of the night. Ikevinax (talk) 10:35, 15 October 2021 (UTC)
- Try:
- .htaccess
<IfModule mod_rewrite.c> RewriteEngine On RewriteCond %{DOCUMENT_ROOT}%{REQUEST_URI} !-f RewriteCond %{DOCUMENT_ROOT}%{REQUEST_URI} !-d RewriteRule ^/?wiki/(.*)$ %{DOCUMENT_ROOT}/w/index.php [L] </IfModule>- LocalSettings.php
- Ciencia Al Poder (talk) 17:28, 15 October 2021 (UTC)
$wgScriptPath = "/w"; $wgArticlePath = "/wiki/$1"; $wgUsePathInfo = false; $wgScriptExtension = ".php";
- Thanks so much, but it didn't work. It looked similar to steps I've tried. I gave it a shot anyway. Strangely, it rewrites the URL exactly right, but the pages do not load. I get a 404 error. Ikevinax (talk) 00:30, 16 October 2021 (UTC)
- I assume your wiki is installed at %{DOCUMENT_ROOT}/w/. Is that correct? Ciencia Al Poder (talk) 09:36, 16 October 2021 (UTC)
- I think $wgScriptPath is to do with the URL rather than the file path so how about trying
$wgScriptPath = "/wiki";? - On my .htaccess I have
RewriteRule ^(.*)$ %{DOCUMENT_ROOT}/index.php [L]so how about tryingRewriteRule ^/?wiki/(.*)$ %{DOCUMENT_ROOT}/index.php [L]>(i.e. without the/w). - Maybe try without
$wgUsePathInfo = false;. I used to use this but had to change it when changing from someone's home computer to a shared host years ago. Now I just leave it to whatever the default is. - Maybe try without
$wgScriptExtension = ".php";. It was removed in MW 1.31. Jonathan3 (talk) 20:13, 17 October 2021 (UTC) - The article path should not be inside or the same as the script path. Ciencia Al Poder (talk) 21:55, 17 October 2021 (UTC)
- I think it would be ok for script path to be /wiki and article path to be /wiki/$1
- Not 100% sure but worth trying? Jonathan3 (talk) 22:55, 17 October 2021 (UTC)
<IfModule mod_rewrite.c>RewriteEngine On RewriteCond %{DOCUMENT_ROOT}%{REQUEST_URI} !-fRewriteCond %{DOCUMENT_ROOT}%{REQUEST_URI} !-dRewriteRule ^(.*)$ %{DOCUMENT_ROOT}/w/index.php [L]</IfModule>82.222.61.58 (talk) 07:05, 18 October 2021 (UTC)- We will get there in the end! Jonathan3 (talk) 08:38, 18 October 2021 (UTC)
- Everything is inside IfModule mod_rewrite.c
- Maybe mod_rewrite is not enabled, or even the .htaccess is completely ignored (no Option Override) Ciencia Al Poder (talk) 18:19, 18 October 2021 (UTC)
Wiki corrupt after 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.
My wiki got somehow/somewhere corrupt during, as I expect, an upgrade.
I am not using it often so I didnt discovered it directly, I assume the update is done automatically done by Installatron from my provider. The wiki first was setup somewhere in 2015.
First I thought I lost my password, because I was able not able to logon. However the forgot my password links wore not working for the admin user. So I created a new user and discovered that the orginal admin user was gone, also the page content is completly gone.
Offcourse I don't have any backup from a working version :( The backup I have is also containing a corrupted wiki.
Is there a way to recover the content without a backup? Jerroen12 (talk) 18:51, 15 October 2021 (UTC)
- It's all stored in the database so I guess you could look in there to begin with. Good luck. Jonathan3 (talk) 21:19, 15 October 2021 (UTC)
- Maybe you'd like to contact "Installatron"... Malyacko (talk) 13:24, 16 October 2021 (UTC)
I want to know my login details
I want to know my login details.
I have the same email address as used in creating my account.
I think my name is GarrisonRoo but I am not sure ... and I have forgotten my password.
Kind regards,
Garry Richards
garrynrichards@gmail.com 116.240.37.54 (talk) 00:41, 16 October 2021 (UTC)
- User:GarrisonRoo is not a registered user on mediawiki.org. For other websites, please contact other websites. Thanks. Malyacko (talk) 13:24, 16 October 2021 (UTC)
How can I make the headings white?
I want to make all the headings white in class=darkbackground used here:
*http://cannabis.shoutwiki.com/wiki/User:Timeshifter/Sandbox23 Timeshifter (talk) 02:39, 16 October 2021 (UTC)
- You define CSS either for the class mw-headline, or for the elements h1 to h6. Malyacko (talk) 13:23, 16 October 2021 (UTC)
- Thanks Malyacko. This worked:
- .darkbackground .mw-headline { color: white }
- I wish I had more of a clue on how to use Firefox developer mode via F12 key. Timeshifter (talk) 14:15, 16 October 2021 (UTC)
- There is a more general solution here:
- "How can I make the bullets and brackets white?"
- Project:Support desk/Flow/2021/10#h-How_can_I_make_the_bullets_and_brackets_white?-2021-10-16T16:09:00.000Z Timeshifter (talk) 08:12, 22 October 2021 (UTC)
How could I embed Media wiki module into my own webpage
I want to insert / embed Wiki function into my own webpage so all the visitor could edit or create topic together.
How could I do that? Is there any tutorial? OR process guideline?
Thank you for your help! Yiyok (talk) 15:08, 16 October 2021 (UTC)
- There is no "module" to "embed". Either your website runs on MediaWiki. Or it does not. :) Malyacko (talk) 12:32, 18 October 2021 (UTC)
Search suggestions diff. namespace in default search, MW 1.35?
Howdy,
I have recently upgraded our test wiki from 1.31 to 1.35.4 (PHP 7.4.24, MySQL 5.7.35). It is just a test environment, so the question is not urgent but I would appreciate if s.o. could give me a hint someday.
We are using the default search without any extensions (no CirrusSearch, ...), it has always been sufficient for us. The default behaviour is: When beginning to type, a small dropdown box opens, showing up to 10 matches. This feature has always been active for the main namespace (and continues working after the upgrade). Additionally, one could have typed <namespace>:<searchstring> and then the dropdown shows the matches within the given namespace. Which does not work any longer.
For comparison, check www.perrypedia.de vs. test.perrypedia.de and try searching "Hilfe:" or "Mediawiki:" - works fine in live wiki, doesn't find anything in test. Is this change intended or did I do something wrong? Kind regards, K. 2003:C2:3F22:8200:3D5E:3CF4:4409:5FFA (talk) 15:28, 16 October 2021 (UTC)
- is your skin the correct version, and are there errors in the web browser's developer console?
- You could try using the opensearch api module manually Api:Opensearch and see if it gives any errors. Bawolff (talk) 09:07, 17 October 2021 (UTC)
- Currently I am using Vector, which was part of the Mediawiki 1.35 bundle, but I have also tested other skins and the behaviour (missing search suggestions) is the same in any skin.
- No errors in the developer console.
- No errors in the Apache error log. (lots of PHP warnings that don't matter: deprecated hooks)
- No errors when using the opensearch api. It works but I notice the opensearch api slightly differs from the search suggestions in the way it searches namespaces ...:
- The documentation states I could supply the namespace within the URL, like "api.php?action=opensearch & search=N & namespace=12" *) This parameter seems to be ignored, the search result shows articles of the main namespace.
- On the other hand I can supply the namespace as part of the search string "api.php?action=opensearch & search=Hilfe%3aN" *) The search results are then limited to the "Hilfe" namespace but shows all articles containing an "n", i.e. a fulltext search - in contrast to the search suggestions dropdown, where I expect to see all articles beginning with "n".
- *)the editor rejects the full url (spam filter) 2003:C2:3F22:8200:D974:5731:741:FB6B (talk) 10:42, 17 October 2021 (UTC)
- Found and fixed! The trouble resulted from Extension:TitleKey. Removed the extension, now the namespace search works as before.
- (Even without TitleKey, the search is case insensitive so I dont know a reason why to have it installed.) 2003:C2:3F22:8200:88FF:1B74:E990:1633 (talk) 09:55, 19 October 2021 (UTC)
How can I make the bullets and brackets white?
The following discussion is closed. Please do not modify it. Subsequent comments should be made on the appropriate discussion page. No further edits should be made to this discussion.
I want to make all the bullets and brackets white in class=darkbackground used here:
- http://cannabis.shoutwiki.com/wiki/User:Timeshifter/Sandbox23 Timeshifter (talk) 16:09, 16 October 2021 (UTC)
- I got an answer at Wikipedia:Reference desk/Computing.
- This worked in http://cannabis.shoutwiki.com/wiki/MediaWiki:Common.css
ul {list-style-image:unset}h1,h2,h3,h4,h5,h6 {color:unset;}Timeshifter (talk) 18:04, 20 October 2021 (UTC)
- Thanks for sharing the answer here! [[kgh]] (talk) 17:18, 21 October 2021 (UTC)
Is there a way to make an editor edit only dwarf edits or edits up until a certain number of characters?
Is there a way to make an editor edit only dwarf edits or edits up until a certain number of characters?
The purpose is to ensure that the editor (with a new user account that I will create for her/him) will only do things like typo fixing, phrasing changes, wikization and alike. 49.230.21.5 (talk) 12:17, 17 October 2021 (UTC)
- Maybe experimenting with Extension:AbuseFilter Malyacko (talk) 08:12, 18 October 2021 (UTC)
- Thanks,
- I am looking for guidelines / tips rather than extensions. 182.232.145.95 (talk) 09:13, 18 October 2021 (UTC)
- Then I think the answer is No :-) Jonathan3 (talk) 11:08, 18 October 2021 (UTC)
- The answer turned out to be Yes in Project:Support desk/Flow/2021/10#h-Limiting_a_user_account_to_edit_only_up_to_a_certain_number_of_characters_in_eac-2021-10-19T05:12:00.000Z. Jonathan3 (talk) 15:12, 21 October 2021 (UTC)
How to change font size throughout wiki
When I change the font used on my wiki to Times New Roman, it seems tiny in comparison with Arial... what is the best way to increase the font size slightly throughout the whole wiki? Thanks. Jonathan3 (talk) 21:29, 17 October 2021 (UTC)
- Project:Support desk/Flow/2013/12#h-[RESOLVED]_How_to_change_my_Wiki_font_size?-2013-12-16T06:07:00.000Z Malyacko (talk) 08:12, 18 October 2021 (UTC)
- Thanks. I'd read that and it didn't help me, either with Vector or the main skin I use, Foreground. I'll try again though. Jonathan3 (talk) 08:40, 18 October 2021 (UTC)
- P.S. I've now asked the question on the Foreground skin talk page at Skin talk:Foreground#h-How_to_change_font_size_throughout_wiki-2021-10-18T11:10:00.000Z. Jonathan3 (talk) 11:11, 18 October 2021 (UTC)
- I compromised and used Georgia in the end. It has serifs, which I want, but is about the same size as Arial so I won't need to adjust any CSS. Jonathan3 (talk) 10:22, 20 October 2021 (UTC)
- https://developer.mozilla.org/en-US/docs/Web/CSS/font-size
- If you added something like that and it didnt take affect it could be something else in the skin overriding it. Browser dev tools can be helpful in that situation. Bawolff (talk) 06:03, 21 October 2021 (UTC)
- Thanks. I'd tried that but wasn't able easily to increase the font consistently across the website. I probably could have done with stacks of lines of CSS but it didn't seem worth it.
- The odd things was that when I just changed the font everything worked out at 16px (as before with Arial), but when I compared it with a plain 1990s website with Times New Roman also at 16px the text on the wiki was somehow smaller. To make it a bit bigger I was having to use font-size em/rem values to increase the px, but it was hard to change it consistently across the different elements of the website. Jonathan3 (talk) 08:22, 21 October 2021 (UTC)
- can i use different fonts? Hachdé (talk) 06:31, 21 October 2021 (UTC)
- "can i use different fonts?" Yes, you could just use
font-familyfor the relevant things, in MediaWiki:Common.css. Jonathan3 (talk) 08:16, 21 October 2021 (UTC) - Ok, thanks. Hachdé (talk) 07:09, 2 November 2021 (UTC)
- This may belong elsewhere, however.
- I'm tying to create a Sidebar and want to change the size of the font in the sidebar. How do you specify the size of the font for the words you're typing.
- eg:
- '| Flag = Cago
- [ [ File:Test_Image.png|50px ] ]
- Golden Griffon of Law in White Circle<break
- holding two lightning bolts on<break
- a red background
- So the words Golden Griffon... I'd like them in font size say 8 so they are small. How do I do that?
- Thanks,
- Karl Karlpajak (talk) 23:16, 16 November 2021 (UTC)
- Its better to start a new thread than tack on to an existing one,but:
- <span style="font-size: 8px">Golden Griffon</span> Bawolff (talk) 01:14, 17 November 2021 (UTC)
- On a related matter, for some time now (maybe years, I don't know) all WMF wikis have a "glasses" icon at the top right, left of the alerts icon. This opens a popup menu with some nice options, mostly (for me at least) the color related ones. How is this enabled? I can't find any obvious extension in Special:Version that implements this.
- Answering to myself here: it's a feature in MW 1.43+. Tactica (talk) 23:50, 27 November 2024 (UTC)
how to add "in other languages" section in the sidebar?
Hi team, I just a new user for mediawiki. And I just start up mediawiki system in a linux server. And it can be access, but seems can't find "in other languages" section in the sidebar on the left side of the page. Please let me know if there is something I missed, thanks! 2409:8928:430:53EC:98F:4D5F:1790:A842 (talk) 07:19, 18 October 2021 (UTC)
- On Wikimedia wikis, this is provided by the Wikidata extension and relies on Wikidata. Please elaborate on your use cases and underlying problems you want to solve. Malyacko (talk) 08:11, 18 October 2021 (UTC)
- Hi Malyacko, could you provide the extension page link? thanks! I can't find the extension you mentioned. ChenjingJiang (talk) 08:29, 18 October 2021 (UTC)
- Extension:Wikibase
- There is also an older system built into core that requires less setup - interwiki links that have the language code as the link name help:interwiki Bawolff (talk) 08:54, 18 October 2021 (UTC)
- Hi Bawolf, I've installed Wikibase extension, and also can find the "in other languages" section. However, it seems need to install other extensions to support multi languages wiki site? could you please provide the extension link for that can enable multi languages wiki site? many thanks! 2409:8928:4B6:480A:C946:DF91:871A:6071 (talk) 01:57, 20 October 2021 (UTC)
- Wikibase is complicated (although no other exts are required afaik. You do have to setup 2 wikis for it).
- If just starting out i would reccomend just starting with interlanguage interwiki links. Bawolff (talk) 06:01, 21 October 2021 (UTC)
- Hi Bawolff, I just practiced interwiki links, and now we want to setup 2 wikis for wikibase, but I just have no idea about how to setup 2 wikis and how to combine them together? please help to show me the way. Thanks! ChenjingJiang (talk) 10:01, 27 October 2021 (UTC)
- Hi Bawolff, I just practiced interwiki links, and now we want to setup 2 wikis for wikibase, but I just have no idea about how to setup 2 wikis and how to combine them together? please help to show me the way. Thanks! ChenjingJiang (talk) 01:53, 25 October 2021 (UTC)
- hi Bawolff, Many thanks! ChenjingJiang (talk) 08:57, 18 October 2021 (UTC)
- Thanks for your answer! I will research the Wikidata extension, thanks! ChenjingJiang (talk) 08:25, 18 October 2021 (UTC)
MW migration - update.php problem with DB
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 migrating a v1.15.3 MW to another Server with v1.35
I copied the database an the update.php gives the following error:
...batch conversion of user_options: Wikimedia\Rdbms\DBQueryError from line 1699 of /var/www/wiki/includes/libs/rdbms/database/Database.php: Error 1146: Table 'wiki.mw_revision_comment_temp' doesn't exist (127.0.0.1)
Function: MediaWiki\Revision\RevisionStore::fetchRevisionRowFromConds
Any hints for me?
The Table 'wiki.mw_revision_comment_temp' indeed does not exist in the DB.
I only have 'wiki.mw_revision' Horst0r (talk) 10:50, 18 October 2021 (UTC)
- I did some research and generated the db tables manually; four tables were missing:
- mw_revision_comment_temp
- mw_comment
- mw_revision_actor_temp
- mw_actor
- now I get another error from the update.php:
- Beginning migration of revision.rev_user and revision.rev_user_text to revision_actor_temp.revactor_actor
- Wikimedia\Rdbms\DBQueryError from line 1699 of /var/www/wiki/includes/libs/rdbms/database/Database.php: Error 1242: Subquery returns more than 1 row (127.0.0.1)
- Function: MigrateActors::migrateToTemp Horst0r (talk) 14:11, 18 October 2021 (UTC)
- I´m still messing around with the problem :/
- does anybody have a hint for me to fix this? Horst0r (talk) 11:21, 19 October 2021 (UTC)
- Maybe start from scratch but move to a different version, eg 1.31? I know what you're doing is supposed to work but... Jonathan3 (talk) 11:34, 19 October 2021 (UTC)
- thx for the hint, I think this did the trick; at the moment I was able to migrate the MW to 1.31, without the problems I had with the 1.35 version;
- now I will try to migrate the MW from 1.31 to 1.35; hopefully this also works without any problems! Horst0r (talk) 10:49, 20 October 2021 (UTC)
Upgrade from mediawiki-1.34.4 to mediawiki-1.35.4 broke "CategoryTree"
My recent upgrade from mediawiki-1.34.4 to mediawiki-1.35.4 broke "CategoryTree"
With the CategoryTree extension enabled, I'm getting this backtrace:
[e0ca81d2e988f2b008313688] /index.php?title=Kategorie:Standard_Operating_Procedures MediaWiki\Revision\RevisionAccessException from line 1033 of /var/www/mediawiki-1.35.4/includes/Revision/RevisionStore.php: Failed to load data blob from tt:1921: Unable to fetch blob at tt:1921
Backtrace:
#0 /var/www/mediawiki-1.35.4/includes/Revision/RevisionStore.php(1280): MediaWiki\Revision\RevisionStore->loadSlotContent()
#1 [internal function]: MediaWiki\Revision\RevisionStore->MediaWiki\Revision\{closure}()
#2 /var/www/mediawiki-1.35.4/includes/Revision/SlotRecord.php(307): call_user_func()
#3 /var/www/mediawiki-1.35.4/includes/Revision/RevisionRecord.php(175): MediaWiki\Revision\SlotRecord->getContent()
#4 /var/www/mediawiki-1.35.4/includes/cache/MessageCache.php(1202): MediaWiki\Revision\RevisionRecord->getContent()
#5 /var/www/mediawiki-1.35.4/includes/libs/objectcache/wancache/WANObjectCache.php(1529): MessageCache->{closure}()
#6 /var/www/mediawiki-1.35.4/includes/libs/objectcache/wancache/WANObjectCache.php(1376): WANObjectCache->fetchOrRegenerate()
#7 /var/www/mediawiki-1.35.4/includes/cache/MessageCache.php(1222): WANObjectCache->getWithSetCallback()
#8 /var/www/mediawiki-1.35.4/includes/libs/objectcache/BagOStuff.php(149): MessageCache->{closure}()
#9 /var/www/mediawiki-1.35.4/includes/cache/MessageCache.php(1224): BagOStuff->getWithSetCallback()
#10 /var/www/mediawiki-1.35.4/includes/cache/MessageCache.php(1126): MessageCache->loadCachedMessagePageEntry()
#11 /var/www/mediawiki-1.35.4/includes/cache/MessageCache.php(1034): MessageCache->getMsgFromNamespace()
#12 /var/www/mediawiki-1.35.4/includes/cache/MessageCache.php(1005): MessageCache->getMessageForLang()
#13 /var/www/mediawiki-1.35.4/includes/cache/MessageCache.php(947): MessageCache->getMessageFromFallbackChain()
#14 /var/www/mediawiki-1.35.4/includes/language/Message.php(1304): MessageCache->get()
#15 /var/www/mediawiki-1.35.4/includes/language/Message.php(862): Message->fetchMessage()
#16 /var/www/mediawiki-1.35.4/includes/language/Message.php(966): Message->toString()
#17 /var/www/mediawiki-1.35.4/extensions/CategoryTree/includes/CategoryTree.php(655): Message->plain()
#18 /var/www/mediawiki-1.35.4/extensions/CategoryTree/includes/CategoryTree.php(506): CategoryTree->renderNodeInfo()
#19 /var/www/mediawiki-1.35.4/extensions/CategoryTree/includes/CategoryTree.php(379): CategoryTree->renderChildren()
#20 /var/www/mediawiki-1.35.4/extensions/CategoryTree/includes/CategoryTreeHooks.php(176): CategoryTree->getTag()
#21 /var/www/mediawiki-1.35.4/includes/parser/Parser.php(3922): CategoryTreeHooks::parserHook()
#22 /var/www/mediawiki-1.35.4/includes/parser/PPFrame_Hash.php(340): Parser->extensionSubstitution()
#23 /var/www/mediawiki-1.35.4/includes/parser/Parser.php(2887): PPFrame_Hash->expand()
#24 /var/www/mediawiki-1.35.4/includes/parser/Parser.php(1556): Parser->replaceVariables()
#25 /var/www/mediawiki-1.35.4/includes/parser/Parser.php(651): Parser->internalParse()
#26 /var/www/mediawiki-1.35.4/includes/content/WikitextContent.php(374): Parser->parse()
#27 /var/www/mediawiki-1.35.4/includes/content/AbstractContent.php(590): WikitextContent->fillParserOutput()
#28 /var/www/mediawiki-1.35.4/includes/Revision/RenderedRevision.php(263): AbstractContent->getParserOutput()
#29 /var/www/mediawiki-1.35.4/includes/Revision/RenderedRevision.php(235): MediaWiki\Revision\RenderedRevision->getSlotParserOutputUncached()
#30 /var/www/mediawiki-1.35.4/includes/Revision/RevisionRenderer.php(215): MediaWiki\Revision\RenderedRevision->getSlotParserOutput()
#31 /var/www/mediawiki-1.35.4/includes/Revision/RevisionRenderer.php(152): MediaWiki\Revision\RevisionRenderer->combineSlotOutput()
#32 [internal function]: MediaWiki\Revision\RevisionRenderer->MediaWiki\Revision\{closure}()
#33 /var/www/mediawiki-1.35.4/includes/Revision/RenderedRevision.php(197): call_user_func()
#34 /var/www/mediawiki-1.35.4/includes/poolcounter/PoolWorkArticleView.php(216): MediaWiki\Revision\RenderedRevision->getRevisionParserOutput()
#35 /var/www/mediawiki-1.35.4/includes/poolcounter/PoolCounterWork.php(162): PoolWorkArticleView->doWork()
#36 /var/www/mediawiki-1.35.4/includes/page/Article.php(810): PoolCounterWork->execute()
#37 /var/www/mediawiki-1.35.4/includes/page/CategoryPage.php(63): Article->view()
#38 /var/www/mediawiki-1.35.4/includes/actions/ViewAction.php(74): CategoryPage->view()
#39 /var/www/mediawiki-1.35.4/includes/MediaWiki.php(527): ViewAction->show()
#40 /var/www/mediawiki-1.35.4/includes/MediaWiki.php(313): MediaWiki->performAction()
#41 /var/www/mediawiki-1.35.4/includes/MediaWiki.php(940): MediaWiki->performRequest()
#42 /var/www/mediawiki-1.35.4/includes/MediaWiki.php(543): MediaWiki->main()
#43 /var/www/mediawiki-1.35.4/index.php(53): MediaWiki->run()
#44 /var/www/mediawiki-1.35.4/index.php(46): wfIndexMain()
#45 {main} 193.175.73.219 (talk) 10:52, 18 October 2021 (UTC)
- MediaWiki 1.35.4
- PHP 7.4.3 (apache2handler)
- MySQL 8.0.26-0ubuntu0.20.04.3 193.175.73.219 (talk) 10:53, 18 October 2021 (UTC)
- I'll be doing the same upgrade soon, so will follow this with interest. Have you upgraded the CategoryTree code? Maybe experiment with different versions of the code (REL1_34, REL1_35, master etc). Jonathan3 (talk) 11:07, 18 October 2021 (UTC)
- The CategoryTree code comes as a core plugin, so it is automagically up-to-date. 193.175.73.219 (talk) 11:48, 18 October 2021 (UTC)
- Of course... sorry! Jonathan3 (talk) 11:56, 18 October 2021 (UTC)
- There's some stuff at phab:T205936 though I don't understand it... It mentions running Manual:findBadBlobs.php. Jonathan3 (talk) 12:04, 18 October 2021 (UTC)
- # seq 2000 2100 | php findBadBlobs.php --revisions=-
- Scanning 101 ids
- ! Found bad blob on revision 2048 (main slot): content_id=1115, address=<tt:1920>, error='Unable to fetch blob at tt:1920', type='MediaWiki\Storage\BlobAccessException'. ID: 2048
- ! Found bad blob on revision 2049 (main slot): content_id=1116, address=<tt:1921>, error='Unable to fetch blob at tt:1921', type='MediaWiki\Storage\BlobAccessException'. ID: 2049
- ! Found bad blob on revision 2050 (main slot): content_id=1117, address=<tt:1922>, error='Unable to fetch blob at tt:1922', type='MediaWiki\Storage\BlobAccessException'. ID: 2050
- - Scanned a batch of 101 revisions
- Found 3 bad revisions. 193.175.73.219 (talk) 13:12, 18 October 2021 (UTC)
- Don't do this just on my day so but would the --mark parameter be the next step? From
- the manual page:
- mark
- Mark the blob as "known bad", to avoid errors when attempting to read it. The value given is the reason for marking the blob as bad, typically a ticket ID. Requires --revisions to also be set. Jonathan3 (talk) 15:37, 18 October 2021 (UTC)
- Yeah, I did that. and after that the pages would work again, yay. Ralf.hildeb (talk) 09:29, 20 October 2021 (UTC)
- All's well that ends well! Jonathan3 (talk) 10:21, 20 October 2021 (UTC)
Simple dark mode auto change
Good morning. I would like to configure my wiki via LocalSettings.php to automatically switch to the DarkVector skin if the user's desktop browser prefers dark themes. I'd also like to not interfere with Mobilefrontend. I'm assuming it is something like [[Simple mobile skin auto change]] . Any ideas? Buster2223 (talk) 15:55, 18 October 2021 (UTC)
- Normally this is controlled by media queries, so it has to be supported by skin css, you cant just auto-switch the skin. Bawolff (talk) 05:59, 21 October 2021 (UTC)
- Weird. I was able to do auto-switching from Vector to MinervaNeue if mobile was detected. How do sites detect if dark mode is preferred? Buster2223 (talk) 18:18, 22 October 2021 (UTC)
Version history with no user names
Hi everyone!
I want to show the rider "version history" only to users who are admins and with hidden user names. So no one, except sysops, could see who made an edit.
function efAddSkinStylesAnon( OutputPage &$out, Skin &$skin ) {
global $wgUser;
if( !$wgUser->isLoggedIn() )
{
// Hide history tab
if ( $skin->getSkinName() == 'vector' ) {
$out->addInlineStyle( '#ca-history { display:none; }' );
}
}
return true;
}
$wgHooks['BeforePageDisplay'][] = 'efAddSkinStylesAnon';
The "hide feature" works, but I don't know how to hide the user names for everyone except the sysops.
Thank you very much for support! Weejan91 (talk) 16:15, 18 October 2021 (UTC)
- You can put admin only css on MediaWiki:Group-sysop.css on your wiki. Bawolff (talk) 05:57, 21 October 2021 (UTC)
Filters Not Applying to RSS Feed
I've recently started using an RSS bot in our wiki's Discord server to log recent changes to a channel, but ran into an issue where some filters specified in Recent Changes don't affect the feed. Despite hidenewpages=1 and hidelog=1 functioning as intended on the Recent Changes page, they don't remove new pages and move/deletion/block logs from the raw feed. I am aware of extensions that add more dedicated activity feeds to a server, but I do not have control over what extensions get installed so they aren't an option.
Currently I've had to specify filters on the bot's side, but since it's filtering by what's in the <description> tags, as that's the best I can do, an edit summary containing the filtered phrases will prevent that change from being posted by the bot, which is obviously not desirable.
For the record, the namespace filter does affect the feed, so surely other filters not doing so is unintentional behaviour, right? This can be observed on any wiki's Recent Changes page, including this one. PlasmoidThunder (talk) 19:32, 18 October 2021 (UTC)
- I guess they drifted :( https://www.mediawiki.org/w/api.php?action=help&modules=feedrecentchanges is what is supported Bawolff (talk) 05:55, 21 October 2021 (UTC)
- That's really unfortunate. Hopefully they update this. PlasmoidThunder (talk) 22:44, 25 October 2021 (UTC)
Help with finding all wikipedia links
I need help with my wiki.. I recently import some templates from wikipedia.. And some of the imported page has link from wikipedia. example below Wikipedia:How to post, Is there a way i can access all of them so i can update it to mine. Thatnewman (talk) 00:37, 19 October 2021 (UTC)
- There's an "allpages" special page you could use, if I understand the question correctly. Jonathan3 (talk) 11:32, 19 October 2021 (UTC)
- I Have a lot of mirror link to Wikipedia. is there a way to find all the mirror link linked to other wiki Thatnewman (talk) 21:07, 19 October 2021 (UTC)
- Do you mean that in the imported templates there are links to Wikipedia, and you'd like to replace them with links to your own website?
- What about searching for the links using the search box? What about Special:RecentChanges or Special:Newpages? What about Extension:ReplaceText to search for the text (and probably also replace)? Jonathan3 (talk) 21:21, 19 October 2021 (UTC)
- If they are full urls, special:linksearch
- If they are interwiki links,you can probably get a list from the api API:Iwbacklinks (with no iwbltitle param) Bawolff (talk) 05:53, 21 October 2021 (UTC)
Moving from shared Hosting to VPS
I have been facing issue and some limitation using Shared hosting and i am about to upgrade my plan to VPS .. Which Web Panels do you think i should go for...
interworx OR cpanel Thatnewman (talk) 00:54, 19 October 2021 (UTC)
- I've only used cpanel, and found it fine (although that was probably five years ago). But surely one of the points of a VPS is that you get full shell access to do whatever you want, and so the web control panel is less important? Sam Wilson 04:03, 19 October 2021 (UTC)
- I second that. I suppose I was spoiled as on my shared host I had shell access. But just get a basic unmanaged VPS. You won't look back. I don't even know whether mine has a control panel. I assume not :-) Jonathan3 (talk) 11:30, 19 October 2021 (UTC)
- Alright i should go for unmanaged VPS. I will be the one to set up the security of my hosting right??? Cause I know i cant Thatnewman (talk) 18:30, 21 October 2021 (UTC)
- Digital Ocean have step-by-step guides to setting up a server, including security. I'm sure so do Linode and the others.
- But if you know you can't then you shouldn't try :-) Jonathan3 (talk) 21:24, 21 October 2021 (UTC)
Limiting a user account to edit only up to a certain number of characters in each edit
The following discussion is closed. Please do not modify it. Subsequent comments should be made on the appropriate discussion page. No further edits should be made to this discussion.
I want to limit a certain user account only to fix typos and add symbols such as (CONTENT), [URL LINK_TEXT] [[INTERNAL_LINK]], {{TEMPLATE_CALL}} and so forth.
I assume that in my particular website, limiting the that user account up until 500 characters per edit would be enough.
Is there any way to do so without installing any extension and without any JavaScript limitations? 182.232.6.32 (talk) 05:12, 19 October 2021 (UTC)
- Is this question different from Project:Support desk/Flow/2021/10#h-Is_there_a_way_to_make_an_editor_edit_only_dwarf_edits_or_edits_up_until_a_certa-2021-10-17T12:17:00.000Z? Malyacko (talk) 08:51, 19 October 2021 (UTC)
- Because here I focus only on characters. 182.232.6.32 (talk) 11:53, 19 October 2021 (UTC)
- I think the answer is still No, unfortunately. Jonathan3 (talk) 19:57, 19 October 2021 (UTC)
- Just install abusefilter, that's the entire point of the extension.
- Maybe manual:$wgSpamRegex could do it, but it would be not as easy to setup as abusefilter. Bawolff (talk) 05:48, 21 October 2021 (UTC)
- I take it all back. The answer is Yes! :-) Or at least it seems to be.
- Add this to LocalSettings.php:
- Jonathan3 (talk) 08:34, 21 October 2021 (UTC)
$wgSpamRegex = "/(.){501}/";
Coolest Tool Award 2021: Call for nominations
The third edition of the m:Coolest Tool Award is looking for nominations!
Tools play an essential role for the Wikimedia projects, and so do the many volunteer developers who experiment with new ideas and develop and maintain local and global solutions to support the Wikimedia communities. The Coolest Tool Award aims to recognize and celebrate the coolest tools in a variety of categories.
The awarded projects will be announced and showcased in a virtual ceremony in December. Deadline to submit nominations is October 27. More information: m:Coolest Tool Award. Thanks for your recommendations! -- SSethi (WMF) for the 2021 Coolest Tool Academy team 05:57, 19 October 2021 (UTC)
MediaWiki message delivery (talk) 05:57, 19 October 2021 (UTC)
my new image files will not listed
when i go to special pages and listed the new files all will show but not the of my user.
even when i write my user name into the selection textbox nothing will found.
did someone had a idea?
regards Jan JanTappenbeck (talk) 07:39, 19 October 2021 (UTC)
- Please see "Post a new question" in the sidebar. Also, which exact page? What does not show mean? No entry? A broken thumbnail? Something else? Does the autocomplete in the textbox work? Does it work for other usernames? Malyacko (talk) 08:49, 19 October 2021 (UTC)
- my problem is "Spezial:Neue_Dateien" ~ Special:newfiles
- i try to test by other user will be listed without selection.
- after write the username into textbox nothing will show.
- regards JAN JanTappenbeck (talk) 12:50, 19 October 2021 (UTC)
- can you link to the wiki in question (if public) and an example file you have uploaded. Bawolff (talk) 05:46, 21 October 2021 (UTC)
how change copyright disclaimer?
Is there a way to change the words "Content is available under..." at the bottom of the page for my wiki? I would like the words to say something else for my copyright disclaimer. Thepainking (talk) 15:37, 19 October 2021 (UTC)
- Edit `MediaWiki:Copyright` page on your wiki. – Ammarpad (talk) 16:57, 19 October 2021 (UTC)
- this is what shows up...?
- =View source for MediaWiki:Copyright=
- ← MediaWiki:Copyright
- You do not have permission to edit this page, for the following reason: Thepainking (talk) 16:01, 21 October 2021 (UTC)
- You need to be interface admin to be able to edit this page. [[kgh]] (talk) 17:15, 21 October 2021 (UTC)
- Are you by chance trying to do this while logged out?. Since it's your wiki, you have to do this while logged in with your admin account that has all the powers needed to edit the page. See Manual:User rights for information about user permissions. – Ammarpad (talk) 18:05, 21 October 2021 (UTC)
- so that means I have to log in so that I can edit ? 41.115.24.217 (talk) 06:50, 22 October 2021 (UTC)
- Yes. However you also need to be an interface admin. [[kgh]] (talk) 11:17, 22 October 2021 (UTC)
- no i was for sure logged in to my account which has admin and bureaucrat status Thepainking (talk) 15:13, 11 November 2021 (UTC)
User script: Determine the current view
Hi. In the context of a user script, I'm wondering how I can determine if the current view is in edit (VisualEditor or source) mode. The mw.config.values.wgAction seems only partly useful when I load the editor using the User:Novem Linguae/Scripts/VisualEditorEverywhere.js (EN wiki) which loads veaction=edit and not action=edit. Thanks for any help! DaxServer (talk) 16:18, 19 October 2021 (UTC)
submit new page
How do I submit this https://en.wikipedia.org/w/index.php?title=User:Drednm&oldid=1047182969 as an entry on Wikipedia. I can't figure it out. It seems to only show up in my profile. Drednm (talk) 17:09, 19 October 2021 (UTC)
- Go to https://en.wikipedia.org/w/index.php?title=Wikipedia:New_user_landing_page&page=Edward+Lorusso and follow the instructions.
- I've never seen this before and it looks very off-putting. Probably that's deliberate :-) The conclusion is:
- "When you create your draft, it will not be seen by external search engines. However, when you finish, you'll be able to submit it to be reviewed by our volunteers. Reviews can take a long time, so please be patient and rest assured that your draft will be reviewed in due course. This may take 7 weeks or more, since drafts are reviewed in no specific order." Jonathan3 (talk) 21:25, 19 October 2021 (UTC)
Cannot access the database: Access denied for user 'root'@'localhost' (localhost).
Всем привет, пытаюсь установить Wikimedia:
http://10.157.5.1/mediawiki/mw-config/index.php?page=DBConnect
any help?
(UbuntuServer LTS) Belalugoci (talk) 04:07, 20 October 2021 (UTC)
- Видимо проблемы с базой данных. Вы её создали? Fokebox (talk) 08:21, 20 October 2021 (UTC)
- Спасибо за отклик. Читаю Manual:Running MediaWiki on Debian or Ubuntu
- Эти шаги? Нет, такое не делал. Мануал несколько дезориентирует и не ясно что конкретно нужно делать, а что не нужно.
- create a NEW mysql database my_wiki:
# sudo mysql -u root -pmysql> CREATE DATABASE my_wiki;mysql> use my_wiki;Database changed- GRANT the NEW mysql user access to the NEW created mysql database my_wiki:
mysql> GRANT ALL ON my_wiki.* TO 'new_mysql_user'@'localhost';Query OK, 0 rows affected (0.01 sec)mysql> quit;Belalugoci (talk) 09:37, 20 October 2021 (UTC)- mysql> GRANT ALL ON my_wiki.* TO 'root'@'localhost';
- пишет ошибку в этой строке в SQL синтаксисе.
- отмена, опечатался. Права дал. Но ошибка в настройке в вэб-браузере не поменялась. Belalugoci (talk) 09:41, 20 October 2021 (UTC)
- может быть проблема в том, что я захожу на хост по ip, с другой машины, а не на localhost? Belalugoci (talk) 09:49, 20 October 2021 (UTC)
- Скорее нет, не в этом дело. Скорее всего проблема с созданием базы данных. Мне сложно тут что-то подсказать, так как локально я вики не ставил на комп, а установил у своего хостин провайдера. Там то всё проще - БД создаёшь через панель инструментов, задаёшь имя пользователя, имя БД, пароль и всё при установке это всё казываю и всё работает Fokebox (talk) 11:01, 20 October 2021 (UTC)
I can't create an account
- I can't create an account because I'm asked to solve a CAPCHA but there is nothing there. what do I do? I'm using an older computer which sometimes has trouble with newer stuff. 76.14.150.206 (talk) 04:43, 20 October 2021 (UTC)
- On which website (full web address)? Using which browser and browser version? Malyacko (talk) 08:38, 20 October 2021 (UTC)
- Reply to "I can't create an account" 105.160.52.6 (talk) 05:44, 20 October 2021 (UTC)
About CleanupUsersWithNoId.php
I am cross posting here and hope that you do not mind. I reported an observation with this topic and I believe that more experienced people are around here to comment rather than over there. [[kgh]] (talk) 08:41, 20 October 2021 (UTC)
fulltextsearch not working at all
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.
Short description:
When entering search terms in the top right search box, only page titles are autocompleted (ok, fair) and searched/found (hmm).
Even when choosing "Pages containing...", nothing is found. For keywords which are present on many pages.
Longer description:
I came from 1.31.x and upgraded to 1.35.4.
After the upgrade, I had some issues with three broken revisions, which I could find and fix using "findBadBlobs.php"
Currently, findBadBlobs.php is reporting:
# seq 1 10000 | php findBadBlobs.php --revisions=-
Scanning 10000 ids
! * Interner Fehler: Couldn't find title for rev 744 (page key 193)
* Interner Fehler: Couldn't find title for rev 746 (page key 194)
- Scanned a batch of 998 revisions
- Scanned a batch of 1000 revisions
- Scanned a batch of 1000 revisions
- Scanned a batch of 1000 revisions
- Scanned a batch of 1000 revisions
- Scanned a batch of 1000 revisions
- Scanned a batch of 1000 revisions
- Scanned a batch of 1000 revisions
- Scanned a batch of 1000 revisions
- Scanned a batch of 1000 revisions
Found 0 bad revisions.
"Interner Fehler" is "Internal error" in english. Don't know if this is maybe related to my search issues.
I did rebuild the search index:
# php maintenance/rebuildtextindex.php
Clearing searchindex table...Done
Rebuilding index fields for 1334 pages...
500
1000
Rebuild the index...
Done.
I then checked the searchindex table:
mysql> select * from searchindex;
Empty set (0.00 sec)
mysql>
This strikes me as odd.
| MediaWiki | 1.35.4 |
| PHP | 7.4.3 (fpm-fcgi) |
| MySQL | 8.0.26-0ubuntu0.20.04.3 |
| ICU | 66.1 |
- I found an old DB backup, and alas -- searchindex was filled with as many entries as the wiki had pages. It contained words. All looked well.
- Then, out of sheer curiosity, I ran rebuildtextindex.php -- and stared into the void. All entries in that table were gone. Ralf.hildeb (talk) 14:06, 20 October 2021 (UTC)
- Based on that backup I performed a stepwise update from 1.31 -> 1.35 and found: rebuildtextindex.php would work just fine up to mediawiki-1.33.4.
- When updating from there to mediawiki-1.34.4, rebuildtextindex.php would create an empty table "searchindex". Ralf.hildeb (talk) 14:19, 20 October 2021 (UTC)
- Already broken for me in 1.34.0-rc.0 Ralf.hildeb (talk) 14:44, 20 October 2021 (UTC)
- It turns out that I had:
$wgDBtype = "mysqli";- in LocalSettings.php, once I removed the "i", the index was being populated again.
- For reference: https://phabricator.wikimedia.org/T102285:
- I also found that
$wgDBtype = 'mysqli'seems to work for almost everything except a few obscure things Ralf.hildeb (talk) 20:06, 20 October 2021 (UTC)
Exception on LDAP login
Hello!
I'm relatively new to MediaWiki. Just installed a blank copy to access its work as a "private" Wiki for internal use. LDAP login is a requirement.
When a valid user logs on via LDAP, MediaWiki throws an exception. The LDAP authentication itself succeeds (on wrong password MediaWiki just displays a normal "password incorrect" message on the login screen) - we also checked that the LDAP part works properly with a traffic dump.
The exception is thrown both when the user does not exists and when the user was manually created in the MediaWiki beforehand. When such a local user is assigned a local password, it can login with it if we turn LDAP authentication off; but with LDAP authentication on we always get the exception.
It seems that the user's name is somehow empty. We made sure the LDAP returns the user's "cn" attribute and that the JSON has this attribute specified in the user's name mapping. When we created the local test user, we also made sure the "real name" field was filled-in (even though it was labelled as "optional").
The exception is throws no matter if private browser window is used or not. We made sure to refresh the login page every time to obtain a new session.
The system:
- MediaWiki 1.36.2 fresh download, clean install with latest stable (I think mostly 1.35) versions for PluggableAuth, LDAPProvider and LDAPAuthentication2).
- Database is MariaDB 10.6, master/slave cluster behind MaxScale 6 load balancer (not that this should really matter to the issue)
- PHP-7.4 on RHEL-8, up-to-date
- LDAP: MS Active Directory
- URL: currently private
The exception:
MediaWiki internal error.
Original exception: [YXAISRs6LzUkYQtTsg123AAAAJI] /index.php?title=Special:PluggableAuthLogin TypeError: Return value of User::getName() must be of the type string, null returned
Backtrace:
from /var/www/mediawiki-1.36.2/includes/user/User.php(2132)
#0 /var/www/mediawiki-1.36.2/includes/user/User.php(1637): User->getName()
#1 /var/www/mediawiki-1.36.2/includes/user/User.php(1958): User->getBlockedStatus()
#2 /var/www/mediawiki-1.36.2/includes/block/BlockManager.php(484): User->getBlock()
#3 /var/www/mediawiki-1.36.2/includes/MediaWiki.php(771): MediaWiki\Block\BlockManager->trackBlockWithCookie()
#4 /var/www/mediawiki-1.36.2/includes/MediaWiki.php(637): MediaWiki::preOutputCommit()
#5 /var/www/mediawiki-1.36.2/includes/MediaWiki.php(936): MediaWiki->doPreOutputCommit()
#6 /var/www/mediawiki-1.36.2/includes/MediaWiki.php(546): MediaWiki->main()
#7 /var/www/mediawiki-1.36.2/index.php(53): MediaWiki->run()
#8 /var/www/mediawiki-1.36.2/index.php(46): wfIndexMain()
#9 {main}
The LDAP json config (sanitised):
{
"LDAP": {
"connection": {
"server": "int.mydentalworld.ch",
"user": "SOME_DOMAIN\\some-user",
"pass": "62rH8rwApN4xAk6j",
"options": {
"LDAP_OPT_DEREF": 1
},
"basedn": "ou=staff,dc=example,dc=com",
"groupbasedn": "ou=groups,ou=staff,dc=example,dc=com",
"userbasedn": "ou=staff,dc=example,dc=com",
"searchattribute": "sAMAccountName",
"searchstring": "USER-NAME@example.com",
"usernameattribute": "sAMAccountName",
"realnameattribute": "cn",
"emailattribute": "mail",
"grouprequest": "MediaWiki\\Extension\\LDAPProvider\\UserGroupsRequest\\GroupMember::factory"
}
}
}
MediaWiki config (relevant part; the exception is thrown no matter if "createaccount" and "autocreteaccount" are true or false):
$LDAPProviderDomainConfigs = "/etc/mediawiki/ldap.json";
$wgGroupPermissions['*']['createaccount'] = true;
$wgGroupPermissions['*']['autocreateaccount'] = true;
wfLoadExtension( 'PluggableAuth' );
wfLoadExtension( 'LDAPProvider' );
wfLoadExtension( 'LDAPAuthentication2' );
$wgShowExceptionDetails = true;
Any suggestions for further debugging or remediation will be highly appreciated. 185.141.21.111 (talk) 12:37, 20 October 2021 (UTC)
How to hide custom namespace from HTML title tag?
I have 2 wikis installed.
One is running on 1.31.0 and it doesn't show my custom namespace in the HTML title tag.
The other wiki (new one) is running on 1.35.3 and it's showing the custom namespace in the HTML title tag.
Is it possible to remove the namespace from the HTML title tag?
Note that I am not talking about the firstHeading. Mukilol2 (talk) 14:38, 20 October 2021 (UTC)
- If you don't find a direct answer, you could look at Extension:WikiSEO. Jonathan3 (talk) 14:59, 20 October 2021 (UTC)
- Are the pages actually in the custom namespace in the second one? (Like if you click the page information linke from the sidebar in the toolbox, what namespace does it show?)
- the page Mediawiki:pagetitle on your wiki may allow some customization. Bawolff (talk) 05:40, 21 October 2021 (UTC)
- You could replace $1 with {{PAGENAME}} in MediaWiki:Pagetitle to get rid of all namespaces. Jonathan3 (talk) 08:42, 21 October 2021 (UTC)
Call to a member function formatNum() on string error after upgrade to 1.36.2
After upgrading mediawiki to 1.36.2 i got these errors on some of the articles
Posts and titles are in Cyrillic
Any idea how to fix this?
[4c94f16638d0039fd319ec27] /index.php/%22Neue_Zeit%22 Error: Call to a member function formatNum() on string
Backtrace:
from /home/wesbite/public_html/extensions/Cite/wikimedia-mediawiki-extensions-Cite-ba162a9/Cite_body.php(913)
#0 /home/wesbite/public_html/extensions/Cite/wikimedia-mediawiki-extensions-Cite-ba162a9/Cite_body.php(404): Cite->linkRef(string, integer)
#1 /home/wesbite/public_html/extensions/Cite/wikimedia-mediawiki-extensions-Cite-ba162a9/Cite_body.php(287): Cite->stack(string, NULL, string, boolean, array)
#2 /home/wesbite/public_html/extensions/Cite/wikimedia-mediawiki-extensions-Cite-ba162a9/Cite_body.php(163): Cite->guardedRef(string, array, Parser)
#3 /home/wesbite/public_html/includes/parser/Parser.php(3971): Cite->ref(string, array, Parser, PPFrame_Hash)
#4 /home/wesbite/public_html/includes/parser/PPFrame_Hash.php(351): Parser->extensionSubstitution(array, PPFrame_Hash)
#5 /home/wesbite/public_html/includes/parser/Parser.php(2879): PPFrame_Hash->expand(PPNode_Hash_Tree, integer)
#6 /home/wesbite/public_html/includes/parser/Parser.php(1549): Parser->replaceVariables(string)
#7 /home/wesbite/public_html/includes/parser/Parser.php(639): Parser->internalParse(string)
#8 /home/wesbite/public_html/includes/content/WikitextContent.php(375): Parser->parse(string, Title, ParserOptions, boolean, boolean, integer)
#9 /home/wesbite/public_html/includes/content/AbstractContent.php(591): WikitextContent->fillParserOutput(Title, integer, ParserOptions, boolean, ParserOutput)
#10 /home/wesbite/public_html/includes/Revision/RenderedRevision.php(263): AbstractContent->getParserOutput(Title, integer, ParserOptions, boolean)
#11 /home/wesbite/public_html/includes/Revision/RenderedRevision.php(235): MediaWiki\Revision\RenderedRevision->getSlotParserOutputUncached(WikitextContent, boolean)
#12 /home/wesbite/public_html/includes/Revision/RevisionRenderer.php(217): MediaWiki\Revision\RenderedRevision->getSlotParserOutput(string, array)
#13 /home/wesbite/public_html/includes/Revision/RevisionRenderer.php(154): MediaWiki\Revision\RevisionRenderer->combineSlotOutput(MediaWiki\Revision\RenderedRevision, array)
#14 [internal function]: MediaWiki\Revision\RevisionRenderer->MediaWiki\Revision\{closure}(MediaWiki\Revision\RenderedRevision, array)
#15 /home/wesbite/public_html/includes/Revision/RenderedRevision.php(197): call_user_func(Closure, MediaWiki\Revision\RenderedRevision, array)
#16 /home/wesbite/public_html/includes/poolcounter/PoolWorkArticleView.php(137): MediaWiki\Revision\RenderedRevision->getRevisionParserOutput()
#17 /home/wesbite/public_html/includes/poolcounter/PoolCounterWork.php(162): PoolWorkArticleView->doWork()
#18 /home/wesbite/public_html/includes/page/ParserOutputAccess.php(281): PoolCounterWork->execute()
#19 /home/wesbite/public_html/includes/page/Article.php(746): MediaWiki\Page\ParserOutputAccess->getParserOutput(WikiPage, ParserOptions, MediaWiki\Revision\RevisionStoreRecord, integer)
#20 /home/wesbite/public_html/includes/page/Article.php(561): Article->generateContentOutput(User, ParserOptions, integer, OutputPage, array)
#21 /home/wesbite/public_html/includes/actions/ViewAction.php(74): Article->view()
#22 /home/wesbite/public_html/includes/MediaWiki.php(531): ViewAction->show()
#23 /home/wesbite/public_html/includes/MediaWiki.php(315): MediaWiki->performAction(Article, Title)
#24 /home/wesbite/public_html/includes/MediaWiki.php(913): MediaWiki->performRequest()
#25 /home/wesbite/public_html/includes/MediaWiki.php(546): MediaWiki->main()
#26 /home/wesbite/public_html/index.php(53): MediaWiki->run()
#27 /home/wesbite/public_html/index.php(46): wfIndexMain()
#28 {main} 188.2.229.6 (talk) 16:07, 20 October 2021 (UTC)
- To which revision and which branch did you update the Cite extension? Malyacko (talk) 18:44, 20 October 2021 (UTC)
- That was the issue i didn't update Cite extension, i just did and all works fine. Thanks alot 188.2.229.6 (talk) 07:20, 21 October 2021 (UTC)
How to change login method?
Hi. I need to change the login method so that instead of requiring username and password, login is by a user's token, without using the Mediawiki API. Is there a way to do this? BarbaRuivaRK (talk) 19:17, 20 October 2021 (UTC)
- Our user tokens arent equivalent to username/password but have a different function.
- If you're making a custom token scheme, see AuthManager (programming knowledge required) which applies to both web and api interface. Bawolff (talk) 05:36, 21 October 2021 (UTC)
- What is the function that always checks if the user is logged in and forwards him to login if he is not? BarbaRuivaRK (talk) 14:22, 21 October 2021 (UTC)
How to Block Website from your wiki
I need help in blocking some website on my wiki, don't want some url to be used as a refrence.. How do i do that. Thatnewman (talk) 20:56, 20 October 2021 (UTC)
- See Manual:Combating spam. Jonathan3 (talk) 21:48, 20 October 2021 (UTC)
- okay here is the link https://en.wikipedia.org/wiki/MediaWiki:Spam-blacklist Is the B letter at the beggining of the website neccesary? Thatnewman (talk) 22:18, 20 October 2021 (UTC)
- it stands for word boundry. Otherwise it will match urls that just have that string anywhere inside them Bawolff (talk) 05:34, 21 October 2021 (UTC)
Update android app from fdroid
Link to this page found in the fdroid repository for downloading the wp+app for android smartphones. Page seems not to exist, but may be someone will be notified. Page should contain FAQ as described. Reason for consulting this page is the upgrade to app version 2021-10-14 from the former version 2021-10-06 (not sure..). Unfortunately the updated app did not restore open reader tabs (more than 50) as it did in former updates, no error message, no warning, nothing in any description found, how to process or how to handle the update. I'm not very happy about this unexpected behavior. Bug report could not be filed without account, useless for me. Android is v7, if any more info is necessary, pls. let me know. Thanks for any idea or help, --80.187.100.178 22:10, 20 October 2021 (UTC) P.s: referred faq page is locked, message points in here 80.187.100.178 (talk) 22:10, 20 October 2021 (UTC)
- What is "wp+app" and why do you think we have something to do with it? "Page seems not to exist": Which page where? Account where? Referred faq page where? Please elaborate. This lacks context that would allow us to understand what this is about. Please provde links. Thanks a lot. Malyacko (talk) 07:20, 21 October 2021 (UTC)
"De-Wikipediaify" templates etc
Hi.
I've successful exported & imported a series of templates such as, reflist, citation, dubious, etc to an installation of Mediawiki, which now all work ... but I'm stuck with 100s of links back to the Wikipedia (sometime messes like wikipedia.wikipedia) or, more rarely, Mediawiki.org, including those inline with actual content, e.g. the dubious in [dubious – discuss] will link to the Wikipedia.
I've looked at pages, I've looked in mysql, but I can't find where these links are all being created. In mysql they appear in blobs.
Where is it happening and is there an easy way to just change them all, e.g. using mysql.
Thanks in advance. --~ 82.132.224.36 (talk) 09:28, 21 October 2021 (UTC)
- Same too with [unreliable source?], [verification needed], [clarification needed], [timeframe?], [vague], [when?] & [why?] and perhaps 1,000s of links on Template & document pages. 82.132.224.36 (talk) 09:35, 21 October 2021 (UTC)
- There was a recent reply that would be helpful here too.
- What about using the ReplaceText extension? Jonathan3 (talk) 15:11, 21 October 2021 (UTC)
Where does the CSS locate on the following MediaWiki web site page?
Here's the link to the page: https://docwiki.embarcadero.com/Libraries/Sydney/en/Vcl.Controls.TCursor
I'd like to know where can I find the CSS for this page?
I know that I could use an Object Inspector but I want to know how it's been connected to the aforementioned page and where can I find it if I'd like to use it on my own web site for example. There's no CSS on the page and CSS in the template included.
The help is appreciated. MrJConstantine (talk) 11:01, 21 October 2021 (UTC)
- They use custom classname, and those classnames are styled by their custom Skin. You can find them in this request (with debug=true to disable bundling and minification)
- https://docwiki.embarcadero.com/Libraries/Sydney/e/load.php?debug=true&lang=en&modules=skins.duobook2.styles&only=styles&skin=duobook2 —TheDJ (Not WMF) (talk • contribs) 11:16, 21 October 2021 (UTC)
- @TheDJ
- I still don't quite get what class name I'm looking for here. All I need is to apply the same CSS that's used for the table on the page I posted. MrJConstantine (talk) 12:05, 21 October 2021 (UTC)
- The first table has id #vclinfo (the second one doesn't have any id) so you could search for vclinfo in the link posted above, or anything to do with table/tr/th/td elements. Jonathan3 (talk) 12:30, 21 October 2021 (UTC)
- @TheDJ
- There should the #00adf2 background color for both of the tables in the request but there is not. MrJConstantine (talk) 12:51, 21 October 2021 (UTC)
- It seems that that is from their site overrides.
- https://docwiki.embarcadero.com/Libraries/Sydney/e/load.php?debug=true&lang=en&modules=site.styles&only=styles&skin=duobook2
- which for them is sourced from: https://docwiki.embarcadero.com/RADStudio/Sydney/en/MediaWiki:Common.css
- —TheDJ (Not WMF) (talk • contribs) 13:01, 21 October 2021 (UTC)
table th { padding:0.5em 1em; background-color: #00adf2; color: #fff; }
Change MediaWiki:aboutpage
Hi, I would like to change the link of the aboutpage to an external link instead of a link to a page in my wiki. Is this possible? I cannot find how to do it.
Thanks 190.18.166.88 (talk) 15:10, 21 October 2021 (UTC)
- Might it be possible just to remove the existing footer link (if it needs to be am internal link) and add a new one with an external URL? The footer manual page shows how to add stuff to the footer. Jonathan3 (talk) 21:26, 21 October 2021 (UTC)
Help fix this error
I have beeen getting this error lately when ever i try to import from wikipedia
Import failed: Error 1205: Lock wait timeout exceeded; try restarting transaction (localhost) Function: WikiPage::insertOn Query: INSERT IGNORE INTO `mwnq_page` (page_namespace,page_title,page_restrictions,page_is_redirect,page_is_new,page_random,page_touched,page_latest,page_len) Thatnewman (talk) 18:07, 21 October 2021 (UTC)
How to force line breaks? Plugin, Extension?
Hi everyone,
My wiki is located at https://www.gamecollecting.io/wiki/Main_Page and I wanted to see if there was a way I could force the wiki to acknowledge line breaks like how it shows in the editor. Another wiki I commonly edit on here can do it! Here: https://tcrf.net/Rogue_Galaxy
However I just cannot figure it out. Do I need an extension? Do I need to add my own code to the wiki? Shaztopia (talk) 00:30, 22 October 2021 (UTC)
- If it's just the occasional thing you could use the Poem extension. I don't know how you'd do it site-wide. Jonathan3 (talk) 09:53, 22 October 2021 (UTC)
- check out the white-space css directive. Bawolff (talk) 00:18, 25 October 2021 (UTC)
alphapro software download
Need to download software from Zenitel Wiki website Vignor88 (talk) 00:31, 22 October 2021 (UTC)
- Please go here and you can find the path Download ↠Tanbirzx (✉) 09:47, 22 October 2021 (UTC)
Wiki account and login issues
The process of maintaining let alone creating a wiki account is insane! It does not work.
Despite having a valid account 'TheIBM' and valid email I was not able to reset my password.
I then set up another account 'Backchat-isp' and received and validated the account... That would not let me log in either.
I finally created a third account that works.
I certainly did not make any mistakes with my names, case, email or passwords. As for setting a limit of 1 email per 24 hours is just stupid. Taieri (talk) 01:06, 22 October 2021 (UTC)
- Please make sure that there is no multiple accounts in your one device. If this so then you should use one valid wiki account. Go here Special:Preferences and check your settings. ↠Tanbirzx (✉) 09:35, 22 October 2021 (UTC)
- Which wiki was this? Jonathan3 (talk) 08:20, 26 October 2021 (UTC)
Which part of the code checks if the user is logged in?
Hello, I need to change the way of verifying the logged user so that instead of using a session, use a verification of a token sent in the url. The problem is that I can't find which part of the code that checks if a user is logged in when accessing the wiki. BarbaRuivaRK (talk) 12:56, 22 October 2021 (UTC)
- You can use the
User::isAnonmethod. But if you want to implement a authentication method, please check out Manual:SessionManager_and_AuthManager. Maybe you can also use something existing like Extension:Auth_remoteuser or build on Extension:PluggableAuth. Osnard (talk) 13:11, 22 October 2021 (UTC)
How to limit the size of pictures in a slideshow?
Is there any way to set a max size of images in a slideshow? I can't seem to find any info on this. I've tried limiting the size of the images individually ex [File:ex.jpg|300px|caption]
I've also tried using heights and widths in the gallery tag like this:
<Gallery Mode=Slideshow widths=400px heights=300px>
But nothing I try works :/ Shaztopia (talk) 13:59, 22 October 2021 (UTC)
API - How to do bullet points
I'm having trouble trying to do bullet points using the API, I can't work out how to get it to do the new line, everything ends up on the same line.
I've tried using
$maps[] = "* " . $mapName . "<br/>";
$maps[] = "* " . $mapName . "\n";
$maps[] = "* " . $mapName . "\r\n";
None of which work Desbrina1 (talk) 15:57, 22 October 2021 (UTC)
- Please show full code. Bawolff (talk) 00:15, 25 October 2021 (UTC)
I can't remember my user name
I can't remember my user name 130.76.186.18 (talk) 16:37, 22 October 2021 (UTC)
- @CoachZeeeee my user name is ~~~~ CoachZeeeee (talk) 17:08, 22 October 2021 (UTC)
- Unless you have a big history you want to preserve, the easiest thing is to just start a new account. Buster2223 (talk) 19:13, 22 October 2021 (UTC)
=130.76.186.18=
Why do you track users [[IP Address]] ? CoachZeeeee (talk) 17:08, 22 October 2021 (UTC)
- See many links in Requests for comment/Exposure of user IP addresses Malyacko (talk) 17:12, 22 October 2021 (UTC)
- @Malyacko Thanks. ~ CoachZeeeee (talk) 17:23, 22 October 2021 (UTC)
Appealing to unblock request
Hi, Ivan Earl Clarin may i need help, thank you.Earl P. Clarin (talk) 04:27, 23 October 2021 (UTC)
- You are likely in the wrong place. Unblock what? Unblock where? Please be way way more specific and include links. Thanks. Malyacko (talk) 09:10, 23 October 2021 (UTC)
- Sorry, blocking account in Wikipedia, Thanks :)Earl P. Clarin (talk) 01:38, 24 October 2021 (UTC)
- You need to contact the Wikipedia that you have in mind if some account is blocked on that Wikipedia. This is MediaWiki.org. Malyacko (talk) 09:57, 24 October 2021 (UTC)
- Thank you Malyacko.Earl P. Clarin (talk) 14:47, 24 October 2021 (UTC)
- On english see https://en.wikipedia.org/wiki/Wikipedia:Appealing_a_block Bawolff (talk) 00:14, 25 October 2021 (UTC)
- how and where i contact wikipedia, all of my similar name was blocked, thank you Earl P. Clarin (talk) 07:53, 28 October 2021 (UTC)
- See the previous link by Bawolff. Again: We do not know. This is mediawiki.org. Malyacko (talk) 11:12, 28 October 2021 (UTC)
A big problem with Discussion Tools
I use my mediawiki1.35(with MySQL, php7.3)and when I want to repair an review, it tell me that the review isn’t found, but it was still there, and there weren’t any thing to tell me what happened, please help me ( 曦莹 (talk) 23:19, 23 October 2021 (UTC)
- Please follow "Post a new question" in the sidebar and provide clear steps, as a list (!) of steps and what exactly happens. Malyacko (talk) 09:56, 24 October 2021 (UTC)
Ahnentafel Numbering
Steve Bennett
I like to use ahnentafel numbers to identify my ancestors rather than the reference numbers in RootsMagic. I find ahnentafel number easy to use in identifying ancestors, while reference numbers mean nothing or at least I have found no use for them. Is there a way to create a field for ahnentafel numbers that could be displayed instead of the reference number in the same location next to the name. I also note that in the ahnentafel report printouts there seems to be no accomodation for pedigree collapse so that individuals that appear in more than on place in the report are assigned additional number depending where they appear in the report. I find having more than one number to be confusing for purposes of identification and inconsistent with other genealogical standards. Is the a fix or resolution for this? I do not mind entering ahnentafel numbers manually instead of an automatic numbering algorithm. 134.228.161.153 (talk) 23:49, 23 October 2021 (UTC)
- What are "Ahnentafel numbers"? Who is "Steve Bennett"? How is this related to MediaWiki? Please follow "Post a new question" in the sidebar. Malyacko (talk) 09:55, 24 October 2021 (UTC)
- Gordon Bennett! Jonathan3 (talk) 13:51, 24 October 2021 (UTC)
Dropdown menu of pages not showing.
The following discussion is closed. Please do not modify it. Subsequent comments should be made on the appropriate discussion page. No further edits should be made to this discussion.
When clicking on "More" to "Delete", "Move" or "Protect" a page, there is this little dropdown selection... but it won't show. Only the little arrow next to "More" is switching up or down.
| MediaWiki | 1.36.2 |
| PHP | 7.4.13 (cgi-fcgi) |
| MariaDB | 10.3.23-MariaDB-0+deb10u1 |
| ICU | 57.1 |
| Lua | 5.1.5 |
Help With Favicon
Hello I have Some questions about favicon..
First - Is there a way I can upload any picture size and resize it in my localsettings cause when ever I resize it to either 16 X 16 or 32 X 32 it is blurry.
Second - My favicon doesn't show on google.
Third - My Favicon Doesn't show on address bar.
How can I fix all these errors. Thatnewman (talk) 08:42, 24 October 2021 (UTC)
- First: No, see Manual:$wgFavicon. Second: That's up to Google. Third: That's up to your web browser. Malyacko (talk) 09:54, 24 October 2021 (UTC)
- Does it not show up on any browser? It should just work. You might need to hard refresh the page (just guessing). Are you able to view just the icon by typing its URL into your browser? Jonathan3 (talk) 08:14, 26 October 2021 (UTC)
Help in creating upload wizard
Anytime I try to create the Wikipedia:File Upload Wizard i am getting 404 error Thatnewman (talk) 12:25, 24 October 2021 (UTC)
- Please read "Post a new question" in the sidebar; please check your webserver's error log if you get a 404 and post relevant log lines. Malyacko (talk) 14:23, 24 October 2021 (UTC)
- Pretty sure the wikipedia file upload wizard hardcodes commons and cant just be copied unmodified Bawolff (talk) 00:12, 25 October 2021 (UTC)
- Trying to replicate that sort of thing from Wikipedia is probably a difficult approach. What effect do you want? It might be possible some other way (eg an extension). Jonathan3 (talk) 08:17, 26 October 2021 (UTC)
Enable search button on google
How do i enable my search button on google just like Wikipedia https://paste.pics/400d08bd01e0fb0be43db2155835eedb Thatnewman (talk) 12:28, 24 October 2021 (UTC)
- I think it just decides for itself. It does it for my wiki but I never asked for that to happen. Maybe it's partly based on how often you've visited the site before. Jonathan3 (talk) 13:18, 24 October 2021 (UTC)
- Just found this. It's quite old but might help:
- https://developers.google.com/search/blog/2014/09/improved-sitelinks-search-box Jonathan3 (talk) 13:21, 24 October 2021 (UTC)
Remove Dash - from name
How do i remove the dash Before my name... On google it is like this
- Website
instead of
Website
even on browser top.....
How do i remove the dash Thatnewman (talk) 13:14, 24 October 2021 (UTC)
- Maybe edit Mediawiki:Pagetitle. Jonathan3 (talk) 13:25, 24 October 2021 (UTC)
- Apart from that: If something only happened on Google, then you need to talk to Google. Malyacko (talk) 14:22, 24 October 2021 (UTC)
- @Thatnewman: : this dash is normally used to separate the page title and the wiki title. Do you want to get rid of the wiki title completely, or just not have a dash between them? As Jonathan3 says, you can edit Mediawiki:Pagetitle, or if you want extra control over the title on a page-by-page basis, the WikiSEO extension can be pretty good. Sam Wilson 01:48, 25 October 2021 (UTC)
Broken custom toggle JavaScript
Hello. I'm an interface admin on Encyclopædia Dramatica (where I go by "MarioMario456"). The wiki has this JavaScript that extends the MediaWiki custom toggle by allowing a toggle button with expand/collapse text anywhere (this is used on series templates). However, sometimes it doesn't work:
$(document).ready(function() {
$(".collapsibletoggletext").click(function() {
$(this).parent().children(".collapsibletoggletext").removeClass("hiddentext");
$(this).addClass("hiddentext");
});
});
For those JavaScript-illiterate, it's: When the page has loaded, when an object with the class "collapsibletoggletext" is clicked, all other objects with the class "collapsibletoggletext" in the parent have the class "hiddentext" (which has the CSS "display:none", meaning it's hidden) removed, while the "collapsibletoggletext" that was clicked has the "hiddentext" class added.
Here's an example:
[<span class="mw-customtoggle-example collapsibletoggle showhidetext"><span class="collapsibletoggletext hiddentext">Collapse</span><span class="collapsibletoggletext">Expand</span></span>] <div id="mw-customcollapsible-example" class="mw-collapsible mw-collapsed">Hello World!</div>
AtomicMario (talk) 14:46, 25 October 2021 (UTC)
- I guess this is a question rather than an announcement... I'm semi-literate in JavaScript, so give some more details and I'll have a look :-) Have you noticed any patterns in relation to when it works and when it doesn't? Jonathan3 (talk) 08:10, 26 October 2021 (UTC)
- When it works, the text changes when you click it. When it doesn't, the text stays the same. For a page that has this, keep clicking "Random page" until you find a page with an collapsible gallery. The toggle text should change when you click it, but sometimes it doesn't. AtomicMario (talk) 12:31, 26 October 2021 (UTC)
- Meet me half way and share a link of a page that doesn't work! Jonathan3 (talk) 12:36, 26 October 2021 (UTC)
- @Jonathan3 Don't know what triggers the bug, it happens entirely by chance. Just click "Random page", until you find a page in which the toggle text doesn't change. AtomicMario (talk) 13:05, 26 October 2021 (UTC)
- Not sure I want to risk that :-) When the javascript above breaks, does all javascript on the page stop working too (dropdowns or whatever)? I had that once and can't for the life of me remember what fixed it. That's not much help but I'll have a think. It might have been something seemingly unrelated - maybe an old extension, or DuckDuckGo Privacy Essentials/an adblocker? Jonathan3 (talk) 22:41, 27 October 2021 (UTC)
- I don't see any problem with the jQuery code. I'm guessing your custom javascript doesn't always load. 65.92.83.38 (talk) 23:41, 27 October 2021 (UTC)
- when the bug occurs, check, using your browser, that a click event is attached to the elements (as desired). If not, then your javascript isn't always loading. 65.92.83.38 (talk) 23:42, 27 October 2021 (UTC)
- Other parts of the local javascript work, just not the custom toggle collapse code. AtomicMario (talk) 18:28, 28 October 2021 (UTC)
- Finally figured it out. The wiki has a file called "st/ed_global.js", which has a collapse script that is conflicting with the one on MediaWiki:Common.js. It is very broken, so I told the server admin to delete it. Plus, most of it is already on MediaWiki:Common.js. AtomicMario (talk) 23:36, 28 October 2021 (UTC)
find every <file> or </file> and replace
hi!
a old function did not work. so i create a new template.
is there a simple way to change in <file> => {{File| and </file> => }} in the hole database?
regards Jan JanTappenbeck (talk) 14:51, 25 October 2021 (UTC)
- I think Extension:Replace Text could do that.
- I've not tested this, but if you use the regex setting you could find
<file>(.*)<\/file>
- and replace it with
- Jonathan3 (talk) 19:46, 25 October 2021 (UTC)
{{file|$1}} - hi !
- i oben and the result will show
- <file>(.*)<\/file>“ wird durch „{{file|$1}}“ in 250 Seiten ersetzt.
- <file>(.*)<\/file>“ will replace „{{file|$1}}“ in 250 side.
- But when i update a side with the old text there is no change!!!!
- on special page "last changes" nothing will be listet - but the flag is set!
- regards Jan JanTappenbeck (talk) 06:41, 26 October 2021 (UTC)
- I don't understand all that but ReplaceText uses the job queue so it won't do all the replacements immediately. Run runJobs.php if you need it straight away. Also the extension only does 250 pages at a time so you might need to do the find/replace again (probably preferably after the first lot has finished). It's all on the extension's manual page :-) Jonathan3 (talk) 08:01, 26 October 2021 (UTC)
Apply css only for search results page
The following discussion is closed. Please do not modify it. Subsequent comments should be made on the appropriate discussion page. No further edits should be made to this discussion.
I want to remove the sidebar and expand the search results content on this site with something like this:
#mw-site-navigation, #mw-related-navigation, #page-tools {
display: none;
}
#mw-content {
margin-left: 0em;
overflow: unset;
}
Is it possible to target these changes only for the search results pages, i.e. pages with index.php?search= Spiros71 (talk) 18:45, 25 October 2021 (UTC)
Images not displaying
I have MediaWiki 1.37.0-rc-0 installed on a Ubuntu 20.04 Server with Apache2 and PHP 7.4.3
I have set $wgEnableUpload = True.
I have uploaded File:SmallCraftBarn.jpg - Banished Wiki (fusion.tk) and it is displayed on page Small Crafted Barn - Banished Wiki (fusion.tk) but all I can see is File:SmallCraftBarn.jpg link.
I do not know where I have gone wrong. Fusionoz (talk) 21:54, 25 October 2021 (UTC)
- Seems to display fine for me Bawolff (talk) 06:47, 26 October 2021 (UTC)
How to disable edit for administration only
Hello i would like to Set protections on all My Templates and Modules for administration only.... IS there a way to do that once? Thatnewman (talk) 23:26, 25 October 2021 (UTC)
'A daily summary of notification' not working
Hi all,
Checked 'emails ' all events to receive notification, & select 'Daily summary of notifications' or 'Weekly summary of notification',
& never receive emails. However If 'individual notification when they come in' selected, I can receive the notification instantly.
So no doubt the local SMTP server functions, but is there any configuration to control firing the notification in specified time or any system dependencies are required, Do anyone could help me?
Thanks.
Sys Requirements:
MW: 1.36.1
php: 7.4
MySQL: 5.7 Lamjon (talk) 01:50, 26 October 2021 (UTC)
- @Lamjon If you selected something somewhere, please provide steps to reproduce how and where to select that. Thanks. Malyacko (talk) 07:48, 26 October 2021 (UTC)
- @Malyacko, I thought it was quite obvious. Here's the complete steps, some of them looks straightforward.
- Logined my wiki site,
- Preferences > notifications > "Individual notifications as they come in"
- Another login users (user A) to the following:
- - mention my in my info page
- - mention me in while replies in public page, it's a structured Discussion
- email notification received almost immediately
- Under "Notify me about these events", check all the check box under "Email", & click [Save]
- Change "Individual notifications as they come in" to "A Daily summary of notifications" & click [Save]
- Another login users (user B)to the following:
- - mention my in my info page
- - mention me in while replies in public page, it's a structured Discussion
- wait 1 day, nothing happen Lamjon (talk) 09:29, 22 November 2021 (UTC)
- @Malyacko, I thought it was quite obvious. Here's the complete steps, some of them looks straightforward.
- Idk how echo works, but im going to guess, try running echo/maintenance/processEchoEmailBatch.php from the commandline. Bawolff (talk) 02:35, 27 October 2021 (UTC)
- @Bawolff, thanks, there is no processEchoEmailBatch.php under maintainence/, is that any clue the echo jobs didn't work? Lamjon (talk) 09:17, 22 November 2021 (UTC)
- In maintenance of your echo extension not of mediawiki. It should definitely be there.
- Also check your job queue is running (showJobs.php --group).
- also try running
- php runJobs.php --type EchoNotificationJob
- As well as for EchoPushNotificationRequest Bawolff (talk) 05:49, 23 November 2021 (UTC)
Show page counter in the search box
Hi, how can I make it so that I can see the page counter in the search box with the Timeless skin.
In total I have 224 pages but I only see Search on "name of my website") and I would like to see Search on "number of pages" as I have seen in examples of other websites. Version 1.36
Example: Skin talk:Timeless/Archive 1#/media/File:Skin-timeless.png
PD: Before I had version 1.31, but I had to move the web to another server and now I don't see the page counter, before I did, but I don't know how I got it.
Thanks, best regards. 81.37.71.167 (talk) 09:08, 26 October 2021 (UTC)
- You could edit MediaWiki:Searchsuggest-search to say something like
Search {{NUMBEROFARTICLES}} pages- (Maybe your MediaWiki namespace pages didn't get transferred across for some reason.) Jonathan3 (talk) 22:32, 27 October 2021 (UTC)
- Hi Jonathan3,
- That's just what I wanted.
- Thank you very much for your help! 81.37.71.167 (talk) 13:24, 29 October 2021 (UTC)
cant add my postgresql to the MediaWiki 1.36.2
Im trying to install the MediaWiki but on the connecto to database page i need to leave the Database host empty a the instraction say :
"If you are using PostgreSQL, leave this field blank to connect via a Unix socket."
but Im getting erorr :
You must enter a value for "Database host:".
how to fix it? 37.142.40.49 (talk) 11:48, 26 October 2021 (UTC)
- I think it might make sense to file a bug at https://phabricator.wikimedia.org for this. Bawolff (talk) 02:23, 28 October 2021 (UTC)
How to fix upgrade error?
Hello. On my wiki family, I attempted to upgrade my wiki from version 1.31 to 1.36.2. When I attempted to use mw-config on one of my wikis, I got an error.
Here is a snapshot of it: https://prnt.sc/1xf8i1f Newman2 (talk) 00:17, 27 October 2021 (UTC)
- Delete use of wfErrorLog in LocalSettings.php Bawolff (talk) 02:31, 27 October 2021 (UTC)
- I deleted it and upgraded MediaWiki, yet I got this: https://prnt.sc/1xhfsh7 Newman2 (talk) 11:16, 27 October 2021 (UTC)
- This looks like the same as your other question. Seeing as the error mentions AbuseFilter I'd comment that extension out from LocalSettings.php and see what difference that makes. Or if you know you haven't upgraded all your extensions, you could do that before trying again. Jonathan3 (talk) 22:26, 27 October 2021 (UTC)
Creating a list of links to all articles of a certain namespace
In MediaWiki 1.36.1 I want to create an article which contains a list to all articles of a certain namespace.
There are "many" articles of the relevant namespace so instead linking them "manually" I seek some automatic solution to present them all in a list (say a <ul> list) in one go. 49.230.208.183 (talk) 07:01, 27 October 2021 (UTC)
- There's Special:Allpages which you might be able to transclude.
- But what I'd do is use the DynamicPageList3 extension. It could easily do what you need.
- If you use Cargo anyway I think it could do it too. Jonathan3 (talk) 11:48, 27 October 2021 (UTC)
- In my website, I understand that Special:AllPages only includes built-in namespaces; it doesn't contain user-generated namespaces --- I don't find namespaces I myself have created, under the
Namespace:list there. - Maybe it does with the fact that my website is in Hebrew?... 49.230.208.199 (talk) 18:48, 27 October 2021 (UTC)
- Are you sure that the namespace is created properly (defined in LocalSettings.php). If you go to the pages in question, and go to the left hand (right in hebrew) side and click page information link, does it list the page being in the namespace you expect?
- Keep in mind, that a page having a colon in the title does not neccesarily mean its in that namespace unless that namespace has been configured. Bawolff (talk) 01:09, 28 October 2021 (UTC)
- I didn't even know that namespaces should be created in LocalSettings.php
- Nothing appears in page information about namespace in one of the relevant webpages.
- I thought that it is only needed to precede a webpages' name with
example:. - Okay, thanks, 49.230.193.73 (talk) 02:30, 28 October 2021 (UTC)
- Manual:Using custom namespaces has some background info about the neccesary config options that might help. Bawolff (talk) 07:29, 28 October 2021 (UTC)
- Who knows. It should have all namespaces. How did you define your custom namespaces? Try to define one using English to see whether that works. Jonathan3 (talk) 22:02, 27 October 2021 (UTC)
- Please read what I wrote to Bawolff on top; basically I just precede a webpages' name with
example:. - I understood the problem. 49.230.193.73 (talk) 02:31, 28 October 2021 (UTC)
- Please read what I wrote to Bawolff on top; basically I just precede a webpages' name with
- P.S. I have undone the edit Tanbirzx made to my first message above as a matter of principle. If you want to convert my Special:Allpages to Special:Allpages, then instead just add your own comment :-) Jonathan3 (talk) 22:05, 27 October 2021 (UTC)
- Okay,
- I thank Jonathan and Bawolff for their comment.
- as of this moment I prefer not to take any action about this matter.
- I suggest to lock this thread. 49.230.193.73 (talk) 02:33, 28 October 2021 (UTC)
Wrapping text round an iframe
I'd like to have an iframe (the mediawiki extension) on the right of a page, and my content on the left, much like an infobox. My content is generated automatically from external files, so I have very strong control of the layout, but am conscious that I want it to work on mobile as well as desktop. I've tried mediawiki tables and SimpleTables, but newlines seem to be a problem. HTML raw tables work better, though the text won't widen at the end of the iframe, but I worry that goes against mediawiki principles.
What approach would people suggest? Vicarage (talk) 08:36, 27 October 2021 (UTC)
- I would suggest doing something like: style="width:50%:float:right" on the iframe. Css floating elements seem much more suited to your needs than tables. Bawolff (talk) 01:04, 28 October 2021 (UTC)
Cant login via Iframe view "There seems to be a problem with your login session; this action has been canceled as a precaution against session hijacking. Go back to the previous page, reload that page and then try again"
Hello!
I have a WIkipage that i wanted to embedd (Iframe) into another program. And the page loads up in the iframe and I can go to the login screen, but as soon as i try to log in I get "There seems to be a problem with your login session; this action has been canceled as a precaution against session hijacking. Go back to the previous page, reload that page and then try again". You can only access the actual wikipages by logging in so i need to resolve this in some sort of way, Does anyone know what i can try?
The only settings that I have changed in order to get the iframe to load the page at all is:
$wgEditPageFrameOptions = 'false';
$wgCookieSecure = false; 193.234.117.222 (talk) 09:15, 27 October 2021 (UTC)
- I'd guess it was the samesite attribute on the cookies.
- Note there are security implications (clickjacing) to using an iframe while logged in. Be sure to be aware of the risks. Bawolff (talk) 01:02, 28 October 2021 (UTC)
- Hello!
- Thank you for your help! The tip solved the problem. :)
- I Set $wgCookieSameSite = "none";
- and $wgForceHTTPS = true;
- Then it worked. 193.234.117.222 (talk) 06:33, 28 October 2021 (UTC)
Text mapping of extensions button not working
Hi,
I have a problem with the display of certain buttons. The login button of the PluggableAuth extension and the buttons in the VisualEditor extension are displayed with a funny label.
For example:
The login button has the text {pluggableauth-loginbutton-label}
Or
In VisualEditor, the buttons have labels like {visualeditor-meta-tool}, {visualeditor-toolbar-insert} and so on.
Apart from this, the extensions work perfectly.
I have already looked at the debugging output, but found nothing useful there.
I use Mediawiki version 1. 31. 15 and PHP 7. 4 (if it is important) on a Ubuntu 20. 04 server.
I hope someone can help me with this. 31.209.95.10 (talk) 12:51, 27 October 2021 (UTC)
- Do you have any custom localization cache settings?
- You could try commenting out the extension in localsettings.php,loading a few pages, then readding the extension. This should reinitialize the localisation cache. Bawolff (talk) 01:01, 28 October 2021 (UTC)
Error on wiki after upgrading from 1.31.5 to a later version
MediaWiki Version: 1.36.2
PHP Version: Unknown
Link to wiki: https://penguinicewikis.com/mw19/index.php/
Hello. Yesterday, I have upgraded my wiki from 1.31.5 to 1.36.2, and it is not working. The link lists some PHP-related errors that I have difficulty fixing.
Anyone know what is going on? Newman2 (talk) 13:00, 27 October 2021 (UTC)
- Noone can tell with an error message. Please post error messages. Malyacko (talk) 15:32, 27 October 2021 (UTC)
- Here's the exception:
- Original exception: [YXm06h681b6V7KOrvTtA6gAADwA] /mw19/index.php/ Error: Call to undefined function wfMemcKey()
- Backtrace:
- from /home/gjlxrtap/public_html/mw19/extensions/AbuseFilter/includes/AbuseFilter.php(1855)
- #0 /home/gjlxrtap/public_html/mw19/extensions/AbuseFilter/includes/AbuseFilterHooks.php(305): AbuseFilter::autoPromoteBlockKey(User)
- #1 /home/gjlxrtap/public_html/mw19/includes/HookContainer/HookContainer.php(338): AbuseFilterHooks::onGetAutoPromoteGroups(User, array)
- #2 /home/gjlxrtap/public_html/mw19/includes/HookContainer/HookContainer.php(137): MediaWiki\HookContainer\HookContainer->callLegacyHook(string, array, array, array)
- #3 /home/gjlxrtap/public_html/mw19/includes/HookContainer/HookRunner.php(1832): MediaWiki\HookContainer\HookContainer->run(string, array)
- #4 /home/gjlxrtap/public_html/mw19/includes/user/UserGroupManager.php(383): MediaWiki\HookContainer\HookRunner->onGetAutoPromoteGroups(User, array)
- #5 /home/gjlxrtap/public_html/mw19/includes/user/UserGroupManager.php(266): MediaWiki\User\UserGroupManager->getUserAutopromoteGroups(User)
- #6 /home/gjlxrtap/public_html/mw19/includes/user/UserGroupManager.php(304): MediaWiki\User\UserGroupManager->getUserImplicitGroups(User, integer, boolean)
- #7 /home/gjlxrtap/public_html/mw19/includes/Permissions/PermissionManager.php(1347): MediaWiki\User\UserGroupManager->getUserEffectiveGroups(User)
- #8 /home/gjlxrtap/public_html/mw19/includes/Permissions/PermissionManager.php(1296): MediaWiki\Permissions\PermissionManager->getUserPermissions(User)
- #9 /home/gjlxrtap/public_html/mw19/includes/block/BlockManager.php(138): MediaWiki\Permissions\PermissionManager->userHasRight(User, string)
- #10 /home/gjlxrtap/public_html/mw19/includes/user/User.php(1660): MediaWiki\Block\BlockManager->getUserBlock(User, WebRequest, boolean, boolean)
- #11 /home/gjlxrtap/public_html/mw19/includes/user/User.php(1958): User->getBlockedStatus(boolean, boolean)
- #12 /home/gjlxrtap/public_html/mw19/includes/block/BlockManager.php(484): User->getBlock()
- #13 /home/gjlxrtap/public_html/mw19/includes/MediaWiki.php(771): MediaWiki\Block\BlockManager->trackBlockWithCookie(User, WebResponse)
- #14 /home/gjlxrtap/public_html/mw19/includes/MediaWiki.php(637): MediaWiki::preOutputCommit(RequestContext, Closure)
- #15 /home/gjlxrtap/public_html/mw19/includes/MediaWiki.php(936): MediaWiki->doPreOutputCommit(Closure)
- #16 /home/gjlxrtap/public_html/mw19/includes/MediaWiki.php(546): MediaWiki->main()
- #17 /home/gjlxrtap/public_html/mw19/index.php(53): MediaWiki->run()
- #18 /home/gjlxrtap/public_html/mw19/index.php(46): wfIndexMain()
- #19 {main} Newman2 (talk) 20:23, 27 October 2021 (UTC)
- How exactly did you upgrade the AbuseFilter extension, and to which branch? Malyacko (talk) 20:40, 27 October 2021 (UTC)
- I deleted the AbuseFilter extension off my file directory, and I got this:
- [YXnmYVPrNIRfDd-Umi6drwABCiM] /mw19/mw-config/?page=ExistingWiki Exception: Unable to open file /home/gjlxrtap/public_html/mw19/extensions/AbuseFilter/extension.json: filemtime(): stat failed for /home/gjlxrtap/public_html/mw19/extensions/AbuseFilter/extension.json
- Backtrace:
- from /home/gjlxrtap/public_html/mw19/includes/registration/ExtensionRegistry.php(176)
- #0 /home/gjlxrtap/public_html/mw19/includes/GlobalFunctions.php(52): ExtensionRegistry->queue(string)
- #1 /home/gjlxrtap/public_html/mw19/LocalSettings.php(751): wfLoadExtension(string)
- #2 /home/gjlxrtap/public_html/mw19/includes/installer/Installer.php(660): require(string)
- #3 /home/gjlxrtap/public_html/mw19/includes/installer/WebInstallerExistingWiki.php(29): Installer::getExistingLocalSettings()
- #4 /home/gjlxrtap/public_html/mw19/includes/installer/WebInstaller.php(269): WebInstallerExistingWiki->execute()
- #5 /home/gjlxrtap/public_html/mw19/mw-config/index.php(82): WebInstaller->execute(array)
- #6 /home/gjlxrtap/public_html/mw19/mw-config/index.php(40): wfInstallerMain()
- #7 {main} Newman2 (talk) 23:55, 27 October 2021 (UTC)
- First, never do a leap upgrade like that (jumpingn from 1.31 to 1.36). Second, you could be having permission errors. 65.92.83.38 (talk) 00:01, 28 October 2021 (UTC)
- There is nothing wrong with upgrading from 1.31 to 1.36 directly. Those versions are close together.
- Your first error message is caused by using an old version of abusefilter with 1.36. You should use the version made to work with 1.36. The same applies to all your extensions - you should ensure their version match your version of mediawiki core.
- Your second exception is caused by deleting AbuseFilter but still having it listed as an enabled extension in LocalSettings.php Bawolff (talk) 00:58, 28 October 2021 (UTC)
- It's generally not a good idea to upgrade like that (general principle). I wouldn't' do it especially if you have your own extensions that rely on classes that have been modified. You're just asking for trouble. 65.92.83.38 (talk) 01:34, 28 October 2021 (UTC)
- If you have your own extensions then you need to upgrade them to work with whichever is the new version. I'm not sure it's a reason to upgrade through every intervening version in a situation where you've already missed several upgrades. Jonathan3 (talk) 16:36, 28 October 2021 (UTC)
Large Gallery thumbnails not always shown
The problem: when having a gallery with a significant amount of images - they're not loaded.
Which wiki this happening on? wiki.openstreetmap.org
specific link: https://wiki.openstreetmap.org/wiki/Road_signs_in_the_Philippines/sign_lookup_table
What I've done so far: Tried to communicate with the support of wiki.openstreetmap.org (they seem to not know either)
More detailed: between 00:00 and 04:00 western pacific time I can load that page without problems. All images are shown. Around 06:00 it starts to get worse with some images not being shown anymore this gets worse through the day..
I verified large sites with galleries hundreds of images on www.wikipedia.org they have no problems with hundreds of images in a gallery.
How does a proper image being shown:
<li class="gallerybox" style="width: 85px"><div style="width: 85px">
<div class="thumb" style="width: 80px;"><div style="margin:0px auto;"><a href="/wiki/File:Philippines_road_sign_G8-3.svg" class="image"><img alt="" src="https://upload.wikimedia.org/wikipedia/commons/thumb/9/9b/Philippines_road_sign_G8-3.svg/80px-Philippines_road_sign_G8-3.svg.png" decoding="async" width="80" height="44" srcset="https://upload.wikimedia.org/wikipedia/commons/thumb/9/9b/Philippines_road_sign_G8-3.svg/120px-Philippines_road_sign_G8-3.svg.png 1.5x, https://upload.wikimedia.org/wikipedia/commons/thumb/9/9b/Philippines_road_sign_G8-3.svg/160px-Philippines_road_sign_G8-3.svg.png 2x" /></a></div></div>
<div class="gallerytext">
<p><b>G8-3</b>
And what does it look like for the failed images:
</div>
</div></li>
<li class="gallerybox" style="width: 85px"><div style="width: 85px">
<div class="thumb" style="height: 80px;"></div>
<div class="gallerytext">
<p><b>G8-2</b>
Any idea why this behavior is happening? 2001:4452:301:C600:5C63:1D8:FD3E:F9B (talk) 13:08, 27 October 2021 (UTC)
- Cannot reproduce. Images load when going to that link. If there are certain issues at certain times, you will have to contact the folks who run that wiki (we don't run it). Malyacko (talk) 20:37, 27 October 2021 (UTC)
- I don't know the answer but could reproduce the problem... I checked at about 2300 GMT and there were quite a few images missing. Mostly ones nearer the bottom of the page. Purging that page with ?action=purge took absolutely ages but after doing it twice the images appeared. Jonathan3 (talk) 22:23, 27 October 2021 (UTC)
- I can't even get that page to load.
- InstantCommons is really slow. Maybe its hitting some sort of timeout.
- I would suggest enabling mediawiki debug logging. Bawolff (talk) 00:54, 28 October 2021 (UTC)
- Your web server might have a limit on the download size. 65.92.83.38 (talk) 00:55, 28 October 2021 (UTC)
- That's unlikely as they are missing html in the middle of the page. A download limit would cut off the entire thing, or at some point, not just garble random parts in the middle. Bawolff (talk) 01:16, 28 October 2021 (UTC)
- The people running the web server probably limit the download size (or there is a timeout) depending on the time of day. 65.92.83.38 (talk) 01:07, 28 October 2021 (UTC)
- If some servers (maybe job queue) are behind a firewall and some aren't, what could be happening is only some servers can fetch metadata from commons. Only some images would be broken because some would be cached from previous renders, but more would become broken over time. Although if that was the case, i would expect the broken images to be random and not towards the end. Bawolff (talk) 01:24, 28 October 2021 (UTC)
- It is assumed this only happens to 'some' servers.
- That's an incorrect assumption without evidence to that assumption.
- Below I'm adding the evidence this isn't just an issue on smaller servers
- w:Comparison_of_European_road_signs#Speed_limit
- Scroll down and you get the same error - so it also happens on the "big" en.wikipedia.org Mrgenie (talk) 23:57, 22 December 2021 (UTC)
- The cause is probably different. Enwikipedia has pretty aggressive rate limits, but those types of rate limits wouldn't affect the html generated (in wikipedia) which is very different then the issue described above. Bawolff (talk) 04:04, 20 January 2022 (UTC)
- @Mrgenie That specific page has an insane amount of images... you are bound to hit ratelimits I think with that many images (even without the overhead that OSM has by using InstantCommons). There is a reason a category only shows you a max of 50 images normally. My browser can't even keep all of them in memory, if I scroll I can see them being dropped/reloaded into the renderer. Oh, now the tab crashed.
- I pity the mobile user who accidentally clicks this page ;) As a developer, it's making me wonder if we should put a limit on the amount of images you are allowed to add to pages.
- If you push the limits you might crash, this page is pushing the limits. —TheDJ (Not WMF) (talk • contribs) 11:55, 23 December 2021 (UTC)
- It's interesting your browser can't keep them in memory.
- The Philippines Road Sign lookup table
- This is the page the original talk started about. It's about 300 images, each 10 to 50kb.. but let's stick to 100kB per image, although not a single image is 100kB
- So the total is 30MB, if we assume 100kB per image. I believe my old i386 back in the stone age already could do up to 4GB RAM LOL
- But okay, if you say your 21st century equipment can't put 30MB in the memory - I guess some people still running Commodore C64/128 or so.
- And that's okay, I get it, every single person I tried to convince there shouldn't be a problem like this - insists that it's normal that things not work - and the failure to load a few MB over the internet is normal, that's the way it should work. So I gave up trying to convince MediaWiki devs that this is not how it's supposed to be.
- No one will fix this and it's normal that a gallery of a few hundred images doesn't work and there's nothing wrong with mediawiki. No bugs or anything, it's supposed not to work! LOL
- Funny thing though - when I click "edit" all images are loaded instantly without any hiccups..
- but when the user uses the "read" - as in a person not editing the wiki page - then it doesn't work. But yeah I get it, it's supposed not to work for those people using wiki pages. Only those that edit wiki pages it's suppose to work.
- Anyway - feel free to close this issue. Wiki folks already explained to me if the "edit" works and the "read" doesn't work, that's exactly how it's supposed to be working and means 100% working fine and no bug. So I simply leave it at that. 49.151.128.122 (talk) 13:32, 19 January 2022 (UTC)
- Note that the file size is only the amount of size it takes in storage, but not in actual memory. An image displayed on screen needs a lot more memory. Most images use compression techniques to reduce the file size to optimize for delivery, but uncompressing and rendering them on screen takes CPU cycles and memory. Ciencia Al Poder (talk) 13:57, 19 January 2022 (UTC)
- you're talking about the web browser here. MediaWiki has no control over how chrome or firefox manages memory.
- That said, i'm doubtful that local computer running out of memory was the issue described in the beggining of this thread. I don't think TheDJ was suggesting that either (please correct me if im wrong), only suggesting that if you fixed the other issue you would likely hit local memory usage issues.
- I think we are at a standstill because it is very hard to debug further without mediawiki debug logs. Bawolff (talk) 04:02, 20 January 2022 (UTC)
- p.s. in case its ueful to you, i made extension:QuickInstantCommons which makes instant commons somewhat faster. Bawolff (talk) 18:28, 23 December 2021 (UTC)
- Yeah that is actually helpful - but I'm not managing the server and the person who is - is not interested in installing a beta package to see if it speeds up things.
- So we have no idea how it'll impact these galleries having these issues - until it's released. 49.151.128.122 (talk) 13:33, 19 January 2022 (UTC)
- Its marked as stable now if that's helpful. However extension stable vs beta statuses are pretty meaningless and not applied consistently.
- It is an extension though. As of right now there are no plans to merge into core. Bawolff (talk) 04:07, 20 January 2022 (UTC)
Returning svg in lua module
Is there any way to return svg using a lua module? I tried to do it and it seems to go through the parser which then views svg as raw html... Any ideas? 65.92.83.38 (talk) 23:13, 27 October 2021 (UTC)
- I realise this is basically impossible to do without doing something complicated like creating a new extension since otherwise anyone could insert ra html into pages. I'm just wondering if it can be done by creating a new module namespace and then specifying that the string return shouldnt be considered wikitext? 65.92.83.38 (talk) 23:24, 27 October 2021 (UTC)
- No. Someone once had a patch for this a long time ago (with server side rendering, whole deal), but it never ended up going anywhere.
- If you trust all your users i guess there is manual:$wgRawHtml Bawolff (talk) 00:30, 28 October 2021 (UTC)
error by use SyntaxHighlight-extension
Hi !
i installed SyntaxHighlight (https://www.mediawiki.org/wiki/Extension:SyntaxHighlight).
i get warnings by following source i integrate in side:
<syntaxhighlight lang="vbnet"> _Austausch = New Dictionary(Of String, String) From { {"LageBezeichnung", LageBezeichnung}, ' Auf_Betr_Allgemein01 {"LageBezeichnung_RWDrossel", LageBezeichnung}, {"LageBezeichnung_BAULAST", LageBezeichnung}, .... {"Androhung_DatumFrist", _Datum4Frist.ToString("dd.MM.yyyy")}, ' Firstdatum {"DatumSatzung", "12.12.2016"}, {"LVWG_STAND", "Art. 1 Ges. v. 01.09.2020, GVOBI. S. 508"}, {"RWDROSSEL_LITER", "?????"} </syntaxhighlight>
on the page with reference of supported languages (https://www.mediawiki.org/wiki/Extension:SyntaxHighlight#Supported_languages)i only found "Visual Basic.NET".
if i modify the source to
<syntaxhighlight lang="Visual Basic.NET"> _Austausch = New Dictionary(Of String, String) From { {"LageBezeichnung", LageBezeichnung}, ' Auf_Betr_Allgemein01 {"LageBezeichnung_RWDrossel", LageBezeichnung}, {"LageBezeichnung_BAULAST", LageBezeichnung}, .... {"Androhung_DatumFrist", _Datum4Frist.ToString("dd.MM.yyyy")}, ' Firstdatum {"DatumSatzung", "12.12.2016"}, {"LVWG_STAND", "Art. 1 Ges. v. 01.09.2020, GVOBI. S. 508"}, {"RWDROSSEL_LITER", "?????"} </syntaxhighlight>
the error will not fix.
Could some one help?
regards Jan JanTappenbeck (talk) 07:48, 28 October 2021 (UTC)
Install on cloudways
Hello. I am trying to transfer a mediawiki 1.35 that works fine locally on a cloudways server but I got only a blank page. I put the databa user in localsettings but .... It might be some issue with ownership of files. Let me know what I should check. Thanks Monstr6 (talk) 08:07, 28 October 2021 (UTC)
- If it's files, maybe start from scratch with a new installation of MW and extensions, and just copy across the files you need (LocalSettings.php, images etc). Jonathan3 (talk) 18:05, 28 October 2021 (UTC)
Account
How do I create an account? 1.43.90.14 (talk) 09:21, 28 October 2021 (UTC)
- Depends on that website. Please provide a link. Malyacko (talk) 11:10, 28 October 2021 (UTC)
Log in to lte-wiki
The following discussion is closed. Please do not modify it. Subsequent comments should be made on the appropriate discussion page. No further edits should be made to this discussion.
Unable to log into https://lte-wiki.sero.wh.rnd.internal.ericsson.com/wiki/Main_Page with newly reset password via MediaWiki page. Emomaty (talk) 10:13, 28 October 2021 (UTC)
- @Emomaty I'm afraid you need to tell Ericsson about that, not us... Malyacko (talk) 11:13, 28 October 2021 (UTC)
How to personalize the title style without html
Hello there,
First, sorry for my bad english, it's not my first language.
Second, I just created a local website with mediawiki and I've already searched help in the website but didn't find any answer (or didn't see it). Sorry in advance if I didn't post this subject at the right section or if there already is an answer somewhere. I hope you could help or redirect me.
My question : is it possible to personalize the frame title (=, ==, ===) without using html (h2, h3, h4) ?
For example, instead of using "<h2 style="color:red;">my title</h2>, I want to automatically do it with "== my title ==" and personalize somewhere (common.css ?) "==" in red.
Thank you. Veektaur (talk) 14:45, 28 October 2021 (UTC)
- Something like h2 {color: red} in MediaWiki:Common.css should do it. Jonathan3 (talk) 15:05, 28 October 2021 (UTC)
- Hi Jonathan3,
- Thank you for your reply but if you read my first message, it is precisely that I don't want to do. I want to personnalize directly the style of the mediawiki's tag =, == or ===.
- Is it possible ?
- Thanks Veektaur (talk) 12:37, 4 November 2021 (UTC)
- I think I answered your question :-) You wanted to avoid using HTML heading tags on the wiki page, wanted to continue using wikitext markup for headings, but wanted to style the headings using CSS.
- Maybe the missing information is that MediaWiki converts wikitext into HTML, so it's the equivalent HTML tags that you style in Common.css. Jonathan3 (talk) 12:49, 4 November 2021 (UTC)
- Oh sorry and thank you for the explanation ! I didn't understand what you suggested in the first place. :-S
- And yes, you're right, it works perfectly with h2 {color: red} =)
- But the text in the menu or my username took already the red color. Could you confirm me that it's not possible to avoid it ?
- Thank you Veektaur (talk) 11:34, 9 November 2021 (UTC)
How to receive POST data with PluggableAuth?
Hi, I need to send data from an external form with hidden fields sent via 'post' to authenticate with my extension that works in conjunction with PluggableAuth. How do I get these fields and use them in my extension? I've already tried sending the data to $_SESSION but it didn't work. BarbaRuivaRK (talk) 17:09, 28 October 2021 (UTC)
- @BarbaRuivaRK Welcome to Mediawiki. See this Extension:PluggableAuth and i have read this. Maybe you won't get a hidden field in it. ↠Tanbirzx (✉) 18:44, 31 October 2021 (UTC)
Error: Class 'Shellbox\Shellbox' not found
Hello folks, I have a MediaWiki site running on version 1.36. The site was working perfectly fine but just recently I updated some dependencies through composer and since then I'm seeing this error "Error: Class 'Shellbox\Shellbox' not found" on every namespace except Special, Watchlist and Recent changes. I tried to find out the cause but can't find anything helpful so can someone please help?
Thank you 123.136.152.220 (talk) 18:27, 28 October 2021 (UTC)
- Well shellbox is a dependency, so probably an issue with how you updated dependencies. Bawolff (talk) 00:38, 29 October 2021 (UTC)
- @Bawolff I was again trying to install/update dependencies using the command
composer install --no-devin my root directory but due to the conflict "wikimedia/shellbox 1.0.4 requires guzzlehttp/guzzle ~7.2.0 -> found guzzlehttp/guzzle[7.2.0] but it conflicts with your root composer.json require (7.2.0, ^6.0.0)." I'm not able to install or update. Any solution for that? 123.136.151.44 (talk) 03:11, 29 October 2021 (UTC) - What version of mediawiki, and is your package.json exactly as it is in the official version. Bawolff (talk) 04:04, 29 October 2021 (UTC)
- @Bawolff 1.36.2 and I made no changes to package.json so it's exactly as it is in the official version. 123.136.151.44 (talk) 13:39, 29 October 2021 (UTC)
- The error message is saying that composer.json is requiring guzzle ^6.0.0, however https://github.com/wikimedia/mediawiki/blob/1.36.2/composer.json doesn't include v6 of guzzle, so check your composer.json matches https://github.com/wikimedia/mediawiki/blob/1.36.2/composer.json Bawolff (talk) 18:02, 30 October 2021 (UTC)
In mediawiki page, how the drop dwon get populated having product versions ?
The following discussion is closed. Please do not modify it. Subsequent comments should be made on the appropriate discussion page. No further edits should be made to this discussion.
In our mediaWiki page, we have drop down option, where it contains the versions name [Which are same to the folder names created under a specification location [C:/programFiles/Navigation/mediawiki]].
We want to know how such folder names are visible under the drop down list of media wiki page ? AshwiniUpasani (talk) 08:38, 29 October 2021 (UTC)
- If you somehow defined a dropdown option, then please see "Post a new question" in the sidebar plus explain how you technically defined some dropdown option "in MediaWiki". Thanks. Malyacko (talk) 08:56, 29 October 2021 (UTC)
Drop down list for MediaWiki Page
In our mediawiki page, we have one drop down option called : Product Version. This look up field has been filled by the 'folder Names', created under the location 'C:/programfies/Navigtaion/mediawiki/'.
F.e
Folders created inside the Path 'C:/programfies/Navigtaion/mediawiki/'.
V7
V8
V9
V10
The same folder names are visibile inside the mediawiki page of 's drop down list.
We want to know the logic, how such foldername are populated inside the Drop down field of page ???? AshwiniUpasani (talk) 08:48, 29 October 2021 (UTC)
- If you somehow defined a dropdown option, then please see "Post a new question" in the sidebar plus explain how you technically defined some dropdown option "in MediaWiki". Thanks. Malyacko (talk) 08:56, 29 October 2021 (UTC)
- In our case, the drop down field is 'Product Version'. We want to load the product versions from one specific folder locations.
- F.e
- Navigation\mediawiki\
- in the above path, we have created the below folders.
- V1
- V2
- We want to load such folder names as DROP down field value. How can we populate such Drop dwon field? in which fie, we need to write the logic? AshwiniUpasani (talk) 08:26, 5 November 2021 (UTC)
How do I protect mediawiki from outside data harvisters?
Hello, I am very frustrated with a situation I can't seem to address. I have an active mediawiki website that I am the only active member. I have 2,377 pages and I am using version 1.31.0. PHP 7.0.15 / MySQL 5.6.47 (I am limited by my host; I can't find a working uprade that matches my available PHP version.)
My site shuts down constantly due to the massive downloading of content. I have viewed my log files only to see a list of everything from picture files to thumbnails being "sucked" off my site from some automated source by a laundry list of IP addresses. As I look at mediawiki, it appears to me that Special Pages: "Recent changes and logs" offers a roadmap to all the files bypassing the individual wiki pages and chewing up my hourly resources. My site is monetized through adsense which helps offset costs to operate but it's hard to generate revenue when the site goes "off line"
I don't think I can eliminate all of it, but is there SOMETHING I can do to limit or protect my data? I really don't know know where to go for help.
Thanks Pom Media (talk) 12:59, 29 October 2021 (UTC)
- Maybe add a crawl-delay to your .htaccess
- 20s seemed to work for me when I was being hit by fairly mainstream/reputable bots like Bing and Google. Jonathan3 (talk) 13:26, 29 October 2021 (UTC)
- Thank you. I will definitely try that... I am also looking into a VPS that would eliminate the query limits I have Pom Media (talk) 13:29, 29 October 2021 (UTC)
- Whats the actualcause of shutdown? If itscpu usage and not download, maybe manual:$wgUseFileCache can help Bawolff (talk) 15:59, 29 October 2021 (UTC)
Pages with iframe not accessable (blanco and cannot delete or change them)
I have some pages with iframe but by changing from PHP version these pages became blanco. I cannot delete them neither (only by accessing mysql).
Is there a way to detect these pages with iframes and to remove the iframes so I don't have to delete these pages and make them again ? Stevy7 (talk) 08:09, 31 October 2021 (UTC)
- OK, I solved the problem by deleting the page Widget:Iframe from my wiki.
- (it was a widget that allows you to embed any web page on your wiki page using an iframe tag.)
- Now I can watch the pages again and remove the iframes manually.
- Thanks anyway. Stevy7 (talk) 08:26, 31 October 2021 (UTC)
- Enabling php error reporting might help to tell you why its happening to prevent similar things from happening in the future.
- Although it sounds like your sorted, if something similar happens again, you can delete pags via the API Bawolff (talk) 09:08, 31 October 2021 (UTC)
Extend AuthManagerSpecialPage to allow additional field types
I'm upgrading an MW instance from 1.25.1 to 1.36.2 and the previous developer had implemented a custom registration form with some additional fields.
When attempting to implement this using an AuthenticationRequest, I am only limited to 'string', 'password', 'select', 'checkbox', 'multiselect', 'button', 'hidden', or 'null', which prevents me from replicating the radio list the current form has.
Without modifying the core file it self (includes/specialpage/AuthManagerSpecialPage.php) is there any other way to allow other field types? GRoberts84 (talk) 09:01, 31 October 2021 (UTC)