Project:Support desk/Flow/2020/07
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. |
I FUBARed a few of my (Miraheze) wiki's pages—now what?
I posted in their help-page-of-sorts but so far no response.
(Note: it can get a little NSFW)
So I'm a rank amateur trying to create namespaces.
- I click, Manage this wiki's namespaces.
- Next I click a few boxes I think would work.
- Talk page tab? Do I do anything there? I don't know.
- I submit it.
- and it generally works.
- A few days ago, however, I try to move stuff to the new namespace.
- It seems to work, but it creates redirects.
- I try to delete them.
- Then maybe a few other clicks and I'm mess a few pages up.
I re-create a few pages based on stuff I saved, but really, I should learn how to fix my errors, maybe restore content, and avoid making these kind of mistakes.
Hence I'm here requesting help and some edumacation.
For instance, how do I turn, Special:Badtitle/NS3007:DMBFFF (FMRAV User page)/Sandbox
back into
FMRAV:DMBFFF (FMRAV User page)/Sandbox? DMBFFF (talk) 10:07, 30 June 2020 (UTC)
or this
(FMRAV:DMBFFF (FMRAV User page)/Sandbox from the history link in the recent changes of my wiki)
Thanks in advance. DMBFFF (talk) 01:07, 1 July 2020 (UTC)
- if you know the numeric page id, often you can use the curid parameter (but that doesnt seem to work [1] in your case) or the api using page id parameters.
- Otherwise you need miraheze to run cleanupTitles.php Bawolff (talk) 07:16, 1 July 2020 (UTC)
- Thanks. As I think about it, my error might have been to delete the namespace without first moving those pages with the namespace to another namespace—maybe. DMBFFF (talk) 04:45, 3 July 2020 (UTC)
Image Upload Keep/Display All Metadata
RESOLVED | |
Not related to MW, related to the devices doing the uploading |
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 users upload images to our private wiki it seems like some of the metadata, such as geocoordinates, gets stripped. I understand why it would be a default behavior, but this information would be very useful for us. Is it possible to keep and display this information? 76.173.103.102 (talk) 06:15, 1 July 2020 (UTC)
- if this is from a phone, often phones will do this automatically unless you change the settings. Its not under web app control. Bawolff (talk) 07:11, 1 July 2020 (UTC)
mediawiki page not reflecting the database changes
Hi all,
I made direct changes to database content for 5 pages, but i am not able to reflect the content changes for 2 pages, i cleared cached using purge, it worked for other 3 page but found no changes in 2 pages?
Can someone suggest what could be the issue?
Thanks Vickyatwal (talk) 11:49, 1 July 2020 (UTC)
- Not without clearer and more specific information, I'm afraid. Malyacko (talk) 12:06, 1 July 2020 (UTC)
- I created 5 pages from mediawiki UI.
- Then i updated content of those pages programmatically in "text" table.
- After updation I visited those pages in browser, out of 5 pages , 3 pages were reflecting the changes that were made programmatically after purging those pages,
- While 2 pages were reflecting stale data.
- @Malyacko let me know what else information i can add to it, to make things more clear Vickyatwal (talk) 12:40, 1 July 2020 (UTC)
- Try purging the pages. Doing this isn't really supported, try using this maintenance script instead. Taavi (talk!) 12:49, 1 July 2020 (UTC)
- Don't programmatically edit the text table ever. That can break things as it is supposed to be immutable.
- If you need to programatically edit things use the api or edit.php cli script Bawolff (talk) 03:00, 2 July 2020 (UTC)
- Alright Thanks @Majavah and @Bawolff for the solution.
- Is there any way to import mediawiki dump faster using importDump.php,
- As it took around 3 hours to dump 8k records and entire week for april dump. Vickyatwal (talk) 08:58, 2 July 2020 (UTC)
- MWDumper is much faster but it only works with older mediawiki. Bawolff (talk) 07:20, 4 July 2020 (UTC)
- Exactly, And I am using mediawiki 1.34. and thats why i was trying direct database insert programmaticaly but it is not working as expected.
- Let me know if you have any suggestion on fast wikidump import for mediawiki version 1.34 Vickyatwal (talk) 06:13, 6 July 2020 (UTC)
- Some people have tried using mwdumper to old version, and then use update.php, but that is a bit crazy. Bawolff (talk) 15:30, 6 July 2020 (UTC)
- Ohh, I will try that.
- Thanks Vickyatwal (talk) 09:46, 7 July 2020 (UTC)
False Information
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, how am I able to report a Wikimedia page? The “ChaldeanWiki” page is only reserved for certain user accounts, full of historical inaccuracies, spreading false information and is copied word for word from the original “Assyrian People” page on Wikipedia. This is copyright and theft of information that is not accurate. This must be taken down as we weren’t even allowed to edit the page, this is against the Wikimedia rules as it locks other people out of editing this information. 2001:8003:266B:D101:DCC2:C4B0:B0F7:4E51 (talk) 12:14, 1 July 2020 (UTC)
- That is not a Wikimedia project. We do not have any control of third party sites. You need contact them, not us. Taavi (talk!) 12:16, 1 July 2020 (UTC)
- Sorry I was meant to say Mediawiki. The page is powered by MediaWiki and there is no contact list. That is why I was not able to contact them. This page must be taken down. 2001:8003:266B:D101:DCC2:C4B0:B0F7:4E51 (talk) 12:20, 1 July 2020 (UTC)
- As I said we have no control over third-party sites using MediaWiki. We can't help you with that here. Taavi (talk!) 12:21, 1 July 2020 (UTC)
- I think the support page staff need a template for these messages that explains it clearly... MediaWiki is a software that many sites run on, this does not mean that the site you are referring to is run by the makers of Mediawiki wiki website software. Thousands of people use MediaWiki software to run third-party sites (owned by people not related to MediaWiki wiki website software), this help desk is for the MediaWiki software, not the third-party websites running on it. Please locate and contact the administrators of the site you are referring to and direct your questions to them. TiltedCerebellum (talk) 01:26, 6 July 2020 (UTC)
How do i report 1 person using 2 player profiles in 1 Game?
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 believe 1 person is playing as 2 different player profiles in the game I am playing. How do i report this and get this problem resolved? 2600:1702:F70:2030:5405:9261:6E2C:A78D (talk) 14:42, 1 July 2020 (UTC)
- You're probably in the wrong place, this is the support desk for the MediaWiki wiki software. Taavi (talk!) 14:46, 1 July 2020 (UTC)
How can I delete a page?
The following discussion is closed. Please do not modify it. Subsequent comments should be made on the appropriate discussion page. No further edits should be made to this discussion.
I need to delete an out of date page
https://pfizerpedia.pfizer.com/index.php/PfMac 148.168.216.5 (talk) 15:16, 1 July 2020 (UTC)
Delete my account
The following discussion is closed. Please do not modify it. Subsequent comments should be made on the appropriate discussion page. No further edits should be made to this discussion.
How do I delete my account? Jdascensio17 (talk) 18:05, 1 July 2020 (UTC)
- The MediaWiki software itself does not support user deletion. For MediaWiki websites which are run by Wikimedia, see meta:Right to vanish. For MediaWiki websites which are run by other entities, feel free to contact them. Malyacko (talk) 09:11, 2 July 2020 (UTC)
MediaWiki:Gadget-userMessages.js
Hello, can anyone please fix Gadget userMessages.js? I know, it cannot be used on this wiki, but it can be used on other projects. Thanks! MrJaroslavik (talk) 18:36, 1 July 2020 (UTC)
- What is broken in it? Taavi (talk!) 20:11, 1 July 2020 (UTC)
Mistake during MediaWiki install
The following discussion is closed. Please do not modify it. Subsequent comments should be made on the appropriate discussion page. No further edits should be made to this discussion.
Hi all, this is probably going to sound dumb but I made an error during MediaWiki 1.34.2 installation. I accidentally clicked enter to continue while my database field was blank. Now I get the error "Database must be null or a non-empty string" and there is no way for me to complete the installation. Is there any known fix for this? Trying to get our wiki set back up and I'm not sure how to progress. Thanks so much for your time. 96.228.162.28 (talk) 22:25, 1 July 2020 (UTC)
- more specifically, I see the page:
- MediaWiki 1.34.2
- LocalSettings.php not found.
- Please complete the installation and download LocalSettings.php.
- but when I click to complete the installation I get that error. 96.228.162.28 (talk) 22:29, 1 July 2020 (UTC)
- You should be able to go back a step in the installer.
- If all else fails, delete cookies and restart installer. Bawolff (talk) 02:57, 2 July 2020 (UTC)
I Need help
The following discussion is closed. Please do not modify it. Subsequent comments should be made on the appropriate discussion page. No further edits should be made to this discussion.
How to remove my user and data? I Want to remove my user and data, and is not option for that. Thanks Details: I feel that I am being abused through wikipeda and request the complete removal of my username and data. Today an user has denounced my profile in different ways accusing me of promoting on wikipedia based on the fact that I am a recognized publicist from my country, it seems that he forgot to mention that I am also a proven writer and researcher. But after they arguments, not only deleted the articles i created, but he also blocked me as a user and now anyone on wikipedia can embarrassingly see his accusations and his words towards me. Feels like abuse of power. Please ask for the removal of my user, my privacy is being violated since this person posted on wiki my prívate personal profile of other pages without my permission. Thank you. Claprd (talk) 03:53, 2 July 2020 (UTC)
- Please see meta:Right to vanish Bawolff (talk) 04:39, 2 July 2020 (UTC)
TTF MIME Type Issue
RESOLVED | |
phab:T260031 |
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,
One of our users has reported in https://phabricator.miraheze.org/T5856#114310 that mediawiki is erroring with "File extension ".ttf" does not match the detected MIME type of the file (application/font-sfnt)." when uploading any of the files listed in https://phabricator.miraheze.org/T5856#114313. This MIME type seems to be deceprated but still valid for TTF files although it's not listed in https://phabricator.wikimedia.org/source/mediawiki/browse/master/includes/libs/mime/MimeMap.php
Does anyone have any ideas of how to get round this or should we add application/font-sfnt to the map for ttf.
Thanks! RhinosF1 (talk) 14:24, 2 July 2020 (UTC)
- If its a valid alt mime type for ttf, You should make a patch to mediawiki adding it as an alias for the type in mime.info Bawolff (talk) 15:07, 2 July 2020 (UTC)
- @Bawolff It seems to be valid but deceprated. I'll go and make a patch tonight. I wasn't too sure whether we ignored it as it's deceprated or if there was a reason it was missing. RhinosF1 (talk) 15:10, 2 July 2020 (UTC)
- oh, well maybe its changed since i last looked. If its deprecated, use whatever is currently reccomended Bawolff (talk) 07:16, 4 July 2020 (UTC)
- There is a specfic type for ttf files now as far as I can see. Should this be a wontfix then? RhinosF1 (talk) 12:17, 4 July 2020 (UTC)
MWStore:// Uploadstashfileexception
Hello,
i am trying to get mediawiki running on an windows server. On this moment a lot is working but for some reason i can't get files upload to work. uploading images are no problem .. im getting the following error
Could not store upload in the stash (UploadStashFileException): "Could not store file "C:\Temp/chunkedupload_b3fcb8362f55" at "mwstore://local-backend/local-temp/1/14/20200702143927!chunkedupload_b3fcb8362f55.".".
i already tried giving my IUSR user full control for testing but it just not working i hope somebody can help me..
i Have the following Php.ini settings
; open_basedir, if set, limits all file operations to the defined directory
; and below. This directive makes most sense if used in a per-directory
; or per-virtualhost web server configuration file.
; Note: disables the realpath cache
; http://php.net/open-basedir
upload_tmp_dir = c:\temp
open_basedir =
file_uploads = On
Localsettings having the following
$wgDebugLogFile = "C:\inetpub\wwwroot\mediawiki\logfile.txt";
$wgUploadDirectory = "C:\Temp";
$wgVerifyMimeType = false;
$wgTmpDirectory = "C:\Temp";
//Set extenstion that are allowed
$wgFileExtensions = array( 'png', 'gif', 'jpg', 'jpeg', 'doc',
'xls', 'mpp', 'pdf', 'ppt', 'tiff', 'bmp', 'docx', 'xlsx',
'pptx', 'ps', 'odt', 'ods', 'odp', 'odg', 'txt'
);
$wgEnableUploads = true;
Log File Errors
DBQuery] MediaWiki\Block\DatabaseBlock::newLoad [0.001s] localhost: SELECT ipb_id,ipb_address,ipb_timestamp,ipb_auto,ipb_anon_only,ipb_create_account,ipb_enable_autoblock,ipb_expiry,ipb_deleted,ipb_block_email,ipb_allow_usertalk,ipb_parent_block_id,ipb_sitewide,comment_ipb_reason.comment_text AS `ipb_reason_text`,comment_ipb_reason.comment_data AS `ipb_reason_data`,comment_ipb_reason.comment_id AS `ipb_reason_cid`,actor_ipb_by.actor_user AS `ipb_by`,actor_ipb_by.actor_name AS `ipb_by_text`,ipb_by_actor FROM `ipblocks` JOIN `comment` `comment_ipb_reason` ON ((comment_ipb_reason.comment_id = ipb_reason_id)) JOIN `actor` `actor_ipb_by` ON ((actor_ipb_by.actor_id = ipb_by_actor)) WHERE ipb_address = 'TeunEbbers'
[DBQuery] LocalFile::loadFromDB [0.003s] localhost: SELECT img_name,img_size,img_width,img_height,img_metadata,img_bits,img_media_type,img_major_mime,img_minor_mime,img_timestamp,img_sha1,comment_img_description.comment_text AS `img_description_text`,comment_img_description.comment_data AS `img_description_data`,comment_img_description.comment_id AS `img_description_cid`,actor_img_user.actor_user AS `img_user`,actor_img_user.actor_name AS `img_user_text`,img_actor,img_metadata FROM `image` JOIN `comment` `comment_img_description` ON ((comment_img_description.comment_id = img_description_id)) JOIN `actor` `actor_img_user` ON ((actor_img_user.actor_id = img_actor)) WHERE img_name = 'Belangrijke_dingen.txt' LIMIT 1
[DBQuery] LCStoreDB::get [0.001s] localhost: SELECT lc_value FROM `l10n_cache` WHERE lc_lang = 'en' AND lc_key = 'deps' LIMIT 1
[DBQuery] LCStoreDB::get [0.002s] localhost: SELECT lc_value FROM `l10n_cache` WHERE lc_lang = 'en' AND lc_key = 'list' LIMIT 1
[DBQuery] LCStoreDB::get [0s] localhost: SELECT lc_value FROM `l10n_cache` WHERE lc_lang = 'en' AND lc_key = 'preload' LIMIT 1
[DBQuery] LCStoreDB::get [0s] localhost: SELECT lc_value FROM `l10n_cache` WHERE lc_lang = 'en' AND lc_key = 'preload' LIMIT 1
[DBQuery] LCStoreDB::get [0s] localhost: SELECT lc_value FROM `l10n_cache` WHERE lc_lang = 'en' AND lc_key = 'namespaceGenderAliases' LIMIT 1
[DBQuery] LinkCache::fetchPageRow [0s] localhost: SELECT page_id,page_len,page_is_redirect,page_latest,page_restrictions,page_content_model,page_touched FROM `page` WHERE page_namespace = '6' AND page_title = 'Belangrijke_dingen.txt' LIMIT 1
[DBQuery] LocalRepo::findFilesByPrefix [0s] localhost: SELECT img_name,img_size,img_width,img_height,img_metadata,img_bits,img_media_type,img_major_mime,img_minor_mime,img_timestamp,img_sha1,comment_img_description.comment_text AS `img_description_text`,comment_img_description.comment_data AS `img_description_data`,comment_img_description.comment_id AS `img_description_cid`,actor_img_user.actor_user AS `img_user`,actor_img_user.actor_name AS `img_user_text`,img_actor,img_metadata FROM `image` JOIN `comment` `comment_img_description` ON ((comment_img_description.comment_id = img_description_id)) JOIN `actor` `actor_img_user` ON ((actor_img_user.actor_id = img_actor)) WHERE img_name LIKE 'Belangrijke`_dingen.%' ESCAPE '`' ORDER BY img_name LIMIT 1
[MessageCache] MessageCache using store SqlBagOStuff
[DBQuery] LCStoreDB::get [0.001s] localhost: SELECT lc_value FROM `l10n_cache` WHERE lc_lang = 'en' AND lc_key = 'list' LIMIT 1
[SQLBagOStuff] Connection mysql object #103 (handle id #99) will be used for SqlBagOStuff
[DBQuery] SqlBagOStuff::fetchBlobMulti [0s] localhost: SELECT keyname,value,exptime FROM `objectcache` WHERE keyname = 'VA_wiki:messages:en'
[SQLBagOStuff] Connection mysql object #103 (handle id #99) will be used for SqlBagOStuff
[SQLBagOStuff] Connection mysql object #103 (handle id #99) will be used for SqlBagOStuff
[DBQuery] SqlBagOStuff::fetchBlobMulti [0s] localhost: SELECT keyname,value,exptime FROM `objectcache` WHERE keyname = 'VA_wiki:messages:en:status'
[SQLBagOStuff] Connection mysql object #103 (handle id #99) will be used for SqlBagOStuff
[DBQuery] SqlBagOStuff::lock [0s] localhost: SELECT GET_LOCK('VA_wiki:messages:en', 0) AS lockstatus
[SQLBagOStuff] SqlBagOStuff::lock failed due to timeout for VA_wiki:messages:en.
[DBQuery] MessageCache::loadFromDB(en)-big [0s] localhost: SELECT page_title,page_latest FROM `page` WHERE page_is_redirect = '0' AND page_namespace = '8' AND (page_title NOT LIKE '%/%' ESCAPE '`' ) AND (page_len > 10000)
[DBQuery] MessageCache::loadFromDB(en)-small [0.001s] localhost: SELECT /*! STRAIGHT_JOIN */ rev_id,rev_page,rev_timestamp,rev_minor_edit,rev_deleted,rev_len,rev_parent_id,rev_sha1,comment_rev_comment.comment_text AS `rev_comment_text`,comment_rev_comment.comment_data AS `rev_comment_data`,comment_rev_comment.comment_id AS `rev_comment_cid`,actor_rev_user.actor_user AS `rev_user`,actor_rev_user.actor_name AS `rev_user_text`,temp_rev_user.revactor_actor AS `rev_actor`,page_namespace,page_title,page_id,page_latest,page_is_redirect,page_len,user_name FROM `page` JOIN `revision` ON ((page_id = rev_page)) JOIN `revision_comment_temp` `temp_rev_comment` ON ((temp_rev_comment.revcomment_rev = rev_id)) JOIN `comment` `comment_rev_comment` ON ((comment_rev_comment.comment_id = temp_rev_comment.revcomment_comment_id)) JOIN `revision_actor_temp` `temp_rev_user` ON ((temp_rev_user.revactor_rev = rev_id)) JOIN `actor` `actor_rev_user` ON ((actor_rev_user.actor_id = temp_rev_user.revactor_actor)) LEFT JOIN `user` ON ((actor_rev_user.actor_user != 0) AND (user_id = actor_rev_user.actor_user)) WHERE page_is_redirect = '0' AND page_namespace = '8' AND (page_title NOT LIKE '%/%' ESCAPE '`' ) AND (page_len <= 10000) AND (page_latest = rev_id)
[SQLBagOStuff] Connection mysql object #103 (handle id #99) will be used for SqlBagOStuff
[DBQuery] SqlBagOStuff::updateTableKeys [0.003s] localhost: REPLACE INTO `objectcache` (keyname,value,exptime) VALUES ('VA_wiki:messages:en','�Œ±\n„@��ÿ%_ðÌÆd«+�mîDá8ËuÙÀÕ–â¿«Ý��“-ر›\Z}ûy�?oJ?ã´›�\r¯e ���y,âÊmŽÐÍkç�ÅQÐÖ*.Ч‹Fýo\Zçõ‘æ�0�P„F$�¥t^','20380119031407')
[SQLBagOStuff] Connection mysql object #103 (handle id #99) will be used for SqlBagOStuff
[DBQuery] SqlBagOStuff::unlock [0s] localhost: SELECT RELEASE_LOCK('VA_wiki:messages:en') as lockstatus
[MessageCache] MessageCache::load: Loading en... local cache is empty, global cache is expired/volatile, loading from database
[DBQuery] LCStoreDB::get [0s] localhost: SELECT lc_value FROM `l10n_cache` WHERE lc_lang = 'en' AND lc_key = 'messages:filename-prefix-blacklist' LIMIT 1
[DBQuery] Title::isDeletedQuick [0s] localhost: SELECT 1 FROM `archive` WHERE ar_namespace = '6' AND ar_title = 'Belangrijke_dingen.txt' LIMIT 1
[DBQuery] Title::isDeletedQuick [0s] localhost: SELECT 1 FROM `filearchive` WHERE fa_name = 'Belangrijke_dingen.txt' LIMIT 1
[DBQuery] LocalRepo::findBySha1 [0s] localhost: SELECT img_name,img_size,img_width,img_height,img_metadata,img_bits,img_media_type,img_major_mime,img_minor_mime,img_timestamp,img_sha1,comment_img_description.comment_text AS `img_description_text`,comment_img_description.comment_data AS `img_description_data`,comment_img_description.comment_id AS `img_description_cid`,actor_img_user.actor_user AS `img_user`,actor_img_user.actor_name AS `img_user_text`,img_actor,img_metadata FROM `image` JOIN `comment` `comment_img_description` ON ((comment_img_description.comment_id = img_description_id)) JOIN `actor` `actor_img_user` ON ((actor_img_user.actor_id = img_actor)) WHERE img_sha1 = 'n4o20emzgc0znmqms0zukt4f3st9h4p' ORDER BY img_name
[DBQuery] ArchivedFile::load [0.001s] localhost: SELECT fa_id,fa_name,fa_archive_name,fa_storage_key,fa_storage_group,fa_size,fa_bits,fa_width,fa_height,fa_metadata,fa_media_type,fa_major_mime,fa_minor_mime,fa_timestamp,fa_deleted,fa_deleted_timestamp,fa_sha1,comment_fa_description.comment_text AS `fa_description_text`,comment_fa_description.comment_data AS `fa_description_data`,comment_fa_description.comment_id AS `fa_description_cid`,actor_fa_user.actor_user AS `fa_user`,actor_fa_user.actor_name AS `fa_user_text`,fa_actor FROM `filearchive` JOIN `comment` `comment_fa_description` ON ((comment_fa_description.comment_id = fa_description_id)) JOIN `actor` `actor_fa_user` ON ((actor_fa_user.actor_id = fa_actor)) WHERE fa_sha1 = 'n4o20emzgc0znmqms0zukt4f3st9h4p' ORDER BY fa_timestamp DESC LIMIT 1
[Mime] MimeAnalyzer::loadFiles: loading mime types from C:\inetpub\wwwroot\mediawiki\includes/libs/mime/mime.types
[Mime] MimeAnalyzer::loadFiles: loading mime info from C:\inetpub\wwwroot\mediawiki\includes/libs/mime/mime.info
[Mime] MimeAnalyzer::doGuessMimeType: analyzing head and tail of C:\Temp\php683E.tmp for magic numbers.
DjVuImage::getInfo: not a DjVu file
[Mime] MimeAnalyzer::guessMimeType: internal type detection failed for C:\Temp\php683E.tmp (.)...
[Mime] MimeAnalyzer::detectMimeType: magic mime type of C:\Temp\php683E.tmp: text/plain
[Mime] MimeAnalyzer::guessMimeType: guessed mime type of C:\Temp\php683E.tmp: text/plain
[Mime] MimeAnalyzer::improveTypeFromExtension: improved mime type for .txt: text/plain
MediaHandlerFactory::getHandler: no handler found for text/plain.
UploadBase::detectScript: checking for embedded scripts and HTML stuff
UploadBase::detectScript: no scripts found
ZipDirectoryReader: Fatal error: zip file lacks EOCDR signature. It probably isn't a zip file.
UploadBase::detectVirus: virus scanner disabled
[Mime] MimeAnalyzer::doGuessMimeType: analyzing head and tail of C:\Temp\php683E.tmp for magic numbers.
DjVuImage::getInfo: not a DjVu file
[Mime] MimeAnalyzer::guessMimeType: internal type detection failed for C:\Temp\php683E.tmp (.)...
[Mime] MimeAnalyzer::detectMimeType: magic mime type of C:\Temp\php683E.tmp: text/plain
[Mime] MimeAnalyzer::guessMimeType: guessed mime type of C:\Temp\php683E.tmp: text/plain
[Mime] MimeAnalyzer::improveTypeFromExtension: improved mime type for .tmp: text/plain
UploadStash::stashFile stashing file at 'C:\Temp\php683E.tmp'
UploadStash::stashFile key for 'C:\Temp\php683E.tmp': 17l7zqartcq4.fsjpfr.7.tmp
UploadStash::stashFile inserting mwrepo://local/temp/a/ad/20200702144637!php683E.tmp under 17l7zqartcq4.fsjpfr.7.tmp
[DBQuery] UploadStash::stashFile [0.004s] localhost: INSERT INTO `uploadstash` (us_user,us_key,us_orig_path,us_path,us_props,us_size,us_sha1,us_mime,us_media_type,us_image_width,us_image_height,us_image_bits,us_source_type,us_timestamp,us_status) VALUES ('7','17l7zqartcq4.fsjpfr.7.tmp','C:\\Temp\\php683E.tmp','mwrepo://local/temp/a/ad/20200702144637!php683E.tmp','a:12:{s:10:\"fileExists\";b:1;s:4:\"size\";i:456;s:9:\"file-mime\";s:10:\"text/plain\";s:10:\"major_mime\";s:4:\"text\";s:10:\"minor_mime\";s:5:\"plain\";s:4:\"mime\";s:10:\"text/plain\";s:4:\"sha1\";s:31:\"n4o20emzgc0znmqms0zukt4f3st9h4p\";s:8:\"metadata\";s:0:\"\";s:5:\"width\";i:0;s:6:\"height\";i:0;s:4:\"bits\";i:0;s:10:\"media_type\";s:4:\"TEXT\";}','456','n4o20emzgc0znmqms0zukt4f3st9h4p','text/plain','TEXT','0','0','0','file','20200702144637','finished')
UploadFromChunks::updateChunkStatus update chunk status for 17l7zqartcq4.fsjpfr.7.tmp offset:456 inx:0
[DBQuery] UploadFromChunks::updateChunkStatus [0.001s] localhost: UPDATE `uploadstash` SET us_status = 'chunks',us_chunk_inx = '0',us_size = '456' WHERE us_key = '17l7zqartcq4.fsjpfr.7.tmp'
UploadFromChunks::concatenateChunks concatenate 0 chunks:456 inx:0
[fileconcatenate] Combined 1 chunks in 0.0013129711151123 seconds.
[Mime] MimeAnalyzer::doGuessMimeType: analyzing head and tail of C:\Temp/chunkedupload_9d91d3b7acc2 for magic numbers.
DjVuImage::getInfo: not a DjVu file
[Mime] MimeAnalyzer::guessMimeType: internal type detection failed for C:\Temp/chunkedupload_9d91d3b7acc2 (.)...
[Mime] MimeAnalyzer::detectMimeType: magic mime type of C:\Temp/chunkedupload_9d91d3b7acc2: text/plain
[Mime] MimeAnalyzer::guessMimeType: guessed mime type of C:\Temp/chunkedupload_9d91d3b7acc2: text/plain
[Mime] MimeAnalyzer::improveTypeFromExtension: improved mime type for .txt: text/plain
UploadBase::detectScript: checking for embedded scripts and HTML stuff
UploadBase::detectScript: no scripts found
ZipDirectoryReader: Fatal error: zip file lacks EOCDR signature. It probably isn't a zip file.
UploadBase::detectVirus: virus scanner disabled
[Mime] MimeAnalyzer::doGuessMimeType: analyzing head and tail of C:\Temp/chunkedupload_9d91d3b7acc2 for magic numbers.
DjVuImage::getInfo: not a DjVu file
[Mime] MimeAnalyzer::guessMimeType: internal type detection failed for C:\Temp/chunkedupload_9d91d3b7acc2 (.)...
[Mime] MimeAnalyzer::detectMimeType: magic mime type of C:\Temp/chunkedupload_9d91d3b7acc2: text/plain
[Mime] MimeAnalyzer::guessMimeType: guessed mime type of C:\Temp/chunkedupload_9d91d3b7acc2: text/plain
[Mime] MimeAnalyzer::improveTypeFromExtension: improved mime type for .txt: text/plain
UploadBase::verifyFile: all clear; passing.
[Mime] MimeAnalyzer::doGuessMimeType: analyzing head and tail of C:\Temp/chunkedupload_9d91d3b7acc2 for magic numbers.
DjVuImage::getInfo: not a DjVu file
[Mime] MimeAnalyzer::guessMimeType: internal type detection failed for C:\Temp/chunkedupload_9d91d3b7acc2 (.)...
[Mime] MimeAnalyzer::detectMimeType: magic mime type of C:\Temp/chunkedupload_9d91d3b7acc2: text/plain
[Mime] MimeAnalyzer::guessMimeType: guessed mime type of C:\Temp/chunkedupload_9d91d3b7acc2: text/plain
[Mime] MimeAnalyzer::improveTypeFromExtension: improved mime type for .: text/plain
UploadStash::stashFile stashing file at 'C:\Temp/chunkedupload_9d91d3b7acc2'
[Mime] MimeAnalyzer::guessMimeType: WARNING: use of the $ext parameter is deprecated. Use improveTypeFromExtension($mime, $ext) instead.
[Mime] MimeAnalyzer::doGuessMimeType: analyzing head and tail of C:\Temp/chunkedupload_9d91d3b7acc2 for magic numbers.
DjVuImage::getInfo: not a DjVu file
[Mime] MimeAnalyzer::guessMimeType: internal type detection failed for C:\Temp/chunkedupload_9d91d3b7acc2 (.1)...
[Mime] MimeAnalyzer::detectMimeType: WARNING: use of the $ext parameter is deprecated. Use improveTypeFromExtension($mime, $ext) instead.
[Mime] MimeAnalyzer::detectMimeType: magic mime type of C:\Temp/chunkedupload_9d91d3b7acc2: text/plain
[Mime] MimeAnalyzer::guessMimeType: guessed mime type of C:\Temp/chunkedupload_9d91d3b7acc2: text/plain
UploadStash::stashFile key for 'C:\Temp/chunkedupload_9d91d3b7acc2': 17l7zqatdb5k.lu3us9.7.txt
UploadStash::stashFile inserting mwrepo://local/temp/8/87/20200702144637!chunkedupload_9d91d3b7acc2.txt under 17l7zqatdb5k.lu3us9.7.txt
[DBQuery] UploadStash::stashFile [0.002s] localhost: INSERT INTO `uploadstash` (us_user,us_key,us_orig_path,us_path,us_props,us_size,us_sha1,us_mime,us_media_type,us_image_width,us_image_height,us_image_bits,us_source_type,us_timestamp,us_status) VALUES ('7','17l7zqatdb5k.lu3us9.7.txt','C:\\Temp/chunkedupload_9d91d3b7acc2','mwrepo://local/temp/8/87/20200702144637!chunkedupload_9d91d3b7acc2.txt','a:12:{s:10:\"fileExists\";b:1;s:4:\"size\";i:456;s:9:\"file-mime\";s:10:\"text/plain\";s:10:\"major_mime\";s:4:\"text\";s:10:\"minor_mime\";s:5:\"plain\";s:4:\"mime\";s:10:\"text/plain\";s:4:\"sha1\";s:31:\"n4o20emzgc0znmqms0zukt4f3st9h4p\";s:8:\"metadata\";s:0:\"\";s:5:\"width\";i:0;s:6:\"height\";i:0;s:4:\"bits\";i:0;s:10:\"media_type\";s:4:\"TEXT\";}','456','n4o20emzgc0znmqms0zukt4f3st9h4p','text/plain','TEXT','0','0','0','file','20200702144637','finished')
[fileconcatenate] Stashed combined file (1 chunks) in 0.011620044708252 seconds.
[DBQuery] LocalRepo::findFilesByPrefix [0.001s] localhost: SELECT img_name,img_size,img_width,img_height,img_metadata,img_bits,img_media_type,img_major_mime,img_minor_mime,img_timestamp,img_sha1,comment_img_description.comment_text AS `img_description_text`,comment_img_description.comment_data AS `img_description_data`,comment_img_description.comment_id AS `img_description_cid`,actor_img_user.actor_user AS `img_user`,actor_img_user.actor_name AS `img_user_text`,img_actor,img_metadata FROM `image` JOIN `comment` `comment_img_description` ON ((comment_img_description.comment_id = img_description_id)) JOIN `actor` `actor_img_user` ON ((actor_img_user.actor_id = img_actor)) WHERE img_name LIKE 'Belangrijke`_dingen.%' ESCAPE '`' ORDER BY img_name LIMIT 1
[DBQuery] Title::isDeletedQuick [0.001s] localhost: SELECT 1 FROM `archive` WHERE ar_namespace = '6' AND ar_title = 'Belangrijke_dingen.txt' LIMIT 1
[DBQuery] Title::isDeletedQuick [0s] localhost: SELECT 1 FROM `filearchive` WHERE fa_name = 'Belangrijke_dingen.txt' LIMIT 1
[DBQuery] LocalRepo::findBySha1 [0s] localhost: SELECT img_name,img_size,img_width,img_height,img_metadata,img_bits,img_media_type,img_major_mime,img_minor_mime,img_timestamp,img_sha1,comment_img_description.comment_text AS `img_description_text`,comment_img_description.comment_data AS `img_description_data`,comment_img_description.comment_id AS `img_description_cid`,actor_img_user.actor_user AS `img_user`,actor_img_user.actor_name AS `img_user_text`,img_actor,img_metadata FROM `image` JOIN `comment` `comment_img_description` ON ((comment_img_description.comment_id = img_description_id)) JOIN `actor` `actor_img_user` ON ((actor_img_user.actor_id = img_actor)) WHERE img_sha1 = 'n4o20emzgc0znmqms0zukt4f3st9h4p' ORDER BY img_name
[DBQuery] ArchivedFile::load [0s] localhost: SELECT fa_id,fa_name,fa_archive_name,fa_storage_key,fa_storage_group,fa_size,fa_bits,fa_width,fa_height,fa_metadata,fa_media_type,fa_major_mime,fa_minor_mime,fa_timestamp,fa_deleted,fa_deleted_timestamp,fa_sha1,comment_fa_description.comment_text AS `fa_description_text`,comment_fa_description.comment_data AS `fa_description_data`,comment_fa_description.comment_id AS `fa_description_cid`,actor_fa_user.actor_user AS `fa_user`,actor_fa_user.actor_name AS `fa_user_text`,fa_actor FROM `filearchive` JOIN `comment` `comment_fa_description` ON ((comment_fa_description.comment_id = fa_description_id)) JOIN `actor` `actor_fa_user` ON ((actor_fa_user.actor_id = fa_actor)) WHERE fa_sha1 = 'n4o20emzgc0znmqms0zukt4f3st9h4p' ORDER BY fa_timestamp DESC LIMIT 1
[DBQuery] SqlBagOStuff::updateTableKeys [0s] localhost: DELETE FROM `objectcache` WHERE keyname = 'local:uploadstatus:7:17l7zqartcq4.fsjpfr.7.tmp'
[DBQuery] UploadStash::removeFile [0s] localhost: SELECT us_user FROM `uploadstash` WHERE us_key = '17l7zqartcq4.fsjpfr.7.tmp' LIMIT 1
UploadStash::removeFileNoAuth clearing row 17l7zqartcq4.fsjpfr.7.tmp
[DBQuery] UploadStash::fetchFileMetadata [0s] localhost: SELECT us_user,us_key,us_orig_path,us_path,us_props,us_size,us_sha1,us_mime,us_media_type,us_image_width,us_image_height,us_image_bits,us_source_type,us_timestamp,us_status FROM `uploadstash` WHERE us_key = '17l7zqartcq4.fsjpfr.7.tmp' LIMIT 1
[DBQuery] UploadStash::removeFileNoAuth [0.001s] localhost: DELETE FROM `uploadstash` WHERE us_key = '17l7zqartcq4.fsjpfr.7.tmp'
FileRepo::freeTemp: Invalid temp virtual URL
[Mime] MimeAnalyzer::guessMimeType: WARNING: use of the $ext parameter is deprecated. Use improveTypeFromExtension($mime, $ext) instead.
[Mime] MimeAnalyzer::doGuessMimeType: analyzing head and tail of C:\Temp/chunkedupload_9d91d3b7acc2 for magic numbers.
DjVuImage::getInfo: not a DjVu file
[Mime] MimeAnalyzer::guessMimeType: internal type detection failed for C:\Temp/chunkedupload_9d91d3b7acc2 (.1)...
[Mime] MimeAnalyzer::detectMimeType: WARNING: use of the $ext parameter is deprecated. Use improveTypeFromExtension($mime, $ext) instead.
[Mime] MimeAnalyzer::detectMimeType: magic mime type of C:\Temp/chunkedupload_9d91d3b7acc2: text/plain
[Mime] MimeAnalyzer::guessMimeType: guessed mime type of C:\Temp/chunkedupload_9d91d3b7acc2: text/plain
[error] [6c207679f93c42506c8b1dd7] /mediawiki/api.php ErrorException from line 136 of C:\inetpub\wwwroot\mediawiki\includes\filerepo\file\UnregisteredLocalFile.php: PHP Notice: Trying to access array offset on value of type bool
#0 C:\inetpub\wwwroot\mediawiki\includes\filerepo\file\UnregisteredLocalFile.php(136): MWExceptionHandler::handleError()
#1 C:\inetpub\wwwroot\mediawiki\includes\api\ApiQueryImageInfo.php(437): UnregisteredLocalFile->getWidth()
#2 C:\inetpub\wwwroot\mediawiki\includes\upload\UploadBase.php(2152): ApiQueryImageInfo::getInfo()
#3 C:\inetpub\wwwroot\mediawiki\includes\api\ApiUpload.php(113): UploadBase->getImageInfo()
#4 C:\inetpub\wwwroot\mediawiki\includes\api\ApiMain.php(1598): ApiUpload->execute()
#5 C:\inetpub\wwwroot\mediawiki\includes\api\ApiMain.php(537): ApiMain->executeAction()
#6 C:\inetpub\wwwroot\mediawiki\includes\api\ApiMain.php(508): ApiMain->executeActionWithErrorHandling()
#7 C:\inetpub\wwwroot\mediawiki\api.php(87): ApiMain->execute()
#8 {main}
[error] [6c207679f93c42506c8b1dd7] /mediawiki/api.php ErrorException from line 146 of C:\inetpub\wwwroot\mediawiki\includes\filerepo\file\UnregisteredLocalFile.php: PHP Notice: Trying to access array offset on value of type bool
#0 C:\inetpub\wwwroot\mediawiki\includes\filerepo\file\UnregisteredLocalFile.php(146): MWExceptionHandler::handleError()
#1 C:\inetpub\wwwroot\mediawiki\includes\api\ApiQueryImageInfo.php(438): UnregisteredLocalFile->getHeight()
#2 C:\inetpub\wwwroot\mediawiki\includes\upload\UploadBase.php(2152): ApiQueryImageInfo::getInfo()
#3 C:\inetpub\wwwroot\mediawiki\includes\api\ApiUpload.php(113): UploadBase->getImageInfo()
#4 C:\inetpub\wwwroot\mediawiki\includes\api\ApiMain.php(1598): ApiUpload->execute()
#5 C:\inetpub\wwwroot\mediawiki\includes\api\ApiMain.php(537): ApiMain->executeAction()
#6 C:\inetpub\wwwroot\mediawiki\includes\api\ApiMain.php(508): ApiMain->executeActionWithErrorHandling()
#7 C:\inetpub\wwwroot\mediawiki\api.php(87): ApiMain->execute()
#8 {main}
[DBQuery] LCStoreDB::get [0.001s] localhost: SELECT lc_value FROM `l10n_cache` WHERE lc_lang = 'en' AND lc_key = 'specialPageAliases' LIMIT 1
ContextSource::getContext (FormatMetadata): called and $context is null. Using RequestContext::getMain() for sanity
[DBQuery] LCStoreDB::get [0s] localhost: SELECT lc_value FROM `l10n_cache` WHERE lc_lang = 'en' AND lc_key = 'messages:metadata-fields' LIMIT 1
[DBQuery] Wikimedia\Rdbms\Database::ping [0s] localhost: SELECT 1 AS ping
[DBQuery] MediaWiki::preOutputCommit [0.002s] localhost: COMMIT
MediaWiki::preOutputCommit: primary transaction round committed
MediaWiki::preOutputCommit: pre-send deferred updates completed
MediaWiki::preOutputCommit: session changes committed
MediaWiki::preOutputCommit: LBFactory shutdown completed
[cookie] setcookie: "UseDC", "master", "1593701207", "/", "", "", "1"
[cookie] setcookie: "UseCDNCache", "false", "1593701207", "/", "", "", "1"
[DBQuery] Wikimedia\Rdbms\Database::beginIfImplied (Pingback::checkIfSent) [0s] localhost: BEGIN
[DBQuery] Pingback::checkIfSent [0s] localhost: SELECT ul_value FROM `updatelog` WHERE ul_key = 'Pingback-1.34.2' LIMIT 1
[DBQuery] Pingback::schedulePingback [0s] localhost: COMMIT
Request ended normally
[session] Saving all sessions on shutdown
[DBConnection] Wikimedia\Rdbms\LoadBalancer::__destruct: closing connection to database 'localhost'.
[DBConnection] Wikimedia\Rdbms\LoadBalancer::__destruct: closing connection to database 'localhost'. TeunEbb (talk) 14:50, 2 July 2020 (UTC)
- I made some changes to theopen_basedir = and now im not getting the first message anymore but only a big fat ERROR..
- I can see this in the log, it was in the log before to..
- [error] [6c207679f93c42506c8b1dd7] /mediawiki/api.php ErrorException from line 136 of C:\inetpub\wwwroot\mediawiki\includes\filerepo\file\UnregisteredLocalFile.php: PHP Notice: Trying to access array offset on value of type bool
- [error] [6c207679f93c42506c8b1dd7] /mediawiki/api.php ErrorException from line 146 of C:\inetpub\wwwroot\mediawiki\includes\filerepo\file\UnregisteredLocalFile.php: PHP Notice: Trying to access array offset on value of type bool
- There are the only two real errors and some of the last entrys in the logfile, if i disable the unregisterlocalfile functions on line 146 and line 136 im not getting an error and i tlooks like the file is uploaded but then it will try to place it like an image..
- Is it possible that mine visual editior is always trying to upload the media as an image? I have a feeling an txt should not go the unregisterlocalfile in the first place.... TeunEbb (talk) 19:00, 2 July 2020 (UTC)
- Only images seems to work. This is what i get when doing an PDF
- [exec] MediaWiki\Shell\Command::execute: "/usr/bin/pdftotext" "C:\Temp/chunkedupload_38aa0ab9bf56" "-"
- [exec] Error running "/usr/bin/pdftotext" "C:\Temp/chunkedupload_38aa0ab9bf56" "-": The filename, directory name, or volume label syntax is incorrect.
- #0 C:\inetpub\wwwroot\mediawiki\extensions\PdfHandler\includes\PdfImage.php(154): MediaWiki\Shell\Command->execute()
- #1 C:\inetpub\wwwroot\mediawiki\extensions\PdfHandler\includes\PdfImage.php(57): PdfImage->retrieveMetaData()
- #2 C:\inetpub\wwwroot\mediawiki\extensions\PdfHandler\includes\PdfHandler.php(300): PdfImage->getImageSize()
- #3 C:\inetpub\wwwroot\mediawiki\includes\filerepo\file\UnregisteredLocalFile.php(170): PdfHandler->getImageSize()
- #4 C:\inetpub\wwwroot\mediawiki\includes\filerepo\file\UnregisteredLocalFile.php(177): UnregisteredLocalFile->getImageSize()
- #5 C:\inetpub\wwwroot\mediawiki\includes\api\ApiQueryImageInfo.php(599): UnregisteredLocalFile->getBitDepth()
- #6 C:\inetpub\wwwroot\mediawiki\includes\upload\UploadBase.php(2152): ApiQueryImageInfo::getInfo()
- #7 C:\inetpub\wwwroot\mediawiki\includes\api\ApiUpload.php(113): UploadBase->getImageInfo()
- #8 C:\inetpub\wwwroot\mediawiki\includes\api\ApiMain.php(1598): ApiUpload->execute()
- #9 C:\inetpub\wwwroot\mediawiki\includes\api\ApiMain.php(537): ApiMain->executeAction()
- #10 C:\inetpub\wwwroot\mediawiki\includes\api\ApiMain.php(508): ApiMain->executeActionWithErrorHandling()
- #11 C:\inetpub\wwwroot\mediawiki\api.php(87): ApiMain->execute()
- #12 {main}
- And this when doing an .doc
- UploadBase::verifyFile: all clear; passing.
- [Mime] MimeAnalyzer::doGuessMimeType: analyzing head and tail of C:\Temp/chunkedupload_9d531be766df for magic numbers.
- [Mime] MimeAnalyzer::doGuessMimeType: recognized MS CFB (OLE) file
- [Mime] MimeAnalyzer::guessMimeType: guessed mime type of C:\Temp/chunkedupload_9d531be766df: application/msword
- [Mime] MimeAnalyzer::improveTypeFromExtension: improved mime type for .: application/msword
- UploadStash::stashFile stashing file at 'C:\Temp/chunkedupload_9d531be766df'
- [Mime] MimeAnalyzer::guessMimeType: WARNING: use of the $ext parameter is deprecated. Use improveTypeFromExtension($mime, $ext) instead.
- [Mime] MimeAnalyzer::doGuessMimeType: analyzing head and tail of C:\Temp/chunkedupload_9d531be766df for magic numbers.
- [Mime] MimeAnalyzer::doGuessMimeType: recognized MS CFB (OLE) file
- [Mime] MimeAnalyzer::guessMimeType: guessed mime type of C:\Temp/chunkedupload_9d531be766df: application/msword
- UploadStash::stashFile key for 'C:\Temp/chunkedupload_9d531be766df': 17l8oh7a91sw.t5qqvx.7.
- [FileOperation] copy(C:\Temp/temp/c/c5/20200702200950!chunkedupload_9d531be766df.): failed to open stream: Permission denied
- User: loading options for user 7 from override cache.
- ParserFactory: using preprocessor: Preprocessor_Hash
- Unstubbing $wgLang on call of $wgLang::_unstub from ParserOptions->__construct TeunEbb (talk) 20:10, 2 July 2020 (UTC)
- What version of Mediawiki? What version of PHP? MySQL? How are you trying to upload? (Through visual editor? Through Special:Upload page?) too little information for the helpers here to help you with. TiltedCerebellum (talk) 01:08, 6 July 2020 (UTC)
Superfluous code showing after adding infobox
RESOLVED | |
Solved after properly loading ParserFunctions |
The following discussion is closed. Please do not modify it. Subsequent comments should be made on the appropriate discussion page. No further edits should be made to this discussion.
Hi!
I'm adding infobox functionality and everything is for the most part working fine. However, in addition to the newly added infobox, I have text that looks like this also appearing at the top of my page.
https://www.screencast.com/t/QOxi4wyG
Where should I begin troubleshooting this? I've tried deleting and readding templates and modules with no success. I figure there must be something missing but I'm not sure what.
Thank you for the help! 2604:2000:12C0:32:6C38:9E8:F7C3:ED11 (talk) 16:49, 2 July 2020 (UTC)
- Have you installed Extension:ParserFunctions? Taavi (talk!) 16:55, 2 July 2020 (UTC)
- Yes, I believe so. I have a folder for the ParserFunctions extension and I've made the change to LocalSettings.php. My suspicion was that the issue was likely related to ParserFunctions but I still haven't quite figured it out. 2604:2000:12C0:32:6C38:9E8:F7C3:ED11 (talk) 17:06, 2 July 2020 (UTC)
- Disregard! I'm an idiot. The issue was as you suspected. wfLoadExtension( 'ParserFunctions' ); was not properly in the LocalSettings.php file.
- Appreciate the assistance friend. 2604:2000:12C0:32:6C38:9E8:F7C3:ED11 (talk) 17:08, 2 July 2020 (UTC)
- Glad you solved it. Taavi (talk!) 17:13, 2 July 2020 (UTC)
Recent Changes box not showing after upgrade from 1.33 to 1.34.2
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, the box that is usually showing on the Recent Changes page doesn't show anymore after the upgrade, therefore it's not auto-refreshing the page either; I have to do it manually in order to check for new changes.
MediaWiki 1.34.2
PHP 7.4.3 (cgi-fcgi)
MariaDB 10.1.26-MariaDB-0+deb9u1
ICU 57.1
Lua 5.1.5
https://rammwiki.net/wiki/Special:RecentChanges
Greetings, Rasputin 93 Rasputin 93 (talk) 20:14, 2 July 2020 (UTC)
- @Rasputin1493 Please open the "Developer Tools" of your web browser and see the errors there. Several required files are 404s. Or check your webserver log. Malyacko (talk) 07:07, 4 July 2020 (UTC)
- Thank you, very much. I should check stuff like that in the future. It has been fixed now. Rasputin 93 (talk) 07:41, 4 July 2020 (UTC)
Timed Media Handler Installation
About what level of difficulty is setting up the TMH usually considered? I've been reading for days and am reasonably sure I think I can handle it, but thought I should do a check-in before I dive-in. If its "vastly difficult and only for super users" then I probably won't try it quite yet, but if it's more at the level of "takes some time but is manageable," then I probably will. Thank you. Will try to sign. ~~~~ Tried to sign but can't make it work. Apologies. EliasBueno. EliasBueno (talk) 00:22, 3 July 2020 (UTC)
- Id say its a middle difficulty extension. Its much easier than visual editor. Its a little more difficult than the really easy ones like InputBox.
- In any case i suggest you go ahead and try it - if you run into problems dont hesitate to ask. Bawolff (talk) 00:50, 3 July 2020 (UTC)
- well, I give up. <sad face>
- Now instead hoping for recommendations for Very First Step that will eventually lead to being able to add extensions. Or maybe recommended first super easy one to try? Or even perhaps "best tutorial on this process"? EliasBueno (talk) 01:14, 4 July 2020 (UTC)
- Or alternately, falling back a step, maybe I should start with audio?
- I have figured out how to have the "leaves the page when you click play" type of audio, but I want the kind for "stays on the page when you click play", which I think is called "inline audio" ? EliasBueno (talk) 01:17, 4 July 2020 (UTC)
- Here is an excellent response to my question:
- "If your question is about a specific function, please read the relevant technical manual, end-user help or extension page and consider asking on its talk page."
- I'm going to try this, too! :)
- But definitely still very eager to receive any other input or help, as well.
- Thanks! EliasBueno (talk) 01:20, 4 July 2020 (UTC)
- well if you tell us where you got stuck, maybe we can make suggestions for resources to read.
- If you want very first steps to install an extension - try a simple one like extension:inputbox or extension:nuke Bawolff (talk) 08:43, 4 July 2020 (UTC)
- Thanks! I appreciate the guidance very much! EliasBueno (talk) 15:29, 4 July 2020 (UTC)
Most used passwords
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,
Is there a way to remove the most used passwords restriction when creating accounts? 190.140.176.33 (talk) 00:55, 3 July 2020 (UTC)
- See $wgPasswordPolicy
- From a security perspective its probably a bad idea to do that due to the risk of dictionary attacks. Bawolff (talk) 01:30, 3 July 2020 (UTC)
- Thank you. I have a school wiki, and I prefer short/easy passwords. Which parameter should I use to remove the restriction? 190.140.176.33 (talk) 18:44, 3 July 2020 (UTC)
$wgPasswordPolicy['policies']['default']=[];
would remove all restrictions (including length) for normal users but not admins. See thecdoc page for more options. Bawolff (talk) 08:52, 4 July 2020 (UTC)
wiki Don't work
[Xv6RbfEDkqrOeUtXnVaGdwAAAEY] /index.php?title=Module:Bananas&action=submit MWException from line 210 of /home/amargita/public_html/extensions/Scribunto/includes/engines/LuaStandalone/LuaStandaloneEngine.php: The lua binary (/home/amargita/public_html/extensions/Scribunto/includes/engines/LuaStandalone/binaries/lua5_1_5_linux_64_generic/lua) is not executable.
Backtrace:
#0 /home/amargita/public_html/extensions/Scribunto/includes/engines/LuaStandalone/LuaStandaloneEngine.php(105): Scribunto_LuaStandaloneInterpreter->__construct(Scribunto_LuaStandaloneEngine, array)
#1 /home/amargita/public_html/extensions/Scribunto/includes/engines/LuaCommon/LuaCommon.php(121): Scribunto_LuaStandaloneEngine->newInterpreter()
#2 /home/amargita/public_html/extensions/Scribunto/includes/engines/LuaStandalone/LuaStandaloneEngine.php(19): Scribunto_LuaEngine->load()
#3 /home/amargita/public_html/extensions/Scribunto/includes/engines/LuaCommon/LuaCommon.php(224): Scribunto_LuaStandaloneEngine->load()
#4 /home/amargita/public_html/extensions/Scribunto/includes/engines/LuaCommon/LuaCommon.php(953): Scribunto_LuaEngine->getInterpreter()
#5 /home/amargita/public_html/extensions/Scribunto/includes/engines/LuaCommon/LuaCommon.php(940): Scribunto_LuaModule->getInitChunk()
#6 /home/amargita/public_html/extensions/Scribunto/includes/common/Base.php(193): Scribunto_LuaModule->validate()
#7 /home/amargita/public_html/extensions/Scribunto/includes/common/ScribuntoContent.php(30): ScribuntoEngineBase->validate(string, string)
#8 /home/amargita/public_html/extensions/Scribunto/includes/common/Hooks.php(366): ScribuntoContent->validate(Title)
#9 /home/amargita/public_html/includes/Hooks.php(174): ScribuntoHooks::validateScript(DerivativeContext, ScribuntoContent, Status, string, User, boolean)
#10 /home/amargita/public_html/includes/Hooks.php(202): Hooks::callHook(string, array, array, NULL)
#11 /home/amargita/public_html/includes/EditPage.php(1790): Hooks::run(string, array)
#12 /home/amargita/public_html/includes/EditPage.php(2122): EditPage->runPostMergeFilters(ScribuntoContent, Status, User)
#13 /home/amargita/public_html/includes/EditPage.php(1617): EditPage->internalAttemptSave(NULL, boolean)
#14 /home/amargita/public_html/includes/EditPage.php(682): EditPage->attemptSave(NULL)
#15 /home/amargita/public_html/includes/actions/EditAction.php(55): EditPage->edit()
#16 /home/amargita/public_html/includes/actions/SubmitAction.php(38): EditAction->show()
#17 /home/amargita/public_html/includes/MediaWiki.php(511): SubmitAction->show()
#18 /home/amargita/public_html/includes/MediaWiki.php(302): MediaWiki->performAction(Article, Title)
#19 /home/amargita/public_html/includes/MediaWiki.php(900): MediaWiki->performRequest()
#20 /home/amargita/public_html/includes/MediaWiki.php(527): MediaWiki->main()
#21 /home/amargita/public_html/index.php(44): MediaWiki->run()
#22 {main} WikiS459 (talk) 02:06, 3 July 2020 (UTC)
- Use chmod or a file manager to set the execute bit on the lua binary Bawolff (talk) 02:53, 3 July 2020 (UTC)
- Help me to use it,I don't know about using it WikiS459 (talk) 04:48, 3 July 2020 (UTC)
- If you could write a little, I would copy and paste WikiS459 (talk) 05:06, 3 July 2020 (UTC)
- We cannot as we don't know your setup and where exactly your Lua binary is located. Please enter "chmod shell command executable" in a search engine to get some hints - thanks! Malyacko (talk) 09:49, 3 July 2020 (UTC)
- chmod u+x /home/amargita/public_html/extensions/Scribunto/includes/engines/LuaStandalone/binaries/lua5_1_5_linux_64_generic/lua
- However please read the chmod manual page to understand whats going on. Bawolff (talk) 19:17, 4 July 2020 (UTC)
- @Bawolff What should I do now? If you would say a little WikiS459 (talk) 07:11, 14 July 2020 (UTC)
Account
RESOLVED | |
User is in the wrong place |
The following discussion is closed. Please do not modify it. Subsequent comments should be made on the appropriate discussion page. No further edits should be made to this discussion.
Hi
I filled out an application for an account a few weeks ago. I haven't heard anything back. Is there a way I can find out: if this has been received, is being processed or has been denied?
Thanks,
Andy 84.65.50.144 (talk) 08:26, 3 July 2020 (UTC)
- Where did you apply for an account? Taavi (talk!) 08:29, 3 July 2020 (UTC)
- From Special:RequestAccount The top right hand menu on the site 84.65.50.144 (talk) 09:23, 3 July 2020 (UTC)
- Whatever website this is about, you'll have to contact that website, I'm afraid. This is the forum for the software called MediaWiki. MediaWiki is used by many websites out there, but we do not run these websites. Malyacko (talk) 09:47, 3 July 2020 (UTC)
- OK thank you - this was the address edutechwiki.unige.ch en Special:RequestAccount - with gaps
- So you are not a part of this? 84.65.50.144 (talk) 09:49, 3 July 2020 (UTC)
- We are not. We make the software they use, but they are totally separate. Bawolff (talk) 02:37, 4 July 2020 (UTC)
How do I stop my cerdit card donation to Wikipide
The following discussion is closed. Please do not modify it. Subsequent comments should be made on the appropriate discussion page. No further edits should be made to this discussion.
How do I stop my credit card donation to Wikipedia 72.48.150.67 (talk) 15:39, 3 July 2020 (UTC)
- Hi, this is a form for mediawiki questions manned by volunteers, we dont have any info on donations.
- Try emailing donate@wikimedia.org Bawolff (talk) 02:36, 4 July 2020 (UTC)
How to edit one section only?
Hi all,
I am starting some new pages on my own tiny MediaWiki for the first time in a couple of years. In the past, I always got the [edit] hotlink to the right of any section header. I still see them now on pages on my own wiki that I made in the past (some but not all), and I see them when signed into Wikipedia.
Yet I am not getting them on a new page I am making, even after having made a number of h2 and h3 sections.
It's annoying. I heavily rewrite as I go, so I want to focus on where I am, now. Not having individual-section edits means I have to scroll down both through the edit window and the preview, every single time I submit changes or preview.
There must be some very easy explanation, but I don't know why this is happening. I can't seem to find a relevant Setting that affects this.
Thanks if you can help!
Info on my site:
Product | Version |
---|---|
MediaWiki | 1.27.1 |
PHP | 5.6.40 (cgi-fcgi) |
MySQL | 5.6.40-84.0-log |
ICU | 4.8.1.1 |
RedKnight7 (talk) 01:13, 4 July 2020 (UTC)
- I'd recommend upgrading MediaWiki, 1.27 was released 4 years ago and support for it was dropped about a year ago. Taavi (talk!) 07:35, 4 July 2020 (UTC)
- Thank you Majavah. Could you or anyone else recommend a service or person I could pay to advise me on my wiki? It's a bit too much work for me. RedKnight7 (talk) 11:00, 4 July 2020 (UTC)
- Manual:Upgrading; Professional development and consulting Malyacko (talk) 11:51, 4 July 2020 (UTC)
- normally the only reason section links wouldnt show up is if __NOEDITSECTIONLINKS__ was present or you did not have edit access to the page. If your wiki is public, linking to it might allow us to better figure out what happened Bawolff (talk) 19:16, 4 July 2020 (UTC)
Fatal exception of type MWException
이 문제를 처음 당하고 보니, 이곳 저곳에서 안내를 보았지만 모두 실패했습니다. Ahnskim (talk) 17:54, 4 July 2020 (UTC)
- set $wgShowExceptionDetails=true; in LocalSettings.php for better error message.
- $wgShowExceptionDetails=true; 설정 더 나은 오류 메시지 Bawolff (talk) 19:13, 4 July 2020 (UTC)
Information needed on Wiki
RESOLVED | |
Request made on the wrong wiki, this is not pertaining to the MW software |
The following discussion is closed. Please do not modify it. Subsequent comments should be made on the appropriate discussion page. No further edits should be made to this discussion.
For the Wiki Site "COVID-19 pandemic in Toronto", the number of deaths per day is needed!!!!!! Like all the other Wiki COVID-19 City and Country Sites!!!!! 2601:98A:C101:60CE:7175:9A03:3976:EEFC (talk) 18:04, 4 July 2020 (UTC)
- You're probably in the wrong place. This page is for support for the MediaWiki software. Taavi (talk!) 18:06, 4 July 2020 (UTC)
- for questions about wikipedia try w:WP:TEAHOUSE. See also w:WP:BOLD Bawolff (talk) 19:55, 4 July 2020 (UTC)
I don't want maintain separate user pages on every project
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.
Only want to maintain user page on meta-wiki. Can you remove my extraneous user pages? EubieDrew (talk) 23:32, 4 July 2020 (UTC)
- you have to ask the admins on each project to delete. On most wikis, put {{delete}} on the page to request deletion. Bawolff (talk) 08:18, 5 July 2020 (UTC)
- You can request changes to your user pages on all wikis here: m:Synchbot 94rain Talk 08:44, 5 July 2020 (UTC)
Offer to write a wikipedia page for a charge
RESOLVED | |
Technically valid with disclosure information |
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.
A friend of mine received this email. I suspect this might be common but cannot be sanctioned by wikipedia. Do people doing this get blocked from writing entries?
From: Saad Akhtar <[[2]]>
Date: Fri, 3 Jul 2020 at 19:00
Subject: You Should Have a Wikipedia Page
Hello Professor Valencia,
My name is Saad Akhtar. I am a freelance writer and I write Wikipedia pages for individuals and companies. I looked you up and you are not on Wikipedia! Would you like to have a Wikipedia page? If yes, then I can help you. Having written Wikipedia pages for over 400 individuals, I can write an excellent page for you. For your safety and assurance, there will be NO upfront payment required. You only have to pay AFTER the work is complete and you are happy with it.
Academics who have accomplished much less have Wikipedia pages because they have got them made. It's time you get one too. Just send me a message and I will forward you the cost and time frame details for writing your Wikipedia page.
Best,
Saad Akhtar 144.138.33.104 (talk) 02:48, 5 July 2020 (UTC)
- hi, see w:Wikipedia:Paid-contribution disclosure for the rules around this. Basically its frowned upon, but if the person fully discloses they are being paid (so other people can check on them), and writes neutrally/follows other rules, it is grudgingly allowed.
- People who offer such services are acting on their own, and don't represent Wikipedia in any way. Bawolff (talk) 08:17, 5 July 2020 (UTC)
Can't seem to restrict by namespace
RESOLVED | |
User can accoplish this via namespace numbers |
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.
Within MediaWiki 1.31.8, I need to restrict access to pages in a namespace so only members of a group would be able to use/view it.
The wiki has over 500 pages that begin with "MARKETING:".
I have created a namespace by adding this to LocalSettings.php:
"$wgExtraNamespaces =
array (104 => "MARKETING",
105 => "MARKETING_Talk");
I then installed Lockdown and added this line to LocalSettings.php:
$wgNamespacePermissionLockdown[MARKETING]['*'] = ['marketing'];
(I've seen some users have "marketing" as their group in the wiki "ListUsers" webpage)
I then went to test it in incognito (to avoid cookies error) with a dummy user that has no groups and it just doesn't work. I've noticed that I can enter gibberish into the code above and it doesn't change anything or even throw logs. Would really appreciate the help, thanks ahead. 79.179.192.168 (talk) 16:56, 5 July 2020 (UTC)
- You need to use numerical namespace ids with $wgNamespacePermissionLockdown, so use
$wgNamespacePermissionLockdown[104]['*'] = ['marketing'];
Taavi (talk!) 18:20, 5 July 2020 (UTC)
Template Data Issue
RESOLVED | |
Database was borked from an old upgrade someone did, they repaired it, mostly. Going to dump the pages and get the user data and start fresh with pages imported. |
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 having an issue with the Template Data extension, it is not recognizing template data. Our job queue is empty. Purging does not help. No significant errors apparent in Chrome Inspector Console (just one about JQMIGRATE: jQuery(window).on('load'...) called after load event occurred). The api endpoint it is hitting appears to be correct (the api at https://www.my-site.wiki loads no problem).
There is template data in the template /doc subpage which is transcluded to the template page:<templatedata> { "params": { "1": { "label": "This is an item", "description": "This is a description", "example": "This is an example", "type": "string", "required": true } }, "description": "Test template data inserted by the \"Manage TemplateData\" button" } </templatedata>Still no template data recognized. See: https://www.dragon-mania-legends.wiki/Template:Ae (And yes I know that 1.33 is old, we're waiting for 1.35 LTS to come out August 1st before upgrade). I posted on the extension page, received no assistance. I'm not very familiar with Tempate Data for troubleshooting. In visual editor, while selecting the template, I just keep seeing the message: "The "Template:Ae" template doesn't yet have a description, but there might be some information on the template's page" and on the template data api query I keep seeing:
- Here's where the same template has no data populated from Template Data:
{ "error": { "code": "templatedata-corrupt", "info": "Page #27861 templatedata contains invalid data: Property \"templatedata\" is expected to be of type \"object\".", "*": "See https://www.my-site.wiki/api.php for API usage. Subscribe to the mediawiki-api-announce mailing list at <https://lists.wikimedia.org/mailman/listinfo/mediawiki-api-announce> for notice of API deprecations and breaking changes." } }
You can see the issue with:
- Here's a template with template data in its /doc subpage.
- Here's a page to test it on.
- Here's where the same template has no data populated from Template Data.
If anyone has an idea on how to get this going, please let me know. Or how to figure out what's going wrong with it. I google the error and come up with nothing that should be currently relevant.
Thanks in advance for any help offered.
Product | Version |
---|---|
MediaWiki | 1.33.0 (62dc614)
06:13, 24 July 2019 |
PHP | 7.3.15 (cgi-fcgi) |
MySQL | 5.7.28-log |
ICU | 57.1 |
Entry point | URL |
---|---|
Article path | /$1
|
Script path | /
|
index.php | /index.php
|
api.php | /api.php
|
load.php | /load.php
|
- ok, so your api call says missing because you are using titles=Ae instead of titles=template:Ae . However that's superficial issue.
- Im not sure whats going on with the templatedata, it looks like its being stored as false (0) - https://www.dragon-mania-legends.wiki/Special:PagesWithProp?propname=templatedata
- Just to confirm, you are using the version of templatedata that corresponds to your version of mediawiki? Can you check php error logs for any errors? Bawolff (talk) 00:46, 6 July 2020 (UTC)
- Yeah I fixed the link. Yes, I'm using the 1.33 version on my 1.33 site and the 1.34 version on my 1.34 test site, both have the same issue.
- MW 1.33.0 site:
- Product Version
- MediaWiki 1.33.0 (62dc614)
- 06:13, 24 July 2019
- PHP 7.3.15 (cgi-fcgi)
- MySQL 5.7.28-log
- ICU 57.1
- Template Data version on the 1.33.0 site:
- TemplateData: REL1_33
- 2020-05-25T18:46:03
- 7ffe97a
- Just tested in MW 1.34, also happens in 1.34 with extension:
- Product Version
- MediaWiki 1.34.2
- PHP 7.3.15 (cgi-fcgi)
- MySQL 5.7.28-log
- ICU 57.1
- Template Data version on the 1.34.2 site:
- TemplateData: REL1_34
- 2020-05-25T18:46:03
- b9ccaf6 TiltedCerebellum (talk) 00:52, 6 July 2020 (UTC)
- I'll do a clean install, add back one extension at a time and test it there. If that fails to reveal the cause I'll start disabling scripts etc. Hopefully I find the culprit. TiltedCerebellum (talk) 04:09, 6 July 2020 (UTC)
- well it never hurts to try that, at a first glance i would be surprised if it is another extension or script interfering. Bawolff (talk) 04:19, 6 July 2020 (UTC)
- Yeah, its not an extension or script. Just dumped everything on my test site for extensions, addons etc. Did a clean install and cloned over all of the extensions, theme, addon scripts etc, Template Data works fine. It's the old database. So I'll be doing an dump of all of the pages and using an extension to dump the user data, starting fresh and re-importing. That'll keep a girl like me busy for a while lol.
- Would explain why we had a very strange issue with the Page Forms extension also. Once upon a time they had a database issue on upgrade (before I came along) and they somehow repaired it, rather than restoring from an old backup (I get the impression that whoever did the upgrade didn't do a backup :O) and it's been running but a little gibbly. It's about time it got fixed. :\ TiltedCerebellum (talk) 05:07, 6 July 2020 (UTC)
I have been struggling to install RESTBase for VisualEditor
I had already successfully got VisualEditor up and running on my Mediawiki installation following the instructions here, and here (link) all the way through "Linkwith with Parsoid." I really want RESTbase set up to switch between visual and classic editors.
I tried following the instructions for setting up RESTbase except for the config section since in the VisualEditor page under "Switching between Wikitext Editing and VisualEditor", it says "For VisualEditor you do not need the configuration section in config.yaml
described in the RESTBase configuration section."
I do that and when I try to startup RESTBase, both without a config.yaml file, and with the one copied from config.example.yaml with no changes, RESTBase doesn't work. Without one it returns the error that there's no config file. I try to follow the instructiosn on the RESTBase Installation for config.yaml, but I don't think I know what I'm doing. This is so complicated, can someone help me? Preferrably step by step how to config RESTBase?
- I use XAMPP on Windows and access Mediawiki with the URL http://localhost/mediawiki/index.php
- This is what I have in localSettings.php for VisualEditor
// VisualEditor Extension wfLoadExtension( 'VisualEditor' ); // Enable by default for everybody $wgDefaultUserOptions['visualeditor-enable'] = 1; // Optional: Set VisualEditor as the default for anonymous users // otherwise they will have to switch to VE // $wgDefaultUserOptions['visualeditor-editor'] = "visualeditor"; // Don't allow users to disable it $wgHiddenPrefs[] = 'visualeditor-enable'; // OPTIONAL: Enable VisualEditor's experimental code features $wgDefaultUserOptions['visualeditor-enable-experimental'] = 1; $wgVirtualRestConfig['modules']['parsoid'] = array( // URL to the Parsoid instance // Use port 8142 if you use the Debian package 'url' => 'http://localhost:8000', // Parsoid "domain", see below (optional) 'domain' => 'localhost', // Parsoid "prefix", see below (optional) 'prefix' => 'localhost' );
YousufSSyed (talk) 03:36, 6 July 2020 (UTC)
- Yes, it needs a config file, but it doesn't need to be customized per se. The existing localhost portion of the default should work if its on the same machine. Perhaps they mean the chunk pertaining to x-sub-request-filters isn't needed, since this is set in the LocalSettings.php block that you were also supposed to set on this page: Extension:VisualEditor#RESTBase_setup_for_switching.
$wgVirtualRestConfig['modules']['restbase'] = [ 'url' => "http://yourRESTBaseserver.com:7231", 'domain' => '{domain}', 'parsoidCompat' => false ]; $wgVisualEditorFullRestbaseURL = 'http://yourRESTBaseserver.com:7231/{domain}/';
- See: Extension:VisualEditor#RESTBase_setup_for_switching
- The section of code they provide there that you need to add to your LocalSettings.php should work. TiltedCerebellum (talk) 04:08, 6 July 2020 (UTC)
How can I customize what buttons are on VisualEditor?
The following discussion is closed. Please do not modify it. Subsequent comments should be made on the appropriate discussion page. No further edits should be made to this discussion.
For example, the Media, Template, and Table buttons are under the drop-down menu, is there a way to get them on the VisualEditor bar instead or as well? YousufSSyed (talk) 03:45, 6 July 2020 (UTC)
- Some of the questions you are asking support are things you should try googling yourself first before asking, it can save the helpers here and you some time. Here's what Google turned up for this question:
- VisualEditor/Gadgets TiltedCerebellum (talk) 04:04, 6 July 2020 (UTC)
Is there a way to transclude sections of pages with a template?
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 keep my pages organized with headings and subheadings, so transcluding by heading would work. the Labeled Section Transclusion extension doesn't support template parameters sadly. Is there some other way to do it? YousufSSyed (talk) 03:54, 6 July 2020 (UTC)
- Why do you need template parameters for transcluding by heading? The Labeled Selection Transclusion extension does transclude by headings. We use it for that all of the time. We also use DPL3 for some other more advanced stuff.
- For items that can transclude templare praameters, you can try the Dynamic Page List (DPL) extensions:
- DPL third-party (which is DPL2) and DPL3
- DPL Third-Party - Extension:DynamicPageList (third-party)
- DPL3 - Extension:DynamicPageList3 (the documentation for this is very hard to read)
- Note: DPL3 Has an issue currently where it can't do more than inclusion on a page or it causes the page to crash (bug most likely), I'm not sure about DPL2.
- For transcluding more than one item by heading, LST is the way to go. It can do multiple inclusions on a page without hiccups, though if you transclude from a Category page, there is a bug currently where the target page ends up categorized under the category you transcluded. Hopefully that gets fixed soon. TiltedCerebellum (talk) 03:58, 6 July 2020 (UTC)
Import failed: Expected <mediawiki> tag, got
The following discussion is closed. Please do not modify it. Subsequent comments should be made on the appropriate discussion page. No further edits should be made to this discussion.
Hi there
I'm in the middle of a migration from Screwturn to Mediawiki, but the bulk importer doesn't seem to want to play nice.
My Mediawiki is 1.34.2 and PHP is 7.4.7, IIS is 10.
I have wasted a lot of time with the import function, thinking that it was the syntax or other issues carried over from the export of Screwturn.
I used this converter btw: https://github.com/Cyberitas/ScrewturnToMediawiki
In my latest test, I had exportet 2 working pages from mediawiki, which I created myself, put them in a bz2 archive and tried importing them to the same wiki. I also get the error in the topic when doing so, which leaves me baffled..
These are the php errors:
[06-Jul-2020 12:50:54 Europe/Copenhagen] PHP Warning: XMLReader::read(): uploadsource://0186662cb5a76f3d3d244da07a4070fe:1: parser error : Document is empty in C:\inetpub\Wiki\includes\import\WikiImporter.php on line 570
[06-Jul-2020 12:50:54 Europe/Copenhagen] PHP Warning: XMLReader::read(): BZh91AY&SY�=�� in C:\inetpub\Wiki\includes\import\WikiImporter.php on line 570
[06-Jul-2020 12:50:54 Europe/Copenhagen] PHP Warning: XMLReader::read(): ^ in C:\inetpub\Wiki\includes\import\WikiImporter.php on line 570
[06-Jul-2020 13:01:47 Europe/Copenhagen] PHP Warning: XMLReader::read(): uploadsource://40dc1c20a94f2ca42e01a959344381ae:1: parser error : Document is empty in C:\inetpub\Wiki\includes\import\WikiImporter.php on line 570
[06-Jul-2020 13:01:47 Europe/Copenhagen] PHP Warning: XMLReader::read(): BZh91AY&SY�=�� in C:\inetpub\Wiki\includes\import\WikiImporter.php on line 570
[06-Jul-2020 13:01:47 Europe/Copenhagen] PHP Warning: XMLReader::read(): ^ in C:\inetpub\Wiki\includes\import\WikiImporter.php on line 570
Please let me know where to find other useful logs, thank you for your time! 86.48.98.98 (talk) 11:03, 6 July 2020 (UTC)
- Are you using importDump.php or Special:Import? If importDump.php, what exact command are you using to import the file? Taavi (talk!) 11:42, 6 July 2020 (UTC)
- Hi Majavah
- Thanks, good point - I was blinded by the same error message from the Special:Import, so I didn't test the mediawiki export in the commandline.. It worked there...
- Here are my tests with only a few converted xml files in the tar.bz2:
- c:\Program Files\PHP\v7.4.7>php C:\inetpub\Wiki\maintenance\importDump.php --conf C:\inetpub\Wiki\LocalSettings.php C:\Users\hj_adm\Desktop\Desktop.tar.bz2
- Warning: XMLReader::read(): uploadsource://0cc83551072289c1540745a8ff28e526:1: parser error : Document is empty in C:\inetpub\Wiki\includes\import\WikiImporter.php on line 570
- Warning: XMLReader::read(): agents.xml in C:\inetpub\Wiki\includes\import\WikiImporter.php on line 570
- Warning: XMLReader::read(): ^ in C:\inetpub\Wiki\includes\import\WikiImporter.php on line 570
- MWException from line 574 of C:\inetpub\Wiki\includes\import\WikiImporter.php: Expected <mediawiki> tag, got
- #0 C:\inetpub\Wiki\maintenance\importDump.php(359): WikiImporter->doImport()
- #1 C:\inetpub\Wiki\maintenance\importDump.php(292): BackupReader->importFromHandle(Resource id #150)
- #2 C:\inetpub\Wiki\maintenance\importDump.php(127): BackupReader->importFromFile('compress.bzip2:...')
- #3 C:\inetpub\Wiki\maintenance\doMaintenance.php(99): BackupReader->execute()
- #4 C:\inetpub\Wiki\maintenance\importDump.php(364): require_once('C:\\inetpub\\Wiki...')
- #5 {main}
- They all work individually, the ones I have checked at least. 86.48.98.98 (talk) 12:07, 6 July 2020 (UTC)
- I don't think the script can read bzipped files, try giving it the path to the raw XML file Taavi (talk!) 12:19, 6 July 2020 (UTC)
- Hi again, and thank you for your time!
- It worked .. So why would the official documentation point to an archive? :D
- php importDump.php --conf ../LocalSettings.php /path_to/dumpfile.xml.gz
- Well, since that doesn't help me, do you have a pointer as to importing multiple xml files? :) 86.48.98.98 (talk) 12:41, 6 July 2020 (UTC)
- The documentation states "If the file is compressed and that has a .gz or .bz2 file extension, it is decompressed automatically.". My guess would be that it only
.bz2
files, not.tar.bz2
. I'll do some digging and update the documentation. Taavi (talk!) 12:44, 6 July 2020 (UTC) - I tried both with archives made in 7-zip (first tar, then bz2 from the tar) and directly to bz2 on Ubuntu via tar tool..
- Guess I'll just build a long list of single import commands and get it overwith ... =)
- Thank you so much for your time 86.48.98.98 (talk) 12:51, 6 July 2020 (UTC)
- it probably also depends if your version of php is compiled with bz2 support (i would guess) Bawolff (talk) 16:09, 6 July 2020 (UTC)
- Hi Bawolf
- It is an enabled extension on my PHP, so no worries there :)
- I ended up importing 1 page/xml at a time, which was about 300 oneliners, but we're up and running!
- Thanks for the quick support, you guys are amazing! 86.48.98.98 (talk) 16:10, 7 July 2020 (UTC)
Mediawiki Not rendering Content of the pages
I am not able to see the content of the pages in mediawiki.
I followed below steps:
- Downloaded sql dumps and import those dumps
- Then i imported xml dump using --> php maintenance/importDump.php --no-updates --debug dumps/enwiki-20200501-pages-articles-multistream17.xml-p11539267p13039266
- php maintenance/rebuildrecentchanges.php
- php maintenance/rebuildall.php
I am still not able to see the content.
Is there any step that i am missing? Vickyatwal (talk) 11:58, 6 July 2020 (UTC)
- @Vickyatwal We don't know what "not able to see the content" means. Which MediaWiki version? Is the page completely blank? Is the UI shown but only the actual content is missing? No content at all, or only some pages missing? Something else? Please elaborate much more. Malyacko (talk) 14:31, 6 July 2020 (UTC)
- Mediawiki version 1.34
- I get page_name and there is No content at all
- I get below message
- Arthur Hamerschlag
- "There is currently no text in this page. You can search for this page title in other pages, search the related logs, or create this page
- @Malyacko Vickyatwal (talk) 07:09, 7 July 2020 (UTC)
- I’m not sure how your URL got to be:
- 35.247.5.218:5005/index.php/Main_Page. The index.php part should not be there. It should be:
- 35.247.5.218:5005/Main_Page
- Do you perhaps have short URLs configured incorrectly?
- What do the non-sensitive parts of your LocalSettings.php look like? TiltedCerebellum (talk) 06:45, 8 July 2020 (UTC)
- I Have not configured anything related to URL.
- I have left wgScriptPath blank as below
- $wgScriptPath = "";
- And it seems its default URL pattern in recent versions of mediawiki as mentioned in Manual:Short URL#Introduction Vickyatwal (talk) 09:40, 8 July 2020 (UTC)
- Ah, it's the variation for when you don't have CGI support, got it. TiltedCerebellum (talk) 01:25, 9 July 2020 (UTC)
- Can you please specify how you created the backup (the method and steps you used to create it) was it by Special:Export? Did you do it using dumpBackup.php? If you used dumpBackup.php what command did you do? What version of MediaWiki are you exporting from?
- Help:Export TiltedCerebellum (talk) 01:33, 9 July 2020 (UTC)
- I downloaded latest dump from mediawiki
- and then tried importing dump using below command
- php maintenance/importDump.php enwiki-20200501-page.xml Vickyatwal (talk) 06:14, 9 July 2020 (UTC)
- That still doesn't tell me how the dump was made. Did you use Special:Export or did you use dumpBackup.php? And from what version of MW was the dump made? What was the command used? Was it a dump of everything or just some namespaces? Are you sure you got the pages and namespaces in the dump that you think you got?
- Also, you might try adding the debug option to importDump.php --debug as per the manual page for it:
- Manual:ImportDump.php
- There is also a page for common problems when using importDump.php that you might try going through:
- https://meta.wikimedia.org/wiki/Data_dumps/ImportDump.php#Common_problems_and_solutions in particular the steps for turning on error output so you can get some usable information on how the import went/failed. $wgShowExceptionDetails = true;
- Right now there is too little information for anyone to help you.
- Manual:How to debug TiltedCerebellum (talk) 21:08, 9 July 2020 (UTC)
- Thanks @TiltedCerebellum, I wil check this pages.
- And dump was not created manually, It was download from https://dumps.wikimedia.org/ Vickyatwal (talk) 13:03, 11 July 2020 (UTC)
install VisualEditor
hello, i'm trying to install VisualEditor but it doesn't work.
MediaWiki | 1.34.2 |
PHP | 7.3.18 (fpm-fcgi) |
MySQL | 5.6.48-log |
ICU | 52.1 |
I copied the extension, added the lines in localsetting.php:
wfLoadExtension( 'VisualEditor' );
// Enable by default for everybody
$wgDefaultUserOptions['visualeditor-enable'] = 1;
// Optional: Set VisualEditor as the default for anonymous users
// otherwise they will have to switch to VE
// $wgDefaultUserOptions['visualeditor-editor'] = "visualeditor";
// Don't allow users to disable it
$wgHiddenPrefs[] = 'visualeditor-enable';
// OPTIONAL: Enable VisualEditor's experimental code features
#$wgDefaultUserOptions['visualeditor-enable-experimental'] = 1;
maybe it comes from parser, I can't figure out how to install and configure it. Thank you 109.18.246.144 (talk) 12:34, 6 July 2020 (UTC)
- what do you mean by "it does not work"? did you install and configure parsoid? Taavi (talk!) 12:35, 6 July 2020 (UTC)
TALK TAB help
I've trying to add a talk tab to my wiki pages. Per the research and instructions that I have read to simply sect the talk icon at the upper right corner and that's it. That's not working for me at all, what am I doing wrong ? All I need is a TALK tab on all my wiki pages, Please help. Rcouseillant (talk) 17:41, 6 July 2020 (UTC)
- @Rcouseillant MediaWiki pages in the main namespace have a Talk/Discussion page. If that's not the case, then please elaborate, tell us your MediaWiki version, and which instructions (links) you are following. Malyacko (talk) 20:11, 6 July 2020 (UTC)
- Media wiki 1.30.0
- Installed Extension Semantic Media wiki 2.5.6
- I've looked at Help:Talk pages
- Extension talk:MenuTabs
- The page is http://cameo.mfa.org/wiki/Main_Page
- Not sure where else to look. The "TALK" tab does not appear at the top and I can't find how or where to enable it.
- Thanks
- Rcouseillant Rcouseillant (talk) 01:33, 7 July 2020 (UTC)
- @Rcouseillant Does the Talk tab appear if you are logged in? Also: You are running an ancient MediaWiki version full of security vulnerabilities. Please upgrade. Malyacko (talk) 08:12, 7 July 2020 (UTC)
New User Emails not Sending
Hi all, I'll try to keep it short and simple, I'm having some trouble with the emails. Specifically after a user has requested an account and the admin confirms it, no email is being received by the user. I have tested this with both gmail and outlook emails. Looking at the debug info, there doesn't seem to be any errors when confirming the user and the log says that the email IS being sent (at least it hasn't said it failed) but the user doesn't receive any email. Not in spam/ junk or straight into deleted it simply isn't there.
I have tested the email function by doing a user to user email to myself and I got the email for that within seconds... I've got through all the settings and tried many different things and I can't seem to get it to work, does anybody have any suggestions?
Thanks
Rob RobHowdle (talk) 19:27, 6 July 2020 (UTC)
- try checking your mail logs (on linux usually that is /var/log/mail.log or something like that) Bawolff (talk) 23:25, 6 July 2020 (UTC)
How to move MediaWiki installation from LocalHost to domain name
The following discussion is closed. Please do not modify it. Subsequent comments should be made on the appropriate discussion page. No further edits should be made to this discussion.
I have a local installation of MediaWiki installed using WampServer; my next step is to move it to a domain name so that it will be visible on the search engines; I did some Googling for instructions on how to do this, but didn't find any specifically for MediaWiki, if you could help me or point me in the right direction I would be grateful.~ IBBishops (talk) 23:51, 6 July 2020 (UTC)
- you need to change $wgServer in LocalSettings.php to be new domain name. Otherwise everything is identical to any other webserver. Bawolff (talk) 03:03, 7 July 2020 (UTC)
- Thanks. IBBishops (talk) 00:41, 8 July 2020 (UTC)
Overrun with spambots - how do I mass delete users?
The following discussion is closed. Please do not modify it. Subsequent comments should be made on the appropriate discussion page. No further edits should be made to this discussion.
Hello, I have a wiki and without really noticing, there are thousands of bots who only edit their user profile with some strange links to various spammy websites.
I am in the process of adding all the extensions of Manual:Combating spam - assuming I stop the spam, how on earth do I remove all these spammy users? It messes up when I search using the search and my results are overloaded with text from these bots. I have a lot of content already on my website so I don't want to just clean it, what is the best way to get rid of the thousands upon thousands of spam bots? 192.222.183.167 (talk) 23:56, 6 July 2020 (UTC)
- maybe not the best way, but you can delete them when indef blocking if you enable the hideuser right. See manual:revision deletion.
- Some people use extension:userMerge for this sort of thing. Bawolff (talk) 03:01, 7 July 2020 (UTC)
Confused in usage of popups
RESOLVED | |
rtm for configuration of the extension |
The following discussion is closed. Please do not modify it. Subsequent comments should be made on the appropriate discussion page. No further edits should be made to this discussion.
Hello Sir/Madam,
Popups extension is successfully installed in my wiki but i confused in usage of Popups and LocalSettings configuration. Please help me as soon as possible.
Thanking You MKSNG (talk) 07:05, 7 July 2020 (UTC)
I'm not able to log in even when I clean the cokies
The following discussion is closed. Please do not modify it. Subsequent comments should be made on the appropriate discussion page. No further edits should be made to this discussion.
How can I solve this (my user name is AlexandreMLuz).
I already asked to reset the password, but it does not work.
I'm still logged in the app. 193.126.90.218 (talk) 07:43, 7 July 2020 (UTC)
Escape pipe charachter in parser function
RESOLVED | |
Using {{!}} does the trick. |
The following discussion is closed. Please do not modify it. Subsequent comments should be made on the appropriate discussion page. No further edits should be made to this discussion.
How do I escape a pipe character using a parser function?
Replacing a backslash by a hyphen can be like this:
{{#vardefine:varName|test\test\test}}
{{#vardefine:varName2|{{#replace:{{#var:varName}}|\|-}}}}
{{#var:varName2}}
But replacing a pipe character ...? Waanders (talk) 11:02, 7 July 2020 (UTC)
- You can use
{{!}}
Taavi (talk!) 12:35, 7 July 2020 (UTC) - That works! Thanks a lot. Waanders (talk) 15:29, 7 July 2020 (UTC)
How do I prevent spammers from adding to my wiki?
RESOLVED | |
User has links to tools to solve the spam issue |
The following discussion is closed. Please do not modify it. Subsequent comments should be made on the appropriate discussion page. No further edits should be made to this discussion.
Hello. I have been working on a wiki family, and the main issue is that spammers are adding their own pages to the main wiki and (sometimes) creating loads of accounts. I have tried CAPTCHA and my abuse filter isn't working at the moment, and more spam accounts have continued to add pages to my wiki.
I am worried that this might use up disk usage. Is there a way to stop spam from appearing on my wiki(s)? Newman2 (talk) 14:23, 7 July 2020 (UTC)
- I dealt with this a year ago, I think it was under the Special Pages and Users section, somewhere, to turn off allowing anyone to create an account. But I'm not finding it as I'm looking.....
- It might have been a coding change in one of the system pages. I know I found the solution here somewhere....
- I think I found what I did. Open the LocalSetting.php in your html editor portion of your webhost file manager. Down at the bottom is a bit on users. I set my code to the following:
# Disable anonymous editing
$wgGroupPermissions['*']['edit'] = false;
# Prevent new user registrations except by sysops
$wgGroupPermissions['*']['createaccount'] = false;
$wgGroupPermissions['*']['edit'] = false;
$wgGroupPermissions['user']['edit'] = true;
$wgGroupPermissions['sysop']['edit'] = true;
- I'm currently trying to figure out how to delete the hundreds of accounts. It took a long time to delete all the pages...
- Good luck!!!!! PelicanGaming (talk) 19:14, 7 July 2020 (UTC)
- You can use Extension:ConfirmAccount to avoid spam account creation and Manual:removeUnusedAccounts.php to remove spam accounts which haven't got round to adding spam yet. Jonathan3 (talk) 19:35, 8 July 2020 (UTC)
- Manual:Combating spam TiltedCerebellum (talk) 01:49, 9 July 2020 (UTC)
Mediawiki makes Apache2 Seg-fault
I just migrated my wiki to a brand new install on ubuntu20 with
MediaWiki1.31.7
PHP7.4.3 (apache2handler)
MariaDB10.3.22-MariaDB-1ubuntu1
Everything seemed to work fine except for one thing:
If I click on a diff-link in the version history of any page, i get a "zero-sized-reply" in the browser and in the apache2 error.log i get a line like this:
[Tue Jul 07 16:48:52.619894 2020] [core:notice] [pid 1345] AH00051: child pid 274938 exit signal Segmentation fault (11), possible coredump in /etc/apache2
(there is no core-dump in /etc/apache2)
Any ideas? Zapane (talk) 15:02, 7 July 2020 (UTC)
- @Zapane Ask in an Apache forum how to get a stacktrace/coredump of the Apache segfault, as this is not a MediaWiki problem. Malyacko (talk) 15:11, 7 July 2020 (UTC)
- the segfault will probably be in php not apache.
- most likely you have no core dump because apache does not have permission to write to /etc/apache.
- There is not much we can do about this. If you could minimize the reproduction case that would be helpful. Bawolff (talk) 15:31, 7 July 2020 (UTC)
- We could rectify the problem by installing 1.34.2 from mediawiki/latest/stable.
- Seems like the ubuntu/debian package is broken, I don't know why ubuntu has such an old version in their current lts repository. Zapane (talk) 15:24, 30 July 2020 (UTC)
- I think this is related to the 'patrolled' functionality for me. 206.223.175.102 (talk) 15:06, 19 July 2021 (UTC)
я не хочу работать под студией я хочу создать бесплатный аккаунт
RESOLVED | |
Unrelated to MW software |
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.
я не хочу работать под студией я хочу создать бесплатный аккаунт 92.127.187.127 (talk) 15:45, 7 July 2020 (UTC)
- No one has any idea what you are talking about here, this is a support page for MediaWiki software. If your inquiry is not about MediaWiki software, then you are in the wrong place.
- Никто не знает, о чем вы говорите, это страница поддержки программного обеспечения MediaWiki. Если ваш запрос не касается программного обеспечения MediaWiki, значит, вы находитесь не в том месте. TiltedCerebellum (talk) 06:42, 8 July 2020 (UTC)
Delete hundreds of spam users
The following discussion is closed. Please do not modify it. Subsequent comments should be made on the appropriate discussion page. No further edits should be made to this discussion.
How do I bulk delete hundreds of spam user accounts? I've managed to stop them being created and stop them from making junk pages, but I want to get rid of the user accounts without having to click on each one to block. PelicanGaming (talk) 18:53, 7 July 2020 (UTC)
- Hello @PelicanGaming. I'm not an expert, but maybe Extension:BlockAndNuke could help? Regards. —MarcoAurelio (talk) 19:00, 7 July 2020 (UTC)
- @MarcoAurelio
- That's grabbing only recent contributions (nothing), it's not grabbing the hundreds of users that I stopped over a year ago.... PelicanGaming (talk) 19:46, 7 July 2020 (UTC)
- Manual:Combating spam#If spam has won the battle Malyacko (talk) 21:06, 7 July 2020 (UTC)
Is there a reason why the web installer doesn't just write the LocalSettings.php file for you?
RESOLVED | |
The webserver shouldn't be able to write to executable files. |
The following discussion is closed. Please do not modify it. Subsequent comments should be made on the appropriate discussion page. No further edits should be made to this discussion.
I have often wondered why the MediaWiki web installer makes you download LocalSettings.php and upload it yourself instead of just writing the file to the web server for you. Does anyone know why this is the case? Ataaseq (talk) 22:15, 7 July 2020 (UTC)
- the old installer (pre 1.16) did this.
- Its to promote security best practise - its best if the webserver doesn't have write access to any file that gets executed. This helps in the case that a hacker finds some vulnerability. We dont create the file in order to encourage people to set up their webserver so that creating the file is impossible. Bawolff (talk) 01:25, 8 July 2020 (UTC)
- Aha, sounds reasonable. Guess I've been giving my
www
too many permissions, then. Ataaseq (talk) 14:12, 8 July 2020 (UTC)
Using a symbol to start a mediawiki page
RESOLVED | |
Using the ♯ symbol instead of # in the title of the page is a good workaround and will work for what I am doing. Thank you! |
The following discussion is closed. Please do not modify it. Subsequent comments should be made on the appropriate discussion page. No further edits should be made to this discussion.
Hello,
I have a wiki that databases musical works and composer. I have run into a bit of trouble making a page for a piece of music with the following title - #@&%!* (expletive deleted) for Percussion Quartet
This is the code I use to input it to make a page for this work.
[[#@&%!* (expletive deleted)]] – [[Percussion Quartet]] (2000)<br>
I know that # is a part of the coding language that Mediawiki uses, but is there a way to have it ignore it? I have tried:
<nowiki>#</nowiki>[[@&%!* (expletive deleted)]], but I would like the title of the page to include the # since that is in the title of the piece. Is this possible?
Here is a link to the wiki http://tekpercussion.com/index.php?title=Reinkemeyer,_Andrea or
http://tekpercussion.com/index.php?title=Template:Reinkemeyer,_Andrea_Works
I appreciate any help you can provide
Thank you Tfreezer (talk) 05:02, 8 July 2020 (UTC)
- I have no idea if there is a way around this in Mediawiki since a hash is a reserved character in URLs (not specific to Mediawiki). Hash symbols are generally reserved for named anchors, on MW they link to a mediawiki heading since headings are linked from the table of contents to the relevant heading. Without some way to tell the browser that it’s not a named anchor, it’s going to try behaving like one. You could try encoding it, though it will result in an ugly URL with %23 displayed instead of the hash symbol. Your other symbols will also be replaced automatically also. This is why special characters are generally avoided in page titles to prevent ugly URLs.
- https://www.urlencoder.io/learn/
- You could go with titling it as Expletive_Deleted and then use an extension to change the displayed page title on the page itself to what you want shown as the title on the page, that’s generally a good compromise Extension:Display Title TiltedCerebellum (talk) 06:35, 8 July 2020 (UTC)
- use ♯ instead of # Bawolff (talk) 08:37, 8 July 2020 (UTC)
- Thanks Bawolff TiltedCerebellum (talk) 01:26, 9 July 2020 (UTC)
- Thank you for the replies. I got a bit distracted after this post, sorry for the delay.
- I appreciate the thoughts and the suggestion. I think the ♯ is a great workaround and should suffice nicely. Great suggestion!
- Thanks again! Tfreezer (talk) 22:55, 27 July 2020 (UTC)
How do I edit the sidebar without typing in the URL manually: //yourdomain/yourwiki/index.php?title=MediaWiki:Sidebar&action=edit
RESOLVED | |
If user wants a custom solution for allowing anyone to edit his sidebar they need to see professional development and consulting, or write one. |
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,
As mentioned in Manual:Interface/Sidebar, to edit the sidebar we have to type in the URL: //yourdomain/yourwiki/index.php?title=MediaWiki:Sidebar&action=edit but is there a way to do it more intuitively? Like creating a "add page"/ "delete page" button or link instead of going to the URL to edit the sidebar? Jacklynlxq (talk) 08:06, 8 July 2020 (UTC)
- You don't necessarily need to type that full url. You can just search
MediaWiki:Sidebar
and reach the same page. You can also use hook like SidebarBeforeOutput to add sidebar items from your LocalSettings.php without making on-wiki edit. There's no one-click button to add/or remove links from the sidebar. – Ammarpad (talk) 08:30, 8 July 2020 (UTC) - Thanks, but is there a way to hack it? maybe I can add a script to add something like a button to manipulate my data in the wiki's database to do add/remove the links? I need it to be less technical because the wiki would be used by non-technical people in the future... Jacklynlxq (talk) 01:06, 9 July 2020 (UTC)
- Can I ask why you'd want just any user editing the site's sidebar? Normally websites don't want just any user editing the site's sidebar, that can result in chaos and crippling of the sidebar due to bad edits. If you really want regular users editing the sidebar you could create a link to the sidebar on a regular page with some instructions on that page on how to edit the sidebar or a link to the help page for editing sidebar.
- You can (though not recommended) use parser functions in the sidebar if they don't span multiple lines. Manual:Interface/Sidebar#Parser functions in sidebar. The only hacks that I'm aware of for the sidebar were listed on the sidebar page: Manual:Interface/Sidebar/Hacks or using hooks, otherwise you might want to find someone to code you a solution if you really want users to be able to edit the sidebar if you don't think they can handle the stars and links needed to do it the normal way. See: Professional development and consulting. TiltedCerebellum (talk) 01:43, 9 July 2020 (UTC)
User with empty password cannot login to mediawiki
The following discussion is closed. Please do not modify it. Subsequent comments should be made on the appropriate discussion page. No further edits should be made to this discussion.
Migrated from 1.25 to 1.31.7
$wgPasswordPolicy['policies']['default']['MinimalPasswordLength'] = 0; is set in LocalSettings.php
But users with empty psswords still can't login, and it is also impossible to create new users with empty password. It looks like the ui in the browser does not like the login button to be pressed if the pw-field is empty, the pw-field gets highlighted instead of the login started.
Login was possible in 1.25 and we would like to keep it so. (Wiki is not on a public network.)
And by the way, users who do have a password set that is shorter than 8 chars get a warning at login to reset their pw.
Whats wrong? Zapane (talk) 08:30, 8 July 2020 (UTC)
- empty passwords havent been allowed sìnce like mw 1.4.
- The ui is prob separate from passsword policies Bawolff (talk) 08:36, 8 July 2020 (UTC)
- definitely works in 1.25 (with $wgMinimalPasswordLength = 0;)
- But even setting PW-Length to 1 does not eliminate the nuisance warning for passwords shorter than 8 chars?
- Why can't the admin decide what kind of pw are appropriate? Zapane (talk) 08:52, 8 July 2020 (UTC)
- You could probably use js to allow the form to be submitted.
- I think the config controls backend not ui, so its probably still possible to login via api.
- If you dont want passwords at all, maybe the ideal case would be custom AuthManager getting rid of password field. Bawolff (talk) 00:48, 9 July 2020 (UTC)
- @Zapane See https://www.mediawiki.org/wiki/Manual:$wgMinimalPasswordLength - this was removed in 1.26 and hence cannot work. Admins can change whatever they want in the code to make their MediaWiki installations more insecure. That does mean developers must actively support such an approach.
- EDIT: I'm wrong - this is only deprecated but not removed yet unfortunately. Malyacko (talk) 16:10, 8 July 2020 (UTC)
- to be clear,its deprecated because it got renamed. There are no plans to remove afaik. Bawolff (talk) 00:45, 9 July 2020 (UTC)
- Sorry for the rant, we just got along well without pw in the past (small corporate wiki in a lan without access from the internet).
- I now assigned pw to the couple of users that didnt have them previously.
- Case closed. Zapane (talk) 10:21, 9 July 2020 (UTC)
How to install a patch file
RESOLVED | |
User able to patch via command line |
The following discussion is closed. Please do not modify it. Subsequent comments should be made on the appropriate discussion page. No further edits should be made to this discussion.
I am running a Mediawiki 1.31.7 as a local network installation with no internet access on a SLES 15 SP1 . I am trying to install the latest patch 1.31.8.
For this i downloaded https://releases.wikimedia.org/mediawiki/1.31/mediawiki-1.31.8.patch.gz
I thought this was an incremental file to patch to the latest release, whereas mediawiki-1.31.8.tar.gz ist the file to upgrade from a lower version.
I have no idea how to install this patch file though. I am shurely doing something wrong since I can't seem to find anything on this topic. 194.25.103.254 (talk) 11:42, 8 July 2020 (UTC)
- No pointers at all? If there is any easy to find solution and I am just too much of an idiot to find it, i will accept all the ridicule but I am a bit desperate here. 194.25.103.254 (talk) 14:28, 8 July 2020 (UTC)
- "apply patch file" shows quite some results in internet search engines for me. (Given that the archive file includes a single patch file, which it does.) Malyacko (talk) 16:07, 8 July 2020 (UTC)
- you can use the full tarball if you want instead of the patch file.
- See the unix man page for patch(1) - https://man7.org/linux/man-pages/man1/patch.1.html
- Remember to gunzip the gzipped patch file first. Bawolff (talk) 00:43, 9 July 2020 (UTC)
- Oh boy... "patch" is a linux command line tool...
- I knew it was something simple i was missing.
- Thanks a ton! 194.25.103.254 (talk) 07:41, 9 July 2020 (UTC)
6 month page review.
I am managing a small private wiki for a business. It is going to be very useful so thank you all. I imagine I will have a lot of questions in the future.
One of the more pressing ones is as follows. For me to get people to 'buy into'the wikithe data needs to be up to date. Some of the information can change on a weekly basis.
Is there and extension or other way to do the following...
A page to be time stamped on creation A token of some sort added to the page of 1 week 1 month 1 year or similar When this token has expired then the page is moved to a moderator review list to check the information on the page is still current and if necessary update it.
It's probably really simple and I am missing something so any help is appreciated. Wizard of thay (talk) 16:25, 8 July 2020 (UTC)
- Something like this could probably be archived using Extension:Semantic MediaWiki. This "token" could be a semantic property, or maybe just the "Modification date".
- The BlueSpice MediaWiki distribution also contains a "expiry/reminder" functionality, but that doesn't quite fit your description. Osnard (talk) 16:46, 8 July 2020 (UTC)
- you can sort of do this with extension:parserFunctions and REVISIONTIMESTAMP magic word (or just subst: current timestamp magic word), and a category. But its not garunteed that categories get added until next edit to page (or you can force with refreshLinks.php) Bawolff (talk) 00:40, 9 July 2020 (UTC)
Configure several separate wikis to integrate users and Elastic Search and Visual Editor
Hello
Good time
I use Direct Admin on a server, and I created several users for Direct Admin, and within each user Direct Admin, I put a separate wiki with a separate database.
That is, each wiki is independent of the other wiki.
I have a few questions:
1. I plan to use a shared user on all of these wikis, which means you don't need to register a single user on all of these wikis. Further explanation: A user can log in to all of these wikis by registering on a wiki.
Or can I use another way to register between these wikis so that not all wikis need to be re-registered?
2. How do I configure Elastic Search and Cirus Search to connect to all of these wikis?
3. How do I configure Parsoid Visual Editor and Service to work on all of these wikis?
Thanks & Regards Sokote zaman (talk) 17:55, 8 July 2020 (UTC)
- @Sokote zaman
- See the comments on Extension:CentralAuth about Special:MyLanguage/Manual:$wgSharedDB.
- What does "connect" mean? If you have separate wikis with separate databases, then you follow the instructions to install CirrusSearch on each wiki separately.
- If you have separate wikis with separate databases, then you follow the instructions to install VisualEditor and Parsoid on each wiki separately. Malyacko (talk) 10:00, 9 July 2020 (UTC)
Issues importing database (cannot access the database)
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.
So I am hosting a wiki locally using WAMP64 and I am in the process of moving it from one laptop to another.
I have uploaded the MySQL database and can access it from PHPMyAdmin; there were no issues with the upload. The MySQL version I'm using is 8.0.18. PHP version is 7.3.12. MediaWiki version is 1.32.
I copied the Wiki folder from its \wamp64\www\ home into the corresponding \wamp64\www on the new PC. I checked over all the LocalSettings.php; all the database settings look correct in terms of DB type, DB server, DB name, DB user, and DB password.
However, when I run "php update.php" in the maintenance folder (or if I run "php importDump.php < backup_dump.xml") I get the same error and backtrace:
"""
[125225fdf3f9682352d8db2c] [no req] Wikimedia\Rdbms\DBConnectionError from line 1195 of C:\wamp64\www\pedia\includes\libs\rdbms\loadbalancer\LoadBalancer.php: Cannot access the database: Unknown error (localhost)
Backtrace:
#0 C:\wamp64\www\pedia\includes\libs\rdbms\loadbalancer\LoadBalancer.php(769): Wikimedia\Rdbms\LoadBalancer->reportConnectionError()
#1 C:\wamp64\www\pedia\includes\GlobalFunctions.php(2694): Wikimedia\Rdbms\LoadBalancer->getConnection(integer, array, boolean)
#2 C:\wamp64\www\pedia\includes\cache\LinkCache.php(270): wfGetDB(integer)
#3 C:\wamp64\www\pedia\includes\Title.php(3575): LinkCache->addLinkObj(Title)
#4 C:\wamp64\www\pedia\includes\Title.php(4675): Title->getArticleID(integer)
#5 C:\wamp64\www\pedia\includes\import\WikiImporter.php(1113): Title->exists()
#6 C:\wamp64\www\pedia\includes\import\WikiImporter.php(788): WikiImporter->processTitle(string, string)
#7 C:\wamp64\www\pedia\includes\import\WikiImporter.php(609): WikiImporter->handlePage()
#8 C:\wamp64\www\pedia\maintenance\importDump.php(347): WikiImporter->doImport()
#9 C:\wamp64\www\pedia\maintenance\importDump.php(289): BackupReader->importFromHandle(resource)
#10 C:\wamp64\www\pedia\maintenance\importDump.php(118): BackupReader->importFromStdin()
#11 C:\wamp64\www\pedia\maintenance\doMaintenance.php(94): BackupReader->execute()
#12 C:\wamp64\www\pedia\maintenance\importDump.php(352): require_once(string)
#13 {main}
"""
I've searched around but could not find anything helpful thus far, so any advice would be much, much appreciated! Thank you! Superraptor123456 (talk) 19:46, 8 July 2020 (UTC)
- Figured it out! Needed to set $wgDBserver to "127.0.0.1:3308" in my case in LocalSettings.php.
- I'm not sure why I got "Unknown error" instead of the more common "No such file or directory" error I've seen; but that probably has to do with either a different MediaWiki version or something else entirely which I'm not sure of. Anywho hope this helps anyone else who runs across this! Superraptor123456 (talk) 20:03, 8 July 2020 (UTC)
- It was unable to connect to the database, that's why it gave a database access error. It won't have a no such file or directory error when it's trying to access the database and can't. You changed the db server to an accessible database and it worked. TiltedCerebellum (talk) 01:48, 9 July 2020 (UTC)
Access PHP session variables for authentication
I've got a private site that has its own login system built on PHP / MySQL. When users authenticate there, a set of session variables are written that confirm that they are logged in. All subsequent pages they access check for these session variables before they can view those pages.
I've setup a MediaWiki also on the site that I'm testing at the moment. The contents cannot be publicly viewable, so I'd love to check for those same session variables on the MediaWiki to allow them access... but am having trouble figuring out the best way to do so.
I've a few code snippets and some info on SessionManager that all seem promising, but I'm unsure where to put it! (obviously I'm new to mediawiki!) If I try to add it to index.php, I get a Failed Exception, and if I try to add it after the session_start() in includes\setup.php, I get some info, but it's all new stuff - not the existing session variables I'm looking for.
Can anyone let me know where to put this kind of code, or redirect me to a better way of handling this? 66.69.239.64 (talk) 22:54, 8 July 2020 (UTC)
- I would recommend looking at @CCicalese PluggableAuth extension and writing your own extension that plugs into it by using its developer notes. ☠MarkAHershberger☢(talk)☣ 00:34, 9 July 2020 (UTC)
- you would put it either in your own extension, or in LocalSettings.php. Bawolff (talk) 00:36, 9 July 2020 (UTC)
Restricting view access
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.
Santacruzpermaculture (talk) 04:46, 9 July 2020 (UTC)
Search is broken
I have a page called "CIC updates".
On the main page:
- If I type "CIC" in the search-bar I get the page as a suggestion
- If I type "cic" (lowercase) in the search-bar I get no result
On the search page:
- Nothing works, I've tried Typing the exact page name(just "CIC" or "cic" - nothing works.
It seems like I'm only able to find this page from the suggestion in the search-bar on the main page (with capital letters). Does anyone know what's going on? I'm on mediawiki 1.33.8
Thanks ahead! Rogersjoshmac (talk) 10:36, 9 July 2020 (UTC)
- Are you using the built-in search or CirrusSearch/ElasticSearch? ☠MarkAHershberger☢(talk)☣ 12:48, 9 July 2020 (UTC)
- The default one. Rogersjoshmac (talk) 15:15, 9 July 2020 (UTC)
- If the page was created fairly recently, and some old pages work but this one doesn't, try to run runJobs.php just in case the search index update is still pending.
- You may also try to run the updateSearchIndex.php script to update the entire search index. Ciencia Al Poder (talk) 14:38, 10 July 2020 (UTC)
- When running updateSearchIndex.php I get:
Updating searchindex between 20200721164935 and 20200722164935
--- Waiting for lock ---
MARKETING:Client_Meetings...
MARKETING:Customer lists...
--- Unlocking --
Done
***Couldn't write to the searchUpdate.wikidb.pos!
- Even though no one is editing those pages. Rogersjoshmac (talk) 16:47, 22 July 2020 (UTC)
- I think searchUpdate.wikidb.pos is a file somewhere in the filesystem. Try to run the script with the same user account that normally runs the wiki (php, apache...), using
sudo -u (user)
Ciencia Al Poder (talk) 17:24, 22 July 2020 (UTC) - Thanks for the response.
- It wouldn't let me log in as apache. Would changing the permissions of the
searchUpdate.wikidb.pos
help? I did a global search on (find / -name "searchUpdate.wikidb.pos"
) and it immidiatly returns nothing. - Also a side note, i'm running as root. Rogersjoshmac (talk) 17:31, 22 July 2020 (UTC)
- Maybe you're not really running it as root after all? Manual:UpdateSearchIndex.php#Write_permissions, Project:Support desk/Flow/2015/08#h-updateSearchIndex:_Couldn't_write_to_the_searchUpdate.MyWiki.pos-2015-08-21T14:43:00.000Z Ciencia Al Poder (talk) 21:12, 22 July 2020 (UTC)
- I am, even if I do that with sudo. I think the problem is that the file "searchUpdate.wikidb.pos" doesn't even exist. Rogersjoshmac (talk) 07:27, 23 July 2020 (UTC)
New Installation
I am getting this error, Please help me to resolve this. I am installing Bluespice in Win server
MediaWiki: 1.31.7
PHP version : 7.3.20
Tried this solution but did not resolved my issue. - Project:Support desk/Flow/2017/11#h-Installation_PHP_Fatal_error-2017-11-24T14:36:00.000Z
Error Log:
PHP Fatal error: Uncaught Error: Call to a member function getIP() on null in C:\Data\Bluespice\Application\Root\includes\user\User.php:2402
Stack trace:
#0 C:\Data\Bluespice\Application\Root\includes\session\SessionBackend.php(712): User->getName()
#1 C:\Data\Bluespice\Application\Root\includes\session\SessionBackend.php(197): MediaWiki\Session\SessionBackend->save(true)
#2 C:\Data\Bluespice\Application\Root\includes\session\SessionManager.php(474): MediaWiki\Session\SessionBackend->shutdown()
#3 [internal function]: MediaWiki\Session\SessionManager->shutdown()
#4 {main}
thrown in C:\Data\Bluespice\Application\Root\includes\user\User.php on line 2402 Gopinathganesan (talk) 14:32, 9 July 2020 (UTC)
- pinging @Osnard since you are using Bluespice. ☠MarkAHershberger☢(talk)☣ 15:20, 9 July 2020 (UTC)
A question, though: what are you doing when you get this?(nm, its an installation problem)- Is this the only stacktrace you get?
- What is sys_temp_dir set to in php.ini? ☠MarkAHershberger☢(talk)☣ 15:26, 9 July 2020 (UTC)
- Strange error. Looks like the application has trouble to create a user object from a given name or ID. Can you please give some more information about your setup?
- Do you use a authentication plugin like LDAP or SAML?
- Have you enabled all debug settings? Manual:How to debug
- Did you upgrade a plain MediaWiki to BlueSpice of is this a "from-the-scratch" installation? Osnard (talk) 07:43, 10 July 2020 (UTC)
Strange Login Error
RESOLVED | |
Cookie issue, not related to MW software |
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.
Whenever I try to login or even create a new account, I get this error:
There seems to be a problem with your login session; this action has been canceled as a precaution against session hijacking. Please resubmit the form. ErostheAmor (talk) 16:26, 9 July 2020 (UTC)
- I've been seeing this error, too, ever since moving my wiki from my local computer to a public server. The new site had MediaWiki 1.32 and php 7.0, which let me log in, but when I upgraded php to 7.2, the error appeared in SOME browsers (mainly, Brave and Firefox, but in Chrome it works). I would really like to fix this since I prefer Brave and I'm worried Chrome might start having this problem, too. 12.162.135.250 (talk) 16:30, 9 July 2020 (UTC)
- my problem is on chrome now ErostheAmor (talk) 16:33, 9 July 2020 (UTC)
- strangely enough it let me login via incognito ErostheAmor (talk) 16:34, 9 July 2020 (UTC)
- Oh, good call! I was able to login using Brave in an incognito window, too! Thanks for mentioning that. 12.162.135.250 (talk) 16:36, 9 July 2020 (UTC)
- the url for the mediawiki is allinthepantheon.com ErostheAmor (talk) 16:31, 9 July 2020 (UTC)
- My wiki is private, so there's no point in mentioning the URL. However, the fact that login works in an incognito window makes me wonder if my recently changing VPNs might have something to do with the problem? I switched from NordVPN to Malwarebytes about the same time that I moved my wiki. I turned off "shields" for the site in the Brave browser, but that didn't help in the normal pages, but maybe there is a way to control how Malwarebytes treats individual websites (like a whitelist) that I haven't discovered yet. 12.162.135.250 (talk) 16:44, 9 July 2020 (UTC)
- Adding the URL to Malwarebytes' "Allow List" didn't help. But here is specific info about the versions in use:
- MediaWiki: 1.32.0
- PHP: 7.2.24 (cgi-fcgi)
- MySQL: 5.7.29-log 12.162.135.250 (talk) 16:56, 9 July 2020 (UTC)
- typically this type of error is a cookie issue. Bawolff (talk) 20:04, 9 July 2020 (UTC)
Problem to reset my password
The following discussion is closed. Please do not modify it. Subsequent comments should be made on the appropriate discussion page. No further edits should be made to this discussion.
Hi,
I have asked a reset of my password (user karim.nafie@yahoo.fr) since yesterday 08 July 2020 and have not got it. I wonder why it is not automatic.
Please help, it becomes very urgent.
Thank you.
Karim 2A01:CB04:73C:4D00:D055:7003:9E40:1300 (talk) 17:42, 9 July 2020 (UTC)
- Are you sure that your email was associated with your username? Did you enter your email on the password reset page? ☠MarkAHershberger☢(talk)☣ 19:44, 9 July 2020 (UTC)
- Are you sure it is this website that you want the password reset from (mediawiki.org) or are you wanting your password reset for a different site? Mediawiki is a website software, this is the help desk for the MediaWiki website software. If you are trying to reset your password for a diffrerent site (not Mediawiki.org) then you are in the wrong place. TiltedCerebellum (talk) 20:44, 10 July 2020 (UTC)
Getting error while trying to install mediaWiki - connecting to database
Wikimedia 1.34.2
php 7.3.11
When I try to connect my database, I get this error: "Cannot access the database: :real_connect(): (HY000/2002): No such file or directory. Check the host, username and password and try again. If using "localhost" as the database host, try using "127.0.0.1" instead (or vice versa)."
I have created the database in MySQL server version 8.0.20 and have granted all privelges to my root@localhost. Any suggestions to what I could do? I also tried replacing localhost database host to 127.0.0.1, but no luck. 107.3.159.235 (talk) 20:13, 9 July 2020 (UTC)
- Can you access the database from the command line?
- Are you sure the db server is running on the same host as the website? ☠MarkAHershberger☢(talk)☣ 21:21, 9 July 2020 (UTC)
- Hey, I know this thread is 2 months old, but I'm getting the exact same error. I tried both localhost and 127.0.0.1, but also no luck. LittleWhole (talk) 04:53, 3 September 2020 (UTC)
- The comment made by MarkAHershberger is also relevant to you. Ciencia Al Poder (talk) 13:37, 3 September 2020 (UTC)
MediaWiki Installation Issue
The following discussion is closed. Please do not modify it. Subsequent comments should be made on the appropriate discussion page. No further edits should be made to this discussion.
MediaWiki 1.34.2
php 7.4.7
Hi Folks,
I've been trying to create a locally hosted wiki using the following step by step guide: Manual:Installing MediaWiki on XAMPP.
Everything seemingly works perfectly up to the 'Setting up MediaWiki' stage (ie: no problem installing XAMPP/Apache/other dependencies or setting up database). I download MediaWiki, extract the files to the relevant subfolder, go to localhost and browse to the subfolder. However, once I go in, it tells me that 'LocalSettings.php' cannot be found, and to 'Please set up the Wiki first':
When I click on the link to try to do so, it however displays the following error message:
This is basically a brick wall as I can't complete installation/config process. I've tried reinstalling XAMPP/Apache, and redownloading MediaWiki.
I've seen others report similar error messages, but in those cases the details are different (such as them having completed installation/config and just having problems getting back in, or are having issues when upgrading). I've tried reinstalling everything, but have run into same error twice. Any insights you can provide would be welcome.
Many Thanks
Gaz 82.6.108.162 (talk) 23:53, 9 July 2020 (UTC)
- I don't know whether this helps, please check this discussion. Adithyak1997 (talk) 03:35, 10 July 2020 (UTC)
- Please download and extract all MediaWiki files again.
- The error message that says "there's no such file or directory" tells that a file should be there. In fact, if I download the tarball and extract it, I can see that file. Maybe the extraction of the files failed for you or you inadvertently deleted some of them. Ciencia Al Poder (talk) 14:34, 10 July 2020 (UTC)
- Thank you for your replies. I suspect the issue was during extraction or installation as several of the affected files had truncated names (although it was repeated even with a fresh download/installation).
- In any event, as I was using XAMPP I was able to bypass the problem by using bitnami installer. Please consider this closed. 82.6.108.162 (talk) 10:45, 11 July 2020 (UTC)
Log Ins
RESOLVED | |
Waterpedia is unrelated to the MediaWiki software, which is what this help desk is for. |
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.
Do read only users (from other systems) need a log in to access the data available on Waterpedia or is the information on the landing page "everything"?
Thanks
Sheila 134.201.88.8 (talk) 00:16, 10 July 2020 (UTC)
- Apologies, but this website is not officially linked with Waterpedia. You'll have to ask them. AhmadF.Cheema (talk) 11:55, 10 July 2020 (UTC)
Free State Project Forum Registration
RESOLVED | |
Unrelated to the Mediawiki software help desk, question pertains to a 3rd-party 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.
Not sure if you can even help me with this but the help buttons I clicked on the forum I was trying to register to (Free State Project Forum) sent me here.
So I am trying to register for the Free State Project Forum but when I hit 'register' it says 'registration is not open at the moment' or something along those lines. I searched that forum for admin contact info but ended up here so I hope you can help but if not I apologize for wasting your time.
Best regards,
Bobby ItsMeBobbyBee (talk) 02:16, 10 July 2020 (UTC)
- Apologies, but this website has no links with Free State Project Forum, therefore we wouldn't be able to help. AhmadF.Cheema (talk) 11:50, 10 July 2020 (UTC)
I have no idea how to fix "There seems to be a problem with your login session; this action has been canceled as a precaution against session hijacking. Please resubmit the form. "
RESOLVED | |
"Holy crap, setting $wgSessionCacheType = CACHE_DB; worked, even though it didn't before I wrote this thread." |
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 spent much time googling this issue, skimming threads, and trying fixes but couldn't get this to go away. Is there any way to disable this? I'm not super familiar with mediawiki, so if I should provide extra info like with logs, I could specific instructions on how to do so. YousufSSyed (talk) 02:20, 10 July 2020 (UTC)
- In my opinion, this occurs many times for me. When you see the login page, just try reloading the page (I think you can clear the cache too). I think this can resolve the issue. I have resolved the same with this specific solution. Adithyak1997 (talk) 03:31, 10 July 2020 (UTC)
- Neither reloading the page or clearing cache works (on firefox, I click the i icon, and click "clear cookies and data," then select localhost in the menu, restart firefox, and it doesn't work). YousufSSyed (talk) 05:18, 10 July 2020 (UTC)
- Which MediaWiki version are you using?
- Have you already tried setting the following in your LocalSettings.php:
$wgSessionCacheType = CACHE_DB;
AhmadF.Cheema (talk) 11:36, 10 July 2020 (UTC)- See also Manual:How to debug/Login problems Ciencia Al Poder (talk) 14:24, 10 July 2020 (UTC)
- Holy crap, setting
$wgSessionCacheType = CACHE_DB;
worked, even though it didn't before I wrote this thread. YousufSSyed (talk) 22:04, 10 July 2020 (UTC)
Responsive themes for mediawiki as separate themes
I understand that responsive design is important out of box by means of accessibility because:
Not everyone who uses a certain CMS to publish their organization and/or opinions are programmers and yet it should be accessible for them to have an out of box responsive website given that approximately more than 50% of users are primarily from non desktop computer devices (NDCDs).
I also understand the need in modular software design to ensure long term ordinal development:
In Drupal and WordPress (which are very modular per my understanding), every theme has builtin CSS versions for NDCDs (instead, two different themes as common in MediaWiki - one for desktop computer devices and one for all common NDCDs).
I have two questions:
- Is there a plan to ship MediaWiki with just one theme that will have at least two builtin CSS versions?
- What was the main argument in the community's history not to adopt the described pattern common (AFAIK) in Drupal, WordPress and Joomla (or alternatively, to adopt the current development paradigm)? 182.232.170.231 (talk) 13:30, 10 July 2020 (UTC)
- With Extension:MobileFrontend you can have "two builtin CSS versions". For the sake of accuracy, this is not true, there are no CSS versions, but skins, and there's no builtin skin, they need to be explicitly installed/enabled Ciencia Al Poder (talk) 14:22, 10 July 2020 (UTC)
- @Ciencia Al Poder I might have missed something in your answer but I think that my questions still stands:
- I emphasize that I still misunderstand why any extension is even needed; the installation of Extension:MobileFrontend is something the community can most certainly make redundant by just shipping the skins ("theme") starting from any next release and I will still ask (thus making MediaWiki more accessible to non programmers which isn't bad in a FOSS context);
- Is there a plan to ship MediaWiki with just one skin (no extension, no separate skin needed) which has several different CSS versions
- What was the main argument in the community's history not to adopt the described pattern common (AFAIK) in Drupal, WordPress and Joomla (or alternatively, to adopt the current development paradigm)? 182.232.170.231 (talk) 14:47, 10 July 2020 (UTC)
- by just shipping one skin ("theme") which includes the CSS of both without the need in any extensions* 182.232.170.231 (talk) 14:49, 10 July 2020 (UTC)
- Ok, with that clarification in mind:
- No, there's no plan, since skins are not part of core. When installing MediaWiki one must choose which skin to install and enable by default. This is what modularization means. Ciencia Al Poder (talk) 17:08, 10 July 2020 (UTC)
- @Ciencia Al Poder great, but why is the one installed isn't "also responsive" and "mobile-first" as common in Drupal or WordPress? 182.232.170.231 (talk) 02:59, 11 July 2020 (UTC)
- Manual:Mobiles, tablets and responsive design
- Timeless is responsive and ships with MW. Some people don't want to maintain layouts, styles, js, for 2 different skins, and especially not for multiple skins, which us why they want responsive. I view responsive as the modern way to handle both desktop and mobile viewing without the needed for added skins, js, css (though not everyone is in that camp). On our wiki we use a couple different responsive skins, our current one Pivot because it supports responsive grids (Zurb Foundation Grid). Though we also have a backup (Timeless) in case the maker stops supporting/updating it (always a risk with 3rd party skins). Pivot doesn't currently support right to left languages though, Timeless does. This has become an issue for us, which is why we started customizing Timless as a potential replacement.
- For us responsive is a must (across our themes), so is FontAwesome for icons.
- We use hooks to embed FontAwesome by putting it into a customizations folder and doing:
$wgResourceModules['ourtheme-customizations'] = array( 'styles' => "fontawesome-5-8-2/css/all.css", // Stylesheet to be loaded in all skins 'scripts' => "", // Script file to be loaded in all skins 'localBasePath' => "$IP/customizations", 'remoteBasePath' => "$wgScriptPath/customizations/" ); function efCustomBeforePageDisplay( &$out, &$skin ) { $out->addModules( array( 'ourtheme-customizations' ) ); } $wgHooks['BeforePageDisplay'][] = 'efCustomBeforePageDisplay';
- The Zurb Foundation Grid cab embedded via hooks too if needed https://get.foundation/sites/docs/grid.html I believe that's a better option than a proprietary grid in one particular theme, though even a proprietary grid can be copied out and moved to a customizations folder so if you stop using the skin it was embedded in, your grids in other themes won't stop working. I like using a grid that is usable across themes, so it gets embedded via a hook.
- For us when either FontAwesome or Foundation Grid need to be updated, I just update them in my customizations folder and update my LocalSettings.php hook to match. Then both are usable across any theme and the grids will reflow the content you place in them across themes. TiltedCerebellum (talk) 20:05, 10 July 2020 (UTC)
- Changes in skinning are coming. See Reading/Web/Desktop Improvements for information. ☠MarkAHershberger☢(talk)☣ 00:49, 11 July 2020 (UTC)
- That's great they are going to make some attempts to make Vector somewhat responsive. To have a reusable grid for layout and font awesome icons, I'm still going to need to use hooks. Would be nice if they'd integrate either bootstrap or the zurb foundation framework and make it compatible with VE for insertable layout columns, then it would be the ultimate for layout. As it is we still have to use hooks or manually add divs with classes to target and then do media queries to control their reflow on mobile devices. That's why either bootstrap or foundation are the only feasible options for me now and in the future for advanced page layouts... at least currently. I need columns, bootstrap or foundation provides columns that don't need added media queries to work, they just work.
- Even getting wide tables to scroll is something I have to wrap in a div currently.
- Eventually I'll write some CSS to reflow tables too. Too much work currently. TiltedCerebellum (talk) 01:02, 11 July 2020 (UTC)
- I think they are planning to use something like bootstrap (perhaps even bootstrap itself), but I don't know enough about the project. ☠MarkAHershberger☢(talk)☣ 01:06, 11 July 2020 (UTC)
- Also, note that they request your participation here:
- We are making decisions based on community feedback, individual users who decide to opt-in, and extracted API data. Please feel invited to participate! ☠MarkAHershberger☢(talk)☣ 01:08, 11 July 2020 (UTC)
- Would be nice, though to make it feasible they'd have to do a lot more. Like fixing table layouts for mobile, allowing fixed headers for long tables etc. Right now we have to hack all of these things. Fingers crossed anyway. Column layouts are still not possible without addons, I can't see them adding that. A step in the right direction anyhow. For cross-skin compatibility we use hooks for foundation columns, FontAwesome and any other advanced layout tweaks. Not being able to have a fixed header on long tables is a pain so CSS hacks used for that.
- Edit: Thanks I'll check that out. TiltedCerebellum (talk) 01:09, 11 July 2020 (UTC)
- to be clear, monobook, timeless and Minerva Neue (is minerva included now? I cant remember, i think it is) all ship in default tarball, and all are responsive (i.e. use media queries to show different versions depending on screen size). Vector also has experimental support for this, but it is disabled by default. Bawolff (talk) 08:51, 11 July 2020 (UTC)
- @Bawolff as I have understood; only Timeless is really "responsive" ("Out Of Box") as it doesn't require the installation of a separate corresponding skin (which by itself requires the installation of an extension and configuration/s).
- I do wonder when a "(responsive) Vector" skin would be available by default so no more secondary installations would be required from any user who wants only Vector. 182.232.170.231 (talk) 14:06, 11 July 2020 (UTC)
- neither monobook nor minerva neue require anything else to be responsive. MobileFrontend is an optional extension that does a bunch of stuff, but it does not affect whether or not the skin is responsive in and of itself. It does modify some non skin stuff to be "mobile friendly" (like having the edit page be a series of dialogs instead of one big textbox)
- Vector does not require any additional installation to make it responsive. It does require a non default config. The responsive mode in vector is a bit questionable which is why its off by default.
- There is nothing special about vector other than that it is used by wikipedia. Bawolff (talk) 19:01, 11 July 2020 (UTC)
- Tables in Monobook don't scroll, so when wider than the screen width, say 320px for a small phone, the contents go off-screen to the right and aren't visible, can't be zoomed out on, or scroll. At current all Monobook tables need to be wrapped in a div with css to scroll, they are not suitable to responsive out of the box (see the fire diamond table on this page and shink the browser width to 320px as an example: [5]). Minerva Neue does not ship with mediawiki 1.34 but it does have scrolling tables for mobile out of the box (same table, fire diamond label here [6]). TiltedCerebellum (talk) 22:44, 11 July 2020 (UTC)
- I thank for all commenters about the answers I found very detailed and helpful. 182.232.192.69 (talk) 04:59, 12 July 2020 (UTC)
- You're welcome. It's important to note that Timeless tables also don't scroll right/left by default on small-width screens, so tables would have to be manually wrapped in divs with with something like the following:So right now it is looking like Minerva Neue is the skin mentioned that is fully responsive-ready. Though it doesn't ship with MW and has to be downloaded and enabled. Good luck! TiltedCerebellum (talk) 05:22, 12 July 2020 (UTC)
.scroll-all { overflow:auto; -webkit-overflow-scrolling: touch; }
Batch uploading new pages on my wiki page and saving time!
Hey everyone, hope all is well during this time.
I am uploading a very, very big document (equivalent of 10 major textbooks) and having to create a new page for every entry that can be around ~5000 entries. Wondering (and not getting my hopes up) if there is a very efficient way of performing this task without having to copy and paste the information for every entry (or new wiki page)? If there are any shortcuts where i can create several pages at a time rather than one-by-one then please share, otherwise this task will take me months.
Also, same question for images that need to be added for every page/entry. There are several pictures incorporated with the information from this huge document.
In addition, is there an easy way to centre the alignment of some text? It is taking too long to enter the code <div style="text-align: center;">Centered text</div> to every text i want centred. Wondering if there is an easier way or program that can help me on my wiki page (such as available on MS Word for example)? Thepainking (talk) 15:54, 10 July 2020 (UTC)
- You might find something helpful here:
- Manual:Importing external content#Converting content from HTML
- (Or in other places on that page)
- And also:
- Manual:ImportTextFiles.php TiltedCerebellum (talk) 20:39, 10 July 2020 (UTC)
- It really sounds like what you are talking about could benefit from a bit of programming. See the api for more information. ☠MarkAHershberger☢(talk)☣ 00:51, 11 July 2020 (UTC)
Why does extension MobileFrontend required?
The following discussion is closed. Please do not modify it. Subsequent comments should be made on the appropriate discussion page. No further edits should be made to this discussion.
I understand that responsive design is important out of box by means of accessibility because:
Not everyone who uses a certain CMS to publish their organization and/or opinions are programmers and yet it should be accessible for them to have an out of box responsive website given that approximately more than 50% of users are primarily from non desktop computer devices (NDCDs).
Getting responsivness by installing an extension AND a skin, and then configuring them both can be somewhat intriguing to new users which aren't programmers.
Why does extension MobileFrontend required instead of a more minimalist case in which mobile skins are shipped with the core and adjusted to the core so no extension would be required? 182.232.170.231 (talk) 16:17, 10 July 2020 (UTC)
- It isn't if you use a responsive skin: Manual:Mobiles, tablets and responsive design (Timeless ships with MW, so it will be updated, where there is no guarantee the others will). We heavily customized the Timeless.css to look like our current skin. TiltedCerebellum (talk) 20:18, 10 July 2020 (UTC)
- Also see Reading/Web/Desktop_Improvements for planned changes in this direction. ☠MarkAHershberger☢(talk)☣ 00:52, 11 July 2020 (UTC)
- I thank you both; I seriously consider to work only with Timeless; it seems to me very minimalist and beneficial for me, and I complement on its further development as I find it very accessible. 182.232.170.231 (talk) 14:00, 11 July 2020 (UTC)
- Note that timeless tables are not fully responsive, they have to be wrapped in a div to force them to scroll left/right on mobile. TiltedCerebellum (talk) 00:33, 15 July 2020 (UTC)
How to expand templates in search results
The following discussion is closed. Please do not modify it. Subsequent comments should be made on the appropriate discussion page. No further edits should be made to this discussion.
If I have a page that has a template at the top eg {{MyTemplate|param=argument|param=argument}} it shows the raw template text in the search results rather than the rendered result. How do you make the search results show content from the page after transclusion. Bluedreamer1 (talk) 21:16, 10 July 2020 (UTC)
- We are using the Google Site Search extension and only the wikitext is shown in the results... not template calls or template parameters. I'm guessing the Elastica and CirrusSearch extensions would probably do the same. Strange that this would be the default behavior now that you mention it. TiltedCerebellum (talk) 23:27, 10 July 2020 (UTC)
- Thanks, I was hoping it was just some LocalSettings var to set Bluedreamer1 (talk) 01:42, 11 July 2020 (UTC)
- yes, i believe that works properly in extension:CirrusSearch Bawolff (talk) 08:47, 11 July 2020 (UTC)
- Thanks, I'll check out elastic search Bluedreamer1 (talk) 12:07, 11 July 2020 (UTC)
- Yw :) TiltedCerebellum (talk) 21:52, 11 July 2020 (UTC)
Attribute selector does not work on MediaWiki:Common.css
The following discussion is closed. Please do not modify it. Subsequent comments should be made on the appropriate discussion page. No further edits should be made to this discussion.
Hi,
I tried to change the icon of HTTPS URLs on hy.wikipedia.org (diff) but it has no effect. The same CSS works on User:ԱշոտՏՆՂ/common.css. Similar CSS snippet works as a Gadget. Is there any way to fix this?
Thanks Ashot (talk) 22:07, 10 July 2020 (UTC)
- I'm not sure why it would work on your personal css, but when I look at hywiki in my browser's inspector I can see that
#bodyContent
supersedes#content
: example. ☠MarkAHershberger☢(talk)☣ 01:00, 11 July 2020 (UTC) - Thank you @MarkAHershberger. You are right, it was because of #bodyContent in MediaWiki:Vector.css. Thank you very much ^_^. Ashot (talk) 01:21, 11 July 2020 (UTC)
I understand that the 3.5 inch uno display also works with a 3 wire and 4 wire SPI interface.
RESOLVED | |
Not related to MediaWiki and this is a MediaWiki support desk |
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 understand that the 3.5 inch uno display also works with a 3 wire and 4 wire SPI interface. I have an arduino beagleboard black and the display will not plug int this arduino. The documentation does not show the SPI interface. Can you please provide with libraries and instructions to support this display with the SPI interface.
Thank you,
Bradley Klimeck 73.187.41.92 (talk) 03:38, 11 July 2020 (UTC)
- You're probably in the wrong place, this is the support desk for the MediaWiki wiki software. Taavi (talk!) 07:15, 11 July 2020 (UTC)
Recent evolution of wikidata display on mobile phone
RESOLVED | |
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.
Commons:File:Affichage de Wikidata sur téléphone .png
A few days ago, I've seen a change in the display of claims on Wikidata on mobile phones. Horizontal scrolling have disappeared making the text unreadable by a human.
I use Timeless since it is not possible to edit claims with Minerva.
Where can I report the problem? PAC2 (talk) 06:26, 11 July 2020 (UTC)
- See How to report a bug Taavi (talk!) 07:15, 11 July 2020 (UTC)
- phab:T257720 for those interested in follow-up. Malyacko (talk) 12:35, 11 July 2020 (UTC)
Semantic Media Wiki rebuiData.php caused this error on new 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.
Hi All,
I am setting up a new wiki, (MW 1.34.2 and SMW 3.1.6), and I was reubilding the semantic data to clean it up with the following command run from the SemanticMediaWiki extentensions directory
[wiki@eagle SemanticMediaWiki]$ php maintenance/rebuildData.php -d 1 --remove-remnantentities -v --refresh-propertystatistics --force-update
At the end I got the following php stack trace
... IDs checked or refreshed 656 ... IDs skipped 0 ... done. [1f171b8a33c4622fac9703f7] [no req] Error from line 106 of /home/wiki/mediawiki-1.34.2/extensions/SemanticMediaWiki/src/Maintenance/MaintenanceFactory.php: Class 'SMW\Maintenance\RebuildPropertyStatistics' not found Backtrace: #0 /home/wiki/mediawiki-1.34.2/extensions/SemanticMediaWiki/maintenance/rebuildData.php(206): SMW\Maintenance\MaintenanceFactory->newRebuildPropertyStatistics() #1 /home/wiki/mediawiki-1.34.2/maintenance/doMaintenance.php(99): SMW\Maintenance\rebuildData->execute() #2 /home/wiki/mediawiki-1.34.2/extensions/SemanticMediaWiki/maintenance/rebuildData.php(261): require_once(string) #3 {main}Bluedreamer1 (talk) 12:04, 11 July 2020 (UTC)
- @Bluedreamer1 See https://www.semantic-mediawiki.org/wiki/Help:Getting_support Malyacko (talk) 12:37, 11 July 2020 (UTC)
- Thank you so much for the help Trinna sowan (talk) 13:20, 11 July 2020 (UTC)
Regarding to change permission of file
RESOLVED | |
Not related to MediaWiki |
The following discussion is closed. Please do not modify it. Subsequent comments should be made on the appropriate discussion page. No further edits should be made to this discussion.
Hi:
Following the guideline, I found out that to change the permissions of a file or directory, I need to use the chmod command, however, this command seems does not work for some reason, I mean, the permission of the selected file does not change and the color of my selected file does not change from white to green after even though I use the chmod. Am I not allowed to change the permission?
Best regard 2600:8807:C180:A75:D87F:5901:48B4:1C63 (talk) 16:17, 11 July 2020 (UTC)
- What exactly did you type, what are you trying to change the file mode to, what is the output of ls -la Bawolff (talk) 19:04, 11 July 2020 (UTC)
- chmod 777 xxx.sh
- xxx is the file name of a software, the output of xxx.sh does not change the permission because when I am trying to install this software, it still says permission denied Bestplanetarian (talk) 14:19, 12 July 2020 (UTC)
- Bestplanetarian is my username, previously I use the anonymous name Bestplanetarian (talk) 20:59, 12 July 2020 (UTC)
2600:8807:C180:A75:B9CA:5F16:113D:4A8A (talk) 23:02, 11 July 2020 (UTC)
- (Bestplanetarian)
- drwxr-x--x 4 wangshiqi fortes 7168 Jul 13 00:34 .
- drwxr-xr-x 290 root root 0 Jul 13 00:34 ..
- -rw------- 1 wangshiqi fortes 1086 Jul 11 12:18 .bash_history
- -rw-r--r-- 1 wangshiqi fortes 18 Jul 8 14:53 .bash_logout
- -rw-r--r-- 1 wangshiqi fortes 176 Jul 8 14:53 .bash_profile
- -rw-r--r-- 1 wangshiqi fortes 124 Jul 8 14:53 .bashrc
- -rw-r--r-- 1 wangshiqi fortes 500 Jul 8 14:53 .emacs
- -rwxrwxrwx 1 wangshiqi fortes 101408996 May 13 10:21 EnergyPlus-8.8.0-7c3bbe48 30-Linux-x86_64.sh
- -rw-r--r-- 1 wangshiqi fortes 62 Jul 8 14:53 .inputrc
- -rw-r--r-- 1 wangshiqi fortes 121 Jul 8 14:53 .kshrc
- -rw-r--r-- 1 root root 0 Jul 8 14:53 .mcr_cache_v78
- drwxrwxrwx 2 wangshiqi fortes 0 Jul 9 17:28 ou
- drwxr-xr-x 2 wangshiqi fortes 1536 Jul 8 14:53 .ssh
- -rw------- 1 wangshiqi fortes 562 Jul 9 19:19 .viminfo
- -rw------- 1 wangshiqi fortes 348 Jul 13 00:34 .Xauthority
- -rw-r--r-- 1 wangshiqi fortes 658 Jul 8 14:53 .zshrc 2600:8807:C180:A75:B9CA:5F16:113D:4A8A (talk) 04:39, 13 July 2020 (UTC)
- well the file has execute rights, what happens when you try and run it? (Please include exact error messages)
- As an aside, this is probably offtopic as not a mediawiki question. Bawolff (talk) 06:47, 13 July 2020 (UTC)
- [wangshiqi@login2 ~]$ sudo ./bash EnergyPlus-8.8.0-7c3bbe4830-Linux-x86_64.sh
- [sudo] password for wangshiqi:
- wangshiqi is not in the sudoers file. This incident will be reported.
- I am sorry, because when I ask this question to someone working in the university and creating the server relates to mediawiki. They replied me that I need to contact with someone and give me a link, which directs me to here. 2600:8807:C180:A75:B9CA:5F16:113D:4A8A (talk) 00:38, 14 July 2020 (UTC)
- We dont make or have anything to do with a shell script named EnergyPlus-8.8.0-7c3bbe4830-Linux-x86_64.sh
- Anyways, the error happens because you dont have permission to run the script as root (administrator). You have permission to run it as your own account, but sudo changes your user account to be the root account, which you don't have access to Bawolff (talk) 00:57, 14 July 2020 (UTC)
How to get Special:Upload File under Tools?
For some reason when I created my Wiki site, Upload File was not an option under Tools. How do I make it an option? 174.26.235.186 (talk) 02:24, 12 July 2020 (UTC)
- Probably need to set $wgEnableUploads to true. AhmadF.Cheema (talk) 15:53, 12 July 2020 (UTC)
- MW 1.34.2: Same problem here. I cannot even add it manually to the Sidebar.
- I have the EnableUploads set to true. Even attempting to add Special:Upload with or without brackets does not work. Foreclosurepedia (talk) 19:48, 21 September 2020 (UTC)
email no longer valid for MANY years
A number of years ago I set up a wiki account and uploaded a single photo, but the email address associated to the user is no longer valid and for obvious reasons I can't reset my password. I can prove that it is my photo, (I need to make an edit to permissions, not remove it from Wiki), and I can validate the account as being mine. I saw an answer to a similar question in a search with a link to changepassword.php, but that is Greek to me (not tech-savvy) Would really appreciate some help here. Need to adjust permissions and also add more images for others to have access to! My old user name is hirlrng. I opened another account I am currently signed in to. I was hoping I could figure out a bridge between them, but my technical prowess is severely lacking... I could really use some help here - there must be some way to fix this? Thanks in advance! Meryl Tihanyi (talk) 21:22, 12 July 2020 (UTC)
- Which photo are you talking about? You should probably go to the pages talk page and make a request there. ☠MarkAHershberger☢(talk)☣ 00:29, 13 July 2020 (UTC)
- It looks like you are talking about this photo, right?
- The name of the photograph's owner does match your username, but I wouldn't call that proof.
- I don't know enough about the policies on Commons to tell you how to proceed, but I think you should ask there. ☠MarkAHershberger☢(talk)☣ 00:33, 13 July 2020 (UTC)
- Yes, this is the photo. I have the RAW files with the metadata, which proves ownership and authorship. Meryl Tihanyi (talk) 06:05, 13 July 2020 (UTC)
- ask at commons:commons:help desk.
- Note you will likely be asked to prove whatever change you need to make is correct, keeping in mind creative commons licenses are irrevocable and usually cannot be changed. Bawolff (talk) 03:19, 13 July 2020 (UTC)
- I am not trying to revoke, only modify. But also, I want to be able to upload more work under one account. I know the original email address associated with my old wiki account, just not the PW. It was more than 10 years ago :-/
- Is there someone I can contact and provide my 'proof' so I can reset my PW? Meryl Tihanyi (talk) 06:10, 13 July 2020 (UTC)
- if your proof meets wikitech:Password reset/Confirming identities, email ca@wikimedia.org Bawolff (talk) 06:40, 13 July 2020 (UTC)
jquery warning after upgrading to 1.34.2
Greetings. I've been running the LTS version and I'm on 1.31.8 Today I decided to give 1.34.2 a shot with a backup of my database in another directory. I had no errors during upgrade on the command line and the wiki pulls up, and I can do various tasks. However when I go to the recent changes page it loads kind of slow. When I look at the console in developer tools I get the following warning: This page is using the deprecated ResourceLoader module "jquery.tabIndex". I've found that a number of pages are displaying this. Is this expected or is there an issue with my configuration? Ecocyde (talk) 01:56, 13 July 2020 (UTC)
- If it isn't causing a problem, then you're probably fine. The developer of whatever extension is causing that needs to update their extension. ☠MarkAHershberger☢(talk)☣ 02:21, 13 July 2020 (UTC)
- I should have mentioned I don't have any extensions loaded in my localsettings and I'm using vector for the skin. Ecocyde (talk) 03:33, 13 July 2020 (UTC)
- its safe to ignore that warning, its meant for developers. Bawolff (talk) 06:44, 13 July 2020 (UTC)
Username change
How can I change my username? Thanks.
@J. Wiwat SmileyBrown (talk) 02:45, 13 July 2020 (UTC)
restore from sql database backup
deleted mediawiki installation.
i only have a sqldatabase of my mediawiki website
how do i restore my mediawiki website Tnasab (talk) 06:32, 13 July 2020 (UTC)
- ideally you would have LocalSettings.php.
- If you dont, i would suggest making a new mediawiki instance, run the installer, take the LocalSettings.php file, and change the db related settings to point to your db. Then run update.php if backup is older version Bawolff (talk) 06:43, 13 July 2020 (UTC)
Notifications and file uploads
How to add Notifications bar to my wiki And file upload tools are not in the boss WikiS459 (talk) 10:31, 13 July 2020 (UTC)
- and Manual:Pywikibot Here's how to turn on my wiki new user Welcome bot And I can't run any bots WikiS459 (talk) 10:37, 13 July 2020 (UTC)
- Could you please clarify what you are asking? Try one question at a time. ☠MarkAHershberger☢(talk)☣ 11:58, 13 July 2020 (UTC)
- How to add Notifications bar to my wiki, WikiS459 (talk) 18:55, 13 July 2020 (UTC)
- By installing and configuring Extension:Echo Taavi (talk!) 19:01, 13 July 2020 (UTC)
- ok Manual:Pywikibot Here's how to turn on my wiki new user Welcome bot And I can't run any bots WikiS459 (talk) 19:03, 13 July 2020 (UTC)
- So, you can't run bots but you want a welcome bot? I think you've got a conundrum. ☠MarkAHershberger☢(talk)☣ 03:41, 14 July 2020 (UTC)
- @MarkAHershberger I mean how do I turn a bot into my wiki Manual:Pywikibot I don't understand anything here WikiS459 (talk) 05:24, 14 July 2020 (UTC)
- To have a bot running against your wiki, you'll need to have some understanding of programming. If you're trying to understand how to use Pywikibot, then I suggest you learn some Python. ☠MarkAHershberger☢(talk)☣ 15:23, 14 July 2020 (UTC)
- You may also be looking for Extension:NewUserMessage for welcoming new users Taavi (talk!) 15:23, 14 July 2020 (UTC)
$wgEnableDnsBlacklist $wgDnsBlacklistUrls doesn't seem to do anything
I put this in LocalSettings.php
$wgEnableDnsBlacklist = true;
$wgDnsBlacklistUrls = array( 'xbl.spamhaus.org', 'dnsbl.tornevall.org', 'spam.dnsbl.sorbs.net', 'rbl.dnsbl.im' );
But when I want to edit a page or create an account on my mediawiki instance with a VPN or from Tor it doesn't block anything.
Am I missing something? The DNSBL method doesn't seem to be widely used, I see more use of the proxylist methode which require way more steps. Dnsbl1 (talk) 11:09, 13 July 2020 (UTC)
- I don't know anything about this feature, but the documentation says:
- You should end the domain name with a "
.
" to avoid searching your eventual domain search suffixes. - Have you tried that? ☠MarkAHershberger☢(talk)☣ 12:04, 13 July 2020 (UTC)
- Yes I tried that too, it doesn't change much. Dnsbl1 (talk) 12:34, 13 July 2020 (UTC)
- Could this have something to do with Caching?
- I have
## Shared memory settings
$wgMainCacheType = CACHE_ACCEL;
$wgMemCachedServers = [];
Dnsbl1 (talk) 13:44, 13 July 2020 (UTC)- Caching probably doesn't affect this, but, if you want to be sure, change CACHE_ACCEL to CACHE_NONE and try again.
- You should also verify that the IP you're using via TOR is blocked by one of those DNSbl. ☠MarkAHershberger☢(talk)☣ 15:24, 13 July 2020 (UTC)
- if you want to specificly block TOR i think extension:TorBlock is a better option Bawolff (talk) 01:51, 14 July 2020 (UTC)
- Yes Dawolff I already have the extension TorBlock and it works fine, but I'm trying to find a efficient way to also block proxies and VPNs Dnsbl1 (talk) 08:14, 14 July 2020 (UTC)
- BUMP Dnsbl1 (talk) 15:11, 15 July 2020 (UTC)
- Actually it works!
- The thing is it only disallow account creation and not editing, which is an issue for years.
- Might not be so hard to change, you can still disable editing without an account in case of spam, but simply blocking edits from IPs detected by a DNSBL would be better for general use. Dnsbl1 (talk) 08:19, 18 July 2020 (UTC)
Semantic Cite and Cite links
I wanted to get datas from the links used with the Cites extensions (like on Wikipedia).
When you put a link as a reference like http://www.vbulletin.com/docs/html/vboptions_group_censor
You get infos such as "Censorship Options" vBulletin.com. Retrieved 2008-10-30.
I installed "Semantic MediaWiki" Extension with composer and Semantic Cite, it shows up correctly on the Special:Version page as correctly installed but I don't think it's actually the extension doing what I want as it doesn't retrieve infos from references links.
Is it actually available publicly or only available for wikipedia rn? Dnsbl1 (talk) 11:20, 13 July 2020 (UTC)
- i believe what you are looking for is Citeoid combined with extension:visualEditor. Bawolff (talk) 01:49, 14 July 2020 (UTC)
help with loging in please?
Hi! Is it possible to retrieve my account based on my ip address? I hadn't connected an email account to my Wiki account and I got signed off even though I had clicked the stay logged in option and now I can't remember the password. Please help. 94.65.84.48 (talk) 16:44, 13 July 2020 (UTC)
- its not possible. Bawolff (talk) 01:48, 14 July 2020 (UTC)
- You can create a new account. I'd suggest you connect the new account to an email address, then you won't be in this position if you lose your password again. TiltedCerebellum (talk) 00:20, 15 July 2020 (UTC)
помогите зарегистрироваться
помогите создать учетную запись 178.46.48.113 (talk) 17:12, 13 July 2020 (UTC)
How to redirect to a redirection page?
Hi, I want to make a redirection, which leads to a page. But this page contains also a redirection. I want it to stop redirecting again, but stay, where the reader came first.
I tried to write [[Page&redirect=no]], but this doesn't work. It would lead to the page:
Page&redirect=no
How should I do it instead? 2A02:908:3111:7DA0:45D3:9991:1A8A:F69F (talk) 20:57, 13 July 2020 (UTC)
- redirects are only followed one level deep by default, so you shouldnt have to do anything special Bawolff (talk) 01:47, 14 July 2020 (UTC)
Removal of my sysop rights
RESOLVED | |
Wrong place |
The following discussion is closed. Please do not modify it. Subsequent comments should be made on the appropriate discussion page. No further edits should be made to this discussion.
Hi, I'm sorry if this is the wrong place to put this request in, but I'd like for a bureaucrat to remove my sysop rights. I'm not active here and am not planning to be active here. —Atcovi (Talk - Contribs) 05:13, 14 July 2020 (UTC)
- I've updated your previous request. ☠MarkAHershberger☢(talk)☣ 15:39, 14 July 2020 (UTC)
- The correct place would be on meta m:SRP since local 'crats can't remove sysop rights. Taavi (talk!) 15:52, 14 July 2020 (UTC)
I have promblem with wiki/extension/Lockdown issue
RESOLVED | |
I have addon installed again...
|
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.
Hallo,
Im using mediawiki version 1.34..
i have installed and extracted extension "Lockdown" on my wiki..
if add (wfLoadExtension( 'Lockdown' ) to Localsettings.php ,wiki shows nothing ,its just Blank page..
Thank you for kind responses Satyaps2251 (talk) 14:17, 14 July 2020 (UTC)
- Please see Blank page for instructions on enabling debug logging that will help solve this issue. Taavi (talk!) 14:18, 14 July 2020 (UTC)
I forgot my password and my email that I created my account by that.
Please somebody help me. I created my account about 14 years ago. Now I forgot my password I I don't remember that I created my account with which email address! I try resetting my password but I didn't reach any email. What should I do? 5.114.84.31 (talk) 18:46, 14 July 2020 (UTC)
- What is your username? Regards, ZI Jony (Talk) 18:57, 14 July 2020 (UTC)
- Mpangoolakchi 5.114.84.31 (talk) 19:23, 14 July 2020 (UTC)
- Please create a new account and request global user rename with following reason "I was forgot my password and I don't remember that email address I was created my account." Regards, ZI Jony (Talk) 20:36, 14 July 2020 (UTC)
Automatically adding category to empty pages
I'm currently creating several pages on my wiki as placeholders which I will create properly at a later date. Currently I'm adding a category manually to these pages to make them easier to find.
Is there anyway of automatically adding the category to empty pages, maybe how the broken file links works. Desbrina1 (talk) 00:42, 15 July 2020 (UTC)
- Well, if they don't have a category they would automatically show up in Special:UncategorizedPages report and in your orphaned pages under Special:LonelyPages. You might want to familiarize yourself with Special:SpecialPages if you aren't already familiar with the reports there. TiltedCerebellum (talk) 02:08, 15 July 2020 (UTC)
- Special:ShortPages could also be useful. * Pppery * it has begun 03:28, 15 July 2020 (UTC)
Can't access MediaWiki after change of modem
RESOLVED | |
I resolved the problem by doing a backup of my Wiki, then uninstalling and reinstalling anew MediaWiki and then imported the backup files. |
The following discussion is closed. Please do not modify it. Subsequent comments should be made on the appropriate discussion page. No further edits should be made to this discussion.
Hello everyone.
I'm not an expert so I'll try to describe my issue at my best.
I've been using MediaWiki to create my own Wiki for a week without any problem. I installed it via Bitnami and I run it through Bitnami MediaWiki Stack 1.34.2-1 Windows Manager. Today my modem died and I had to replace it with a more obsolete one: after that, I tried to write something on my Wiki, as usual, but after clicking "Access MediaWiki" through the Manager, my browser pops a window, telling me it can't establish a connection to 192.168.x.x:81. Through the Manager I checked both Apache Web Server and MySQL Database and are both running fine. I don't know what can I do to get back at writing on my Wiki and I would like to know if there's something I can do.
Thanks to anyone who answers in advance. Zqwertyx (talk) 11:57, 15 July 2020 (UTC)
- sounds like you maybe had somesort of vpn or static ip addresses or firewall rules setup with your old modem that isnt set up with the new. Bawolff (talk) 15:04, 15 July 2020 (UTC)
Mediawiki Version 1.34 is compatable with Internet Explorer 11 ??
Hallo,
I have updated wiki version from 1.30.0 to 1.34.2.
have promble with Internet Explorer 11 (its without logo and search function),but Mozilla Firefox is just normal .
please let me know,if anyone have faced similar promblem ?
Thank you Satyaps2251 (talk) 12:15, 15 July 2020 (UTC)
- @Satyaps2251 Hard to say if you don't explain which exact problems there are. Malyacko (talk) 20:07, 15 July 2020 (UTC)
Wiki Family: It was not possible to determine the wiki ID.
I'm trying to set up a wiki family but I can't figure out what I actually have to put from the setup manual
Manual:Wiki family#Basic principles
I tried something like this so far without much chances, I don't know really what's the $wikiId all about.
## Database settings
$wgDBtype = "mysql";
$wgDBserver = "localhost";
$wgDBname = "wikidb";
$wgDBuser = "wikiuser";
$wgDBpassword = "Password";
if ( defined( 'wikidb' ) ) {
// Set $wikiId from the defined constant 'MW_DB' that is set by maintenance scripts.
$wikiId = wikidb;
} elseif (isset($_SERVER['localhost']) && $_SERVER['localhost'] == 'fr.mywiki.top') {
// Add a value to the $wikiId variable for e.g. https://wiki1.example.org/
$wikiId = 'fr';
} else {
// Fail gracefully if no value was set to the $wikiId variable, i.e. if no wiki was determined
die( 'It was not possible to determine the wiki ID.' );
}
$wgDBname = 'wikidb_'.$wikiId;
$wgDBuser = 'wikiuser_'.$wikiId;
$wgCacheDirectory = "/tmp/mediawiki_".$wikiId."_cache";
$wgUploadDirectory = "$IP/images_$wikiId";
$wgUploadPath = "/images_$wikiId";
if ($wikiId == 'wikidbfr') {
(//name of the second database, don't know if it have to be set here, or if I really need to set two databases?)
$wgSitename = "Site Name";
$wgServer = "http://fr.mywiki.top";
$wgLogo = "ExampleWiki_logo.png";
$wgDBpassword = "Password";
$wgLanguageCode = 'fr';
}
Dnsbl1 (talk) 15:09, 15 July 2020 (UTC)
- Server side it's well configure and I have my mediawiki install pointing to mysite.top and fr.mysite.top Dnsbl1 (talk) 15:10, 15 July 2020 (UTC)
- The $wikiId is the short name by which each wiki is known. It's just a convenience variable to use in LocalSettings and doesn't have any other special meaning. In your case you might have "mainwiki" and "frwiki" or something. Then, you use that to set the other wiki-specific variables.
- It looks like you've got a few incorrect bits of code there:
- you should use the 'MW_DB' constant, and not 'wikidb' like you have;
- it's
$_SERVER['SERVER_NAME']
not$_SERVER['localhost']
Sam Wilson 08:16, 16 July 2020 (UTC)
http://server/mediawiki/mw-config/index.php causing error 500
So I have mysql, apache2, and phpmyadmin installed on Ubuntu 1804. I copied the mediawiki folder to /var/www/html. I am able to browse to http://servername/mediawiki but I get the message saying it's not installed, so when I go to the /mediawiki/mw-config/index.php I get an error 500. I looked through my apache logs and saw that there was an issue with the media wiki not owned by the group www-data, so I did a chgrp -R on the media wiki folder. Still get the same error. Here are some logs:
[Wed Jul 15 08:06:17.240835 2020] [mpm_prefork:notice] [pid 6008] AH00169: caught SIGTERM, shutting down
[Wed Jul 15 08:06:17.400870 2020] [mpm_prefork:notice] [pid 56620] AH00163: Apache/2.4.29 (Ubuntu) configured -- resuming normal operations
[Wed Jul 15 08:06:17.400917 2020] [core:notice] [pid 56620] AH00094: Command line: '/usr/sbin/apache2'
[Wed Jul 15 08:06:19.888704 2020] [php7:warn] [pid 56626] [client 172.28.0.251:56720] PHP Warning: include(/var/www/html/mediawiki/vendor/composer/../liuggio/statsd-php-client/src/Liuggio/StatsdClient/Factory/StatsdDataFactory.php): failed to open stream: No such file or directory in /var/www/html/mediawiki/vendor/composer/ClassLoader.php on line 444, referer: http://emc-mr-vapp07/mediawiki/
[Wed Jul 15 08:06:19.888818 2020] [php7:warn] [pid 56626] [client 172.28.0.251:56720] PHP Warning: include(): Failed opening '/var/www/html/mediawiki/vendor/composer/../liuggio/statsd-php-client/src/Liuggio/StatsdClient/Factory/StatsdDataFactory.php' for inclusion (include_path='/var/www/html/mediawiki/vendor/pear/console_getopt:/var/www/html/mediawiki/vendor/pear/mail:/var/www/html/mediawiki/vendor/pear/mail_mime:/var/www/html/mediawiki/vendor/pear/net_smtp:/var/www/html/mediawiki/vendor/pear/net_socket:/var/www/html/mediawiki/vendor/pear/pear-core-minimal/src:/var/www/html/mediawiki/vendor/pear/pear_exception:.:/usr/share/php') in /var/www/html/mediawiki/vendor/composer/ClassLoader.php on line 444, referer: http://emc-mr-vapp07/mediawiki/
[Wed Jul 15 08:06:19.888835 2020] [php7:error] [pid 56626] [client 172.28.0.251:56720] PHP Fatal error: Class 'Liuggio\\StatsdClient\\Factory\\StatsdDataFactory' not found in /var/www/html/mediawiki/includes/libs/stats/BufferingStatsdDataFactory.php on line 35, referer: http://emc-mr-vapp07/mediawiki/
[Wed Jul 15 08:06:20.808014 2020] [php7:warn] [pid 56625] [client 172.28.0.251:56721] PHP Warning: include(/var/www/html/mediawiki/vendor/composer/../liuggio/statsd-php-client/src/Liuggio/StatsdClient/Factory/StatsdDataFactory.php): failed to open stream: No such file or directory in /var/www/html/mediawiki/vendor/composer/ClassLoader.php on line 444, referer: http://emc-mr-vapp07/mediawiki/
[Wed Jul 15 08:06:20.808139 2020] [php7:warn] [pid 56625] [client 172.28.0.251:56721] PHP Warning: include(): Failed opening '/var/www/html/mediawiki/vendor/composer/../liuggio/statsd-php-client/src/Liuggio/StatsdClient/Factory/StatsdDataFactory.php' for inclusion (include_path='/var/www/html/mediawiki/vendor/pear/console_getopt:/var/www/html/mediawiki/vendor/pear/mail:/var/www/html/mediawiki/vendor/pear/mail_mime:/var/www/html/mediawiki/vendor/pear/net_smtp:/var/www/html/mediawiki/vendor/pear/net_socket:/var/www/html/mediawiki/vendor/pear/pear-core-minimal/src:/var/www/html/mediawiki/vendor/pear/pear_exception:.:/usr/share/php') in /var/www/html/mediawiki/vendor/composer/ClassLoader.php on line 444, referer: http://emc-mr-vapp07/mediawiki/
[Wed Jul 15 08:06:20.808167 2020] [php7:error] [pid 56625] [client 172.28.0.251:56721] PHP Fatal error: Class 'Liuggio\\StatsdClient\\Factory\\StatsdDataFactory' not found in /var/www/html/mediawiki/includes/libs/stats/BufferingStatsdDataFactory.php on line 35, referer: http://emc-mr-vapp07/mediawiki/
[Wed Jul 15 08:09:31.152629 2020] [php7:notice] [pid 56629] [client 172.28.0.251:56764] phpmyadmin: Failed to load /etc/phpmyadmin/config-db.php Check group www-data has read access and open_basedir restrictions.
[Wed Jul 15 08:09:40.122263 2020] [php7:notice] [pid 56626] [client 172.28.0.251:56765] phpmyadmin: Failed to load /etc/phpmyadmin/config-db.php Check group www-data has read access and open_basedir restrictions.
[Wed Jul 15 08:09:40.144878 2020] [php7:notice] [pid 56626] [client 172.28.0.251:56765] phpmyadmin: Failed to load /etc/phpmyadmin/config-db.php Check group www-data has read access and open_basedir restrictions. Jordy85 (talk) 15:38, 15 July 2020 (UTC)
- After looking at the logs more carefully... lol... I noticed the error about the group www-data was for /etc/phpmyadmin/config-db.php. Looking in that folder, that file is missing. Jordy85 (talk) 16:51, 15 July 2020 (UTC)
- some people have reported issues with extracting the tar file that causes the
- PHP Fatal error: Class 'Liuggio\\StatsdClient\\Factory\\StatsdDataFactory' not found error. Make sure you use a recent version of GNU tar when extracting. Bawolff (talk) 18:28, 15 July 2020 (UTC)
- but the phpmyadmin just came from apt install, not a tar. Jordy85 (talk) 20:34, 15 July 2020 (UTC)
- what does phpmyadmin have to do with anything? Your original post was about mediawiki. Bawolff (talk) 02:29, 16 July 2020 (UTC)
- As far as I was aware phpmyadmin controls all the php stuff and SQL server that media wiki uses. Jordy85 (talk) 14:19, 16 July 2020 (UTC)
- it can be used to do that, but mediawiki doesn't use it or require it. Bawolff (talk) 01:10, 17 July 2020 (UTC)
How does MediaWiki/Wikipedia exactly store all of their pages+revisions, etc and how does the whole process work?
Hello everyone, so I am currently creating my own website that involves a a "wiki" system almost exactly like MediaWiki but with some changes to obviously fit the site goal. One of the biggest questions I have been asking myself is what is exactly the process that MediaWiki/Wikipedia takes to send newly created pages to the database, how it's exactly stored in there and what format, how Wikipedia easily searches through it without any delays, and how its exactly extracted to then be seen and used?
So first off I did download MediaWiki to look through it to see if I could get any ideas along with looking through the Manual:Contents section too. I found that each page on the page table is stored inside a blob of data but my question is, how is it exactly formatted? I saw some video on YouTube of a guy that was playing around with the Wikipedia API and it seemed like WIkipedia stores a JSON file that contains all the contents of the page among other pieces of information, inside the blob of data. I asked a similar question on the Manual talk:Page table and I got a reply from an administrator that told me that what was inside the blob wasn't JSON data like I thought. I also asked about it being stored as XML and he said no and that its used for importing and exporting pages, which makes it a whole lot more confusing.
I also wan't to point out a few things, first is that I am not doing formatting code just like MediaWiki does, rather I am just going to do the HTML editor (pretty much like the visual editor) and save it like that in the database.
so can someone fully and easily explain to me the whole entire process of how Wikipedia/MediaWiki creates new pages, stores them inside the database (and what format) , how it archives each version of the page, how it's exported to your computer, and displayed as a normal Wikipedia page? And also I would like to know how exactly Wikipedia is able to search through the blob of data for each page in the database when using the search bar? If anyone could answer these questions I would be beyond thankful!
p.s. Don't try to convince me to just "use MediaWiki" because I have had quite a bit of trouble and time wasted just trying to download some stuff for it (which I need to get this website up and running as soon as physically possible. Plus the "wiki" part of the site is just one major part of the site and the other is something beyond MediaWiki's use
Again I would be highly thankful if someone could give me an answer to my questions
Thanks, Splat TheSplatGuy (talk) 17:10, 15 July 2020 (UTC)
- This was answered in Manual talk:Page table#How does MediaWiki exactly store the contents of a page inside of a blob in the database? What would be the best technique to search through those contents for searching the site? so I'm not sure why this was also posted here in addition? Malyacko (talk) 20:06, 15 July 2020 (UTC)
- It was but its not exactly the same question, here I am asking for a full explanation of how it all works (because the previous one got me a little more confused). TheSplatGuy (talk) 21:04, 15 July 2020 (UTC)
- You are asking questions that have very long winded answers to answer fully. I'm happy to answer basically any question about how mediawiki works, but you're going to have to ask something specific that has roughly a 1 paragraph answer, not something so vauge that it would take 20 pages to answer fully in depth.
- If you want some links to do research on this topic yourself, Manual:MediaWiki architecture is a good starting point.
- In brief:
- > creates new pages, stores them inside the database (and what format)
- You appear to have already found the db schema so please be more clear about what part of that process you want explained. The format is usually plain text (wikitext), but can vary with page type. Contents may be further compressed, etc. On wikipedia (but not default mediawiki) a separate db cluster is used (external storage) instead of the text table. On wikipedia for various reasons, sometimes things are stored as serialized php objects [bad design choice, do not reccomend]
- > how it archives each version of the page
- It does not archive old versions of a page (depends what you mean by "archive") All nondeleted pages have all revisions in revision table
- > And also I would like to know how exactly Wikipedia is able to search through the blob of data for each page in the database when using the search bar?
- Default mediawiki uses mariadb's built in full text search index type on searchindex table. This is low quality so wikipedia uses a separate program called elasticSearch (using CirrusSearch as a bridge).
- > it's exported to your computer, and displayed as a normal Wikipedia page?
- At request time we convert the page text to html (using extensive caching). The process for this is rather complex, see the directory includes/parser in mediawiki for details. There is also an alternative implementation called parsoid. Much of the complexity stems from historically being text only and only later moving to a visual editor. Bawolff (talk) 02:26, 16 July 2020 (UTC)
BlueSpice needed > yes or no?
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.
Previous older MediaWiki has BlueSpice installed and new MediaWiki doesn't.
1) is BlueSpice really needed?
2) if not installed, will WikiMedia database move be impacted?
Thx Dossod11 (talk) 18:20, 15 July 2020 (UTC)
- blue spice is a suite of extensions. Removing it will disable that suite. Whether or not you need it depends on if you are using it/want it.
- The database should still be fine after removing extensions Bawolff (talk) 18:24, 15 July 2020 (UTC)
BlueSpice Question
The following discussion is closed. Please do not modify it. Subsequent comments should be made on the appropriate discussion page. No further edits should be made to this discussion.
I installed BlueSoice MediaWiki and the instruction says at step 11) run the script ..\maintenance\update.php from the console.
I know if's a stupid question but what console? i tried to run it under cmd and ps and the error says that the path can't be found even when it's there. Dossod11 (talk) 20:39, 15 July 2020 (UTC)
- typically this is the console of your server. Usually you use ssh or PuTTY to access it.
- Probably best to change directory into the maintenance directory and do:
- php update.php
- If you installed it on your own computer and its windows, you would have to ensure that the php binary is installed and in your path, ir use the full path to it. Bawolff (talk) 02:07, 16 July 2020 (UTC)
- I ran the php update.php and looks like something ran... let me take a look and see if all worked. Dossod11 (talk) 16:26, 16 July 2020 (UTC)
How to Install MediaWiki in Portuguese/Brazilian language ?
Hi everyone,
Softaculous app of my hosting provider allows auto install MediaWiki in 14 languags, but not available the Portuguese/Brazilian Language ?
So,there are any way to install MediaWiki in Portuguese/Brazilian language. Let´s say download an installation setup of Portuguese/Brazilian language to install it on manual mode ?
thanks 2001:818:E80A:2800:1120:F07B:B174:5060 (talk) 01:12, 16 July 2020 (UTC)
- we dont maintain softaculous's version of mediawiki or know much about it.
- The official version of mediawiki you can download from this website includes Brazillian portugese by default.
- If you have an existing mediawiki install, try opening LocalSettings.php, and change $wgLanguageCode to = "pt-br"; Bawolff (talk) 02:04, 16 July 2020 (UTC)
Pomoc w języku polskim?
Zdesperowany początkujący użytkownik, który nie może sobie poradzić z instalacją Mediawiki szuka pomocy w języku polskim. Ktoś podpowie, gdzie szukać? do kogo się zwrócić?
Mediawiki was able to upload, the index.php script worked, but the LocalSettings.php file was not created. I tried twice, the same thing twice:
MediaWiki 1.34.2
LocalSettings.php not found.
Zupełnie nie wiem, co robić.
Darek 83.20.30.116 (talk) 06:40, 16 July 2020 (UTC)
Mail-related 2 errors
Hello.
I have some issues with mail on my wiki.
1. If I try to change the e-mail address, an error occurs, but if you go back to the environment settings, it is set normally.
https://drive.google.com/file/d/1EpbsCsEqxc3VuRUWHzHiBh1b5d-AqS0c/view?usp=sharing
https://drive.google.com/file/d/1QlXw040UduBQPig3GUbHYY7N3NrNSHsz/view?usp=sharing
2. If I try to send an e-mail, the message Please log in and set your e-mail address' appears.
https://drive.google.com/file/d/1I2VKjTSS9IyMnbLHu1jIRVjAleESqH9E/view?usp=sharing
but I'm already logged in and have set up your e-mail.
The link below is for mail related items from LOCALSETTINGS.PHP,
https://drive.google.com/file/d/1ZQR0zxtm0cI8lcuxGR_t5GlRNrSGe6M4/view?usp=sharing
Please help. thank you. GTX1060 (talk) 12:01, 16 July 2020 (UTC)
- what operating system?
- If linux, what MTA is installed (e.g. postfix, or sendmail, etc) Bawolff (talk) 01:13, 17 July 2020 (UTC)
- I do not know. I don't think it's installed. Install MTA? GTX1060 (talk) 06:28, 17 July 2020 (UTC)
- yes, if you dont have one installed try installing postfix. Many linux distros come with a MTA preinstalled. Bawolff (talk) 15:45, 17 July 2020 (UTC)
- I found that sendmaill is installed by default in Debian, which is my operating system. What can I do now? GTX1060 (talk) 11:00, 19 July 2020 (UTC)
- Sendmail is definitely not the default for debian. I think the default is exim4, not sure.
- In any case, try to send an email using commandline mail program and see if it works (you might have to install command line mail program) Bawolff (talk) 22:09, 19 July 2020 (UTC)
- After setting up $wgSMTP, the following response returned:
- 'THEGREATESCAPEWIKI was unable to send a verification email. Please make sure you entered the wrong email address.
- Response from mail server: Failed to connect to escapewiki.org:25 [SMTP: Failed to connect socket: Connection timed out (code: -1, response: )]'
- I'm using AWS EC2 hosting, but someone told me to open port 25 to use the mail function. Should I ask AWS to open port 25? GTX1060 (talk) 10:24, 23 July 2020 (UTC)
- Sending an email usually requires you to have a mail server that authenticates every client trying to send an email. You probably need to set up those details in $wgSMTP Ciencia Al Poder (talk) 15:22, 17 July 2020 (UTC)
- After setting up $wgSMTP, the following response returned:
- 'THEGREATESCAPEWIKI was unable to send a verification email. Please make sure you entered the wrong email address.
- Response from mail server: Failed to connect to escapewiki.org:25 [SMTP: Failed to connect socket: Connection timed out (code: -1, response: )]'
- I'm using AWS EC2 hosting, but someone told me to open port 25 to use the mail function. Should I ask AWS to open port 25? GTX1060 (talk) 10:23, 23 July 2020 (UTC)
- Opening port 25 is not going to help if you don't have a mail transfer agent on escapewiki.org at port 25. It's like opening port 80 on a server without a web service running and expect to see a website when navigating to it...
- An alternative is to use a public mail service like google or a commercial (paid) mail service. Some hostings provide mail accounts in their plans. Ciencia Al Poder (talk) 10:41, 24 July 2020 (UTC)
- AWS provides a mailing service under the name AWS SES. Can I send email using AWS SES? GTX1060 (talk) 11:22, 24 July 2020 (UTC)
- Yes. It uses SMTP Ciencia Al Poder (talk) 12:44, 24 July 2020 (UTC)
Problems with Flow discussions extension and mobile version
Hello all!
I have Mediawiki 1.31 and installed Flow discussion extension and extension to have mobile version of the website. So Flow works fine at Desktop version of my wiki site, but as soon as I switch on Mobile version and go to discussion page and soon as I open it the page froze and I cannot add comments. How can I resolve the issue? Fokebox (talk) 14:42, 16 July 2020 (UTC)
Question About Monster Quick Effects
The following discussion is closed. Please do not modify it. Subsequent comments should be made on the appropriate discussion page. No further edits should be made to this discussion.
I have a question about Fairy Tail Sleeper. My girlfriend will play this cards second effect from her hand as a quick effect, "When your opponent activates a Normal Spell/Trap Card (Quick Effect): You can Tribute 1 other monster; the activated effect becomes "Change 1 face-up monster your opponent controls to face-down Defense Position" but I don't think its able to be used that way. Anyone know for sure? I cant find any information on it. 104.129.205.26 (talk) 15:06, 16 July 2020 (UTC)
- this is only for questions about mediawiki. Bawolff (talk) 15:23, 16 July 2020 (UTC)
Wikibase client configuration
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 trying to link pages in other languages but I have this window popping up when I try to add a link.
https://i.ibb.co/dk2BvrV/sysop-wikibase-client-add-link.png
I didn't get how to configure the LocalSettings.php well from Wikibase/Installation#Adjust your LocalSettings.php
Here is what I have set
$wgEnableWikibaseClient = true;
$wgEnableWikibaseRepo = true;
require_once "$IP/extensions/Wikibase/repo/Wikibase.php";
require_once "$IP/extensions/Wikibase/repo/ExampleSettings.php";
require_once "$IP/extensions/Wikibase/client/WikibaseClient.php";
require_once "$IP/extensions/Wikibase/client/ExampleSettings.php";
It's to link pages from the same database and same installation, not from a wiki family.
Should I include others things ?
My browser (chrome based) also show a bunch of errors related to this on the Special:NewItem page
Uncaught TypeError: (language || this.language || "").toLowerCase is not a function
at WebFonts.getFont (<anonymous>:14:999)
at HTMLFormElement.<anonymous> (<anonymous>:16:677)
at Function.each (load.php?lang=fr&modules=jquery%2Coojs-ui-core%2Coojs-ui-widgets|jquery.ui&skin=vector&version=jzg07:4)
at jQuery.fn.init.each (load.php?lang=fr&modules=jquery%2Coojs-ui-core%2Coojs-ui-widgets|jquery.ui&skin=vector&version=jzg07:2)
at WebFonts.parse (<anonymous>:16:424)
at WebFonts.init (<anonymous>:15:106)
at new WebFonts (<anonymous>:14:618)
at HTMLBodyElement.<anonymous> (<anonymous>:20:774)
at Function.each (load.php?lang=fr&modules=jquery%2Coojs-ui-core%2Coojs-ui-widgets|jquery.ui&skin=vector&version=jzg07:4)
at jQuery.fn.init.each (load.php?lang=fr&modules=jquery%2Coojs-ui-core%2Coojs-ui-widgets|jquery.ui&skin=vector&version=jzg07:2)
I've updated everything correctly, installed composer from binary, mediawiki version is 1.34.2, wikibase is the version for this version. Dnsbl1 (talk) 20:17, 16 July 2020 (UTC)
- huh. I wonder if its secretly depending on extension:UniversalLanguageSelector or something. Bawolff (talk) 01:12, 17 July 2020 (UTC)
- Yeah I already have that extension installed, I think it have some non essential dependencies to it. Dnsbl1 (talk) 05:05, 17 July 2020 (UTC)
- If anyone is following this, I just switched to the SemanticInterlanguageLinks extension which was just perfect for me, and it works. Dnsbl1 (talk) 21:11, 17 July 2020 (UTC)
Newcomer structured tasks
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.
- First off, I'd like to say that "newcomer structured tasks" sounds much more polite than "baby steps for newbies". So, thank you for that!
- Moving right along, though, where are they? Or are there any for MediaWiki?
- I found the awesome page about the research about newcomers and how to set up guided practice activities for them and all that juicy stuff, I was very excited. I'm happy to be guided and learn incrementally along the path that more experienced people have learned is effective.
- However, it all seems to be for Wikipedia, not MediaWiki. I know these cousins, but from what I understand, they are both a bit different, so the one would not necessarily translate to the other?
- Or at least that was the impression I've had from some chats I've tried, anyway.
- If there is a special area you'd recommend a newcomer start for "Step 1: Try this First" or similar, I'm very eager to know where it is.
- (Yes, I have looked. No, I can't find it.)
- Thank you! Karbyn (talk) 01:35, 17 July 2020 (UTC)
- @Karbyn If you'd like to work on code, see New Developers. Malyacko (talk) 11:42, 17 July 2020 (UTC)
- most of this type of thing is aimed at wikipedians, often more about cultural matters than technical ones , especially https://en.wikipedia.org/wiki/Wikipedia:The_Wikipedia_Adventure
- Some extentions use extension:GuidedTour for making tutorial type things. Bawolff (talk) 05:37, 17 July 2020 (UTC)
- Thank you everyone, I will give those suggestions a look. Appreciate you! Karbyn (talk) 22:14, 17 July 2020 (UTC)
1.35 Error Saving Page With External Link
The following discussion is closed. Please do not modify it. Subsequent comments should be made on the appropriate discussion page. No further edits should be made to this discussion.
I am having an issue on group wiki installation. Everything works just fine until we try to save a page that contains an external link. We then get an error that says Caught exception of type Error
I added $wgShowExceptionDetails = true;
Now the error is saying Exception caught: Call to a member function get() on null
Any help would be great, I've been searching all day and haven't found anything too similar to this issue. If I remove all external links the page saves just fine.
MediaWiki: 1.35
PHP: 7.2.31
MariaDB: 10.3.17
LUA: 5.1.5
VisualEditor 0.1.2 Gluemakesmepoo (talk) 02:55, 17 July 2020 (UTC)
- does the exception details have a backtrace? Bawolff (talk) 05:33, 17 July 2020 (UTC)
- also, external links only makes it sound like something is wrong with an antispam or captcha extension. In any case the backtrace would confirm that Bawolff (talk) 05:35, 17 July 2020 (UTC)
- Figured it out. Thanks, you got me pointed in the right direction. It was the SpamBlacklist extension. Disabled that and it saved no issues. I'll work on configuring that correctly later, but for now this gets us back to work.
- Thanks again. Gluemakesmepoo (talk) 02:49, 18 July 2020 (UTC)
error - [05575cfedebae9daa0d54bb3] 2017-11-18 21:45:24: Fatal exception of type Wikimedia\Rdbms\DBQueryError
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.
Hallo,
I rollback my wiki from 1.34 to 1.30 Version ( due to some issues with our standard Browser Internet Explorer).
im getting ---> Fatal exception of type Wikimedia\Rdbms\DBQueryError
Please can anyone advice..Thanks a lot Satyaps2251 (talk) 08:18, 17 July 2020 (UTC)
- @Satyaps2251 See Manual:How to debug. How exactly to "rollback"? What makes you think that a "rollback" is supported when it comes to database scheme changes between 1.30 and 1.34? Malyacko (talk) 11:41, 17 July 2020 (UTC)
- Hi,
- Thank you for your reply,
- I made no changes on DATABASE scheme,just reactivated my previous version..
- thank you Satyaps2251 (talk) 12:45, 17 July 2020 (UTC)
- If you run update.php or the web installer, you're making schema changes. Ciencia Al Poder (talk) 15:20, 17 July 2020 (UTC)
- you probably have to restore from backups if you're downgrading by several versions. Particularly between versions that have the actor refactoring in them Bawolff (talk) 15:47, 17 July 2020 (UTC)
- Hi ,Thank you
- with restore from backup ,works everything is fine
- Thank you 213.168.214.130 (talk) 07:16, 20 July 2020 (UTC)
Unable to Import Wikipedia Dumps
MediaWiki Version: 1.34.2
PHP: v.7.4
Database: MySQL v.8.0.20-0ubuntu0.20.04.1
Method:
php importDump.php --conf ../LocalSettings.php --username-prefix="" enwiki-20200701-pages-articles.xml.bz2
Error:
2300 (2.36 pages/sec 2.36 revs/sec)
2400 (2.36 pages/sec 2.36 revs/sec)
2500 (2.35 pages/sec 2.35 revs/sec)
2600 (2.33 pages/sec 2.33 revs/sec)
2700 (2.31 pages/sec 2.31 revs/sec)
CannotCreateActorException from line 2323 of /var/lib/mediawiki/includes/user/User.php: Cannot create an actor for a usable name that is not an existing user: user_id=0 user_name="Იაკობ მახარაძე"
#0 /var/lib/mediawiki/includes/ActorMigration.php(303): User->getActorId()
#1 /var/lib/mediawiki/includes/Revision/RevisionStore.php(753): ActorMigration->getInsertValuesWithTempTable()
#2 /var/lib/mediawiki/includes/Revision/RevisionStore.php(552): MediaWiki\Revision\RevisionStore->insertRevisionRowOn()
#3 /var/lib/mediawiki/includes/Revision/RevisionStore.php(490): MediaWiki\Revision\RevisionStore->insertRevisionInternal()
#4 /var/lib/mediawiki/includes/libs/rdbms/database/Database.php(3967): MediaWiki\Revision\RevisionStore->MediaWiki\Revision\{closure}()
#5 /var/lib/mediawiki/includes/libs/rdbms/database/DBConnRef.php(68): Wikimedia\Rdbms\Database->doAtomicSection()
#6 /var/lib/mediawiki/includes/libs/rdbms/database/DBConnRef.php(635): Wikimedia\Rdbms\DBConnRef->__call()
#7 /var/lib/mediawiki/includes/Revision/RevisionStore.php(498): Wikimedia\Rdbms\DBConnRef->doAtomicSection()
#8 /var/lib/mediawiki/includes/Revision.php(968): MediaWiki\Revision\RevisionStore->insertRevisionOn()
#9 /var/lib/mediawiki/includes/import/ImportableOldRevisionImporter.php(129): Revision->insertOn()
#10 /var/lib/mediawiki/includes/import/WikiRevision.php(616): ImportableOldRevisionImporter->import()
#11 /var/lib/mediawiki/includes/import/WikiImporter.php(366): WikiRevision->importOldRevision()
#12 /var/lib/mediawiki/maintenance/importDump.php(209): WikiImporter->importRevision()
#13 /var/lib/mediawiki/includes/import/WikiImporter.php(501): BackupReader->handleRevision()
#14 /var/lib/mediawiki/includes/import/WikiImporter.php(941): WikiImporter->revisionCallback()
#15 /var/lib/mediawiki/includes/import/WikiImporter.php(860): WikiImporter->processRevision()
#16 /var/lib/mediawiki/includes/import/WikiImporter.php(802): WikiImporter->handleRevision()
#17 /var/lib/mediawiki/includes/import/WikiImporter.php(606): WikiImporter->handlePage()
#18 /var/lib/mediawiki/maintenance/importDump.php(359): WikiImporter->doImport()
#19 /var/lib/mediawiki/maintenance/importDump.php(292): BackupReader->importFromHandle()
#20 /var/lib/mediawiki/maintenance/importDump.php(127): BackupReader->importFromFile()
#21 /var/lib/mediawiki/maintenance/doMaintenance.php(99): BackupReader->execute()
#22 /var/lib/mediawiki/maintenance/importDump.php(364): require_once('/var/lib/mediaw...')
#23 {main}
[18a8bc8d20890d2db71b04b7] [no req] Wikimedia\Rdbms\DBTransactionError from line 1680 of /var/lib/mediawiki/includes/libs/rdbms/loadbalancer/LoadBalancer.php: BackupReader: Commit failed on server(s) localhost: Cannot execute query from BackupReader while transaction status is ERROR
Backtrace:
#0 /var/lib/mediawiki/includes/libs/rdbms/lbfactory/LBFactory.php(208): Wikimedia\Rdbms\LoadBalancer->commitMasterChanges()
#1 /var/lib/mediawiki/includes/libs/rdbms/lbfactory/LBFactorySimple.php(134): Wikimedia\Rdbms\LBFactory->Wikimedia\Rdbms\{closure}()
#2 /var/lib/mediawiki/includes/libs/rdbms/lbfactory/LBFactory.php(210): Wikimedia\Rdbms\LBFactorySimple->forEachLB()
#3 /var/lib/mediawiki/includes/libs/rdbms/lbfactory/LBFactory.php(273): Wikimedia\Rdbms\LBFactory->forEachLBCallMethod()
#4 /var/lib/mediawiki/maintenance/doMaintenance.php(127): Wikimedia\Rdbms\LBFactory->commitMasterChanges()
#5 /var/lib/mediawiki/maintenance/importDump.php(364): require_once(string)
#6 {main} Dyecast (talk) 18:55, 17 July 2020 (UTC)
- Yet another issue with Georgian capitalization. See phab:T254470. Malyacko (talk) 20:45, 17 July 2020 (UTC)
- Is there a fix? Dyecast (talk) 01:42, 18 July 2020 (UTC)
- Or do you have another better way of importing these? Dyecast (talk) 01:51, 18 July 2020 (UTC)
- The April build, so far (3000 pages in), doesn't have this issue. Dyecast (talk) 00:32, 20 July 2020 (UTC)
Moving WM between environments
A older BlueSpice WM 1.27 is setup on (A) and would be moved to another environment (B). The new environment (B) has latest php, MySql installed.
- Planing to use MySql WorkBench to move the DB from (A) to (B). Would it matter, If the WM on the new environment (B) is not BlueSpice OR do should I setup the new environment (B) with BlueSpice WM as well. Even if the old environment (A) has a old BlueSpice WM.
- Do I have to name the new MySql DB on the new environment (B) identical to the DB on the old environment (A).
Dossod11 (talk) 20:12, 17 July 2020 (UTC)
- 1. What is a "WM"?
- 2. Why not? Malyacko (talk) 22:16, 17 July 2020 (UTC)
- assuming WM means MW
- 1) if you dont setup bluespice than no bluespice extensions will work. Otherwise it shouldnt matter.
- 2) if you update the LocalSettings.php to have the new db name, it shouldnt matter.
- Edit: i mean for average wiki. If you are using some wikifarm extensions like CentralAuth etc, it may very well matter.
- If upgrading versions remember to run update.php Bawolff (talk) 18:30, 18 July 2020 (UTC)
Wiki is not being displayed correctly "wiki appears without styles"
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.
MrMojito1 (talk) 20:33, 17 July 2020 (UTC)
- @MrMojito1 Is there a public link to see that website? If not, check your webserver logs for errors, and check your web browser's developer tools for errors. Malyacko (talk) 20:43, 17 July 2020 (UTC)
- Hi @Malyacko, yes, there is a public website to see
- Thank for already coming back at me MrMojito1 (talk) 21:20, 17 July 2020 (UTC)
- @MrMojito1 Please open the Developer Tools of your web browser and check the "network" tab. Lots of resources are HTTP 403 errors, and if you open one of these links you will see "Forbidden: You don't have permission to access this resource." Please check file/folder permissions and please check webserver logs. Malyacko (talk) 22:14, 17 July 2020 (UTC)
MrMojito1 (talk) 09:43, 18 July 2020 (UTC)
- Please include the part of error.log that is about load.php
- E.g. do grep -i load.php /var/log/apache2/error.log Bawolff (talk) 18:27, 18 July 2020 (UTC)
- @Bawolff When I do grep -i load.php /var/log/apache2/error.log nothing comes out of it. MrMojito1 (talk) 09:00, 19 July 2020 (UTC)
- Its caused by the line (or section containing the line)
RewriteCond%{QUERY_STRING} \.[^\\/:*?\x22<>|%]+(#|\?|$) [nocase]
- IE6 is really old so that rewrite rule is not really relavent anymore Bawolff (talk) 10:09, 19 July 2020 (UTC)
- @Bawolff, I cannot find that line of code. Could you point it out to me where I need to adjust the code exactly? Thanks you in advance MrMojito1 (talk) 11:43, 19 July 2020 (UTC)
- Its this block in the apache config you posted
# Protect against bug T30235 <IfModule rewrite_module> RewriteEngine On RewriteOptions inherit RewriteCond %{QUERY_STRING} \.[^\\/:*?\x22<>|%]+(#|\?|$) [nocase] RewriteRule . - [forbidden] # Fix for bug T64289 Options +FollowSymLinks </IfModule>
- Remove that entire block.
- There is also quite a bit of code in your apache config that doesnt do anything or doesnt make sense (bunch of explicit allows) Bawolff (talk) 18:48, 19 July 2020 (UTC)
- @Bawolff Thank you, I have removed that line of code. After a reboot of the server I still get errors that the side cannot be loaded.
- As @Malyacko said I still get 403 forbidden script and stylesheet. Any clue how I could resolve these? MrMojito1 (talk) 06:29, 20 July 2020 (UTC)
- I have added the following entry with the LocalSettings.php
- $wgLoadScript = "$IP/load.php";
- Result is that lot´s of 403 are gone, but still it´s not working correctly. MrMojito1 (talk) 10:40, 20 July 2020 (UTC)
- > $wgLoadScript = "$IP/load.php";
- This is very incorrect. If the 403's stopped its simply because now there is a second error that happens before the first.
- > I have removed that line of code. After a reboot of the server I still get errors that the side cannot be loaded.
- Then you probably have that same code in multiple places since the 403's happen precisely when they meet that regex. e.g.
- https://wiki.decos.nl/Hoofdpagina?foo=bar.a gives a 403 but https://wiki.decos.nl/Hoofdpagina?foo=bar.a* does not.
- The vast majority of the config files you posted are incorrect (but harmless). I would suggest starting over with a blank slate and ensuring you understand what every piece you add does. Bawolff (talk) 11:35, 20 July 2020 (UTC)
- Thank you for coming back at me. The problem at this moment is that I'm not sure which configuration file is good, and which isn't.
- This give me a 403 Forbidden, but I cannot understand where I should look to resolve this.
- Why does it says: var/www/mediawiki/load.php
- In the meanwhile I will start with a blank 000-default.conf, and slowly start building one up. MrMojito1 (talk) 11:47, 20 July 2020 (UTC)
- > Why does it says: var/www/mediawiki/load.php
- That's what the line $wgLoadScript = "$IP/load.php"; means ($IP is short for /var/www/mediawiki)
- > https://wiki.decos.nl/var/www/mediawiki/load.php?lang=nl&modules=ext.echo.styles.badge%7Cmediawiki.legacy.shared%7Cmediawiki.skinning.interface%7Cmobile.init.styles%7Coojs-ui.styles.icons-alerts%7Cskins.vector.styles%7Cskins.vector.styles.responsive&only=styles&skin=vecto
- > This give me a 403 Forbidden, but I cannot understand where I should look to resolve this.
- It matches the rule RewriteCond %{QUERY_STRING} \.[^\\/:*?\x22<>|%]+(#|\?|$) [nocase] (basically any url with a query parameter that looks like a file extension.) Check all your apache config files and .htaccess for a rewrite rule like that. Bawolff (talk) 16:03, 20 July 2020 (UTC)
Upload new version of this 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.
- Hi folks,
- Is there a trick to making "upload new version of this file" work right?
- That's what I want to do, but each time I try, it shows the image of the old picture, and says my new one (which is different) is the same (which it is not). Karbyn (talk) 03:14, 18 July 2020 (UTC)
- The "trick" might be to fix your web browser to bypass its cache if you managed to upload. If you did not then please provide clearer stops and exact full error messages without paraphrasing. Malyacko (talk) 11:24, 18 July 2020 (UTC)
- Do you have to change the name every time? That doesn't seem like it could be right.
- I want the same filename, to match the new improved picture, which is the same project, just better. Karbyn (talk) 03:15, 18 July 2020 (UTC)
- wikimedia wiki or a third party wiki.
- Its likely cache headers on images are set too aggressively in your webserver config. Bawolff (talk) 18:08, 18 July 2020 (UTC)
- Thank you all for the input, I appreciate it. I'm learning a lot. I think this was a cache issue, as you mentioned, because it eventually did update to the new version that I wanted. So I'm all set on this particular situation for now, and will do some more learning on the new terms you've mentioned. Thank you again. Karbyn (talk) 18:28, 19 July 2020 (UTC)
GDRI
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.
GDRI refused to log in to new users. Then it came up with an error on the page http://gdri.smspower.org/wiki/index.php/Special:UserLogin/signup that it reads:
You do not have permission to create this user account, for the following reason:
The action you have requested is limited to users in the group: Administrators. DucNguyen0131 (talk) 15:17, 18 July 2020 (UTC)
- we do not operate that website. Please contact the operator of that website. Bawolff (talk) 18:07, 18 July 2020 (UTC)
Link Preview Hover -- outside use possible?
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 setting up a new website and I'd love to use the feature to serve link previews. Is it available outside the MediaWiki platform? PaulStark59 (talk) 16:15, 18 July 2020 (UTC)
- the link hover thing that we specificly use - extension:Popups? No. The source code is available so you could adapt it, but it would be involve work.
- Plenty of other link hover things are available across the internet though Bawolff (talk) 18:06, 18 July 2020 (UTC)
MySQL fulltext for MediaWiki
The search table in our wiki has grown quite a bit and we were wondering whether there is any way for MediaWiki to use MySQL's fulltext option to eliminate the need for such a large table (like what phpBB 3.3 offers - https://www.phpbb.com/support/docs/en/3.0/ug/adminguide/maintenance_search/)? A Google search for this yielded nothing meaningful, but I could have missed something. Leaderboard (talk) 20:22, 18 July 2020 (UTC)
- we already use fulltext indicies on the searchindex table.
- We reccomend using extension:CirrusSearch to scale search. Bawolff (talk) 23:28, 18 July 2020 (UTC)
MediaWiki installer doesn't load
I am creating a testing wiki, but the MediaWiki installer doesn't load due to a MediaWiki error.
Error log:
PHP Fatal error: Uncaught Error: Class 'Liuggio\StatsdClient\Factory\StatsdDataFactory' not found in C:\inetpub\wwwroot\includes\libs\stats\BufferingStatsdDataFactory.php:35 Stack trace: #0 C:\inetpub\wwwroot\includes\AutoLoader.php(109): require() #1 [internal function]: AutoLoader::autoload() #2 C:\inetpub\wwwroot\includes\ServiceWiring.php(836): spl_autoload_call() #3 C:\inetpub\wwwroot\includes\libs\services\ServiceContainer.php(458): Wikimedia\Services\ServiceContainer->{closure}() #4 C:\inetpub\wwwroot\includes\libs\services\ServiceContainer.php(427): Wikimedia\Services\ServiceContainer->createService() #5 C:\inetpub\wwwroot\includes\MediaWikiServices.php(1030): Wikimedia\Services\ServiceContainer->getService() #6 C:\inetpub\wwwroot\includes\ServiceWiring.php(404): MediaWiki\MediaWikiServices->getStatsdDataFactory() #7 C:\inetpub\wwwroot\includes\libs\services\ServiceContainer.php(458): Wikimedia\Services\ServiceContainer->{closure}() #8 C:\inetpub\wwwroot\includes\libs\services\ServiceContainer.php(427): Wikimedia\Serv in C:\inetpub\wwwroot\includes\libs\stats\BufferingStatsdDataFactory.php on line 35
OS: Windows 7 (32-bit, Service Pack 1)
Server: IIS 7.5
PHP: 7.4.8
MySQL: 5.7.30
And yes, I did run composer update --no-dev
. AtomicMario (talk) 12:31, 19 July 2020 (UTC)
- sometimes this is caused by a bug in 7zip (if you used it to unpack the tar archive) try using a different tar program (like the one included in git for windows) Bawolff (talk) 22:03, 19 July 2020 (UTC)
Please help
i can't upload module my wiki please check:
https://amargitanjali.com/index.php/%E0%A6%AA%E0%A7%8D%E0%A6%B0%E0%A6%A7%E0%A6%BE%E0%A6%A8_%E0%A6%AA%E0%A6%BE%E0%A6%A4%E0%A6%BE 202.134.10.137 (talk) 15:06, 19 July 2020 (UTC)
- Please explain what "upload module" means and please provide a clear list (!) of steps (!) to reproduce a problem. Malyacko (talk) 22:15, 19 July 2020 (UTC)
- Hi Gorning1 (talk) 05:31, 29 July 2020 (UTC)
- Please don't do unhelpful or non-productive comments like "Hi". For the OP, your question does not have enough information to help you. Please explain what type of file (what's the file extension) you are trying to upload and describe the issue in detail. What error messages do you recieve? Also, your site is completely down now, so this might be the least of your worries. When you get it running again, you should read the MediaWiki documentation for configuring various parts of Mediawiki. First file uploads have to be enabled before you can upload. Second can't upload just any file type to mediawiki, there are allowed file types. You should consult the manual on how to configure file uploads, in particular the section about Configuring file types:
- Manual:Configuring file uploads TiltedCerebellum (talk) 05:56, 29 July 2020 (UTC)
Wabsite
The following discussion is closed. Please do not modify it. Subsequent comments should be made on the appropriate discussion page. No further edits should be made to this discussion.
http://en.banglapedia.org/index.php?title=Main_Page
I want to view my wiki like this, How 103.25.250.251 (talk) 07:37, 20 July 2020 (UTC)
- Hello anonoymous user,
- As far I could see, it seems to be Skin:MediaWikiBootstrap you are looking for. Wiki13 (talk) 07:41, 20 July 2020 (UTC)
mwclient.errors.APIError: ('backend-fail-store', 'Could not store file when uploading with Python script
On our wiki we've got a lot of files to upload and none of the bulk uploads really suited our needs, so we created a python script to upload all the files in a given directory. The first folder went up without issue but the second folder through this error: mwclient.errors.APIError: ('backend-fail-store', 'Could not store file "/opt/bitnami/php/tmp/php05DD8T" at "mwstore://local-backend/local-public/d/d6/B97ENG_Week_1_Day_3_Walking_in_Obedience.mp3"
Here's the Python script we used:
import os
import mwclient
wiki_user = input('Enter your wiki username: ')
wiki_pass = input("Enter your wiki password: ")
wiki = mwclient.Site('derekprince.wiki', path='/wiki/')
wiki.login(wiki_user, wiki_pass)
working_dir = input('Enter the path for import: ')
os.chdir(working_dir)
for i in os.listdir():
try:
wiki.upload(open(i, 'rb',), i)
print(f'Uploaded file {i}')
except UnicodeDecodeError:
print(f'File {i} could not be uploaded due to an illegal character')
print('Done!')
Wiki info:
MediaWiki | 1.34.2 |
PHP | 7.3.19 (fpm-fcgi) |
MySQL | 8.0.17 |
Unfortunately the wiki is private for now so I can't include a link. CatObsession (talk) 14:49, 20 July 2020 (UTC)
- check file permissions and that you are not out of disk space. Bawolff (talk) 16:08, 20 July 2020 (UTC)
What is the actual purpose of the actor table?
The following discussion is closed. Please do not modify it. Subsequent comments should be made on the appropriate discussion page. No further edits should be made to this discussion.
Hello everyone, so I have been searching through the MediaWiki documentation and while looking through the users section I came across a table called actors. I understand that an actor is a user that performs an action but I don't quite get what exactly the purpose of the table is. If anyone could explain what its intended purpose is that would be great!
Thanks, Splat TheSplatGuy (talk) 15:00, 20 July 2020 (UTC)
- its to allow normalization of anonoymous users (while still maintaining existing notion of user ids for backwards compatibility). See wikipedia article on DB normal forms.
- This comes from a desire to make certain tables smaller (primarily revision), which will hopefully save space and allow more efficient (database/system) cache/memory utilization Bawolff (talk) 16:07, 20 July 2020 (UTC)
- So lets say that I am making a wiki that has a requirement to make an account to make any edits, would I really need this table? TheSplatGuy (talk) 17:22, 20 July 2020 (UTC)
- Yes. Basically everything would break as MediaWiki could not figure out who made which edit. Taavi (talk!) 17:23, 20 July 2020 (UTC)
- Well what about the revisions table? That stores the information of which user made which edit. TheSplatGuy (talk) 17:43, 20 July 2020 (UTC)
- Yes, and the revision table does that by storing a reference to an actor. Taavi (talk!) 17:44, 20 July 2020 (UTC)
- my apologies for the confusion but couldn't you just attach each user in the users table to their revisions that they've made using their user_id and user_name? TheSplatGuy (talk) 17:47, 20 July 2020 (UTC)
- No, because there are no entries in the users table for logged-out editors. We did that with in the past with a different column for the name of logged-out editors but we're moving everything into using actors; see Actor migration for more info on that Taavi (talk!) 17:53, 20 July 2020 (UTC)
- ah okay I see it now. However I am trying to make my own kind of wiki (for a very specific reason that is complicated and would take a while to explain, also don't convince me to try to use MediaWiki I am just looking through it to see how I can use its functionality to make mine work) but the thing is is that I don't want just anyone being able to edit (especially if you don't have an account). So if on my wiki you have to be allowed access to be able to edit (and have an account) would I absolutely need an actors table? Since its not just going to be anonymous people? TheSplatGuy (talk) 17:58, 20 July 2020 (UTC)
- If your design doesn't need one then there is probably no point on having one. MediaWikis design needs it. Taavi (talk!) 18:15, 20 July 2020 (UTC)
- Oh okay I understand it all now, thank you so much for your time and explanation! It really helped! TheSplatGuy (talk) 18:16, 20 July 2020 (UTC)
- No, you would not need it if you didnt have logged out users (or "imported" users).
- If we were designing mediawiki from scratch, we probably wouldn't have both actor ids and user ids. Much of the design choices for actor table are related to schema back compat concerns Bawolff (talk) 20:24, 20 July 2020 (UTC)
Error with setting up Wiki
RESOLVED | |
User is trying a different extraction program re: 7-zip bug. |
The following discussion is closed. Please do not modify it. Subsequent comments should be made on the appropriate discussion page. No further edits should be made to this discussion.
When I go to localhost/media wiki and press 'set up the wiki', I get the following message. Anybody know how to fix this?
Warning: include(C:\xampp\htdocs\mediawiki\vendor\composer/../liuggio/statsd-php-client/src/Liuggio/StatsdClient/Factory/StatsdDataFactory.php): failed to open stream: No such file or directory in C:\xampp\htdocs\mediawiki\vendor\composer\ClassLoader.php on line 444
Warning: include(): Failed opening 'C:\xampp\htdocs\mediawiki\vendor\composer/../liuggio/statsd-php-client/src/Liuggio/StatsdClient/Factory/StatsdDataFactory.php' for inclusion (include_path='C:\xampp\htdocs\mediawiki\vendor/pear/console_getopt;C:\xampp\htdocs\mediawiki\vendor/pear/mail;C:\xampp\htdocs\mediawiki\vendor/pear/mail_mime;C:\xampp\htdocs\mediawiki\vendor/pear/net_smtp;C:\xampp\htdocs\mediawiki\vendor/pear/net_socket;C:\xampp\htdocs\mediawiki\vendor/pear/pear-core-minimal/src;C:\xampp\htdocs\mediawiki\vendor/pear/pear_exception;C:\xampp\php\PEAR') in C:\xampp\htdocs\mediawiki\vendor\composer\ClassLoader.php on line 444
Warning: include(C:\xampp\htdocs\mediawiki\vendor\composer/../liuggio/statsd-php-client/src/Liuggio/StatsdClient/Factory/StatsdDataFactory.php): failed to open stream: No such file or directory in C:\xampp\htdocs\mediawiki\vendor\composer\ClassLoader.php on line 444
Warning: include(): Failed opening 'C:\xampp\htdocs\mediawiki\vendor\composer/../liuggio/statsd-php-client/src/Liuggio/StatsdClient/Factory/StatsdDataFactory.php' for inclusion (include_path='C:\xampp\htdocs\mediawiki\vendor/pear/console_getopt;C:\xampp\htdocs\mediawiki\vendor/pear/mail;C:\xampp\htdocs\mediawiki\vendor/pear/mail_mime;C:\xampp\htdocs\mediawiki\vendor/pear/net_smtp;C:\xampp\htdocs\mediawiki\vendor/pear/net_socket;C:\xampp\htdocs\mediawiki\vendor/pear/pear-core-minimal/src;C:\xampp\htdocs\mediawiki\vendor/pear/pear_exception;C:\xampp\php\PEAR') in C:\xampp\htdocs\mediawiki\vendor\composer\ClassLoader.php on line 444
Fatal error: Uncaught Error: Class 'Liuggio\StatsdClient\Factory\StatsdDataFactory' not found in C:\xampp\htdocs\mediawiki\includes\libs\stats\BufferingStatsdDataFactory.php:35 Stack trace: #0 C:\xampp\htdocs\mediawiki\includes\AutoLoader.php(109): require() #1 [internal function]: AutoLoader::autoload('BufferingStatsd...') #2 C:\xampp\htdocs\mediawiki\includes\ServiceWiring.php(836): spl_autoload_call('BufferingStatsd...') #3 C:\xampp\htdocs\mediawiki\includes\libs\services\ServiceContainer.php(458): Wikimedia\Services\ServiceContainer->{closure}(Object(MediaWiki\MediaWikiServices)) #4 C:\xampp\htdocs\mediawiki\includes\libs\services\ServiceContainer.php(427): Wikimedia\Services\ServiceContainer->createService('StatsdDataFacto...') #5 C:\xampp\htdocs\mediawiki\includes\MediaWikiServices.php(1030): Wikimedia\Services\ServiceContainer->getService('StatsdDataFacto...') #6 C:\xampp\htdocs\mediawiki\includes\ServiceWiring.php(404): MediaWiki\MediaWikiServices->getStatsdDataFactory() #7 C:\xampp\htdocs\mediawiki\includes\libs\ in C:\xampp\htdocs\mediawiki\includes\libs\stats\BufferingStatsdDataFactory.php on line 35 RAlNCLOUDS (talk) 16:58, 20 July 2020 (UTC)
- some people have reported this is due to a bug in 7zip's tar support. Try using a different program to decompress the .tar.gz file (git for windows allegedly has one that works) Bawolff (talk) 20:26, 20 July 2020 (UTC)
- Thank you Bawolff, this is exactly the problem I had and I too used 7-Zip! Hopefully using WinZip fixes the problem. SpaceGameJunkie (talk) 16:59, 26 October 2020 (UTC)
cannot log in
The following discussion is closed. Please do not modify it. Subsequent comments should be made on the appropriate discussion page. No further edits should be made to this discussion.
cannot log in 2600:8801:3800:36E7:DDB4:D22E:EE5E:BE4 (talk) 20:49, 20 July 2020 (UTC)
- cannot help without more info (URL; error messages, etc) Malyacko (talk) 22:25, 20 July 2020 (UTC)
Add Donate link in MobileMenu?
The following discussion is closed. Please do not modify it. Subsequent comments should be made on the appropriate discussion page. No further edits should be made to this discussion.
Hi there,
I'd like to add a custom "Donate" link in my mobile "hamburger" menu just like on Mediawiki.org (aka Special:MobileMenu, see Mediawiki's Mobile Version).
How did Mediawiki.org create the custom donate link?
All existing solutions I've found appear outdated — for example, this tutorial references lines of code that are no longer present in the latest version of MinervaSkin.php for 1.34.2 (e.g. getDiscoveryTools()
).
I also attempted creating it in MediaWiki:Mobile.js:
$(window).on('load', function() { $(".menu ul:first").after('<ul><li><a href="/wiki/Donate" class="mw-ui-icon mw-ui-icon-before mw-ui-icon-minerva-watchlist"><span>Donate</span></a></li></ul>'); });
But that didn't work due to Special:MobileMenu loading asynchronously to Mobile.js. (Both $(document).ready and $(window).load usually fail with the error window.load was called after the event occurred).
Any advice?
I'm on 1.34.2 with the latest MobileFrontEnd and MinervaNeue Knomanii (talk) 02:50, 21 July 2020 (UTC)
- Its on by default (controlled by $wgMinervaDonateLink ) however you need to use the alpha version of Minerva skin to get it as it was added within the last month. Bawolff (talk) 05:14, 21 July 2020 (UTC)
- Awesome, thanks for this!
- Any recommendations if I wanted to add a few more custom menu links? Knomanii (talk) 05:27, 21 July 2020 (UTC)
- I don't think Minerva (the skin used in this mobile version) allows arbitrarily redefining the menu via hooks or the likes. So likely you will have to modify the code of the skin (or use Javascript, but like you said, because of lazy loading etc, that isn't really easy either). —TheDJ (Not WMF) (talk • contribs) 13:15, 21 July 2020 (UTC)
- MobileMenu hook can be used to add more menu items, delete or override the text/styles of the existing ones. The hook is unfortunately not documented, I will try to fill that gap, but not sure when.
- Also note that after you turn on $wgMinervaDonateLink, you have to manually create MediaWiki:sitesupport-url message before the item can appear (and then optionally create MediaWiki:sitesupport). These message are not in core MediaWiki and are not in Minerva skin. They are provided by another different extension which I am sure you're not using. It's sort of hidden this way, because actually the link is not meant to be used by general users of minerva skin. – Ammarpad (talk) 18:45, 21 July 2020 (UTC)
- Got it, thanks for all the info.
- I'll try to configure the javascript to play nice with lazy loading (perhaps by checking every 50ms if the MobileMenu element exists).
- If not, I think I have a sense of what I need to change based on how the other MobileMenu links are constructed — adding the definition in BuilderUtil.php#L55-L63 and defining the function in Definitions.php#L154-L201.
- I also found this (outdated) documentation on the MobileMenu hook from MobileFrontend, so that's another idea. Knomanii (talk) 20:48, 21 July 2020 (UTC)
- phab:T65459 and phab:T231925 recommend mediawiki.util:addPortletLink for adding menu items via javascript.
- Does anyone know how to use
addPortletLink
for MobileMenu? I can't seem to figure it out :( Knomanii (talk) 02:57, 22 July 2020 (UTC) - I wasn't able to figure out
addPortletLink
for MobileMenu, but it sounds like that solution does still have styling issues that haven't been fully resolved (see phab:T240910). - Luckily, the javascript timer worked great. I was even able to create a dropdown menu with several sub-links using slideToggle. Only drawback is I'm reusing the watchlist "star" icon, so I may customize icons later.
- Thanks for all the help!
- Here's what my MobileMenu looks like now:
- Here's the javascript I added to Mobile.js in case it helps anyone else:
- Knomanii (talk) 01:53, 23 July 2020 (UTC)
/* Add to MediaWiki:Mobile.js for custom Mobile Menu links for MW-1.34.2 with MobileFrontend and MinervaNeue Just replace span text and href to add links */ var timer = setInterval(function() { if ($('.menu ul:first').length) { console.log("mobile menu exists"); clearInterval(timer); $('.menu ul:first').after( '<ul class="level1"> \ <li> \ <a href="#" \ class="mw-ui-icon mw-ui-icon-before mw-ui-icon-minerva-watchlist"> \ <span>Dropdown Links</span> \ </a> \ </li> \ <ul class ="level2"> \ <li> \ <a href="/wiki/Link_1" \ class="mw-ui-icon mw-ui-icon-before"> \ <span>Link 1</span> \ </a> \ </li> \ <li> \ <a href="/wiki/Link_2" \ class="mw-ui-icon mw-ui-icon-before"> \ <span>Link 2</span> \ </a> \ </li> \ <li> \ <a href="/wiki/Link_3" \ class="mw-ui-icon mw-ui-icon-before"> \ <span>Link 3</span> \ </a> \ </li> \ </ul> \ </ul> \ <ul> \ <li> \ <a href="/wiki/Second_Link" \ class="mw-ui-icon mw-ui-icon-before mw-ui-icon-minerva-watchlist"> \ <span>Second Link</span> \ </a> \ </li> \ </ul>' ); $(".menu").find(".level2").hide(); // hide level2 until level1 is clicked $(".level1").click(function(event){ $(this).find(".level2").slideToggle(500); }); // if level1 is clicked, dropdown level2 } }, 100); // check every 100ms /* Todo: Customize link icons, currently they all use watchlist.svg */
Help please
RESOLVED | |
Skin users is attempting to use is discontinued and obsolete. The answer to solve their issue is in the information they posted. |
The following discussion is closed. Please do not modify it. Subsequent comments should be made on the appropriate discussion page. No further edits should be made to this discussion.
Hi I'm used Skin:MediaWikiBootstrap and wabsite view this
Whoops! The default skin for your wiki, defined in $wgDefaultSkin
as mediawikibootstrap
, is not available.
Your installation seems to include the following skins. See Manual: Skin configuration for information how to enable them and choose the default.
monobook
/ MonoBook (disabled)timeless
/ Timeless (disabled)vector
/ Vector (disabled)
- If you have just installed MediaWiki
- You probably installed from git, or directly from the source code using some other method. This is expected. Try installing some skins from mediawiki.org's skin directory, by:
- Downloading the tarball installer, which comes with several skins and extensions. You can copy and paste the
skins/
directory from it. - Downloading individual skin tarballs from mediawiki.org.
- Using Git to download skins.
- Downloading the tarball installer, which comes with several skins and extensions. You can copy and paste the
- Doing this should not interfere with your git repository if you're a MediaWiki developer.
- If you have just upgraded MediaWiki
- MediaWiki 1.24 and newer no longer automatically enables installed skins (see Manual: Skin autodiscovery). You can paste the following lines into
LocalSettings.php
to enable all installed skins:
wfLoadSkin( 'MonoBook' ); wfLoadSkin( 'Timeless' ); wfLoadSkin( 'Vector' );
- If you have just modified
LocalSettings.php
- Double-check the skin names for typos. 103.25.250.251 (talk) 05:53, 21 July 2020 (UTC)
- All the information we are going to give you is already in the page it is showing to, or the links it directs you to. The installation has not found your skin. That can be for different reasons (not accessible or maybe the skin is just too old and not compatible with current versions of MediaWiki).
- If you want support on a specific skin that is not a default skin, please contact the author of the skin in question. —TheDJ (Not WMF) (talk • contribs) 13:10, 21 July 2020 (UTC)
- Yep, everything needed to solve that issue is in what you pasted. Activate a different skin to fix it. Also the skin you're supposedly try to use is not supported any longer, I can see it was archived on its skin page: Skin:BootStrapSkin so it won't work anymore anyhow. TiltedCerebellum (talk) 23:01, 30 July 2020 (UTC)
Undo changes from a specific date-time
The following discussion is closed. Please do not modify it. Subsequent comments should be made on the appropriate discussion page. No further edits should be made to this discussion.
I am in big trouble. I have wiki that has about 13k pages. I edited the pages using some script and uploaded them using 'ImportTextfile' script. I have been doing this from long time. But few days ago, I made some bad edits and uploaded them wihtout knowing they're useless. I again made changes and uploaded which was bad. All using the above script.
Now I have to revert the changes made since July 13th 2020. I searched through mediawiki help, found rollback/revert pages. But couldn't understand what scripts can be useful for my purpose. I tried to see if I can find the IPs used for the edits, but was not sure whic table to look in. The user is 'Maintenance Script', but it has done many changes some good in last months, but some bad after July 13th. So how can I revert changes. Please suggest.
I don't have a backup to restore from. So I have option of reverting. Since these are lot of pages, doing manually would be painful.
Thanks for your help, Vikas Vikasnd (talk) 06:02, 21 July 2020 (UTC)
- If you know the pages that you imported, https://www.mediawiki.org/wiki/Manual:DeleteBatch.php is enough. Just load the pages in a txt file and then use the script. You can use tools in Linux to get a directory tree in .txt format.
- Also https://www.mediawiki.org/wiki/Extension:DeleteBatch may help. Leaderboard (talk) 07:11, 23 July 2020 (UTC)
Unable to configure new installation
RESOLVED | |
Related to the server config not MW |
The following discussion is closed. Please do not modify it. Subsequent comments should be made on the appropriate discussion page. No further edits should be made to this discussion.
I have installed MediaWiki on my Windows Server (2012 R2). I can access the initial page which displays:
MediaWiki 1.31.8
LocalSettings.php not found.
Please set up the wiki first.
When I click on the set-up link I get the following error message:
HTTP 500 error
That’s odd… the website can’t display this page
It's like it doesn't have permission to access the subfolder containing that script. Any ideas on how to resolve this please?
In the PHP Log I see the following message:
PHP Fatal error: Uncaught Error: Call to a member function getIP() on null in C:\bluespice\includes\user\User.php:2402
Stack trace:
#0 C:\bluespice\includes\session\SessionBackend.php(712): User->getName()
#1 C:\bluespice\includes\session\SessionBackend.php(197): MediaWiki\Session\SessionBackend->save()
#2 C:\bluespice\includes\session\SessionManager.php(474): MediaWiki\Session\SessionBackend->shutdown()
#3 [internal function]: MediaWiki\Session\SessionManager->shutdown()
#4 {main}
thrown in C:\bluespice\includes\user\User.php on line 2402
Jdavisuk (talk) 08:07, 21 July 2020 (UTC)
- Duplicate of:
- Project:Support desk/Flow/2017/11#h-Installation_PHP_Fatal_error-2017-11-24T14:36:00.000Z
- Please include the extra step required in the Windows installation instructions. Jdavisuk (talk) 08:42, 21 July 2020 (UTC)
- What i don't understand is.. why doesn't it now know its own temp directory by default ? Sounds like something is broken in Windows PHP... —TheDJ (Not WMF) (talk • contribs) 13:08, 21 July 2020 (UTC)
MediaWiki internal error.
MediaWiki internal error.
Original exception: [XxbU7A37ev03AnePSTkEMwAAAI8] /index.php?title=%E0%A6%AA%E0%A7%8D%E0%A6%B0%E0%A6%A7%E0%A6%BE%E0%A6%A8_%E0%A6%AA%E0%A6%BE%E0%A6%A4%E0%A6%BE&action=history Wikimedia\Rdbms\DBQueryError from line 1603 of /home/amargita/public_html/includes/libs/rdbms/database/Database.php: A database query error has occurred. Did you forget to run your application's database schema updater after upgrading?
Query: SELECT event_id,event_type,event_variant,event_agent_id,event_agent_ip,event_extra,event_page_id,event_deleted,notification_timestamp FROM `mwec_echo_event` INNER JOIN `mwec_echo_notification` ON ((notification_event=event_id)) INNER JOIN `mwec_echo_target_page` ON ((etp_event=event_id)) WHERE event_deleted = '0' AND notification_user = '5' AND notification_read_timestamp IS NULL AND etp_page = '7'
Function: EchoEventMapper::fetchUnreadByUserAndPage
Error: 1146 Table 'amargita_mw19714.mwec_echo_event' doesn't exist (localhost)
Backtrace:
#0 /home/amargita/public_html/includes/libs/rdbms/database/Database.php(1574): Wikimedia\Rdbms\Database->getQueryExceptionAndLog(string, integer, string, string)
#1 /home/amargita/public_html/includes/libs/rdbms/database/Database.php(1152): Wikimedia\Rdbms\Database->reportQueryError(string, integer, string, string, boolean)
#2 /home/amargita/public_html/includes/libs/rdbms/database/Database.php(1807): Wikimedia\Rdbms\Database->query(string, string)
#3 /home/amargita/public_html/extensions/Echo/includes/mapper/EventMapper.php(171): Wikimedia\Rdbms\Database->select(array, array, array, string, NULL, array)
#4 /home/amargita/public_html/extensions/Echo/includes/EchoHooks.php(872): EchoEventMapper->fetchUnreadByUserAndPage(User, integer)
#5 /home/amargita/public_html/extensions/Echo/includes/EchoHooks.php(949): EchoHooks::processMarkAsRead(User, WebRequest, Title)
#6 /home/amargita/public_html/includes/Hooks.php(174): EchoHooks::onPersonalUrls(array, Title, SkinBlueSky)
#7 /home/amargita/public_html/includes/Hooks.php(234): Hooks::callHook(string, array, array, NULL, string)
#8 /home/amargita/public_html/includes/skins/SkinTemplate.php(744): Hooks::runWithoutAbort(string, array)
#9 /home/amargita/public_html/includes/skins/SkinTemplate.php(446): SkinTemplate->buildPersonalUrls()
#10 /home/amargita/public_html/includes/skins/SkinTemplate.php(215): SkinTemplate->prepareQuickTemplate()
#11 /home/amargita/public_html/includes/OutputPage.php(2574): SkinTemplate->outputPage()
#12 /home/amargita/public_html/includes/MediaWiki.php(907): OutputPage->output(boolean)
#13 /home/amargita/public_html/includes/MediaWiki.php(919): MediaWiki->{closure}()
#14 /home/amargita/public_html/includes/MediaWiki.php(527): MediaWiki->main()
#15 /home/amargita/public_html/index.php(44): MediaWiki->run()
#16 {main}
Exception caught inside exception handler: [XxbU7A37ev03AnePSTkEMwAAAI8] /index.php?title=%E0%A6%AA%E0%A7%8D%E0%A6%B0%E0%A6%A7%E0%A6%BE%E0%A6%A8_%E0%A6%AA%E0%A6%BE%E0%A6%A4%E0%A6%BE&action=history Wikimedia\Rdbms\DBQueryError from line 1603 of /home/amargita/public_html/includes/libs/rdbms/database/Database.php: A database query error has occurred. Did you forget to run your application's database schema updater after upgrading?
Query: SELECT event_id,event_type,event_variant,event_agent_id,event_agent_ip,event_extra,event_page_id,event_deleted,notification_timestamp FROM `mwec_echo_event` INNER JOIN `mwec_echo_notification` ON ((notification_event=event_id)) INNER JOIN `mwec_echo_target_page` ON ((etp_event=event_id)) WHERE event_deleted = '0' AND notification_user = '5' AND notification_read_timestamp IS NULL AND etp_page = '7'
Function: EchoEventMapper::fetchUnreadByUserAndPage
Error: 1146 Table 'amargita_mw19714.mwec_echo_event' doesn't exist (localhost)
Backtrace:
#0 /home/amargita/public_html/includes/libs/rdbms/database/Database.php(1574): Wikimedia\Rdbms\Database->getQueryExceptionAndLog(string, integer, string, string)
#1 /home/amargita/public_html/includes/libs/rdbms/database/Database.php(1152): Wikimedia\Rdbms\Database->reportQueryError(string, integer, string, string, boolean)
#2 /home/amargita/public_html/includes/libs/rdbms/database/Database.php(1807): Wikimedia\Rdbms\Database->query(string, string)
#3 /home/amargita/public_html/extensions/Echo/includes/mapper/EventMapper.php(171): Wikimedia\Rdbms\Database->select(array, array, array, string, NULL, array)
#4 /home/amargita/public_html/extensions/Echo/includes/EchoHooks.php(872): EchoEventMapper->fetchUnreadByUserAndPage(User, integer)
#5 /home/amargita/public_html/extensions/Echo/includes/EchoHooks.php(949): EchoHooks::processMarkAsRead(User, WebRequest, Title)
#6 /home/amargita/public_html/includes/Hooks.php(174): EchoHooks::onPersonalUrls(array, Title, SkinBlueSky)
#7 /home/amargita/public_html/includes/Hooks.php(234): Hooks::callHook(string, array, array, NULL, string)
#8 /home/amargita/public_html/includes/skins/SkinTemplate.php(744): Hooks::runWithoutAbort(string, array)
#9 /home/amargita/public_html/includes/skins/SkinTemplate.php(446): SkinTemplate->buildPersonalUrls()
#10 /home/amargita/public_html/includes/skins/SkinTemplate.php(215): SkinTemplate->prepareQuickTemplate()
#11 /home/amargita/public_html/includes/OutputPage.php(2574): SkinTemplate->outputPage()
#12 /home/amargita/public_html/includes/exception/MWExceptionRenderer.php(134): OutputPage->output()
#13 /home/amargita/public_html/includes/exception/MWExceptionRenderer.php(53): MWExceptionRenderer::reportHTML(Wikimedia\Rdbms\DBQueryError)
#14 /home/amargita/public_html/includes/exception/MWExceptionHandler.php(121): MWExceptionRenderer::output(Wikimedia\Rdbms\DBQueryError, integer)
#15 /home/amargita/public_html/includes/exception/MWExceptionHandler.php(195): MWExceptionHandler::report(Wikimedia\Rdbms\DBQueryError)
#16 /home/amargita/public_html/includes/MediaWiki.php(558): MWExceptionHandler::handleException(Wikimedia\Rdbms\DBQueryError)
#17 /home/amargita/public_html/index.php(44): MediaWiki->run()
#18 {main}
Deprecated: Caller from MediaWiki::restInPeace ignored an error originally raised from EchoEventMapper::fetchUnreadByUserAndPage: [1146] Table 'amargita_mw19714.mwec_echo_event' doesn't exist (localhost) in /home/amargita/public_html/includes/db/MWLBFactory.php on line 374 103.25.248.241 (talk) 11:45, 21 July 2020 (UTC)
- Please answer the question that the error logging is asking you: A database query error has occurred. Did you forget to run your application's database schema updater after upgrading? —TheDJ (Not WMF) (talk • contribs) 13:05, 21 July 2020 (UTC)
- @TheDJ How do I update the database schema? 103.25.249.241 (talk) 17:55, 21 July 2020 (UTC)
- Manual:Upgrading#Run_the_update_script —TheDJ (Not WMF) (talk • contribs) 18:44, 21 July 2020 (UTC)
- This error message suppose to also mention 'extension installation' (which may require the update). I am not sure whether this was considered before. But more often it's extension installation that is causing this issue instead of 'upgrade' which does not happen everyday. – Ammarpad (talk) 18:53, 21 July 2020 (UTC)
- @Ammarpad What is the solution? 103.25.250.226 (talk) 05:42, 22 July 2020 (UTC)
- There is someone on your team to whom I can give C panel information and he will help me 103.25.250.226 (talk) 05:45, 22 July 2020 (UTC)
- No, we don't have team here to actually fix your problem beyond the help we are giving now. You need to read the instructions in the link given to you above Manual:Upgrading#Run_the_update_script and act accordingly.
- If you're still facing difficulties and need someone to really fix it for you, please have a look at Professional development and consulting and contact someone with the contact links present there. – Ammarpad (talk) 06:31, 22 July 2020 (UTC)
- Professional development and consulting It has been a month since I mailed them but I have not received any reply yet 103.25.250.236 (talk) 06:44, 22 July 2020 (UTC)
- We don't know which one is "them" in "since I mailed them". You could mail someone else from the list. Malyacko (talk) 11:55, 23 July 2020 (UTC)
Using an infobox in a page causes "Template:Template other" to appear on the page.
The following discussion is closed. Please do not modify it. Subsequent comments should be made on the appropriate discussion page. No further edits should be made to this discussion.
How should I get rid of that?
I'm using Miraheze as my host, which reports: MediaWiki 1.34.2 (40ff75d), PHP 7.3.19-1~deb10u1 (fpm-fcgi), MariaDB 10.4.13-MariaDB-1:10.4.13+maria~buster-log. Midn2 (talk) 07:50, 22 July 2020 (UTC)
- I performed this diff, and that fixed the issue: https://wikicompute.miraheze.org/w/index.php?title=Template:Infobox&diff=prev&oldid=19. Apparently, "Template:Infobox" was the culprit. Midn2 (talk) 14:33, 22 July 2020 (UTC)
Wiki's search acts funny after update
I've upgraded our wiki from 1.22 to 1.31.8 (LTS) and people have been complaining about the search acting really weird:
It won't return articles if the keyword in the search is 3 letters. For example, if I have a page called "you and Cameron" and I search for "you" or "and" I won't get any results. If I'll look for "cameron", I'll get the page. To make matters worth, if I add the word "you" somewhere in the article, it'll find it even if I delete it - it's added&deleting the word made it searchable. What's worse, and I'm only noticing it now, is that on other similar pages, even if I search "you and cameron" I won't get results. Only If I search "cameron", as if 3 lettered words disqualify the search.
I've tried using search plugins but I still get the same results which leads me to believe it's not related to the search itself.
Does anyone know what's going on? I'm breaking my head on this for a while now. Thanks ahead. Rogersjoshmac (talk) 16:38, 22 July 2020 (UTC)
- Often words like "you" are stopwords that are ignored. Also i think mariadb ignores words less tha three characters.
- I thought mdiawiki overrode those features of mariadb's search, but maybe it doesnt.
- For best searching, try extension:CirrusSearch Bawolff (talk) 18:23, 22 July 2020 (UTC)
- Thanks for the response,
- It's just an example, I don't have a page with "you" in it. Is it possible to change the three letter ignore?
- I've installed the first plugin (elastica) but then when I install CirrusSearch it breaks the website - getting error 500. If I remove the CirrcusSearch from LocalSettings.php the wiki works again. Rogersjoshmac (talk) 19:03, 22 July 2020 (UTC)
- CirrusSearch requires a whole ElasticSearch instance. It's not a matter of just installing (and configuring!) the extension Ciencia Al Poder (talk) 13:08, 24 July 2020 (UTC)
Transclude a page's ToC into another Wiki page?
Hi all,
I have a use case where the requirement is for the ToC's for all pages in a category to be transcluded onto a separate page, which is given to a client as a summary of what our company documentation covers.
Other than manually copy-pasting each page's ToC, can this be a transclusion? Tdsmart (talk) 02:53, 23 July 2020 (UTC)
- not really. You would have to write an extension.
- The api may also be able to fetch table of contents. Bawolff (talk) 15:23, 23 July 2020 (UTC)
Mouse over feature
RESOLVED | |
User needs to install the necessary extension and its other dependencies (other extensions). |
The following discussion is closed. Please do not modify it. Subsequent comments should be made on the appropriate discussion page. No further edits should be made to this discussion.
I am in the process of creating my website and have key words that I am interested in highlighting using the mouseover feature. Basically like on wikepedia, if I take my mouse and hover over certain words a text box pops up with images and verbiage. If I move the mouse away from the word the text box disappears. I would sincerely appreciate any help you can provide so I can use this feature on my site. I just don't know where to start.
Thank you in advance for your help.
Sincerely,
Michael Mdampem (talk) 03:38, 23 July 2020 (UTC)
- If your website is MediaWiki-based, you need to install Extension:Popups (and its dependencies). If your website is not using MediaWiki, you can use Wikipedia Preview to achive the same thing. (Not that the latter is still in development). – Ammarpad (talk) 06:38, 23 July 2020 (UTC)
Generating sitemap index
The following discussion is closed. Please do not modify it. Subsequent comments should be made on the appropriate discussion page. No further edits should be made to this discussion.
We have a wiki with >200000 pages in it and wanted to generate a sitemap. It appears that MediaWiki's default sitemap script (and the extensions that do this as well) don't generate sitemap indices or split sitemaps, which is needed because Google limits the number of URLs to 50000. Currently I have to split them manually after generating them, which is tedious and repetitive. Is there a better way around? Leaderboard (talk) 07:14, 23 July 2020 (UTC)
- I can see a limit of 50000 URLs logic in generateSitemap.php script, and no reason for it to fail. If you are sure it doesn't work, feel free to bugreport it Ciencia Al Poder (talk) 13:06, 24 July 2020 (UTC)
- But that script can't split or generate a sitemap with 200000 pages, can it? I don't see any logic that splits the sitemaps, which means that merely changing the limits don't work. Leaderboard (talk) 15:51, 24 July 2020 (UTC)
- I can see that, on line 345, when it reaches the url limit, it closes the previous file and opens a new file (line 352) and starts counting again, adding the new file on the index (line 355). Ciencia Al Poder (talk) 17:25, 25 July 2020 (UTC)
- I think you're right - the documentation does not mention this and that confused me. Thanks for your help! Leaderboard (talk) 22:20, 25 July 2020 (UTC)
Parallel installation of 2 separate wikimedia wikis on 1 webserver
The following discussion is closed. Please do not modify it. Subsequent comments should be made on the appropriate discussion page. No further edits should be made to this discussion.
Hi,
I've installed a wikimedia wiki on my NAS (Synology) and would like to set up a second wiki on the same server.
Is that possible?
How could I do that?
Many thanks! 80.146.191.219 (talk) 13:31, 23 July 2020 (UTC)
- It is possible to host several websites (e.g. MediaWiki wikis) on one machine but that sounds like a question for a forum of your webserver software. Malyacko (talk) 17:51, 23 July 2020 (UTC)
Date settings
Is there a way to change the first day of the week?
Thank you 190.140.176.33 (talk) 17:07, 23 July 2020 (UTC)
- Where in the MediaWiki software to see some "first day of the week" exactly? Malyacko (talk) 17:50, 23 July 2020 (UTC)
- When using Help:Magic words 190.140.176.33 (talk) 20:52, 23 July 2020 (UTC)
- no we use iso definition of a week.
- You could use #expr to add or subtract 1 as appropriate. Bawolff (talk) 00:04, 24 July 2020 (UTC)
Cannot delete an image, file history seems wrong/corrupt.
One of our wikis has an image that a user reported fails to delete with the message Error deleting file: An unknown error occurred in storage backend "local-backend"
. The file's history shows a missing entry but in the database the corresponding entry looks identical, including the timestamp, to its parent entry right below the missing one. Strangely, I have a dev version of the wiki that is a snapshot of the database from a few months ago but the dev wiki version of the page shows no change history and the image is the original from 2007, and a different image from the 2010 one showing in the live link provided. I have no idea why the dev wiki is so completely different from the live one and whether that is related to this issue.
All deletion attempts to date have failed, including after changing the image as the last revision of the page shows. It seems that the invalid entry is somehow preventing the deletion. Any recommendations/suggestions on how to correct this page so it can be updated with a new image (which is how this got discovered in the first place)? Justin C Lloyd (talk) 17:36, 23 July 2020 (UTC)
- Could you enable your debug log and post the contents of it for the deletion request? That will give us more information about what is happening. ☠MarkAHershberger☢(talk)☣ 17:52, 23 July 2020 (UTC)
- Yes but it's a bit ugly to do so. There are 4 load balanced web servers and a ton of traffic to the wiki, so I'd need to enable it across all of the servers but I need to first coordinate with our editor who is attempting the deletion (I generally just support the platform and our users do all content-related work) and have him test again, so I need to time the debugging well enough with his attempt to delete just to help keep the log sizes down and more manageable. Unless there's a better approach of which I'm unaware... Justin C Lloyd (talk) 17:56, 23 July 2020 (UTC)
- To debug it, you could take a DB dump and load it onto a development server so that you can handle the debugging there. Is that possible? ☠MarkAHershberger☢(talk)☣ 18:10, 23 July 2020 (UTC)
- Possible but will take time. The database is an AWS Aurora database and about 54 GB, and I have a process to "backport" my live wiki databases to my dev environment using snapshots. What's strange is that the current dev wiki databases (I manage 5 GW1 & GW2 wikis) are backports from late March (when I upgraded from MW 1.30 to 1.34) so, as I originally stated, I'm baffled by why the dev history is so different from live.
- However, I also have to sync my EFS (NFS) filesystems from live to dev at the same time, part of the backporting, to get the images in sync with the databases. So this takes time and I'm currently in the process of preparing for a complete redesign of the wikis' ALB architecture on Tuesday. So I can do this but probably not until later next week. Justin C Lloyd (talk) 18:17, 23 July 2020 (UTC)
- Sounds like any debugging is going to take time. I'm sympathetic, but I think that is your best shot right now -- figuring out what is happening with that request by using debug logs. ☠MarkAHershberger☢(talk)☣ 20:00, 23 July 2020 (UTC)
- Ok, thanks. My scheduling just changed so I may be able to do this next week. I appreciate the feedback. I'll report back when I've had a chance to try this debugging. Justin C Lloyd (talk) 20:03, 23 July 2020 (UTC)
- try enabling debug log only for people with a certain cookie (using $_COOKIE), so you could just enable it for the user you want. Bawolff (talk) 00:03, 24 July 2020 (UTC)
- I've backported my live wikis to dev (through mysqldump and import and nfs filesystem rsyncs) so they should now be identical. However, the page in question shows inconsistent file history pages for the image in question. See this album, the top image is the dev version and the bottom image is live, which you can directly view here. Note that the only real difference is in the current/top row of the pages' file history sections. And while the image in live looks correct (the user tried to change the image to see if that would help deleting it), the dev version shows the same image but with the image dimensions of the dev page's current image (203x718 vs 442x577). FWIW I did verify the image has the same checksum value on both the dev and life EFS filesystems.
- Further, since the dev and live databases are now identical, I'm unclear on where the incorrect current dev page information is getting that wrong entry.
- EDIT: I just noticed the mention of image metadata at the bottom of the live image page but not on dev, despite the image files being identical. Not sure why. exif metadata and debug info
- The top thumbnail on the dev page is referencing an image file that doesn't exist but I'm not clear on where in the database that file is referenced since the databases and all images are identical.
- UPDATE: Just discovered at least part of the problem. To synchronize images from live to dev, I have to do live EFS -> live backup disk -> dev backup disk -> dev EFS. However, when I did the rsync from dev disk to EFS, I didn't use the --delete flag so there are old images there that are causing the wrong latest thumbnail to be shown in the file history. Renaming the one it's using started showing a difference, so I'm running the rsync --delete now to fully update it and then I can go from there. Justin C Lloyd (talk) 11:51, 28 July 2020 (UTC)
- This seems to be the culprit, not sure what's failing here since things seem okay at the OS level.
[FileOperation] FileBackendStore::ingestFreshFileStats: Could not stat file mwstore://local-backend/local-public/archive/6/69/
[DBQuery] FileDeleteForm::doDelete [0.029s] mw-gw1-db-cluster: ROLLBACK
Justin C Lloyd (talk) 16:24, 28 July 2020 (UTC)- Ok, it does look like the corrupt entry in the file history page for this image, where there is no thumbnail and no filename, is causing the problem. The above error is really saying that it couldn't stat a file named .../6/69/ because there is a blank filename value in the two queries reported in the debug log right before the above error.
- Here's a gist with the details: https://gist.github.com/justinclloyd/bb11437a93082e9e585facdd97486f0c
- So I'm not sure how to fix the corrupt database/missing file here. Justin C Lloyd (talk) 19:53, 28 July 2020 (UTC)
- @Justin C Lloyd I'm just run into this problem as well. I've got a small number of images that cannot be deleted and result with the
Error deleting file: An unknown error occurred in storage backend "local-backend"
Checking the file history page the problematic image has no thumbnail and the Date/Time field is plain text, not a link. - The debug log matches the above report and the database query shows a blank oi_archive_name. I've confirmed there is a .gz file present in the filesystem.
- Has a fix or workaround been identified? Peculiar Investor (talk) 02:15, 3 March 2021 (UTC)
- @Peculiar Investor I'm not aware of any fix to MediaWiki itself, but ultimately my solution was to delete the bad row from the database, i.e.
delete from oldimage where oi_name = 'filename.jpg' and oi_archive_name = and oi_timestamp = '2010...'
, which allowed the page in question to be deleted. The page deletion threw an error that was safe to ignore: {}Error deleting file: A non-identical file already exists at "mwstore://local-backend/local-deleted/path/to/filename.jpg.
Hope this helps! Justin C Lloyd (talk) 11:13, 3 March 2021 (UTC)
Adding a picture to Closing Logos
I found a closing logo for Columbia Pictures short subjects I want to add to the Closing Logos page, but I'm having a hard time trying to figure out how to add it and to position the photo to the spot I think it should be placed at. When I tried, the picture was in the wrong place, so I canceled the submission.
Does anybody know how to do this correctly? I *have* read the FAQ's, but I *still can't* figure the process out. Thanks. KramdenII (talk) 17:45, 23 July 2020 (UTC)
- @KramdenII Which website (URL) is this about? Malyacko (talk) 17:52, 23 July 2020 (UTC)
Adding Google Tag Manager code snippet to MediaWiki
Hello, I added the following script to LocalSettings.php page and it does not work.
What am I doing wrong? Does the script have some wrong characters in it or is the location (LocalSettinds.php) not the right one? If the latter, where should it go instead?
<script>(function(w,d,s,l,i){w[l]=w[l]||[];w[l].push({'gtm.start':
new Date().getTime(),event:'gtm.js'});var f=d.getElementsByTagName(s)[0],
j=d.createElement(s),dl=l!='dataLayer'?'&l='+l:'';j.async=true;j.src=
'https://www.googletagmanager.com/gtm.js?id='+i+dl;f.parentNode.insertBefore(j,f);
})(window,document,'script','dataLayer','GTM-etc etc');</script>
Thank you! Valeriacasva (talk) 17:53, 23 July 2020 (UTC)
- In full down here, sorry
- $wgHooks['BeforePageDisplay'][] = function( OutputPage &$out, Skin &$skin ) {
- $code =
- <script>(function(w,d,s,l,i){w[l]=w[l]||[];w[l].push({'gtm.start':
- new Date().getTime(),event:'gtm.js'});var f=d.getElementsByTagName(s)[0],
- j=d.createElement(s),dl=l!='dataLayer'?'&l='+l:'';j.async=true;j.src=
- 'https://www.googletagmanager.com/gtm.js?id='+i+dl;f.parentNode.insertBefore(j,f);
- })(window,document,'script','dataLayer','GTM-etc etc');</script>
- $out->addHeadItem( 'Google Tag Manager', $code );
- return true;
- }; Valeriacasva (talk) 17:54, 23 July 2020 (UTC)
- i would suggest looking in browser js console for errors Bawolff (talk) 00:01, 24 July 2020 (UTC)
- ok, will try, thank you Valeriacasva (talk) 09:24, 24 July 2020 (UTC)
Win64 vs Java 23-bit issue
The following discussion is closed. Please do not modify it. Subsequent comments should be made on the appropriate discussion page. No further edits should be made to this discussion.
When double-clicking Transkribus.exe I get an error message saying "You are running a Java 32-bit version on an 64-bit OS. Please download a 64-bit Java version". However I do not find anywhere a proper instruction on how to do that. The only place I end up is a blog post with a huge amount of non-interpretable technical mumbo-jumbo. Is this error serious or is there chanses that the application will work properly any way.
I am using windows 10 Pro version 1909, Firefox 78.0.2 (64-bit) and Java 8 version 221 Dataklas (talk) 19:46, 23 July 2020 (UTC)
- @Dataklas See the side bar: You're wrong here. This place is about MediaWiki. No idea what "Transkribus" is... Malyacko (talk) 20:03, 23 July 2020 (UTC)
- Sorry about that, came here by clicking the project support button... Hopefully admin can delete this thread then. Thanks for correcting me! Dataklas (talk) 20:16, 23 July 2020 (UTC)
External links no longer open in a new tab (in MediaWiki)
The following discussion is closed. Please do not modify it. Subsequent comments should be made on the appropriate discussion page. No further edits should be made to this discussion.
External links, noted by the small arrow to the right, no longer open a new tab in Chrome, Version 84.0.4147.89 (Official Build) (64-bit).
Not really critical, but unexpected and worthy of note.
Regards
jim Jimathome (talk) 20:15, 23 July 2020 (UTC)
- they never opened in a new tab by default. There is a setting to change that $wgExternalLinkTarget but the default has always been same tab. Bawolff (talk) 00:00, 24 July 2020 (UTC)
Most linked pages
Special:MostLinkedPages doesn't follow redirects. Redirects with incoming links are listed separately from the page they redirect to. Is there a way to get a report on most linked pages which accounts for redirects? Thanks. 93.136.1.173 (talk) 00:14, 24 July 2020 (UTC)
- Same with Special:WantedPages (can't figure out how to edit my comment). 93.136.1.173 (talk) 00:17, 24 July 2020 (UTC)
- you can make your own special pages that use different criteria or manually query the db with sql. Bawolff (talk) 04:34, 24 July 2020 (UTC)
- Thanks. Do you know if anyone has made this special page already? I'm not very good at SQL. 93.136.124.3 (talk) 19:34, 24 July 2020 (UTC)
- i'm not aware of any. Sorry. Bawolff (talk) 05:14, 25 July 2020 (UTC)
Where can I download the PHP port of Parsoid for Mediawiki 1.35?
I would like to try Mediawiki 1.35 beta (or whatever) with the in development PHP Parsoid. I've been having trouble finding it looking at Mediawiki pages and with Google searches. YousufSSyed (talk) 08:29, 24 July 2020 (UTC)
- https://packagist.org/packages/wikimedia/parsoid —TheDJ (Not WMF) (talk • contribs) 09:02, 24 July 2020 (UTC)
- This has some details on configuring:
- https://www.mediawiki.org/wiki/Parsoid/PHP —TheDJ (Not WMF) (talk • contribs) 09:26, 24 July 2020 (UTC)
- Thanks, but do you know how to set it up or where I can find Instructions to install it on MW 1.35? YousufSSyed (talk) 10:14, 24 July 2020 (UTC)
- You can check out the REL1_35 branch of VisualEditor since it has the PHP parsoid embedded and enabled. ☠MarkAHershberger☢(talk)☣ 15:32, 24 July 2020 (UTC)
- Is it here or here? I tried putting them in the extensions folder but they didn't work. I really don't know what to do, and could use more specific instructions to get it setup. YousufSSyed (talk) 02:28, 25 July 2020 (UTC)
- I'm sorry, I was mistaken.
- Parsoid was added as a composer dependency to MW core back in February. That means, if you have the REL1_35 branch of MW (with all the submodules including the vendor directory), you have VE as an extension via a submodule, plus Parsoid in the vendor subdirectory. ☠MarkAHershberger☢(talk)☣ 13:36, 27 July 2020 (UTC)
Roman references
I would like to enable references appearing in Roman numerals on my wiki (<sup>[I]</sub> instead of <sup>[1]</sub>). Such are commonly applied on Wikipedia (https://en.wikipedia.org/w/index.php?title=Template:Efn&action=edit) if placed in the group "Note" (and the group name astonishingly does not precede the ref number, as it happens by default). The template via which these references are inserted does not work once copied, which indicates that it must have been achieved otherwise, e.g. through an extension.
If my speech was not precise enough to comprehend what is being meant, please let me know so I could explain it more thoroughly.
If you know the way that Wikipedia's solution was attained, please let me know so I can reach it, as well :) Mustafar29 (talk) 10:41, 24 July 2020 (UTC)
- You need to create these pages w:MediaWiki:Cite_link_label_group-upper-roman and w:MediaWiki:Cite_link_label_group-lower-roman with similar content as English Wikipedia. – Ammarpad (talk) 14:14, 24 July 2020 (UTC)
I want to stop my monthly contribution
RESOLVED | |
Not related to the MW software, which is what this help desk is for. |
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 stop my monthly contribution 2601:844:8100:B790:2CAC:DC88:BE6F:6E61 (talk) 16:05, 24 July 2020 (UTC)
- Please read: https://donate.wikimedia.org/wiki/Cancel_or_change_recurring_giving – Ammarpad (talk) 17:21, 24 July 2020 (UTC)
- [please note this forum is not an official way to contact WMF and may not be monitored by WMF staff] Bawolff (talk) 05:13, 25 July 2020 (UTC)
installation de mediawiki
(fr) Bonjour, je ne parle pas l'anglais, est-ce que je peux être mis en relation avec un francophone, s'il vous plaît ? Je voudrais obtenir un rendez-vous en ligne pour l'installation de Mediawiki, je n'y arrive pas, s'il vous plaît? 2A01:CB0C:38C:9F00:B0AE:F96D:8D02:C537 (talk) 18:00, 24 July 2020 (UTC)
- Fondamentalement: Manual:Installing MediaWiki/fr. Nous sommes des bénévoles ici - si vous avez des questions spécifiques, posez vos questions svp. Si vous avez besoin de l'aide professionelle: Professional development and consulting. Merci! Malyacko (talk) 23:42, 24 July 2020 (UTC)
- Est-ce que nous pourrions avoir un rendez-vous en lligne aujourd'hui à 17h30, s'il vous plaît ? J'ai déjà tenté d'éxécuter Manual:Installing MediaWiki/fr, mais il y a quelque part où je n'y arrive pas. 90.45.227.38 (talk) 10:07, 27 July 2020 (UTC)
- Je voulais dire 15h30 UTC ? 90.45.227.38 (talk) 10:15, 27 July 2020 (UTC)
- Bonjour, excusez-moi de vous déranger, qu'est-ce que c'est le "Si vous décompressez l'archive en tant que root, vous devrez probablement changer le propriétaire à postériori, avec
chown
, sinon les fichiers seront finalement possédés par l'utilisateur numéro 1000, ce qui n'est peut-être pas ce que vous souhaitez.", s'il vous plaît ? Merci. 2A01:CB0C:38C:9F00:B547:923D:6F31:923F (talk) 12:55, 28 July 2020 (UTC) - Excusez-moi de vous déranger, dans "Si vous n'avez pas encore téléversé les fichiers sur votre serveur web, c'est le moment de le faire.", de quels fichiers parlent-ils ? 2A01:CB0C:38C:9F00:B547:923D:6F31:923F (talk) 13:03, 28 July 2020 (UTC)
- Je ne comprends pas ce qu'il faut faire.
- "Téléversez les fichiers vers le répertoire web de votre serveur web soit en :
- copiant directement le répertoire décompressé, soit
- en utilisant un client FTP tel que Filezilla (logiciel Open Source, Windows, OSX et Linux) ou cyberduck (OSX)."(voir la liste des auteurs dans l'historique) 2A01:CB0C:38C:9F00:B547:923D:6F31:923F (talk) 13:16, 28 July 2020 (UTC)
How do I add attributes to the <html> or <head> elements?
I am running MediaWiki 1.34.2. What code do I need to add to my LocalSettings.php
to add a new attribute to the <html>
or <head>
element? For RDFa compliance I need to add a prefix
attribute so that the associated value will be recognized in the <meta>
tags I've already added via addMeta()
. Psychonaut (talk) 19:07, 24 July 2020 (UTC)
- Use OutputPageBodyAttributes hook. – Ammarpad (talk) 01:01, 25 July 2020 (UTC)
- According to the documentation, that hook is "Called when
OutputPage::headElement()
is creating thebody
tag". By the time the<body>
tag is output, isn't it too late to change the<html>
and<head>
tags? Or am I misunderstanding something? Psychonaut (talk) 08:31, 25 July 2020 (UTC) - It looks like writing your own skin and returning the attributions with getHtmlElementAttributes() is the way to handle this. ☠MarkAHershberger☢(talk)☣ 14:16, 27 July 2020 (UTC)
- Hm… that's not a very generalizable solution, is it? What if I just want to properly add, say, Open Graph metadata to my wiki? Is the only solution to fork all the skins available on my wiki for the sole purpose of adding
prefix="og: https://ogp.me/ns#"
to the<html>
tag, and then make sure that I keep all those skin forks in sync with future releases? Psychonaut (talk) 21:24, 27 July 2020 (UTC) - Extension:OpenGraphMeta adds opengraph metadata without declaring that namespace, and social media have no problem in parsing this data so far.
- Namespace declaration can be done in the parent element, or in the element itself. This means you can also declare that namespace in the elements you are going to produce instead of declaring it in the root. Of course, that's not ideal when you need to use multiple elements and repeat the same namespace several times.
- Submitting a patch or bugreport it is the way to get this fixed. Ciencia Al Poder (talk) 08:03, 28 July 2020 (UTC)
- OK, I've done so at T259015. Psychonaut (talk) 10:46, 28 July 2020 (UTC)
Login Required issue
RESOLVED | |
After setting Error Reporting and Display Errors as described in the php.imi file, the warning messages were not displayed anymore. MW with BlueSpice seems to work. The Post header says "Login Issue" which was resolved by enabling the IIS http logon |
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.
Moved a MediaWiki (BlueSpice) to another server. Moved DB with MySQLWorkBench without issues. Updated Database. I see the MediaWiki mainpage with all info/links but when I click a link, the next page says that a login is required to view the other pages.
Top right of the MediaWiki shows a logon button, where on the original server I'm automatically get logged on.
On the localsetting.php, I have commented the following out, because the entire site shows me an error if they are enabled.
$wgAuth = new Authremoteuser()
$wfLoadExtension ('Authremoteuser')
I'm getting the below error when the above lines are enabled:
Exception encountered, of type "InvalidArgumentException"
[somenumbers] /index.php?title=Main_Page InvalidArgumentException from line 98 of x:\Wiki\extensions\Authremoteuser\Authremoteuser.body.php: Invalid name
Backtrace:
#0 ..\Authremoteuser.body.php (65): AuthRemoteuser>newsessionforrequest(string, webrequest)
#1 ..\SessionManager.php(479): AuthRemoteUser>providesessioninfo(webrequest)
#2 ..\SessionManager.php(182): MediaWiki\Session\SessionManager>getsessioninfoforrequest(webrequest)
#3 ..\WebRequest.php(700):MediaWiki\Session\SessionManager>getSessionForRequest(WebRequest)
#4 ..\SessionManager(121): WebRequest>getSession()
#5 ..\Setup.php(747):MediaWiki\Session\SessionManager::getGlobalSession()
#6 ..\WebStart.php(137): require_once(string)
#7 ..\index.php(40): require(string)
#8 {main}
Not sure what the problem is... Dossod11 (talk) 19:51, 24 July 2020 (UTC)
- id guess that your version of authremoteuser is not compatible with the version of mediawiki you updated to. Check if a newer version of the extension is available. Bawolff (talk) 05:05, 25 July 2020 (UTC)
- If you have accurately copied the problematic lines from you LocalSettings.php, then you need to change them to:
$wgAuth = new Authremoteuser(); wfLoadExtension ('Authremoteuser');
- But I don't think Authremoteuser uses $wgAuth any more and that is a big part of your problem. ☠MarkAHershberger☢(talk)☣ 14:24, 27 July 2020 (UTC)
- I haven't update the mediawiki version yet. The original MediaWiki is 1.27.1 and I went and set the new MediaWiki server with the same version (1.27.1) up. Then once all is setup, I would upgrade it.
- So, I've setup the same php/ SQL version and moved the MediaWiki files (wiki folder) from the old server to the new. That would include all the extensions as well. I then use SQLWorkBench to move the DB over.
- Maybe this info here helps. The old MediaWiki was called "mediawiki", the new one is "mediawiki1".
- Update: After enabling Windows Authentication under IIS, I was able to see my logon info on top right of the MediaWiki. However, I'm getting many warning errors on the MediaWiki site, followed with the actual site information below. Some pages have 30 warning messages on top of the actual site and sometimes when I refresh the pages, they disappear an the page actual information shows up....any idea why? Dossod11 (talk) 16:45, 27 July 2020 (UTC)
- Can you post here which warnings are you seeing? Ciencia Al Poder (talk) 08:05, 28 July 2020 (UTC)
- As example:
- One site repeats these warnings in the browser and below the warnings, the page will display. When I refresh, the warning disappears.
- Warning: strcmp() expects parameter 1 to be string, array given in x:/Wiki/includes//user/user.php on line 5145
- Warning: strcmp() expects parameter 1 to be string, array given in x:/Wiki/includes//user/user.php on line 5145
- Warning:mysql::real_escape_string() expects parameter 1 to be string, array given in x:/Wiki/includes/db/DatabaseMysqli.php on line 309
- Warning:mysql::real_escape_string() expects parameter 1 to be string, array given in x:/Wiki/includes/db/DatabaseMysqli.php on line 309
- Warning: strcmp() expects parameter 1 to be string, array given in x:/Wiki/includes//user/user.php on line 5145
- Warning: strcmp() expects parameter 1 to be string, array given in x:/Wiki/includes//user/user.php on line 5145
- Warning:mysql::real_escape_string() expects parameter 1 to be string, array given in x:/Wiki/includes/db/DatabaseMysqli.php on line 309
- Warning:mysql::real_escape_string() expects parameter 1 to be string, array given in x:/Wiki/includes/db/DatabaseMysqli.php on line 309
- Warning: strcmp() expects parameter 1 to be string, array given in x:/Wiki/includes//user/user.php on line 5145
- Warning: strcmp() expects parameter 1 to be string, array given in x:/Wiki/includes//user/user.php on line 5145
- Warning:mysql::real_escape_string() expects parameter 1 to be string, array given in x:/Wiki/includes/db/DatabaseMysqli.php on line 309
- Warning:mysql::real_escape_string() expects parameter 1 to be string, array given in x:/Wiki/includes/db/DatabaseMysqli.php on line 309
- Warning: strcmp() expects parameter 1 to be string, array given in x:/Wiki/includes//user/user.php on line 5145
- Warning: strcmp() expects parameter 1 to be string, array given in x:/Wiki/includes//user/user.php on line 5145
- Warning:mysql::real_escape_string() expects parameter 1 to be string, array given in x:/Wiki/includes/db/DatabaseMysqli.php on line 309
- Warning:mysql::real_escape_string() expects parameter 1 to be string, array given in x:/Wiki/includes/db/DatabaseMysqli.php on line 309
- Warning: Cannot modify header information - headers already sent by (output started at x:/Wiki/includes/user/user.php: 5145) in x:/Wiki/includes/WebResponse.php on line 42
- Warning: Cannot modify header information - headers already sent by (output started at x:/Wiki/includes/user/user.php: 5145) in x:/Wiki/includes/WebResponse.php on line 42
- Warning: Cannot modify header information - headers already sent by (output started at x:/Wiki/includes/user/user.php: 5145) in x:/Wiki/includes/WebResponse.php on line 42 Dossod11 (talk) 17:08, 28 July 2020 (UTC)
- I went to the php.ini and set
- error_reporting = E_All ~E_DEPRECATED ~ E_STRICT
- and
- Display_errors = OFF
- looks like these are the values I have to set it too, which suppresses these warning messages. Dossod11 (talk) 19:51, 28 July 2020 (UTC)
- Looks like one of your extensions are buggy or not fully compatible with the MediaWiki version you're using. However, if hiding warnings does work for you, that should be fine. Ciencia Al Poder (talk) 20:46, 28 July 2020 (UTC)
As the org starting a particular wiki, can we embed subscribe field/buttons on our Wiki?
RESOLVED | |
Feature already exists |
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.
^ Invincible Owner (talk) 10:59, 25 July 2020 (UTC)
- @Invincible Owner They already exist. See the small blue star described at Help:Watchlist#Add pages to watchlist Malyacko (talk) 11:45, 25 July 2020 (UTC)
Game Stops advancing and just spins looking for server then i have to reload game.
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 keep having to reload game during play time. doesnt update and spins looking for host. i reload game every 5 minutes to the point i dont want to play anymore. how to fix this? 98.199.83.147 (talk) 18:01, 25 July 2020 (UTC)
- This doesn't sound like a problem related to MediaWiki. Please find out who best to contact about your problems, this support desk is only for issues related to MediaWiki software. – Ammarpad (talk) 18:13, 25 July 2020 (UTC)
my name is michelle smith and every time i bring up facebook it says shelli gustAVUS
The following discussion is closed. Please do not modify it. Subsequent comments should be made on the appropriate discussion page. No further edits should be made to this discussion.
EVERY TIME I BRING UP FACEBOOK IT SAYS SHELLI GUSTAVUS AND MY NAME IS MICHELLE SMITH 162.226.74.252 (talk) 21:31, 25 July 2020 (UTC)
- this is offtopic. We only answer questions about mediawiki Bawolff (talk) 21:32, 25 July 2020 (UTC)
Phabricator
The following discussion is closed. Please do not modify it. Subsequent comments should be made on the appropriate discussion page. No further edits should be made to this discussion.
Hi, I wanted to login to Phabricator with my MediaWiki account, and I had to confirm by e-mail. But the message was sent to my old e-mail address, to which I have no longer access, due to a technical problem, though I changer since a long time my e-mail address for all Wikimedia projects. And to confirm my Phabricator account I must confirm by e-mail and I can't change the address on Phabricator, so what can I do ? Golmore (talk) 17:12, 26 July 2020 (UTC)
- Add a message to Talk:Phabricator/Help and a Phabricator admin can delete your account so you can create a new one with your correct email address Taavi (talk!) 17:19, 26 July 2020 (UTC)
- Ok, I'll try this, thanks. Golmore (talk) 17:20, 26 July 2020 (UTC)
Advanced mode to own wiki
Hey! How do I get the advanced mode used in Commons, for example, on my own wiki? Does it require an extension, System Message, or what? I would like to have my own wiki for mobile themes such as Action Pages, a different user box, etc. Antonkarpp (talk) 20:44, 26 July 2020 (UTC)
- @Antonkarpp Please explain what an "advanced mode" is and where exactly (URL) to see an "advanced mode". Malyacko (talk) 05:31, 27 July 2020 (UTC)
- Advanced mode is an extension of the mobile version that gives more "features" to the phone visitor. Here is a link to the advanced modes discussion: Reading/Web/Advanced mobile contributions
- And this advanced mode is used in Wikimedia Commons, for example. Antonkarpp (talk) 08:25, 27 July 2020 (UTC)
- ? Antonkarpp (talk) 10:29, 27 July 2020 (UTC)
- ???? Antonkarpp (talk) 13:43, 27 July 2020 (UTC)
- You are probably looking for MobileFrontend. ☠MarkAHershberger☢(talk)☣ 14:29, 27 July 2020 (UTC)
- I already have that MobileFrontend. Take a look at these pictures, among other things, and you'll see: https://upload.wikimedia.org/wikipedia/commons/thumb/7/7b/Advanced_mode_-_1.png/220px-Advanced_mode_-_1.png
- https://upload.wikimedia.org/wikipedia/commons/thumb/b/b8/AMC_history_page.png/334px-AMC_history_page.png
- https://upload.wikimedia.org/wikipedia/commons/thumb/a/a8/AMC_user_menu.png/335px-AMC_user_menu.png
- https://upload.wikimedia.org/wikipedia/commons/thumb/d/d6/Advanced_mobile_contributions_main_menu_updates_on_Indonesian_Wikipedia.png/318px-Advanced_mobile_contributions_main_menu_updates_on_Indonesian_Wikipedia.png
- https://upload.wikimedia.org/wikipedia/commons/thumb/a/ab/Enabling_%22Advanced_mobile_contributions_mode%22_in_Arabic_Wikipedia_01.png/1010px-Enabling_%22Advanced_mobile_contributions_mode%22_in_Arabic_Wikipedia_01.png
- https://upload.wikimedia.org/wikipedia/commons/thumb/c/cc/Navigating_to_the_Talk_page_in_%22Advanced_mobile_contributions_mode%22_-_Spanish_Wikipedia.png/505px-Navigating_to_the_Talk_page_in_%22Advanced_mobile_contributions_mode%22_-_Spanish_Wikipedia.png
- https://upload.wikimedia.org/wikipedia/commons/thumb/2/2b/Navigating_to_the_History_page_in_%22Advanced_mobile_contributions_mode%22_-_Indonesian_Wikipedia.png/505px-Navigating_to_the_History_page_in_%22Advanced_mobile_contributions_mode%22_-_Indonesian_Wikipedia.png
- Those are such magical add-ons to the mobile interface, but I don’t know where to get these “advanced mode” settings on my own wiki. Antonkarpp (talk) 14:38, 27 July 2020 (UTC)
- ??? Antonkarpp (talk) 17:05, 27 July 2020 (UTC)
- Advanced Mobile Contribution is part of MobileFrontend. Ensure you have the extension installed, then navigate to Special:MobileOptions on your wiki and toggle it. – Ammarpad (talk) 17:25, 27 July 2020 (UTC)
- I have the latest MobileFrontend, and when I go to Special:MobileOptions, it only reads beta features and title Descriptions. For example, in Wikimedia Commons it reads advanced mode. I didn't get an Advanced Mobile Contributor with this. Antonkarpp (talk) 17:42, 27 July 2020 (UTC)
- Sorry, Special:MobileOptions read only beta features. Antonkarpp (talk) 17:45, 27 July 2020 (UTC)
- ??? Antonkarpp (talk) 17:52, 27 July 2020 (UTC)
- ??????? Antonkarpp (talk) 19:02, 27 July 2020 (UTC)
- Please stop spamming this thread by posting contentless comments which only include question marks.
- Beta Features Malyacko (talk) 19:31, 27 July 2020 (UTC)
- You need to set
$wgMFAdvancedMobileContributions = true;
in LocalSettings.php. – Ammarpad (talk) 05:06, 28 July 2020 (UTC)
chart syntax
Hi folks,
What words should I be using to find directions for how to make a chart? (or whatever the term is, which is the exact problem). It's just a simple thing, some rows and columns, in boxes, with some text in each one. Maybe it's a type of gallery? or maybe a type of list? It's not a spreadsheet, although I suppose it visually looks like one. I would call it a "chart" but when I search for "chart" or anything like that, I get so many other things that are not what I want, I think I must not know what wiki calls this thing.
~ tia ~ Karbyn (talk) 00:52, 27 July 2020 (UTC)
- So there are s couple different charting things. 2 major examples are extension:easytimeline and extension:graphs but there are also others. Bawolff (talk) 03:32, 27 July 2020 (UTC)
- Thank you for the help, I appreciate it. Got to start somewhere, so off I go. Karbyn (talk) 03:58, 29 July 2020 (UTC)
- THANK U VERY MUCH 220.143.15.24 (talk) 07:52, 29 July 2020 (UTC)
Special:Nearby not working
Hey! Sorry for the previous spamming, I was empty in such a hard hurry. I received in advance, really gorgeous! Now I have the following problem: I have the Near Near feature, i.e. GeoData. I have written Geodata nearby and true position LocalSettings.php together and came to my wiki nearby function. But now when the king "show nearby articles," it says, "There's a problem with Nearby. Try updating the location." What to do? Antonkarpp (talk) 19:53, 27 July 2020 (UTC)
- arby is not working.e Antonkarpp (talk) 08:30, 28 July 2020 (UTC)
- Special:Nearby not working. Antonkarpp (talk) 12:46, 28 July 2020 (UTC)
- Special:Nearby not working. Antonkarpp (talk) 14:38, 28 July 2020 (UTC)
- help me, special:nearby not working. Antonkarpp (talk) 19:01, 28 July 2020 (UTC)
- help me Antonkarpp (talk) 20:32, 28 July 2020 (UTC)
- Please STOP spamming with repeated replies to yourself, use the "..." button to edit your first comment to add text there instead. Respectfully, this is the second time you've done this now, please don't bother apologizing for it and then continue to do it, that's worse! Spamming is annoying and does not get you help faster, people will intentionally ignore your question if you continue with it.
- I suggest reading its extension page information again. Its examples work out of the box when followed, start with one of their examples to confirm the extension is working for you. If it works with one of the extension-maker's examples first, then the issue is with the way you are using it (a problem with your input). Also, if you don't provide your code example (the code you are trying to use) and your MediaWiki version, no one can help you here. Please learn how to write good questions... clear questions, always provide your MediaWiki version, and the code example you are using. The way you formed your initial question, it is impossible to help you. You gave us nothing to work with or try. And please no more spamming, then you might get some help. I am not associated with this help desk so I can say that... I'm just a MediaWiki user, so I'm being very straight-forward with you on how to write a good question, because if you have poorly written questions (or bad behavior here, spamming), you probably won't get answers.
- What you've asked is an extension question (not a MediaWiki question, and this is the help desk for the MediaWiki software itself). The extension maker is under no obligation to help you with this, and especially no one here is obligated to help you with an extension question. TiltedCerebellum (talk) 04:22, 29 July 2020 (UTC)
How to delete a page in Timeless?
The following discussion is closed. Please do not modify it. Subsequent comments should be made on the appropriate discussion page. No further edits should be made to this discussion.
Hello, I have an Hebrew 1.34.0 website with the Timeless responsive skin.
How to delete a webpage with that skin? I didn't see any "delete" or "מחיקה" link. 49.230.0.190 (talk) 04:15, 28 July 2020 (UTC)
- The 'delete' link is in the "Page tools" menu on the right left sidebar, (or it could be on the right in your case). Look for it in that area. – Ammarpad (talk) 05:04, 28 July 2020 (UTC)
- I found it, thank you. 49.230.0.190 (talk) 07:04, 28 July 2020 (UTC)
Upgrading PHP to the latest 7.2 using MediaWiki 1.31.2
Hi all,
I have about 100 updates to my Ubuntu server including updates to PHP that I could install for security reasons, however I'm curious if I should considering our MediaWiki is at version 1.31.2? 152.27.20.2 (talk) 15:35, 28 July 2020 (UTC)
How to edit the footer menu when working with default skins?
I have an Hebrew MediaWiki 1.34.0 website with the Timeless responsive skin.
I desire to edit the footer menu in various ways: Delete some default links (not with CSS/JS), add some links, etc.
How can this be done (again, not from CSS/JS) and without installing any extension?
Thanks in advance, 49.230.3.204 (talk) 16:21, 28 July 2020 (UTC)
- You can modify or add to these links with SkinAddFooterLinks hook. – Ammarpad (talk) 19:32, 28 July 2020 (UTC)
- @Ammarpad
- I have read that page; I misunderstand the following:
- Where is
extension.json
in which I should addSkinAddFooterLinks
if no extension is used for removal? - Why was it written in the docs:
- Where is
Called from: | File(s): SkinTemplate.php |
- If we can call the hook from another file, such as LocalSettings.php (which is what I originally aimed to do)? 49.230.3.204 (talk) 01:38, 29 July 2020 (UTC)
- See the answer above (as it is basically the same question, just a duplicate question.. If you don't want an extension you have to learn how to use hooks and write the code necessary for what you want to accomplish): Project:Support desk/Flow/2020/07#h-How_to_understand_the_example_at_SkinAddFooterLinks?-2020-07-29T02:07:00.000Z TiltedCerebellum (talk) 04:01, 29 July 2020 (UTC)
- @TiltedCerebellum based on your comments and some reading in Manual:Hooks I now regard "Hooks" as a pseudo-extension because while there isn't an extension with that name, our hook pseudo-extensions are declared at
extensions.json
- Furthermore, I think that hooks in MediaWiki are a "custom reaction to a given contextualized condition". 49.230.3.204 (talk) 05:08, 29 July 2020 (UTC)
- Yes, hooks are made to extend MediaWiki functionality as extensions are for, extension writers use them (as do users) to extend what is normally possible in MediaWiki out of the box. If you don't want to do something more than is possible out of the box with MediaWiki, then hooks/extending are probably not for you. Can I ask why you are adverse to extensions? Mediawiki comes bundled with many extensions that are fairly necessary to do a lot of useful things... such as parser functions to do math and calculate things to help create advanced infoboxes etc. Inputboxes, and lots of other extensions. Especially the WikiEditor extension that provides the editing toolbar when editing. Unless you enabled none of them on install, you probably already have extensions running.
- It would be nice if there was a footer page to edit like there is for the sidebar, but unfortunately there isn't. Extending either through an extension (that uses hooks) or through a simple user-written hook would be required. TiltedCerebellum (talk) 05:40, 29 July 2020 (UTC)
- @TiltedCerebellum I avoid using extensions due to a minimalist long-term approach; from my experience with working with various CMSs through the years, I have found that minimalist approaches make my Bash-written upgrade scripts much easier to maintain.
- Because, currently, I have only one extension in my website and prefer to keep it this way, I think I would customize the footer menu by a hook (I am not sure if it should be one hook for all links or one hook for each link). 49.230.3.204 (talk) 06:25, 29 July 2020 (UTC)
- @TiltedCerebellum also, I think, from a modular standpoint, that I should have asked two different questions:
- How to delete a default footer link in MediaWiki
- How to create a default footer link in MediaWiki
- I am sure we will both agree that deleting is easier than creating in that case, and to read a hook code example to do do so would make my life easier when trying to create a new link (I need to both delete and create):
- Someone might want to reply here with a code example that others and myself could learn from. 182.232.183.244 (talk) 18:00, 29 July 2020 (UTC)
- Please don't presume what I would agree on. Good luck to you with your approach though. TiltedCerebellum (talk) 21:51, 30 July 2020 (UTC)
- @TiltedCerebellum generally I don't take that approach and I take back what I said above ("I am sure we will both agree...").
- In no way have I meant o disrespect you.
- I hope to get some more help from you on this matter. 182.232.185.156 (talk) 03:39, 31 July 2020 (UTC)
- Unfortunately it isn't the job of the help desk to help users to write code... but they do supply links to people who can do that if that's what you need: Professional development and consulting TiltedCerebellum (talk) 19:06, 1 August 2020 (UTC)
Search without wikitext
Wikitext markers appear in search results, example: <nowiki>[[Novelo, Victoria]] (2014). "[[The Mexican artisan workforce, permanent protagonist of the industry]]"</nowiki>, which gives the search engine a very bad appearance. How can I remove them. Thank you 187.199.70.202 (talk) 22:46, 28 July 2020 (UTC)
- Have you tried adding a search extension to override the default behavior? TiltedCerebellum (talk) 04:04, 29 July 2020 (UTC)
Translation selects the directory above where i am
From main page en i select Help:users => Help:Editing => (Editing panel, first link) Editing pages. Where i select ml language from top large list (malayalam), choose translate. Instead of this page, Help:Editing pages/ml i get https://www.mediawiki.org/w/index.php?title=Special:Translate/page-Template:PD_Help_Page&action=translate&task=view&group=page-Template%3APD+Help+Page&language=ml&filter=%21translated , the directory above, which has mostly links into all the help sections and their entries below this directory Troublesome.
Aside, on the correct page where i translated most headings, ONE heading refuses the wiki syntax ==something==, and merely displays literally. This one sections happens to have only 3 link entries for 3 help pages. ~ Arzoper (talk) 00:15, 29 July 2020 (UTC)
How to understand the example at SkinAddFooterLinks?
At Manual:Hooks/SkinAddFooterLinks I came accross the following code example to add a chat menu-link to the footer menu of a MediaWiki (>=1.35) website:
// Add a "Chat" tab with action=chat public static function onSkinAddFooterLinks( Skin $skin, string $key, array &$footerlinks ) { if ( $key === 'places' ) { $footerlinks['test'] = '<A href=#>test link</a>'; } }
The only place I read the word "chat" is in the code comment //
.
So, how it is an example for adding a button with the term "chat"?
How to understand the example at SkinAddFooterLinks? 49.230.3.204 (talk) 02:07, 29 July 2020 (UTC)
- My understanding of hooks is that they are there to extend the functionality of the mediawiki software (to write an extension or some bit of code with to extend it). Manual:Hooks has an explanation and some examples of how hooks are called/invoked for extension writers or users who need to write functions for it. The examples provided there are just that, it doesn't mean it has all the code in it to do certain things. You'd have to write the code, create an extension using hooks, or find an extension that already uses the hooks mentioned.
- As an example, we couldn't just take the BeforePageDisplay hook and use it's example as-is, we had to write the functions required to do what we wanted. So we use the following in our LocalSettings.php to hide some utilities for non-logged in users:
- $wgHooks['BeforePageDisplay'][] = 'efCustomBeforePageDisplay';
- /* Hide Utilities for non-logged in users */
- function efAddSkinStyles(OutputPage &$out, Skin &$skin) {
- if(!$skin->getUser()->isLoggedIn()) {
- if ($skin->getSkinName() == 'pivot') {
- $out->addInlineStyle('#p-Utilities, li#n-New-Page, li#n-Special-Pages, li#n-Multi-upload { display:none; }');
- }
- } else {
- // Do nothing
- }
- return true;
- }
- $wgHooks['BeforePageDisplay'][] = 'efAddSkinStyles'; TiltedCerebellum (talk) 03:59, 29 July 2020 (UTC)
- that example is confusing since its just adding a test link not a chat link. Bawolff (talk) 09:41, 29 July 2020 (UTC)
Where is the extension.json file in MediaWiki?
I desire to add one hook (or two or more hooks - currently I am not really sure about this) to extensions.json
for the sake of changing the footer menu of my Hebrew 1.34.0 MediaWiki website (which currently cannot be edited simply as possible with the Sidebar menu).
Where is the extension.json file in MediaWiki?
I didn't find it in the root directory or in extensions subdirectory or includes subdirectory, etc. 49.230.3.204 (talk) 06:30, 29 July 2020 (UTC)
- Mediawiki core has no extension.json file since its not an extension.
- You can create your own extension for your custom hooks, or use $wgHooks version of the syntax in LocalSettings.php Bawolff (talk) 09:37, 29 July 2020 (UTC)
- Thanks, 49.230.3.204 (talk) 10:16, 29 July 2020 (UTC)
Improving response time of pages in mediawiki
Hi Team,
I have setup mediawiki locally, It takes aorund 20-25 seconds paer page.
Is there any tuning step which could speed up the response time?
I have disabled loading of images.
and only scrubinto extension is enabled Vickyatwal (talk) 08:24, 29 July 2020 (UTC)
- there are lots of things.
- First thing is install apcu php extension, and then set $wgMainCacheType to be CACHE_ACCEL in LocalSettings.php Bawolff (talk) 09:34, 29 July 2020 (UTC)
- See e.g. Performance guidelines and Wikimedia Performance Team/Page load performance etc. Malyacko (talk) 10:47, 29 July 2020 (UTC)
- Thank You @Bawolff and @Malyacko.
- I will work on these solution. 111.125.208.61 (talk) 07:40, 31 July 2020 (UTC)
Files as subpages
The following discussion is closed. Please do not modify it. Subsequent comments should be made on the appropriate discussion page. No further edits should be made to this discussion.
Is it not possible to upload a file with the name test/test
? Whenever I try to do so MediaWiki auto-renames the file to test-test, which isn't desirable. Also moving the image after does not work either, as an error comes up: "The page could not be moved, for the following reason: The target filename is invalid." Leaderboard (talk) 12:53, 29 July 2020 (UTC)
- its not possible. Bawolff (talk) 21:54, 29 July 2020 (UTC)
Problem with cirilic headers.
RESOLVED | |
Parameter
$wgFragmentMode=[ 'html5' ]; in LocalSettings.php fix the problem. |
The following discussion is closed. Please do not modify it. Subsequent comments should be made on the appropriate discussion page. No further edits should be made to this discussion.
When I create header, for example:
Тест
Mediawiki generate link to it:
https://wiki.mydomain.ru/Заглавная_страница#.D0.A2.D0.B5.D1.81.D1.82
How can I fix it to generate links like so:
https://wiki.mydomain.ru/Заглавная_страница#Тест
It is working so on wikipedia, example:
https://ru.wikipedia.org/wiki/Вики#Вандализм Ezzdzhig (talk) 16:02, 29 July 2020 (UTC)
- see manual:$wgFragmentMode Bawolff (talk) 21:54, 29 July 2020 (UTC)
- This is it! Thanks! Ezzdzhig (talk) 14:13, 30 July 2020 (UTC)
Upgrade from 1.27
MW 1.27, MySQL 5.7, PHP 5.6.30, BlueSpice
What would It take to upgrade this MW version? (example: DB backup, MySQL upgrade, then PHP upgrade,..)? or are there specific things I need to do first? Dossod11 (talk) 17:46, 29 July 2020 (UTC)
How to delete a default footer link in MediaWiki >=1.35.0?
- I have an Hebrew MediaWiki 1.34.0 website with the Timeless responsive skin.
- I desire to delete one of the default links of the default footer menu of that site, programatically, by PHP (most probably with a hook);
- I desire not to delete the link with an installed extension or via frontend (although if it is possible in PHP, I would gladly use a CSS selector to select that particular link, by PHP).
- How to delete a default footer link in MediaWiki >=1.35.0? 182.232.183.244 (talk) 17:51, 29 July 2020 (UTC)
- I seek an all-LocalSettings.php solution 182.232.183.244 (talk) 02:49, 30 July 2020 (UTC)
- @Malyacko I think that this manual chapter is totally unhelpful because it only show how to unset a "powered by" text and some frontend tricks that I already stated I personally don't want, so what did you mean by linking to it?... Or was it a mistake?... 182.232.185.156 (talk) 18:00, 30 July 2020 (UTC)
- The link that Malyacko provided has an example of how to do it via LocalSettings.php... Please read the second example and the text above it. TiltedCerebellum (talk) 22:13, 30 July 2020 (UTC)
- @TiltedCerebellum I have re read there;
- It starts by:
- ===How do I change the footer?===
- And ends by:
- Note that this will also remove other powered-by icons, e.g. also the one coming from BlueSpice.
- If you wish to change the icon images, urls, alt text, or add new icons please see
$wgFooterIcons
' documentation. - ---
- I found nothing about deleting standalone links (which aren't "powered by") in the footer, in that chapter. 182.232.185.156 (talk) 03:36, 31 July 2020 (UTC)
- And in between it has:
- "If you want to remove it completely, you can use
$wgFooterIcons
to remove it using this in your LocalSettings.php:" unset( $wgFooterIcons['poweredby'] );
- And it links to a page with this:
- Manual:$wgFooterIcons
- You can use the information provided in that link add/keep/change the ones you want. It still don't quite understand why you won't just hide it with css. TiltedCerebellum (talk) 22:55, 31 July 2020 (UTC)
- @TiltedCerebellum
- I don't do it with CSS because it creates a non elegant source and because it is potentially an SEO problem; furthermore, I don't want to habit myself of removing things via frontend. 182.232.185.156 (talk) 06:24, 1 August 2020 (UTC)
- Put this in your LocalSettings.php
$wgHooks['SkinTemplateOutputPageBeforeExec'][] = function( $sk, &$tpl ) {
# Remove existing entries
$tpl->set('about', FALSE);
$tpl->set('privacy', FALSE);
$tpl->set('disclaimer', FALSE);
return true;
};
Alvarosaurus (talk) 13:15, 16 December 2021 (UTC)- <1.37.0 only 31.48.59.165 (talk) 18:50, 21 June 2022 (UTC)
Greetings - how do I get permission to use one of your images in my blog? (To be specific, the image is a stylized map of Mesoamerica) - thank you
Greetings - how do I get permission to use one of your images in my blog? (To be specific, the image is a stylized map of Mesoamerica) - thank you 2600:1700:7CC0:51C0:952F:EB34:9B96:E6B5 (talk) 18:21, 29 July 2020 (UTC)
- Most images have instructions if you click on them.
- I can't really give more specific advice unless you include the url of the image. Bawolff (talk) 21:53, 29 July 2020 (UTC)
Translate doesn't show links, for translating
For translating Help to language ml,
From main page en i select Help:users => Help:Editing => (Editing panel, first link) Editing pages. Where i select ' translate ' in the banner (top and bottom of the pile of languages) -> (per instruction to choose target language) ml language. i am at:
The last header " Other types of editing ", in en has 3 links of Help.
But awaiting me for the translate is only the text portion WITHOUT these 3 links.
Using install as below.
MediaWiki | 1.36.0-wmf.2 (a380dc5)
01:35, 29 July 2020 |
PHP | 7.2.31-1+0~20200514.41+debian9~1.gbpe2a56b+wmf1 (fpm-fcgi) |
MariaDB | 10.1.43-MariaDB |
Arzoper (talk) 19:49, 29 July 2020 (UTC)
Translate, bullet entries under a heading don't show for translation
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.
Translating Help to ml (Malayalam)
Similar to problem reported some hours ago, at two levels down on links. I am at:
None of the bullet items within the six boxes show. Arzoper (talk) 21:06, 29 July 2020 (UTC)
- @Arzoper I go to Help:Contents/ml and the six bozes show bullet points. Cannot reproduce a problem. Malyacko (talk) 10:41, 30 July 2020 (UTC)
- Oops, sorry, checked your page. Prior reply, in EN, a bit more detailed now follows: Thanks. Yes, you are correct, the page Help:Contents/ml does show nicely, mostly en entries. Now at top where list of world languages are shown, top or bottom please click the ' Translate ' link. 1) You must choose a target language, in this case ' ml '. 2) Now what shows is NOT even the desired page, but something with " Template, PD " etc. and a single untranslated of " $1 Notice ". If " All " chosen, then other line entries, which as well are NOT of the page of concern. 3) If somehow you got to the nice page where all shows as you mention ( but for translating now ) you will see that the INSIDES of each of those 6 boxes ( reading, editing, advanced editiong, personal customization.... ) do not show up. Arzoper (talk) 15:27, 30 July 2020 (UTC)
- Pppery provided a clear answer, shown on page: Project:Support desk/Flow/2020/07#h-Translate,_bullet_entries_under_a_heading_don't_show_for_translation-2020-07-29T21:06:00.000Z . Basically just click on those bullet points themselves, because they are within a Template, and where the link points, etc, Thanks for your help. i learned a lot thru side reading. ~ Arzoper (talk) 01:09, 31 July 2020 (UTC)
- നന്നി പറയുന്നും. നിങ്ങളുി പറയുന്നതു് ശരിയാണു്. പക്ഷെ ആ താളിമ്പിൽ Help:Contents/ml , മോളിൽ കാണുന്ന ഭാഷാ പട്ടികയുടെ മീതയോ കീഴിലോ കാണുന്ന ' തർജ്ജുമ ചെയ്യു ' തൂണ്ടിക അമർത്തി നോക്കു. ൧) ഏതു ഭാഷയ്ക്കു തെരഞ്ഞു ഇടക്കണം, ൨) അപ്പോൾ ഓരു സമയം ഈ താളു തന്നെ കിട്ടുകയില്ല ! ' ടെംപ്ലേട്, പീ.ഡീ ' ഏന്നൊക്ക കാണായിരിക്കും. Arzoper (talk) 15:13, 30 July 2020 (UTC)
- There's a lot of confusion going on here.
- The "Translate" link is part of the {{PD help }} template, and says how to translate that template (the box saying, in English, "When you edit this page, you agree to release your contribution under the CC0."). That should probably be changed to something like "translate this template", but I'm not an admin so can't do so myself.
- The insides of the boxes do not show up because they automatically extract their translations from the translated title of the page they link to. That is, if you were to start translating Help:Signatures into Malayalam, the translation you chose for the title of that page would automatically appear on Help:Contents/ml as well. The same applies for all of the other currently untranslated links. * Pppery * it has begun 15:58, 30 July 2020 (UTC)
- Oops, Just read user page Pppery. So the reply in ml, now somewhat augmented follows in en:
- Thanks. this is for translation to language: Malayalam. There is much clarity derived from your answer. i better read up more on templates and PD's. Also see a need to type twice: first for the folks using ml, then to the MW team who might be any number of languages not ml. Arzoper (talk) 17:05, 30 July 2020 (UTC)
- നന്നി പറയുന്നു. കുറച്ചു മനസ്സിലാവുന്നുണ്ടു. ഞാൻ ഇ "പീ.ഡീ, ടെംപ്ലേട്" ഓക്ക അധികം വായ്ക്ക നല്ലതു്. Arzoper (talk) 16:53, 30 July 2020 (UTC)
- Thanks Pppery ! After more than 6 hours apart, feels like whole day, i READ your reply a second time. Did it. Viola ! like magic it showed up sweetly. Now i suppose i should mark it somewhere as solved. Arzoper (talk) 01:05, 31 July 2020 (UTC)
How to add a default footer link in MediaWiki >=1.35.0
Say I have a >=1.35.0 MediaWiki website with the Timeless responsive skin.
I desire to add a link to the default footer menu of that site, programatically, by PHP (most probably with a hook);
I desire to do so without an installed extension and not via frontend.
This in LocalSettings.php didn't help and causes the site to crash:
public static function onSkinAddFooterLinks( Skin $skin, string $key, array &$footerlinks ) { if ( $key === 'places' ) { $footerlinks['test'] = '<A href=#>Test Link</a>'; } }
Error:
Parse error: syntax error, unexpected 'public' (T_PUBLIC), expecting end of file in /PATH/LocalSettings.php on line 137
How to add a default footer link in MediaWiki >=1.35.0? 182.232.183.244 (talk) 03:18, 30 July 2020 (UTC)
- Sorry, I did the test on a 1.34.0 website ; so idiotic from my side; Awww I hate to upgrade 182.232.183.244 (talk) 03:27, 30 July 2020 (UTC)
- In LocalSettings.php you have to use Manual:$wgHooks and a callback. See the variable documentation for the multiple ways to do so. (BTW, this problem has no relation with upgrade, though updgrading is a good idea too.) – Ammarpad (talk) 05:33, 30 July 2020 (UTC)
- @Ammarpad because at Manual:Hooks I didn't find anything with "footer", do you have a ready LocalSettings.php hook example to share with us?
- Also, I don't know to what callback function you meant (was it SkinTemplateOutputPageBeforeExec)? 182.232.183.244 (talk) 11:02, 30 July 2020 (UTC)
TiltedCerebellum (talk) 22:41, 30 July 2020 (UTC)
- @TiltedCerebellum for hiding I have created another thread and would discuss it htere;
- Back to that thread's main topic: I don't know how to write the PHP code; if you want to share with us who you will add a link to that menu with PHP, that would be a great help, I am sure. 182.232.185.156 (talk) 03:33, 31 July 2020 (UTC)
How to change footer menu ⧼contactpage-label⧽ text AND link-address?
I have a MediaWiki 1.34.0 Hebrew website with just one extension - ContactPage
In my footer menu appears a link:
⧼contactpage-label⧽
This link has the address:
ROOT/⧼contactpage-url⧽
Which leads to a not found (404) page
INSTEAD to my actual contact page:
index.php?title=מיוחד:יצירת_קשר
How to change footer menu ⧼contactpage-label⧽
text AND link-address? 182.232.183.244 (talk) 04:42, 30 July 2020 (UTC)
- Based on Extension:ContactPage#Further_customization, you should be able to edit MediaWiki:Contactpage-url and MediaWiki:Contactpage-label. Hazard-SJ (talk) 05:17, 30 July 2020 (UTC)
- Yep there are manual pages for each extension that explain how to use them. Thanks for linking it Hazard-SJ TiltedCerebellum (talk) 22:45, 30 July 2020 (UTC)
- I have known the manual but I didn't recall it from there - furthermore, I think that the aforementioned problem (having that link) started only after I changed my skin from Vector to Timeless so I assumed it as a bug but I admit I should have checked the manual anyway ; thank you for the refreshment. 182.232.185.156 (talk) 04:55, 1 August 2020 (UTC)
Infinite loop when expanding hidden categories
RESOLVED | |
Fixed. |
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 was wondering whether anyone here knew more about hidden categories and if they would be able to help with https://phabricator.miraheze.org/T5905 and know what would cause an error like this. Reception123 (talk) 06:58, 30 July 2020 (UTC)
Error 500 mw-config/index.php [SOLVED]
The following discussion is closed. Please do not modify it. Subsequent comments should be made on the appropriate discussion page. No further edits should be made to this discussion.
Hello,
I'm trying to install mediawiki on my site,but i get a an error message when i execute the index.php file in the mw-config folder, i added two lines of code to see the error message and i get:
Warning: include(/home/u920386877/domains/pythagorasinstitute.org/public_html/w/mediawiki-1.34.2/vendor/composer/../liuggio/statsd-php-client/src/Liuggio/StatsdClient/Factory/StatsdDataFactory.php): failed to open stream: No such file or directory in /home/u920386877/domains/pythagorasinstitute.org/public_html/w/mediawiki-1.34.2/vendor/composer/ClassLoader.php on line 444
Warning: include(/home/u920386877/domains/pythagorasinstitute.org/public_html/w/mediawiki-1.34.2/vendor/composer/../liuggio/statsd-php-client/src/Liuggio/StatsdClient/Factory/StatsdDataFactory.php): failed to open stream: No such file or directory in /home/u920386877/domains/pythagorasinstitute.org/public_html/w/mediawiki-1.34.2/vendor/composer/ClassLoader.php on line 444
Warning: include(): Failed opening '/home/u920386877/domains/pythagorasinstitute.org/public_html/w/mediawiki-1.34.2/vendor/composer/../liuggio/statsd-php-client/src/Liuggio/StatsdClient/Factory/StatsdDataFactory.php' for inclusion (include_path='/home/u920386877/domains/pythagorasinstitute.org/public_html/w/mediawiki-1.34.2/vendor/pear/console_getopt:/home/u920386877/domains/pythagorasinstitute.org/public_html/w/mediawiki-1.34.2/vendor/pear/mail:/home/u920386877/domains/pythagorasinstitute.org/public_html/w/mediawiki-1.34.2/vendor/pear/mail_mime:/home/u920386877/domains/pythagorasinstitute.org/public_html/w/mediawiki-1.34.2/vendor/pear/net_smtp:/home/u920386877/domains/pythagorasinstitute.org/public_html/w/mediawiki-1.34.2/vendor/pear/net_socket:/home/u920386877/domains/pythagorasinstitute.org/public_html/w/mediawiki-1.34.2/vendor/pear/pear-core-minimal/src:/home/u920386877/domains/pythagorasinstitute.org/public_html/w/mediawiki-1.34.2/vendor/pear/pear_exception:.:/opt/alt/php72/usr/share/pear') in /home/u920386877/domains/pythagorasinstitute.org/public_html/w/mediawiki-1.34.2/vendor/composer/ClassLoader.php on line 444
Fatal error: Class 'Liuggio\StatsdClient\Factory\StatsdDataFactory' not found in /home/u920386877/domains/pythagorasinstitute.org/public_html/w/mediawiki-1.34.2/includes/libs/stats/BufferingStatsdDataFactory.php on line 35
Do you have any idea what the error could be ?
Thank you very much.
Hugo 2A01:CB1D:220:3800:3D2E:61F2:AEE5:52CD (talk) 08:23, 30 July 2020 (UTC)
- Hello! Can you please provide details about how you installed MediaWiki? Via tarball or from a GIT clone? This looks like some dependencies are missing. If you set up from a GIT clone, you might need to run
git submodule update --init --recursive
Osnard (talk) 08:35, 30 July 2020 (UTC) - Thank you for your answer,
- I installed mediawiki by uploading the files directly to my server using ftp. 2A01:CB1D:220:3800:D915:F8E1:7BFE:961 (talk) 08:54, 30 July 2020 (UTC)
- The error apparently comes from the "StatsdDataFactory.php" file, and effectively when i check my downloaded version there are two "StatsdDataFactory.php" of diffrent sizes, whereas in my server there is only one (it asks me to choose between the two), do you think that might be the problem ? 2A01:CB1D:220:3800:D915:F8E1:7BFE:961 (talk) 09:03, 30 July 2020 (UTC)
- Thank you, i just solved the problem, my php version was too old. 2A01:CB1D:220:3800:D915:F8E1:7BFE:961 (talk) 09:44, 30 July 2020 (UTC)
XNview chrashes on XCF-files
XNView crashes whenever I try to open a directory that contains XCF images (GIMP’s internal format). I suspect that the problem may be caused by a resent upgrade to my Windows pc, where I opted for the installation of a MS CR2 (raw) codec – although I cannot explain why that should have any influence on the handling of XCF-files.
rgds Jens Jørgen Jens.jorgen.lind (talk) 08:38, 30 July 2020 (UTC)
- @Jens.jorgen.lind See this very page: "Welcome to MediaWiki.org's Support desk, where you can ask MediaWiki questions!" For XNview you have to contact XNView, not MediaWiki. Malyacko (talk) 10:40, 30 July 2020 (UTC)
Translation, to get internals at Template: PD Help:Contents
- Target language: ml (Malayalam). Definitely need a Help page that describes what i need, stated here. After the post about internals, the bullet points NOT showing, i was clued in about the Confusions (malyacko) and Templates exist (pppery). Read all over the place with searches. Still unable to pull out the few bullet points across the 6 bullet points just 1 down from the Main Page in EN by left side bar click on ' User Help '. ~ Arzoper (talk) 20:41, 30 July 2020 (UTC)
- You already posted that at Project:Support desk/Flow/2020/07#h-Translate,_bullet_entries_under_a_heading_don't_show_for_translation-2020-07-29T21:06:00.000Z? Please don't create new topics without sufficient context. For future reference, please provide a list of clear steps to reproduce some problem. Thanks. Malyacko (talk) 08:42, 31 July 2020 (UTC)
- i dont understand what you are asking. Bawolff (talk) 04:13, 31 July 2020 (UTC)
Password Reset support
- Assuming this is you, I think you're looking for w:Help:Reset password. Jackmcbarn (talk) 21:58, 30 July 2020 (UTC)
47.150.192.238 (talk) 22:06, 30 July 2020 (UTC) 47.150.192.238 (talk) 22:50, 30 July 2020 (UTC)
- You can create a new account with a valid email. From what I understand it is very difficult to prove than an account is/was yours if you don't have access to it any longer. TiltedCerebellum (talk) 01:01, 31 July 2020 (UTC)
- Much respect, Thank you for the response. 47.150.192.238 (talk) 04:29, 31 July 2020 (UTC)
- You're welcome. I'm not MediaWiki staff... just a user who reads the help desk often, so I can only give you my understanding of it. From what I've understand and read to date the reason seems to be that it's not about providing ID, its about proving who was using the account prior. There was no ID associated with that account, the only thing associated with it was an email. So pretty tough to match that against anything except the email. How would they go about proving that it was you who created and previously accessed that account? Look at the IP logs? IPS can be spoofed. ISP records? --Those might be tough to get. So I think they fall back to expecting you to have access to the email the account was associated to. Aside from that it's really tough to prove who accessed the account previously. TiltedCerebellum (talk) 19:02, 1 August 2020 (UTC)
Do not show Print/export options on side bar for main page (Collection extension)
I would like to know if it is possible to remove/hide the Print/export options on the home page of my site http://jpwiki.clicklaw.bc.ca/. I have Mediawiki 1.31.6. Is this possible to do?
Thanks in advance for your help. Carolina Reid BangingRocks (talk) 21:19, 30 July 2020 (UTC)
- Yes it is possible with CSS or via a hook, but I can't view your site to provide it to you, it requires a login and password. What skin are you using?
- For example, using the web inspector in chrome, I could inspect the "Help" link on this page to see what it's li (list item) ID is:
- https://en.wikipedia.org/wiki/CatThen in the wiki's skin css (if the skin was Vector the appropriate css page would be MediaWiki:Vector.css) I would add something like the following:
<li id="n-help">
- Note that IDs in css are denoted by a "#" symbol and classes by a "." Then when I do a hard refresh on the site page (Ctrl + Shift + R) on PC, then I would see my changes reflected. TiltedCerebellum (talk) 22:01, 30 July 2020 (UTC)
li#n-help { display:none; }
- are you using collection for other things? If not id suggest just disabling extension. Bawolff (talk) 04:12, 31 July 2020 (UTC)
- Thanks @TiltedCerebellum and @Bawolff, you could see a copy of the site (without password protection) here https://wiki.clicklaw.bc.ca/index.php?title=Main_Page. I do use the collection extension for other things and I would just want to hide the print/export options from the sidebar for just the main page. Do you think that is possible? Carolina Reid BangingRocks (talk) 23:23, 6 August 2020 (UTC)
- yes. Put:
body.page-Main_Page #p-coll-print_export {display:none}
- On https://wiki.clicklaw.bc.ca/index.php?title=MediaWiki:Common.css Bawolff (talk) 00:49, 7 August 2020 (UTC)
- @Bawolff Thanks a lot! it works perfectly fine :) Carolina Reid BangingRocks (talk) 23:36, 7 August 2020 (UTC)
Show feedback from for not log-in user on home page (ArticleFeedbackv5)
I would like to know if it is possible to show the feedback form on the home page for the non-logged-in users. I have Mediawiki 1.31.6. The form is getting displayed on the home page for logged-in users, but not for the non-logged-in users.
Is it possible to make it visible?
Below you can find the link to the site.
http://jpwiki.clicklaw.bc.ca/index.php?title=Main_Page
Thanks in advance for your help. Carolina Reid BangingRocks (talk) 21:21, 30 July 2020 (UTC)
- Your site is password protected (on the server) before even entering the wiki so it is impossible to view it to see the wiki. TiltedCerebellum (talk) 18:46, 1 August 2020 (UTC)
- @TiltedCerebellum, sorry about that, you could see a copy of the original site (without password protection) here: https://wiki.clicklaw.bc.ca/index.php?title=Main_Page Carolina Reid BangingRocks (talk) 23:25, 6 August 2020 (UTC)
- Can you provide a link to where the feedback form is located or displaying elsewhere? (We can't see it because we're non-logged in, we can't view the page source because that appears to be hidden, we can't create an account because that is also removed or hidden from its normal location). Without something to go on or being able to view how the page is composed it's impossible to help, sorry. What method was used to put the form on the homepage? I can't even view that. Without view source ability at the very least, it's pretty tough to help. TiltedCerebellum (talk) 19:53, 7 August 2020 (UTC)
- @TiltedCerebellum, yes, feedback form is getting displayed in this page: https://wiki.clicklaw.bc.ca/index.php?title=Covid-19_Resources_for_British_Columbians even if you are not logged in, it is at the very bottom of the page, just above the footer. I would like the form (article feedback) to get displayed in the main page (https://wiki.clicklaw.bc.ca/index.php?title=Main_Page) even if you are not logged in. If you are logged in, it gets displayed in the main page, but not when you are not logged in.
- I am not sure which specific method is use to put the form. But the article feedback v5 (Extension:ArticleFeedbackv5) extension is the one that is "creating" this feedback form.
- Thanks in advance for your help. Carolina Reid BangingRocks (talk) 23:58, 7 August 2020 (UTC)
- I'm not sure it is possible with the extension currently as-is, the extension maker would have a better idea. Have you tried posting on the extension's talk page to ask if it's possible? It's not clear from the config options presented on the extension page. I see someone suggested in the link below that you should probably post it on the extension's talk page and consider rephrasing your question as a feature request. There was also some information related to how it might be done if it isn't supported:
- https://phabricator.wikimedia.org/T259194
- Extension talk:ArticleFeedbackv5 (talk page for the extension)
- I don't see anything related to it on the extension page's config options currently... so it may not be a current feature and may require a feature request or modification as he suggested. TiltedCerebellum (talk) 01:00, 8 August 2020 (UTC)
- Thanks @TiltedCerebellum. I did not know where the extension's talk page was so I have just posted my question.
- About how it might be done if it is not supported (customize code via
if !$wgUser->isLoggedIn()) ). I am not sure how and where to apply that piece of code in the existing code.
- Thanks again for your help. Carolina Reid BangingRocks (talk) 20:07, 11 August 2020 (UTC)
- I'm not sure, I'm sorry I'm just taking another look at the extension page again now, and I see that the extension is labeled as unstable. I personally usually try to avoid unstable extensions and look for a replacement that is stable rather than trying to find a workaround. I'm sorry I'm sure that's not helpful to where you currently are at this moment. I feel it is also important to mention that support ended for Mediawiki 1.31 in June of this year, normally the support staff (I'm just a MediaWiki user) here would encourage you to update to a currently supported version but I know that can be a bit of an undertaking. They might also link you to Professional development and consulting if you need help with customizing an extension, writing a hook to accomplish what you want, or upgrading your MediaWiki.
- I did find Extension:PageNotice in my search, seems to do footer notices either site-wide or on individual pages I think I read, I don't know enough about your existing extension to know if it has a special page that could be linked to from that... and you wouldn't want doubling of the form on some pages for some users.
- I'm sorry I can't be of more help, I found examples of hook use for LocalSettings.php to, for example, use CSS to hide items globally, I'm not super familiar with writing hooks (I cobble together simple things when needed) but targeting a single page and that way and inserting something after the content from an extension, is a bit beyond my skill level. I hope the extension maintainers or someone on the help desk with more knowledge in this area gets back to you. Strange that it would not appear on only that one page when not logged in. TiltedCerebellum (talk) 20:52, 14 August 2020 (UTC)
Translation, Whoa ! Serious problems, extension:translate
RESOLVED | |
translatewiki.net questions need to go to translatewiki.net |
The following discussion is closed. Please do not modify it. Subsequent comments should be made on the appropriate discussion page. No further edits should be made to this discussion.
Or so i imagine. For Language: Malayalam. Popped over to https://translatewiki.net/ to solve my " 2 clicks down, and can't see inside bullet points", starting from Main Page, left bar, click on UserHelp. Ok, registered, by default at " Portal/en ", and thereafter NO WAY to register as translator at say " Portal/ml ", NO WAY to submit a problem on this to Support, asked for " samples to translate " so i can be approved, and it shows me an EN text to translate ! ( to EN ? ). Etc. Was nerve racking. i mention the extension, because my readings here have me thinking the outside group is the URL listed in the subject line. ~ Arzoper (talk) 23:48, 30 July 2020 (UTC)
- we dont operate translatewiki. You need to talk to the trsnslatewiki people. Bawolff (talk) 04:10, 31 July 2020 (UTC)
I have a domain exclusively dedicated to install my MediaWiki site. Can I install It in the root?
I have a domain exclusively dedicated to install my MediaWiki site. Can I install It in the root?
Cause all the instructions that i saw about how to install it refers to always install it in some subfolder like '/w' and then access it like 'https://MyMediaWikiSite.org/w/index.php/Main_Page'.
But how i really want to access it is lke 'https://MyMediaWikiSite.org/Main_Page' instead.
So what commands i must put in the .htaccess config file in the domain root in order to have that permanent redirection ?
thanks in advance,
David DavidCou (talk) 01:30, 31 July 2020 (UTC)
- subdirectory is recommended, but yes you can put it in root if you want to, and plenty of sites do.
- See Manual:Wiki in site root directory and read the docs for your webserver rewrite function Bawolff (talk) 04:09, 31 July 2020 (UTC)
- Installing in the root folder is not a problem. However, if you want pretty URLs (those that don't have index.php on it), it's recommended that the pretty URL path has some common prefix.
- For example, wiki in root (/index.php) and pretty URL on /wiki (/wiki/PAGENAME)
- This way, you won't have problems with inaccessible titles that clash with existing files from MediaWiki (for example, /README, /HISTORY, /images, etc) Ciencia Al Poder (talk) 08:42, 31 July 2020 (UTC)
Localization, Language ml, seriously needs font-size reset to larger
Current font-size appears like 8 point. Needs to be 10..12 point. Can some Administrator do this ? See Help:Editing pages/ml how small it is. Arzoper (talk) 01:49, 31 July 2020 (UTC)
- Please provide clear and complete steps which prove that "the font-size is 8 point". "Needs to be larger" is highly subjective. We have no idea which browser on which operating system with which exact fonts you are using. Malyacko (talk) 08:38, 31 July 2020 (UTC)
- Chrome web inspector shows the computed font size at 14px. Are you sure it isn't your browser's zoom or some extension/add-on doing this? TiltedCerebellum (talk) 23:12, 31 July 2020 (UTC)
- Thank you so much. i am impressed. i was doing it on a comparison basis against all the other languages shown on the top block of so many pages. Then, when accessed, the contents stay tiny at that " 8-point ". So, i had NO reason to think the Firefox browser would jump on ml ( Malayalam ) for any reason. Of course, 4 magnifying clicks and i am at a comfortable 12..14 point. Anyway i have NO idea how you managed your SherlockH stuff, but it was kind of you. i was going to probe further, but as you know everything takes " more time ",
- i was dealing with my other report, why Help links give me a particular " Help:<something> " page. When i literally translate its title so, THAT shows at the place of the link ( as a link ) instead of just the <something>. Some prior translator had done 1 or two links, the the page done as " Help:... ", the link showing only as "<something>, and i could NOT see any wikitext for all that. i mean this is all happening just 1-clck down at " User help ", left side bar, from Main Page, then asking for the en -> ml view.
- Meanwhile the sheer complexity of stuff is slowly dawning, ever-deepening upon me ! ~ Arzoper (talk) 00:27, 1 August 2020 (UTC)
Can't get css child selector to apply style through common.css
I have a wiki page; http://reincarnationrpg.com/wiki/index.php?title=Main_Page
I'm trying to style all div elements under the 'mainpage-elements' class but I can't get their styles applied at all.
I successfully applied a style directly to 'mainpage-elements'. Using developer tools I can see that divs are indeed direct descendants of 'mainpage-elements'.
I've added the following to common.css
.mainpage-elements > div { margin-bottom: 30px; width: 25%; }
Any idea why this might not be working? I must be missing something obvious. 43.250.207.1 (talk) 01:59, 31 July 2020 (UTC)
- I don't see any elements with class 'mainpage-elements' on the page you linked to. Jackmcbarn (talk) 02:45, 31 July 2020 (UTC)
- Sorry Jack, it's there now. It was there when i made the post asking for help but after several changes and attempts at fixing it I rolled the page back to an earlier state (before i tried to move from inline styling to common.css styling) where the class was not present 43.250.207.1 (talk) 03:01, 31 July 2020 (UTC)
- The problem is
.Tweeki-container-class: container-fluid;
immediately before it in http://reincarnationrpg.com/wiki/index.php?title=MediaWiki:Common.css. That's not valid CSS, so it breaks the parse and makes your mainpage-element rule not take effect. Jackmcbarn (talk) 04:04, 31 July 2020 (UTC) - This is unrelated. Nice wiki. :)
- You might want to change the color of the TOC numbers to match your other light text, they are not currently visibleI can do some CSS fixes for you if it's available to logged in users and you want the help.
.tocnumber { color: #c1c1c1; }
- Nope user's cant edit or create talk pages, too bad and no one has any talk pages to comment on. TiltedCerebellum (talk) 23:21, 31 July 2020 (UTC)
How to prove result of my Algorithm?
The following discussion is closed. Please do not modify it. Subsequent comments should be made on the appropriate discussion page. No further edits should be made to this discussion.
Hello,
I am a programmer, and my last algorithm calculated all the possibilities for Lonpos.
In the german version of the wiki page, the amount of solutions, if no blocks are pre-defined, are (according to their wiki page) 92.755.
But my algorithm is giving out exactly 4.331.140 solutions.
I've tested it out mulitple times and also manually checked thousands of solutions if there are any duplicates.
My question is now, when editing their wiki page, how can I prove that I got all solutions?
(FYI: my programm generated HTML files for every solution to dipslay it visually on a web page)
- Menschlich Menschlichtv (talk) 07:11, 31 July 2020 (UTC)
- @Menschlichtv, Hi. This page is for questions about the MediaWiki software. For an article on a website, please discuss on that website. See https://de.wikipedia.org/wiki/Diskussion:Lonpos - thanks! Malyacko (talk) 08:34, 31 July 2020 (UTC)
Newbie
Hello
I just created an account. I have two questions.
How do I message another user for information they have to share?
I would like to change my user name and want instructions as how I do it?
Thanks Rowline (talk) 08:23, 31 July 2020 (UTC)
- Help:Talk pages#User talk pages TiltedCerebellum (talk) 23:14, 31 July 2020 (UTC)
- You can submit your username change request at this page: meta:Steward requests/Username changes Quenhitran (talk) 11:59, 1 August 2020 (UTC)
Need the configuration file for a particular wiki
I am looking for the config parameter (https://www.mediawiki.org/wiki/Manual:$wgArticlePath) that is set for this particular Mediawiki:
Can anyone please direct me where can I find LocalSettings.php or DefaultSettings.php file for this?
We are having the issue with the internal links of some wikis:
https://github.com/openzim/mwoffliner/issues/1203 Utkarshabakshi (talk) 08:34, 31 July 2020 (UTC)
- You need to contact a specific website if you want to see the internal configuration files (settings, passwords, etc) of a specific website. Malyacko (talk) 08:40, 31 July 2020 (UTC)
- Article path is displayed in Special:Version Ciencia Al Poder (talk) 14:31, 31 July 2020 (UTC)
Wikipedia-like application
Hey! How can I get / program an application that looks like a Wikipedia application? Antonkarpp (talk) 16:55, 31 July 2020 (UTC)
- What is a "Wikipedia application"? Please provide way way more information - thanks. Malyacko (talk) 19:21, 31 July 2020 (UTC)
- Wikipedia application is Wikipedia's own mobile application on Google Play or Apple Store Antonkarpp (talk) 20:00, 31 July 2020 (UTC)
- The source for them is at https://github.com/wikimedia/apps-android-wikipedia and https://github.com/wikimedia/wikipedia-ios. You can create a fork that points to your own wiki. Jackmcbarn (talk) 20:43, 31 July 2020 (UTC)
- Thanks. Antonkarpp (talk) 21:47, 31 July 2020 (UTC)
Inkscape
RESOLVED | |
Unrelated to MediaWiki |
The following discussion is closed. Please do not modify it. Subsequent comments should be made on the appropriate discussion page. No further edits should be made to this discussion.
Cannot find a download link for the latest version of Linkscape for Mac OS Catalina. 2600:6C40:4700:3CE4:39D0:905D:B30D:4748 (talk) 17:48, 31 July 2020 (UTC)
- Welcome to MediaWiki.org's Support desk, where you can ask MediaWiki questions! Inkscape is not MediaWiki so you are wrong here. Malyacko (talk) 19:21, 31 July 2020 (UTC)
pwb listpages -page:"Picocon 10" gets page "Picocon", ignoring spaces
RESOLVED | |
Rather than calling pwb.py from the command like, I wrote a wrapper script,
python ~/bin/pywikibot/core/pwb.py $* And it was breaking the spaces |
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.
If I have a page name with spaces that does not have a shorter version, listpages gets it fine. But if there is a shorter variant available, it picks that instead.
Also pwb listpages -titleregex:"Picocon 10" -start
1 Picocon 2 Picocon 1 3 Picocon 10 4 Picocon 11 5 Picocon 12
Which is only matching on the first word Vicarage (talk) 21:44, 31 July 2020 (UTC)
Article description
I have a problem, again. How do I get a description feature for my wiki that works in the MobileFrontend plugin. So I mean when you search for an article on a wiki, it also reads in a few words what the article is about. This should be available on all Wikimedia wikis, at least on Wikipedia. I already have the Description2 extension but it doesn't work. Antonkarpp (talk) 21:47, 31 July 2020 (UTC)
- hmm. I think mobilefrontend might use wikidata for its descriptions, not sure. Bawolff (talk) 05:17, 1 August 2020 (UTC)
- Okay. I have problems also Wikidata with. When I install the Wikidata extension or another Wikibase extension and add it to the LocalSettings.php file, I go to my own wiki and a message appears stating that the site could not be reached. So, I am with Wikibase made some mistakes i understand. And I can't use Composer. Antonkarpp (talk) 12:16, 1 August 2020 (UTC)