Project:Support desk/Flow/2021/08
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. |
How to embed Adsense in Timeless skin?
MediaWiki 1.35.2
All Adsense related documentation I found relates to Vector (and possibly Minerva), but I use Timeless.
How to embed Adsense in Timeless skin, most preferably, without customizing the skin at all and without installing any extensions? 2001:44C8:42C0:8656:8C62:AF52:F120:62F (talk) 02:55, 1 August 2021 (UTC)
- @Isarra I think there is no documentation on this so I cautiously ask here if there is anything you'd like to write here as an alternative for documentation. 2001:44C8:4005:4576:F855:34D5:ED56:DE5F (talk) 10:33, 3 August 2021 (UTC)
Problem after updating
[7b25cd5e532eebcd1959396c] /mw-config/index.php?page=ExistingWiki MWException: Error: invalid magic word 'ifanon'
Backtrace:
from /home/tagorguk/public_html/test.tag.wiki/includes/MagicWord.php(129)
#0 /home/tagorguk/public_html/test.tag.wiki/includes/MagicWordFactory.php(230): MagicWord->load(string)
#1 /home/tagorguk/public_html/test.tag.wiki/includes/parser/Parser.php(4932): MagicWordFactory->get(string)
#2 /home/tagorguk/public_html/test.tag.wiki/extensions/UserFunctions/UserFunctions.php(109): Parser->setFunctionHook(string, string, integer)
#3 /home/tagorguk/public_html/test.tag.wiki/includes/HookContainer/HookContainer.php(338): wfRegisterUserFunctions(Parser)
#4 /home/tagorguk/public_html/test.tag.wiki/includes/HookContainer/HookContainer.php(137): MediaWiki\HookContainer\HookContainer->callLegacyHook(string, array, array, array)
#5 /home/tagorguk/public_html/test.tag.wiki/includes/HookContainer/HookRunner.php(2961): MediaWiki\HookContainer\HookContainer->run(string, array)
#6 /home/tagorguk/public_html/test.tag.wiki/includes/parser/Parser.php(472): MediaWiki\HookContainer\HookRunner->onParserFirstCallInit(Parser)
#7 /home/tagorguk/public_html/test.tag.wiki/includes/parser/ParserFactory.php(174): Parser->__construct(MediaWiki\Config\ServiceOptions, MagicWordFactory, LanguageEn, ParserFactory, string, MediaWiki\SpecialPage\SpecialPageFactory, MediaWiki\Linker\LinkRendererFactory, NamespaceInfo, MediaWiki\Logger\LegacyLogger, MediaWiki\BadFileLookup, MediaWiki\Languages\LanguageConverterFactory, MediaWiki\HookContainer\HookContainer, MediaWiki\Tidy\RemexDriver, WANObjectCache, MediaWiki\User\DefaultOptionsLookup, MediaWiki\User\UserFactory)
#8 /home/tagorguk/public_html/test.tag.wiki/includes/ServiceWiring.php(976): ParserFactory->create()
#9 /home/tagorguk/public_html/test.tag.wiki/vendor/wikimedia/services/src/ServiceContainer.php(447): Wikimedia\Services\ServiceContainer::{closure}(MediaWiki\MediaWikiServices)
#10 /home/tagorguk/public_html/test.tag.wiki/vendor/wikimedia/services/src/ServiceContainer.php(416): Wikimedia\Services\ServiceContainer->createService(string)
#11 /home/tagorguk/public_html/test.tag.wiki/includes/MediaWikiServices.php(264): Wikimedia\Services\ServiceContainer->getService(string)
#12 /home/tagorguk/public_html/test.tag.wiki/includes/MediaWikiServices.php(1176): MediaWiki\MediaWikiServices->getService(string)
#13 /home/tagorguk/public_html/test.tag.wiki/includes/installer/Installer.php(740): MediaWiki\MediaWikiServices->getParser()
#14 /home/tagorguk/public_html/test.tag.wiki/includes/installer/WebInstaller.php(656): Installer->parse(string, boolean)
#15 /home/tagorguk/public_html/test.tag.wiki/includes/installer/WebInstallerExistingWiki.php(104): WebInstaller->getInfoBox(string)
#16 /home/tagorguk/public_html/test.tag.wiki/includes/installer/WebInstallerExistingWiki.php(92): WebInstallerExistingWiki->showKeyForm()
#17 /home/tagorguk/public_html/test.tag.wiki/includes/installer/WebInstaller.php(269): WebInstallerExistingWiki->execute()
#18 /home/tagorguk/public_html/test.tag.wiki/mw-config/index.php(82): WebInstaller->execute(array)
#19 /home/tagorguk/public_html/test.tag.wiki/mw-config/index.php(40): wfInstallerMain()
Tranclude content from my second 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.
I need transclude NUMBEROFPAGES from my second wiki to the first one. I want to use https://www.mediawiki.org/wiki/Manual:$wgEnableScaryTranscluding but it doesnt work. I have added $wgEnableScaryTranscluding = true; to LocalSettings. I have already create separate page and template with NUMBEROFPAGES (now amount is 40 204). You can see its here https://wedawit.pl/index.php?title=Wedawit/NOP or template https://wedawit.pl/index.php?title=Szablon:Wedawit/NOP and wrote some variants in my destination page on firs wiki like: {{wedawit:Template:Wedawit/NOP}}<br> {{wedawit:Szablon:Wedawit/NOP}}<br> {{wedawit:Główna:Wedawit/NOP}}<br> {{wedawit:Wedawit/NOP}}<br> {{https://wedawit.pl/index.php?title=Wedawit/NOP%7D%7D<br> {{raw:wedawit:Szablon:Wedawit/NOP}}<br> {{raw:wedawit:Wedawit/NOP}}<br> but noone works. Tamaszek (talk) 07:44, 1 August 2021 (UTC)
How to use mathscr font in Mediawiki
I set up MediaWiki in Ubuntu under Windows 10 WSL2 environment with the *math* extension up and running. Everything seems fine but I cannot get the latex format "\mathscr" working.
Software setup
Ubuntu (Ubuntu 20.04.2 LTS) under Windows 10 (build 19043.1110) WSL2
Appache (2.4.41-4ubuntu3.3)
MySQL (mysql-8.0)
MediaWiki (1:1.31.7-1)
Configuration
I installed the math extension according to the instruction [1] on the MediaWiki official page, by downloading the package associated with the latest stable version [2] v1.36.
The following is the related modification in the LocalSettings.php file
wfLoadExtension( 'Math' ); // Set MathML as default rendering option $wgDefaultUserOptions['math'] = 'mathml'; $wgMathFullRestbaseURL = 'https://en.wikipedia.org/api/rest_'; $wgMathMathMLUrl = 'https://mathoid-beta.wmflabs.org/'; // Rendering options $wgMathValidModes[] = array('png', 'source', 'mathml', 'latexml'); $wgMathDirectory = "/var/lib/mediawiki/images/math" ; $wgMathPath = "/var/lib/mediawiki/images/math" ; $wgTmpDirectory = "/var/lib/mediawiki/images/tmp" ; $wgUploadPath = "/var/lib/mediawiki/images" ; $wgUploadDirectory = "/var/lib/mediawiki/images"; $wgShowExceptionDetails = true ;
Problem
The Mediawiki works fine using latex highlights "<math></math>", as it properly renders most latex equations. However, among others, it does not recognize the command "\mathscr", such as "<math>\delta\mathscr{F}</math>". Instead, it echoes
Failed to parse (unknown function "\mathscr"): {\displaystyle \delta\mathscr{F}}
I understand that `\mathscr` belongs to the latex package `mathrsfs`, so I got the impression that it is not included by default in the standard math extension? But the format does work on other public MediaWiki servers such as Wikipedia [3] (where the equations are rendered!) and miraheze [4].
Example
This is an example showing that latex works partially as I explained above. (source latex code<math>\delta S=\delta\int dt</math><math>\mathscr{L}</math>)
- Failed to parse (syntax error): {\displaystyle \mathscr{L}}
Gamebm (talk) 02:50, 2 August 2021 (UTC)
[1]: https://www.mediawiki.org/wiki/Extension:Math [2]: https://www.mediawiki.org/wiki/Special:ExtensionDistributor/Math [3]: https://en.wikipedia.org/wiki/Main_Page [4]: https://miraheze.org/ Gamebm (talk) 02:50, 2 August 2021 (UTC)
- Mediawiki math (ams math) doesn't support the mathrsfs package that mathscr is part of. —TheDJ (Not WMF) (talk • contribs) 10:07, 3 August 2021 (UTC)
- Thanks for the comment. So how do wikipedia and mirahaze have mathscr working properly? Gamebm (talk) 14:01, 4 August 2021 (UTC)
- I'm not sure where you have seen it on Wikipedia, but it's not in use. See Search results. I don't know about miraheze, maybe ask their helpdesk. —TheDJ (Not WMF) (talk • contribs) 10:10, 5 August 2021 (UTC)
- Thanks, you are absolutely right, wikipedia does not support mathscr, I will try to ask the folks at miraheze (https://www.miraheze.org/). Gamebm (talk) 10:49, 10 August 2021 (UTC)
Running MediaWiki inside Drupal
Can I do it easily somehow? MediaWiki would be my content engine ; I would use MediaWiki in the most minimal way possible, just to format articles, but all the rest: Skins (themes), extensions (modules) Taxonomy, Menus, theming, all would be done in Drupal.
There is a Drupal MediaWiki module but it is way outdated and development ceased around 2014, since then Drupal 8 and 9 came out, and Drupal 10 is getting nearer by the day. 2001:44C8:4110:9182:1415:C438:3CF3:CDE8 (talk) 06:54, 2 August 2021 (UTC)
- Which underlying problem would be solved by "running MediaWiki inside Drupal"? Malyacko (talk) 07:31, 2 August 2021 (UTC)
- Drupal content types help to better organize types of content them mere categorization as in MediaWiki; making a "MediaWiki" content type would help designate content better
- Various theming problems; Drupal is modular in anything, you could easily inject blocks to any defined region (header, sidebar, central content, footer, etc.) via a comfortable GUI; Layout modules such as Layout Builder / Gutenberg and alike
- More problems could be solved. 2001:44C8:4005:4576:143A:E49E:A0C3:1B69 (talk) 17:51, 2 August 2021 (UTC)
- @Malyacko just an example for a question I asked about two days ago:
- Project:Support desk/Flow/2021/08#h-How_to_embed_Adsense_in_Timeless_skin?-2021-08-01T02:55:00.000Z
- If MediaWiki was my content engine for Drupal, I would have solved that in a few minutes without doing any coding.
- The fact that there isn't just one formal skin for MediaWiki is the main source of problems for the community, I believe; just a small talk between me and you. 2001:44C8:4005:4576:F855:34D5:ED56:DE5F (talk) 01:14, 3 August 2021 (UTC)
- There is one main formal skin: Vector. And Minerva for mobile. Malyacko (talk) 07:12, 3 August 2021 (UTC)
Error in update from 1.31.2 to 1.35.3
Hello
OS: Ubuntu 18.04.5 LTS
Webserver: Apache 2.4.29
PHP: 7.4.24
DB: SQLite
I tried to update MediaWiki (using a fresh installation, copying all files and db and then running update.php. This fails with
---
MediaWiki 1.35.3 Updater
Your composer.lock file is up to date with current dependencies!
Going to run database updates for wiki?hdb
Using SQLite file: '/var/www/wiki/wiki-db.sqlite'
Depending on the size of your database this may take a while!
Abort with control-c in the next five seconds (skip this countdown with --quick) ... 0
...have ss_active_users field in site_stats table.
...ss_active_users user count set...
...have ipb_allow_usertalk field in ipblocks table.
...have initial indexes
...change_tag table already exists.
...user_properties table already exists.
...log_search table already exists.
...have log_user_text field in logging table.
...l10n_cache table already exists.
...ct_rc_id key doesn't exist.
...have rd_interwiki field in redirect table.
...fulltext search table appears to be in order.
...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.
...module_deps table already exists.
...ar_page_revid key doesn't exist.
...skipping index ar_revid because index ar_revid already set on archive table.
...index user_email already set on user table.
...uploadstash table already exists.
...user_former_groups table already exists.
...batch conversion of user_options: nothing to migrate. done.
...user table does not contain user_options field.
...have rev_sha1 field in revision table.
...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.
...index page_user_timestamp already set on revision 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 rev_content_format field in revision table.
...have rev_content_model field in revision table.
...have ar_content_format field in archive table.
...have ar_content_model field in archive table.
...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.
...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.
...index log_user_text_type_time already set on logging table.
...index log_user_text_time already set on logging 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.
...hitcounter doesn't exist.
...site_stats table does not contain ss_total_views field.
...page table does not contain page_counter field.
...fa_deleted_reason in table filearchive already modified by patch patch-editsummary-length.sql.
...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.
...have ct_id field in change_tag table.
...have el_index_60 field in externallinks table.
...have ug_expiry field in user_groups table.
...index img_user_timestamp already set on image table.
...img_media_type in table image already modified by patch patch-add-3d.sql.
...ip_changes table already exists.
...skipping: index cl_from doesn't exist.
...skipping: index tl_from doesn't exist.
...skipping: index pl_from doesn't exist.
...skipping: index old_id doesn't exist.
Renaming index il_from into PRIMARY to table imagelinks ...Wikimedia\Rdbms\DBQueryError from line 1699 of /var/www/wiki/includes/libs/rdbms/database/Database.php: Error 1: table imagelinks_tmp already exists
Function: Wikimedia\Rdbms\Database::sourceFile( /var/www/wiki/maintenance/sqlite/archives/patch-imagelinks-fix-pk.sql )
Query: CREATE TABLE imagelinks_tmp (
il_from INTEGER NOT NULL default 0,
il_from_namespace INTEGER NOT NULL default 0,
il_to TEXT NOT NULL default '',
PRIMARY KEY (il_from,il_to)
)
#0 /var/www/wiki/includes/libs/rdbms/database/Database.php(1683): Wikimedia\Rdbms\Database->getQueryException()
#1 /var/www/wiki/includes/libs/rdbms/database/Database.php(1658): Wikimedia\Rdbms\Database->getQueryExceptionAndLog()
#2 /var/www/wiki/includes/libs/rdbms/database/Database.php(1227): Wikimedia\Rdbms\Database->reportQueryError()
#3 /var/www/wiki/includes/libs/rdbms/database/Database.php(5073): Wikimedia\Rdbms\Database->query()
#4 /var/www/wiki/includes/libs/rdbms/database/Database.php(5008): Wikimedia\Rdbms\Database->sourceStream()
#5 /var/www/wiki/includes/libs/rdbms/database/DBConnRef.php(68): Wikimedia\Rdbms\Database->sourceFile()
#6 /var/www/wiki/includes/libs/rdbms/database/MaintainableDBConnRef.php(35): Wikimedia\Rdbms\DBConnRef->__call()
#7 /var/www/wiki/includes/installer/DatabaseUpdater.php(769): Wikimedia\Rdbms\MaintainableDBConnRef->sourceFile()
#8 /var/www/wiki/includes/installer/DatabaseUpdater.php(1017): DatabaseUpdater->applyPatch()
#9 /var/www/wiki/includes/installer/DatabaseUpdater.php(554): DatabaseUpdater->renameIndex()
#10 /var/www/wiki/includes/installer/DatabaseUpdater.php(517): DatabaseUpdater->runUpdates()
#11 /var/www/wiki/maintenance/update.php(181): DatabaseUpdater->doUpdates()
#12 /var/www/wiki/maintenance/doMaintenance.php(107): UpdateMediaWiki->execute()
#13 /var/www/wiki/maintenance/update.php(253): require_once('/var/www/adminw...')
#14 {main}
---
Once launching the ui, i get
---
[05fc85919abdd48938eac84c] 2021-08-02 08:41:48: Fatal exception of type Wikimedia\Rdbms\DBQueryError
---
What can i do? 149.217.48.114 (talk) 08:48, 2 August 2021 (UTC)
- https://www.mediawiki.org/wiki/Manual:How_to_debug Malyacko (talk) 10:43, 2 August 2021 (UTC)
- Apparently the sqlite migration (from the 1.28 times) is broken patch-imagelinks-fix-pk.sql I would suggest studying the migration and see what it's intent is, opening the sqlite database with an sqlite editor and completing the migrations by hand that way.
- Unfortunately, what you posted is the error of the 2nd run of the migration and it doesn't report what the migration failed on specifically on the first run. Would be interesting to figure out however as migrations are of course not supposed to fail.
- Did you previously run 1.28 or below ? maybe it already failed the previous time you executed a migration and you didn't notice... or maybe the migration test of this 1.28 migration is broken because of a newer change in 1.35.3 which accidentally triggered the old migration script, even if you don't need it.... —TheDJ (Not WMF) (talk • contribs) 09:55, 3 August 2021 (UTC)
- Hi
- We ran 1.31.2.
- I tried to upgrade to 1.32.0 in 2019 but this also failed (same error).
- How can i proceed now? Where can i see what migrations have to be done in which order (so that i can try in an sqlite editor). Anyway this should work and not get stuck in the middle. 149.217.48.74 (talk) 12:54, 4 August 2021 (UTC)
Hello i have a problem with the display of my wiki page
Hello i have a problem with the display of my wiki page i recently installed a new php version and since then the wiki has not been displayed properly Please help mfg dennis 2003:E5:6F0E:8F00:C85D:438D:BB54:5A85 (talk) 10:44, 2 August 2021 (UTC)
- URL:wiki.senect.de/ 2003:E5:6F0E:8F00:C85D:438D:BB54:5A85 (talk) 10:47, 2 August 2021 (UTC)
- See "Before you post" in the sidebar; not enough information. Please check your webserver error log; this does not look like a problem in MediaWiki itself. Malyacko (talk) 11:39, 2 August 2021 (UTC)
Why won't the Copyright icon appear on the page?
I've set the following variables in the LocalSettings.php file:
$wgRightsPage
$wgRightsUrl
$wgRightsText
$wgRightsIcon
The first three variables work as they're supposed to, but the icon won't appear on the page. I have two images in the /etc/var/mediawiki/images/
: one for logo and the other one for Copyright icon. The logo shows up just fine. What am I missing here? MrJConstantine (talk) 11:24, 2 August 2021 (UTC)
- What exactly you put for the `$wgRightsIcon`? – Ammarpad (talk) 17:19, 2 August 2021 (UTC)
- @Ammarpad
$wgRightsIcon = "$wgResourceBasePath/images/copyrighticon.png;
, where$wgResourceBasePath = $wgScriptPath;
and$wgScriptPath = "";
- There's also logo:
$wgLogos = [ '1x' => "$wgResourceBasePath/images/logo.png" ];
- and it shows up just fine.Though I don't understand why we have that
'1x' =>
here. What does it do? MrJConstantine (talk) 08:25, 3 August 2021 (UTC) - I solved this problem. It was about permissions. MrJConstantine (talk) 10:59, 10 August 2021 (UTC)
main url is has a forbidden error
RESOLVED | |
Duplicate posting of Project:Support desk/Flow/2021/08#h-Hello_i_have_a_problem_with_the_display_of_my_wiki_page-2021-08-02T10:44:00.000Z |
The following discussion is closed. Please do not modify it. Subsequent comments should be made on the appropriate discussion page. No further edits should be made to this discussion.
Hello my main url has a forbidden error how can i fix this? Url: wiki.senect.de
wikiversion: 1.27.4 phpversion: 7.2.26 2003:E5:6F0E:8F00:C85D:438D:BB54:5A85 (talk) 12:18, 2 August 2021 (UTC)
- Please do not post duplicates. See Project:Support desk/Flow/2021/08#h-Hello_i_have_a_problem_with_the_display_of_my_wiki_page-2021-08-02T10:44:00.000Z Malyacko (talk) 13:22, 2 August 2021 (UTC)
Is there a way to test LocalSettings.php before upgrade
I have some quite old LocalSettings.php (back from 1.19), and I want to test the syntax before upgrading to 1.31. Is there a way to test them, or I just have to do blind test (works or crash) every single lines of my LocalSettings.php ? 147.171.161.3 (talk) 12:46, 2 August 2021 (UTC)
VisualEditor cannot save: Error contacting the Parsoid/RESTBase server (HTTP 415)
On MediaWiki 1.35.3, I can load VisualEditor and make all the changes I want, but when I click the final "Save changes," I receive an error dialog: Error contacting the Parsoid/RESTBase server (HTTP 415). This problem began when I upgraded from MW 1.35.2 to 1.35.3.
Here are the relevant lines from the Apache access.log file. The server hostname and IP address have been anonymized. The IP address 108.26.197.171 is my client computer.
Click "Edit" to edit the article in VisualEditor:
11.22.33.44 - - [02/Aug/2021:11:51:06 -0400] "GET /w/rest.php/wiki.example.com/v3/page/html/MRI_scanner_safety/5839?redirect=false&stash=true HTTP/1.1" 301 769 "-" "VisualEditor-MediaWiki/1.35.3"
11.22.33.44 - - [02/Aug/2021:11:51:06 -0400] "GET /w/rest.php/wiki.example.com/v3/page/html/MRI_scanner_safety/5839?redirect=false&stash=true HTTP/1.1" 200 14918 "-" "VisualEditor-MediaWiki/1.35.3"
108.26.197.171 - - [02/Aug/2021:11:51:06 -0400] "GET /w/api.php?action=visualeditor&format=json&paction=parse&page=MRI_scanner_safety&uselang=en&formatversion=2&oldid=5839 HTTP/1.1" 200 11210 "https://wiki.example.com/wiki/MRI_scanner_safety?veaction=edit" "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/92.0.4515.107 Safari/537.36"
I make an edit, click "Save changes...", and see the "Save your changes" dialog:
11.22.33.44 - - [02/Aug/2021:11:51:20 -0400] "POST /w/rest.php/wiki.example.com/v3/transform/html/to/wikitext/MRI_scanner_safety/5839 HTTP/1.1" 301 747 "-" "VisualEditor-MediaWiki/1.35.3"
11.22.33.44 - - [02/Aug/2021:11:51:20 -0400] "POST /w/rest.php/wiki.example.com/v3/transform/html/to/wikitext/MRI_scanner_safety/5839 HTTP/1.1" 415 5719 "-" "VisualEditor-MediaWiki/1.35.3"
108.26.197.171 - - [02/Aug/2021:11:51:20 -0400] "POST /w/api.php HTTP/1.1" 200 1460 "https://wiki.example.com/wiki/MRI_scanner_safety?veaction=edit" "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/92.0.4515.107 Safari/537.36"
I click the "Save changes" button on the dialog:
11.22.33.44 - - [02/Aug/2021:11:51:29 -0400] "POST /w/rest.php/wiki.example.com/v3/transform/html/to/wikitext/MRI_scanner_safety/5839 HTTP/1.1" 301 747 "-" "VisualEditor-MediaWiki/1.35.3"
11.22.33.44 - - [02/Aug/2021:11:51:29 -0400] "POST /w/rest.php/wiki.example.com/v3/transform/html/to/wikitext/MRI_scanner_safety/5839 HTTP/1.1" 415 5719 "-" "VisualEditor-MediaWiki/1.35.3"
108.26.197.171 - - [02/Aug/2021:11:51:29 -0400] "POST /w/api.php HTTP/1.1" 200 1491 "https://wiki.example.com/wiki/MRI_scanner_safety?veaction=edit" "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/92.0.4515.107 Safari/537.36"
The error dialog appears:
Something went wrong
Error contacting the Parsoid/RESTBase server (HTTP 415)
[Dismiss]
Thanks for any help. Maiden taiwan (talk) 16:02, 2 August 2021 (UTC)
- In case it's relevant, the wiki is an https site. Maiden taiwan (talk) 16:03, 2 August 2021 (UTC)
- It appears I am being bitten by this bug which prevents VisualEditor from saving articles when anonymous users are forbidden edit permission (
$wgGroupPermissions['*']['edit'] = false
). None of the suggested workarounds work for me. Maiden taiwan (talk) 14:52, 4 August 2021 (UTC)
Setting up version 1.36.1 with default vector skin will not render
Product Version
MediaWiki 1.31.1
PHP 7.3.20 (cgi-fcgi)
MySQL 5.7.34-log
ICU 64.2
URL - its a government site so not posting the url on a public site.
We are having issue updating Media Wiki from version 1.31.1 to 1.35 or 1.36. We created an empty site; just installed the Media wiki files, created a new localsetting.php file using the default vector skin. The page does not come up. is has weird characters displaying - random letters, special characters, square boxes, black diamonds with question marks in them etc.. With the site not coming up even with the default skin, we cannot add our custom skin, which works great on version 1.31.1 since it is based on the vector skin. We reverted back to version 1.31.1 Phillipsdr (talk) 18:27, 2 August 2021 (UTC)
- Try disabling Manual:$wgDisableOutputCompression or use a browser that is not Chrome. See also Project:Support desk/Flow/2020/12#h-Wiki_displaying_gibberish_MediaWiki_1.35.1-2020-12-23T04:40:00.000Z and Project:Support desk/Flow/2020/12#h-MediaWiki_version_1.35.1_garbled_text_encoding_problem_(MySQL_database_incorrect-2020-12-20T01:29:00.000Z. Malyacko (talk) 07:11, 3 August 2021 (UTC)
- Thanks Malyacko. In the other threads you mentioned disabling the compression didn't always work. One that seemed to work for most was modifying the includes/MediaWiki.php file and commenting out this line:
- $response->header( 'Content-Encoding: identity' );
- We will try this approach and let you know if this fixed our issues. They noted that this brought their sites up in all browsers except Firefox. Phillipsdr (talk) 14:28, 3 August 2021 (UTC)
Can I have 2 pages with the same name within one namespace but different categories?
I have 2 categories: [[Category:Object1]]
, [[Category:Object2]]
where I list methods for different objects. So there may be a situation when I have the same method for both objects which means there will be 2 pages with the same name but relating to different categories. I use input box
extension to create pages. I created a page named Select and placed [[Category:Object1]]
inside it. Then I created the second page with the same name Select and placed [[Category:Object2]]
inside. What it did it took the page Select out from the first category and placed into the second one. When I go to the CategoryTree now I can see that there's no page Select in the first category, but only in the second one. What have I done wrong here? How can I have 2 pages with the same name within one namespace but different categories? Do I have to create different namespaces for each object?
Thank you. MrJConstantine (talk) 10:43, 3 August 2021 (UTC)
Can I change the standard category list layout?
Here's the category list I have: catlist .
What can be done so the category letter and its contents won't separate like it is shown on the screenshot I've provided?
Thank you. MrJConstantine (talk) 12:36, 3 August 2021 (UTC)
- Contribute a patch that fixes phab:T104541 :) Malyacko (talk) 13:09, 3 August 2021 (UTC)
- @Malyacko tl;dr :) Is there a simple way to download this patch without installing any software? :) MrJConstantine (talk) 13:21, 3 August 2021 (UTC)
- I wrote that you could contribute a patch. The linked patch is abandoned, see review comments in Gerrit Malyacko (talk) 14:26, 3 August 2021 (UTC)
- @Malyacko I don't think I'll be able to do that, because I'm a newbie here :( I don't even have a developer account here and I've never used Gerrit, only Git. MrJConstantine (talk) 14:36, 3 August 2021 (UTC)
- No problem. Note that anyone can create a Developer account. Malyacko (talk) 15:37, 3 August 2021 (UTC)
Linking a translated page
I recently became an auto-confirmed user, but I still don't have permission to link a translated page to a main page. The page does, however, say that auto-confirmed users can perform this activity. I was auto-confirmed about 20 minutes ago, so perhaps it takes some time? I would like to know more about this/when I'll have permission. I get this message: "This page is currently create-protected and can be created only be established registered users." Pboboc (talk) 14:08, 3 August 2021 (UTC)
How can I hide the namespace prefix on the category list page?
I'm using the CategoryTree extension and I can hide the namespace prefix in there by specifying hideprefix="always"
in the
<categorytree mode="pages" namespaces="Main Collections" hideprefix="always">Collections</categorytree>
.
The problem is that when I go to the category list page the namespace prefix is not hidden in there. How can I make it hidden as well?
Thank you. MrJConstantine (talk) 14:30, 3 August 2021 (UTC)
Problems with Maps
Hi!
I have installed Extension:Kartographer to my wiki and after inserting map I see empty map box.
I see the following error via browser and don't know how to fix the problem. Any ideas?
Here is the error: Failed to load resource: the server responded with a status of 403 () Fokebox (talk) 14:41, 3 August 2021 (UTC)
- See the second sentence on Extension:Kartographer. You need to set $wgKartographerMapServer to a server which allows you to pull map tiles. Malyacko (talk) 15:39, 3 August 2021 (UTC)
- And which one can be used? I have following settings:But I still have empty mapbox Fokebox (talk) 15:48, 3 August 2021 (UTC)
wfLoadExtension( 'Kartographer' ); $wgKartographerMapServer = "https://maps.wikimedia.org"; $wgKartographerDfltStyle = "osm-intl";
- Any that allows you to pull tiles, but not a Wikimedia one Malyacko (talk) 18:39, 3 August 2021 (UTC)
- And what $wgKartographerMapServer shall I use to make the extension working? Fokebox (talk) 20:32, 3 August 2021 (UTC)
- See for example https://wiki.openstreetmap.org/wiki/Tile_servers Malyacko (talk) 06:30, 4 August 2021 (UTC)
How to make a border in a table only along the top of a row?
I'm trying to make a border along the top of two rows in my table, and only along the top. It has three sets of data in it, so the border is intended to separate them. I'm using this code:
|- style="border: 2px solid;"
|rowspan=3| All-Terrain
|rowspan=3| ATS || 1 || L || +60 || -60 || 8 || +52 ||+52 || -58
|-
but it's trying to make a border on all sides of the cells in that row. That's not what I want, but I can't figure out how to fix it:
RedKnight7 (talk) 15:56, 3 August 2021 (UTC)
- Instead of "border:" try "border-top:". 205.131.184.5 (talk) 16:02, 5 August 2021 (UTC)
- Thanks, that worked great!
- Now if only there was a code that meant "only do the left border on a particular column, all the way down the table". Like between Simplified and Actual in my table.
- I can figure out how to do it individually for each cell, but it'd be a lot easier to make one statement for to do it all the way down the table. RedKnight7 (talk) 19:19, 5 August 2021 (UTC)
In need of help! Setting up first WikiMedia site and getting error PHP/intl extension error.
The following discussion is closed. Please do not modify it. Subsequent comments should be made on the appropriate discussion page. No further edits should be made to this discussion.
MediaWiki 1.36 internal error
Installing some PHP extensions is required.
Required components
You are missing a required extension to PHP that MediaWiki requires to run. Please install:
- intl (more information)
Above is the error I recieved when I went to set up my site. I am completely unsure of what to do! Checking the php files revealed that the 'intl' extension is indeed present, but regardless it is saying it's lacking. Guidance as to aid in ammending this error would be greatly appreciated! EyeofColeth (talk) 20:29, 3 August 2021 (UTC)
I submitted an account request
I submitted an account request on July 30. It's now Aug 3. Is the system operating & functional? Could someone look into this please? username was 'seamus' 2605:A601:A80A:B900:0:0:0:11E9 (talk) 21:33, 3 August 2021 (UTC)
- mediawiki.org is operating and functional but we don't know if you're talking about mediawiki.org. Malyacko (talk) 06:27, 4 August 2021 (UTC)
- If you mean en wikipedia ACC process, you have to ask over there. We are separate-ish.
- See w:WP:Teahouse Bawolff (talk) 06:25, 5 August 2021 (UTC)
Error 1045
I was setting up my website and was close to done, but I got this error. Please help me.
Setting environment for MariaDB 10.6 (x64)
C:\Windows\system32> mysql -u root -p FunmoringWiki
ERROR 1045 (28000): Access denied for user 'root'@'localhost' (using password: YES)
Funmoring46 (talk) 02:53, 4 August 2021 (UTC)
- You need to fix database access permissions; this is not a problem in MediaWiki itself. See also Manual:MySQL. Malyacko (talk) 06:26, 4 August 2021 (UTC)
- then who can help me Funmoring46 (talk) 20:49, 15 November 2021 (UTC)
not logging in
I made a Mediawiki account to get edit access for the Mediawiki-powered wiki closinglogos.com, but it says incorrect password even though I'm inputting the right password. Scratcho99999 (talk) 05:04, 4 August 2021 (UTC)
- Okay, but what do you expect us to do? We are not closinglogos.com and we cannot fix your login. Malyacko (talk) 06:24, 4 August 2021 (UTC)
- Asking for other Mediawiki-powered wikis in general, not just closinglogos Scratcho99999 (talk) 02:31, 2 September 2021 (UTC)
How do I search in all the namespaces on my wiki without typing prefixes?
I've created a couple of namespaces and in order to find let's say METHOD in the namespace DICTIONARIES I literally have to type METHOD:Dictionaries in the search bar. This is very inconvenient. Is there a way to search in all the namespaces without having to specify the prefixes? MrJConstantine (talk) 09:04, 4 August 2021 (UTC)
- Yes, you can use $wgNamespacesToBeSearchedDefault. Taavi (talk!) 11:18, 4 August 2021 (UTC)
- @Majavah Great! Thank you! MrJConstantine (talk) 11:22, 4 August 2021 (UTC)
How can I solve the following problem in the CategoryTree extension?
Let's say I have a category tree like this:
Object1
Properties
o1.p1
o1.p2
Methods
o1.m1
o1.m2
o1.m3
Object2
Properties
o2.p1
o2.p2
Methods
o2.m1
o2.m2
There may be some properties/methods intersections between different objects (i.e. different objects may have the same properties/methods). That means that I can't have 2 or more pages with the same name within Main namespace. I also have Properties/Methods pages for all the objects, so again I can't have them within one namespace. My solution to this is to create a namespace for each object. The reason why I don't like creating so many namespaces is because their prefixes are then show up on the category list page and in order to search an item I have to type its namespace in the search bar which is very inconvenient.
I wonder if there's a better solution?
I would really appreciate the help. MrJConstantine (talk) 10:11, 4 August 2021 (UTC)
Is there a way to clear the search history?
I had created a couple of pages in the Main namespace.
Then I decided to add those pages to the namespace I created.
Can I somehow clear the search history or something, so those old pages won't show up? MrJConstantine (talk) 11:50, 4 August 2021 (UTC)
- Where to see some search history somewhere? Please always include steps to reproduce. Malyacko (talk) 15:27, 4 August 2021 (UTC)
- @Malyacko
- Please always include steps to reproduce. - Understood.
- Actually I've managed to figure this one. The problem was that when I moved the pages the old ones was still there with their redirects. When I deleted those old pages they wouldn't show up while searching anymore. MrJConstantine (talk) 16:12, 4 August 2021 (UTC)
What is the proper way to clear the tables?
If I truncate all the table in MysQL will my MediaWiki instance still work?
What is the proper way to clear all the history, logs, old(deleted) pages etc. without having to create a new database and reinstalling MediaWiki?
Are there any php scripts in order to clear the tables in the database?
Thank you. MrJConstantine (talk) 11:57, 4 August 2021 (UTC)
- Truncating random tables has a high liklihood of breaking your wiki. Bawolff (talk) 06:22, 5 August 2021 (UTC)
- @Bawolff
- That's why I asked:
- What is the proper way to clear all the history, logs, old(deleted) pages etc. without having to create a new database and reinstalling MediaWiki?
- Are there any php scripts in order to clear the tables in the database? MrJConstantine (talk) 08:53, 5 August 2021 (UTC)
- There's various scripts in the maintenance directory of your wiki that can delete various things, which may or may not meet your needs. Bawolff (talk) 08:59, 5 August 2021 (UTC)
How i can disable a print and a copy option?
Hello.
How i can disable a print and a copy option of wiki pages? wikimedia 1.36.1; php 7.4.21. Thank you. 185.212.140.201 (talk) 12:45, 4 August 2021 (UTC)
Unable to run dumpBackup.php
Hello
Version: 1.31.2
OS: Ubuntu 18.04.5 LTS
Webserver: Apache 2.4.29
PHP: 7.4.24
DB: SQLite 3.22.0
I tried to use dumpBackup.php to create an export of all my wiki pages. However this fails
---
root@wikis-admin:/var/www/wiki/maintenance# php dumpBackup.php --full --quiet > dump.xml
[0054a8c06aacd3e540842ecc] [no req] Wikimedia\Rdbms\DBConnectionError from line 1004 of /var/www/wiki/includes/libs/rdbms/database/Database.php: Cannot access the database: Cannot return last error, no db connection
Backtrace:
#0 /var/www/wiki/includes/libs/rdbms/loadbalancer/LoadBalancer.php(1134): Wikimedia\Rdbms\Database->reportConnectionError()
#1 /var/www/wiki/includes/libs/rdbms/loadbalancer/LoadBalancer.php(749): Wikimedia\Rdbms\LoadBalancer->reportConnectionError()
#2 /var/www/wiki/includes/GlobalFunctions.php(2801): Wikimedia\Rdbms\LoadBalancer->getConnection()
#3 /var/www/wiki/includes/cache/localisation/LCStoreDB.php(45): wfGetDB()
#4 /var/www/wiki/includes/cache/localisation/LocalisationCache.php(412): LCStoreDB->get()
#5 /var/www/wiki/includes/cache/localisation/LocalisationCache.php(458): LocalisationCache->isExpired()
#6 /var/www/wiki/includes/cache/localisation/LocalisationCache.php(334): LocalisationCache->initLanguage()
#7 /var/www/wiki/includes/cache/localisation/LocalisationCache.php(271): LocalisationCache->loadItem()
#8 /var/www/wiki/languages/Language.php(4553): LocalisationCache->getItem()
#9 /var/www/wiki/languages/Language.php(231): Language::getFallbacksFor()
#10 /var/www/wiki/languages/Language.php(193): Language::newFromCode()
#11 /var/www/wiki/includes/Setup.php(802): Language::factory()
#12 /var/www/wiki/maintenance/doMaintenance.php(81): require_once(string)
#13 /var/www/wiki/maintenance/dumpBackup.php(137): require_once(string)
#14 {main}
---
What am i doing wrong?
Best,
Thomas 149.217.48.74 (talk) 12:48, 4 August 2021 (UTC)
Underscore won't show up in the CategoryTree
I have a page named _Default, so the name starts with an underscore.
I my LocalSettings.php
file I have set the following:
$wgRestrictDisplayTitle = false;
Then I placed {{DISPLAYTITLE:_Default}}
on my page and now the title is _Default like it has to be.
The problem is that when I go to the CategoryTree the page looks like Default in there.
Is it possible to allow underscores in the CategoryTree?
Thank you. MrJConstantine (talk) 14:21, 4 August 2021 (UTC)
- Categorytree does not respect display titles.
- Underscores are automatically converted to spaces, and spaces are removed from the beginning of the page name. Bawolff (talk) 06:21, 5 August 2021 (UTC)
- @Bawolff And there's no fix to that? MrJConstantine (talk) 08:52, 5 August 2021 (UTC)
- you would have to modify the CategoryTree extension.
- I tried to fix a related thing once upon a time (phab:T19212), but my patch ended up not being accepted. Bawolff (talk) 09:01, 5 August 2021 (UTC)
Rename the "Discussion" tab
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.
I want the "Discussion" tab to read "Talk", but I cannot find a way to do so. Aknell4 (talk) 15:00, 4 August 2021 (UTC)
- Create the page MediaWiki:nstab-talk with the new name Malyacko (talk) 15:24, 4 August 2021 (UTC)
- That worked. Thanks! Is there a way to extend that to user pages and others like that? Aknell4 (talk) 15:43, 4 August 2021 (UTC)
- You can append uselang=qqx as a URL parameter to see the internal names of strings Malyacko (talk) 05:54, 5 August 2021 (UTC)
I dont know the email of my account - I am locked out of my mediawiki
- I don't know the email of my account - I am locked out of my MediaWiki
- I have full administrative privileges and am hosting the mediawiki, what should I do?
- Thanks a million in advance!
- Manual:Resetting passwords is not helpful.... Onlyforwikiapps (talk) 19:16, 4 August 2021 (UTC)
- If you have shell access (as you host it), Manual:Resetting passwords#Use the changePassword.php maintenance script should work? Why is not helpful? Malyacko (talk) 05:53, 5 August 2021 (UTC)
- I don't know how to run maintenance scripts. Is there another option?
- ===Use the changePassword.php maintenance script===
- The changePassword.php maintenance script allows system administrators to change the password for an account. For complete instructions see changePassword.php. If you are already familiar with maintenance scripts, run the following command from
maintenance
subdirectory: # set the password for username 'example' to 'newpassword'
php changePassword.php --user=example --password=newpassword
Onlyforwikiapps (talk) 20:05, 6 August 2021 (UTC)- instruction on maintenance scripts:
- Manual:Maintenance scripts#Running the scripts Onlyforwikiapps (talk) 20:13, 6 August 2021 (UTC)
- Instructions with NameCheap Onlyforwikiapps (talk) 18:07, 7 August 2021 (UTC)
Password Reset
I no longer have access to the email account that I created my account with and I have forgotten my password. 2601:2C6:4581:6FD0:3131:F802:2BF2:C45F (talk) 20:11, 4 August 2021 (UTC)
Someone to update my 2.0 to be php compatible
My host tells me if I don't update the forum they will stop hosting it. Last time I tried to update it broke my "Crip" template. Crip is deceased and I don't want to redo the template. I'm wondering if anyone knows how to update this and keep the same format? 2603:8080:FA08:7E4A:D42C:C135:CD2:4F03 (talk) 21:34, 4 August 2021 (UTC)
Can't edit a saved drawing
RESOLVED | |
Off-topic. We are not OpenOffice but MediaWiki. Wrong forum. |
The following discussion is closed. Please do not modify it. Subsequent comments should be made on the appropriate discussion page. No further edits should be made to this discussion.
I have recently downloaded OpenOffice Version 4.1.10 and started using Draw. I began and saved a drawing. But now when I open the drawing, I cannot edit the objects that I put there last time it was open. The objects are just stuck there and I cannot do anything to them. How do I edit the objects without having to start over again? Kkeyes05 (talk) 01:31, 5 August 2021 (UTC)
Inquiry: Cloud-based Mediawiki
Is there a Mediawiki-based app allowing users to edit personal encyclopedias which are stored in the cloud? (Essentially a Wikipedia meets Notion) Sadness55 (talk) 07:30, 5 August 2021 (UTC)
CategoryTree won't update if I'm logged in
There's something really strange and buggy going on with CategoryTree updates.
Sometimes it does not want to update until I clear the cache in my browser, sometimes clearing the cache does not do anything.
Now I've stumbled upon another weird thing. I added a couple of pages in my custom namespace and they won't show up in the tree unless I log out. When I stay logged out the pages are there, but when I log in again they disappear.
Please, help me to solve this annoying problem. MrJConstantine (talk) 12:54, 5 August 2021 (UTC)
- This is ridiculous. What I just did is: I deleted the contents of the subcategory page (which is [[Category:UpperLevelCategory]]), saved the page. Then I pasted the same contents and saved the page again. And now it works. This is very strange and I see no logic in this. I would like to solve this problem so my tree would update like it's supposed to. MrJConstantine (talk) 16:06, 5 August 2021 (UTC)
- I dont think category tree supports automatic cache purging. You have to do ?action=purge to the end of the url of the page using the categorytree in order to force an update or wait up to 6 hours.
- This can be adjusted with $wgCategoryTreeDisableCache Bawolff (talk) 05:51, 6 August 2021 (UTC)
- @Bawolff I tried setting
$wgCategoryTreeDisableCache
. Did not help. - You have to do ?action=purge to the end of the url of the page using the categorytree in order to force an update or wait up to 6 hours. - Is this literally how it's supposed to be? So inconvenient.
- I've just tried adding ?action=purge after I added a new page but it did not update member counts. In order to update member counts I have to delete the contents of the page, save it, paste the same contents and save it again. Only this updates member counts. MrJConstantine (talk) 08:02, 6 August 2021 (UTC)
- Do you mean on a category page? The purge thing is only for the categorytree tag when used on other pages not the category themselves.
- If the article counts on category pages are not updating properly (especially after a purge of the category page), could indicate something wrong with manual:Job queue. You could try increasing $wgJobRunRate to 3 to see if that helps. The alternative is some sort of error is happening when updating the category counts, in which case that might show up as an error in the mediawiki debug log (see manual:how to debug) although the debug log can be hard to interpret if you are not familar. Bawolff (talk) 06:50, 7 August 2021 (UTC)
- @Bawolff
- Do you mean on a category page? - I mean the category tree itself. In order to update member counts of the tree I have to go to the category page where member count won't update, delete its contents, paste the contents again, save and only then I can see member count of this particular category on the category tree updated. MrJConstantine (talk) 10:32, 9 August 2021 (UTC)
- If on a category page, that really shouldnt do anything a ?action=purge doesn't
- I imagine its browser cache, which doesnt clear just for a category count update (assuming you dont have file cache or cdn/varnish cache enabled which are default off) Bawolff (talk) 20:25, 10 August 2021 (UTC)
- @Bawolff
- assuming you dont have file cache or cdn/varnish cache enabled which are default off - How can I enable it? MrJConstantine (talk) 08:32, 11 August 2021 (UTC)
populateCategory.php is missing
There's no populateCategory.php file in /var/www/mediawiki/maintenance/.
Why? MrJConstantine (talk) 14:58, 5 August 2021 (UTC)
- Why should it? Malyacko (talk) 15:05, 5 August 2021 (UTC)
- @Malyacko Because it's listed in the documentation .
- I'm trying to solve this problem.
- Here the populateCategory.php is mentioned:
- ===Member counts are wrong, grey arrows ► are shown instead of ►===
- Since MediaWiki 1.13, CategoryTree can show the number of members of a category, and can show a grey arrow ► for tree nodes that do not have any children based on that number. This information is based on the new category table. However, populating that table with the current values does not always work when upgrading to 1.13. In that case, run the
populateCategory.php
maintenance script, if necessary with the--force
option. - and I wanted to try running the script but ended up not being able to find it.
- I can't use the CategoryTree extension if it doesn't update, show the wrong member counts etc. Seems nobody can help me to solve this. MrJConstantine (talk) 15:15, 5 August 2021 (UTC)
- The link goes to https://phabricator.wikimedia.org/source/mediawiki/browse/master/maintenance/populateCategory.php. That links to https://phabricator.wikimedia.org/rMW0dacf7d68d8d517cada731375f9612d8e060db58. That links to https://phabricator.wikimedia.org/T272199 for reasons.
- Looks like the documentation is outdated. :( Malyacko (talk) 16:34, 5 August 2021 (UTC)
- @Malyacko So, at the moment this problem with the tree itself and its member counts not being updated properly has no other solution than those ridiculous methods I described here, right? MrJConstantine (talk) 08:14, 6 August 2021 (UTC)
- No idea, that's a different topic handled in Project:Support desk/Flow/2021/08#h-CategoryTree_won't_update_if_I'm_logged_in-2021-08-05T12:54:00.000Z and not here Malyacko (talk) 15:55, 6 August 2021 (UTC)
MySQL backups with --no-tablespaces or add PROCESS privilege to database user
Are database backups with --no-tablespaces sufficient for MediaWiki or is it necessary to add the PROCESS privilege to the database user? Buster2223 (talk) 17:53, 5 August 2021 (UTC)
- Mediawiki doesnt use the tablespace feature of mysql, so you shouldnt need to back it up.
- However, remember, an untested backup is a worthless back up, so you should always test restoring from backup to make sure you got everything. Bawolff (talk) 07:03, 7 August 2021 (UTC)
- I successfully tested a backup using --no-tablespaces but I was worried I might be missing something. Thank you for the reply. Buster2223 (talk) 18:42, 9 August 2021 (UTC)
Is it possible to change the color of the pages links to red in MediaWiki?
I've created a structure with all the pages I'm going to fill in later. Is it possible to change the color of the links to those pages to red so I could differentiate those pages from the ones I've already modified? For the structure I use CategoryTree extension. MrJConstantine (talk) 09:11, 6 August 2021 (UTC)
- What's the criteria for pages whose links should have a different color? Malyacko (talk) 20:41, 6 August 2021 (UTC)
- @Malyacko Pages that contain only one line of code (which is the parent category) have to be of color red.
- Is it possible to change the color of the specified internal links? The point is that I want all the pages that do not have any content yet to be of color red so I won't confuse them with those that already have content. MrJConstantine (talk) 10:27, 9 August 2021 (UTC)
- Why would some piece of software which is merely rendering a list of links know or care about each link target's content length? Malyacko (talk) 11:45, 11 August 2021 (UTC)
- @Malyacko
- I don't know why. I asked if that's technically possible. MrJConstantine (talk) 08:24, 12 August 2021 (UTC)
Make a border or align vertically down one column in a wiki table with just one code?
I would like to make a single vertical border in a big table. Think of a table with a lot of rows and columns that is to be divided roughly in half with the left being "Before" and the right being "After". Something like that.
I see how to make a border on the left (or right) of an individual cell, but that's a hassle when there might be dozens of rows.
Isn't there a way to make a single statement that affects the entire column, like how you can say "border:top" for a row (at its row callout)? I don't see a way to do a similar thing for a column.
It also would be great if, similarly, I could align everything in one column a particular way, different from the alignment set for the overall table. Using just one code, instead of editing every single cell involved.
Thanks if you can help with either of these! RedKnight7 (talk) 13:54, 6 August 2021 (UTC)
- I think colgroup/col tags (with style attribute) are what you want https://developer.mozilla.org/en-US/docs/Web/HTML/Element/colgroup however i dont think mediawiki allows that tag. Bawolff (talk) 06:59, 7 August 2021 (UTC)
- Hi, thanks ... now that I had a term to search on, I could find info on colgroup. But it also brought up discussions about how wiki table markup doesn't have anything like that html element, sigh. Anyway, now I know... so, thanks. RedKnight7 (talk) 11:41, 8 August 2021 (UTC)
Internal error
Hi. I was trying to create Module. It does not matter what i write in that page, i keep getting error, it can be even empty. I use Ksweb on Android, which is like xampp. What should i do?
Error:
[YQ2Ro38AAAEAAH@5uZYAAAAE] /index.php?title=Module:Item&action=submit MWException: The lua binary (/storage/emulated/0/htdocs/extensions/Scribunto/includes/engines/LuaStandalone/binaries/lua5_1_5_linux_32_generic/lua) is not executable.
Backtrace:
from /storage/emulated/0/htdocs/extensions/Scribunto/includes/engines/LuaStandalone/LuaStandaloneInterpreter.php(96)
- 0 /storage/emulated/0/htdocs/extensions/Scribunto/includes/engines/LuaStandalone/LuaStandaloneEngine.php(99): Scribunto_LuaStandaloneInterpreter->__construct(Scribunto_LuaStandaloneEngine, array)
- 1 /storage/emulated/0/htdocs/extensions/Scribunto/includes/engines/LuaCommon/LuaEngine.php(125): Scribunto_LuaStandaloneEngine->newInterpreter()
- 2 /storage/emulated/0/htdocs/extensions/Scribunto/includes/engines/LuaStandalone/LuaStandaloneEngine.php(17): Scribunto_LuaEngine->load()
- 3 /storage/emulated/0/htdocs/extensions/Scribunto/includes/engines/LuaCommon/LuaEngine.php(228): Scribunto_LuaStandaloneEngine->load()
- 4 /storage/emulated/0/htdocs/extensions/Scribunto/includes/engines/LuaCommon/LuaModule.php(38): Scribunto_LuaEngine->getInterpreter()
- 5 /storage/emulated/0/htdocs/extensions/Scribunto/includes/engines/LuaCommon/LuaModule.php(25): Scribunto_LuaModule->getInitChunk()
- 6 /storage/emulated/0/htdocs/extensions/Scribunto/includes/common/ScribuntoEngineBase.php(193): Scribunto_LuaModule->validate()
- 7 /storage/emulated/0/htdocs/extensions/Scribunto/includes/common/ScribuntoContent.php(35): ScribuntoEngineBase->validate(string, string)
- 8 /storage/emulated/0/htdocs/extensions/Scribunto/includes/common/Hooks.php(366): ScribuntoContent->validate(Title)
- 9 /storage/emulated/0/htdocs/includes/HookContainer/HookContainer.php(338): ScribuntoHooks::validateScript(DerivativeContext, ScribuntoContent, Status, string, User, boolean)
- 10 /storage/emulated/0/htdocs/includes/HookContainer/HookContainer.php(137): MediaWiki\HookContainer\HookContainer->callLegacyHook(string, array, array, array)
- 11 /storage/emulated/0/htdocs/includes/HookContainer/HookRunner.php(1559): MediaWiki\HookContainer\HookContainer->run(string, array)
- 12 /storage/emulated/0/htdocs/includes/editpage/Constraint/EditFilterMergedContentHookConstraint.php(90): MediaWiki\HookContainer\HookRunner->onEditFilterMergedContent(DerivativeContext, ScribuntoContent, Status, string, User, boolean)
- 13 /storage/emulated/0/htdocs/includes/editpage/Constraint/EditConstraintRunner.php(88): MediaWiki\EditPage\Constraint\EditFilterMergedContentHookConstraint->checkConstraint()
- 14 /storage/emulated/0/htdocs/includes/EditPage.php(2093): MediaWiki\EditPage\Constraint\EditConstraintRunner->checkConstraints()
- 15 /storage/emulated/0/htdocs/includes/EditPage.php(1694): EditPage->internalAttemptSave(NULL, boolean)
- 16 /storage/emulated/0/htdocs/includes/EditPage.php(669): EditPage->attemptSave(NULL)
- 17 /storage/emulated/0/htdocs/includes/actions/EditAction.php(71): EditPage->edit()
- 18 /storage/emulated/0/htdocs/includes/actions/SubmitAction.php(38): EditAction->show()
- 19 /storage/emulated/0/htdocs/includes/MediaWiki.php(531): SubmitAction->show()
- 20 /storage/emulated/0/htdocs/includes/MediaWiki.php(315): MediaWiki->performAction(Article, Title)
- 21 /storage/emulated/0/htdocs/includes/MediaWiki.php(913): MediaWiki->performRequest()
- 22 /storage/emulated/0/htdocs/includes/MediaWiki.php(546): MediaWiki->main()
- 23 /storage/emulated/0/htdocs/index.php(53): MediaWiki->run()
- 24 /storage/emulated/0/htdocs/index.php(46): wfIndexMain()
- 25 {main} 188.69.215.2 (talk) 20:00, 6 August 2021 (UTC)
- It says that the lua binary is not executable, so you'll need to make it executable. See for example Project:Support desk/Flow/2016/11#h-The_lua_binary_lua_is_not_executable-2016-11-23T09:32:00.000Z Malyacko (talk) 20:40, 6 August 2021 (UTC)
Lua error when importing Module:Documentation
RESOLVED | |
I had to put the code in Extension:JsonConfig/Tabular#Configuration into my LocalSettings.php and add
$wgJsonConfigEnableLuaSupport = true;
|
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
I've imported every necessary Module to get Template:Documentation to work, but when I go to the Module:Documentation page, the documentation spits out an error:
Lua error in Module:TNT at line 159: Missing JsonConfig extension; Cannot load https://commons.wikimedia.org/wiki/Data:I18n/Uses TemplateStyles.tab.
I installed Extension:JsonConfig and it's loaded in LocalSettings.php Aknell4 (talk) 21:16, 6 August 2021 (UTC)
- Are you sure JsonConfig is loaded?, is it listed on Special:Version? – Ammarpad (talk) 04:15, 7 August 2021 (UTC)
- It is listed on Special:Version. Aknell4 (talk) 14:13, 7 August 2021 (UTC)
How to make a MediaWiki website logoless?
Say I don't want any logo at all:
- Not the current non default logo
- not the default logo / fallback logo
Just a non-logo website,
What should I change in LocalSettings.php? 2001:44C8:448C:6007:803A:7B9:A9C4:92B5 (talk) 23:42, 6 August 2021 (UTC)
- You could make an image of all transparent pixels. Then change $wgLogo to point to it. Buster2223 (talk) 02:25, 7 August 2021 (UTC)
- Is there a way to not do that either? Using some "null" like value? 2001:44C8:448C:6007:803A:7B9:A9C4:92B5 (talk) 02:29, 7 August 2021 (UTC)
- Good question. Buster2223 (talk) 03:47, 7 August 2021 (UTC)
- You could use custom css to adjust, or use a different skin.
- You could set the logo to
data:text/plain,
Bawolff (talk) 06:54, 7 August 2021 (UTC) - @Bawolff I use Timeless.
- Until you replied I assumed that logos are a must in any wiki (regardless of skins).
- Is
data:text/plain,
a "null" value for LocalSettings.php which Ammarpad clued there isn't? 2001:44C8:448C:6007:803A:7B9:A9C4:92B5 (talk) 07:03, 7 August 2021 (UTC) - Its a url that is not an image, so an image wont be displayed (its null on the browser side, not the LocalSettings.php side. Ammarpad is still technically correct). Its similar to a 1 transparent pixel image. Bawolff (talk) 07:28, 7 August 2021 (UTC)
SQL SAVEPOINT error when deleting image media
Hi folks! I did a cursory search; haven't found my exact problem, and I consulted two experts before they punted back here. I hope this can immediately ring a bell for someone.
I have a Bitnami MediaWiki AMI running as an EC2 instance. It has been upgraded once, which was a more or less manual process of copying.
MediaWiki | 1.35.1 |
PHP | 7.3.26 (fpm-fcgi) |
MariaDB | 10.3.27-MariaDB |
ICU | 63.1 |
When deleting a media file such as an image, I am treated to this error and backtrace:
[37b91b56477e570d7a334733] /index.php?title=File:800px-Antoon_Claeissens_-_Virgin_and_Child_with_St_Anne_-_WGA04957.jpg&action=delete Wikimedia\Rdbms\DBQueryError from line 1699 of /opt/bitnami/mediawiki/includes/libs/rdbms/database/Database.php: A database query error has occurred. Did you forget to run your application's database schema updater after upgrading?
Error 1305: SAVEPOINT wikimedia_rdbms_atomic1 does not exist (127.0.0.1)
Function: LocalFileDeleteBatch::doDBInserts
Query: RELEASE SAVEPOINT `wikimedia_rdbms_atomic1`
Backtrace:
#0 /opt/bitnami/mediawiki/includes/libs/rdbms/database/Database.php(1683): Wikimedia\Rdbms\Database->getQueryException(string, integer, string, string)
#1 /opt/bitnami/mediawiki/includes/libs/rdbms/database/Database.php(1658): Wikimedia\Rdbms\Database->getQueryExceptionAndLog(string, integer, string, string)
#2 /opt/bitnami/mediawiki/includes/libs/rdbms/database/Database.php(1227): Wikimedia\Rdbms\Database->reportQueryError(string, integer, string, string, boolean)
#3 /opt/bitnami/mediawiki/includes/libs/rdbms/database/Database.php(4269): Wikimedia\Rdbms\Database->query(string, string, integer)
#4 /opt/bitnami/mediawiki/includes/libs/rdbms/database/Database.php(4360): Wikimedia\Rdbms\Database->doReleaseSavepoint(string, string)
#5 /opt/bitnami/mediawiki/includes/libs/rdbms/database/Database.php(3573): Wikimedia\Rdbms\Database->endAtomic(string)
#6 /opt/bitnami/mediawiki/includes/libs/rdbms/database/Database.php(3488): Wikimedia\Rdbms\Database->doInsertSelectGeneric(string, array, array, array, string, array, array, array)
#7 /opt/bitnami/mediawiki/includes/libs/rdbms/database/DBConnRef.php(68): Wikimedia\Rdbms\Database->insertSelect(string, array, array, array, string, array, array, array)
#8 /opt/bitnami/mediawiki/includes/libs/rdbms/database/DBConnRef.php(527): Wikimedia\Rdbms\DBConnRef->__call(string, array)
#9 /opt/bitnami/mediawiki/includes/filerepo/file/LocalFileDeleteBatch.php(273): Wikimedia\Rdbms\DBConnRef->insertSelect(string, array, array, array, string, array, array, array)
#10 /opt/bitnami/mediawiki/includes/filerepo/file/LocalFileDeleteBatch.php(394): LocalFileDeleteBatch->doDBInserts()
#11 /opt/bitnami/mediawiki/includes/filerepo/file/LocalFile.php(2093): LocalFileDeleteBatch->execute()
#12 /opt/bitnami/mediawiki/includes/FileDeleteForm.php(246): LocalFile->deleteFile(string, User, boolean)
#13 /opt/bitnami/mediawiki/includes/FileDeleteForm.php(149): FileDeleteForm::doDelete(Title, LocalFile, string, string, boolean, User)
#14 /opt/bitnami/mediawiki/includes/page/ImagePage.php(1020): FileDeleteForm->execute()
#15 /opt/bitnami/mediawiki/includes/actions/DeleteAction.php(41): ImagePage->delete()
#16 /opt/bitnami/mediawiki/includes/MediaWiki.php(527): DeleteAction->show()
#17 /opt/bitnami/mediawiki/includes/MediaWiki.php(313): MediaWiki->performAction(ImagePage, Title)
#18 /opt/bitnami/mediawiki/includes/MediaWiki.php(940): MediaWiki->performRequest()
#19 /opt/bitnami/mediawiki/includes/MediaWiki.php(543): MediaWiki->main()
#20 /opt/bitnami/mediawiki/index.php(53): MediaWiki->run()
#21 /opt/bitnami/mediawiki/index.php(46): wfIndexMain()
#22 {main}
So... we are kind of stumped as to the genesis of this. Bitnami ships tightly integrated stacks and I really didn't change any php code or database configuration that could trigger this, as far as I can tell.
We discovered through troubleshooting that if a SQL "START TRANSACTION;" is not issued before creating a SAVEPOINT, the RELEASE will fail with this error.
Deletion of files works fine. I have not encountered this error in other operations, including: block user, create user, create article, etc.
I hope that I have included enough helpful information herein. Please do not hesitate to request more! Thanks! Elizium23 (talk) 23:30, 7 August 2021 (UTC)
- Oh yeah, where it asks about "Did you update your database schema?" Yes, I have run update.php according to these instructions, several times over. It doesn't seem to have any problems. Elizium23 (talk) 23:32, 7 August 2021 (UTC)
- Seems similar to https://phabricator.wikimedia.org/T236211 but no one seems to have pinpointed the exact problem there either... —TheDJ (Not WMF) (talk • contribs) 08:19, 9 August 2021 (UTC)
Unable to upload file
The following discussion is closed. Please do not modify it. Subsequent comments should be made on the appropriate discussion page. No further edits should be made to this discussion.
Hello Team,
We are not able to upload file in media.
Please guide how we can fix this?
Here is error:
Could not store upload in the stash (UploadStashFileException): "Could not create directory "mwstore://local-backend/local-temp/9/92".". Akki30 (talk) 11:06, 9 August 2021 (UTC)
- Please see "Before you post" in the sidebar, which links to https://www.mediawiki.org/wiki/Manual:Common_errors_and_symptoms#Error:_Could_not_open_lock_file_for_%22mwstore://local-backend/local-public/./../image.png Malyacko (talk) 13:09, 9 August 2021 (UTC)
- Getting error: Error creating thumbnail: /bin/bash: /usr/bin/convert Akki30 (talk) 11:51, 10 August 2021 (UTC)
- There are can be several reasons for that type of error:
- Hi,
- Both things is rights, permission to folder is proper given.
- Please check.
- $wgEnableUploads = true;
- $wgUseImageMagick = true;
- $wgImageMagickConvertCommand = "/usr/bin/convert"; Akki30 (talk) 07:50, 13 August 2021 (UTC)
- I have other path to ImageMagick, my hosting provider helped me to set it:
- $wgImageMagickConvertCommand = '/usr/local/bin/convert';
- And please check once again that folder on your server has all rights: Set the permission of the image folder to 777 Fokebox (talk) 09:10, 13 August 2021 (UTC)
- This folder(convert) is not exit in my bin folder , I mean in "/usr/bin", there is no folder with name of "convert".
- Can I manually create "convert" folder ??? Akki30 (talk) 11:45, 16 August 2021 (UTC)
- convert should not be a folder, but an executable file. In fact, it's the executable file that performs the thumbnailing. ImageMagick must be installed on the server. If you're not sure if it's installed or not, ask your hosting provider. Ciencia Al Poder (talk) 16:28, 16 August 2021 (UTC)
- How can we check, if it's installed or not.. as I am the only person handling this?
- Is there any CMD to check? If not installed then how to Install it. Please clear this doubt. Akki30 (talk) 06:24, 17 August 2021 (UTC)
- You can ask your hosting provider to help. Fokebox (talk) 10:45, 17 August 2021 (UTC)
- This is not solution , As I am simply asking how can I check, and install?
- Please guide properly. Akki30 (talk) 12:17, 20 August 2021 (UTC)
- imagemagick is generally only installed if the file /usr/local/bin/convert or the file /usr/bin/convert exists. if neither of those files exist most likely ImageMagick is not installed. See your distribution details about how to install that.
- Note that this forum is for MediaWiki support, it is not here to teach general Linux and server maintenance basics. —TheDJ (Not WMF) (talk • contribs) 15:09, 20 August 2021 (UTC)
- I have two instance , and in both we have folder usr/bin.
- In one instance image is showing and in another not showing.
- And Imagemagic is automatic given by wiki when we installed , I think so.
- Any suggestion on this??
- Note: We are not expecting anything general Linux and server maintenance basics.
- We just want to know why it is not working. Akki30 (talk) 09:22, 23 August 2021 (UTC)
- MediaWiki uses thumbnails for displaying images that are embedded at lower dimensions than the originals. Those thumbnails are generated using ImageMagick (usually located at /usr/bin/convert or /usr/local/bin/convert).
- If you can install software on the server, just install ImageMagick. If you can't, ask your hoster to install it for you, or find a hosting that has ImageMagick installed, or host it on a vps where you can install things.
- > And Imagemagic is automatic given by wiki when we installed , I think so.
- No, the installer suggests the default location for ImageMagick. It doesn't provide the ImageMagick software. You must ensure it's installed and at the suggested location, or otherwise fill the path with the correct location. Ciencia Al Poder (talk) 14:41, 23 August 2021 (UTC)
- > You must ensure it's installed and at the suggested location, or otherwise fill the path with the correct location.
- fill the path with the correct location? where we can fill the path?
- Error creating thumbnail: Unable to save thumbnail to destination Akki30 (talk) 10:03, 24 August 2021 (UTC)
- > where we can fill the path?
- Set $wgImageMagickConvertCommand accordingly in your LocalSettings.php. Ciencia Al Poder (talk) 15:27, 24 August 2021 (UTC)
- > Set $wgImageMagickConvertCommand accordingly in your LocalSettings.php.
- which -a convert has given me below path.
- /usr/bin/which: no convert in (/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin:/root/bin)
- Also, $wgUseImageMagick = false; (It should be true or false) Akki30 (talk) 05:31, 25 August 2021 (UTC)
- "/usr/bin/which: no convert in " right. so like we said, imagemagick is simply NOT installed on that server. install it. —TheDJ (Not WMF) (talk • contribs) 10:14, 25 August 2021 (UTC)
- We fixed this issue by Installing Imagemagick and some changes in Apache End.
- Thanks for the support. Akki30 (talk) 05:25, 27 August 2021 (UTC)
PluggableAuthLogin MWException: Could not bind to LDAP: (-1) Can't contact LDAP server
yep, another question about ldap :'(
RockyLinux: 8.4
PHP: 7.4.22
http: 2.4.48
mysql: 8.0.21
MediaWiki: 1.36.1
I try to connect to my MS Active Directory but doesn't works. I try to two differents active directory servers but nope.
ldap.json file
{
"zuljintest": {
"connection": {
"server": "172.20.81.2", -> yep, ping works
"port": "636",
"user": "CN=ConsultaAD,OU=Informatica,OU=ZULJIN Stgo,OU=Usuarios CDE,DC=zuljintest,DC=local",
"pass": "a_very_nice_password",
"enctype": "ssl",
"options": {
"LDAP_OPT_DEREF": 1
},
"basedn": "dc=zuljintest,dc=local",
"userbasedn": "OU=Usuarios CDE,DC=zuljintest,DC=local",
"groupbasedn": "OU=Usuarios CDE,DC=zuljintest,DC=local",
"searchattribute": "samaccountname",
"usernameattribute": "samaccountname",
"realnameattribute": "cn",
"emailattribute": "mail",
"grouprequest": "MediaWiki\\Extension\\LDAPProvider\\UserGroupsRequest\\UserMemberOf::factory",
"presearchusernamemodifiers": ["spacestounderscores", "lowercase"]
},
"userinfo": [],
"authorization": [],
"groupsync": {
"mapping": {
"operaciones": "CN=operaciones,OU=Usuarios CDE,DC=zuljintest,DC=local"
}
}
}
}
and my LocalSettings.php file
# Configuracion para Active Directory
// Safe IP or not (for bypassing external login via AD)
$safeIPs = array('127.0.0.1','localhost');
$ipsVars = array('HTTP_X_FORWARDED_FOR','HTTP_X_REAL_IP','REMOTE_ADDR');
foreach ($ipsVars as $ipsVar) {
if (isset($_SERVER[$ipsVar]) && mb_strlen($_SERVER[$ipsVar]) > 3 ) { $wikiRequestIP = $_SERVER[$ipsVar]; break; }
}
$wikiRequestSafe = (isset($wikiRequestIP) && ( in_array($wikiRequestIP,$safeIPs) ));
// Create Wiki-Group 'operaciones' from default user group
$wgGroupPermissions['operaciones'] = $wgGroupPermissions['user'];
// Private Wiki. External LDAP login. Default NS requires login.
$wgEmailConfirmToEdit = false;
$wgGroupPermissions['*']['edit'] = false;
$wgGroupPermissions['*']['read'] = false;
$wgGroupPermissions['*']['createaccount'] = false;
$wgGroupPermissions['fabrica']['createaccount'] = false;
$wgGroupPermissions['*']['autocreateaccount'] = true;
$wgBlockDisablesLogin = true;
// Load LDAP Config from JSON
$ldapJsonFile = "$IP/ldap.json";
$ldapConfig = false;
if (is_file($ldapJsonFile) && is_dir("$IP/extensions/LDAPProvider")) {
$testJson = @json_decode(file_get_contents($ldapJsonFile),true);
if (is_array($testJson)) {
$ldapConfig = true;
} else {
error_log("Found invalid JSON in file: $IP/ldap.json");
}
}
// Activate Extension
if ( $ldapConfig ) {
wfLoadExtension( 'PluggableAuth' );
wfLoadExtension( 'LDAPProvider' );
wfLoadExtension( 'LDAPAuthentication2' );
wfLoadExtension( 'LDAPAuthorization' );
wfLoadExtension( 'LDAPUserInfo' );
wfLoadExtension( 'LDAPGroups' );
$LDAPProviderDomainConfigs = $ldapJsonFile;
$wgPluggableAuth_ButtonLabel = "Log In";
if ($wikiRequestSafe) { $LDAPAuthentication2AllowLocalLogin = true; }
}
When i try any user/password, i got this error
[YRFQF0t4lpoEcuZ9JUzsvgAAAIc] /w/index.php?title=Especial:PluggableAuthLogin MWException: Could not bind to LDAP: (-1) Can't contact LDAP server
and my debug says
[objectcache] MainWANObjectCache using store EmptyBagOStuff
Start request GET /w/index.php?title=Especial:PluggableAuthLogin
IP: my_mediawikiserver_ip
HTTP HEADERS:
UPGRADE-INSECURE-REQUESTS: 1
COOKIE: mw_installer_session=mru4ktlr8or0k09pbmsa3srdam; my_wikiUserName=Admin; my_wiki_session=hfe54fmt0sikjt63fipdv360k3o6dmcs; UseDC=master; UseCDNCache=false
CONNECTION: keep-alive
REFERER: http://my_mediawikiserver_ip/w/index.php?title=Especial:Entrar&returnto=P%C3%A1gina+principal&returntoquery=
ACCEPT-ENCODING: gzip, deflate
ACCEPT-LANGUAGE: es-ES,es;q=0.8,en-US;q=0.5,en;q=0.3
ACCEPT: text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,*/*;q=0.8
USER-AGENT: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:90.0) Gecko/20100101 Firefox/90.0
HOST: 172.20.70.44
(end headers)
[session] SessionManager using store SqlBagOStuff
[localisation] LocalisationCache using store LCStoreDB
[PluggableAuth] In execute()
[PluggableAuth] Getting PluggableAuth singleton
[PluggableAuth] Class name: MediaWiki\Extension\LDAPAuthentication2\PluggableAuth
[session] SessionBackend "hfe54fmt0sikjt63fipdv360k3o6dmcs" data dirty due to dirty(): MediaWiki\Extension\LDAPAuthentication2\PluggableAuth->checkLDAPLogin/MediaWiki\Auth\AuthManager->setAuthenticationSessionData/MediaWiki\Session\Session->setSecret/MediaWiki\Session\Session->set/MediaWiki\Session\SessionBackend->dirty
[LDAP] ldap_connect( $uri = 'ldaps://172.20.81.2:636' );
[LDAP] # __METHOD__ returns a link id
[MediaWiki\Extension\LDAPProvider\Client] Setting LDAP_OPT_PROTOCOL_VERSION to 3
[LDAP] ldap_set_option( $linkID, $option = 17, $newval = 3 );
[LDAP] # returns true
[MediaWiki\Extension\LDAPProvider\Client] Setting LDAP_OPT_REFERRALS to 0
[LDAP] ldap_set_option( $linkID, $option = 8, $newval = 0 );
[LDAP] # returns true
[MediaWiki\Extension\LDAPProvider\Client] Setting LDAP_OPT_DEREF to 1
[LDAP] ldap_set_option( $linkID, $option = 2, $newval = 1 );
[LDAP] # returns true
[LDAP] ldap_bind( $linkID, $bindRDN = 'CN=ConsultaAD,OU=Informatica,OU=CDE Stgo,OU=Usuarios CDE,DC=cdetest,DC=local', $bindPassword = 'XXXX' );
[LDAP] # returns false
[LDAP] ldap_error( $linkID );
[LDAP] # returns Can't contact LDAP server
[LDAP] ldap_errno( $linkID );
[LDAP] # returns -1
[DBQuery] MWExceptionHandler::rollbackMasterChangesAndLog [0s] localhost: ROLLBACK
[DBQuery] Wikimedia\Rdbms\Database::ping [0s] localhost: SELECT 1 AS ping
[exception] [YRFQF0t4lpoEcuZ9JUzsvgAAAIc] /w/index.php?title=Especial:PluggableAuthLogin MWException: Could not bind to LDAP: (-1) Can't contact LDAP server
ShowUserInfo.php says same error
php /var/www/html/w/extensions/LDAPProvider/maintenance/ShowUserInfo.php --domain zuljintest --username ConsultaAD
MWException from line 194 of /var/www/html/w/extensions/LDAPProvider/src/Client.php: Could not bind to LDAP: (-1) Can't contact LDAP server
#0 /var/www/html/w/extensions/LDAPProvider/src/Client.php(117): MediaWiki\Extension\LDAPProvider\Client->establishBinding()
#1 /var/www/html/w/extensions/LDAPProvider/src/Client.php(255): MediaWiki\Extension\LDAPProvider\Client->init()
#2 /var/www/html/w/extensions/LDAPProvider/maintenance/ShowUserInfo.php(49): MediaWiki\Extension\LDAPProvider\Client->getUserInfo()
#3 /var/www/html/w/maintenance/doMaintenance.php(112): MediaWiki\Extension\LDAPProvider\Maintenance\ShowUserInfo->execute()
#4 /var/www/html/w/extensions/LDAPProvider/maintenance/ShowUserInfo.php(72): require_once('/var/www/html/w...')
#5 {main}
Help me MediaWIki-Wan you're my only hope Zuljin667 (talk) 16:31, 9 August 2021 (UTC)
"Upload File" Has Disappeared
RESOLVED | |
I copied over the entire MediaWiki:Common.css page from this site to mine when I added Template:Navbox. It turns out I only needed part of it, specifically .hlist down to .infobox, which seems to put my wiki back to normal. |
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 forget what exactly I changed when it happened, but for some reason the "Upload File" link is no longer shown in the left menu. It hasn't been much of a problem, since I can still go to "Special Pages" and just click on the "Upload File" link there, but I would like to have it back. Is there anything I can do to solve this? Ragster2448 (talk) 16:53, 9 August 2021 (UTC)
- please try to go to MediaWiki:Sidebar and get back the previous version of the page Fokebox (talk) 20:45, 9 August 2021 (UTC)
- I don't have any previous versions of that page, this is what it looks like currently:
- navigation
- mainpage|mainpage-description
- recentchanges-url|recentchanges
- randompage-url|randompage
- helppage|help-mediawiki
- SEARCH
- TOOLBOX
- LANGUAGES
- navigation
- Ragster2448 (talk) 02:39, 10 August 2021 (UTC)
- Actually "Upload File" link should be at TOOLBOX section. If it is not there you could hide it with CSS at MediaWiki:Common.css, please check. Fokebox (talk) 08:35, 10 August 2021 (UTC)
- Ah, that makes sense. I copied over the entire MediaWiki:Common.css from this site becuase I thought Template:Navbox needed all of it. I just copied .hlist down to .infobox from Common.css instead and it seems like everything is back to normal now. Thanks Ragster2448 (talk) 23:22, 10 August 2021 (UTC)
번역할때 제가 실수를 하면 차단 당하는지 여부를 알고 싶습니다.
Just installed Infoboxes on my wiki but I'm getting an Lua error on every page.
I followed the tutorial and afaik I did everything correctly, but on each page I try to use infoboxes, I get an error that says "Lua error: Internal error: The interpreter exited with status 126."
Not sure what is causing it, so I'd love some help. Thanks. 218.214.187.214 (talk) 04:22, 10 August 2021 (UTC)
- See Extension:Scribunto#Lua error: Internal error: The interpreter exited with status 126. Malyacko (talk) 05:49, 10 August 2021 (UTC)
my FR translations exist but page /doc/fr is not created
Hi all, my FR translations exist here but do not appear in the language bar of Module:Version/doc
Christian 🇫🇷 FR (talk) 12:29, 10 August 2021 (UTC)
crash on opening my Contribution tab
RESOLVED | |
nop; cannot proove more today. |
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.
Erreur interne
[eb0cd592-7d32-401b-87fe-ec750b85f780] 2021-08-10 19:27:06: Erreur fatale de type « TypeError »
Christian 🇫🇷 FR (talk) 19:29, 10 August 2021 (UTC)
- @Wladek92 Hi, this is the support desk for the MediaWiki software (see the sidebar). For issues with the website mediawiki.org, see Project:Current_issues instead. Malyacko (talk) 11:41, 11 August 2021 (UTC)
- See also How to report a bug if you'd like to report a software bug. Malyacko (talk) 11:42, 11 August 2021 (UTC)
- Thanks, function is now available back. Christian 🇫🇷 FR 🚨 (talk) 12:26, 11 August 2021 (UTC)
Presenting references in another webpage
This post is not a help request as it is an architectural discussion.
I consider to start presenting references (side notes) for each of my articles which contain references --- in a webpage which is separate from the article's webpage.
I consider to do so because I believe that it makes dealing with articles easier because they are less "lengthy" or less "heavy" in the minds of at least some readers and may reduce "data overload" or prevent some articles from becoming "clusterfucks".
(
A similar approach would deal with bibliography ("modular bibliography") which could be utilized for articles dealing with different subjects described in the same book, but in this post I talk about mere references.
)
Is there any way to achieve another-webpage-references without using extensions (perhaps some JavaScript that would copy-paste the entire section into a new-bookmark-webpage?) 2001:44C8:448D:72C6:FA:30B:6DE6:C76 (talk) 00:49, 11 August 2021 (UTC)
Internal Error: Class 'Wikimedia\Rdbms\DBConnRef
RESOLVED | |
resolved by author |
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 attemptingly running the upgrade.php script, I'm deadlocked with the following errors:
MediaWiki internal error.
Original exception: [YRNHIziZV9TGQZTNyeRl-AAAAAM] /index.php?title=Pok%C3%A9time Error: Class 'Wikimedia\Rdbms\DBConnRef' not found
Backtrace:
from /home/customer/www/domain/public_html/includes/libs/rdbms/loadbalancer/LoadBalancer.php(941)
#0 /home/customer/www/domain/public_html/includes/libs/rdbms/loadbalancer/LoadBalancer.php(1146): Wikimedia\Rdbms\LoadBalancer->getLazyConnectionRef(integer, array, string)
#1 /home/customer/www/domain/public_html/includes/libs/rdbms/loadbalancer/LoadBalancer.php(981): Wikimedia\Rdbms\LoadBalancer->reallyOpenConnection(integer, Wikimedia\Rdbms\DatabaseDomain, array)
#2 /home/customer/www/domain/public_html/includes/libs/rdbms/loadbalancer/LoadBalancer.php(816): Wikimedia\Rdbms\LoadBalancer->getLocalConnection(integer, integer)
#3 /home/customer/www/domain/public_html/includes/libs/rdbms/loadbalancer/LoadBalancer.php(793): Wikimedia\Rdbms\LoadBalancer->getServerConnection(integer, string, integer)
#4 /home/customer/www/domain/public_html/includes/libs/rdbms/loadbalancer/LoadBalancer.php(953): Wikimedia\Rdbms\LoadBalancer->getConnection(integer, array, string, integer)
#5 /home/customer/www/domain/public_html/includes/objectcache/SqlBagOStuff.php(984): Wikimedia\Rdbms\LoadBalancer->getMaintenanceConnectionRef(integer, array, string, integer)
#6 /home/customer/www/domain/public_html/includes/objectcache/SqlBagOStuff.php(196): SqlBagOStuff->getConnectionViaLoadBalancer(string)
#7 /home/customer/www/domain/public_html/includes/objectcache/SqlBagOStuff.php(319): SqlBagOStuff->getConnection(string)
#8 /home/customer/www/domain/public_html/includes/objectcache/SqlBagOStuff.php(265): SqlBagOStuff->fetchBlobMulti(array)
#9 /home/customer/www/domain/public_html/includes/libs/objectcache/MediumSpecificBagOStuff.php(119): SqlBagOStuff->doGet(string, integer)
#10 /home/customer/www/domain/public_html/includes/libs/objectcache/BagOStuff.php(754): MediumSpecificBagOStuff->get(string)
#11 /home/customer/www/domain/public_html/includes/libs/objectcache/CachedBagOStuff.php(67): BagOStuff->proxyCall(string, integer, integer, array)
#12 /home/customer/www/domain/public_html/includes/session/SessionManager.php(941): CachedBagOStuff->get(string)
#13 /home/customer/www/domain/public_html/includes/session/SessionInfo.php(165): MediaWiki\Session\SessionManager->generateSessionId()
#14 /home/customer/www/domain/public_html/includes/session/SessionProvider.php(213): MediaWiki\Session\SessionInfo->__construct(integer, array)
#15 /home/customer/www/domain/public_html/includes/session/SessionManager.php(293): MediaWiki\Session\SessionProvider->newSessionInfo(NULL)
#16 /home/customer/www/domain/public_html/includes/session/SessionManager.php(267): MediaWiki\Session\SessionManager->getEmptySessionInternal(WebRequest)
#17 /home/customer/www/domain/public_html/includes/session/SessionManager.php(217): MediaWiki\Session\SessionManager->getEmptySession(WebRequest)
#18 /home/customer/www/domain/public_html/includes/WebRequest.php(826): MediaWiki\Session\SessionManager->getSessionForRequest(WebRequest)
#19 /home/customer/www/domain/public_html/includes/session/SessionManager.php(136): WebRequest->getSession()
#20 /home/customer/www/domain/public_html/includes/Setup.php(755): MediaWiki\Session\SessionManager::getGlobalSession()
#21 /home/customer/www/domain/public_html/includes/WebStart.php(87): require_once(string)
#22 /home/customer/www/domain/public_html/index.php(44): require(string)
#23 {main}
Exception caught inside exception handler: [YRNHIziZV9TGQZTNyeRl-AAAAAM] /index.php?title=Pok%C3%A9time Error: Class 'Wikimedia\Rdbms\DBConnRef' not found
Backtrace:
from /home/customer/www/domain/public_html/includes/libs/rdbms/loadbalancer/LoadBalancer.php(941)
#0 /home/customer/www/domain/public_html/includes/libs/rdbms/loadbalancer/LoadBalancer.php(1146): Wikimedia\Rdbms\LoadBalancer->getLazyConnectionRef(integer, array, string)
#1 /home/customer/www/domain/public_html/includes/libs/rdbms/loadbalancer/LoadBalancer.php(981): Wikimedia\Rdbms\LoadBalancer->reallyOpenConnection(integer, Wikimedia\Rdbms\DatabaseDomain, array)
#2 /home/customer/www/domain/public_html/includes/libs/rdbms/loadbalancer/LoadBalancer.php(816): Wikimedia\Rdbms\LoadBalancer->getLocalConnection(integer, integer)
#3 /home/customer/www/domain/public_html/includes/libs/rdbms/loadbalancer/LoadBalancer.php(793): Wikimedia\Rdbms\LoadBalancer->getServerConnection(integer, string, integer)
#4 /home/customer/www/domain/public_html/includes/libs/rdbms/loadbalancer/LoadBalancer.php(953): Wikimedia\Rdbms\LoadBalancer->getConnection(integer, array, string, integer)
#5 /home/customer/www/domain/public_html/includes/objectcache/SqlBagOStuff.php(984): Wikimedia\Rdbms\LoadBalancer->getMaintenanceConnectionRef(integer, array, string, integer)
#6 /home/customer/www/domain/public_html/includes/objectcache/SqlBagOStuff.php(196): SqlBagOStuff->getConnectionViaLoadBalancer(string)
#7 /home/customer/www/domain/public_html/includes/objectcache/SqlBagOStuff.php(319): SqlBagOStuff->getConnection(string)
#8 /home/customer/www/domain/public_html/includes/objectcache/SqlBagOStuff.php(265): SqlBagOStuff->fetchBlobMulti(array)
#9 /home/customer/www/domain/public_html/includes/libs/objectcache/MediumSpecificBagOStuff.php(119): SqlBagOStuff->doGet(string, integer)
#10 /home/customer/www/domain/public_html/includes/libs/objectcache/BagOStuff.php(754): MediumSpecificBagOStuff->get(string)
#11 /home/customer/www/domain/public_html/includes/libs/objectcache/CachedBagOStuff.php(67): BagOStuff->proxyCall(string, integer, integer, array)
#12 /home/customer/www/domain/public_html/includes/session/SessionManager.php(941): CachedBagOStuff->get(string)
#13 /home/customer/www/domain/public_html/includes/session/SessionInfo.php(165): MediaWiki\Session\SessionManager->generateSessionId()
#14 /home/customer/www/domain/public_html/includes/session/SessionProvider.php(213): MediaWiki\Session\SessionInfo->__construct(integer, array)
#15 /home/customer/www/domain/public_html/includes/session/SessionManager.php(293): MediaWiki\Session\SessionProvider->newSessionInfo(NULL)
#16 /home/customer/www/domain/public_html/includes/session/SessionManager.php(267): MediaWiki\Session\SessionManager->getEmptySessionInternal(WebRequest)
#17 /home/customer/www/domain/public_html/includes/session/SessionManager.php(217): MediaWiki\Session\SessionManager->getEmptySession(WebRequest)
#18 /home/customer/www/domain/public_html/includes/WebRequest.php(826): MediaWiki\Session\SessionManager->getSessionForRequest(WebRequest)
#19 /home/customer/www/domain/public_html/includes/user/User.php(1238): WebRequest->getSession()
#20 /home/customer/www/domain/public_html/includes/user/User.php(377): User->loadDefaults()
#21 /home/customer/www/domain/public_html/includes/user/User.php(2101): User->load()
#22 /home/customer/www/domain/public_html/includes/user/User.php(3073): User->getId()
#23 /home/customer/www/domain/public_html/includes/user/UserOptionsManager.php(587): User->isRegistered()
#24 /home/customer/www/domain/public_html/includes/user/UserOptionsManager.php(490): MediaWiki\User\UserOptionsManager->getCacheKey(User)
#25 /home/customer/www/domain/public_html/includes/user/UserOptionsManager.php(138): MediaWiki\User\UserOptionsManager->loadUserOptions(User, integer)
#26 /home/customer/www/domain/public_html/includes/user/User.php(2675): MediaWiki\User\UserOptionsManager->getOption(User, string, NULL, boolean)
#27 /home/customer/www/domain/public_html/includes/context/RequestContext.php(380): User->getOption(string)
#28 /home/customer/www/domain/public_html/includes/language/Message.php(366): RequestContext->getLanguage()
#29 /home/customer/www/domain/public_html/includes/language/Message.php(1377): Message->getLanguage()
#30 /home/customer/www/domain/public_html/includes/language/Message.php(895): Message->fetchMessage()
#31 /home/customer/www/domain/public_html/includes/language/Message.php(987): Message->format(string)
#32 /home/customer/www/domain/public_html/includes/exception/MWExceptionRenderer.php(215): Message->text()
#33 /home/customer/www/domain/public_html/includes/exception/MWExceptionRenderer.php(150): MWExceptionRenderer::msg(string, string)
#34 /home/customer/www/domain/public_html/includes/exception/MWExceptionRenderer.php(66): MWExceptionRenderer::reportHTML(Error)
#35 /home/customer/www/domain/public_html/includes/exception/MWExceptionHandler.php(106): MWExceptionRenderer::output(Error, integer)
#36 /home/customer/www/domain/public_html/includes/exception/MWExceptionHandler.php(185): MWExceptionHandler::report(Error)
#37 /home/customer/www/domain/public_html/includes/exception/MWExceptionHandler.php(156): MWExceptionHandler::handleException(Error, string)
#38 [internal function]: MWExceptionHandler::handleUncaughtException(Error)
#39 {main}
画像のアップロードができません
画像をアップロードしようとすると、
[YRO6pQsRvFALJ3@oKNyD8AAAAbE] 2021-08-11 11:55:18: 種別「Error」の致命的例外
というエラーが出ます。どうすればいいでしょうか。 183.74.195.181 (talk) 11:59, 11 August 2021 (UTC)
- See Manual:How to debug Malyacko (talk) 17:40, 11 August 2021 (UTC)
Log out problem
The forum i belong to will not let me log out . Says error verification failed . Log out, it will not let me & i cannot post for help 2601:18C:8500:4FF0:9C26:48E6:7D6D:D7F3 (talk) 12:50, 11 August 2021 (UTC)
MediaWiki:Sidebar Link to Internal Page with Parameters
I'm trying to add an internal link to my sidebar but I need to pass parameters along with it. I'm having the following results adding the link on the MediaWiki:Sidebar page:
Link does not open the expected page: Special:Log&limit=500&type=moderation&subtype=approve|Approvals
Link works but opens as a new tab: https://example.tld/w/index.php?title=Special:Log&limit=100&type=moderation&subtype=approve%7CApprovals
Is there a way to make the link work and not open in a new tab? 68.229.117.46 (talk) 14:39, 11 August 2021 (UTC)
- Check what is the value of $wgExternalLinkTarget. It should be probably be `false` to have external links open in the current tab. – Ammarpad (talk) 20:48, 11 August 2021 (UTC)
- Thank you very much, that solved it! Is there any other way I can link to that Special:Log without specifying the full URL? I find myself needing some external links to open in a new tab and right now it seems like its all or nothing. 68.229.117.46 (talk) 04:00, 12 August 2021 (UTC)
Can I rearrange categories within the CategoryTree?
I have the structure like this:
<categorytree mode="all" namespaces="Main Accumulator Collection Document Dictionary Journal ValueTable ValueList WrittenNumbers ClientOptions Semaphore System VPA UsersInfo Protocol Category" showcount="on" hideprefix="always" depth="1">Tech manual</categorytree>
All of the categories within the root node are being sorted A-Z.
Is it possible to change the order of the categories/pages? MrJConstantine (talk) 15:29, 11 August 2021 (UTC)
Installation on NGINX (subdirectory)
Is there an example how I can install MediaWiki with subdirectory on NGINX. 78.43.247.123 (talk) 21:54, 11 August 2021 (UTC)
- Manual:Short URL/Nginx and many results when using an internet search engine. Please elaborate on specific issues/problems. Malyacko (talk) 06:06, 12 August 2021 (UTC)
Timeout while Login
The following discussion is closed. Please do not modify it. Subsequent comments should be made on the appropriate discussion page. No further edits should be made to this discussion.
I recently updated the MW v1.18 to 1.27 and then to the LTS v1.35. Now i got an timeout after Login, while reconnecting to the main page. The behave strangely only appears after clicking on Login, if i change the website before the server timed out, I can use the Mediawiki normal .
Furthermore, if the server timesout, the complete server will block my connections to other sites. I need to restart my Browser and try it again.
Server runs on Centos 8 Stream, with Php v7.3 and Apache v2.4.37. H3xv1lu3 (talk) 11:01, 12 August 2021 (UTC)
After Media wiki upgrade Main page alone not loading
Im new to Mediawiki. Right now im upgrading the mediawiki 1.23 to 1.25. After the upgrading the mediawiki 'Main page' alone not loading. other pages working fine. Need help here. Kumar02221995 (talk) 12:53, 12 August 2021 (UTC)
- 1.25 is an ancient version. Did you mean 1.35? What are the error in the browser console and in the web server error log when you try to load the main page? Malyacko (talk) 15:00, 12 August 2021 (UTC)
- Hello @Malyacko,
- Thanks for your quick reply.
- In my company we have been using MediaWiki 1.20.2 for a long time. At the moment we are trying to update it to the latest version (1.35). I read in a blog that if we jump directly from 1.20.2 to 1.35, there will be a problem in synchronisation, so they instructed to migrate three jumps in between. i thought from 1.20.2 to 1.23.0 and then to 1.25.0. Until 1.23 everything worked fine, but when i upgraded to 1.25.0, only the main page didn't load. It shows This page is not working (HTTP ERROR 500). Other pages like <domain name>/wiki/index.php/Special:Upload, <domain name>/wiki/index.php/Special:Version. work fine. Kumar02221995 (talk) 06:54, 13 August 2021 (UTC)
Memcached was exposed, what are the risks?
Hi,
MW 1.35.2, PHP 7.3.29, database on MySQL 5.6.50-log. See installed extensions and their versions (wiki is in French but I added a ?uselang).
We tried to use Memcached for a few weeks, and then discovered that the server was accessible to unverified users. This was not a direct and immediate exposure to the open world but still, an attacker might have been able to access it.
Firstly, I would like to ask what things a malicious user could have done. Accordingly to Manual:Memcached#Security, altering the cache may allow a full access to the database, but I don't know if it's still actually possible/likely in 1.35.2 (this was written in 2008).
Also, was it possible to execute arbitrary code (through unsecure deserialization apparently)? Was it possible to at least access configuration variables (especially DB/SMTP passwords) or to make changes to the file system? What is the likelihood of these things?
The day (iirc, maybe it's the following day) I discovered the breach, I've stopped using Memcached and returned to CACHE_DB for everything. Few hours later I've changed DB credentials and wgSecretKey, and 2-3 days later, I've reset user's tokens, all of this just in case. Do I need to do or be aware of anything else, for example telling my users to change their passwords/email address (if there is an actual chance the database was leaked)?
Probably far-fetched but is there a reasonable risk that, between the time I switched the cache, and the time (few hours later) I changed the DB credentials, the attacker could have altered the DB cache (using the potentially leaked credentials) in a way it would disclose the new credentials after the change?
As a note, we're not a big site and thus certainly not a great target. We've a lot of spambots but as said Memcached was not directly exposed to the web. We didn't notice anything weird for the moment (like obviously compromised accounts or data).
Thank you for your help by advance! If I forgot to put any useful data here, please tell me. Apologizing for eventual bad English (I'm French). Raphoraph (talk) 23:09, 12 August 2021 (UTC)
Red link color
It seems that the color for red links has changed to a lighter shade of red. Which Gerrit change is that, and what is the corresponding Phabricator task (if there is one)? GTrang (talk) 23:49, 12 August 2021 (UTC)
- That's a bug: T288739. —Mainframe98 talk 07:27, 13 August 2021 (UTC)
code in Head section
Hello,
what settings are needed, to add, in the head section of each page, the following code:
<style type="text/css" media="print">
body {visibility: hidden; display: none;}
</style>
Thank you
MediaWiki | 1.36.1 |
PHP | 7.4.21 (apache2handler) |
MariaDB | 10.4.20-MariaDB |
ICU | 66.1 |
185.212.140.201 (talk) 06:33, 13 August 2021 (UTC)
- Which problem would this solve; it looks like a funny attempt to make printing harder? See Project:Support desk/Flow/2014/08#h-Add_global_CSS_link_to_head_or_RessourceLoader?-2014-08-18T08:50:00.000Z. Malyacko (talk) 20:33, 13 August 2021 (UTC)
Extension:SideBarMenu
Hi ,,
We are using these. Unable to use SideBarMenu, Since its not maintained extension.
Product | Version |
---|---|
MediaWiki | 1.35.3 |
PHP | 7.4.21 (apache2handler) |
MySQL | 8.0.26 |
ICU | 65.1 |
Lua |
When i use Inspite of Sidebar getting this .
+*Truck
</sidebarmenu>
please suggest any alternative for this. Pooja2425 (talk) 09:15, 13 August 2021 (UTC)
Making tools on certain language Wikipedia
Hello, a couple of programmers are planning to make several tools exclusively on the Macedonian Wikipedia. Is this possible a tool to be made and attached on a certain stand alone Wikipedia? And if yes, how that goes and does some Media Wiki administrator need to aprove it? Thanks in front. Dandarmkd (talk) 14:29, 13 August 2021 (UTC)
- @Dandarmkd Hi, this question seems to be unrelated to the MediaWiki software but about a Wikimedia website; please bring this up on meta:Tech and also check meta:Small wiki toolkits. The answer highly depends on what exactly "several tools" means, what they do, how they are implemented, and where they are hosted. Please elaborate and provide way more information over there. Thanks! Malyacko (talk) 20:31, 13 August 2021 (UTC)
How to delete all trimmed text in deletion log?
MediaWiki 1.35.2 with just one registered user and without any addon plugins (a core only database).
How to delete all trimmed texts in a given deletion log (or in all deletion logs whatsoever)?
(content was: 'A '''''page'''''. Can I really just type == anything == here?!' (and the only contributor was '62.105.94.141'))
Thanks in advance, 2001:44C8:4226:C6D8:C577:4731:DD29:FCC6 (talk) 03:31, 14 August 2021 (UTC)
- @Ammarpad I think that you told me that it's impossible (well, without some messy, dangerous digging in the DB) and that you have suggested to community to add a feature to delete this but the case was closed.
- (If we had tags here, as there are in StackExchange, I could have found this topic easily). 2001:44C8:42C6:DD01:EDCA:2BFF:2C6E:FDB (talk) 02:01, 15 August 2021 (UTC)
- I think this the topic: Project:Support desk/Flow/2021/07#h-All_archived_revisions_deleted_but_a_trimmed_version_is_still_available-2021-07-29T17:40:00.000Z – Ammarpad (talk) 05:50, 15 August 2021 (UTC)
- Ammarpad thanks,
- ---
- I recon that these trimmed text are stored in some DB table column which (given the minimal nature of my website) I could truncate from PHPMyadmin. 2001:44C8:42C6:DD01:EDCA:2BFF:2C6E:FDB (talk) 08:39, 15 August 2021 (UTC)
- Anyone knows what is the DB table?... 2001:44C8:42C6:DD01:680D:94D6:1457:A605 (talk) 22:57, 15 August 2021 (UTC)
User Name
What is the minimal criteria for a wiki user name?
What is the minmal length of letters?
Are all letters acceptable?
Are ALL CAPS acceptable?
Are Characters required?
Are Numbers required? 2601:841:4080:DC0:C47C:EBEE:97F7:8A5 (talk) 08:00, 14 August 2021 (UTC)
- Depends per wiki, but for English Wikipedia specificly there are no technical limitations (as long as the name is still available of course), but there are a lot of social rules https://en.wikipedia.org/wiki/Wikipedia:Username_policy —TheDJ (Not WMF) (talk • contribs) 10:58, 14 August 2021 (UTC)
Magic world
Good morning,
Is there a magic word that says what is the status of the user? 77.152.229.29 (talk) 08:20, 14 August 2021 (UTC)
- status ? like whether they are hungry or something ? —TheDJ (Not WMF) (talk • contribs) 10:54, 14 August 2021 (UTC)
- LOL :) Pharmankur (talk) 06:21, 17 August 2021 (UTC)
- @TheDJ: No, I meant if there is a magic word that says what is the status of the user (sysop, bureaucrat, patroller)? 77.152.229.29 (talk) 16:18, 14 August 2021 (UTC)
- So you want to retrieve the groups that the user is a part of. There is no magic word in wikicode for this no. —TheDJ (Not WMF) (talk • contribs) 09:47, 17 August 2021 (UTC)
- @TheDJ ok thanks ! 77.152.229.29 (talk) 09:10, 18 August 2021 (UTC)
Use Wikipedia login credentials on my own wiki
I would like visitors to my site to be able to log in using their Wikipedia user names (securely via Wikimedia). I see there are many extensions dealing with authentication but don't really understand the best way to do this. Is it possible? Buster2223 (talk) 13:44, 14 August 2021 (UTC)
- Try Extension:WSOAuth Bawolff (talk) 02:32, 16 August 2021 (UTC)
I no longer have access to the email account that I created my account with and I have forgotten my password.
this is for Librarything 2601:1C2:280:71C0:91F4:691F:7265:63D0 (talk) 20:58, 14 August 2021 (UTC)
Error in infobox and template
Hi I am new to Mediawiki but managed to install everything and setup, I am having two problems right which needed to be solved by media wiki team.
The collapse category is messed up https://wrestlepedia.org/index.php/List_of_former_WWE_personnel_(A%E2%80%93C)
The infobox is on left side and stylesheet or its messed up https://wrestlepedia.org/index.php/Triple_H
How can i fix those? which extension I missing? I am on namecheap. Static Hash (talk) 16:39, 15 August 2021 (UTC)
- can someone please help? Static Hash (talk) 12:47, 16 August 2021 (UTC)
Elastica not working
Hello,
I am having an issue with Elastica. When trying to update index in CirrusSearch i get this error:
PHP Fatal error: Declaration of Elasticsearch\Endpoints\Indices\Exists::getParamWhitelist() must be compatible with Elasticsearch\Endpoints\AbstractEndpoint::getParamWhitelist(): array in extensions/Elastica/vendor/elasticsearch/elasticsearch/src/Elasticsearch/Endpoints/Indices/Exists.php on line 62
I am using:
Product | Version |
---|---|
MediaWiki | 1.35.3 (7c02aae)
17:45, 14 August 2021 |
PHP | 7.3.29 (fpm-fcgi) |
MariaDB | 10.5.8-MariaDB |
ICU | 65.1 |
Elasticsearch | 6.5.4 |
CirrusSearch | 6.5.4 (ad4210f) 06:13, 22 July 2021 | GPL-2.0-or-later | Elasticsearch-powered search for MediaWiki | Nik Everett, Chad Horohoe, Erik Bernhardson and others |
Elastica | 6.1.3 | GPL-2.0-or-later | Base Elasticsearch functionality for other extensions by providing Elastica library | Nik Everett and Chad Horohoe |
ruflin/elastica | 6.1.5 | MIT | Elasticsearch Client | Nicolas Ruflin |
Can someone suggest to me what might be the issue here?
I think it may be this(taken from Special:Versions):
elasticsearch/elasticsearch | 6.8.2 | Apache-2.0 | PHP Client for Elasticsearch | Zachary Tong and Enrico Zimuel |
But i have no idea why that version is installed as the composer in Elastica is set to:
"require": {
"ruflin/elastica": "6.1.5",
"elasticsearch/elasticsearch": "~6.5.1||~6.7.2",
"ext-curl": "*"
Instalei um site MediaWiki preciso ajuda
Barra lateral
Não estou conseguindo alterar o conteúdo da barra lateral para atualizar, o sistema diz que não tenho permissão para edição. Sou Usuário autoconfirmado, então deveria poder alterar as páginas especiais. Meu nome no site @Projetopf Agradeço ajuda ~ EPZanette (talk) 17:45, 15 August 2021 (UTC)
- @EPZanette "autoconfirmed" is not enough. See Manual:Interface/Sidebar. Malyacko (talk) 18:26, 15 August 2021 (UTC)
- Não funcionou, baixei a extensão DynamicSidebar, em public_html -> extensions ->DynamicSidebar;
- Inclui as linhas abaixo no final do LocalSettings.php do public_htmil
- wfLoadExtension ( 'DynamicSidebar' );
- $ wgDynamicSidebarUseUserpages = true ;
- Onde o erro? ~ EPZanette (talk) 12:33, 16 August 2021 (UTC)
- Resolvi minha Barra Lateral. Agradeço prometo pagar um café quando nos encontrar. EPZanette (talk) 19:55, 18 August 2021 (UTC)
Content translation failed due to internal error
RESOLVED | |
Duplicate of Project:Support desk/Flow/2021/08#h-"Content_Translation_failed_due_to_internal_error"_-_2-2021-08-15T19:46:00.000Z |
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 tried to translate Solmaz Amanova - Vikipediya (wikipedia.org) this page from Azerbaijani to English. It says that "This is an ongoing translation by The publisherr. Please make sure you coordinate with the user who translated the current translation."
However when I click on the user's name it says that "Wikipedia does not have a user page with this exact name."
Additionally, translation page says "Critical Error: Content Translation failed due to internal error".
I kindly ask this issue to be resolved or anything I can do to add the translation. Orxanr (talk) 19:44, 15 August 2021 (UTC)
"Content Translation failed due to internal error" - 2
I tried to translate Sakit Məmmədov - Vikipediya (wikipedia.org) this page from Azerbaijani to English. It says that "This is an ongoing translation by Omarismayil. Please make sure you coordinate with the user who translated the current translation."
However when I click on the user's name it says that "Wikipedia does not have a user page with this exact name."
Additionally, translation page says "Critical Error: Content Translation failed due to internal error".
I kindly ask this issue to be resolved or anything I can do to add the translation. Orxanr (talk) 19:46, 15 August 2021 (UTC)
- Welcome to the support desk for the MediaWiki software itself. If there is a critical error with some software on a Wikimedia website instead, then please see How to report a bug. Thanks. Malyacko (talk) 07:23, 16 August 2021 (UTC)
Expression error: Unrecognized punctuation character "["
I seem to have this problem. When I put a the born template on an article on Memory Gamma, It keeps saying "Expression error: Unrecognized punctuation character "[". Can someone help? SketchFan98 (talk) 03:35, 16 August 2021 (UTC)
- @SketchFan98 Hi, please see "Post a new queustion" and its list in the sidebar. Furthermore, what is "Memory Gamma" and how is it relevant? Malyacko (talk) 07:21, 16 August 2021 (UTC)
- > When I put the born template on an article on Memory Gamma, It keeps saying "Expression error: Unrecognized punctuation character "[".
- That probably means that the template is broken or you are trying to do something with it that is not supported. Likely it's trying to parse something from the input/parameter you gave the template and it's not expecting a [ there. For instance maybe you told it to include an image with the image syntax: |image=[[File:imagename.jpg|thumb]], but it is only expecting a filename of the image: |image=imagename.jpg. —TheDJ (Not WMF) (talk • contribs) 10:14, 17 August 2021 (UTC)
Running official MediaWiki docker container with Traefik reverse proxy
I'm trying to run the official mediawiki docker image behind a traefik revesere proxy. The image runs fine locally, I can access the wiki through http://localhost:8080. Through traefik, I want the wiki to be available through http://hostname/wiki. However I'm failing to configure traefik, respective mediawiki correctly. Either I'm ending up in 404s oder too many redirects. It seems I'm missing something for $wgScriptPath and/or $wgResourceBasePath.
My current traefik routing configuration is
- "traefik.http.routers.mediawiki.rule=PathPrefix(`/wiki`)"
- "traefik.http.routers.mediawiki.middlewares=mediawiki-stripprefix"
- "traefik.http.middlewares.mediawiki-stripprefix.stripprefix.prefixes=/wiki"
- "traefik.http.middlewares.mediawiki-stripprefix.stripprefix.forceSlash=false"
My current mediawiki path configuration is
$wgServer = "http://hostname";
$wgScriptPath = "";
$wgResourceBasePath = $wgScriptPath;
Any advise is appreciated. Onandonandonandon (talk) 06:53, 16 August 2021 (UTC)
- What should be behind /wiki ? everything, or just the short urls ?
- Generally, if you have short urls, then your server should first strip wgArticlePath (generally /wiki/) and redirect the title in the path to wgScriptPath/index.php?title=(captured title)
- Other urls should point to wgScriptPath (On wikipedia that is /w) but it can be empty (root), just make sure that it maps. —TheDJ (Not WMF) (talk • contribs) 10:12, 17 August 2021 (UTC)
- Everything should be on path /wiki.
- Problem is the empty wgScriptPath in the mediawiki container. I can forward /wiki, but not base path /. In consequence media wiki resources cannot be loaded.
- However I was able to traefik reverse proxy a custom mediawiki docker image with following configuration
- Apache default site
<VirtualHost *:80> Alias /wiki /var/www/html ErrorLog ${APACHE_LOG_DIR}/error.log CustomLog ${APACHE_LOG_DIR}/access.log combined AllowEncodedSlashes NoDecode </VirtualHost>
- Dockerfile
FROM mediawiki:1.36 COPY include/assets/wiki-site /etc/apache2/sites-available/000-default.conf
- LocalSettings.php
$wgServer = "http://hostname"; $wgScriptPath = "/wiki"; $wgResourceBasePath = $wgScriptPath;
- traefik part in docker-compose
- In the end fairly simple. Onandonandonandon (talk) 13:39, 17 August 2021 (UTC)
- "traefik.http.routers.mediawiki.entrypoints=web" - "traefik.http.routers.mediawiki.rule=PathPrefix(`/wiki`)"
Would it be possible to convert this age template from the YY-MM-DD format to the DD-MM-YY format?
I have this age template that I copied which uses the YYYY-MM-DD format:
<includeonly>{{#expr:({{{4|{{CURRENTYEAR}}}}})-({{{1}}})-(({{{5|{{CURRENTMONTH}}}}})<({{{2}}})or({{{5|{{CURRENTMONTH}}}}})=({{{2}}})and({{{6|{{CURRENTDAY}}}}})<({{{3}}}))}}</includeonly><noinclude>[[Category:Data templates]]</noinclude>
However, I recently got the idea to convert it to the DD-MM-YYYY format since that is my preferred format, as I am a New Zealander. Would such a conversion be possible? If so, how would I write the template code? ― C.Syde (talk | contribs) 08:38, 16 August 2021 (UTC)
Best way to name pages for bibliographic database
We are creating a bibliographic database of medieval texts. Each title has it's own page, but each printed edition of a title will also have it's own page. We are using semantic-media wiki to link the properties together. I was wondering about the best way to create pages for the editions. Here is some sample data:
Title - That has a pagename: "Title"
An Edition that has the following page title: "Title-Publisher-Year of publication"
This however is not very user friendly. The user has to put in the data twice, and if they make a mistake the have to not only move the page but also change the property values. I was wondering if there was a way to create a page with random ID, then have a page title created with the given properties. Something simillar to the discussion feature on this very page. Or is there a better way to go about this? Thanks in advance. Pooya72 (talk) 14:53, 16 August 2021 (UTC)
I am unable to register a forum account.
Every time I attempt to register, I get a message to register my email. I did register my email when I started playing. What's wrong? 2601:8A:200:43E0:E5C8:8E1C:B33F:5EC8 (talk) 17:25, 16 August 2021 (UTC)
Mediawiki macOS installation: pecl install redis not working
I'm following these two tutorials: 1, 2. The 2nd says to do pecl install redis
but I got this error:
checking for redis json support... enabled
checking for igbinary includes... configure: error: Cannot find igbinary.h
ERROR: `/private/tmp/pear/temp/redis/configure --with-php-config=/usr/local/opt/php@7.4/bin/php-config --enable-redis-igbinary=yes --enable-redis-lzf=yes --enable-redis-zstd=yes' failed
What should I do?
I answered yes to all the prompts like enable igbinary serializer support?
. What answers am I supposed to put in?
btw, which php outputs /usr/local/bin/php
after running brew install php@7.4
YousufSSyed (talk) 18:57, 16 August 2021 (UTC)
Mediawiki macOS installation: pecl install intl not working
RESOLVED | |
I'm abdoning this since it's easier to run Mediawiki in a Windows VM |
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 submitted another issue about pecl install redis
not working, but this is for intl, I figured it should be a separate issue)
Mediawiki requires intl, which I heard requires icu4c. I ran brew install icu4c
to install it, but when I enter in which icu4c
, it outputs icu4c not found
. When I try pecl install intl
but I got this error:
checking whether to enable internationalization support... yes, shared
checking for icu-uc >= 50.1 icu-io icu-i18n... no
configure: error: Package requirements (icu-uc >= 50.1 icu-io icu-i18n) were not met:
No package 'icu-uc' found
No package 'icu-io' found
No package 'icu-i18n' found
Consider adjusting the PKG_CONFIG_PATH environment variable if you
installed software in a non-standard prefix.
Alternatively, you may set the environment variables ICU_CFLAGS
and ICU_LIBS to avoid the need to call pkg-config.
See the pkg-config man page for more details.
ERROR: `/private/tmp/pear/temp/intl/configure --with-php-config=/usr/local/opt/php@7.4/bin/php-config --with-icu-dir=DEFAULT' failed
What should I do?
I left prompts like Specify where ICU libraries and headers can be found [DEFAULT]
blank. Am I supposed to put answers in? If so, what?
btw, which php outputs /usr/local/bin/php
after running brew install php@7.4
YousufSSyed (talk) 20:00, 16 August 2021 (UTC)
- This stack overflow post might help: https://stackoverflow.com/questions/63816517/trying-to-install-int-extension-macos-catalina-and-php-7-4-10 —TheDJ (Not WMF) (talk • contribs) 09:56, 17 August 2021 (UTC)
- oh one note, some tutorials talks about adding variables to the bash profile etc. But in newer versions of MacOS you have to add these variables to your zsh profile as they come with the zsh shell instead. —TheDJ (Not WMF) (talk • contribs) 09:58, 17 August 2021 (UTC)
A most minimal, responsive skin
Please recommend a most minimal and (mobile) responsive skin for MediaWiki websites, a skin which hides basically everything besides the header, middle and footer; a skin in which the sidebar contains nothing besides the main navigation menu of the website.
A "mysterious" skin. 2001:44C8:42C6:DD01:5040:7835:943B:9144 (talk) 04:29, 17 August 2021 (UTC)
- The Foreground skin is pretty good. —TheDJ (Not WMF) (talk • contribs) 09:53, 17 August 2021 (UTC)
Parsoid Error on edit page
Hello Team,
I am getting error on edit page. Please suggest.
Error:
Error contacting the Parsoid/RESTBase server: (curl error: 60) Peer certificate cannot be authenticated with given CA certificates.
We are using:
Mediawiki 1.35.1
PHP 7.4
Linux (RHEL 7.9) Akki30 (talk) 09:05, 17 August 2021 (UTC)
- There are many results for ""Peer certificate cannot be authenticated with given CA certificates."" in an internet search engine. What have you tried already? Malyacko (talk) 09:39, 17 August 2021 (UTC)
- We have uploaded and configured public SSL certificate(DIGICERT) in our server. As we are using external application.
- Can you suggest for , Error contacting the Parsoid/RESTBase server. Akki30 (talk) 07:59, 18 August 2021 (UTC)
- php curl ext might be missing or have an outdated CA database. Bawolff (talk) 00:47, 20 August 2021 (UTC)
User account
Hi
Since last log in my email has changed twice. I want to reset my password and change the email address.
But reset only goes to a email address wich is not in use.
Can administrator help me? 147.12.46.56 (talk) 09:29, 17 August 2021 (UTC)
Autocomplete stopped working after Update to 1.35.3
Hello,
I did the Update from 1.31 to 1.35.3 this weekend. and now the Autocomplete won't work for the namespaces we have. for sites in the main NS it works. I uninstalled the last extentions I installed with that update (Lockdown) but the extention don't seem to be the issue.
the search works but not that autocomplete. anything I can try?
Is there any plan to unite Vector and Minerva into one responsive skin?
The following discussion is closed. Please do not modify it. Subsequent comments should be made on the appropriate discussion page. No further edits should be made to this discussion.
Is there any plan to unite Vector and Minerva into one responsive skin?
To ease installation, to ease the learning, to make files unified? 2001:44C8:42C6:DD01:5040:7835:943B:9144 (talk) 10:18, 17 August 2021 (UTC)
- Not really right now. These are production skins or Wikipedia and thus very delicate. Any change to them tends to get huge amounts of feedback from the communities there and as such the skins evolve very slowly. —TheDJ (Not WMF) (talk • contribs) 08:41, 18 August 2021 (UTC)
Remove language code on in other languages link
Translated pages are adding language code in front of the page name causing the url invalid. For example, https://wiki.abcdef.com/mediawiki/Fr:Page_Name/fr is what I get when clicking on in other languages. But that's invalid and the correct path is https://wiki.abcdef.com/mediawiki/Page_Name/fr without Fr:
Please help.
Regards Yaredgebrewold (talk) 13:53, 17 August 2021 (UTC)
Adding a parameter to an internal link inside a template
Hi there,
I have a template that I use on a few character pages on my wiki, it works nice.
I am trying to change the link on the template to go to a new page dependent on what parameter was passed
I was trying something like [[Crafting Timeline:{{{charactername}}} | Crafting Timeline]]
But the internal link seems to be completely ignoring the parameter and displaying it as text when I look at it in the template.
When I look at in an actual page, it ignores the charactername parameter, and just wants to create a page called "Crafting Timeline".
Is there a way to do this, I thought it would be quite straightforward.
Thanks,
Glenn Thewildpaw (talk) 18:47, 17 August 2021 (UTC)
- hmm. I dont see why that wouldnt work. Do you have a link to your wiki?
- The page Special:expandtemplates can be helpful for debugging things like this.
- Possibly its a job queue issue and the page using template hasnt been updated yet. For the template page, you may want to use {{{charactername|none}}} or some other default, as { is not allowed in pagenames so you will get anerror if param isnt specified. Bawolff (talk) 00:45, 20 August 2021 (UTC)
Como obter permissão para alterar paginas especiais
Minha credencial é de Usuário e de Usuário confirmado, mas ao altera página da BarraLateral, aparece MSG "Você não possui permissão para editar esta página..."
Como Adminiustrador do meu site, achei que seria padrão.. Usuário:@Projetopf
Agradeço ajuda. ~ EPZanette (talk) 20:21, 17 August 2021 (UTC)
- Hi, please see "Before you post" in the sidebar. What is "BarraLateral" and why should we know?
- If you go to "Special:ListUsers" and set "Group: Administrators", is your account listed? If not, then you are not admin. Malyacko (talk) 22:14, 17 August 2021 (UTC)
- Todas informações me levam a ser Administrador do MediaWiki. Não quero isso. Quero apenas ser Administrador do meu site criado pela MediaWik, versão 1.36
- Instalei um site e agora não posso alterar as páginas especiais, como por exemplo a BarraLateral. ~ EPZanette (talk) 12:10, 18 August 2021 (UTC)
- Eu precisaria da ajuda de um Burocrata para alterar minhas credenciais ? Já que eu mesmo não posso fazer isso? EPZanette (talk) 12:14, 18 August 2021 (UTC)
- Manual:FAQ#Initial user was not created by installer or it is not an administrator Malyacko (talk) 13:06, 18 August 2021 (UTC)
- Você foi muito gentil em me ajudar. Resolvi minha dificuldade de acesso. Aceite meus cumprimentos pela ajuda. EPZanette (talk) 19:58, 18 August 2021 (UTC)
How could I know how many webpages were deleted since the website was established?
How could I know how many webpages were deleted in my MediaWiki 1.35.2 website, since the website was established (MediaWiki installation by wizard)? 2001:44C8:444E:8138:CCDC:8C1A:3EA5:E5A4 (talk) 01:47, 18 August 2021 (UTC)
Undefined variable permissionManager in Skin.php
I recently noticed that when trying to access the User Talk page on my wiki, I'm getting a 500 error. Turning on error reporting I'm seeing:
Notice: Undefined variable: permissionManager in /var/www/vhosts/bibleget.io/seminaverbi.bibleget.io/w/includes/skins/Skin.php on line 1540
Fatal error: Uncaught Error: Call to a member function userHasRight() on null in /var/www/vhosts/bibleget.io/seminaverbi.bibleget.io/w/includes/skins/Skin.php:1540 Stack trace: #0 /var/www/vhosts/bibleget.io/seminaverbi.bibleget.io/w/includes/skins/SkinTemplate.php(1241): Skin->buildNavUrls() #1 /var/www/vhosts/bibleget.io/seminaverbi.bibleget.io/w/includes/skins/SkinTemplate.php(436): SkinTemplate->buildNavUrls() #2 /var/www/vhosts/bibleget.io/seminaverbi.bibleget.io/w/skins/MinervaNeue/includes/Skins/SkinMinerva.php(143): SkinTemplate->prepareQuickTemplate() #3 /var/www/vhosts/bibleget.io/seminaverbi.bibleget.io/w/includes/skins/SkinTemplate.php(127): SkinMinerva->prepareQuickTemplate() #4 /var/www/vhosts/bibleget.io/seminaverbi.bibleget.io/w/includes/skins/SkinTemplate.php(144): SkinTemplate->generateHTML() #5 /var/www/vhosts/bibleget.io/seminaverbi.bibleget.io/w/includes/OutputPage.php(2622): SkinTemplate->outputPage() #6 /var/www/vhosts/bibleget.io/seminaverbi.bibleget.io/w/includes/exception/MWExceptionRenderer.php( in /var/www/vhosts/bibleget.io/seminaverbi.bibleget.io/w/includes/skins/Skin.php on line 1540
The wiki is at https://en.seminaverbi.bibleget.io
PHP 7.4.22
MediaWiki 1.35
Any ideas on how to fix this? I did upgrade the wiki from 1.34 to 1.35 a few months ago. I'm not sure if the problem has been there all along since the upgrade because I haven't really needed to use the User Talk page. I only noticed because Google Web Console sent me a notification about the 500 error. Lwangaman (talk) 11:54, 18 August 2021 (UTC)
- Actually I believe I have solved this. Upon inspecting the includes/skins folder a little closer, I noticed some '.orig' and '.rej' files. My guess is I used patch to upgrade to 1.35 and not all patches were successfull. Upon examining the current files with the versions from the github repo, and manually fixing a few differences, it seems the error is now gone. Lwangaman (talk) 13:24, 18 August 2021 (UTC)
Embeded interactive google sheet?
Hi,
I have a google sheet which I've setup with a drop down menu which allows you to select for example a country which once selected will bring up various information/numbers related to that country. Is it possible to embed this google sheet into wiki and have it so users can still select relevant countries from the drop down list to bring up the relevant information? AParsons83 (talk) 13:17, 18 August 2021 (UTC)
Hide Sidebar when you're not logged in
RESOLVED | |
Solution found at https://sangkrit.net/how-to-hide-mediawiki-sidebar-from-visitors/ |
The following discussion is closed. Please do not modify it. Subsequent comments should be made on the appropriate discussion page. No further edits should be made to this discussion.
Hello,
I've set up a personal wiki, where i'm storing all kind of informations and documentations. I'm the only one using it so i created an account and disabled the registration button.
My problem is that my SideBar with article titles are visible at home page for all non registered users to see so my question would be : how to hide the sidebar for non-logged users ?
Thanks a lot for your time Kitsuo23 (talk) 13:45, 18 August 2021 (UTC)
- Up ? Kitsuo23 (talk) 08:18, 25 August 2021 (UTC)
- I found the solution (thank to https://sangkrit.net/how-to-hide-mediawiki-sidebar-from-visitors/):
- Login to your MediaWiki website’s file manager or FTP, navigate to /extensions directory located in your site’s root and create a new folder /HideSidebar.
- Open the folder, create a new PHP file with name HideSidebar.php and paste the following code:
<?php
if ( !defined( 'MEDIAWIKI' ) ) {
echo "Not a valid entry point";
exit( 1 );
}
$wgExtensionCredits['other'][] = array(
'path' => __FILE__,
'name' => 'HideSidebar',
'version' => '1.0.1',
'author' => 'Jlerner',
'url' => 'https://www.mediawiki.org/wiki/Extension:HideSidebar',
'description' => 'Allows to hide the sidebar from anonymous users',
);
$wgHooks['SkinBuildSidebar'][] = 'efHideSidebar';
function efHideSidebar($skin, &$bar) {
global $wgUser;
// Hide sidebar for anonymous users
if (!$wgUser->isLoggedIn()) {
$url = Title::makeTitle(NS_SPECIAL, 'UserLogin')->getLocalUrl();
$bar = array(
'navigation' => array(
array('text' => 'Login',
'href' => $url,
'id' => 'n-login',
'active' => '')
)
);
}
return true;
}
- Now open LocalSettings.php file and add this line of code:
require_once "$IP/extensions/HideSidebar/HideSidebar.php";
- Save changes and you are done. Kitsuo23 (talk) 11:57, 25 August 2021 (UTC)
I seem to have lost my password
I need to reset my password, but I can't find the purported link on the login page. 154.6.20.96 (talk) 16:59, 18 August 2021 (UTC)
Problem access on Wikipedia
I asked for a change of password but I can't log in. Always says wrong password. 151.52.246.135 (talk) 17:38, 18 August 2021 (UTC)
- I have already done "recover password", but the system tells me that the new password is also wrong. 151.52.246.135 (talk) 10:44, 19 August 2021 (UTC)
Memory usage of MediaWiki
RESOLVED | |
Resolved by changing to PHP 8 on the server. |
The following discussion is closed. Please do not modify it. Subsequent comments should be made on the appropriate discussion page. No further edits should be made to this discussion.
Hi team!
I have a question regarding memory usage at a server running website on MediaWiki. I have noticed that sometimes memory usage exceeds the limitations on my hosting server. When website with low number of visitors it has 3.11 GB usage. 1-2 GB it uses to run software at the server and the rest is MediaWiki. The tech supports says that there are three scripts running that has uses that memory. Could someone help me is it normal that MediaWiki uses such memory? Fokebox (talk) 18:10, 18 August 2021 (UTC)
Diagram Extensions giving error in wiki 135.x
Diagrams error: no response received from remote service.
in last version 1.31 we have usedGraphViz , Now we are migrating to wiki 1.35.3 ,GraphViz not compatible with this version.
SO trying to use Diagram extension .
I have done only these 3 steps:
git clone https://github.com/samwilson/diagrams-extension Diagrams
wfLoadExtension( 'Diagrams' );
$wgDiagramsServiceUrl = 'http://diagrams.bitplan.com';
unbale to set $wgDiagramsServiceUrl , what i have to set here ?? And also how to install diaram service ,if i need to install?
pls suggest. Pooja2425 (talk) 12:37, 19 August 2021 (UTC)
- @Pooja2425 I assume this is about Extension:Diagrams? See the section "Optional external rendering" - wherever you host your Symfony or Python based service, basically. Malyacko (talk) 16:06, 19 August 2021 (UTC)
Embedded file won't work on wiki page
I have done every step to upload a .jpg file then embed it onto our page, but the image won't show. I only get parts of the command or file name in red text. Does anyone have a fix? 140.194.40.32 (talk) 13:37, 19 August 2021 (UTC)
Reference Tooltips on shi.wiki
Hello there, im an admin in shi.wiki and i want to install the "Reference Tooltips" gadget on the shi.wiki but even if i am an admin i dont have the right to create a page named "MediaWiki:Gadget-ReferenceTooltips.js". I need help of an administrator of wikimedia to install this gadget in the wiki.
Link to the gadget page: Reference Tooltips
Link to the shi.wiki: https://shi.wikipedia.org/wiki/Tasna_Tamzwarut AyourAchtouk (talk) 14:27, 19 August 2021 (UTC)
- @AyourAchtouk Welcome to the support desk for the MediaWiki software. For user permissions on Wikimedia websites, please refer to meta:Tech; see meta:Small wiki toolkits for more information. For finding admins, see the information on Gadget kitchen. Malyacko (talk) 15:59, 19 August 2021 (UTC)
Javascript File Not Executing After Mediawiki Upgrade.
Ever since I upgraded my wiki from version 1.34.1 to 1.36.1, the following script has not been running on applicable pages:
mw.loader.using( ['mediawiki.util', 'mediawiki.api', 'mediawiki.notify'] ).then( function () { function padWithZeroes( num ) { // Pad a number with zeroes. The number must be an integer where // 0 <= num < 100. return num < 10 ? '0' + num.toString() : num.toString(); } function showTime( $target ) { var offset = 172909; var now = new Date(); var hh = now.getUTCHours() * 3600; var mm = now.getUTCMinutes() * 60; var ss = now.getUTCSeconds(); var totalseconds = hh + mm + ss; var pokeseconds = totalseconds * 4; now.setSeconds(pokeseconds + offset); // Set the time. var ph = now.getUTCHours(); var pm = now.getUTCMinutes(); var time = padWithZeroes( ph ) + ':' + padWithZeroes( pm ); document.getElementById('poketime').innerHTML = time; var scheme = document.getElementById('coloration'); var headerbackground = document.getElementById('background'); var iconbackground = document.getElementById('icon'); if ( ph >= 4 && ph < 10) { scheme.style.color = "#b3b377"; scheme.style.backgroundColor = "#FFFFAA"; scheme.style.border = "3px solid #b3b377"; headerbackground.style.backgroundColor = "#FFFFC8"; headerbackground.style.border = "1px solid #b3b377"; headerbackground.style.color = "#b3b377"; document.getElementById('icon').innerHTML = "Morning"; iconbackground.style.backgroundColor = "#b3b377"; iconbackground.style.color = "#FFFFC8"; } else if ( ph >= 10 && ph < 20 ) { scheme.style.color = "#4192b3"; scheme.style.backgroundColor = "#5ED0FF"; scheme.style.border = "3px solid #4192b3"; headerbackground.style.backgroundColor = "#96E0FF"; headerbackground.style.border = "1px solid #4192b3"; headerbackground.style.color = "#4192b3"; document.getElementById('icon').innerHTML = "Day"; iconbackground.style.backgroundColor = "#4192b3"; iconbackground.style.color = "#96E0FF"; } else { scheme.style.color = "#002347"; scheme.style.backgroundColor = "#003366"; scheme.style.border = "3px solid #002347"; headerbackground.style.backgroundColor = "#597A9B"; headerbackground.style.border = "1px solid #597A9B"; headerbackground.style.color = "#002347"; document.getElementById('icon').innerHTML = "Night"; iconbackground.style.backgroundColor = "#002347"; iconbackground.style.color = "#597A9B"; } // Schedule the next time change. // // We schedule the change for 100 ms _after_ the next clock tick. The delay // from setTimeout is not precise, and if we aim exactly for the tick, there // is a chance that the function will run slightly before it. If this // happens, we will display the same time for two seconds in a row - not // good. By scheduling 100 ms after the tick, we will always be about 100 ms // late, but we are also very likely to display a new time every second. var ms = now.getMilliseconds(); setTimeout( function () { showTime( $target ); }, 1100 - ms ); } $( showTime );
} );
The script seems syntactically correct since I was able to successfully run it on Tryit Editor; it's just that my wiki is not actually executing it.
Whatever the issue is seems to be on Mediawiki's end, perhaps because I omitted essential files during the upgrade transfer.
Not sure how related the following issue is, but this appears when I load the console on my browser:
[YR7vb91ZSkHcAdLBKksufAAAAAY] /load.php?lang=en&modules=startup&only=scripts&raw=1&skin=vector InvalidArgumentException: Invalid file type for image files of 'default' (valid: svg, png, gif, jpg) in module 'oojs-ui.styles.icons-accessibility'
Backtrace:
from /home/customer/www/$domain/public_html/includes/resourceloader/ResourceLoaderImage.php(112)
#0 /home/customer/www/$domain/public_html/includes/resourceloader/ResourceLoaderImageModule.php(282): ResourceLoaderImage->__construct(string, string, array, string, array, NULL)
#1 /home/customer/www/$domain/public_html/includes/resourceloader/ResourceLoaderImageModule.php(451): ResourceLoaderImageModule->getImages(ResourceLoaderContext)
#2 /home/customer/www/$domain/public_html/includes/resourceloader/ResourceLoaderImageModule.php(438): ResourceLoaderImageModule->getFileHashes(ResourceLoaderContext)
#3 /home/customer/www/$domain/public_html/includes/resourceloader/ResourceLoaderModule.php(859): ResourceLoaderImageModule->getDefinitionSummary(ResourceLoaderContext)
#4 /home/customer/www/$domain/public_html/includes/resourceloader/ResourceLoaderStartUpModule.php(207): ResourceLoaderModule->getVersionHash(ResourceLoaderContext)
#5 /home/customer/www/$domain/public_html/includes/resourceloader/ResourceLoaderStartUpModule.php(407): ResourceLoaderStartUpModule->getModuleRegistrations(ResourceLoaderContext)
#6 /home/customer/www/$domain/public_html/includes/resourceloader/ResourceLoaderModule.php(753): ResourceLoaderStartUpModule->getScript(ResourceLoaderContext)
#7 /home/customer/www/$domain/public_html/includes/resourceloader/ResourceLoaderModule.php(721): ResourceLoaderModule->buildContent(ResourceLoaderContext)
#8 /home/customer/www/$domain/public_html/includes/resourceloader/ResourceLoaderModule.php(856): ResourceLoaderModule->getModuleContent(ResourceLoaderContext)
#9 /home/customer/www/$domain/public_html/includes/resourceloader/ResourceLoader.php(772): ResourceLoaderModule->getVersionHash(ResourceLoaderContext)
#10 [internal function]: ResourceLoader->{closure}(string)
#11 /home/customer/www/$domain/public_html/includes/resourceloader/ResourceLoader.php(784): array_map(Closure, array)
#12 /home/customer/www/$domain/public_html/includes/resourceloader/ResourceLoader.php(871): ResourceLoader->getCombinedVersion(ResourceLoaderContext, array)
#13 /home/customer/www/$domain/public_html/load.php(51): ResourceLoader->respond(ResourceLoaderContext)
#14 /home/customer/www/$domain/public_html/load.php(38): wfLoadMain()
#15 {main}
Any insight as to how the recent Mediawiki upgrades might have affected Javascript? Naero91 (talk) 00:32, 20 August 2021 (UTC)
- > perhaps because I omitted essential files during the upgrade transfer.
- Yes, that sounds likely. That error sounds like there is some sort of version mismatch between some files somewhere. I would reccomend a clean install (keeping LocalSettings.php and images of course) Bawolff (talk) 00:37, 20 August 2021 (UTC)
Page form Issue on MW 1.35.3
HI i am facing this issue with page form. No form are showing on wiki Pages.
Error: No form was found on page using Page Form version 5.2.1.
I installed it through composer.
pls suggest, is any thing else I need to add for showing forms on wiki pages. Pooja2425 (talk) 14:20, 20 August 2021 (UTC)
can't upload mp4 files mediawiki 1.35.3
I'm trying to upload mp4 files , I have in LocalSetting.php the next variable:
$wgFileExtensions = array( 'mkv', 'mp3', 'mp4', 'png', 'gif', 'jpg', 'jpeg', 'd$
'xls', 'mpp', 'pdf', 'ppt', 'tiff', 'bmp', 'docx', 'xlsx',
'pptx', 'ps', 'odt', 'ods', 'odp', 'odg'
);
when I upload the file I receive the next message error:
[639146afe9eddb3e7ebd0c78] 2021-08-20 17:29:09: Excepción grave de tipo "Error" 90.74.93.225 (talk) 17:30, 20 August 2021 (UTC)
- I believe EmbedVideo doesn't work with the latest versions of MediaWiki. —TheDJ (Not WMF) (talk • contribs) 11:36, 21 August 2021 (UTC)
Parsoid-/RESTBase-Server (HTTP 403)
I tried to find a writeapi in filemanager on cpanel, but was not able to locate it... 70.162.164.250 (talk) 21:07, 20 August 2021 (UTC)
wiki appears without styles applied and images are missing
I upgraded from 1.31.6 to 1.36.1, and the information is there on pages, but with minimal styles and no images. I looked at this: Manual:Common errors and symptoms#The wiki appears without styles applied and images are missing but was not sure what is meant by: " Try to browse the load.php file of your MediaWiki installation with your web browser". Does this literally mean I should enter: [wiki server url]/load.php into my browser search bar?
If so, when I do that, I get: "500 Internal Server Error", which I take to be what that help section refers to as: "500 error responses from load.php urls" (which is confusing to me because I only have one "load.php" url, not many...
If what I get is indeed "500 error responses", then I'm instructed to "check the webserver's error log files to get more information of the errors". Unfortunately, this is hosted on a server at my University, and I don't believe I have direct access to the webserver's error log files. What should I ask the University IT people to check for, exactly? Is there anything else I might try on my end? OOS1859 (talk) 05:53, 21 August 2021 (UTC)
- Update: If I set $wgShowExceptionDetails = true in my LocalSettings.php file, I can't get the wiki to load - I get "500 Internal Server Error". However, if I comment $wgShowExceptionDetails = true out, I DO get the wiki data without any formatting... Huh? OOS1859 (talk) 06:17, 21 August 2021 (UTC)
- > re: showExceptionDetails 500
- Did you remember the semi-colon? Check also your apache/php error logs.
- > Does this literally mean I should enter: [wiki server url]/load.php into my browser search bar?
- That would probably give some info, but best would be to use the exact url. you can get this by opening the developer tab in your web browser and going to the network tab to see what load.php requests are there. Alternatively you can view source of the current page and look for <link or <script tags that have load.php in them and go to that url. Bawolff (talk) 13:03, 22 August 2021 (UTC)
Multiple values for a Module string
Hi everyone,
I'm having a problem with a module on sc.wiki, the Citation one. I'm trying to change the string n°1287 (" DeadURL = DeadURL:lower() ~= 'no' ") to make it possible to use both 'nono' and 'no' (two ways to say "no" in Sardinian, even if "nono" is way more used) as values to specify that an URL is not dead, but I don't know how to do it. My previous attempts (1, 2, 3) didn't work. How can I do that? L2212 (talk) 11:45, 21 August 2021 (UTC)
Not receiving email to activate new account registration
I have attempted to register 3 times and each time I get a on the screen that says "Activation Email successfully sent". No email has yet showed up and it isn't in my SPAM folder... PLEASE HELP!!!!! 204.77.163.55 (talk) 15:51, 21 August 2021 (UTC)
server stuck starting up how do fix it
how can fix it 2600:380:D99E:1C93:8922:A837:759A:2768 (talk) 16:44, 21 August 2021 (UTC)
Difficulty with login.
Very confusing. Please just delete anything related to email: hag0223@gmail.com. Just let me start over. I have supported wiki financially a few times. But this process is insane. Jerhag (talk) 17:44, 21 August 2021 (UTC)
Desktop Improvements will soon be available as default
Did you know?
According to our latest data, 88% of active editors of the 13 pilot wikis have decided to keep our improvements.
Within the next couple of weeks, the Wikimedia Foundation Web team will change the interface on MediaWiki.
Logged-in users will be able to keep the current look individually. A dedicated link will be available in the sidebar.
We are changing Wikimedia wikis to become friendlier websites. When we finish, the new desktop interface will be easier to use, more welcoming, and more intuitive. We are gradually deploying the improvements on more and more wikis.
We are changing one feature at a time. Each change is discussed, developed, and deployed separately. After improving all features, we will improve the overall look. We don't have any vision of the final effect.
What changes are we going to make?
So far, we have deployed:
- Reconfigured logo - which will allow us to make the header sticky (fixed at the top of the screen). The sticky header will include the search, article tabs, and the user menu.
- Collapsible sidebar - which allows to focus on the content. On some wikis, this has been a gadget.
- Limited content width in articles and similar pages (not special pages or other pages containing logs) - which makes reading and learning easier. For more details about this change, like what we would do with the empty space or how this relates to large tables, see our FAQ.
- Moved and improved search - which allows searching more quickly and effectively (provides pictures and descriptions of the search terms).
- Exposed language button - which helps to notice the interlanguage links and allows to switch between the languages more often. Language switching is up to 4 times faster!
- Conslolidated user menu - which makes it easier to understand the context of the links. Also, this will allow us to later make the header sticky.
We will deploy more features in the next months.
How will the changes work?
- The improved features will be visible by default both for logged-in and logged-out.
- These changes are for Vector only (it's the default skin). All users of Monobook or other skins will not see any difference.
- We will not change the article content (as marked on the graphic to the right). We will not remove any functionality.
- We test the changes a lot. This is how we know these truly are improvements.
- Our decisions are based on research (example) and community feedback (example) as well.
How can you participate?
- What is your impression? What do you like? What would you like to see changed? Ask below, or write to me. There's still a lot to refine!
- Subscribe to our newsletter.
- Read the pages of the project, and check our FAQ.
- Follow our messages about gadgets and scripts. We provide support to maintain their compatibility.
The project I've just introduced is called Desktop Improvements, it's developed by the WMF Web team, and my name is Szymon. SGrabarczuk (WMF) (talk) 22:23, 21 August 2021 (UTC)
- The deployment didn't happen as planned, and I'd like to apologize for that.
- I'm also pleased to announce that it will happen this week!
- Note that this change only affects Vector users. If you don't appreciate the change, you'll be able to opt out by clicking on a dedicated link in the sidebar. SGrabarczuk (WMF) (talk) 03:15, 12 January 2022 (UTC)
- @SGrabarczuk (WMF) Question. will this change also roll out in the defaults of the Vector extension (I think it should), and how have we prepared 3rd party users with instructions on actions to take if they want to update THEIR wikis ? (I'm thinking logo dimensions and where to host those logos etc).
- This is the primary skin of MediaWiki after all, so we should be taking external users into account. —TheDJ (Not WMF) (talk • contribs) 15:29, 12 January 2022 (UTC)
Can't delete files
I'm using MW 1.36.1. I can upload files without a problem, using the wiki or importImages.php. My images directory is symlinked to a different drive, and all permissions are properly set. Thumbnailing works fine. However, attempting to delete any file on the wiki causes the following error:
[26755c3f15971d7f17212d4d] /index.php?title=File:Wiki-background.jpg&action=delete Wikimedia\Rdbms\DBTransactionError: Explicit transaction still active. A caller may have caught an error. Open transactions: FileDeleteForm::doDelete TheFoilist (talk) 02:29, 22 August 2021 (UTC)
- can you enable mediawiki debug logging (see How to debug) and see if there are any exceptions or db errors in the debug log.
- Also check to see if disabling all extensions fixes the error. Bawolff (talk) 12:49, 22 August 2021 (UTC)
- Disabling extensions didn't change anything. I stopped using a symlink for my images directory, and the error stopped happening. I'll check the debug logs when I have time, but I can't think of a reason off the top of my head why using a symlink would affect only image deletion and not uploading or thumbnailing. TheFoilist (talk) 02:27, 23 August 2021 (UTC)
Jobs stuck in queue (active but execution failed)
I had tons of video transcoding jobs in the job queue and realized that it needs to be started manually. So I did and it all went surprisingly fast. The result of php maintenance/showJobs.php --group
now is:
webVideoTranscode: 0 queued; 403 claimed (403 active, 0 abandoned); 0 delayed
Upon closer inspection, I realized that the output of showJobs.php
runJobs.php
was about as follows for each and every video file:
2021-08-22 16:12:23 webVideoTranscode Datei:Video.webm transcodeMode=derivative transcodeKey=720p.webm prioritized= requestId=48a7910fbe6ac64ab8b7810e namespace=6 title=Video.webm (id=18218,timestamp=20200512205407) STARTING
2021-08-22 16:12:23 webVideoTranscode Datei:Video.webm transcodeMode=derivative transcodeKey=720p.webm prioritized= requestId=48a7910fbe6ac64ab8b7810e namespace=6 title=Video.webm (id=18218,timestamp=20200512205407) t=145 error='/usr/bin/ffmpeg' -nostdin -y -i '/var/www/html/mwiki/images/f/f8/Video.webm' -threads 3 -pix_fmt yuv420p -crf '10' -qmin '1' -qmax '51' -vb '2048000' -vcodec libvpx -slices '4' -g '240' -speed 4 -f webm -s 0x0 -max_muxing_queue_size 1024 -an -pass '1' -passlogfile '/tmp/transcode_720p.webm55e9e8ca8170.webm.log' /dev/null
Exitcode: 1
Memory: 2097152
ffmpeg version 4.2.4-1ubuntu0.1 Copyright (c) 2000-2020 the FFmpeg developers
built with gcc 9 (Ubuntu 9.3.0-10ubuntu2)
configuration: --prefix=/usr --extra-version=1ubuntu0.1 --toolchain=hardened --libdir=/usr/lib/x86_64-linux-gnu --incdir=/usr/include/x86_64-linux-gnu --arch=amd64 --enable-gpl --disable-stripping --enable-avresample --disable-filter=resample --enable-avisynth --enable-gnutls --enable-ladspa --enable-libaom --enable-libass --enable-libbluray --enable-libbs2b --enable-libcaca --enable-libcdio --enable-libcodec2 --enable-libflite --enable-libfontconfig --enable-libfreetype --enable-libfribidi --enable-libgme --enable-libgsm --enable-libjack --enable-libmp3lame --enable-libmysofa --enable-libopenjpeg --enable-libopenmpt --enable-libopus --enable-libpulse --enable-librsvg --enable-librubberband --enable-libshine --enable-libsnappy --enable-libsoxr --enable-libspeex --enable-libssh --enable-libtheora --enable-libtwolame --enable-libvidstab --enable-libvorbis --enable-libvpx --enable-libwavpack --enable-libwebp --enable-libx265 --enable-libxml2 --enable-libxvid --enable-libzmq --enable-libzvbi --enable-lv2 --enable-omx --enable-openal --enable-opencl --enable-opengl --enable-sdl2 --enable-libdc1394 --enable-libdrm --enable-libiec61883 --enable-nvenc --enable-chromaprint --enable-frei0r --enable-libx264 --enable-shared
WARNING: library configuration mismatch
avcodec configuration: --prefix=/usr --extra-version=1ubuntu0.1 --toolchain=hardened --libdir=/usr/lib/x86_64-linux-gnu --incdir=/usr/include/x86_64-linux-gnu --arch=amd64 --enable-gpl --disable-stripping --enable-avresample --disable-filter=resample --enable-avisynth --enable-gnutls --enable-ladspa --enable-libaom --enable-libass --enable-libbluray --enable-libbs2b --enable-libcaca --enable-libcdio --enable-libcodec2 --enable-libflite --enable-libfontconfig --enable-libfreetype --enable-libfribidi --enable-libgme --enable-libgsm --enable-libjack --enable-libmp3lame --enable-libmysofa --enable-libopenjpeg --enable-libopenmpt --enable-libopus --enable-libpulse --enable-librsvg --enable-librubberband --enable-libshine --enable-libsnappy --enable-libsoxr --enable-libspeex --enable-libssh --enable-libtheora --enable-libtwolame --enable-libvidstab --enable-libvorbis --enable-libvpx --enable-libwavpack --enable-libwebp --enable-libx265 --enable-libxml2 --enable-libxvid --enable-libzmq --enable-libzvbi --enable-lv2 --enable-omx --enable-openal --enable-opencl --enable-opengl --enable-sdl2 --enable-libdc1394 --enable-libdrm --enable-libiec61883 --enable-nvenc --enable-chromaprint --enable-frei0r --enable-libx264 --enable-shared --enable-version3 --disable-doc --disable-programs --enable-libaribb24 --enable-liblensfun --enable-libopencore_amrnb --enable-libopencore_amrwb --enable-libtesseract --enable-libvo_amrwbenc
libavutil 56. 31.100 / 56. 31.100
libavcodec 58. 54.100 / 58. 54.100
libavformat 58. 29.100 / 58. 29.100
libavdevice 58. 8.100 / 58. 8.100
libavfilter 7. 57.100 / 7. 57.100
libavresample 4. 0. 0 / 4. 0. 0
libswscale 5. 5.100 / 5. 5.100
libswresample 3. 5.100 / 3. 5.100
libpostproc 55. 5.100 / 55. 5.100
Input #0, matroska,webm, from '/var/www/html/mwiki/images/f/f8/Video.webm':
Metadata:
ENCODER : Lavf58.20.100
Duration: 00:08:03.33, start: 0.001000, bitrate: 414 kb/s
Stream #0:0: Video: vp8, yuv420p(progressive), 1280x720, SAR 1:1 DAR 16:9, 15 fps, 15 tbr, 1k tbn, 1k tbc (default)
Metadata:
ENCODER : Lavc58.35.100 libvpx
DURATION : 00:08:02.867000000
Stream #0:1: Audio: vorbis, 48000 Hz, stereo, fltp (default)
Metadata:
ENCODER : Lavc58.35.100 libvorbis
DURATION : 00:08:03.327000000
Invalid frame size: 0x0.
This happens on MW-1.35.3. Can anyone help me with the following questions/problems:
Is there a way to restart these jobs from scratch?
What could be the cause of the jobs failing?
Many thanks in advance! Sm8ps (talk) 17:12, 22 August 2021 (UTC)
- there is something wrong with metadata extraction during upload (not during job processing, before that step) - it thinks the files have dimension 0x0. Maybe mw cant execute ffprobe.
- You can maybe refresh with Manual:refreshImageMetadata.php Bawolff (talk) 17:38, 22 August 2021 (UTC)
- Many thanks for your input, Bawolff! Meanwhile, I have checked the command
/usr/bin/ffmpeg -nostdin -y -i Video.webm -threads 3 -pix_fmt yuv420p -crf '10' -qmin '1' -qmax '51' -vb '2048000' -vcodec libvpx -slices '4' -g '240' -speed 4 -f webm -s 0x0 -max_muxing_queue_size 1024 -an -pass '1' -passlogfile '/tmp/transcode_720p.webm55e9e8ca8170.webm.log' /dev/null
- on the command line and it does produce the very same error output "Invalid frame size: 0x0.". This is due to the option
-s 0x0
that seems to be inserted ahead of time via meta-data inspection as you say. - The command ffprobe is freely executable by the user web-server user www-data. I tried the maintenance script refreshImageMetadata.php on one single file, however, the status of the job queue does not change. The only meta-data listed on the file page is "Software: Lavf58.20.100, Lavf58.20.100". Sm8ps (talk) 19:53, 22 August 2021 (UTC)
- I just discovered the extension-local maintenance script 'extensions/TimedMediaHandler/maintenance/requeueTranscodes.php' while looking at the Phabricator page of timedmediahandler-transcode. However, that does does not seem so promising as the error happens while launching the proper transcoding step. Does that seem correct? -- I have very little experience with this kind of technology. Sm8ps (talk) 20:19, 22 August 2021 (UTC)
Call Wikipedia templates on my site
Hi How can I call Wikipedia templates on my site? Like InterWiki, I want to call the template instead of calling the link
Thanks Sokote zaman (talk) 20:07, 22 August 2021 (UTC)
- $wgEnableScaryTranscluding Bawolff (talk) 01:45, 23 August 2021 (UTC)
- To do this, there is a configuration for the MediaWiki side, which you must enter in the MediaWiki file configuration:
- code:
- $ wgEnableScaryTranscluding = true;
- There is also a configuration on the database that tells you to edit the iw_trans table. I did not find such a table in the database at all. Sokote zaman (talk) 19:43, 20 September 2021 (UTC)
- 🌹🌹🌹 Sokote zaman (talk) 06:58, 23 August 2021 (UTC)
How to remove download button from sidebar in mediawiki
Hi,
how to remove "download as pdf" button from sidebar in mediawiki 135.3. As I did not added this button. It came automatically. As I have tried to find this in included/skin/Skin.php but not found there.
Please suggest. Akki30 (talk) 10:16, 23 August 2021 (UTC)
- Either go to https://yourwiki/somerandompage?uselang=qqx and then search the codebase for the message ID displayed and fiddle with the code, or check the HTML and set up custom CSS in order to
display: none
that item. Malyacko (talk) 13:42, 23 August 2021 (UTC) - i think that's part of the collection extension (or maybe electron) Bawolff (talk) 03:14, 24 August 2021 (UTC)
Restbase title not found on some rest endpoints
I have a local mediawiki 1.35 with parsoid and restbase configured, running on different ports.
I can see some endpoints working correctly, such as:
http://restbase.mw.localhost:7231/default.web.mw.localhost/v1/page/title/Main_Page
but html for the same page does not work:
http://restbase.mw.localhost:7231/default.web.mw.localhost/v1/page/html/Main_Page
{"type":"https://mediawiki.org/wiki/HyperSwitch/errors/not_found","title":"Not found.","method":"get","uri":"/default.web.mw.localhost/v1/page/html/Main_Page"}
any idea what could be wrong here? Joanccb (talk) 14:46, 23 August 2021 (UTC)
How to keep any search engine from assorted namespaces?
The following discussion is closed. Please do not modify it. Subsequent comments should be made on the appropriate discussion page. No further edits should be made to this discussion.
Hello.
I'd like to exclude all search engines to crawl articles that are not published and therefore kept in a special namespace (e.g. SANDBOX or SPIELPLATZ). Running Mediawiki 1.35.3, planning to upgrade to 1.36.1.
How can I reach this?
Thanks in advance. Thomas Ingenpass (talk) 15:59, 23 August 2021 (UTC)
- Manual:$wgNamespaceRobotPolicies. Set 'noindex' to the namespaces you want crawlers to not index. Ciencia Al Poder (talk) 17:39, 25 August 2021 (UTC)
- Hi Ciencia.
- So I simply have to add
- $wgNamespaceRobotPolicies[SANDBOX] = 'noindex';
- (as an example) to my LocalSettings.php?
- Thanks in advance. Thomas Ingenpass (talk) 09:13, 26 August 2021 (UTC)
- Only if SANDBOX is a constant that points to a valid namespace number. Ciencia Al Poder (talk) 16:52, 26 August 2021 (UTC)
- Hi Ciencia.
- Namesapce-Number? In our Wiki we only use "SANDBOX:" as our workbench to prepare articles for the public.
- I'll give it a try and we'll se.
- Thanks for your replies. Thomas Ingenpass (talk) 08:24, 27 August 2021 (UTC)
- Well,
- I have added the follwoing to our LocalSettings.php:
- // Define constants for my additional namespaces.
- define("NS_PLAYGROUND", 3000); // Das MUSS so sein.
- define("NS_PLAYGROUND_TALK", 3001); // This MUST be the following odd integer.
- // Füge Namensräume hinzu.
- $wgExtraNamespaces[NS_PLAYGROUND] = "Playground";
- $wgExtraNamespaces[NS_PLAYGROUND_TALK] = "Playground_talk"; // Note underscores in the namespace name.
- $wgNamespaceRobotPolicies['PLAYGROUND'] = 'noindex';
- I hope this will work. Thomas Ingenpass (talk) 09:01, 27 August 2021 (UTC)
- You should change your last line with:
$wgNamespaceRobotPolicies[NS_PLAYGROUND] = 'noindex';
Ciencia Al Poder (talk) 09:59, 27 August 2021 (UTC)- Hi Ciencia.
- Changed it, let's see waht will happen. ;-)
- Kind regards. Thomas Ingenpass (talk) 13:23, 27 August 2021 (UTC)
Páginas Sumindo
toda vez que eu crio uma página atualizo ela some automaticamente e não sei o que pode ser de repente todas as páginas de predefinição e algumas outras sumiram alguém me ajuda. Genuino467 (talk) 17:49, 23 August 2021 (UTC)
- @Genuino467 Hi, please see "Post a new question" in the sidebar. Which MediaWiki version do you run? Which exact steps do you perform? What happens? What does not happen? Malyacko (talk) 18:56, 23 August 2021 (UTC)
- Eu uso o Miraheze ou seja está tudo na ultima versão. Genuino467 (talk) 23:55, 23 August 2021 (UTC)
- See my other questions. Malyacko (talk) 06:11, 24 August 2021 (UTC)
no longer have access to user email address
Hi there - how to I reset a password for an account that no longer has access to the associated email address? 209.43.67.82 (talk) 22:27, 23 August 2021 (UTC)
wikipedia page deleted
WHY WAS MY WIKIPEDIA PAGE DELETED ? I AM A PUBLIC PERSON ? 2603:8001:B301:3F7D:10E9:B99D:B57E:5249 (talk) 23:54, 23 August 2021 (UTC)
MediaWiki internal error.
Hi, MW 1.35.0 , SMW 3.2.0
the error occurred after another error was fixed (or maybe it was an accident).
The first error was like here and I followed the advice on line 129.
https://phabricator.wikimedia.org/T249172.
$possibleTypes = $smwgContLang->getDatatypeLabels();.
the variable $smwgContLang is no longer available (thats why the error msg tells that the function "getDatatypeLabels" is called on null). change the code as following: $possibleTypes = smwfContLang()->getDatatypeLabels();.
Now my MediaWiki internal error..Any ideas please?
Original exception: [3aa98e12fa850c116f13fca3] /index.php/%D0%A1%D0%BB%D1%83%D0%B6%D0%B5%D0%B1%D0%BD%D0%B0%D1%8F:%D0%9D%D0%B0%D1%81%D1%82%D1%80%D0%BE%D0%B9%D0%BA%D0%B8 MWException from line 129 of D:\localhost\OpenServer\domains\green\includes\MagicWord.php: Error: invalid magic word 'bootstrap_badge'.
Backtrace:.
- 0 D:\localhost\OpenServer\domains\green\includes\MagicWordFactory.php(230): MagicWord->load()
- 1 D:\localhost\OpenServer\domains\green\includes\parser\Parser.php(4869): MagicWordFactory->get()
- 2 D:\localhost\OpenServer\domains\green\extensions\BootstrapComponents\src\Hooks\ParserFirstCallInit.php(96): Parser->setFunctionHook()
- 3 D:\localhost\OpenServer\domains\green\extensions\BootstrapComponents\src\HookRegistry.php(222): BootstrapComponents\Hooks\ParserFirstCallInit->process()
- 4 D:\localhost\OpenServer\domains\green\includes\HookContainer\HookContainer.php(320): BootstrapComponents\HookRegistry->BootstrapComponents\{closure}()
- 5 D:\localhost\OpenServer\domains\green\includes\HookContainer\HookContainer.php(131): MediaWiki\HookContainer\HookContainer->callLegacyHook()
- 6 D:\localhost\OpenServer\domains\green\includes\HookContainer\HookRunner.php(2964): MediaWiki\HookContainer\HookContainer->run()
- 7 D:\localhost\OpenServer\domains\green\includes\parser\Parser.php(532): MediaWiki\HookContainer\HookRunner->onParserFirstCallInit()
- 8 D:\localhost\OpenServer\domains\green\includes\parser\Parser.php(477): Parser->firstCallInit()
- 9 D:\localhost\OpenServer\domains\green\includes\parser\ParserFactory.php(142): Parser->__construct()
- 10 D:\localhost\OpenServer\domains\green\includes\ServiceWiring.php(816): ParserFactory->create()
- 11 D:\localhost\OpenServer\domains\green\vendor\wikimedia\services\src\ServiceContainer.php(447): Wikimedia\Services\ServiceContainer->{closure}()
- 12 D:\localhost\OpenServer\domains\green\vendor\wikimedia\services\src\ServiceContainer.php(416): Wikimedia\Services\ServiceContainer->createService()
- 13 D:\localhost\OpenServer\domains\green\includes\MediaWikiServices.php(1000): Wikimedia\Services\ServiceContainer->getService()
- 14 D:\localhost\OpenServer\domains\green\includes\cache\MessageCache.php(1249): MediaWiki\MediaWikiServices->getParser()
- 15 D:\localhost\OpenServer\domains\green\includes\cache\MessageCache.php(1228): MessageCache->getParser()
- 16 D:\localhost\OpenServer\domains\green\includes\language\Message.php(1287): MessageCache->transform()
- 17 D:\localhost\OpenServer\domains\green\includes\language\Message.php(894): Message->transformText()
- 18 D:\localhost\OpenServer\domains\green\includes\language\Message.php(954): Message->toString()
- 19 D:\localhost\OpenServer\domains\green\includes\OutputPage.php(944): Message->text()
- 20 D:\localhost\OpenServer\domains\green\includes\OutputPage.php(993): OutputPage->setHTMLTitle()
- 21 D:\localhost\OpenServer\domains\green\includes\specialpage\SpecialPage.php(575): OutputPage->setPageTitle()
- 22 D:\localhost\OpenServer\domains\green\includes\specials\SpecialPreferences.php(41): SpecialPage->setHeaders()
- 23 D:\localhost\OpenServer\domains\green\includes\specialpage\SpecialPage.php(600): SpecialPreferences->execute()
- 24 D:\localhost\OpenServer\domains\green\includes\specialpage\SpecialPageFactory.php(635): SpecialPage->run()
- 25 D:\localhost\OpenServer\domains\green\includes\MediaWiki.php(307): MediaWiki\SpecialPage\SpecialPageFactory->executePath()
- 26 D:\localhost\OpenServer\domains\green\includes\MediaWiki.php(940): MediaWiki->performRequest()
- 27 D:\localhost\OpenServer\domains\green\includes\MediaWiki.php(543): MediaWiki->main()
- 28 D:\localhost\OpenServer\domains\green\index.php(53): MediaWiki->run()
- 29 D:\localhost\OpenServer\domains\green\index.php(46): wfIndexMain()
- 30 {main} Mdyug (talk) 05:48, 24 August 2021 (UTC)
Getting error in MPDF
- Please read "Post a new question" in the sidebar. Malyacko (talk) 07:15, 24 August 2021 (UTC)
- HI,
- We are using wiki 1.35.3 and 1.35.1 , with php 7.4 in RHEL 7.9 (Red hat Linux) and MySQL 8
- Error:
- $wgMpdfSimpleOutput=true;
- When I make it fales its giving error
- The printable version is no longer supported and may have rendering errors. Please update your
- browser bookmarks and please use the default browser print function instead.
- when I make it true , its not giving image in pdf. Akki30 (talk) 07:43, 24 August 2021 (UTC)
- Any Suggestion on above query..
- Adding new issue here as well.
- In My PDF image is not coming and in header I am getting URL, how Can I remove URE from PDF header??
- TIA Akki30 (talk) 08:33, 1 September 2021 (UTC)
- Just had to handle the same problems, waiting for mantainer fix you can try this:
- Issue with printableversion-deprecated-warning when rendering HTML: in MpdfActions.php add the following line in bold:
...
$html = preg_replace('#<div class="warningbox">(.*?)</div>#', '', $html);
$mpdf->WriteHTML( $html );
...
- It will strip the div added by the output() function.
- Note: this warning was added in MW 1.35, there might be a reason for that..
- Issue with Custom Footer (or header): check my post Extension talk:Mpdf/Archive 2/Flow export#h-Mpdftags_parsing_and_full_copatibility_with_mPDF_library-2022-05-11T07:19:00.000Z
- This will allow you to use mpdf supported Method 4
- For example you should be able to define your footer with something like:hence you can adjust your footer as html as you prefere.
{{#mpdftags: <htmlpagefooter name="MyFooter1" > <table width="100%" > <tr> <td colspan=3 style="text-align: center; "><img src="{{filepath:MyFooterImage.png}}" width="100%" /></td> </tr> <tr> <td width="33%"><span style="font-weight: bold; font-style: italic;">{DATE j-m-Y}</span></td> <td width="33%" align="center" style="font-weight: bold; font-style: italic;">{PAGENO}/{nbpg}</td> <td width="33%" style="text-align: right; ">{{PAGENAME}}</td> </tr> </table> </htmlpagefooter> <sethtmlpagefooter name="MyFooter1" value="on" /> }}
- mik Michele.Fella (talk) 00:27, 16 June 2022 (UTC)
MediaWiki support
Hello,
I would like to confirm how long MediaWiki will be supporting its platform. Will there be any changes that may change how MediaWiki supports users or new updates coming up?
Thanks 199.212.150.5 (talk) 13:32, 24 August 2021 (UTC)
- See https://en.wikipedia.org/wiki/MediaWiki_version_history#Timeline for version support. Malyacko (talk) 13:48, 24 August 2021 (UTC)
Change color of titlebar
- Hello,
- is it possible to change the color of the "Topbar" in the Skin Timeless?
- With Topbar I mean the bar on the top with the Wikiname, Searchbar and Username.
- Thanks for your help! Benz1337 (talk) 13:44, 24 August 2021 (UTC)
- You can overwrite any CSS with different CSS: Manual:CSS Malyacko (talk) 18:38, 24 August 2021 (UTC)
- Yes this is possible. Welcome ↠Tanbirzx (✉) 17:27, 24 August 2021 (UTC)
error load.php?debug=false&lang=ro&modules=site.styles&only=styles&skin=vector
Mediawiki 1.30
After I change the php version for my site, the call works. But after a while it gives error.
First I was on php 7.3. I switched to 7.0. It worked. I switched to 7.4 it worked. After a few hours it gave error again. I switched back to 7.3. Now it works again but I don't know for how long...
Are these css coming from an external server of from whithin the mediawiki installation?
load.php?debug=false&lang=ro&modules=site.styles&only=styles&skin=vector 2A02:A58:843B:A900:2901:8A9A:550D:E74B (talk) 18:15, 24 August 2021 (UTC)
- See Compatibility#PHP. Also, 1.30 is an unsupported, ancient, and now insecure MediaWiki version. Please upgrade for your own safety. Malyacko (talk) 19:01, 24 August 2021 (UTC)
- @MalyackoThank you.
- This morning it happening again.
- Refused to apply style from 'oad.php?debug=false&lang=ro&modules=mediawiki.legacy.commonPrint%2Cshared%7Cmediawiki.sectionAnchor%7Cmediawiki.skinning.interface%7Cskins.vector.styles&only=styles&skin=vector' because its MIME type ('text/html') is not a supported stylesheet MIME type, and strict MIME checking is enabled.
- load.php:1 Failed to load resource: the server responded with a status of 500 ()
- index.php:1 Refused to apply style from 'load.php?debug=false&lang=ro&modules=mediawiki.legacy.commonPrint%2Cshared%7Cmediawiki.sectionAnchor%7Cmediawiki.skinning.interface%7Cskins.vector.styles&only=styles&skin=vector' because its MIME type ('text/html') is not a supported stylesheet MIME type, and strict MIME checking is enabled.
- If I try to access those urls (including debug=false&lang=ro&modules=startup&only=scripts&skin=vector) directly I get something like:
- [YSXOSfE12ubpsZ2UQIUMGgABrhI] 2021-08-25 04:59:53: Fatal exception of type „Error”
- I use PHP Version 7.3.27 and PHP Version 7.4.16.
- Regarding the update, I am tired of these css issues that appeared a long time ago... The update process is not so easy and this error is quite common for mediawiki. I would not be surprised if with 1.36 the issue appeared again... 2A02:A58:843B:A900:C16C:2A0D:7FD2:F0C (talk) 05:07, 25 August 2021 (UTC)
- @Malyacko I moved to php 7.0 to see if the issue keeps occurring. I must wait until morning to see if the error appears again. 2A02:A58:843B:A900:B4D7:CD95:C11D:8FCB (talk) 17:35, 25 August 2021 (UTC)
- Please also share the actual "error" and where to see some error and why you think that there is an error. Malyacko (talk) 07:13, 26 August 2021 (UTC)
- @Malyacko It seems the issue is not appearing after more than 12 hours after I switched to php 7.0 (that is recommended for mediawiki 1.30).
- The error is posted above already. That Is all I got.
- It looks something like this for the ?load.php... calls:
- [YSXOSfE12ubpsZ2UQIUMGgABrhI] 2021-08-25 04:59:53: Fatal exception of type „Error” 2A02:A58:843B:A900:EC0D:1C10:779:7220 (talk) 11:41, 26 August 2021 (UTC)
- See Manual:How_to_debug how to provide a stacktrace Malyacko (talk) 05:59, 27 August 2021 (UTC)
- This is a response, so the error is catched and printed. Many have tried from what I've read online and got nowhere. Now it is on php 7.1 from yesterday and the error dit not appear again. Thank you. The fix was to change the php version to the suported one. 178.138.98.218 (talk) 06:17, 27 August 2021 (UTC)
Highlightjs Integration Breaks When Adding New Languages
Hi Mediawiki,
After following the directions at "Extension:Highlightjs Integration" to add new languages and refreshing there is no syntax highlighting available. There is an error in the console of my browser:
"Uncaught SyntaxError: Invalid regular expression: missing /"
at the following location (the first line is the error line in the following block) in the code:
delete r.keywords.$pattern),l=l||/
\w+/,r.keywords&&(r.keywords=P(r.keywords,e.case_insensitive)),
a.keywordPatternRe=t(l,!0),
in the highlight.min.js file (as perhaps translated through mediawiki? - The actual code referenced above was found in the highlight.min.js file however the browser is finding it in load.php)
When I opened the source file the syntax doesn't look incorrect, looking at the formatting above it looks like the interpreter is looking for a closing slash on the "delete r.keywords.$pattern),l=l||/" line and isn't finding it because it's on the next line. In the original file there is no such line break (its minified so there are no line breaks).
I did as the directions suggested and created the new "highlight" directory from a custom download from their site and changed the script reference to the minified version of the file and the style to the minified version of the file. Everything looks correct regarding following the directions.
FYI at some point when trying to figure it out I tried referencing the non-minified version of the highlight script and was also seeing unintended line breaks at the single quotes. Not sure if Mediawiki is reformatting these files before they reach the interpreter but it looks like if it is it may be adding line breaks that are not in the original code(?).
Any help on this would be greatly appreciated, thanks! FYI I can no longer use GeSHi due to Windows discontinuing Python file extension support on the version of IIS we're using, otherwise we'd still be using that.
Using MediaWiki version 1.28.0 Bpcoop (talk) 20:06, 24 August 2021 (UTC)
Titles
Hi, I hope you can understand, since I am new to this!
I want to know how I can add these pages that redirect to another page of my wiki!
I am attaching a photo to refer to what I want to add
JPG. 168.228.140.51 (talk) 23:31, 24 August 2021 (UTC)
- You should edit MediaWiki:Sidebar on your wiki. – Ammarpad (talk) 04:17, 25 August 2021 (UTC)
How to remove noindex from Recent Changes webpage?
MediaWiki 1.35.2.
I feel bad that RecentChanges isn't scanned by crawling bots because it can act as a compact down-to-earth pseudo-sitemap, significantly enhancing the crawlability of my website.
How to remove noindex from Recent Changes webpage? 2001:44C8:4119:A9AE:54F8:6FCD:43EC:5B39 (talk) 03:12, 25 August 2021 (UTC)
- What is the PHP that adds it to MediaWiki for starters? I might try to change it. 2001:44C8:4119:A9AE:54F8:6FCD:43EC:5B39 (talk) 16:54, 25 August 2021 (UTC)
- Don't do that. Such a dynamic page will confuse the search engine.
- MediaWiki already supports sitemaps. Why don't use them? It will index that page, but not use it to fetch changes on those pages! Also, it's full of diff and history links that you don't want search engines to crawl them.
- Google supports atom/rss sitemaps. You can get the Special:NewPages feed to crawl new pages. Ciencia Al Poder (talk) 17:38, 25 August 2021 (UTC)
- @Ciencia Al Poder
- I already use a sitemap but seek some shorter crawlable recent content list without "gambling" about how a spiderbot would crawl the very long sitemap data structure.
- If by "will confuse the search engine" you meant to the later mentioned "it's full of diff and history links that you don't want search engines to crawl them" I can understand what you mean but it's funny that these are somehow being crawled anyway.
- Special:NewPages you say, hmm, I don't think I ever visited that, I should check it out, thanks, 2001:44C8:4119:A9AE:B140:FC7D:E2C2:1EBB (talk) 10:34, 26 August 2021 (UTC)
- I have found this in the HTML source of Special:Newpages Should it be there or did you clue for me to try to remove it somehow? 2001:44C8:4119:A9AE:B140:FC7D:E2C2:1EBB (talk) 10:36, 26 August 2021 (UTC)
<meta name="robots" content="noindex,nofollow"/>
- If you provide a sitemap, the sitemap tells the spiderbot about every crawlable page and the last time it was edited. That's the point of a sitemap. If the spiderbot doesn't care about that date, do you think it will look at random links appearing on a page with no meaningful content and crawl them again?
- The HTML you should look at is this one:
<li id="feedlinks"><a href="/w/index.php?title=Special:NewPages&feed=atom&hideredirs=1&limit=50&offset=&namespace=0&username=&tagfilter=&size-mode=max&size=0" id="feed-atom" rel="alternate" type="application/atom+xml" class="feedlink" title="Atom feed for this page">Atom</a></li>
- You can go to google search console and add it as a new sitemap. Ciencia Al Poder (talk) 14:20, 26 August 2021 (UTC)
- @Ciencia Al Poder it might look on such links if I put them in some box in the main page and there appears up to say 5-10 links total.
- Please let me get this straight, instead of using the traditional MediaWiki sitemap created with generatesitemap.php? 2001:44C8:4119:A9AE:71CD:DC60:8E60:6549 (talk) 03:49, 27 August 2021 (UTC)
- Read: https://developers.google.com/search/docs/advanced/sitemaps/build-sitemap?hl=en Ciencia Al Poder (talk) 09:57, 27 August 2021 (UTC)
My book on freee Media
Dear Wikipedia. Someone has made my book "Bards from the Nobel land" open as a free book to be read on PDF-file on Wikipedia. How can I make sure it is to be closed? Since early Lis Lovén
lislovn46@yahoo.se 31.208.199.118 (talk) 04:55, 25 August 2021 (UTC)
Unable to query external MSSQL
Hi there,
I have set up my mediawiki on a Windows Server 2019 (Win1) and I have an MSSQL server on another Windows Server 2019 (Win2). I want to make a wiki page on Win1 which queries Win2 and uses the output on the page. I tried to use the ExternalData extension, but when I try to query with this code
{{#get_db_data: db=sqleido |from=Project as p |where=p.ProjectID='{{{ID}}}' |data=projectID=p.ProjectID,projectName=p.ProjectName }}
I get this message
Error: Unknown database type mssql.
In my LocalSetting.php I have added the following lines
wfLoadExtension( 'ExternalData' );$edgDBServer['sqleido'] = "SERVER";
$edgDBServerType['sqleido'] = "mssql";
$edgDBName['sqleido'] = "DBNAME";
$edgDBUser['sqleido'] = "DBUSER";
$edgDBPass['sqleido'] = "PASSWORD";
77.233.233.70 (talk) 08:29, 25 August 2021 (UTC)
- I accidently posted before I was done...
- I have put these lines in my LocalSettings.php
- wfLoadExtension( 'ExternalData' );
- $edgDBServer['sqleido'] = "SERVER";
- $edgDBServerType['sqleido'] = "mssql";
- $edgDBName['sqleido'] = "DBNAME";
- $edgDBUser['sqleido'] = "DBUSER";
- $edgDBPass['sqleido'] = "PASSWORD";
- I have also tried using the Microsoft SQL Drivers. For this approach I put the dll files in the php extension folder and add these lines to my php.ini in the extensions section
- extension=php_sqlsrv_80_ts_x64.dll
- extension=php_pdo_sqlsrv_80_ts_x64.dll
- and then I wrote the same in the LocalSettings.php but with
- $edgDBServerType['sqleido'] = "sqlsrv";
- instead. I guess there is a way to do this, while I am doing this wrong, so any help would be appreciated.
- Best wishes
- Luis 77.233.233.70 (talk) 08:41, 25 August 2021 (UTC)
Number of pages
Hi,
We are trying to clean up our wiki page, but the number of pages does not decrease. How can we fix this? 129.177.146.99 (talk) 10:59, 25 August 2021 (UTC)
- Are you deleting them? They should update, but if that fails, you can try initSiteStats.php Ciencia Al Poder (talk) 17:41, 25 August 2021 (UTC)
Change .svg icons in skins
RESOLVED | |
I solved this issue - the problem was that I forgot to reduce the layout in corel |
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 change the vector icons that are used in the navigation of the header (ex.user icon). I open .svg in the program Corel Draw, change it, save, upload, but there is an empty space instead of the icon . Please tell me maybe there is some guide on this issue or a guide to settings when saving or anything else that could solve the problem? Mdyug (talk) 12:41, 25 August 2021 (UTC)
"This site can’t be reached" when attempting to connect via my domain
Hi all,
I am working with a brand new install using Bitnami MediaWiki running on an AWS EC2 instance. I had no problem connecting with my IP, but I am running into issues trying to attach the site to my domain. Here is the technical setup:
I set up a DNS A record that points to my static IP, and I set $wgServer = 'http://www.myDomain.com';
The Chrome error is "DNS_PROBE_FINISHED_NXDOMAIN".
Any ideas? I've noticed that when I go to myIP:80, I get redirected to "http://www.myDomain.com/wiki/Main_Page" and get the same error. However, I can access myIP:80/wiki/Main_Page just fine. 129.219.21.228 (talk) 20:44, 25 August 2021 (UTC)
Database default username and password
I am trying to install Mediawiki 1.34.4, I do not know what is the default database username and password for MySQL from the Ubuntu repositories. I tried various usernames, without sucess. Draheinsunvale (talk) 23:13, 25 August 2021 (UTC)
- Note that 1.34 is an outdated, unsupported, insecure version that Ubuntu seems to ship to its users. The database username and password is whatever you set on your system when you set up MySQL as an administrator. Malyacko (talk) 07:10, 26 August 2021 (UTC)
- The documentation says a random password is generated during install, then displayed on the server logs. But I do not have access to these logs. Draheinsunvale (talk) 17:10, 26 August 2021 (UTC)
- Documentation for what exactly? Please link to the documentation. Malyacko (talk) 05:58, 27 August 2021 (UTC)
- The MySQL documentation https://dev.mysql.com/doc/refman/8.0/en/default-privileges.html Draheinsunvale (talk) 21:32, 27 August 2021 (UTC)
- Just ask the hosting company to set up a new database for you, and take a note of the username/password. Jonathan3 (talk) 22:24, 27 August 2021 (UTC)
Not able to set a logo
Hello,
I'm trying to set my logo but the upper right corner become blank:
In my LocalSettings.php I added this line: $wgLogos = [ '1x' => "$wgResourceBasePath/logo_z.png" ];
Is there something else that I need to do?
Thanks,
Guillaume Guillaumesoucy94 (talk) 06:53, 26 August 2021 (UTC)
- Maybe try the full path without using $wgResourceBasePath. Manual:$wgLogos says:
- All values (except
width
andheight
) can either be a fully-qualified URL or a relative path from DOCUMENT_ROOT.
- All values (except
- I'm guessing as I'm still on 1.34 (oh dear). Jonathan3 (talk) 22:23, 27 August 2021 (UTC)
Mediawiki - LDAPProvider Plugin
Anyone knows how to configure this plugin? I have already tried all ways that are called in this Dokumentation but i don't even get an error message :( 62.26.157.34 (talk) 11:36, 26 August 2021 (UTC)
A question about templates and template data
Hello everyone. I'm trying to implement Infoboxes to my wiki. Here are my basic codes:
Problem is, when I used template code on the pages, parameter names are rendering as "parameter name", not "Parameter Name", which is how I want them to be.
How can I make parameters to render with starting by capital letters or even with another name? 95.10.236.48 (talk) 11:53, 26 August 2021 (UTC)
- Another question: I dont want to use all parameters on pages, when I remove a parameter from template code in a page, it renders that parameter too. How can I hide the unused parameters? 95.10.236.48 (talk) 12:20, 26 August 2021 (UTC)
- Jonathan3 (talk) 22:18, 27 August 2021 (UTC)
{| class="infobox" ! colspan="2" style="text-align: center;" |{{{name|}}} |- ! Minimum level |{{{minimum_level|}}} |- ! Maximum level |{{{maximum_level|}}} |}
- The bit after ! is plain text and will show however you type it.
- Adding the | within the {{{}}} is essentially saying, "Show minimum_level if it exists otherwise show the empty string that's after the |." Jonathan3 (talk) 22:19, 27 August 2021 (UTC)
- you might be interested in help:extension:ParserFunctions {{#if: can be useful for optional parameters. Bawolff (talk) 23:25, 29 August 2021 (UTC)
- I've not checked this either but I hope it would skip the "Maximum level" row if no maximum_level parameter is sent to the template.
- Jonathan3 (talk) 20:26, 30 August 2021 (UTC)
{| class="infobox" ! colspan="2" style="text-align: center;" | {{{name|}}} |- ! Minimum level | {{{minimum_level|}}} {{#if:{{{maximum_level|}}} | |- ! Maximum level | {{{maximum_level}}} }} |}
- I think you need to turn some of those | into {{!}}, but honestly i can never remember the rules. Bawolff (talk) 05:12, 1 September 2021 (UTC)
Why won't my wiki display properly in Internet Explorer?
My wiki looks fine in the Firefox, Chrome and Opera web browsers but when it comes to Internet Explorer everything looks terrible.
Here are some screenshots:
Firefox: https://ibb.co/SX9c38j
Opera: https://ibb.co/QYsHsHr
Chrome: https://ibb.co/CHyNbwS
and finally, the infamous Internet Explorer: https://ibb.co/vXvRMRN
How can I fix this and make the wiki display properly in IE as well? MrJConstantine (talk) 13:40, 26 August 2021 (UTC)
Pictures missing in 1.36.1
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.
Today I updated from 1.35.3 to 1.36.1. Everything worked well but now all images are "missing" to be displayed.
The images-folder is present and contains all previous pictures. But I can't see them even with the special pages/media files.
Here's the link to our wiki: -> https://wiki.utdx.de/index.php
Any idea?
Thanks in advance and kind regards. Thomas Ingenpass (talk) 13:25, 27 August 2021 (UTC)
- No clue, but opening an image directly gives 500 server error. https://wiki.utdx.de/images/thumb/8/82/Xyl.png/250px-Xyl.png —TheDJ (Not WMF) (talk • contribs) 23:21, 28 August 2021 (UTC)
- Problem solved! *biggrin*
- I've checked the error-log and found the following entry:
- /var/www/vhosts/utdx.de/wiki.utdx.de/images/.htaccess: Option FollowSymLinks not allowed here, referer: https://www.mediawiki.org/
- This happend to another wiki-user in 2015: https://www.mediawiki.org/wiki/Project%3ASupport%20desk/Flow/2015/09#h-MediaWiki_can%27t_find_a_picture.-2015-09-12T12%3A31%3A00.000Z
- I have changed the .htaccess in the /images/-folder to
- <IfModule rewrite_module>
- RewriteEngine On
- RewriteOptions inherit
- # Fix for bug T64289
- Options +SymLinksIfOwnerMatch
- </IfModule>
- and now it works.
- Hope this is helpful to other users.
- Have a nixe sunday and stay safe!
- Kind regards Thomas Ingenpass (talk) 08:38, 29 August 2021 (UTC)
Display automatically-generated-webpages somewhere
MeidaWiki 1.35.2.
I would like to display several automatically-generated-webpages somewhere (in my case it happens to be the main page), compactically and aesthetically.
Mobile first view
| New pages | | ----------------- | | Recent changes | | ----------------- | | New categories | | ----------------- | | Recommended pages |
Desktop view
| New pages | Recent changes | | -------------- | ----------------- | | New categories | Recommended pages |
(the text is just an example, it may not necessary be the end product).
I use Skin:Timeless and have decent knowledge in CSS so I can do the griding myself with display:block
and display:flex respectically
but my question is how to actually draw the data from the database in each pageload? 2001:44C8:4119:A9AE:D99F:987A:B321:C3A6 (talk) 10:26, 28 August 2021 (UTC)
- some special pages can be transcluded like {{Special:RecentChanges}} Bawolff (talk) 07:00, 29 August 2021 (UTC)
- @Bawolff I notice that you have started with "some", is there a list somewhere? I am curious to know how much this list would resemble the pages I have included in my question. 182.232.5.195 (talk) 14:08, 29 August 2021 (UTC)
- And by the way, why isn't there a general template to which we will just pass an argument (i.e. the relevant page), wouldn't that be much simpler than hardcoding names and would solve some problems? Than we could also share basically any page ! 182.232.5.195 (talk) 14:10, 29 August 2021 (UTC)
- why would you want to write {{include|page name here}} over just {{page name here}}? Regardless, if you want, its trivial to make such a template.
- Im not aware of a list. Try it and find out. Bawolff (talk) 23:14, 29 August 2021 (UTC)
- Sorry I think I misunderstood you, of course I agree that {{page name here}} is better. Thank you, 182.232.62.70 (talk) 02:02, 30 August 2021 (UTC)
- I'm sure that "new pages" and "new categories" could be listed using Extension:DynamicPageList3. Probably "recent changes" too. I guess "recommended pages" is something you have on another content page, so you could just transclude it (see Transclusion). Jonathan3 (talk) 20:22, 30 August 2021 (UTC)
Draft Creation
Hello, can anyone please give me a link to creating a draft? Thank you! TwilightSparkleBlocker453 (talk) 10:26, 28 August 2021 (UTC)
- @TwilightSparkleBlocker453 A draft of what? Please also see "Post a new question" in the sidebar - thanks. Malyacko (talk) 12:21, 28 August 2021 (UTC)
- It's a draft for an article. TwilightSparkleBlocker453 (talk) 13:39, 28 August 2021 (UTC)
- @TwilightSparkleBlocker453 What is an article? (Is this maybe about some Wikipedia or such? For questions about a Wikipedia, please ask on that Wikipedia instead. Thanks!) Malyacko (talk) 17:34, 28 August 2021 (UTC)
- I meant I wanted to create a page for MediaWiki. TwilightSparkleBlocker453 (talk) 18:58, 28 August 2021 (UTC)
- why? What will the page be about? Bawolff (talk) 06:59, 29 August 2021 (UTC)
- Actually, I wanted to create a help page telling users what MediaWiki is. Is that okay? TwilightSparkleBlocker453 (talk) 09:18, 29 August 2021 (UTC)
- That page already exists: Manual:What is MediaWiki? Malyacko (talk) 14:26, 29 August 2021 (UTC)
- Oh, okay. Thanks. TwilightSparkleBlocker453 (talk) 17:14, 29 August 2021 (UTC)
Only registered users can watch
Is there an option for viewing the surfer page will have to open an account?
(I do not mean a private wiki that only registered users can view) Novike (talk) 21:37, 28 August 2021 (UTC)
- What is "the surfer page"? Please elaborate. Malyacko (talk) 14:25, 29 August 2021 (UTC)
- I guess you are asking whether it's possible to restrict viewing pages on a public wiki to registered users only.
- There might be something useful for you here: Manual:Preventing_access#Restrict_viewing. I've not tried any of it out. Jonathan3 (talk) 20:18, 30 August 2021 (UTC)
- I know this, but for it is impossible to register in this definition Novike (talk) 23:21, 30 August 2021 (UTC)
- That's surprising. The section states:
- "Warning: This method allows any visitor to view the wiki after creating an account." Jonathan3 (talk) 10:56, 31 August 2021 (UTC)
- no... Novike (talk) 21:08, 31 August 2021 (UTC)
- I'm out of ideas then :-) Jonathan3 (talk) 21:58, 31 August 2021 (UTC)
Restarting a MediaWiki website
A well-backedup, all-core MediaWiki 1.35.2 website with just one contributor since establishment.
I consider to "restart" the website:
- A web domain change
- A website name change in LocalSettings.php
- A total deletion (DB truncates) of everything which is not associated with an article page or a category page (I don't even have redirects)
- A total deletion (DB truncates) of all deleted revisions and all automatically-created "deletion summaries" (mistakenly not deleted in before a page deletion)
- Informing Google Search Console about a domain migration
Basically I want to truncate all databases which does not deal with current existing articles and categories; I think that this task is pretty well defined and pretty broad so given proper backups I think it shouldn't be dangerous.
Please share your opinion about such a process, how would you prefer to handle such needs and which DB queries you might have use? Thanks in advance, 2001:44C8:4119:A9AE:58C1:5199:82BC:11E4 (talk) 08:10, 29 August 2021 (UTC)
- A better way to define what I consider to do is "general cleaning" rather than "restarting". 182.232.5.195 (talk) 16:01, 29 August 2021 (UTC)
- deleting random things in your db is generally not reccomended unless you know what you're doing. Make sure you dont introduce any relational integrity issues. Its generally reccomended to use scripts in maintenance directory over truncating. Bawolff (talk) 23:18, 29 August 2021 (UTC)
- @Bawolff I couldn't agree more but at least one of the things I want to do, such as deleting automatically created deletion summaries, just cannot be done with the current maintenance script system and would require DB manipulation. 182.232.62.70 (talk) 02:06, 30 August 2021 (UTC)
- I wonder whether an alternative would be to export the current versions of existing pages: Help:Export. Jonathan3 (talk) 20:50, 30 August 2021 (UTC)
How to pass class to makeLink()?
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 am trying to apply a specific CSS class to all link in toolbox. I have the following code that generates the toolbox links:
<?php foreach ( $this->getToolbox() as $key => $item ) { echo $this->makeListItem($key, $item); } ?>
The code outputs a list in this format:
<ul>
<li id=""><a href="" >Related changes</a></li>
<li id=""><a href="" >Special pages</a></li>
<li id=""><a href="" >Printable version</a></li>
...
</ul>
I am using Bootstrap and need to apply dropdown-item
class on all a
tags within the list. I tried playing with the options
array for makeListItem
but couldn't get it to apply the class to all a
tags. Could someone point me in the right direction please? Is there perhaps some other way I can do this? Mukilol2 (talk) 09:39, 29 August 2021 (UTC)
- i would maybe consider reimplementing the makeListItem function if you need precise control over the html output.
- doc.wikimedia.org has docs about the Skin/SkinTemplate class. Maybe something in there will be helpful. Bawolff (talk) 05:09, 1 September 2021 (UTC)
- Alright that makes sense, but where exactly would I place the custom
makeListItem
function so it overrides the core function? Mukilol2 (talk) 22:25, 3 September 2021 (UTC) - I managed to find a solution without overriding the core function. You can provide options as a third argument, in this case I passed in the following array
['link-class' => 'dropdown-item']
that applies thedropdown-item
class to all links within the list. Mukilol2 (talk) 22:42, 3 September 2021 (UTC)
Module navbox scripting error
I have restored from wikipedia backup of an Asian language and it works as expected. But some pages are showing this error...
Script error: No such module "Navbox"
I have already installed modules like Scribunto and sanitized-css. But I do not know how to deal with the error mentioned above. Shantanuo (talk) 10:14, 29 August 2021 (UTC)
Other language $wgLanguageCode
Hi,
I use GoogleLogin 0.4.0-git to login to MediaWiki 1.36.1
When I have set $wgLanguageCode = 'us'; users can log in.
If I set $wgLanguageCode = 'cs'; in their language, so users cannot log in.
After logging in, the user gets back to the login screen.
I tried to change $wgRedirectOnLogin = 'Special: MyPage'; but it doesn't help.
Can I ask for advice?
Thank you Viktor Vrbický (talk) 16:32, 29 August 2021 (UTC)
- solved.
- The whitelisted page for Special:GoogleLogin must be in the content language.
- For cs it is:
- $ wgWhitelistRead = array ('Speciální: GoogleLoginReturn');
- Thank you Viktor Vrbický (talk) 10:25, 31 August 2021 (UTC)
How to allow nesting in HTML in MediaWiki webpages?
I have pasted some nested HTML which I have created with a text editor.
By default, MediaWiki doesn't ignore nestings and consider them as typical spacing, which moves the text of the HTML tags into the center of the page.
Current situation:
TAG TEXT
Desired situation:
TAG TEXT
How to overcome that? 182.232.62.70 (talk) 04:09, 30 August 2021 (UTC)
- May be you should learn a little bit about HTML, when a letter is not include in a tag, like
- below:If there is not tag, the brwoser read it as a text. Browser will start reading with the first letter, not space or tab. In Mediawiki your text will be in a tag, so that browser will start reading when the tag start. Impartial just (talk) 07:24, 30 August 2021 (UTC)
<div>some text</div> sometext =>"some text"
- @Impartial just
- Maybe you should learn a little bit about English before you try to use it (history revisions are evidence of how many mistakes you have made in your above post).
- Just because of your desire to be arrogant above me, your comment should be deleted; I write HTML since 2009 at least and as such I tell you that everything you wrote makes no sense; nesting HTML (something you probably don't know exists) shouldn't be evident in output.
- You don't even know what HTML I wrote, don't come here to tell people what you have been told in the past yourself (i.e. maybe you should learn a little about HTML). 182.232.62.70 (talk) 07:39, 30 August 2021 (UTC)
- Sorry for the miss understanding about you, but you know, is hard to tell a person from ip, sorry. And sorry, my English is really not as good as you do, excuse me, but I am English is not my main-language, I speak Chinese. Hope you get the solution. Impartial just (talk) 09:18, 30 August 2021 (UTC)
- @Impartial just I tried to avoid that but I will say it anyway, I am sure there is no connection here to "is hard to tell a person from ip" and I am sure that it doesn't have to do with English as it has to do with arrogance; I don't speak English as a native language either, it's just doesn't matter. 182.232.55.189 (talk) 09:13, 13 September 2021 (UTC)
- @Impartial just please unfollow my GitHub account, thank you. 182.232.55.189 (talk) 09:10, 13 September 2021 (UTC)
- Sorry for the miss understanding about you, but you know, is hard to tell a person from ip, sorry. And sorry, my English is really not as good as you do, excuse me, but I am English is not my main-language, I speak Chinese. Hope you get the solution. Impartial just (talk) 09:18, 30 August 2021 (UTC)
- And further more @Impartial just just because you have falsely presented me as someone who doesn't know even "a little bit" of HTML, here is a nice RTL contact form I have wrote in my GitHub profile (primarily HTML and a bit of PHP and CSS):
- github.com/bendqh1/prcf 182.232.62.70 (talk) 08:16, 30 August 2021 (UTC)
- Everybody please read and follow Code of Conduct if you would like to be active here, and refrain from personal attacks. Thanks. Malyacko (talk) 09:09, 30 August 2021 (UTC)
- I would be interested in seeing an example of the HTML you're using, to get a better understanding of the problem. Jonathan3 (talk) 20:16, 30 August 2021 (UTC)
- its probably differing css between mediawiki and where you created the html, although depending on spacing and newlines mediawiki might be adding <p> tags which might alter displays.
- The developer tools feature of your web browser might help you determine which tags/css rules are causing the issue. The page special:expandtemplates on your wiki can also sometimes be helpful in debugging your issue. Bawolff (talk) 05:05, 1 September 2021 (UTC)
- @Jonathan3 gladly, here is the HTML:Sadly MediaWiki doesn't ignore the indentation tabs and using $wgRawHtml mode doesn't solve the problem (let along, brakes the MediaWiki code). 182.232.189.253 (talk) 05:40, 2 September 2021 (UTC)
<div> <div> <div> [[Special:Recentchanges|שינויים אחרונים]] </div> <div> [[Special:Newpages|דפים חדשים]] </div> </div> <div> <div> [[Special:Randompage|דף אקראי]] </div> <div> [[Special:Categories|קטגוריות]] </div> </div> </div>
- Yes, I imagine it's because of the spaces preceding the [[Special... text.
- What are the divs contributing? Do they have different CSS applied to them maybe? How about simplifying it and trying:
- Jonathan3 (talk) 21:21, 2 September 2021 (UTC)
<div>[[Special:Recentchanges|שינויים אחרונים]]</div> <div>[[Special:Newpages|דפים חדשים]]</div> <div>[[Special:Randompage|דף אקראי]]</div> <div>[[Special:Categories|קטגוריות]]</div>
- Thinking about it, I think tab characters are treated differently to spaces.
- How about formatting your HTML with tab characters (you can cut and paste from Word or whatever) instead of spaces? Jonathan3 (talk) 21:24, 2 September 2021 (UTC)
- @Jonathan3 Nesting generally helps me to read HTML more comfortably (and the HTML might get larger with time) and yes, there is CSS code which I have stripped away).
- Indeed, using tab characters (tabulations) instead white space characters (spaces) helped !
- I wrongly assumed that tab indentation was the work mode in Visual Studio Code text editor but it wasn't (I actually copied spaces instead tabulations); now, after changing the mode to tabs, re-indenting and copy-pasting the text into MediaWiki edit mode I read indentations and in full output mode (after saving) I didn't read indentations, so the problem is solved !
- Thanks, 49.230.106.23 (talk) 08:37, 3 September 2021 (UTC)
- All's well that ends well! Jonathan3 (talk) 09:06, 3 September 2021 (UTC)
How to truncate all logs whatsoever in MediaWiki?
I want to truncate all logs whatsoever; total truncation, all the logs (such as deletion log, moving log, etc.) would just become empty and "fresh" just as in the first day of creating the website a few years back.
How to? Thanks in advance, 182.232.62.70 (talk) 05:17, 30 August 2021 (UTC)
- Truncate or hide? You can hide record by using index.php?title=title&action=revisiondelete&type=revision&ids=* to hide record from other user, but I am not sure can hide all pages record at the same time. The things I am sure is to truncate that table. (Not suggested) Impartial just (talk) 06:57, 30 August 2021 (UTC)
- I mean to truncate.
- In my case (an all core website with just one user, principally no images etc) indeed, I mean to just truncate all logs whatsoever from any previous data. 182.232.62.70 (talk) 07:08, 30 August 2021 (UTC)
I am not sure Mediawiki can do that, but I am sure you can run this command TRUNCATE '<prefix>logging'
(Replcae <prefix> with your prefix, you can investage to the database list and find it ther) to clear the record in database. I didn't try this before, you might get some error. Please think before you type. Impartial just (talk) 09:43, 30 August 2021 (UTC)
- @Impartial just Again: Please read and follow Code of Conduct if you would like to be active here, and refrain from personal attacks. Thanks. Malyacko (talk) 14:53, 30 August 2021 (UTC)
- i feel like this episode is a bit unjust to "Impartial just". There is certainly a reading of his/her comment that is a personal attack, but one requires a rather large assumption of bad faith to get there. So much so i had to read the comment multiple times to even figure out what the fuss was about (i guess its clear in future comments, but i was reading the thread in threaded order). Bawolff (talk) 04:58, 1 September 2021 (UTC)
- @Impartial just please think before you type.
- The very act of telling some "please think before you type" means you are arrogant and destructive.
- It's not the first time you inject nonsensical arrogance into your posts; I am sure, your account should be blocked @Malyacko please take care of this. 182.232.62.70 (talk) 09:53, 30 August 2021 (UTC)
- I would read "Please think before you type" as friendly advice, especially as it seems "Impartial just" is using English as a foreign language. Jonathan3 (talk) 20:09, 30 August 2021 (UTC)
- @Jonathan3 I found a broader problem with his management here and I use English as a foreign language as well... 49.230.138.2 (talk) 02:45, 31 August 2021 (UTC)
- What prevents templates from appearing as random pages? 49.230.138.2 (talk) 09:48, 31 August 2021 (UTC)
- That's a good question to add to Project:Support desk/Flow/2021/08#h-How_to_prevent_a_webpage_from_being_found_by_"random_page"_link?-2021-08-30T13:20:00.000Z. Jonathan3 (talk) 10:55, 31 August 2021 (UTC)
- Sorry, I clicked the wrong browser tab, I shall publish it there right away, thanks. 49.230.138.2 (talk) 11:31, 31 August 2021 (UTC)
- I ask the community members again:
- How to truncate all logs whatsoever in MediaWiki?
- Perhaps a better question would be, how to locate a table that might be relevant, using, say, PHPMyAdmin? 49.230.138.2 (talk) 11:33, 31 August 2021 (UTC)
- The table is named logging. TRUNCATE-ing (as in the mysql command) mediawiki tables is a potentially risky operation. By which i mean, i dont really recommend it, it can potentially break your wiki (possibly in subtle ways), so if that happens don't blame me. Bawolff (talk) 04:50, 1 September 2021 (UTC)
- Thanks Bawolff. 182.232.170.26 (talk) 05:40, 1 September 2021 (UTC)
Change style of level
Hi!
we want to cange the style of section-header (level?).
Could some one tell the way?
which css?
which css-definition?
regards Jan 85.233.12.114 (talk) 11:23, 30 August 2021 (UTC)
- Hello Jan, Can you please tell me, what do you mean by "Change style of level"? TwilightSparkleBlocker453 (talk) 12:08, 30 August 2021 (UTC)
- Style as in layout, design, CSS. You could use the developer tools of your web browser to check id's or classes of elements, and overwrite via definitions in MediaWiki:Common.css. See the link I posted. Malyacko (talk) 14:52, 30 August 2021 (UTC)
Colons as markers of a namespace
I understand that colons are the traditional way to mark namespaces in MediaWiki:
namespace:name
Some times I need to work with a namespace which is comprised of two words:
John Smith:name
But it reads strange, at least for me... In English websites it's easy to at least partially solve this problem by using underscores (i.e. John_Smith:name
) but "too many" special characters might be grasped as strange or annoying.
How to handle that? What about using spaces as in John Smith : name
? 182.232.62.70 (talk) 11:34, 30 August 2021 (UTC)
- See phab:T249149 for related details. – Ammarpad (talk) 18:27, 30 August 2021 (UTC)
- If you type example.com/namespace: name (with a space) into the browser's URL bar it redirects to example.com/namespace:name
- Similarly, a link to [[Extension: Cargo/Quick start guide]] shows Extension: Cargo/Quick start guide and links to the correct page. Jonathan3 (talk) 20:38, 30 August 2021 (UTC)
- As far as the way the page title is shown, I'm not sure.
- Vector shows "namespace:name" without any space, but other skins have them separate.
- I don't think you could change it just using CSS as it's all lumped together as one string.
- Maybe you could use Help:Magic_words#DISPLAYTITLE, on individual pages, or within a template, or within an extension. Jonathan3 (talk) 20:43, 30 August 2021 (UTC)
- mediawiki generally deletes spaces around the colon. You can use them but they are normalized away when mw displays something (just like underscores to spaces) Bawolff (talk) 04:38, 1 September 2021 (UTC)
Mediawiki in docker environment - want to get work VisualEditor (Parsoid)
Hello,
i have docker environment on Debian virtual machine. My Container:
Mediawiki Image, Maria DB, converters-htmldoc
Problem:
I still get not to work VisualEditor, i got message:
"Error contacting the Parsoid/RESTBase server: (curl error: 60) SSL peer certificate or SSH remote key was not OK"
My mediawiki run over https... What must i configure? I tried so much with Parsoid and RESTBASE, nothing worked.. Please help...
Also the PDF Book Extension not work anymore. I have container "converters-htmldoc". But now its not working anymore.. "Path not found /usr/bin/htmldoc"
Please help
Regards,
Max Mediaman95 (talk) 12:19, 30 August 2021 (UTC)
How to prevent a webpage from being found by "random page" link?
RESOLVED | |
Various ways, e.g. $wgContentNamespaces |
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 assume that there are several ways to achieve that and I would like to read some opinions about how it might be best.
Please feel free to opine either about a single page or about a group of pages (as with a :
namespace). 182.232.62.70 (talk) 13:20, 30 August 2021 (UTC)
- I believe this is not supported. See phab:T119644 – Ammarpad (talk) 18:25, 30 August 2021 (UTC)
- There is some useful information here: Manual:Random page.
- It looks like limiting namespaces would be easy (though it would have knock-on effects): "By default, selection will be limited to pages from namespaces in $wgContentNamespaces."
- For individual pages you could write an extension: "The SpecialRandomGetRandomTitle hook can be used to modify the selection criteria."
- There's an unmaintained extension that does/did this: Extension:ExcludeRandom. Jonathan3 (talk) 20:33, 30 August 2021 (UTC)
- What prevents templates from appearing as random pages? 49.230.138.2 (talk) 11:31, 31 August 2021 (UTC)
- I think because Template isn't in $wgContentNamespaces :-) Jonathan3 (talk) 17:32, 31 August 2021 (UTC)
- Thanks, I think I will just change the two relevant webpages to be "pseudo templates".
- For me the case is closed. 182.232.170.26 (talk) 05:48, 1 September 2021 (UTC)
Lua error: Internal error: The interpreter has terminated with signal "6".
Hello, I am trying to get infoboxes working on my wiki, but I keep getting errors. It'll either be a signal "6" or "126". I made a log file to see if it can help, currently it's returning this:
sh: extensions/Scribunto/includes/engines/LuaStandalone/binaries/lua5_1_5_linux_64_generic/: Permission denied
Just want to note that I tried what was recomended on the Scribunto page (changing all the permissions for everything in the folder) and that hasn't fixed it. I read that there may be a "noexec" flag on the folder, but I don't know how to find that information. I am a bit out of my depth with this stuff, admittedly.
I am using NearlyFreeSpeech as a host, which should work as far as I know. Here is the information on my wiki:
MediaWiki | 1.36.1 |
PHP | 7.4.21-nfsn1 (NFGI) |
MariaDB | 10.5.8-MariaDB-1:10.5.8+maria~bionic |
ICU | 68.2 |
I have absolutely no idea what to try next, so any help would be apprecited! 218.214.187.214 (talk) 23:03, 30 August 2021 (UTC)
- Extension:Scribunto#Lua error: Internal error: The interpreter exited with status 126. Malyacko (talk) 09:28, 31 August 2021 (UTC)
- if you get to signal 6 (SIGABORT) that probably means you got past the permission issue at least once.
- the fact your error message is saying perm denied on just the directory and not including the lua binary name is weird. e.g.i would expect sh: extensions/Scribunto/includes/engines/LuaStandalone/binaries/lua5_1_5_linux_64_generic/lua: Permission denied to be the error message. Have you set/changed $wgScribuntoEngineConf['luastandalone']['luaPath']? Bawolff (talk) 04:36, 1 September 2021 (UTC)
html on the wiki page
Is it possible to make an html web page within a wiki site? You can see here, that I did it through the server, but is it possible through the site itself? Novike (talk) 23:30, 30 August 2021 (UTC)
- @Md Solaiman-420 How? Malyacko (talk) 09:27, 31 August 2021 (UTC)
- You could use the Widgets extension.
- There are other extensions with "HTML" in the name that might suffice. Jonathan3 (talk) 10:58, 31 August 2021 (UTC)
- I use it. But sometimes it does debug an entire page. I mean a whole web page Novike (talk) 21:09, 31 August 2021 (UTC)
- Unfortunately I don't know what you mean in your second sentence.
- Wikipedia's home page isn't a wiki page. Do you mean like that? Jonathan3 (talk) 22:01, 31 August 2021 (UTC)
- see also manual:$wgRawHtml Bawolff (talk) 04:29, 1 September 2021 (UTC)
"Help:Reset password" does not result in my being able to reset password
I have used the same email for my Wikipedia account for years. Upon specifying both my user name and email address on the form in order to reset my password, I never receive an email in order to actually move forward and make the password change. This is the case even when I observe wait the appropriate 24 hours before re-requesting. I have also been carefully reviewing my Spam folder, and the desired email is not there either. What's next? I want to access my prior edit history under the only email/user name I've used at Wikipedia. 2605:A601:AEA5:DB00:34E1:1AC3:574B:BBB1 (talk) 09:18, 31 August 2021 (UTC)
Internal error with php 7.4 and mediawiki 1.36
Hi, our wiki has problem with "PopularPages" - when link is clicked, we see this debugged problem:
[e3d8daff4a75c0b316752e89] /index.php/Special:PopularPages Error: Call to a member function convert() on null
Backtrace:
from /var/lib/wiki/extensions/HitCounters/includes/SpecialPopularPages.php(80)
#0 /var/lib/mediawiki-1.36.1/includes/specialpage/QueryPage.php(818): HitCounters\SpecialPopularPages->formatResult()
#1 /var/lib/mediawiki-1.36.1/includes/specialpage/QueryPage.php(785): QueryPage->outputResults()
#2 /var/lib/mediawiki-1.36.1/includes/specialpage/SpecialPage.php(646): QueryPage->execute()
#3 /var/lib/mediawiki-1.36.1/includes/specialpage/SpecialPageFactory.php(1386): SpecialPage->run()
#4 /var/lib/mediawiki-1.36.1/includes/MediaWiki.php(309): MediaWiki\SpecialPage\SpecialPageFactory->executePath()
#5 /var/lib/mediawiki-1.36.1/includes/MediaWiki.php(913): MediaWiki->performRequest()
#6 /var/lib/mediawiki-1.36.1/includes/MediaWiki.php(546): MediaWiki->main()
#7 /var/lib/mediawiki-1.36.1/index.php(53): MediaWiki->run()
#8 /var/lib/mediawiki-1.36.1/index.php(46): wfIndexMain()
#9 {main}
I tried to search possible solutions for this but cannot find any. Vulak (talk) 11:11, 31 August 2021 (UTC)
- Feel free to follow report a bug, see the link on Extension:HitCounters Malyacko (talk) 12:27, 31 August 2021 (UTC)
Is it possible to place an internal link inside the tags?
RESOLVED | |
Nope. |
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'm using the SyntaxHighlight extension to highlight code.
Sometimes I need to have internal links inside the highlighted blocks of text, but the [[internal_link]] syntax won't work.
Is it even possible? MrJConstantine (talk) 12:45, 31 August 2021 (UTC)
- not with that extension. Bawolff (talk) 04:28, 1 September 2021 (UTC)
- It's a shame :( MrJConstantine (talk) 13:46, 1 September 2021 (UTC)
Auto login on MediaWiki using client cookie system
My client have an existing system, which automatically create a cookie after a user is logged to Windows.
This cookie have ID, name, email, tel, and this cookie is used by internal web apps to automatically connect user.
Is there a way to implement this on Mediawiki (or existing extension) ?
Thanks SuperMarcel80 (talk) 14:00, 31 August 2021 (UTC)
- You need to have an extension which subclasses CookieSessionProvider and provides this via extension.json via the SessionProviders configuration array to the Session and Auth manager.
- This subclass needs to validate the cookie value and match/create local wiki users as required.
- Generally these extensions also disable things like passwd reset pages etc. I'm sure there are a few examples of ppl who have built things.
- Some ready made extensions that might even be sufficient for you (it really depends) are:
- But you can also roll your own if you have specific details to take care of, or want to reduce complexity. —TheDJ (Not WMF) (talk • contribs) 15:13, 31 August 2021 (UTC)
Was there ever a try to implement a universal grammar checker in MediaWiki?
A tool that can run on all the article pages and category pages of a MediaWiki website, in whatever language, and just list all possible problematic segments (outputting something like "sentence X may be better change to sentence Y").
Thanks, 49.230.138.2 (talk) 15:37, 31 August 2021 (UTC)
Victor sidebar
Hi I'm like it wikiHow sidebar exmple how to add Victor sidebar like right side example for wikiHow D.Peter (talk) 19:59, 31 August 2021 (UTC)
- By installing their skin, or by (re)writing a skin. See Manual:Skins. Malyacko (talk) 07:42, 1 September 2021 (UTC)