Project:Support desk/Flow/2018/05
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. |
Missing MediaWiki:EditTools at EN.WP
RESOLVED | |
I now found out why EditTools didn't show up as it should have been. |
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 now lacking EditTools at English Wikipedia while logged-in, which is supposed to be below the editing window (i.e. wikitext editor) near the "Edit summary" panel. I originally raised the issue at English Wikipedia, where supposedly the OOUI might have interfered with the tools. However, the problem still persists. One of the WMF staff who responded could not resolve the issue. I still wonder why I can see the lower tools while logged-out, while I can't while logged-in. Is there something wrong with Javascript, or what else besides OOUI possibly?
By the way, I tried it on every browser and every OS, and I still have the same issue. George Ho (talk) 07:57, 1 May 2018 (UTC)
- A common problem when people use javascript that they don't understand. If it works while logged out it means that no custom gadgets or scripts are loaded beyond the default that admins force on everyone.
- It might be a good idea to carefully read mw:Help:Locating broken scripts. It is obvious that you didn't quite follow the instructions. 197.218.92.61 (talk) 10:03, 1 May 2018 (UTC)
- I realized the problem: I must have accidentally disabled "Extension:CharInsert" at Preferences settings under "Editing" section. George Ho (talk) 16:40, 1 May 2018 (UTC)
MediaWiki Backups
I read (or rather tried to understand) Manual:Backing up a wiki and I have some questions regarding dtabase part. I use OVH without access to the command line, shell or whatever (I'm "newbie"). In my OVH plan I have access to only one database that I use for all my pages at once (Wordpress blog in a subdomain, mainpage on main domain, mediawiki on the other subdomain). I can import that whole database from OVH panel ("download backup").
Will that be enough or maybe I should do something else? ZielonaMrowka (talk) 10:16, 1 May 2018 (UTC)
- What is "OVH"? Malyacko (talk) 17:50, 1 May 2018 (UTC)
- for reference, OVH is a cloud/VPS company
- In addition to exporting the whole database, you also need to copy the images directory (if you have image uploads enabled). You also must keep a copy of your LocalSettings.php. LocalSettings.php + images + full db export should be enough.
- That said, you should test restoring from backup - then you will know for sure if you have anything. As the saying goes, if you haven't tested recovering from a backup, you don't really have a backup. Bawolff (talk) 18:42, 1 May 2018 (UTC)
My Pollen-Wiki doesn't understand "German" any more
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.
Suddenly, my Wiki cannot understand Wiki-terms in German any more. Pictures on my sites starting with "[[Datei:Picture.jpg]]" cannot be seen any more. If I change the page to "[[File:Picture.jpg]]" all is OK again. The same is true e.g. for "Vorlage-Template", "Benutzer-User", "Kategorie-Category", #WEITERLEITUNG-#REDIRECT.
What happend to my Wiki?
Thanks for any advice
Thomas 84.73.64.177 (talk) 16:01, 1 May 2018 (UTC)
- So first things first:
- Is $wgLanguageCode set to 'de' (or something similar like 'de-formal', 'de-at' or 'de-ch') in LocalSettings.php ?
- If you go to
https://mywiki.com/w/api.php?action=query&meta=siteinfo
under"lang"
does it say "de" (or some other variant of German)
- If the above checks out, it means there's something wrong with MediaWiki's i18n system
- Check to make sure that all the language files are still present (e.g.
languages/messages/MessagesDe.php, languages/i18n/de.json
) - If all that checks out, its probably something wrong with the i18n cache. Check your php error log for any errors. Do you have any custom language configuration (e.g. $wgLocalisationCacheConf or similar)? Bawolff (talk) 18:39, 1 May 2018 (UTC)
- Yes, the $wgLanguageCode in LocalSettings ist set to "de". There are no other custom language configurations in LocalSettings.
- If I try to go to https://pollen.tstebler.ch/w/api.php?action=query&meta=siteinfo I got a 404 error and the main page starts automatically.
- I newly uploaded all the language files from MediaWiki version 1.23.17 . But it didn't solve the problems.
- I used this version for several months without any problems. Just today these errors occurred. In the meantime I changed with the help of the extension "ReplaceText" all the german terms but i'm still curious, what happend with the wiki. I will check the error logs.
- Thomas 84.73.64.177 (talk) 21:08, 1 May 2018 (UTC)
- https://pollen.tstebler.ch/MediaWiki/api.php?action=query&meta=siteinfo&format=jsonfm was the url I meant (I assumed you named your mediawiki folder w instead of mediawiki)
- overriding the language files with versions from a different version of MediaWiki is probably a bad idea as they might be incompatible. You should use the language files from your version of MediaWiki.
- It does appear most i18n appears to be working, but your magic words are broken. If its a file wrong, that means its the languages/messages/MessagesDe.php file that is wrong.
- Or it could be something messed up with i18n cache perhaps. Bawolff (talk) 22:28, 1 May 2018 (UTC)
- I just deleted the whole language-directory and uploaded a new version. Now everything is OK. 84.73.64.177 (talk) 08:10, 4 May 2018 (UTC)
Receiving Warning When Using News Extension
RESOLVED | |
Ended up using {{Special:RecentChanges}} on main 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.
Hi All,
My apologies if this has been covered but I was unable to find anything that I thought was related. I'm receiving a warning when I'm using the news extension.
To install, I followed the article here: Extension:News and it appears all installed and OK. The actual news feed appears to be working, minus the warning I'm getting.
The code I'm using:
<news limit="20" nominor>
- [[{{{pagename}}}]] ([[User:{{{user}}}]], {{{timeanddate}}})
</news>
The warning I'm receiving:
Warning: Using deprecated fallback handling for comment rc_comment [Called from CommentStore::getCommentInternal in \includes\CommentStore.php at line 226] in \includes\debug\MWDebug.php on line 309
and
Warning: Cannot modify header information - headers already sent by \includes\debug\MWDebug.php on line 309 in \includes\WebResponse.php on line 46
Line 308: If ($level !== false) {
Line 309: trigger_error ( $msg, $level ); }
Could someone please outline what this is referring to and how i might go about correcting this issue? Much appreciated. Jack.f.13 (talk) 02:52, 2 May 2018 (UTC)
- First one might be similar to https://phabricator.wikimedia.org/T175161 AKlapper (WMF) (talk) 08:25, 2 May 2018 (UTC)
- Thank you for this. Ended up just showing recent changes on main page. Jack.f.13 (talk) 23:34, 2 May 2018 (UTC)
Customize toggle text adds < > around text
MediaWiki | 1.27.1 |
PHP | 5.5.9-1ubuntu4.24 (apache2handler) |
MySQL | 5.5.60-0ubuntu0.14.04.1 |
When trying to customize text on collapsible content it adds < > around the text i write.
like if I write int:gem in the data-collapsetext - I get [<gem>]
<div class="mw-collapsible" data-expandtext="{{int:VIS}}" data-collapsetext="{{int:gem}}"></div>
Any idea as to why?
The site is behind a company firewall - so can't link to it.
/Dan Danhansendk (talk) 09:38, 2 May 2018 (UTC)
- Looks like you're specifying a non-existent message. Try creating MediaWiki:Gem with the text you want, or just write the text directly. 121.219.34.186 (talk) 14:04, 3 May 2018 (UTC)
- If you want to include a template, you should be doing just {{gem}} without the int: (The int: means mediawiki namespace, and also use user language instead of content language). See help:Magic Words for details. Bawolff (talk) 19:25, 6 May 2018 (UTC)
ipsec site to site connection is authenticated but not active
hi, i have configured a site to site ipsec vpn and after configuring the ipsec.conf i have restarted the services and noticed that the connection is authenticated but not active. Can anyone help me to know what mistake i made.
Left: 125.209.65.xx
Leftsubnet:100.64.0.1/32 Ali1125 (talk) 12:51, 2 May 2018 (UTC)
Apache2 mediawiki main page without any slash
Hi! I have a new mediawiki installetion on Debian Jessie 8.9 running with apache2. I access the wiki with IP address, let's say 192.168.1.100. So in the search tab i put http://192.168.1.100/mediawiki and works fine. But i want this to be http://192.168.1.100/, but this takes me to Apache default web page.
I got all the files in /var/www/html/mediawiki.
I think that this is easy to do, but i'm a noob.
Thanks!
(and sorry for my bad english) Ttitoo96 (talk) 18:20, 2 May 2018 (UTC)
- I think what you want is to set up a "short URL" for your site. The top-level documentation for that Manual:Short_URL. The Apache-specific parts are in Manual:Short URL/Apache.
- It should be said that MediaWiki (for most of its existence anyway) was really designed to run in a subdirectory off the "root" of the server, like /mediawiki in your case, and it could turn out to be more effort than it's worth to get it working directly on the root. The Short URL documentation used to have admonishments against this, but doesn't seem to anymore.
- Your mileage may vary though. I encourage you to try it first, using the Apache instructions above.
- Failing that, you might just want to "redirect" the root of your web site to point to the wiki; it's a lot easier. One way to do that in Apache is with a rewrite rule; you will need to make sure that the mod_rewrite module is enabled (I think the command that does this is a2enmod on Debian), then add a line to your top-level Apache config or virtual host config that looks something like:
- Ernstkm (talk) 20:03, 2 May 2018 (UTC)
RewriteEngine on RewriteRule ^/$ http://your.hostname.org/mediawiki [R=301,L]
Submitting sitemap to Google
RESOLVED | |
Sitemap files - .xml and .gz |
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 using the generateSitemap.php for creating the sitemaps for my public wiki. I have also set a cron jobs to created the sitemap regularly in automation. In the cron jobs I used the command --compress=yes which compresses the sitemap files to .gz format. So, my sitemap directory contains one .xml file and several other .gz files.
My question is should I submit all the files (including the .xml file and all the .gz files) to Google during the sitemap submit process? Or should I submit only the .xml file during the process?
Thank you everyone. Biologically (talk) 09:42, 3 May 2018 (UTC)
- The one is the index. Google will automatically follow rest files if you submit index (if all files are accessible). wargo (talk) 08:42, 4 May 2018 (UTC)
- Thank you so much. So, I need to submit only the .xml file to Google, right? The .gz files will automatically get analyzed by Google after this - if I got it right. Biologically (talk) 10:45, 4 May 2018 (UTC)
Restrict a page only for Admin user
Hi there,
I'd like to restrict the access to a specific page to all users except for Admin. Normal users can see everything from the login page to the other pages except for a restrict password page. Can anyone help me?
Thanks,
Andrea 62.241.5.85 (talk) 13:30, 3 May 2018 (UTC)
- Page restriction/protection cannot be guaranteed. For the most headache-free implementation, create a restricted namespace through Extension:Lockdown. AhmadF.Cheema (talk) 18:11, 3 May 2018 (UTC)
- MediaWiki does not well support having some pages read restricted while other people (who can't read that page) can edit other pages.
- I'd highly recommend putting the password page in a separate wiki for best security (E.g. at wikimedia, they have https://office.wikimedia.org for private stuff that is separate from say https://wikitech.wikimedia.org where public stuff is) Bawolff (talk) 19:23, 6 May 2018 (UTC)
MediaWiki 1.30.0 / MediaWiki:Sidebar
I need some help zu change
helppage|help ---> will send to :Special:MyLanguage/Help:Contents and not on my local wiki helppage.
portal-url|portal ---> will displayed as: Gemeinschaftsportal, i will change that to portal.
There i need some edit to change that? Shadowslight 14:26, 3 May 2018 (UTC)
- Change "helppage|help" to "local_wiki_page|help".
- For details, see Manual:Sidebar. AhmadF.Cheema (talk) 18:14, 3 May 2018 (UTC)
want to contribute but can't
RESOLVED | |
The email address to the site admin was given as indicated by that wiki site's Main Page, so that the user can create an account on the website. The user was trying to log in and upload some files without creating an account. So, it was solved. |
The following discussion is closed. Please do not modify it. Subsequent comments should be made on the appropriate discussion page. No further edits should be made to this discussion.
Hi I wanted to upload some missing rare magazine covers to this page hosted by mediawiki
http://www.retrogamingaus.com/wiki/index.php?title=Megazone
yet when i am there it doesn't recognise my mediawiki account, I can't edit the page or even access the discussion page as it seems to all be admin only. I'm not great with wiki sites so I'm not sure what to do or how to contact those that control the page to offer my help. Blake00 (talk) 17:25, 3 May 2018 (UTC)
- Hi, thank you for contacting MediaWiki support desk.
- You correctly recognized that the website is run by MediaWiki software. The admin of the website has removed the "Create account" option. But you can create an account by sending them an email at this address - admin@retrogamingaus.com . (Read this page - http://www.retrogamingaus.com/wiki/index.php?title=Main_Page).
- Feel free to ask any questions below if still got any doubt. Biologically (talk) 17:39, 3 May 2018 (UTC)
Pages/categories didn't get categorized since update
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 updated my wiki few days ago. Since then no new created page or category gets categorized. That means, that they don't appear in category. Anyone who knows whats going wrong? Best regards 178.8.141.30 (talk) 18:07, 3 May 2018 (UTC)
- Manual:Job queue may be failing somehow. Check that page for troubleshooting Ciencia Al Poder (talk) 09:16, 4 May 2018 (UTC)
- Hm, i can't understand, how Job Queue could be broken while updating.
- Now i deleted all files and replaced them with 1.30 excet LocalSettings.php. But categories didn't work. So I installed a fresh mediawiki and it worked fine. I compared the old and fresh LocalSettings and updated the old one, but it still didn't work.
- I guess the update changed some mysql tabeles und broked them. Could it be possible? How can I fix it? 188.103.16.131 (talk) 21:34, 4 May 2018 (UTC)
- can you execute the runJobs.php script and see if it fixes categorization? If not, try a null edit on pages having that problem. Note that unless you have a service in background running jobs, or a cron, category updates may take a while depending on how have it configured and how many visits your wiki receive. Ciencia Al Poder (talk) 09:22, 5 May 2018 (UTC)
- Ah! Well done! Works fine now. :-) Habe a nice weekend, best regards 178.5.213.24 (talk) 10:40, 5 May 2018 (UTC)
Help to Understand DPL3 Custom Format Syntax
RESOLVED | |
The DPL3 format syntax is:| format=Startall,Start,End,EndallTherefor, in the following example: | format = ,\n* [[%PAGE%|%TITLE%]],,the commas are placeholders for each format-tag (Startall,Start,End,Endall). In the example given, only one tag has data: the Start tag. Start represents the beginning of each article in the list. /n puts a newline before each item. The star resolves to a bullet on each item, in the output. |
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.
DPL3 manual offers this sample syntax:
| format = ,\n* [[%PAGE%|%TITLE%]],,i've successfully used this format. I understand \n is a newline. But what's
,\n*What's the leading comma for, and the trailing star?
In the full statement, what are the two trailing commas?
The commas are not visible in the output, so i assume they are magic. Without the commas, the statement fails. Johnywhy (talk) 01:16, 4 May 2018 (UTC)
- The format syntax is:Therefor, the commas are placeholders for each format-tag. In the example given, only one tag has data: the Start tag. Start represents the beginning of each article in the list.
format=Startall,Start,End,Endall
- The star resolves to a bullet in the output. Johnywhy (talk) 01:19, 4 May 2018 (UTC)
Parameters in Links?
RESOLVED | |
To link to MyPage, making myParam a url-parameter:{{fullurl:Mypage|myParam=testValue}}Then use Extension:UrlGetParameters in the target page, to retrieve the parameter value. For nicer links, you can do: [{{fullurl:Openers|MyParam=hi}} FriendlyLink]That will display FriendlyLink on the source-page, instead of the full url. |
The following discussion is closed. Please do not modify it. Subsequent comments should be made on the appropriate discussion page. No further edits should be made to this discussion.
This didn't work for me:
[[Mypage | myParam]]
Expectation is that MyPage will display with myParam loaded.
Any way to do it?
This could help, in the target page. But how to get url params into the link?
https://mediawiki.org/wiki/Extension:UrlGetParameters Johnywhy (talk) 04:55, 4 May 2018 (UTC)
- if myparam is an URL param, use this:
- {{fullurl:Mypage|myParam}} Ciencia Al Poder (talk) 09:15, 4 May 2018 (UTC)
Ideal frequency of sitemap generation
I am using cron jobs to automate the sitemap updating process. My website is a MediaWiki based public wiki, so users participate there everyday, creating new contents (about 50 pages are edited each day).
My question is what time interval should I use in the cron jobs between two sitemap update? In other words, how many times an hour/day/week should I update the sitemap for best crawling effect.
Thank you everyone. Biologically (talk) 05:28, 4 May 2018 (UTC)
Allowing raw page indexing by Internet Archiver
RESOLVED | |
Best way to do this is to directly submit the site in Internet Archiver. |
The following discussion is closed. Please do not modify it. Subsequent comments should be made on the appropriate discussion page. No further edits should be made to this discussion.
In this page Manual:Robots.txt#Allow indexing of raw pages by the Internet Archiver it is indicated that the raw wikitext of pages can be archived with Internet Archiver.
My question is - which type of sites would want to do this? In other words, does any specific type of MediaWiki site get benefited (e.g. SEO or ranking) from using this process?
Thank you everyone. This is a really beautiful community. Biologically (talk) 05:37, 4 May 2018 (UTC)
- People would do this if they want their site saved for posterity. There's no SEO benefit of doing so.
- Realistically, even with that, its unlikely that internet archiver would archive the raw wikitext unless people were linking directly to it. Bawolff (talk) 19:21, 6 May 2018 (UTC)
- Thank you so much. I understood. Biologically (talk) 05:23, 7 May 2018 (UTC)
Disallow: / in robots.txt file
RESOLVED | |
Conditions of using Disallow: / in robots.txt 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.
If someone installed MediaWiki in the web root directory (public_html folder), and now trying to created a robots.txt file for the website; they he surely can't use "Disallow: /w/" in robots.txt file.
So, what should he put there- "Disallow: /" ? According to the guide to create robots.txt file in this section - Manual:Robots.txt#Prevent indexing of non-article pages.
Thank you. Biologically (talk) 05:58, 4 May 2018 (UTC)
- This only makes sense if you have Pretty Urls configured. For example, wiki pages are at /wiki/Page_name, and you want to prevent robots indexing /index.php?title=Page_name, you'll add Disallow: /index.php Ciencia Al Poder (talk) 09:13, 4 May 2018 (UTC)
- Thank you. Biologically (talk) 12:22, 11 May 2018 (UTC)
Why disallow all the different spelling of Special
RESOLVED | |
Both the reason and scope of using different language variations of Namespaces was explained in the answers. |
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 found this part in the robots.txt file of both mediawiki.org and Wikipedia.
Disallow: /wiki/Special:
Disallow: /wiki/Spezial:
Disallow: /wiki/Spesial:
Disallow: /wiki/Special%3A
Disallow: /wiki/Spezial%3A
Disallow: /wiki/Spesial%3A
Why is this necessary to block all these different spellings? Biologically (talk) 06:23, 4 May 2018 (UTC)
- It will create multiple URLs of the same pages which is bad for search engines. wargo (talk) 08:54, 4 May 2018 (UTC)
- I couldn't understand. Those sites are disallowing or blocking the indexing of these pages, so how would it create multiple URLs? Biologically (talk) 10:48, 4 May 2018 (UTC)
- Special pages does not need to be indexed because they are only tools, not actual content. wargo (talk) 20:29, 4 May 2018 (UTC)
- Because different languages spell Special differently (For example, on de.wikipedia.org you have https://de.wikipedia.org/wiki/Spezial:Leerseite )
- Blocking them isn't neccessary, sometimes though web spiders crawling through things like special:Search can slow down the site, but most special pages also contain robot meta tags to stop indexing too. Bawolff (talk) 19:19, 6 May 2018 (UTC)
- This answer is perfect. I understood.
- I blocked the special pages for the reason mentioned by you using -
- User-agent: *
- Disallow: /wiki/Special:
- So, according to your explanation I should probably block those other variations too, as my wiki is also multilingual and global.
- Should I do this same thing for other "words" blocked in the robots.txt file too - e.g. "/wiki/Template:" (here the word template)? Biologically (talk) 05:22, 7 May 2018 (UTC)
- You only need to block the versions that correspond to the content language ($wgLanguageCode) of your wiki.
- So even if your wiki is multilingual, if your $wgLanguageCode is set to 'en' (like https://meta.wikimedia.org) then you only need to block the english variant.
- For other namespaces, same thing basically applies.
- You may also want to check out $wgNamespaceRobotPolicies and $wgExemptFromUserRobotsControl configs. Bawolff (talk) 13:31, 7 May 2018 (UTC)
- Now I completely understood. Thank you so much. Biologically (talk) 13:53, 7 May 2018 (UTC)
Automatic creation of alt text for images
RESOLVED | |
It have to be added manually. |
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.
As described in the page - Help:Images#Syntax - the alt text is " created automatically from the caption, stripped of formatting."
I have some really lengthy captions for some of the images, so will they produce that large alt texts is no alt text is manually created? Or does the program follow some kind of algorithm to select the alt text form the image? Biologically (talk) 07:43, 4 May 2018 (UTC)
- No. If you want different alt text you have to specify it. Bawolff (talk) 19:17, 6 May 2018 (UTC)
- Got it. Thank you so much for confirming. Biologically (talk) 05:15, 7 May 2018 (UTC)
How to override $wgExternalLinkTarget = '_blank' ?
RESOLVED | |
Solution is to use html "<a>" tag with target="_self".
Since the <a> tag is not normally supported, you must install Extension:HTML Tags. Then, for safety, restrict allowed HTML tags to the <a> tag, and restrict attributes to href and target, by placing the following in LocalSettings.php$wgHTMLTagsAttributes['a'] = array( 'href', 'target' );To create an external link, use something like <htmltag tagname="a" href="www.ExternalSite.com" target="_self">Test</htmltag>Note, with internal links, it's not even necessary to set target to _self (since internal links are not affected by wgExternalLinkTarget). So 'target' isn't needed for internal links. An internal link would look something like: <htmltag tagname="a" href="/index.php?title=MyInternalWikiPage&MyUrlParameter=Purple">Test</htmltag> |
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 $wgExternalLinkTarget = '_blank'; in my localsettings.php, is there a way to override that in a link?
That is, i want the link to open in same window.
Prefer square-bracket syntax.
i tried the following, but i guess MediaWiki doesn't understand the <a> tag:<a href="https://www.w3schools.com" target="_self">Visit W3Schools</a>Johnywhy (talk) 12:50, 4 May 2018 (UTC)
- You can use Extension:HTML Tags to make MW support <a> tag. 星耀晨曦 (talk) 13:58, 4 May 2018 (UTC)
- > You can use Extension:HTML Tags to make MW support <a> tag.
- Please note the potential security impact of that. It will basically give anyone with edit access extremely wide permissions. Know what you are doing. —TheDJ (Not WMF) (talk • contribs) 14:45, 4 May 2018 (UTC)
- thx. i am hesitant to allow all html tags.
- is there any way to override wgExternalLinkTarget with square-bracket syntax?
- thx Johnywhy (talk) 15:22, 4 May 2018 (UTC)
- I found Extension:LinkAttributes, it extends the link syntax. 星耀晨曦 (talk) 15:30, 4 May 2018 (UTC)
- great suggestion! but extension page saysDoesn't seem to support target. Johnywhy (talk) 15:45, 4 May 2018 (UTC)
Allowed properties are: rel, rev, charset, type, hreflang and itemprop.
- I watched its source code, it support many properties. 星耀晨曦 (talk) 15:55, 4 May 2018 (UTC)
- Great find! But not working for me.
- when i try to save this:i get this:
[http://www.twitter.com Twitter|target=_self]
[WuyUHc4dk4cRU9a4Ioa2DQAAAI8] /index.php?title=Draft:ParamTester&action=submit Error from line 26 of /home/gunsywtx/public_html/extensions/LinkAttributes/LinkAttributes.body.php: Undefined class constant 'attrsAllowed' Backtrace: #0 /home/gunsywtx/public_html/extensions/LinkAttributes/LinkAttributes.body.php(44): LinkAttributes::doExtractAttributes(string, array) #1 /home/gunsywtx/public_html/includes/Hooks.php(177): LinkAttributes::ExternalLink(string, string, string, array, string) #2 /home/gunsywtx/public_html/includes/Hooks.php(205): Hooks::callHook(string, array, array, NULL) #3 /home/gunsywtx/public_html/includes/Linker.php(875): Hooks::run(string, array) #4 /home/gunsywtx/public_html/includes/parser/Parser.php(1885): Linker::makeExternalLink(string, string, boolean, string, array, Title) #5 /home/gunsywtx/public_html/includes/parser/Parser.php(1304): Parser->replaceExternalLinks(string) #6 /home/gunsywtx/public_html/includes/parser/Parser.php(451): Parser->internalParse(string) #7 /home/gunsywtx/public_html/includes/content/WikitextContent.php(329): Parser->parse(string, Title, ParserOptions, boolean, boolean, NULL) #8 /home/gunsywtx/public_html/includes/content/AbstractContent.php(516): WikitextContent->fillParserOutput(Title, NULL, ParserOptions, boolean, ParserOutput) #9 /home/gunsywtx/public_html/includes/page/WikiPage.php(2080): AbstractContent->getParserOutput(Title, NULL, ParserOptions) #10 /home/gunsywtx/public_html/includes/page/WikiPage.php(1606): WikiPage->prepareContentForEdit(WikitextContent, NULL, User, string, boolean) #11 /home/gunsywtx/public_html/includes/EditPage.php(2203): WikiPage->doEditContent(WikitextContent, string, integer, boolean, User, string, array, integer) #12 /home/gunsywtx/public_html/includes/EditPage.php(1514): EditPage->internalAttemptSave(array, boolean) #13 /home/gunsywtx/public_html/includes/EditPage.php(667): EditPage->attemptSave(array) #14 /home/gunsywtx/public_html/includes/actions/EditAction.php(60): EditPage->edit() #15 /home/gunsywtx/public_html/includes/actions/SubmitAction.php(38): EditAction->show() #16 /home/gunsywtx/public_html/includes/MediaWiki.php(499): SubmitAction->show() #17 /home/gunsywtx/public_html/includes/MediaWiki.php(293): MediaWiki->performAction(Article, Title) #18 /home/gunsywtx/public_html/includes/MediaWiki.php(851): MediaWiki->performRequest() #19 /home/gunsywtx/public_html/includes/MediaWiki.php(523): MediaWiki->main() #20 /home/gunsywtx/public_html/index.php(43): MediaWiki->run() #21 {main}
- Maybe conflicting with https://mediawiki.org/wiki/Extension:UrlGetParameters ?
- also found this one, stable not beta. but doesn't say it supports target. Maybe I can fork it, if I can figure out how. Johnywhy (talk) 17:05, 4 May 2018 (UTC)
How to Transclude Special:Search?
RESOLVED | |
Can't be done, short of writing an extension. Only some special pages are allowed. Special:Search isn't one of them. |
The following discussion is closed. Please do not modify it. Subsequent comments should be made on the appropriate discussion page. No further edits should be made to this discussion.
the Transclusion man-page says some Special pages can be transcluded. e. g.
{{Special:RecentChanges|namespace=10|limit=5}}However, this doesn't seem to work with Search:
{{Special:Search|profile=all|search=testing}}Any way to do this? Johnywhy (talk) 13:56, 4 May 2018 (UTC)
- No. (short of writing an extension)
- Only some special pages are allowed. Special:Search isn't one of them. Bawolff (talk) 19:05, 6 May 2018 (UTC)
DPL3 to Find All Pages which Transclude a Template With a Parameter?
RESOLVED | |
Accomplished with the DPL3 "filter" parameter:{{#dplreplace:{{#dpl: noresultsheader= |uses = Template:Tag |format = ,\n* [[%PAGE%#Tag:Banana|%PAGE%]]·,, |include = {Tag}:1 |includematch = /Banana/ }}|·.*}}How it works:
|
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 find all pages that contain
NewTag|BananaDPL3 manual says includematch "Controls the selection of pages based on contents which shall be included from these pages." I'm not sure what they mean "contents which shall be included".
Manual seems to suggest the "include" statement might only be relevant to tablular output, but not sure.
None of the following work:{{#dpl: uses=Template:NewTag|Banana}} {{#dpl: uses=NewTag|Banana}} {{#dpl: includematch=Template:NewTag|Banana}} {{#dpl: includematch=NewTag|Banana}} {{#dpl: include = Template:NewTag|Banana}} {{#dpl: include = NewTag|Banana}} {{#dpl: include = NewTag|Banana|includematch="NewTag|Banana"}}any ideas? Johnywhy (talk) 15:29, 4 May 2018 (UTC)
- I'd start by trying with the pipe escaped.
{{#dpl: includematch=NewTag{{!}}Banana}}
121.219.34.186 (talk) 12:17, 5 May 2018 (UTC) - Thx, i tried your suggestion, but none of these worked:i also tried the <US> escape for pipe, without success:
{{#dpl: uses=Template:NewTag{{!}}Terrorism}} {{#dpl: uses=NewTag{{!}}Terrorism}} {{#dpl: includematch=Template:NewTag{{!}}Terrorism}} {{#dpl: includematch=NewTag{{!}}Terrorism}} {{#dpl: include = Template:NewTag{{!}}Terrorism}} {{#dpl: include = NewTag{{!}}Terrorism}} {{#dpl: include = NewTag{{!}}Terrorism|includematch="NewTag{{!}}Terrorism"}}
in my tests "uses" is the only option that ever returns any pages (but the Banana parameter is always ignored). Johnywhy (talk) 15:22, 6 May 2018 (UTC){{#dpl: uses=Template:NewTag<US>Terrorism}} {{#dpl: uses=NewTag<US>Terrorism}} {{#dpl: includematch=Template:NewTag<US>Terrorism}} {{#dpl: includematch=NewTag<US>Terrorism}} {{#dpl: include = Template:NewTag<US>Terrorism}} {{#dpl: include = NewTag<US>Terrorism}} {{#dpl: include = NewTag<US>Terrorism|includematch="NewTag<US>Terrorism"}}
Different way to create sitemaps with only non-www URLs of the website
RESOLVED | |
I forgot to change the $wgServer value in localsettings.php |
The following discussion is closed. Please do not modify it. Subsequent comments should be made on the appropriate discussion page. No further edits should be made to this discussion.
I usually prefer the non-www URL for my website (http://learni.online , not http://www.learni.online ). But Google considers www and non-www version as two different websites, so we need to submit both URLs in the Google webmaster tools to index both the links in Google. Then we can set a preferred version of the URL in Google webmaster tools, which in my case is the non-www version of the URL.
But then you need to submit sitemaps that lists only your preferred version of the URLs. And there I am facing problem.
My sitemaps are listing the links in www version.
How should I instruct the programs to generate sitemaps without www in the URLs? Please help. Biologically (talk) 18:06, 4 May 2018 (UTC)
- Check that $wgServer doesn't contain the www. Bawolff (talk) 19:04, 6 May 2018 (UTC)
- Thank you, thank you, thank you. This exactly was the problem. Biologically (talk) 05:13, 7 May 2018 (UTC)
Robots.txt blocking Google bot?
I submitted the sitemaps to Google webmaster tools, made a robots.txt file much ago, but Google is not indexing my website till now. So, I am trying to troubleshoot the problem.
I think there may be some issue in the robots.txt file. Although I checked it using Google webmaster robots.txt checker - which doesn't show any error, but I am creating robots.txt for this first time - so there is always a chance that I made a mistake which is banning Google from crawling the site.
Here is the robots.txt file content of my website (http://learni.online/ ) -
User-agent: *
Disallow: /index.php?
Disallow: /index.php/Help
Disallow: /index.php/MediaWiki
Disallow: /index.php/Template
Disallow: /skins/
Disallow: /all/Special:
Disallow: /all/Spezial:
Disallow: /all/Spesial:
Disallow: /all/Special%3A
Disallow: /all/Spezial%3A
Disallow: /all/Spesial%3A
Can someone please tell me if I am missing something of if there is a problem in the robots.txt file that may be causing this error. That would be a great help.
Information -
- I installed the MediaWiki in the web-root directory (i.e. public_html). In other words, my localsettings.php file is in the public_html directory.
- I have already set a short-URL which makes the link - "http://learni.online/all/......."
- You can find the robots.txt file here - http://learni.online/robots.txt Biologically (talk) 18:54, 4 May 2018 (UTC)
Wikitext highlighting out of beta
Wikitext syntax highlighting, also known as CodeMirror, has been moved out of Beta Features and is available in the 2017 Wikitext Editor on all wikis. Syntax highlighting helps you see problems in your wikitext before previewing or publishing text. Please try out the tool if you did not do so while it was being developed, and feedback is welcome. - Keegan (WMF) (talk)
18:55, 4 May 2018 (UTC)
MediaWiki message delivery (talk) 18:55, 4 May 2018 (UTC)
Redirect in the Main Page of MediaWiki website - bad for SEO?
RESOLVED | |
Ways to prevent redirect in MediaWiki Main Page - if interested. |
The following discussion is closed. Please do not modify it. Subsequent comments should be made on the appropriate discussion page. No further edits should be made to this discussion.
In MediaWiki websites, when you search by using the domain name in address bar of browsers, it always uses a redirect to reach the Main Page.
For example, when you search for - https://en.wikipedia.org/ it redirects you to https://en.wikipedia.org/wiki/Main_Page .
The same is true for MediaWiki official website too which redirects to "https://www.mediawiki.org/wiki/MediaWiki"
Is there any way to circumvent this redirection, as redirection is bad for SEO. Biologically (talk) 19:02, 4 May 2018 (UTC)
- SEO is a black art, mostly full of myths that aren't true. I'm doubtful that (HTTP) redirection is actually bad for SEO.
- That said its probably possible to a hack something together using apache redirect rules so Mediawiki sees the right page but you don't actually get redirected there. Bawolff (talk) 18:58, 6 May 2018 (UTC)
- I agree with the "black art" comment.
- I shall try your suggestion with the .htaccess.
- Keeping the thread open for a while, to see if anyone else wants to drop any other idea. Biologically (talk) 05:11, 7 May 2018 (UTC)
Message
Hi, how can I add a message above a specific page. Such as in the Main Page of enwiki, appears a personalized message. I'm not talking about the MediaWiki protected page message, but to create a message por any page. 190.218.206.224 (talk) 03:44, 5 May 2018 (UTC)
- > in the Main Page of enwiki, appears a personalized message
- I'm not sure if you are looking for Extension:GuidedTour. 星耀晨曦 (talk) 17:17, 5 May 2018 (UTC)
- Do you mean during editing (e.g. EditNotices?). They come from a convoluted system based on Manual:Interface/Edit_notice
- Do you mean site notice/central notice? They come from the page mediawiki:sitenotice (and sometimes extension:CentralAuth) Bawolff (talk) 18:56, 6 May 2018 (UTC)
LDAP user mapping
Hi, is it possible to display another ldap attribute in history for the username ? For example a popup could display the realname or the mail adresse instead the UID when the mouse is over the username in the history page. I'm using mediawiki 1.23 et the extension LdapAuthentication.php & /LdapAutoAuthentication.php. Thanks in advance :) Haroun al Mouwahid (talk) 04:12, 5 May 2018 (UTC)
- Anyone would have an idea ? :) Haroun al Mouwahid (talk) 03:59, 6 May 2018 (UTC)
- Not really.
- There's not even any hooks around there so it would be difficult (albeit not impossible if you used something like manual:hooks/HtmlPageLinkRendererBegin) Bawolff (talk) 18:55, 6 May 2018 (UTC)
- I found that : Extension:Realnames. Thank you for you answer :) Haroun al Mouwahid (talk) 10:57, 10 May 2018 (UTC)
- @Haroun al Mouwahid: Even the solution works, you still need to update MediaWiki to get more help, plus to keep your wiki safe. See Version lifecycle. 2A02:C7F:963F:BA00:BC10:134D:CB9F:F44 (talk) 06:35, 11 May 2018 (UTC)
How to Prettify API output?
I want to display API output on a wikipage, in a pretty bulleted list.
API outputs various formats: json, jsonfm, none, php, phpfm, rawfm, xml, xmlfm. XML example:
<api batchcomplete=""> <query> <searchinfo totalhits="2"/> <search> <p ns="0" title="The U.S. does NOT have the world highest." pageid="231" size="1383" wordcount="197" snippet="" timestamp="2018-04-27T02:47:44Z"/> <p ns="0" title="Domestic Terrorism in the U.S." pageid="243" size="8011" wordcount="1070" snippet="" timestamp="2018-05-04T02:40:50Z"/> </search> </query> </api>
How to get a simple bulleted list of just the "title" property of the <p tags?
Is there an xml or json parser for wikipages?
None of the following seem right for the job:
Extension:XML Bridge#Related Projects
https://en.wikipedia.org/w/api.php?action=help&modules=parse
Perhaps i could use inline php. Johnywhy (talk) 07:48, 5 May 2018 (UTC)
- This is typically the thing you would write an extension for. —TheDJ (Not WMF) (talk • contribs) 09:16, 5 May 2018 (UTC)
- You mean, typically the API is meant for coding or scripting? Johnywhy (talk) 09:22, 5 May 2018 (UTC)
- API is for external tools or JS scripts (maybe this is the choice). In Core it is not possible to put API results on pages. wargo (talk) 09:31, 5 May 2018 (UTC)
Hide category list at bottom of single page
I see that .#catlinks { display: none; } can be used, but how can I use it just on a single page of my choice? 86.17.13.109 (talk) 11:31, 5 May 2018 (UTC)
- Each page has its name as a class on the body tag.121.219.34.186 (talk) 12:12, 5 May 2018 (UTC)
.page-Extension_LockOnCreate #catlinks { display: none; }
- Sorry I don't quite understand Quinnj09 (talk) 16:20, 5 May 2018 (UTC)
- In MediaWiki:Common.css, the rule
#catlinks { display: none; }
can also be applied on a per-page basis. For this purpose, you will need to use the name of the page which also exists "as a class on the body tag". - For example, if you want to hide the category list on the Extension:LockOnCreate page, insert the following rule in MediaWiki:Common.css: AhmadF.Cheema (talk) 17:02, 5 May 2018 (UTC)
.page-Extension_LockOnCreate #catlinks { display: none; }
- That make sense, if I wanted to do say 10 pages, I would need to add that in 10 times? No way to do it as one block? 86.17.13.109 (talk) 18:56, 5 May 2018 (UTC)
- Those 10 pages can probably be included in the same line.
.page-Page_One .page-Page_Two .page-Page_Three #catlinks { display: none; }AhmadF.Cheema (talk) 07:22, 6 May 2018 (UTC)- That is not at all how CSS works. Your selector is looking for #catlinks, which has some parent with class .page-Page_Three, which has some parent with class .page-Page_Two, which has some parent with class .page-Page_One. In other words, this selector would never match anything useful.
- You would have to use multiple selectors: 121.219.236.56 (talk) 06:58, 7 May 2018 (UTC)
.page-Page_One #catlinks, .page-Page_Two #catlinks, .page-Page_Three #catlinks { display: none; }
- Apologies, my mistake. Forgot the syntax. AhmadF.Cheema (talk) 11:35, 7 May 2018 (UTC)
- And one of my pages has these bracket symbols on the page name, ( and )
- How do I escape these characters in MediaWiki:common.css? Quinnj09 (talk) 18:19, 6 May 2018 (UTC)
- You just don't include brackets. (If you view source of the page, look at what the class attribute on the <body> tag is. Bawolff (talk) 18:47, 6 May 2018 (UTC)
Changing $wgServer value in a running website
RESOLVED | |
Very helpful answers with two different ways to properly configure a website after installing SSL/TLS. |
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.
Due to adding SSL my website URL now https
Should I change the SwgServer = "http://example.com" to $wgServer = "https://example.com" ?
As the website is active, would changing it will break the site? Will it cause errors?
Just a related question, if I change the value to $wgServer = "https://www.example.com" would it cause errors or break the site? Biologically (talk) 16:23, 5 May 2018 (UTC)
- After setting-up SSL for you domain, you should change the $wgServer to https, otherwise there will be some errors and you might not be able to use some features such as Extension:AbuseFilter.
- Doing such will not break the site. AhmadF.Cheema (talk) 17:08, 5 May 2018 (UTC)
- Thank you so much. Biologically (talk) 17:26, 5 May 2018 (UTC)
- Or use
//example.com
, this is used for supporting both HTTP and HTTPS with the same caches by using links that work under both protocols. But I do not know what is the difference between this and https. 星耀晨曦 (talk) 17:30, 5 May 2018 (UTC)- If you want to use both http and https, then you can set
$wgServer = '//example.com'; $wgCanonicalServer = 'https://example.com';
- But, if you really want best security, you should support only HTTPS (make http version redirect to http in apaches, and set HSTS header in apache), in which case you want
$wgServer = 'https://example.com';
to tell MediaWiki that only https is supported and http is not supported. Bawolff (talk) 18:45, 6 May 2018 (UTC)
- Thank you. Really helpful advice. Biologically (talk) 17:39, 5 May 2018 (UTC)
Disallowing /w/index.php? in robots.txt - will it stop crawling the whole site?
RESOLVED | |
Use of robots.txt for the MediaWiki sites (and more) installed in the web root directory (in this case public_html) explained. |
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 write this in the robots.txt file -
Disallow: /w/index.php?
Will it stop crawling in the whole site? In other words, will it drop the site from indexing in Google? Biologically (talk) 16:27, 5 May 2018 (UTC)
- Depends on your url setup. Also you need to specify user-agent.
- If you have pages listed as /wiki/page_name_here or '/w/index.php/page_name_here than the answer is no.
- If you really want noindexing, you should probably just do
User-agent: * Disallow: /
- (or if there are other things on your domain,
Disallow: /w/
Bawolff (talk) 18:42, 6 May 2018 (UTC) - Thank you so much for explaining. My site is in the web root folder (public_html in apache) and my short-URL contains http://site_name.com/all/page_name_here structure where I used "all" in place of "wiki" as in your example.
- I also don't want to completely no-index the site, so although my site is in "/" (web root or public_html) directory, I probably can't use (can you please confirm) -
- User-agent: *
- Disallow: /
- as compared to -
- User-agent: *
- Disallow: /w/
- that is used in most wikis because they installed the site in /w/ directory.
- So, using -
- User-agent: *
- Disallow: /index.php?
- Would it completely block my site from being crawled? Biologically (talk) 05:04, 7 May 2018 (UTC)
- If you just want to allow your all directory, you can do something like
User-agent: * Disallow: / Allow: /all/
- Blocking
/index.php?
should block all non normal page views (normal page views are still possible via /index.php/page_here) Bawolff (talk) 13:41, 7 May 2018 (UTC) - Thank you. Biologically (talk) 13:58, 7 May 2018 (UTC)
New user problem
I loaded Cachely, authorized Cachely at GeoCache.com and opened Cachely app. I can open a map, but no caches appear. The same is true when open "list." It opens, but no caches are listed. How do I get access to local caches? 72.28.253.130 (talk) 17:25, 5 May 2018 (UTC)
- Wrong support forum. AhmadF.Cheema (talk) 07:27, 6 May 2018 (UTC)
Some way to enable the users to report a page to admin for delete?
RESOLVED | |
Methods to allow users to report contents. |
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.
Spam is a very common problem in wiki sites. Although a spam link or small spammy edits can be edited and removed by any user, sometimes a whole page is built by malicious users only to put some external link - these pages are usually irrelevant to a particular wiki and so the whole pages need to be deleted.
Though the admin keeps an eye for such pages, but the process becomes much easier if we allow the users to report "bad" pages to the admin.
Is there any such extension or any other way to create a button on every page; so that any user who finds the page irrelevant can report it for deletion to the admin (as the admin has delete right in most wikis)?
@AhmadF.Cheema , @Wargo , @Ciencia Al Poder , @Bawolff Biologically (talk) 17:37, 5 May 2018 (UTC)
- People often use templates for this (e.g.putting {{delete}} on a page)
- There's also things like extension:ArticleFeedback and extension:ArticleFeedbackv5
- Some people like help:Patrol. There's also various things like extension:SpamBlacklist Bawolff (talk) 18:39, 6 May 2018 (UTC)
- Thank you. I shall try them and see which works best. Biologically (talk) 04:50, 7 May 2018 (UTC)
Problem to edit, preview or create an article
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 run mediawiki on a remote server (not in my computer), open an article works but when trying to edit, preview or create a new one, I got no answer from the server, seems like the page is eternally loading.
When I access the server using SSH, open a web browser and try to edit any page, it works.
I think it's some apache configuration but cannot solve by myself, searched in mediawiki support desk, apache communities but couldn't find fix. Any idea?
I'm using mediawiki 1.30.0, PHP 7.0.28 and Apache 2.4.18. Walbermr (talk) 19:06, 5 May 2018 (UTC)
- Check your apache error log. See also Manual:How to debug Bawolff (talk) 18:37, 6 May 2018 (UTC)
- I found out that the issue was a SSL certificate that the server must be using but wasn't configured. Thanks! Walbermr (talk) 00:38, 26 October 2018 (UTC)
Wiki family related error: Access denied for user 'gjlxrtap_mw19758'@'localhost' to database 'wiki' (localhost)
Hello. When I tried to set up a wiki family on my server, I got the access denied error in the title above. This happened after setting a postfix that the Localsettings.php did not recognize. I used Mainframe98's version of the wiki family manual. Is there any mistake in the wiki family's configuration in Localsettings.php? What can I do to make the wiki family run successfully? Newman2 (talk) 20:57, 5 May 2018 (UTC)
- I also tried the normal method, and it failed due to the fact that it was not possible to determine the wiki ID. In this case, what do I do to fix this and make it run successfully? Newman2 (talk) 22:33, 5 May 2018 (UTC)
- "Access denied for user 'gjlxrtap_mw19758'@'localhost' to database 'wiki'" mans that the MySQL user gjlxrtap_mw19758 does not have access rights for the database named "wiki". If this username is correct, you need to configure MySQL so that this user actually does have access to the wiki database! 2001:16B8:108F:B100:CD2F:370C:3C01:3768 (talk) 23:46, 5 May 2018 (UTC)
- How do I configure MySQL? Newman2 (talk) 01:00, 6 May 2018 (UTC)
- ^Read above. Also, I need help on how to set up a wiki family without failing gracefully. Newman2 (talk) 17:36, 6 May 2018 (UTC)
- See https://www.mediawiki.org/wiki/Manual:Installing_MediaWiki#MariaDB/MySQL and the MySQL docs Bawolff (talk) 18:36, 6 May 2018 (UTC)
- What file is MySQL in? Newman2 (talk) 21:44, 8 May 2018 (UTC)
- ^Read the post above. Newman2 (talk) 23:39, 8 May 2018 (UTC)
- http://lmgtfy.com/?q=how+to+configure+mysql Ciencia Al Poder (talk) 09:27, 9 May 2018 (UTC)
- I already looked at configuring MySQL. What I am asking is that is there a file in the maintenance folder that has MySQL configuration. Or do I have to contact my web host? Newman2 (talk) 12:32, 9 May 2018 (UTC)
- If you haven't installed MySQL yourself, then you should ask your host Ciencia Al Poder (talk) 20:42, 9 May 2018 (UTC)
accounting
RESOLVED | |
Autoconfirmed 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.
i'm a new account and how do you get "autoconfirmed"? Bondboy9756 (talk) 08:13, 6 May 2018 (UTC)
- See Project:Autoconfirmed users. AhmadF.Cheema (talk) 09:11, 6 May 2018 (UTC)
- thank you! all the best to you! Bondboy9756 (talk) 11:01, 6 May 2018 (UTC)
I got hacked.
RESOLVED | |
never mind.. my mistake |
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.
someone hacked my account and blanked everying. This blanking included my history so I can't go back to a previous version. I changed my password and made it stonger. I there anything I can do to get my settings and data back? Pmcalduff (talk) 09:06, 6 May 2018 (UTC)
cpPosTime cookie and the GDPR
As many in Europe will be aware, the General Data Protection Regulation is coming. I figured out that the incoming law is a great time to maximise respect for user privacy by disabling all cookies for users who merely browse NSindex.
When we tested NSindex from a the perspective of a user that merely browses our wiki, the wiki currently sets a cookie named cpPosTime, which has a value of the Unix time followed by four random digits.
I do not know what this cookie does, and I do not know how to disable it either. Can anyone elaborate on this?
According to https://nsindex.net/wiki/Special:Version:
- cpPosTime cookie has been removed in the development version of mediawiki (to be replaced with cpPosIndex) as part of the fix for phab:T182322.
- Prior to it being removed it was used for synchronization purposes for people who had multiple databases (e.g. master/slave) set up. Very very roughly it ensured that mediawiki could split traffic between multiple database servers without showing outdated info to anybody. [The cp stands for ChronologyProtector].
- In theory I was under the impression that ChronologyProtector would only get enabled if you have more than one db setup, and if not enabled it would not send cookies. But I may be wrong as I'm not super familar with this area of MediaWiki.
- You might be able to disable by doing in LocalSettings.php
$wgExtensionFunctions[] = function() {MediaWikiServices::getInstance()->getDBLoadBalancerFactory()->disableChronologyProtection();};
provided you are not use a DB master/replica setup. But I'm not exactly sure what the consequences of doing that are (I think it'd be ok only if you have just a single DB. Its definitely not ok if you have DB replication set up) and I haven't tested. Bawolff (talk) 18:35, 6 May 2018 (UTC)
how to get a global top nav to work?
hi, im making a website with top navigation and include a wiki as well as a phpBB forum
i managed to make my topnav show correctly on top of the wiki but the links (to Homepage, Wiki and Forum) wont work.
after some research i think it is beacause mediawiki is blocking the links (for example <a href="/Wiki/">Wiki</a>)
so i see the word "Wiki" but cant click on it (works fine when im in the Forum or Homepage section of my website)
any ideas how i can make this work? 62.178.20.86 (talk) 12:17, 6 May 2018 (UTC)
Using file_get_contents with Extension:PHPTags?
Using Extension:PhpTags on MW 1.3,
simple hello-world works fine, but file_get_contents returns
PhpTags Fatal error: Call to undefined function file_get_contents() in Draft:TestPHP on line 2
Here's the sample code:
<phptag> $foo = 'hello world!'; echo $foo; </phptag> <phptag> $searchResults = file_get_contents('https://www.nature.com/articles/s41467-018-03445-z'); echo $searchResults; </phptag>
How to enable file_get_contents? Johnywhy (talk) 16:49, 6 May 2018 (UTC)
- To quote the docs:
- The PhpTags extension has its own the runtime environment PHP code which supports scalar types, arrays, variables, operators, control structures. It also supports constants, functions and objects but it does not implement any of them except for some language constructs.
- phptags extension does not let you have arbitrary php in your page. (Any extension promising that would be super insecure) Bawolff (talk) 18:12, 6 May 2018 (UTC)
How to Escape Pipe in API?
i'm performing a string search using API. My string contains "|", but the API is interpreting it as a magic character instead of part of my search string.
https://gunretort.xyz/api.php?action=query&list=search&srsearch=MyPrefix|CommonGround&srwhat=text
i've tried escaping it with "{{!}}", but results are the same.
https://gunretort.xyz/api.php?action=query&list=search&srsearch=MyPrefix{{!}}CommonGround&srwhat=text
how to search for a bar? Johnywhy (talk) 18:23, 6 May 2018 (UTC)
- API:Data formats#Multivalue parameters says to use <US> as value separator, if i need to use bar as a string. but still not getting expected results with: displays
https://gunretort.xyz/api.php?action=query&list=search&srsearch=<US>MyPrefix|Terrorism&srwhat=text&srnamespace=<US>0<US>3000&format=xml
Also attempting to substitute the html-decoded version <code></code>,Unrecognized value for parameter "srnamespace": <US>0<US>3000
- https://gunretort.xyz/api.php?action=query&list=search&srsearch=MyPrefix|Terrorism&srwhat=text&srnamespace=03000&format=xml
- but not recognized:Johnywhy (talk) 20:58, 6 May 2018 (UTC)
{ "error": { "code": "nosearch", "info": "The \"search\" parameter must be set.", "*": "See https://gunretort.xyz/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." } }
- Have you tried escaping using percent encoding (e.g. Use
%1F
in place of <US>). Bawolff (talk) 22:10, 6 May 2018 (UTC) - Thx for suggestion. It didn't work. Johnywhy (talk) 23:42, 6 May 2018 (UTC)
Warning: Skipping bad option 'MyPrefix%1FCommonGround' for parameter 'uses'.
- what's the precise url you used there? Bawolff (talk) 00:09, 7 May 2018 (UTC)
- I don't know that much about DPL, but when using the %1F as a separator you need to prefix it with the separator (e.g. like {{#dpl: uses=%1FNewTag%1FTerrorism}} Bawolff (talk) 00:43, 7 May 2018 (UTC)
- %1F gives an error with API.returns
https://gunretort.xyz/api.php?action=query&list=search&srsearch=%1FNewTag%1FSpinach&srwhat=text&srnamespace=0|3000&format=xml
<api>
<error code="badvalue_notmultivalue" info="U+001F multi-value separation may only be used for multi-valued parameters." xml:space="preserve">
See https://gunretort.xyz/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.
</error>
</api>
- which doesn't make sense, because the mywiki/api.php saysAlso tried {{!}} . My results indicate it is treated as an OR
If a value must contain the pipe character, use U+001F (Unit Separator) as the separator and prefix the value with U+001F, e.g. param=%1Fvalue1%1Fvalue2
Johnywhy (talk) 10:10, 7 May 2018 (UTC)https://gunretort.xyz/api.php?action=query&list=search&srsearch={{!}}NewTag{{!}}Spinach&srwhat=text&srnamespace=0|3000&format=xml
- oh I see.
- srsearch is not a multivalued parameter - it can only take one value which is passed to the search engine.
- But the search engine may treat the "|" character specially. So its probably all about which layer is interpreting the parameter. Bawolff (talk) 13:22, 7 May 2018 (UTC)
- Thx, yes, i have learned that srsearch doesn't support multi-values. https://phabricator.wikimedia.org/T194016
- And yes, it seems that an embedded pipe is not being treated as part of the string. https://phabricator.wikimedia.org/T194039
- Perhaps if we can determine which layer is reacting to the pipe, we can figure out a way to escape it. But, theoretically, if srsearch doesn't support multivalues, then i think it is a bug if an embedded pipe breaks srsearch. Johnywhy (talk) 13:24, 7 May 2018 (UTC)
- you can also try escaping the pipe as %7C Bawolff (talk) 13:32, 7 May 2018 (UTC)
- Like this?Got same results. It's matching pages which contain:
https://gunretort.xyz/api.php?action=query&list=search&srsearch=NewTag%7CAnteater&srwhat=text&srnamespace=0|3000
NewTag
x
Anteater
- and
Anteater banana
NewTag
- but should only match the page containing
NewTag|Anteater
Johnywhy (talk) 13:38, 7 May 2018 (UTC)- Almost solved. The solution below finds both:
- NewTag|Anteater
- and
- NewTag Anteater
- We don't want to find the second one (pipe interpreted as space). So that's still a problem.
- .
- Since i learned the API search uses the same search engine as the front-end Search utility, i experimented with the front-end search to find answer.
- The secret sauce is: surround entire string with quotes. You can use html-encoded, or not-- both solutions below work.
https://gunretort.xyz/api.php?action=query&list=search&srsearch=%22NewTag%7CAnteater%22&srwhat=text&srnamespace=0|3000|3004
https://gunretort.xyz/api.php?action=query&list=search&srsearch="NewTag|Anteater"&srwhat=text&srnamespace=0|3000|3004
the following search-string finds the same two results as above, when neither page contains curly braces. So, still a problem.- "{{NewTag|Anteater}}"
- Basically, when search-string is wrapped in double-quote, then it seems that all non-alpha characters are treated as single-character wildcards. Thus,
- "Tag|Anteater" will match:
Tag|Anteater
Tag Anteater
TagxAnteater
Tag.Anteater
Tag
Anteater
Tag
Anteater
Johnywhy (talk) 19:55, 7 May 2018 (UTC)
How to Insert Output from PHP File in Page Source?
i have a php file on my server that outputs text.
i'd like that text to be inserted into a wikipage source?
How is that done? Johnywhy (talk) 20:45, 6 May 2018 (UTC)
- See https://www.mediawiki.org/wiki/Manual:Parser_functions Bawolff (talk) 22:11, 6 May 2018 (UTC)
- i meant, what code can i put on a page, to pull in the output of a php file?
- i think the article you shared is for something different.
- i've found some possible iFrame extensions, but prefer to avoid frames if possible. Johnywhy (talk) 01:58, 7 May 2018 (UTC)
- My link is for how to write your own extension to do so (e.g. make a new {{#foo:bar}} thingy that would do arbitrary php stuff). Bawolff (talk) 13:34, 7 May 2018 (UTC)
- thx, that will be a big challenge for me! :D Johnywhy (talk) 13:40, 7 May 2018 (UTC)
- Often its easiest to find something that does something similar already, copy it, and modify it until it does what you want it to. Bawolff (talk) 00:44, 8 May 2018 (UTC)
- You don't insert the output of a php file. That would mean executing the php file to get the results, and php isn't executable on it's own (you must call the php-cli).
- If your php script output wikitext and you want to create/edit pages with its contents, you can use Manual:edit.php like this:
php yourscript.php | php edit.php "page_title"
- If you want to insert it not on a page wikitext but somewhere else, then you need a hook. Since MediaWiki is written in PHP, you can insert the PHP code directly inside the hook. Ciencia Al Poder (talk) 09:19, 7 May 2018 (UTC)
- thx, @Ciencia Al Poder. But i want to execute the php file dynamically everytime i display it. Sounds like your sample code generates static output just once (kinda like subst). Correct? Johnywhy (talk) 09:52, 7 May 2018 (UTC)
- Yes Ciencia Al Poder (talk) 09:20, 8 May 2018 (UTC)
Landing page on mediwiki
Dear Team,
I need your assistance on creating landing page in mediawiki-1.24.2 running on RHEL7.0.
We have the following URL currently every one using as a landing page and then they click login at the right corner to login as a individual..
http://company-dns.com/mediawiki/index.php/Main_Page < first page)
Our requirement is to set the second page i.e after clicking login the below long URL is appearing in the address bar.
http://company-dns-name/mediawiki/index.php?title=Special:UserLogin&returnto=Main+Page (special page)
however after every successful individual login , it takes to every one to the first page i.e
http://company-dns.com/mediawiki/index.php/Main_Page
we need to restrict this and set the landing page as more generic as per the below.
Please suggest your opinion & share your views on it.
http://company-dns-name/mediawiki/index.php?title=Special:UserLogin&returnto=Main+Page change to http://company-dns-name/mediawiki/login.php
Regards
san-zu Sanjeevi ind (talk) 06:10, 7 May 2018 (UTC)
- You can change the post-login redirect with Manual:Hooks/PostLoginRedirect Ciencia Al Poder (talk) 09:21, 7 May 2018 (UTC)
- @Sanjeevi ind: Sorry, please upgrade your MediaWiki version first or get no help. 2A02:C7F:963F:BA00:E41C:CBF2:A74C:202F (talk) 10:00, 7 May 2018 (UTC)
- Dear Ciencia Al Poder,,
- sorry I tried this, still no luck.
- @2A02:C7F:963F:BA00:E41C:CBF2:A74C:202F, Due to some security concern, we will not be be able to upgrade first . please help to assist how to strict with the below URL for all users as starting page, possible for us to shorten the url & everyone to use starting page to be first landing page.
- http://companuy-dns.com/mediawiki/index.php?title=Special:UserLogin&returnto=Main+Page
- Thanks,
- san-zu Sanjeevi ind (talk) 02:39, 9 May 2018 (UTC)
Bot Passwords and user group rights?
Hello everyone,
When i create a bot password for my user, I was wondering if the new "user" (i mean, me@Userbot) inherits my user group rights, or should I assign him to a new user group. I'm asking this because i cant make my script do the edits i'd love him to do, but also i don't see this user in my user lists.
thank you all for your answers, happy development! Andrea.bozzano87 (talk) 08:58, 7 May 2018 (UTC)
Structured data - Progress till now and any alternate way
RESOLVED | |
Ways to add structured data in web pages were described. |
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 personally very happy to find the works going on implementing the structured data here. But I was unable to get a clear understanding of the current availability of any method to use structured data format in the MediaWiki-based websites. Can anyone please tell me how to use structured data on a MediaWiki websites (as we can't directly edit the HTML of the webpages)? In other words how to add structured data as suggested at schema.org?
Also, is there any alternate way (e.g. using extension or php) to use the structured data in the webpage elements. Thank you.
P.S. I asked this question on Talk:Reading/Multimedia/Structured Data but then thought probably I should ask it in this forum, because it's here that most discussions are going on. So, asked it here too. Biologically (talk) 12:42, 7 May 2018 (UTC)
- You can use metadata attributes in HTML, like itemprop, itemtype and itemscope. And also the meta HTML element. Of course, only in the wiki text. There's no way (that I'm aware of) to do that outside of the wiki text (like tagging the entire page). You can implement that in templates. For example, I've implemented it here. Ciencia Al Poder (talk) 09:17, 8 May 2018 (UTC)
- Thank you. I shall study your page and I am sure I shall be able to learn a lot from you. Biologically (talk) 09:40, 8 May 2018 (UTC)
Select new destination for mw-wiki-logo
RESOLVED | |
How do I customize the link-URL of the site-logo in the top left corner of all pages that activates when the site-logo is clicked upon? |
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.
What is the easiest way to select a new destination for the logo?
Under the logo is the line: "Main Page" which is the same destination as the logo. How can I change my logo destination to go to my main website? (the media wiki is a subdirectory of my main website)? Rkasparek (talk) 14:42, 7 May 2018 (UTC)
- Manual:$wgLogo Malyacko (talk) 14:50, 7 May 2018 (UTC)
- $wgLogo = $wgScriptPath . '/images/4/47/mylogo.png'; is the path to the logo file correct? What I am looking for is the destination of the logo, as in:
- <a class="mw-wiki-logo" " 'href="/registry/index.php/Main_Page' " " title="Visit the main page"></a>
- I want to change where the visitor goes when he clicks the logo. Rkasparek (talk) 15:15, 7 May 2018 (UTC)
- See: How do I customize the link-URL of the site-logo in the top left corner of all pages that activates when the site-logo is clicked upon? AhmadF.Cheema (talk) 16:23, 7 May 2018 (UTC)
- Perfect! That did it nicely - THANK YOU! Rkasparek (talk) 17:11, 7 May 2018 (UTC)
Diagrams-male& female reproductive system, Pictures of Sex Toys
I am writing a book on sexuality that includes diagrams of male and female reproductive systems, sexual anatomy, mechanical and surgical devices to help men have an erection who have ED, and pictures of sex toys - vibrators and sex furniture. Will MediaWiki give me the ability to download these pictures. BrendaDressler (talk) 13:27, 8 May 2018 (UTC)
- MediaWiki itself is only a wiki software.
- Its content (like the types of pictures that you mention) is uploaded by users of the software. If you somehow meant a Wikipedia (a website that uses the MediaWiki software) you may want to ask in a support channel of a Wikipedia and check the licenses of the pictures that you refer to. Malyacko (talk) 18:29, 8 May 2018 (UTC)
Wikipedia's home page
Hi, is it possible to make this kind of home page?
Thanks in advance. Кд.орг.рс (talk) 15:46, 8 May 2018 (UTC)
- As far as I know the code is at https://gerrit.wikimedia.org/r/plugins/gitiles/wikimedia/portals/+/master AKlapper (WMF) (talk) 18:27, 8 May 2018 (UTC)
- Do we have a permission to use it? Кд.орг.рс (talk) 13:39, 9 May 2018 (UTC)
- The repository that I linked to has a file called "LICENSE". AKlapper (WMF) (talk) 19:06, 9 May 2018 (UTC)
- Thanks. Could you explain me how can I install it on a web hosting? Кд.орг.рс (talk) 13:21, 10 May 2018 (UTC)
Get the action using a magic word
Hello. Is it possible to return the current action (e.g. "edit", "delete", "history", etc.) using a magic word? I need it for a system message on a wiki. Guycn2 (talk) 20:19, 8 May 2018 (UTC)
- nope, the wikitext has no knowledge of in which mode the UI is. —TheDJ (Not WMF) (talk • contribs) 21:26, 8 May 2018 (UTC)
- OK... is there any other way to detect when the user is in the deletion form? I need to set MediaWiki:Policy-url to a different page, but only when the user is deleting a page (I prefer to do it without changing MediaWiki:Confirmdeletetext). Guycn2 (talk) 21:30, 8 May 2018 (UTC)
- No, you should change MediaWiki:Confirmdeletetext Ciencia Al Poder (talk) 09:28, 9 May 2018 (UTC)
- OK, thanks. Guycn2 (talk) 08:36, 10 May 2018 (UTC)
- You can use CSS.
<span class="only-show-me-on-delete">Super special delete text</span>
121.219.236.56 (talk) 03:18, 11 May 2018 (UTC).only-show-me-on-delete { display: none; } .action-delete .only-show-me-on-delete { display: inline; }
- Thanks :) Guycn2 (talk) 12:53, 11 May 2018 (UTC)
Not succeccsfull with command $ php update.php
Hello.
We downloaded the MediaWiki to the target directory C:\easyphp\www\mediawiki-1.30.0 ,
adjusted all settings and everything looks fine and running fine except the updates of articles are not going through. When we trying to update an article, it gives us an error [6464f5035f8355f1c3fe9341] 2018-05-08 22:33:01: Fatal exception of type "Wikimedia\Rdbms\DBQueryError"
I believe it's because we skipped one step which is to run php update.php command.
Our current PHP version on the server is 5.6.26
I downloaded PuTTY since we have Windows server, run it and tried under SSH in Remote Command line to run one by one two commands:
$ C:\easyphp\www\mediawiki-1.30.0 (to point to target dir with the most recent MediaWiki)
$ php update.php
but when I put these command into Remote command in PuTTY and press Enter or click button Open, nothing changed.
What I do wrong?
How I can succeed in PuTTY by executing these two command? Please let me know.
Thank you,
Alex FIlimonov 69.174.84.22 (talk) 22:41, 8 May 2018 (UTC)
- See Manual:How to debug for how to get a stacktrace for your fatal exception.
- Your first "command" above is not a command. It is just the path of a location. You need to **go** to the folder where "update.php" is located and run your second command (php update.php") in that very folder. Malyacko (talk) 09:09, 9 May 2018 (UTC)
- Where "update.php" is located in MediaWiki 1.30.0?
- In main directory it does not exist.You have bunch of the files "update.php" in different directories in MediaWiki 1.30.0 by including one in folder "maintenance".
- Which is correct one and from what folder or subfolder of MediaWiki I should use to?
- Please let me know. 69.174.84.22 (talk) 23:41, 9 May 2018 (UTC)
- The one in the folder: <Wiki_main_directory>/maintenance. AhmadF.Cheema (talk) 00:46, 10 May 2018 (UTC)
- Thank you for your answer!
- I'm completely new with PuTTY, never used it previously.If for updating MediaWiki to 1.30.0 we should execute the command $php update.php (it's mentioned in your manuals as mandatory step), please help and let me know:
- 1) in what submenu/menu item in PuTTY I should place the path <Wiki_1.30.0_main_directory>/maintenance
- 2) in what submenu/menu item in PuTTY I should place the command $php update.php for execution?
- Your helping is appreciated.Thank you very much!
- Alex Filimonov 69.174.84.22 (talk) 23:34, 11 May 2018 (UTC)
- First an SSH session will have to opened to your internet hosting provider through PuTTY, after which a terminal/command window will open up. The Update.php command will be entered inside this terminal.
- To open an SSH session, you will require a Host Name (or IP address) from your hosting provider. For specific details, consult your provider's documentation regarding connecting through SSH (or see How to Use PuTTY on Windows). AhmadF.Cheema (talk) 01:22, 12 May 2018 (UTC)
- Hello Ahmad. Thank you for your reply!
- It looks like you are talking about internet providers and using SSH but this is an onsite “Windows” install,
- not LINUX/UNIX which you still seem to think it is. There is no SSH/port 22 connections on a Windows box.
- I’m assuming there some other method of execution of the command php update.php located in maintenance directory of MediaWiki 1.30.0 I'm trying to do.
- I have two questions.
- 1) After adding these lines into LocalSettings.php file in our local copy of MediaWiki 1.30.0
- $wgShowDBErrorBacktrace = true;
- $wgDebugDumpSql = true;
- error_reporting( -1 );
- ini_set( 'display_errors', 1 );
- I got the following details about the error by nit succeeding with an update of the article:
- [5b281d44bdc6eec3ef30b391] /index.php?title=Main_Page&action=submit Wikimedia\Rdbms\DBQueryError from line 1149 of C:\easyphp\www\mediawiki-1.30.0\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: INSERT INTO `ip_changes` (ipc_rev_id,ipc_rev_timestamp,ipc_hex) VALUES ('9394','20180516171141','v6-00000000000000000000000000000001')
- Function: Revision::insertOn
- Error: 1146 Table 'wikidb.ip_changes' doesn't exist (localhost)
- Backtrace:
- #0 C:\easyphp\www\mediawiki-1.30.0\includes\libs\rdbms\database\Database.php(979): Wikimedia\Rdbms\Database->reportQueryError(string, integer, string, string, boolean)
- #1 C:\easyphp\www\mediawiki-1.30.0\includes\libs\rdbms\database\Database.php(1589): Wikimedia\Rdbms\Database->query(string, string)
- #2 C:\easyphp\www\mediawiki-1.30.0\includes\Revision.php(1528): Wikimedia\Rdbms\Database->insert(string, array, string)
- #3 C:\easyphp\www\mediawiki-1.30.0\includes\page\WikiPage.php(1722): Revision->insertOn(Wikimedia\Rdbms\DatabaseMysqli)
- #4 C:\easyphp\www\mediawiki-1.30.0\includes\page\WikiPage.php(1625): WikiPage->doModify(WikitextContent, integer, User, string, array)
- #5 C:\easyphp\www\mediawiki-1.30.0\includes\EditPage.php(2204): WikiPage->doEditContent(WikitextContent, string, integer, boolean, User, string, array, integer)
- #6 C:\easyphp\www\mediawiki-1.30.0\includes\EditPage.php(1514): EditPage->internalAttemptSave(array, boolean)
- #7 C:\easyphp\www\mediawiki-1.30.0\includes\EditPage.php(667): EditPage->attemptSave(array)
- #8 C:\easyphp\www\mediawiki-1.30.0\includes\actions\EditAction.php(60): EditPage->edit()
- #9 C:\easyphp\www\mediawiki-1.30.0\includes\actions\SubmitAction.php(38): EditAction->show()
- #10 C:\easyphp\www\mediawiki-1.30.0\includes\MediaWiki.php(499): SubmitAction->show()
- #11 C:\easyphp\www\mediawiki-1.30.0\includes\MediaWiki.php(293): MediaWiki->performAction(Article, Title)
- #12 C:\easyphp\www\mediawiki-1.30.0\includes\MediaWiki.php(851): MediaWiki->performRequest()
- #13 C:\easyphp\www\mediawiki-1.30.0\includes\MediaWiki.php(523): MediaWiki->main()
- #14 C:\easyphp\www\mediawiki-1.30.0\index.php(43): MediaWiki->run()
- If this error can be fixed by running $ php update.php on our server then why not on the Windows server where our wiki located
- to execute in Command Line of DOS session the command C:\PHP\php.exe "C:\easyphp\www\mediawiki-1.30.0\maintenance\update.php"?
- Will it work, Ahmed?
- C:\PHP\ - is the directory to where our PHP installed,
- C:\easyphp\www\mediawiki-1.30.0\ - is the directory to where your MediaWiki 1.30.0 was downloaded.
- Are any parameters required, Ahmed? If this will not fix our problem then how to fix it?
- 2) Is it completely safe to execute this command since our current wiki is 1.26 and we work with current MySQL tables for 5 yeas without any issues.
- Ahmed, please provide your answers/comments to these questions 1) and 2) listed above.
- Thank you,
- Alex Filimonov 69.174.84.22 (talk) 20:33, 16 May 2018 (UTC)
- I mentioned PuTTY, because your directly previous comment asked about it.
- 1) I've never personally tried this, but this is probably how the maintenance script should be run on local Windows. Also appear to have worked for Manual talk:Maintenance scripts#How else to run update.php?.
- 2) Shouldn't be an issue, but maybe wait for someone more knowledgeable to comment. Additionally, you should always have a complete backup at hand, before upgrading. AhmadF.Cheema (talk) 06:01, 17 May 2018 (UTC)
- Hi. thank you for your reply!
- I guess we completed upgrade MediaWiki on our server to the version 1.30.0. It looks like everything is working fine besides of one thing - it's still shown about 15 vulnerabilities related to our current PHP version 5.6.26.In PHP vulnerabilities it's shown different alerts are shown in PHP before 5.6.28 and 7.x before 7.0.13
- To get rid of these PHP vulnerabilities can we 1) upgrade just PHP version on our server to version 7.2.6 or 7.1.18, which one is compatible with the MediaWiki 1.30.0 currently we have?
- 2) Where is the document that describes just PHP version upgrade on the server?
- Please let us know. Thank you!
- Alex 69.174.84.22 (talk) 22:32, 25 May 2018 (UTC)
- See Compatibility#PHP. Google will probably lead you to the relevant documentation regarding PHP upgrade. for your configuration. AhmadF.Cheema (talk) 22:51, 25 May 2018 (UTC)
Question about responsive design
Hello
After installing the wiki, the design on mobile not responsive, How to make it responsive? Raied85 (talk) 01:49, 9 May 2018 (UTC)
- You can install a skin that is actually responsive. Or you play with Extension:MobileFrontend which might or might not be what you want. :) Malyacko (talk) 09:06, 9 May 2018 (UTC)
How to make Wikipedia in several languages?
How to make Wikipedia in several languages? 178.92.121.157 (talk) 16:19, 9 May 2018 (UTC)
- Wikipedia already exists in several languages. See https://fr.wikipedia.org/ and https://es.wikipedia.org/ and dozens of other websites. AKlapper (WMF) (talk) 19:07, 9 May 2018 (UTC)
Wikipedia templates license?
RESOLVED | |
The license confirmed. Using export-import special functions for easier implementation. |
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.
- Are Wikipedia templates also in Creative Commons Attribution Share-alike license? If yes, please tell me what is the best way to attribute - within template or by creating a page listing all templates copied from Wikipedia?
- Also I found that in most occasions one template (in Wikipedia) is dependent on multiple other templates. So, if someone is copying a template, he/she has to copy multiple templates that it is dependent on ... and then other multiple templates that those are dependent on ... and so on. Is there any better way to make this process easier? Biologically (talk) 16:36, 9 May 2018 (UTC)
- 1: Yes they are. Attribution is a bit hard in this case, but you can use Special:Export, or use a link to the revision you are copying and put that in the history. Additionally you can put refernces in the /doc page of a template. etc. etc.
- 2: Special:Export, Special:Import (both need to be enabled however). —TheDJ (Not WMF) (talk • contribs) 18:21, 9 May 2018 (UTC)
- Thanks a lot. Biologically (talk) 02:32, 10 May 2018 (UTC)
MediaWiki localhost error
I am testing MediaWiki now and I am trying to install LiquidThreads buy I am getting an error.
MediaWiki internal error.
Original exception: [709964d20f1a8ee2f23ebf92] /MediaWiki/index.php/Main_Page Wikimedia\Rdbms\DBQueryError from line 1149 of C:\xampp\htdocs\MediaWiki\includes\libs\rdbms\database\Database.php: A database query error has occurred. Did you forget to run your application's database schema updater after upgrading?
Query: SELECT 1 FROM `user_message_state` WHERE ums_user = '1' AND ums_read_timestamp IS NULL LIMIT 500
Function: NewMessages::newMessageCount
Error: 1146 Table 'mediawiki.user_message_state' doesn't exist (localhost)
Backtrace:
#0 C:\xampp\htdocs\MediaWiki\includes\libs\rdbms\database\Database.php(979): Wikimedia\Rdbms\Database->reportQueryError(string, integer, string, string, boolean)
#1 C:\xampp\htdocs\MediaWiki\includes\libs\rdbms\database\Database.php(1343): Wikimedia\Rdbms\Database->query(string, string)
#2 C:\xampp\htdocs\MediaWiki\extensions\LiquidThreads\classes\NewMessagesController.php(394): Wikimedia\Rdbms\Database->select(string, string, array, string, array)
#3 C:\xampp\htdocs\MediaWiki\extensions\LiquidThreads\classes\Hooks.php(546): NewMessages::newMessageCount(User)
#4 C:\xampp\htdocs\MediaWiki\includes\Hooks.php(177): LqtHooks::onPersonalUrls(array, Title, SkinVector)
#5 C:\xampp\htdocs\MediaWiki\includes\Hooks.php(205): Hooks::callHook(string, array, array, NULL)
#6 C:\xampp\htdocs\MediaWiki\includes\skins\SkinTemplate.php(732): Hooks::run(string, array)
#7 C:\xampp\htdocs\MediaWiki\includes\skins\SkinTemplate.php(475): SkinTemplate->buildPersonalUrls()
#8 C:\xampp\htdocs\MediaWiki\includes\skins\SkinTemplate.php(249): SkinTemplate->prepareQuickTemplate()
#9 C:\xampp\htdocs\MediaWiki\includes\OutputPage.php(2442): SkinTemplate->outputPage()
#10 C:\xampp\htdocs\MediaWiki\includes\MediaWiki.php(858): OutputPage->output(boolean)
#11 C:\xampp\htdocs\MediaWiki\includes\MediaWiki.php(870): MediaWiki->{closure}()
#12 C:\xampp\htdocs\MediaWiki\includes\MediaWiki.php(523): MediaWiki->main()
#13 C:\xampp\htdocs\MediaWiki\index.php(43): MediaWiki->run()
#14 {main}
Exception caught inside exception handler: [709964d20f1a8ee2f23ebf92] /MediaWiki/index.php/Main_Page Wikimedia\Rdbms\DBQueryError from line 1149 of C:\xampp\htdocs\MediaWiki\includes\libs\rdbms\database\Database.php: A database query error has occurred. Did you forget to run your application's database schema updater after upgrading?
Query: SELECT 1 FROM `user_message_state` WHERE ums_user = '1' AND ums_read_timestamp IS NULL LIMIT 500
Function: NewMessages::newMessageCount
Error: 1146 Table 'mediawiki.user_message_state' doesn't exist (localhost)
Backtrace:
#0 C:\xampp\htdocs\MediaWiki\includes\libs\rdbms\database\Database.php(979): Wikimedia\Rdbms\Database->reportQueryError(string, integer, string, string, boolean)
#1 C:\xampp\htdocs\MediaWiki\includes\libs\rdbms\database\Database.php(1343): Wikimedia\Rdbms\Database->query(string, string)
#2 C:\xampp\htdocs\MediaWiki\extensions\LiquidThreads\classes\NewMessagesController.php(394): Wikimedia\Rdbms\Database->select(string, string, array, string, array)
#3 C:\xampp\htdocs\MediaWiki\extensions\LiquidThreads\classes\Hooks.php(546): NewMessages::newMessageCount(User)
#4 C:\xampp\htdocs\MediaWiki\includes\Hooks.php(177): LqtHooks::onPersonalUrls(array, Title, SkinVector)
#5 C:\xampp\htdocs\MediaWiki\includes\Hooks.php(205): Hooks::callHook(string, array, array, NULL)
#6 C:\xampp\htdocs\MediaWiki\includes\skins\SkinTemplate.php(732): Hooks::run(string, array)
#7 C:\xampp\htdocs\MediaWiki\includes\skins\SkinTemplate.php(475): SkinTemplate->buildPersonalUrls()
#8 C:\xampp\htdocs\MediaWiki\includes\skins\SkinTemplate.php(249): SkinTemplate->prepareQuickTemplate()
#9 C:\xampp\htdocs\MediaWiki\includes\OutputPage.php(2442): SkinTemplate->outputPage()
#10 C:\xampp\htdocs\MediaWiki\includes\exception\MWExceptionRenderer.php(135): OutputPage->output()
#11 C:\xampp\htdocs\MediaWiki\includes\exception\MWExceptionRenderer.php(54): MWExceptionRenderer::reportHTML(Wikimedia\Rdbms\DBQueryError)
#12 C:\xampp\htdocs\MediaWiki\includes\exception\MWExceptionHandler.php(75): MWExceptionRenderer::output(Wikimedia\Rdbms\DBQueryError, integer)
#13 C:\xampp\htdocs\MediaWiki\includes\exception\MWExceptionHandler.php(130): MWExceptionHandler::report(Wikimedia\Rdbms\DBQueryError)
#14 C:\xampp\htdocs\MediaWiki\includes\MediaWiki.php(550): MWExceptionHandler::handleException(Wikimedia\Rdbms\DBQueryError)
#15 C:\xampp\htdocs\MediaWiki\index.php(43): MediaWiki->run()
#16 {main} Кд.орг.рс (talk) 17:59, 9 May 2018 (UTC)
- Did you forget to run your application's database schema updater after upgrading? Ciencia Al Poder (talk) 09:17, 10 May 2018 (UTC)
- Can you send me a link? Кд.орг.рс (talk) 13:22, 10 May 2018 (UTC)
- See Manual:Update.php. AhmadF.Cheema (talk) 13:59, 10 May 2018 (UTC)
font awesome icons in sidebar
Is there a way to prepend the sidebar menu with font-awesome icons?
i.e.:
MainPage
(icon) Section 1
(icon) Section 2
(also - is there a way to have these show up in mobile?) Rkasparek (talk) 19:38, 9 May 2018 (UTC)
- Wikirouge has been customized to include icons in the sidebar. See their MediaWiki:Vector.css. The lines which include the word "icones".
- However, the customizing the mobile view will require a different set of customizations. AhmadF.Cheema (talk) 00:55, 10 May 2018 (UTC)
HTTPS not accessing my wiki
The following discussion is closed. Please do not modify it. Subsequent comments should be made on the appropriate discussion page. No further edits should be made to this discussion.
I have been doing a lot of browsing to set my mediawiki up to use HTTPS only. I created my key, i adjusted default.conf to have a virtual host at 81 for the http portion of the site initially and it worked perfectly. I added a permanent redirect into that virtual host and then added a new virtual host at 82 which is where I want my https port to be. I edited default-ssl.conf to point to my server. I updated ports.conf for port 82. I ran a2enmod ssl, headers, default-ssl, and ssl-params and apache2ctl configtest shows syntax ok. I can access the apache default page on both http and https. Accessing http://server/mediawiki:81 forwards me to https://server/mediawiki:82mediawiki/ for some reason and says can't connect to site which is obvious. However manually entering https://server/mediawiki:82 also says can't connect to site. 216.16.215.242 (talk) 20:32, 9 May 2018 (UTC)
- the port number must be specified right after the host name. It should be:
https://server:82/mediawiki
Ciencia Al Poder (talk) 09:16, 10 May 2018 (UTC)- Thanks, apparently I was trying to think the problem was more advanced than my being stupid 216.16.215.242 (talk) 19:02, 11 May 2018 (UTC)
Page Forms Freetext Syntax is Unclear
RESOLVED | |
works:{{{standard input|free text|hidden|preload=Template:Tag/Preload}}}note spaces in "standard input" and "free text". Be sure not to place into "noinclude" section. |
The following discussion is closed. Please do not modify it. Subsequent comments should be made on the appropriate discussion page. No further edits should be made to this discussion.
This section calls Freetext a "tag", which takes parameters. That implies it should begin:
{{{freetext...But this section sounds like freetext is a parameter passed to standard input:
{{{standard input|freetext..i tried this, and didn't work:
{{{standard input|freetext|preload=Tag/preload}}}i tried this, and didn't work:
{{{freetext|preload=Tag/preload}}}Also, i noticed {{#forminput: tag begins with a # and 2 braces. When do i use a # and 2 braces? When do i use no # and 3 braces?
Can someone please explain. thx
@Yaron Koren Johnywhy (talk) 00:56, 10 May 2018 (UTC)
- {{{text}}} is a parameter (used in templates)
- {{#tag:}} is an extension tag. 121.219.236.56 (talk) 03:22, 11 May 2018 (UTC)
It seems I can't edit pages
RESOLVED | |
Concact x3wiki staff |
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!
Just wanted to add some info from Litcube's Universe to the Stock Exchange page in the x3wiki (just add the sectors of the stations, since it seems that Litcube changed some from vanilla).
Link to the section I tried to edit: https://www.x3wiki.com/index.php/Stock_Exchange#Stock_Exchanges
The problem is that it simply won't let me, so I was wondering if someone of you could please make the edit instead (if deemed worthy, of course)?
Thank you for your time.
Here's the error: [WvOcCVkfZokAAE2ht-YAAAAO] 2018-05-10 01:10:35: Fatal exception of type "Wikimedia\Rdbms\DBQueryError"
And here's the full code for the section as I would have edited it:
P.S. Great, I can't even paste the code - it'll be a wonder if I'll be able to post this at all! :(
Stock Exchanges
In the unmodded game: (list is incomplete)
Argon Stock Exchange | Boron Stock Exchange | Teladi Stock Exchange | Terran Stock Exchange |
Split Stock Exchange | Paranid Stock Exchange | Yaki Stock Exchange |
In the mod Litcube's Universe:
Argon Stock Exchange | Boron Stock Exchange | Teladi Stock Exchange | Terran Stock Exchange |
Split Stock Exchange | Paranid Stock Exchange | Yaki Stock Exchange | Pirate Stock Exchange |
Template:Stationcategory 93.39.139.18 (talk) 01:11, 10 May 2018 (UTC)
- Hi. The problem you describe has to do with some internal issue with the server running x3wiki. We do not host that wiki, and are unable to see what's the issue. You should find a way to contact x3wiki staff to let them know about this (a contact email, social media, etc) Ciencia Al Poder (talk) 09:14, 10 May 2018 (UTC)
- Thanks, I'll try to contact them. 93.39.139.18 (talk) 10:10, 10 May 2018 (UTC)
How to update mainpage to be login page
Hi All,
I am a newbie in mediawiki and recently installed in my server running below versions.
Now, we are trying to change the main page in such a way that once the mediawiki link click, it will show the login page. We however tried a lot of options but still could get this running.
Our goal is to keep the portal/data only visible to registered user.
Is there anyone here already have a setup like this?
Any help will be much appreciated!
Thanks,
Alex Alexpasco11 (talk) 05:51, 10 May 2018 (UTC)
- Below is my setting by the way:
- Application Name and version :
- · Mediawiki Version 1.24.2
- · Apache
- · PHP
- · MySQL(mariadb)
- Server Information:
- · OS Version:
- · Red Hat Enterprise Linux Server 7.0 Alexpasco11 (talk) 06:17, 10 May 2018 (UTC)
- Please update your MediaWiki version to get help. Please see Version lifecycle.
- If you don't update, your wiki will at risk of "critical security vulnerabilities and other major bugs" and you won't get any help. 2A02:C7F:963F:BA00:F994:BDD4:9421:9D4A (talk) 06:59, 10 May 2018 (UTC)
- See Manual:Preventing access Ciencia Al Poder (talk) 09:11, 10 May 2018 (UTC)
- Hi guys, thanks for the advise, any specific version i need to use for my update? Alexpasco11 (talk) 03:11, 11 May 2018 (UTC)
- You should use any supported version. Ideally the most recent version, that will have longer support. Currently I'd recommend 1.30 or 1.27. See also if you want some features like Visual Editor or Mobile Front end you'll need a recent version of MediaWiki. Ciencia Al Poder (talk) 09:09, 11 May 2018 (UTC)
Trouble with ShortUrl on websapce with cPanel
I hope anyone can help me. I have a hosted webspace and I have installed MediaWiki without any extensions in https://abcd.com/wiki
when go on the set I will be redirected to https://abcd.com/wiki/index.php/Hauptseite (it is a german wiki). But I want the short url https://abcd.com/wiki/Hauptseite
I have made a .htaccess File in the https://abcd.com/wiki/ folder with this:
RewriteEngine On
RewriteRule ^wiki/(.*)$ wiki/index.php?title=$1 [PT,L,QSA]
RewriteRule ^wiki/*$ wiki/index.php [L,QSA]
RewriteRule ^wiki$ wiki/index.php [L,QSA]
And in the LocalSettings.php I set:
$wgScriptPath = "/wiki";
$wgArticlePath = "$wgScriptPath/$1";
When I now go the wiki I get the error I will redirected to https://abcd.com/wiki/Hauptseite
and get this error:
Not Found
The requested URL /wiki/Hauptseite was not found on this server.
Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.
I have no more ideas... Thank you for help a frustrated man ;) 80.255.7.105 (talk) 11:01, 10 May 2018 (UTC)
- It's not a good idea to have short URLs at the same path that the index.php script.
- If you rewrite /wiki/Hauptseite to /wiki/index.php?title=Hauptseite, the server may redirect it again to /wiki/index.php?title=index.php?title=Hauptseite again and again...
- The ideal solution would be to move your wiki to /w or /mediawiki (something that doesn't contain the same path that /wiki) to prevent such issues. Then change $wgScriptPath = "/w"; $wgArticlePath = "/wiki/$1"; Ciencia Al Poder (talk) 09:39, 11 May 2018 (UTC)
- Hi!
- Ok, thank you for the answer. I will try it! DerBrezelmann (talk) 10:01, 11 May 2018 (UTC)
A little explaination on Bot and tokens?
I can't figure out this problem actually.
I can successfully log in on my private wiki with my bot, and the response of the server is this:
["login"]=>
array(3) {
["result"]=>
string(7) "Success"
["lguserid"]=>
int(4)
["lgusername"]=>
string(8) "BotUser"
}.
This means, i suppose, that the login action went ok and i successfully logged in with my script.
Then this bot is supposed to create new pages, i need to fetch a CSRF token. I send a GET request to mwAPI with this data as postfields:
api.php?action=query&meta=tokens&type=csrf&format=json
The response is this:
array(2) {
["batchcomplete"]=>
string(0) ""
["query"]=>
array(1) {
["tokens"]=>
array(1) {
["csrftoken"]=>
string(2) "+\"
}
}
}
From manual, i know that "+\" token is for unregistered users. With no restrictions, i can create new articles on my wiki, but If i restrict the ability to create new pages from '*' to registered users at least, i can't create new pages. Probably i got something wrong with tokens, but can't totally understand what.
My bot has an account, with bot privileges and flags, and he's into Bot user group who can actually use api and writeapi is enabled in LocalSettings.php. What did i miss?.
I tried also to log in as a botpassword account, but i couldn't edit pages for the same problem.
If anyone would be so kind to understand this problem and help me, i would be so grateful. Thanks for your time! Andrea.bozzano87 (talk) 11:54, 10 May 2018 (UTC)
- Did you save the returned cookies and include them in your subsequent requests? 121.219.236.56 (talk) 03:14, 11 May 2018 (UTC)
- Actually i setted a cookiejar and cookie file with the curl method to send requests to my server, and i call for it in every request i make.. Could it be that the cookiejar file and cookie file can't be the same txt file? I'll try later, maybe its just this that causes the problem.
- I'm actually doing requests with curl method in php, so i wrote a sort of function that performs POST requests to api, something like this:
- $ch=curl_init();
- $url_post=$wikiurlapi;
- curl_setopt($ch, CURLOPT_URL, $url_post);
- curl_setopt($ch, CURLOPT_POST, TRUE);
- curl_setopt($ch, CURLOPT_COOKIEJAR, 'cookie.txt');
- curl_setopt($ch, CURLOPT_COOKIEFILE, 'cookie.txt');
- curl_setopt($ch, CURLOPT_USERAGENT, $UserAgent);
- curl_setopt($ch, CURLOPT_POSTFIELDS, $PostData);
- curl_setopt($ch, CURLOPT_RETURNTRANSFER, TRUE);
- curl_setopt($ch, CURLOPT_HTTPHEADER, array($ContentType));
- curl_setopt($ch, CURLOPT_HEADER, FALSE);
- $response=curl_exec($ch);
- $ResponseDecoded=json_decode($response,true);
- and then the $ResponseDecoded is what i get, sometimes a "+/" token, sometimes NULL... Andrea.bozzano87 (talk) 11:59, 14 May 2018 (UTC)
How to check if a certain page exists using JavaScript
Is there any way to check if a specific page exists, using JavaScript, and run a function only if it does? Guycn2 (talk) 12:45, 10 May 2018 (UTC)
- Maybe you could perform a query on the database, searching for pages having titles similar to that page, or fetch the id from that page. Then you could implement a check, like:
- result=query on the db where title like *page to look for*
- if (result has rows)
- {
- it exists!run the function()
- } else {
- it doesnt exists!dont do nothing!
- } Andrea.bozzano87 (talk) 13:09, 10 May 2018 (UTC)
- Use the API.
- 121.219.236.56 (talk) 03:09, 11 May 2018 (UTC)
new mw.Api().get( { action: "query", titles: [ "This doesn't exist", "Main Page" ], } ).then( function( ret ) { $.each( ret.query.pages, function() { if ( this.missing !== "" ) { doTheThing(); } else { dontDoTheThing(); } } ); }, function( error ) { dontDoTheThing(); } );
Fileinfo not available on my hosted srver
After the most recent update of MediaWiki it stopped working, saying that PHP Fileinfo was required. I asked my hosting company (Lunarpages) and they said "Unfortunately, Fileinfo is not currently supported on any of our shared hosting servers due to the amount of RAM that fileinfo requires.". I had to roll back to a previous backup to get it working again. Now they are hounding me to update the script becasue it is out of date, but I can't. Is there any way to use MediaWiki without this Fileinfo? 115.69.160.123 (talk) 17:40, 10 May 2018 (UTC)
- Are they trying to fool you?
- First you did the upgrade and it was not your fault that their servers do not support the new version of MediaWiki. Fileinfo is not optional, but required. And now they tell you to upgrade although they already know exactly that it is not working and even why it is not working? Sounds like a bad joke to me.
- That is what I call poor customer "support"! 2001:16B8:106C:1E00:85DC:90C0:BC70:41EA (talk) 19:56, 10 May 2018 (UTC)
Attempting to install LiquiFlow skin, having Fatal Exception type "ConfigException"
Trying to install the LiquiFlow skin for a wiki, however I'm getting the following report when loading the main wiki page:
MediaWiki internal error.
Original exception: [WvSe3bfuxEr7Pk9RNuUTbgAAARg] 2018-05-10 19:34:54: Fatal exception of type "ConfigException"
Exception caught inside exception handler. 82.4.127.223 (talk) 19:37, 10 May 2018 (UTC)
- See Manual:How to debug for enabling additional information. A Fatal exception of type "ConfigException" message is not sufficiently meaningful to get help. Ciencia Al Poder (talk) 09:34, 11 May 2018 (UTC)
Forward search request but keep Special:Search?
For website visitors I'd like to forward searches to a different URL using Manual:$wgSearchForwardUrl but need to keep the standard MW search page for internal use. Unfortunately, setting $wgSearchForwardUrl to a different URL (which requires that $wgDisableTextSearch is set to true) also adds a redirect from Special:Search to the alternative URL. Is there any way the two approaches can live together? Cavila 20:00, 10 May 2018 (UTC)
- Now also posted on Phabricator, with some further clarification: https://phabricator.wikimedia.org/T194569 Cavila 09:16, 12 May 2018 (UTC)
Pagename ending in period (.)
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.
On our system we typically have registrations by Lastname, Firstname, Middlename. In one case our member had “A.” for his middle name. While I can use his URL copied from the address bar, and bring up a copy of his page, when I try to post it in messenger or on Facebook it posts the URL without the period... probably something that the messaging program/Facebook deletes. Anyway, is there someway to delete the period from the actual URL, and leave it in the pagename of the displayed page? In other words, the URL would be https://mywebsite/wiki/Lastname,_Firstname_A and the displayed pagename would be Lastname, Firstname A. ? Rkasparek (talk) 02:02, 11 May 2018 (UTC)
- You have several options:
- Rename the page to the one that doesn't contain the URL and use the DISPLAYTITLE: magic word to add the dot to the title ($wgRestrictDisplayTitle should be set to false for this to work)
- Create a redirect from
Lastname, Firstname A
toLastname, Firstname A.
- When sharing the link, force a URL-encode of the last dot (%2E) Ciencia Al Poder (talk) 09:32, 11 May 2018 (UTC)
- Perfect! That worked very well! Thank you! Rkasparek (talk) 13:40, 11 May 2018 (UTC)
ENG Wikinews's Edittools not working properly
There may be issues with English Wikinews's Edittools or its javascript code for Edittools. I tried raising the issue there, but then I receive responses from one user using IP address and no other.
I was able to reproduce the error. Quoting my own message from this page:
“ |
|
” |
I tested the tools at IE11 and Google Chrome 66.0.3359.170 (latest stable version); the steps there were reproduced well. I also tested Firefox 60.0 (latest stable version); while the scroll menu always appears, making #2 un-reproductive, the other steps also occur. I realized that I was wrong about Firefox-EditTools interaction; the tools don't work. George Ho (talk) 03:03, 11 May 2018 (UTC)
- Could you take a look at your web browser's developer tools? If there is a problem or an error with JavaScript it should be printed in the 'console' of the developer tools. For more information please see: https://developer.mozilla.org/en-US/docs/Tools/Web_Console for Firefox / https://developer.chrome.com/devtools for Chrome. Thanks! Malyacko (talk) 02:04, 13 May 2018 (UTC)
- When I was using IE11's dev tools (i.e. F12 key), I could not find "unhandled exceptions". Nonetheless, I went to the editor, and then I opened up the dev tools. I found this error:
This occurs only when I don't open the dev tools until after I open the editor.SCRIPT16389: Unspecified error.
File: index.php, Line: 1, Column: 1 - Moreover, when I used the scroll menu from the Edittools and then changed from one submenu to another (e.g. "Templates" to "Wikicode", I found this warning (not an error):
DOM7011: The code on this page disabled back and forward caching. For more information, see: http://go.microsoft.com/fwlink/?LinkID=291337
File: index.php - Then I chose to pause on "all exceptions"; I found multiple warnings saying that specific syntax codes (or tools?) are "deprecated".
- Then I went to Chrome's dev tools. I found one "warning" message:
Use of "skin" is deprecated. Use mw.config instead.
It also came with the link: https://en.wikinews.org/w/load.php?debug=false&lang=en&modules=jquery%2Cmediawiki%7Cmediawiki.legacy.wikibits&only=scripts&skin=vector&version=0upuj5q- Also, when I clicked on the scroll menu, one of "verbose" messages appears:
This link came with it: https://en.wikinews.org/w/index.php?title=Wikinews:Water_cooler/policy&action=edit§ion=new#[Violation] Added non-passive event listener to a scroll-blocking 'mousewheel' event. Consider marking event handler as 'passive' to make the page more responsive. See https://www.chromestatus.com/feature/5745543795965952
- Then I went to Firefox's. I found this warning:
Other browsers' dev tools have this similar message. I could not find exceptions or errors, according to Firefox's dev tools. I found another message:Use of "skin" is deprecated. Use mw.config instead.
Other browsers' dev tools receive the same message, but they don't treat it like a warning (or something like that). George Ho (talk) 04:21, 13 May 2018 (UTC)JQMIGRATE: Migrate is installed with logging active, version 3.0.1
- The "Unspecified error" looks like something to investigate. See Help:Locating broken scripts for using "debug=true". Malyacko (talk) 19:31, 14 May 2018 (UTC)
- I ran the "
debug=true
" JS code at IE11. I found this exception:SCRIPT5007: Unable to get property 'getUrl' of undefined or null reference
File: load.php, Line: 3869, Column: 3 - Then I ran dev tools at Chrome and found this:
Uncaught TypeError: Cannot read property 'getUrl' of undefined
at HTMLDocument.<anonymous> (https://en.wikinews.org/w/index.php?title=MediaWiki%3AComments.js&action=raw&ctype=text/javascript)
at mightThrow (https://en.wikinews.org/w/load.php?debug=true&lang=en&modules=jquery%2Cmediawiki%7Cmediawiki.legacy.wikibits&only=scripts&skin=vector&version=0upuj5q)
at process (https://en.wikinews.org/w/load.php?debug=true&lang=en&modules=jquery%2Cmediawiki%7Cmediawiki.legacy.wikibits&only=scripts&skin=vector&version=0upuj5q) - I'll use Firefox's dev tools soon. George Ho (talk) 22:08, 14 May 2018 (UTC)
- Used Firefox 60.0's dev tools. It has this
exceptionerror (actually):TypeError: mw.util is undefined (Learn More) index.php:58:8
George Ho (talk) 00:10, 15 May 2018 (UTC)
<span style="margin:2em;"<anonymous> https://en.wikinews.org/w/index.php:58:8
mightThrow https://en.wikinews.org/w/load.php:3583:21
resolve/</process< https://en.wikinews.org/w/load.php:3651:12- Whatever gadget or user script file "index.php:58:8" points to, it needs fixing the usage of mw.util. See https://phabricator.wikimedia.org/T164242 for hints.
- Similar for "Unable to get property 'getUrl' of undefined or null reference" above. Malyacko (talk) 09:13, 15 May 2018 (UTC)
- Though the reply is five months late, I figured that I can push the topic up.
- I realized that the error message is unrelated to the issue with edittools, Malyacko. When I was using
debug=true
in the address bar, like I did with this page, I just noticed that the "Opinions" tab, a local en-wikinews gadget, doesn't appear. Nevertheless, the error message from the developer tools was addressing an unrelated concern (about "Opinions" tab), not this one (about edittools). George Ho (talk) 10:09, 28 October 2018 (UTC)
How To Preload with Extension:Form_Pages?
RESOLVED | |
{{{standard input|free text|hidden|preload=Template:Tag/Preload}}}Note spaces in "standard input" and "free text". Note triple curly-braces. |
The following discussion is closed. Please do not modify it. Subsequent comments should be made on the appropriate discussion page. No further edits should be made to this discussion.
Just need example code. The following doesn't work for me:
{{{standard input|freetext|preload=Tag/preload}}}@Yaron Koren Johnywhy (talk) 03:17, 11 May 2018 (UTC)
Uploading videos
Hi, I´ve tried several times to upload a video to the Spanish César Sánchez Pérez profile (https://es.wikipedia.org/wiki/César_Sánchez_Pérez) and I can´t because the upload was "identified as harmful".
The video was converted to .ogg and it is about one of César's policies. It was recorded and edited by the team I´m working with so I don´t know why it´s identified as harmful. IPF19 (talk) 07:15, 11 May 2018 (UTC)
- Since I guess you're trying to upload the video on Commons, you should ask on commons:Commons:Help desk Ciencia Al Poder (talk) 09:13, 11 May 2018 (UTC)
How to selectively disable caching? Per transclude, template, or sub-section.
I want to force a transclude to always refresh, even if caching is enabled for the wiki.
is there a way to disable caching:
- per transclude, or
- all transcludes, or
- per template, or
- all templates, or
- by page sub-section?
I could not find a solution on Template manual, Transclusion manual, or magic words manual. Johnywhy (talk) 07:26, 11 May 2018 (UTC)
What Extension Setup-File Works with wfLoadExtension?
The TopicTags.php: setup file below works with
require_once "$IP/extensions/TopicTags/TopicTags.php";
but it does not work with
# wfLoadExtension( 'TopicTags' );
TopicTags.php:
<?php ## Abort if not used within Mediawiki if( !defined( 'MEDIAWIKI' ) ) { echo( "This file is an extension to the MediaWiki software and cannot be used standalone.\n" ); die(); } ## Register extension setup hook and credits: $wgExtensionCredits['other'][] = array( 'name' => 'TopicTags', 'version' => '1.0.0', 'author' => array('Johny Why'), 'url' => 'http://www.mediawiki.org/wiki/Extension:TopicTags', 'description' => 'Enables topic-tags that can be applied to specific locations on pages.' );
What's correct format for wfLoadExtension?
I reviewed help files, but can't find the solution. Johnywhy (talk) 09:22, 11 May 2018 (UTC)
- An extension.json file is required to make the newer wfLoadExtension work, such as Extension:WikiEditor's extension.json file. AhmadF.Cheema (talk) 12:52, 11 May 2018 (UTC)
After upgrade to 1.30 old images no longer displayed/new uploaded are
The following discussion is closed. Please do not modify it. Subsequent comments should be made on the appropriate discussion page. No further edits should be made to this discussion.
I tried to upgrade my MediaWiki from 1.27 to 1.30 which failed due to some issue with my LocalSettings.php - so created a new LocalSettings.php which at least got the wiki to work.
But now my old pictures are no longer displayed (new uploaded pictures are displayed just fine, as well as the Creative Commons ones and external ones.)
The issue seems to be that the old image url points to the hashed subdirectory (where there is no image file) instead to images/ where the file actually is located.
Example:
https://spookyverse.de/wiki/Datei:Pfeil_dunkel.gif is not diplsayed.
The original size file points to https://spookyverse.de/images/8/87/Pfeil_dunkel.gif which results in a
"Forbidden You don't have permission to access /images/index.php on this server."
message (Which I think is due to the .htaccess in the images directory that comes with mediawiki to fix a bug). Checking in the FTP, there is no file a that location (and never was since this is backup of the image directory from my 1.27. backup that used to work). However the image file can be displayed when accessed directly for example with https://spookyverse.de/images/Pfeil_dunkel.gif so the file is there and readable. The /images/ folder and als sub directories are set to 0755.
Observations:
- I didn't change anything regarding the $wgHashedDirectory settings or the $wgGenerateThumbnailOnParse (which was set default, true)
-I didn't change any of the .htaccess files
- if I run checkImages.php I get a long list of "missing" messages for the images that are not displayed (but yet they are present in /images/)
- If I run rebuildImages.php I get "Empty oi_archive_name for oi_name" for the images not displayed
- I consulted Manual:Errors and symptoms#Image Thumbnails not working and.2For appearing, it's not the setlocale bug
MediaWiki | 1.30.0 |
PHP | 5.6.36 (apache2handler) |
MySQL | 5.6.39-83.1-log |
ICU | 4.8.1.1 |
Any ideas/help to resolve this issue is appreciated.
Some Debug Info for the image page (basically it says "File does not exists"):
File::transform: Doing stat for mwstore://local-backend/local-thumb/8/87/Pfeil_dunkel.gif/12px-Pfeil_dunkel.gif
TransformationalImageHandler::doTransform: creating 12x12 thumbnail at /tmp/transform_e93d8b543e33.gif using scaler client
TransformationalImageHandler::doTransform: returning unscaled image
File::transform: Doing stat for mwstore://local-backend/local-thumb/archive/8/87/20071123143805!Pfeil_dunkel.gif/12px-Pfeil_dunkel.gif
[FileOperation] FileBackendStore::getFileStat: File mwstore://local-backend/local-thumb/archive/8/87/20071123143805!Pfeil_dunkel.gif/12px-Pfeil_dunkel.gif does not exist.
TransformationalImageHandler::doTransform: creating 12x12 thumbnail at /tmp/transform_aff040fbc18b.gif using scaler client
TransformationalImageHandler::doTransform: returning unscaled image
File::transform: Doing stat for mwstore://local-backend/local-thumb/archive/8/87/20071123143805!Pfeil_dunkel.gif/12px-Pfeil_dunkel.gif
TransformationalImageHandler::doTransform: creating 12x12 thumbnail at /tmp/transform_e1dcc8f0fc32.gif using scaler client
TransformationalImageHandler::doTransform: returning unscaled image
File::transform: Doing stat for mwstore://local-backend/local-thumb/archive/8/87/20071123143259!Pfeil_dunkel.gif/12px-Pfeil_dunkel.gif
[FileOperation] FileBackendStore::getFileStat: File mwstore://local-backend/local-thumb/archive/8/87/20071123143259!Pfeil_dunkel.gif/12px-Pfeil_dunkel.gif does not exist.
TransformationalImageHandler::doTransform: creating 12x12 thumbnail at /tmp/transform_7f0ee14e055c.gif using scaler client
TransformationalImageHandler::doTransform: returning unscaled image
File::transform: Doing stat for mwstore://local-backend/local-thumb/archive/8/87/20071123143259!Pfeil_dunkel.gif/12px-Pfeil_dunkel.gif
TransformationalImageHandler::doTransform: creating 12x12 thumbnail at /tmp/transform_0308638191c4.gif using scaler client
TransformationalImageHandler::doTransform: returning unscaled image
File::transform: Doing stat for mwstore://local-backend/local-thumb/archive/8/87/20070718212201!Pfeil_dunkel.gif/12px-Pfeil_dunkel.gif
[FileOperation] FileBackendStore::getFileStat: File mwstore://local-backend/local-thumb/archive/8/87/20070718212201!Pfeil_dunkel.gif/12px-Pfeil_dunkel.gif does not exist.
TransformationalImageHandler::doTransform: creating 12x10 thumbnail at /tmp/transform_f4b4d03f69dd.gif using scaler client
TransformationalImageHandler::doTransform: returning unscaled image
File::transform: Doing stat for mwstore://local-backend/local-thumb/archive/8/87/20070718212201!Pfeil_dunkel.gif/12px-Pfeil_dunkel.gif
TransformationalImageHandler::doTransform: creating 12x10 thumbnail at /tmp/transform_d8184cbb224b.gif using scaler client
TransformationalImageHandler::doTransform: returning unscaled image
File::transform: Doing stat for mwstore://local-backend/local-thumb/archive/8/87/20070718212054!Pfeil_dunkel.gif/12px-Pfeil_dunkel.gif
[FileOperation] FileBackendStore::getFileStat: File mwstore://local-backend/local-thumb/archive/8/87/20070718212054!Pfeil_dunkel.gif/12px-Pfeil_dunkel.gif does not exist.
CayceP (talk) 09:28, 11 May 2018 (UTC)
- Nevermind. I was able to debug my LocalSettings.php from 1.27.0 so it's working again and in this the images are displayed. Still trying to figure out why it didn't work because the image settings are basically the same, so it must some other config that broke them... CayceP (talk) 10:09, 14 May 2018 (UTC)
- The upload directory layout is controlled by $wgHashedUploadDirectory. You probably forgot to add it to the new LocalSettings.php Ciencia Al Poder (talk) 09:13, 15 May 2018 (UTC)
Change links in Multimediaviewer
Where can I edit the links in the Multimediaviewer. For example the license link goes to https://commons.wikimedia.org/wiki/File:Beispiel.jpg, not in my wiki.
Regards
Brezelmann DerBrezelmann (talk) 10:04, 11 May 2018 (UTC)
Customise account-creation automatic email
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 which file contains the automatic email generated once a new account is created. As you know, at this moment the automatic email is as follows:
Someone created an account for your email address on XXXX (https://XXXX) named "XXXX", with password "XXXX". You should log in and change your password now. You may ignore this message, if this account was created in error.
Because of GDPR, I would like to add a couple of links related to our privacy policy making sure that they are aware.
Many thanks in advance! 188.39.229.82 (talk) 10:55, 11 May 2018 (UTC)
- It's translation key createaccount-text. —TheDJ (Not WMF) (talk • contribs) 11:17, 11 May 2018 (UTC)
- Omg, that was really easy. Many thanks! 188.39.229.82 (talk) 13:23, 11 May 2018 (UTC)
Chunk of text deletes itself when editing.
RESOLVED | |
The server resolved itself just as I was going to run more diagnostics relating to RegExp. |
The following discussion is closed. Please do not modify it. Subsequent comments should be made on the appropriate discussion page. No further edits should be made to this discussion.
It has come to my attention that when adding something to this page, a chunk of text (about 750-800 characters long) deletes itself when editing.
Steps reproduced:
- Visit https://nsindex.net/wiki/Policies;
- Click “Edit”;
- Click “Show Changes” to expose the problem.
- Clicking “Show Changes” again worsens the problem.
- Clicking “Show Changes” again worsens the problem further.
Version information: https://nsindex.net/wiki/Special:Version
Another example of the issue: https://nsindex.net/w/index.php?title=2nd_Nuclear_Apocalypse&diff=39947&oldid=28571
The problem only seems to happen on Firefox 60.0, even with a fresh profile. It appears that Safari 11.1 is not affected. Edit: it seems to happen with any long pages. It basically goes like this:
- Click “Edit”;
- Click “Show Changes” and a chunk of text goes missing.
- Click “Show Changes” and another chunk of text goes missing. Minoa (talk) 11:24, 11 May 2018 (UTC)
- Try saving some edit in a sandbox/test page. Does the edit save correctly or some different text appears when the sandbox/test page is viewed?
- Also, has there recently been performed a database restore or something? AhmadF.Cheema (talk) 16:39, 11 May 2018 (UTC)
- Hi, I did a simple paste and save at this page. If it worked properly, then it would look like the syntax here.
- However, the edit would not preview or save properly, causing about 750 to 1,000 characters of the existing text to be deleted under said edits, about 14,000 characters (or two-thirds) in (or somewhere around here).
- NSindex did not perform a database restore before discovering the problem. The problem only began very recently, most certainly after this edit on 6 May 2018.
- Another problem I notice is one of the long-existing users do not get their edits autopatrolled (such as this one), even with the following setting:
- $wgAutoConfirmAge = 86400*7;
- $wgAutoConfirmCount = 10;
- The last upgrade of NSindex was in December, with the release of MW1.30.
- Side note, I already ran update.php and rebuildall.php
- Extra: occasionally, we also get the Error 503 “Backend fetch failed” error under a Varnish L7 server.
- Extra 2: I also checked if it was my (paid) VPN, and the problems continued even with the VPN disabled. Minoa (talk) 18:16, 11 May 2018 (UTC)
- The edit summary said new key for Category:Nuclear Apocalypse: "#02" using HotCat. Maybe HotCat is broken somehow on your wiki? Ciencia Al Poder (talk) 09:30, 14 May 2018 (UTC)
- Hi, I do not think it is HotCat because I ran a test just now where I added two words, and overall about 700 bytes were chopped off while saving: https://nsindex.net/w/index.php?title=User:Minoa/sandbox_test&diff=40165&oldid=39992
- I think this is a caching issue or something. Sorry that I’m not a total expert in MediaWiki. Minoa (talk) 14:54, 14 May 2018 (UTC)
- The thing is, the chunk of deleted text isn't from the end, but from the middle of the page. This discards problems with the server truncating the input.
- Does this problem happen with other users? Have you tried using a different browser? Just to see if the browser (or a browser extension) may be the problem here Ciencia Al Poder (talk) 19:20, 14 May 2018 (UTC)
- Hi, with all due respect, I did test Firefox with a blank profile (with no extensions). I also tested it on Safari. I also did the test on a vanilla installation on the same instance: https://minoa.li/w/index.php?title=Policies&diff=4&oldid=3
- (Edited for better link). Minoa (talk) 10:33, 15 May 2018 (UTC)
- I'm unable to see what`s happening. I've did a little JavaScript test to send the contents of the page to API:Parse and check that it returns the same wikitext (just checking it contains the same lenght) and it works correctly. Something must be breaking it somewhere but I don't see a reason why.
- It seems to happen, however, inside of <ref> tags. I think there must be something, maybe on the server itself, that's running a scary RegExp trying to remove things from the imput.
- Can you try saving a page with about the same size but without ref tags? And without templates? You can try a quick find&replace of < and { characters with something else Ciencia Al Poder (talk) 15:09, 15 May 2018 (UTC)
- It appears that the server fixed itself just as I was going to run a few more tests. So I guess I have to close this.
- Either that or I am just not that good at servers, despite a valiant effort to be good. :-( Minoa (talk) 19:14, 15 May 2018 (UTC)
books are not in order
I always keep library sort decending by Entry Date. Now I have four books at the top of the list from August of 2017. They weren't there yesterday. Rogbert5949 (talk) 13:04, 11 May 2018 (UTC)
Hide recent changes until is approved (patrolled)
Is it possible to hide changes in the articles until an administrator approved them? Antonioagar1 (talk) 14:20, 11 May 2018 (UTC)
- See Extension:Approved Revs or Extension:Moderation. AhmadF.Cheema (talk) 16:19, 11 May 2018 (UTC)
- After installing ApprovedRevs, I am having a php error and the wiki is not being displayed. Thanks anyway! Antonioagar1 (talk) 11:04, 16 May 2018 (UTC)
- If you would like help with the error, see, Manual:How to debug. Otherwise Extension:Moderation should be enough too. AhmadF.Cheema (talk) 14:03, 16 May 2018 (UTC)
- Did you run update.php? 220.101.5.170 (talk) 02:20, 17 May 2018 (UTC)
- I have this error:
- Error: 1146 Table 'volunt83_mw19499.mwwn_approved_revs' doesn't exist (localhost) Antonioagar1 (talk) 14:54, 17 May 2018 (UTC)
- Please run the update.php script to add the missing tables! 2001:16B8:10D4:EF00:3440:5185:F703:9C41 (talk) 19:43, 17 May 2018 (UTC)
GDPR compliance
- I'm struggling to find ANYTHING related to how MediaWiki will be updated for GDPR compliance.
- I really don't want to have to remove my wiki, but I can't find anything to help with this. 92.239.152.76 (talk) 21:49, 11 May 2018 (UTC)
- In how far should MediaWiki be affected by the GDPR? MediaWiki only is a tool, which allows putting arbitrary data in it. MediaWiki itself however does not contain any restrictions, what kind of data that might be and for the developers of the MediaWiki software it is impossible to control, what a single installation might be used for.
- The users are responsible for the content they are putting up in their wikis. This content then could be affected by the GDPR. However, this data also would be affected, if put up inside a different tool, e.g. inside a WordPress blog or inside a Drupal installation. 2001:16B8:10E3:E700:BCD7:8BBA:F67D:B20B (talk) 23:59, 11 May 2018 (UTC)
- My concern is how personal data, once saved in MediaWiki, can be removed after a personal request. The "eternity" of revisions, the ability to "never forget" is a main topic for with MediaWiki. In Drupal and in WordPress you would delete a node or a post, and the content is gone. As we all know wikis work different. Maybe how wikis work is as a concept itself non-compliant with the GDPR, we'll see.
- Moreover, WordPress releases these days a new version, where users have the ability to request a copy of all of THEIR special content provided to a certain platform and are able to download their "contribution package" afterwards. What will Mediawiki do, if a contributor does a request like this, pointing to GDPR?
- This is how MediaWiki is affected by GDPR. 92.200.127.85 (talk) 09:15, 14 May 2018 (UTC)
- What a website running MediaWiki does in response to a GDPR request to delete information or request a copy of all information depends on the owner of the website and his/her jurisdiction. MediaWiki has no easy built-in way to comply.
- If someone was to submit a request to me, I'd ignore it because I'm in the US and despite what the EU claims, I'm not subject to any laws but US laws. All foreign court orders can be ignored too. So to Americans and others outside the EU, the GDPR really is a non-issue. Penguin Waddles (talk) 18:37, 15 May 2018 (UTC)
- > So to Americans and others outside the EU, the GDPR really is a non-issue.
- The "non-issue" part, sort of depends on if you want to be able to set foot in the EU at some point later in your life. Just something to consider. —TheDJ (Not WMF) (talk • contribs) 20:11, 15 May 2018 (UTC)
- The problem i see is that mediawiki stores user attributes and does not give the user control of how the attributes are used. Consider just the user name - it is attached to every edit made by the user. The user has no ability to remove any of those references.
- It might be sufficient if the user was told of this limitation at the time that they selected their username. Rocketpipe (talk) 00:37, 14 May 2018 (UTC)
- I too was looking on finding any information whether MediaWiki is GDPR compliant and whether the privacy statements needs to be changed. Even Wikipedia doesn't seem up to the par regarding this topic (somebody raised the issue back in February on the Wikipedia Mailing list), see https://www.quora.com/In-GDPR-what-will-happen-with-sites-like-Wikipedia-regarding-the-EU-regulation-in-terms-of-personal-information and https://lists.wikimedia.org/pipermail/mediawiki-l/2018-February/047224.html
- Another issue could be that the account e-mail addresses are stored in MySQL databases unencrypted/in plain text. CayceP (talk) 07:46, 14 May 2018 (UTC)
- No, the problem is not that email addresses are stored, the problem arises if a user wants his data deleted or handed over. No consent is eternal due to GDPR, if you need consent from users to save their data, they have the right to revoke at any time. 92.200.127.85 (talk) 09:25, 14 May 2018 (UTC)
- How do you propose enforcing such a "right" against a foreign website outside the EU's jurisdiction? Penguin Waddles (talk) 18:39, 15 May 2018 (UTC)
- Every user can delete his or her email adres, simply by blanking it in the preferences. E-mail addresses are not required in MediaWiki.
- Also, with regard to Wikipedia, when people use the site, they release their contributions under a license, which you could consider to be a legally binding contract. Now in the EU, if I go to a company, and tell them i want them to delete all their contracts with my name in them, i'm pretty sure that even under GDPR, you can pretty much ignore this.
- Now I realize that not everyone has a WMF type of setup. However. Mediawiki is a tool and it has no requirement on you to make it 'easy' to comply with GDPR. If you need to go into the database to blank the text of a revision, well you can do that, no problem. —TheDJ (Not WMF) (talk • contribs) 20:17, 15 May 2018 (UTC)
- The user is able to remove the consent by entering in their Special:Preferences and unset the email AFAIK Ciencia Al Poder (talk) 19:15, 14 May 2018 (UTC)
- I'm not a lawyer but was appointed DPO by my company and I spent the last weeks and months with this topic:
- Old, existing laws (like the Cookie policy) are still applicable when GDRP become effective (as it has been for the last two years). So if your Wiki's server is located in the EU and/or you are catering to EU based users, you may want to use Extension:CookieWarning, if you aren't already. Text of warning/explanation may have to modified accordingly.
- GDRP demands implementation of "appropriate, cost-effective controls" to protect the personal data of EU residents. It's still debated whether GDRP demands encryption, per se. Text uses words "such as encryption", "may include encryption", "as appropriate (...)pseudonymisation" etc. so this are more suggestions than a demand For SEO reasons and because Google Chrome will marks web pages without SSL/TLS certs as "not secure" soon, you may want to use a SSL certificate for your wiki anyway. Maybe your hoster can offer free Let's encrypt certs?
- If your wikis' SQL DB is breached, you have to inform authorities and your users which information wereaffected/stored (usually IP address for all editors) and e-mail address, user names First and last name if you request them from your user for logged users) (see GDPR Article 34).
- You may want to ask your users whether they are older than 16 years upon sign-up or if they have the consent by their parents.
- I would update the wiki privacy, if not done already, that IP address (for all editors), E-mail addresses and User names (for registered users) are stored which is technically required for tracking and roll back of edits and that user agree to that upon sign-up or editing your wiki, that who they have to contact if they want to have their account deleted.
- I would add the part with unset e-mail as mention above. Since an e-mail address is not required for registering this may only affect wikis that use emailconfirmed for editing privileges (for example for Anti Spam measures, YMMV).
- I would also add the name of an Admins/Mod(s) on the privacy article in case somebody wants information about their stored data. I would add link how they can close their account.
- Also add which data protection legal authority is responsible for your country/(or federal state like in Germany), this is also required by GDPR, CayceP (talk) 11:11, 16 May 2018 (UTC)
- There was a workshop at the Wikimedia Hackathon 2018 in Barcelona.
- Here you can find the task at phabricator: https://phabricator.wikimedia.org/T194901
- And here is the documentation of the workshop:
- Public YouTube stream on MediaWiki channel: https://www.youtube.com/watch?v=uxTIpr4Ybcg
- Slides: https://docs.google.com/presentation/d/1TYbJoZ8SRUe_37mYjIvnVDwpyrrpUNwk6d7ShG3A7Bk/edit?usp=sharing
- Etherpad: https://etherpad.wikimedia.org/p/gdpr RichardHeigl (talk) 23:00, 19 May 2018 (UTC)
- Let me just make up an example:
- First we assume you have to act according to GDPR.
- A user of your wiki has put the full name and address of a random person into your wiki. After this has happened,
- new revisions of the page have been created and
- say the page has been moved (= published at another URL).
- The affected person now
- wants to have a copy of all the information you are storing about him/her. And
- he wants to have all this data removed.
- How can this be done? 2001:16B8:10A7:6100:2D06:C123:4B0A:AC40 (talk) 14:15, 20 May 2018 (UTC)
- I think this is a bit of a fallacy. This discussion depends much more on what you are doing with the technology than on the technology you are using. And i'll show you why: How do you do the same, for an article the LA times has written on someone ?
- Good luck finding all instances of that one specific person (who shares a name with many other people) among all the people that the LA times has ever written something about.
- Some things are just hard. And since the wiki is designed as a general, public, publishing tool this problem you posed, is in this case hard. I understand looking for an easy solution, but to some degree, this is like asking a manufacturer of a book press to solve your GDPR problem. —TheDJ (Not WMF) (talk • contribs) 15:48, 25 May 2018 (UTC)
- Please see also: GDPR (General Data Protection Regulation) and MediaWiki software CayceP (talk) 15:31, 24 May 2018 (UTC)
- Sorry I am a bit confused. In my case, just registered users entered manually by the administrator can contribute. As far as I know, under GDPR they should give permission to store their data - personal names and emails in this example, we don't have anything else. It would be great it they can tick a "consent" box when they log in for the first time, but I am bit lost. What do you think I should include? Antonioagar1 (talk) 13:30, 25 May 2018 (UTC)
- @Antonioagar1 This depends more on how you got these email addresses to begin with. You should gather that consent at the moment you collect the email address, not when you create the account for them. Now to retro actively do that now, since you didn't do it before, THAT I can understand, but you can write your own extensions for that of course.
- I'm just slightly annoyed here by all these companies that apparently use open source software for their business, don't contribute to the product, and now that you have a problem with how you run your business, it needs to be solved for you, by volunteers here, so that you can keep running your business. I don't mean to offend, but that is sort of what it feels like from this side of the aisle. —TheDJ (Not WMF) (talk • contribs) 16:08, 25 May 2018 (UTC)
- @TheDJ Hi, thanks a lot for the response. You are right, I actually have the email-written consents of the contributors. I think I am a bit paranoid with all the GDPR stuff, but I am just fine.
- Another point is that you are annoyed, as you well point out. I totally agree with you, nevertheless I think there are a lot of different situations depending on who is using the open-source (I believe this is not the right place to open this topic, but anyway...). We are a social organisation with no IT budget at all, therefore with none IT skills in-house. We are delivering as we can. We would love to have people coding extensions, but we don't get funding for that, even though we tried to ask to several donors. If we were a company and we have the budget, we will contribute for sure. I believe open source is providing a lot of opportunities for different organisations and individuals around the world which otherwise will not be able to provide their service. BUT, of course, there are companies which are taking advantage of that, in which I totally disagree and it makes me understand your side of the aisle. Antonioagar1 (talk) 08:53, 29 May 2018 (UTC)
How to Parse msgnw Output?
If a page transcludes a template with {{msgnw, can a subsequent page display the parse of that wikitext?
That is, can a page transclude and parse the rendered output of another page?
Example: Page MyTemplate contains
== Test ==
Page Host1 contains
{{msgnw:MyTemplate}}
and therefore renders
== Test ==
Now how can Page Host2 parses the rendered output of Host1? Johnywhy (talk) 08:43, 12 May 2018 (UTC)
MW 1.30.0 fresh install, missing fileinfo
RESOLVED | |
Enabled by hosting provider. |
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.
FTP installed unzipped files into /wiki folder. Ran /wiki.index.php file and came up with this error.
Please help with a fix. Trying to install direct from domain. PHP 5.6 currently with installed forums (database mysql) that I will be attempting to link to but cannot get Mediawiki installed.
MediaWiki 1.30 internal error
Installing some PHP extensions is required.
Required components
You are missing a required extension to PHP that MediaWiki requires to run. Please install:
- fileinfo (more information) 60.240.134.99 (talk) 10:55, 12 May 2018 (UTC)
- As the error suggests, apparently you need the PHP extension fileinfo to be installed.
- What kind of hosting are you on? If you are on Shared hosting, then you will have to ask your hosting provider (it isn't Lunarpages, is it?) to get that installed for you otherwise you will have to do it yourself. AhmadF.Cheema (talk) 11:51, 12 May 2018 (UTC)
- I am having the same problem and I am with Lunarpages. They have refused to enable fileinfo. Is that why you mentioned them? Greylin (talk) 09:15, 29 May 2018 (UTC)
- Yes. There was recently another person using Lunarpages hosting who made a similar complaint regarding fileinfo unavailability.
- Looks like time to move to another host. There appear to be several hosting services with better prices and much better reviews than Lunarpages. AhmadF.Cheema (talk) 15:46, 29 May 2018 (UTC)
- I don't know where to get the file or where to put it. I have my own host, so I have access to the files. I downloaded the zip and ftp uploaded it to my domain, why is this file missing? 203.63.170.104 (talk) 11:55, 12 May 2018 (UTC)
- Nevermind, I seemed to have worked it out. It's a file the host could enable/disable. 203.63.170.104 (talk) 12:02, 12 May 2018 (UTC)
- Comment by User:Rocketpipe:
- I have the same problem, i am hosting myself on a machine that supports 1.29.2. Where/what did you change to enable fileinfo. Especially since the reference pointed at by Mediawiki says that fileinfo is now included in php (since 5.3) AhmadF.Cheema (talk) 05:06, 13 May 2018 (UTC)
- What do you mean by "hosting myself on a machine that supports 1.29.2"? Are you hosting the Wiki on your local computer or with some online hosting service?
- In the case of the previous user, the PHP extension fileinfo was enabled by the user's hosting provider. AhmadF.Cheema (talk) 05:08, 13 May 2018 (UTC)
- my own computer. Rocketpipe (talk) 00:42, 14 May 2018 (UTC)
- sorry - i should have added - i fixed it by adding a dynamic
- extension= Rocketpipe (talk) 01:00, 14 May 2018 (UTC)
Internal Link with Url Parameters?
this article says:
"To add a link to a page on the same wiki using URL query parameters, you may need to use external link syntax."
In what case can you add a link with URL query parameters, without external link syntax? How is it done? Johnywhy (talk) 14:07, 12 May 2018 (UTC)
- There are some Special pages that can have a parameter as a subpage. For instance Special:Contributions/TheDJ. There are a few more of those. But in general you would have to use external link syntax. —TheDJ (Not WMF) (talk • contribs) 16:15, 13 May 2018 (UTC)
- "parameter as a subpage",
- meaning:
- "parameter passed with subpage syntax"? Johnywhy (talk) 06:31, 16 May 2018 (UTC)
- correct —TheDJ (Not WMF) (talk • contribs) 18:15, 16 May 2018 (UTC)
- When inserting a page as a template, one can add query parameters, e.g.:
- {{Special:contributions/B222|limit=1}}
- {{Special:contributions/B222|limit=5|namespace=12}}
- {{Special:RecentChangesLinked/Syrian Civil War|limit=5}}
- However, this will work different on mobile pages than on desktop pages. On mobile pages link 1 will show up as Special:contributions/B222 but on desktop pages my latest contribution will be shown. Link 2 and 3 show no such differences.
- See:
- nl:User:B222/Experimenten parameters
- nl:m:User:B222/Experimenten parameters Bertux (talk) 16:04, 5 June 2019 (UTC)
MediaWiki internal error.
Hi, I am installing mediawiki 1.30.0 in a webserver and I got a problem when I add the LocalSettings.php
I was configured the installation good and when I download the LocalSettings.php and add to the server, the website show this:
--
MediaWiki internal error.
Original exception: [46a8f0d2d0b93415cd011235] 2018-05-12 19:51:58: Fatal exception of type "MWException"
Exception caught inside exception handler.
Set $wgShowExceptionDetails = true; at the bottom of LocalSettings.php to show detailed debugging information.
--
I was set $wgShowExceptionDetails to show detailed debugging information and then the website show this:
-
MediaWiki internal error.
Original exception: [5888fe7966d3fdf5d8c131f7] /index.php?title=Main_Page MWException from line 361 of /home/mywebsite/public_html/includes/resourceloader/ResourceLoader.php: ResourceLoader module info type error for module '0': expected ResourceLoaderModule or array (got: NULL)
Backtrace:
#0 /home/mywebsite/public_html/includes/resourceloader/ResourceLoader.php(264): ResourceLoader->register(boolean)
#1 /home/mywebsite/public_html/includes/OutputPage.php(2993): ResourceLoader->__construct(GlobalVarConfig, MediaWiki\Logger\LegacyLogger)
#2 /home/mywebsite/public_html/includes/OutputPage.php(2792): OutputPage->getResourceLoader()
#3 /home/mywebsite/public_html/includes/OutputPage.php(2812): OutputPage->getRlClientContext()
#4 /home/mywebsite/public_html/includes/OutputPage.php(3052): OutputPage->getRlClient()
#5 /home/mywebsite/public_html/includes/skins/Skin.php(644): OutputPage->getBottomScripts()
#6 /home/mywebsite/public_html/includes/skins/SkinTemplate.php(485): Skin->bottomScripts()
#7 /home/mywebsite/public_html/includes/skins/SkinTemplate.php(249): SkinTemplate->prepareQuickTemplate()
#8 /home/mywebsite/public_html/includes/OutputPage.php(2442): SkinTemplate->outputPage()
#9 /home/mywebsite/public_html/includes/MediaWiki.php(858): OutputPage->output(boolean)
#10 /home/mywebsite/public_html/includes/MediaWiki.php(870): MediaWiki->{closure}()
#11 /home/mywebsite/public_html/includes/MediaWiki.php(523): MediaWiki->main()
#12 /home/mywebsite/public_html/index.php(43): MediaWiki->run()
#13 {main}
Exception caught inside exception handler: [5888fe7966d3fdf5d8c131f7] /index.php?title=Main_Page MWException from line 361 of /home/mywebsite/public_html/includes/resourceloader/ResourceLoader.php: ResourceLoader module info type error for module '0': expected ResourceLoaderModule or array (got: NULL)
Backtrace:
#0 /home/mywebsite/public_html/includes/resourceloader/ResourceLoader.php(264): ResourceLoader->register(boolean)
#1 /home/mywebsite/public_html/includes/OutputPage.php(2993): ResourceLoader->__construct(GlobalVarConfig, MediaWiki\Logger\LegacyLogger)
#2 /home/mywebsite/public_html/includes/OutputPage.php(2792): OutputPage->getResourceLoader()
#3 /home/mywebsite/public_html/includes/OutputPage.php(2812): OutputPage->getRlClientContext()
#4 /home/mywebsite/public_html/includes/OutputPage.php(3052): OutputPage->getRlClient()
#5 /home/mywebsite/public_html/includes/skins/Skin.php(644): OutputPage->getBottomScripts()
#6 /home/mywebsite/public_html/includes/skins/SkinTemplate.php(485): Skin->bottomScripts()
#7 /home/mywebsite/public_html/includes/skins/SkinTemplate.php(249): SkinTemplate->prepareQuickTemplate()
#8 /home/mywebsite/public_html/includes/OutputPage.php(2442): SkinTemplate->outputPage()
#9 /home/mywebsite/public_html/includes/exception/MWException.php(160): OutputPage->output()
#10 /home/mywebsite/public_html/includes/exception/MWException.php(201): MWException->reportHTML()
#11 /home/mywebsite/public_html/includes/exception/MWExceptionHandler.php(73): MWException->report()
#12 /home/mywebsite/public_html/includes/exception/MWExceptionHandler.php(130): MWExceptionHandler::report(MWException)
#13 /home/mywebsite/public_html/includes/MediaWiki.php(550): MWExceptionHandler::handleException(MWException)
#14 /home/mywebsite/public_html/index.php(43): MediaWiki->run()
#15 {main}
--
What I should do now?
Thanks in advance. R2D2XDZ1 (talk) 20:01, 12 May 2018 (UTC)
- Did you install any extension or skin? Try to disable all extensions and skin (commenting out all require_once, wfLoadExtension or wfLoadSkin) in LocalSettings to see if the problem is solved, then try to enable one by one to find which one is causing it. Ciencia Al Poder (talk) 09:26, 14 May 2018 (UTC)
- Hi thanks for your reply.
- I search all require_once, wfLoadExtension or wfLoadSkin and I have found only wfLoadSkin:
- --
- # Enabled skins.
- # The following skins were automatically enabled:
- wfLoadSkin( 'CologneBlue' );
- wfLoadSkin( 'Modern' );
- wfLoadSkin( 'MonoBook' );
- wfLoadSkin( 'Vector' );
- --
- I try slove the problem deleting all the skins except vector that is actually in use but then the website show the same error.
- --
- ## Default skin: you can change the default skin. Use the internal symbolic
- ## names, ie 'vector', 'monobook':
- $wgDefaultSkin = "vector";
- --
- I also found this line on the LocalSettings.php:
- --
- # Path to the GNU diff3 utility. Used for conflict resolution.
- $wgDiff3 = "/usr/bin/diff3";
- --
- What path should be here? Im not sure if that is the good path.
- Thanks again and I hope your reply.
- PS: If you talk in spanish, that is better for me :) R2D2XDZ1 (talk) 15:37, 14 May 2018 (UTC)
- $wgDiff3 no tiene nada que ver.
- ¿Es una instalación limpia? Yo tengo un wiki en 1.30 y nunca he tenido ese problema. ¿Qué versión de PHP usas? Ciencia Al Poder (talk) 20:35, 14 May 2018 (UTC)
- Hola, gracias por contestar. Sí, es una instalación limpia y estoy usando la versión de PHP 5.0 R2D2XDZ1 (talk) 19:54, 16 May 2018 (UTC)
- For MediaWiki 1.30, you need at-least PHP 5.5.9. See Compatibility#PHP. AhmadF.Cheema (talk) 06:05, 17 May 2018 (UTC)
- Sorry, I was talking with my hosting provider and he said me that the PHP we use is 5.5 branch. R2D2XDZ1 (talk) 22:58, 17 May 2018 (UTC)
- Can you make sure that it is 5.5.9? PHP 5.5.0 – 5.5.8 might cause some issues. AhmadF.Cheema (talk) 05:11, 18 May 2018 (UTC)
Return base page name using JavaScript
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 any way to return the full name (i.e. including namespace) of the base page, using JS?
For example, When the user is on MediaWiki:April/fr, is there any way to return "MediaWiki:April" using JavaScript? It should be the same as the magic word {{BASEPAGENAME}}, but including the namespace.
Thanks in advance. Guycn2 (talk) 06:31, 13 May 2018 (UTC)
mw.config.get("wgPageName")
- Note that spaces are replaced with underscores. 121.219.236.56 (talk) 14:15, 13 May 2018 (UTC)
- Thanks, but unfortunately it returns the entire page name (i.e. not just the part before the slash)... Guycn2 (talk) 14:17, 13 May 2018 (UTC)
- And for the base page, just split the string or use regex to remove the subpages.
mw.config.get("wgPageName").split("/")[0]
mw.config.get("wgPageName").match(/[^\/]+/)[0]
121.219.236.56 (talk) 14:19, 13 May 2018 (UTC)- Thank you very much! It works! Guycn2 (talk) 14:21, 13 May 2018 (UTC)
Is Extension:PageEval different from transclusion?
Is Extension:PageEval different from transclusion? Johnywhy (talk) 08:48, 13 May 2018 (UTC)
- I don't see functional differences. However, I'm not sure if it will render the page HTML or just the raw source code. This extension doesn't support External Storage nor compression. It's pretty moot to use it Ciencia Al Poder (talk) 09:19, 14 May 2018 (UTC)
MS SQL problem with varbinary default in l10n_cache
The creation and insert on l10n-cache do not seem to work for MS SQL. I can fix the creation by removing the default. But for the insert, it seems that isbinary is not set fot he lc_value term, which needs to be modified. Has anyone else been successful at installing on a recent version of MS SQL? Do you do anything special for this table? Rocketpipe (talk) 00:49, 14 May 2018 (UTC)
- sorry, i should have added that i tried both 1.29.2 and 1.30 Rocketpipe (talk) 01:03, 14 May 2018 (UTC)
- I guess it should be "varbinary default (0x)" on SQLServer. It has been also reported on phabricator, T192965. Note that SQL Server support for MediaWiki is poor and not recommended. Ciencia Al Poder (talk) 09:12, 14 May 2018 (UTC)
- I went to look at that and your comment on it. I signed up for phab and copied this comment there.
- The core problem is the implicit conversion from varchar to varbinary is indeterminate as it is not known if the intention is to convert to 8 bit character codes, or to 16 bit Unicode. I am unclear why the base type is varbinary as the core problem of whether Unicode is the default coding does not seem to be resolved. It is true that removing or changing the default allows the install to continue, but does not allow setup to complete, so it really does not fix the problem.
- There seems to be a related problem that isbinary is not being set for this column which seems to be a clear error.
- I have tested 1.29.2 and 1.30 fail and 1.27. LTS succeeds. Has anyone been able to make 1,29+ work with MS Sql? Rocketpipe (talk) 15:13, 14 May 2018 (UTC)
black death
RESOLVED | |
https://en.wikipedia.org/wiki/Black_Death |
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.
why is there no black death article? It was the worst disease in history and, it should be represented especialy because I am writing a multi genre report on the black plague. Also when i did not have an account i could see clearly a suggest new article or something like that and now that i made an account It is not obvious to me. Digidigi5 (talk) 01:57, 14 May 2018 (UTC)
- You're looking for Wikipedia.
- https://en.wikipedia.org/wiki/Black_Death
- This is not Wikipedia. Johnywhy (talk) 02:54, 14 May 2018 (UTC)
Base de connaissances sur MédiaWiki pour Association populaire de philosophie
- Bonjour,
- J'ai effectué le 1er WikiMOOC Wikipédia et j'ai suivi avec succès le MOOC du Web sémantique sur la plate-forme FUN...
- Je me suis lancé dans un défi qui est devenu mon "rocher de Sisyphe"...!!! Mettre dans une base de type MédiaWiki l'ensemble des "connaissances" d'une communauté associative toulousaine de ''philosophes praticiens amateurs'' (plutôt des prosophes : la pratique de la sagesse !!! plutôt que l'amour de la sagesse !!! en lisant et étudiant des œuvres). Cette base est une somme de type documents "papier" (cours, biblio,...), documents numérisés, documents audio, documents vidéo. Pratiquement tout est référencé par nos soins.
- 1/ J'ai voulu tout d'abord monter un démonstrateur pour moi-même sur mon PC : téléchargement de la version 1.30 et de certaines extensions à partir d'une "ferme Wangserver" et création des 1ers articles. Réussi sauf que tous les modèles de Wikipédia ne fonctionnent pas (compatibilités LUA ???)...!!!
- 2/ Hébergement et versement sur OVH avec l'aide d'un collègue dans le but de faire fonctionner tous les modèles et l'accessibilité via nos 2 smartphones : la 1er offre appelée Kimsuffi a permis d'améliorer le résultat mais ne permet pas visiblement de faire fonctionner tous les modèles (notamment le binaire LUA !?! ). Je me suis renseigné pour passer à l'offre supérieure (VPS) pour améliorer le taux de récupération des outils Wikipédia et l'efficacité globale...
- 3/ Mon collègue et moi n'ayant pas toute la connaissance du moteur MédiaWiki ni des extensions possibles, je recherche une communauté française qui aurait cette expertise car nous avons des demandes de fonctionnalités (base possédant 4 espaces différents ayant des accès différents et privilèges ad hoc, hiérarchie des articles de type "poupées russes", graphe des liens internes inter-articles, base des document (un type Wikisource à nous), mise en pl:ace d'hyperliens avec des documents "situation à date" de type Office ou OpenOffice éditables hors wiki et qui seraient logés sur le site hébergeur,...)
- 4/ Je me suis posé très tôt la question d'une solution type "web wiki sémantique", mais, non spécialiste, je n'ai pas pu décider si le projet le nécessitait... notamment pour l'utilisation de chaque source qui, "saisie individuellement une seule fois", dans la fameuse Wikisource à nous évoquée ci-dessus est réutilisable à tout moment...
- 5/ Le but du démonstrateur est de faire le point sur notre cahier des charges afin de démarrer un projet qui tienne la route.
- Peux-tu (pouvez-vous ) m'aider à trouver cette communauté STP (SVP) ?
- D'avance merci,
- Guy, Guy6631 (talk) 07:39, 14 May 2018 (UTC)
- Professional development and consulting AKlapper (WMF) (talk) 10:14, 15 May 2018 (UTC)
- Sorry, this is the English help forum. Please use English in here. 2A02:C7F:963F:BA00:D91E:1AF7:DD4E:6890 (talk) 19:20, 14 May 2018 (UTC)
- You can use other languages, but there would be less people able to help. Ciencia Al Poder (talk) 09:10, 15 May 2018 (UTC)
Sidebar strings not updating in translation screen (MW 1.30.0, Translate extension)
- Hi all, i am stuck. I use mw 1.30.0 with the translate extension. German is our base language, but the strings for the menu are somehow stuck in the english version.
- i tried clearing cache, emptied the Mediawiki:Sidebar, disabled cache, touch LocalSettings, etc… nothing brings up the original german strings in the translation page. Here´s the link to the translation interface: http://dein-lastenrad.de/index.php?title=Spezial:%C3%9Cbersetzen&filter=translated&group=wiki-sidebar&language=en&action=proofread
- Thanks for any ideas!
- Flo 78.48.227.170 (talk) 10:10, 14 May 2018 (UTC)
- OK, i solved it.
- My problem was that i didn't know about MediaWiki:Messages, the strings are stored there.After creating the pages for MediaWiki:MyTerm, MediaWiki:MyTerm/de, MediaWiki:MyTerm/en and filling it with the correct strings, everything works as expected. 78.49.4.239 (talk) 19:22, 20 May 2018 (UTC)
- Your link shows that the English strings are translated to the very same English strings in 'German', so displaying English strings in the menu looks like correct behavior to me.
- If it is not, please explain what to see where exactly and what you'd expect instead. Malyacko (talk) 10:37, 16 May 2018 (UTC)
- Hi @Malyacko, thanks for your answer!
- German is "base language"
- Sidebar ( http://dein-lastenrad.de/index.php?title=MediaWiki:Sidebar ) has german strings in it (e.g. "Wissen" )
- I go to sidebar-messages and add them ( http://dein-lastenrad.de/index.php?title=MediaWiki:Sidebar-messages ) to make them translatable.
- When i go to the translation interface (http://dein-lastenrad.de/index.php?title=Spezial:Übersetzen/wiki-sidebar&language=en&group=wiki-sidebar&filter=%21translated ), trying to translate the strings (german -> english) the left side (which should be the german "source language") shows the english terms, not the german ones.
- If i add new entries to the sidebar or rename them, they show up as german on the left side.
- http://files.fleg.de/Bildschirmfoto-2018-05-16-um-13.21.23-MNKEbP9Ek3/
- Is this related to a cache problem? 78.49.195.53 (talk) 11:28, 16 May 2018 (UTC)
Two Custom Extensions Needed
I have a need for some custom functionality and I think it requires custom extensions. A brief writeup of what I need is here
http://galleryrobinson.com/MediaWiki.Extensions.pdf
Any suggestions how to proceed are welcome. If it's easy I might try myself, otherwise I would be happy to hire someone for this. HSRobinson (talk) 14:06, 14 May 2018 (UTC)
- Regarding the second proposed extension's required features, Extension:UploadWizard comes close. AhmadF.Cheema (talk) 07:21, 15 May 2018 (UTC)
- If you're interested in hiring someone, check the Professional development and consulting page. Ciencia Al Poder (talk) 09:08, 15 May 2018 (UTC)
- Thank you. If anyone wants to offer to code the first extension, please contact me. HSRobinson (talk) 14:57, 15 May 2018 (UTC)
Automatically Block multiple users from login
It is possible to manually block users with wiki/Special:Block and prevent from login with LocalSettings attribute '$wgBlockDisablesLogin=true'.
But is it possible to automatically block multiple users? (Admin-PHP-Script, API or something else?)
Would a direct insert into the table 'ipblocks' be a possibility? (If so, how to insert the tinyblobs with text)
Thanks so much in advance! 213.144.0.130 (talk) 15:28, 14 May 2018 (UTC)
- Insert into ipblocks works!
- insert into ipblocks (ipb_address, ipb_user) values (CAST('TheUsername' AS BINARY), 50) 213.144.0.130 (talk) 06:09, 15 May 2018 (UTC)
Integrating MW with SMF login / auth
Hi, I'm attempting to use SMF (simple machine forums) as the authorisation + login utilising the same database (only difference is SMF = smf_ prefix and MW = wiki_ prefix for database tables) so that a user will login on the forums and auto login the wiki, also requiring 1 registration across the subdomain as it's using the SMF db.
Mediawiki: 1.30.0 (installed and connected to smf database upon installation - verified that wiki_ tables ARE in the same db as the smf_ tables)
PHP: 5.6
SMF: 2.0.15 (installed this first)
Using FRESH installs, no mods/etc included. Files downloaded as such under same subdomain;
/forum
/wiki
Attempting to follow some of the following; (I believe they may be outdated)
Extension:SMF Auth Integration
Extension:SMF/Users Integration
https://github.com/SimpleMachines/smf-mw-auth/tree/d91487f729da258959fd2360f39910518fc0c3e3 (mainly attempted working from this as other examples would not even load the wiki)
https://www.simplemachines.org/community/index.php?topic=461612.200
https://www.simplemachines.org/community/index.php?topic=221622.320
https://www.simplemachines.org/community/index.php?topic=195978.80
https://wiki.simplemachines.org/smf/How_to_use_the_SMF_user_system_outside_of_SMF
https://support.simplemachines.org/function_db/index.php
Below are the files I have been trying to implement.
http://www.souls.noxiousnoxy.com/testfiles/README.txt
http://www.souls.noxiousnoxy.com/testfiles/Auth_SMF.txt
http://www.souls.noxiousnoxy.com/testfiles/LocalSettings.txt
http://www.souls.noxiousnoxy.com/testfiles/smf_2_api.txt
http://www.souls.noxiousnoxy.com/testfiles/smf_2_integration_hooks.txt
Problem: Login on SMF but when I navigate to wiki I am not logged in - for both Admin and Test account.
Error Log: has nothing in it.
I'm not very familiar with any of the codes being used, and while I am positive I have followed all the directions in the README file linked above I cannot guarantee that this is a simple fix because I'm unsure what it's supposed to be doing exactly. Perhaps the cookie isn't being sent from SMF when I navigate to wiki?
Please feel free to create a new account at http://www.souls.noxiousnoxy.com/ but you'll have to navigate to the wiki (/wiki/index.php) yourself as there is no link. Noxiousnoxy (talk) 08:11, 15 May 2018 (UTC)
- I tried to do some tests to check what, if any, data is being sent after logging in via the redirect to SMF login. The $user_info and $cookiename both seem to be passing.
- I have no idea how to get the login to work. Noxiousnoxy (talk) 07:19, 21 May 2018 (UTC)
- There was a possible issue with MW having the initial user the same as the SMF initial user. The fix was to TRUNCATE the wiki user table. However this did not fix the problem of not being able to login to the wiki. Noxiousnoxy (talk) 07:37, 21 May 2018 (UTC)
- do you have subdomain independent cookies turned ON (and local cookies turned OFF) in SMF Admin server settings?
- Yes. Noxiousnoxy (talk) 07:51, 21 May 2018 (UTC)
How to change the Dropdown field type in a Template
HI,
we are having multiple type of Dropdown boxes used in one of our Mediawiki Template page.
Example, if we choose "Region" it shows all regions listed in a pop-up menu immediately on the page. If we choose another dropdown "Country", it asks to type any one char so that it can display the related conutries.
But, we don't want to type any and wants show up all countries listed when we click on the dropdown list alike "Region".
Could you please let us know, where should we amend this in the template to change the Dropdown type ?
Thanks in Adv,
Blog-like display of recent changes with images
Dear,
I'm lookingoing forward to move the site http://crea.coffee from WordPress to Mediawiki.
The main reason is that I want to use Semantic Mediawiki for a materials database. It has very nice build in options for data management,search, comparaison and display.
Also, since I already have another Mediawiki hosted on my VPS I would like to avoid having WordPress + Mediawiki. Having only one wiki farm would lower maintenance and memory usage.
However I'm missing a feature to display recently modified articles in a blog style with images. I had a look to Dynamic Page List but I could not find a way to extract an image from the article. Maybe with a template ?
Or maybe with another extension ?
Do you have an experience with this or ideas ?
Regards Thibdx (talk) 15:39, 15 May 2018 (UTC)
- Maybe use something like a blog extension. See Extension:Wikilog, example blog: wiki.4intra.net Blog.
- Other Blog extensions include, Extension:Blog and Extension:BlogPage. AhmadF.Cheema (talk) 14:01, 16 May 2018 (UTC)
How do I Install Gadgets?
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 https://commons.wikimedia.org/wiki/Template:Imagestack on my wiki. My wiki is a fresh install of MediaWiki 1.30. I added this:
wfLoadExtension( 'Gadgets' );
to my LocalSettings.php and I now do see link for "Gadget usage statistics" and "Gadgets" on my Special:SpecialPages page. Now to enable Imagestack I tried:
* MediaWiki:Gadget-ImageStack.js|Gadget-ImageStack.js
* MediaWiki:Gadget-imagestack.js|Gadget-ImageStack.js
on the "MediaWiki:Gadgets-definition" page but that doesn't work. I see I need to add this JS file and also MediaWiki:Common.js to my site. I see that MediaWiki:Common.js is actually meant to be page meaning mysite.org/MediaWiki:Common.js and I added the code there. Is MediaWiki:Gadget-ImageStack.js also a page?
Any advice appreciated. HSRobinson (talk) 16:03, 15 May 2018 (UTC)
- Yes, you need to copy MediaWiki:Gadget-ImageStack.js wargo (talk) 20:04, 15 May 2018 (UTC)
- Thank you, I did that and when I try the code on I get:
- Template:Imagestack Lorem ipsum...
- where the bold is a link. Something is still missing. :( HSRobinson (talk) 20:29, 15 May 2018 (UTC)
- Template also imported? wargo (talk) 20:56, 15 May 2018 (UTC)
- OK, with that tip I found docs how to export/import a template. But then it needs Scribunto, so I installed that. But Scribunto needs Lua so that needs to be installed also (a backend tool of course). A bit odd that there is no documentation for all of this....
- Thank you for your help. HSRobinson (talk) 15:59, 17 May 2018 (UTC)
- Are Scribunto and Lua needed for all gadgets, or just the one you're trying to install? Johnywhy (talk) 05:03, 26 June 2018 (UTC)
- Gadgets use JavaScript and/or CSS, not Lua, hence Scribunto is not needed at all for gadgets. Ciencia Al Poder (talk) 09:30, 26 June 2018 (UTC)
Slideshow not working on MinervaNeue theme based mobile page
RESOLVED | |
This question should be asked on Phabricator, as it is regarding a MediaWiki core feature. |
The following discussion is closed. Please do not modify it. Subsequent comments should be made on the appropriate discussion page. No further edits should be made to this discussion.
Hi everyone,
I am using MediaWiki 1.30.0
Desktop theme is Vector.
For mobile phones I am using the extension named - Mobile Frontend
For mobile device the theme is - MinervaNeue
I added a slideshow using gallery mode="slideshow" on my website http://learni.online/all/Main_Page
It is working fine on desktop screens, but not working on mobile screens, where the slideshow pages appearing side-by-side.
How should I correct this? Any idea... Biologically (talk) 16:32, 15 May 2018 (UTC)
- Since slideshow mode is a core feature, it should be reported on phabricator Ciencia Al Poder (talk) 09:17, 16 May 2018 (UTC)
- Sure, I shall report it on Phabricator. Thank you so much. Biologically (talk) 14:12, 17 May 2018 (UTC)
How to make a MediaWiki website "more" compliant to GDPR?
Though this question (topic) may seem as a duplicate of this previous topic (Project:Support desk/Flow/2018/05#h-GDPR_compliance-2018-05-11T21:49:00.000Z) posted on Support desk but that contained more discussions on the effect of GDPR than how to make it compliant. So, thought of starting this thread in an attempt to list all the practicable methods to make a MediaWiki installation (website) "more" GDPR compliant.
Just to avoid confusion -
1. This topic is NOT on how to change MediaWiki software to make it GDPR compliant (if at all necessary), it is on any website build on MediaWiki software. So, this focuses on extensions, scripts, or anything you can think of that may make the website more GDPR compliant.
2. Absolute compliance is not possible on public MediaWiki websites, at least for the website administrators, as most of the content are posted by the users. So the title is how to make it “MORE” GDPR compliant.
3. Please try to suggest anything about general MediaWiki websites that can be a problem due to GDPR and all the possible ways to correct or at least circumvent this problem.
I request all the active members to please share your valuable thoughts on this matter.
P.S.
I found this support desk to be the most helpful and active part of this website, so decided to ask it here. Biologically (talk) 06:07, 16 May 2018 (UTC)
- One discussion from Project:Support desk/Flow/2018/05#h-GDPR_compliance-2018-05-11T21:49:00.000Z -
- Problem (mentioned by @Rocketpipe) - the username is attached to every edit make by the user. The user has no ability to remove any of those references.
- Possible solution (also suggested by @Rocketpipe) - It might be sufficient if the user is told of this limitation during the account creation process. Biologically (talk) 06:16, 16 May 2018 (UTC)
- From topic Project:Support desk/Flow/2018/05#h-GDPR_compliance-2018-05-11T21:49:00.000Z
- Problem (mentioned by @CayceP) - the account e-mail addresses are stored in MySQL databases unencrypted/in plain text.
- Possible solution (suggested by @Ciencia Al Poder) - this should not be a problem, as
- the email addresses are accessed only by the system admin.
- MediaWiki software is able to decrypt the email addresses even if encrypted, to use them for sending emails.
- Anyone with access of MediaWiki code or shell can decrypt them using the software
- The users have control to see their email addresses and delete them if they want to. Biologically (talk) 06:26, 16 May 2018 (UTC)
- From Project:Support desk/Flow/2018/05#h-GDPR_compliance-2018-05-11T21:49:00.000Z
- Problem (anonymous user) - the problem arises when the user wants to delete or hand over their data.
- Possible solution (suggested by @TheDJ) -
- a user can delete his/her email address by removing it in the preference. Email address is not required by MediaWiki.
- The user releases his/her contributions under the license mentioned in the specific website.
- Database user can delete a specific contribution if needed. Biologically (talk) 06:34, 16 May 2018 (UTC)
- A note - The requirement of email address during account creation can be specified by the system admin using localsettings.php. So, the first point in the solution may not be applicable to all websites. Biologically (talk) 13:15, 23 May 2018 (UTC)
- Please see my reply to the other topic (is there way to merge them?)
- ETA: Copy and paste from the other thread:
- I'm not a lawyer but was appointed DPO by my company and I spent the last weeks and months with this topic:
- Old, existing laws (like the Cookie policy) are still applicable when GDRP become effective (as it has been for the last two years). So if your Wiki's server is located in the EU and/or you are catering to EU based users, you may want to use Extension:CookieWarning, if you aren't already. Text of warning/explanation may have to modified accordingly.
- GDRP demands implementation of "appropriate, cost-effective controls" to protect the personal data of EU residents. It's still debated whether GDRP demands encryption, per se. Text uses words "such as encryption", "may include encryption", "as appropriate (...)pseudonymisation" etc. so this are more suggestions than a demand For SEO reasons and because Google Chrome will marks web pages without SSL/TLS certs as "not secure" soon, you may want to use a SSL certificate for your wiki anyway. Maybe your hoster can offer free Let's encrypt certs?
- If your wikis' SQL DB is breached, you have to inform authorities and your users which information were affected/stored (usually IP address for all editors) and e-mail address, user names First and last name if you request them from your user for logged users) (see GDPR Article 34).
- You may want to ask your users whether they are older than 16 years upon sign-up or if they have the consent by their parents.
- I would update the wiki privacy, if not done already, that IP address (for all editors), E-mail addresses and User names (for registered users) are stored which is technically required for tracking and roll back of edits and that user agree to that upon sign-up or editing your wiki, that who they have to contact if they want to have their account deleted.
- I would add the part with unset e-mail as mention above. Since an e-mail address is not required for registering this may only affect wikis that use emailconfirmed for editing privileges (for example for Anti Spam measures, YMMV).
- I would also add the name of an Admins/Mod(s) on the privacy article in case somebody wants information about their stored data. I would add link how they can close their account.
- Also add which data protection legal authority is responsible for your country/(or federal state like in Germany), this is also required by GDPR, CayceP (talk) 11:43, 16 May 2018 (UTC)
- Hi, you can copy-paste the reply here. So that all the answer can be found in one place. Thank you for the all the solutions suggested by you. Biologically (talk) 16:48, 16 May 2018 (UTC)
- There was a workshop at the Wikimedia Hackathon 2018 in Barcelona.
- Here you can find the task at phabricator: https://phabricator.wikimedia.org/T194901
- And here is the documentation of the workshop:
- Public YouTube stream on MediaWiki channel: https://www.youtube.com/watch?v=uxTIpr4Ybcg
- Slides: https://docs.google.com/presentation/d/1TYbJoZ8SRUe_37mYjIvnVDwpyrrpUNwk6d7ShG3A7Bk/edit?usp=sharing
- Etherpad: https://etherpad.wikimedia.org/p/gdpr RichardHeigl (talk) 22:59, 19 May 2018 (UTC)
- Thanks for Links for Wordpress.
- Unfortunately the automatically generated Privacy Statement in Wordpress 4.9.6 is currently only available in English :( . Better than nothing for Wordpress users, though. Jetpack has a GDPR generator of it's own, but also only in English at the moment.
- Back to MediaWiki Topic:
- MediaWiki could use an extension where user can export their data (still to be defined what that would includes besides the username, IP address etc what additional information was stored, if the changes/edits would have to be included), similar to Wordpress - although given the nature of how wikis works this might become a major headache (basically if a editor decides to have their personal data scraped, which is their right to do so, this means Wiki admins would have to change the user name to some anonymized version like "deleted user" or something, same for edits that were done by not logged in users where the IP is shown). https://www.mediawiki.org/wiki/Extension:UserMerge might come in handy if one merges the user to an existing generic one set up by the Wiki Admin.
- Which extension (if any) could one use if they want to edit the sign-up form (for example to add a check box that a user is older that 16 years or the add a link to the privacy statement? Semantic Forms? CayceP (talk) 11:01, 22 May 2018 (UTC)
- I agree to the problem with deleting a user's contributions - it leaves behind the username (or IP address if the user is not logged in) in deletion log - thus, is not a clean process.
- Your solution using UserMerge extension is a good and easy process to delete the username.
- The record of user's contribution in revision history can be deleted using the Manual:DeleteOldRevisions.php . Read this thread for more info - Project:Support desk/Flow/2016/11#h-How_to_delete_deletion_history?-2016-11-10T06:33:00.000Z .
- Also Extension:DeletePagesForGood was recommended in the above thread, but I never used it - so don't know if it's effective.
- Also you can directly delete from the database (though a bit risky). Biologically (talk) 14:03, 23 May 2018 (UTC)
- > Which extension (if any) could one use if they want to edit the sign-up form?
- You can use Extension:NewSignupPage to do so. Stefahn (talk) 11:57, 21 June 2018 (UTC)
- From what I can see (or what I can't see, to be more precise), WMF is handling GDPR with extreme secrecy, or is not going to be compliant on May 25.
- No responses in mailing lists: https://lists.wikimedia.org/pipermail/mediawiki-l/2018-May/thread.html
- Nothing in Phabricator. Nothing on this thread...
- I wonder if WMF is excluded from compliance because it's not a for-profit company. Ciencia Al Poder (talk) 15:39, 22 May 2018 (UTC)
- Any software hosted in EU or has users in EU has to comply with GDPR according to the regulation. So, being a non-profit organization won't relieve them of this problem, I believe. Biologically (talk) 14:08, 23 May 2018 (UTC)
- They have to be compliant to GPDR, because they save personal data, regardless of wether they are a for-profit company or not (and they actually make profit thanks to donations). Sturmjäger (talk) 10:11, 23 May 2018 (UTC)
- What Sturmjäger said. If you have a website located on a server in the EU or which may be accessed by people from the EU, you need to GPDR compliant since even IP addresses are considered data that is protected by that. Since you can't access a website without logging the IP address, your site also affected. (Even if you yourself are not logging the IP on your site, your hoster will in some log files you have no idea of. CayceP (talk) 10:39, 23 May 2018 (UTC)
- Today English Wikipedia is showing a banner with link to this page - https://blog.wikimedia.org/2018/05/21/wikimedia-foundation-privacy-approach/
- So, they are also addressing this problem. Biologically (talk) 14:20, 23 May 2018 (UTC)
- > they are also addressing this problem.
- Are you sure? GDPR is more than doing a few minor changes to a privacy policy. Also, the way they're posting this only 3 days before the law is enforced, looks like this is a rather rush and last-minute move.
- For example, I'm unable to find in the privacy policy how I can close my account or hide my user name if I want to remove it from the public. Ciencia Al Poder (talk) 21:35, 23 May 2018 (UTC)
- GDPR has already came into effect on May 24th 2016, May 25th 2018 is date it's applicable. There was a 2 year transition period but it looks like nobody really paid attention what GDPR really means for anyone hosting or running a website. Looking at all the law blogs that post about this there are also lot of confusion going on, especially concerning direct marketing. I guess the next months will become very interesting. CayceP (talk) 07:47, 24 May 2018 (UTC)
- I agree. But this may be the first step. Let's see what follows. Biologically (talk) 05:55, 24 May 2018 (UTC)
- I asked a similar question on Quora - https://www.quora.com/How-do-I-customize-a-website-running-on-MediaWiki-software-to-make-it-compliant-with-GDPR-General-Data-Protection-Regulation
- The answer by " Jeremy Lee-Jenkins, Wiki creator and developer, Mediawiki, Wikibase and related" contains some useful tips; I am quoting the whole answer here -
- "
- It should be quite easy. Mediawiki is not great at stealing people data.
- Firstly, read A note on our approach to privacy from Wikimedia, and use their changes to their privacy policy as a guide to update yours.
- If you have the Checkuser extension installed, you will want to limited people who can access it to registered data controllers only.
- You will want to stay up to date with any changes Wikipedia makes to their user-interface to allow for GDPR. Despite the fact it’s happening *now*, they haven’t done anything to change this yet.
- If you use analytics of any type, like google analytics, you will need to make sure this is included in your privacy policy. Likewise make sure any nocaptcha/recaptcha solution you use is noted as well.
- Don’t sell your users data to third parties.
- Keep your user data private. This includes email addresses, names, and IP’s.
- " Biologically (talk) 06:10, 24 May 2018 (UTC)
- My another question (https://www.reddit.com/r/WikiInAction/comments/8lhr68/wikipedia_mediawiki_and_the_gdpr_fear_opinion/?st=jhk58rci&sh=e806940e)on Reddit WikiInAction subreddit got this answer from EtherMan -
- "
- MediaWiki is... special in this regard... On one hand, it is already compliant really as a software. GDPR basically says that you have to agree to any data that is stored. Well that's easy enough, MediaWiki only stores what you specifically supply it, and every single edit you make, comes with the clause that you are resigning ownership of whatever you entered. And the second part is that you have to be able to on request of the owner to release everything that is stored on you, to you. Well that's simple enough through MediaWiki by searching for any edits you made because that in theory, should be all data on you.
- Unfortunately, on the other hand... Wikipedia will never be compliant with it, because technically, it does require you to turn over ALL data stored ON you... Not BY you. Basically, any and all data they have ever received in regards to you. That would mean all the private arbcom mails that is in regards to any case you're involved in. It means any and all mentions of you on any talk or article page and so on. Heck it even technically covers any admins that have a stick it note on their monitor with a list of their most hated users if that involves you. This is ALL covered...
- Point is, MediaWiki does from a technical standpoint allow a company to be compliant. But Wikipedia is never going to be because it's just fundamentally incompatible and it would be a MASSIVE workload to fix, and the whole structure is not set up to handle any sort of freedom of information on the processes which GDPR requires but that's a problem of Wikipedia, not MediaWiki specifically.
- Buuuuuut, WMF doesn't care about GDPR, because WMF is a US company and only cares about US laws. They've made this abundantly clear in the past, and the EU is too chicken to go through with bans on the company which would include cutting off access to the site from and to the EU. And the WMF knows it. It would simply be political suicide to try to block Wikipedia, no matter how much of a criminal organization they may become.
- "
- @Ciencia Al Poder the last paragraph in the answer may be one explanation to the silence from WMF you talked about. Biologically (talk) 06:20, 24 May 2018 (UTC)
- @all: Wouldn't it make sense to create an article on mediawiki.org on GRDP where we collect possible solutions to increase compliance and the (currently three, the number will sure increase as of tomorrow) threads here so people have a place to start for getting information? CayceP (talk) 09:04, 24 May 2018 (UTC)
- I think, this is a great idea. Please create a page. We can add the sure-shot solutions by editing time to time as new customization options/extensions are created or discovered regarding this matter. Biologically (talk) 14:16, 24 May 2018 (UTC)
- Here you go: GDPR (General Data Protection Regulation) and MediaWiki software CayceP (talk) 15:25, 24 May 2018 (UTC)
- Wow! That's a tremendously helpful article from the very beginning. Thank you. Biologically (talk) 18:51, 24 May 2018 (UTC)
- Is there anyway to edit the displayed content/form fields of Special:CreateAccount? My MediaWiki asks for an optional "real name" that I would like to remove, but I don't know where. MediaWiki.org doesn't show this real name field in CreateAccount so I guess it's possible?
- I also may want to add a checkbox that users have to check where they confirm that they are older than 16 years. CayceP (talk) 13:01, 30 May 2018 (UTC)
- You should be able to remove the "real name" with this code in LocalSettings.php:
$wgHiddenPrefs[] = 'realname';
(see Manual:$wgHiddenPrefs). - Checkbox: You can use Extension:NewSignupPage to do so. Stefahn (talk) 12:07, 21 June 2018 (UTC)
- You should be able to remove the "real name" with this code in LocalSettings.php:
- Another question I asked about publicly displayed IP address of not logged in users - Project:Support desk/Flow/2018/06#h-Hide_user_IP_address_in_anonymous_editing-2018-06-20T07:38:00.000Z
- Possible solution (by @Ciencia Al Poder) - You may be able to do something by hooking HtmlPageLinkRendererBegin, when you detect the link is to an IP. Biologically (talk) 07:00, 22 June 2018 (UTC)
- @Ciencia Al Poder/@all: Could you please provide for the not so tech-savvy users more information on how to modify the hook so it displays something like "Not logged in user" instead the IP address? This would eventually be added to the LocalSettings, right? CayceP (talk) 11:02, 22 June 2018 (UTC)
Using one logo in the footer
I want to remove the PoweredByMediawiki logo and have just my own logo.
So far I am using the next code which is not working. Another option would be change the PoweredByMediawiki logo in the backend (which I succesfully did) and change its link for my own website (which I can't figure out where it is).
#Insert my own logo
$wgFooterIcons['poweredby']['myicon'] = array(
"src" => "/resources/assets/myownlogo.png", // you may also use a direct path to the source, e.g. "http://example.com/my/custom/path/to/MyCustomLogo.png"
"url" => "https://myownwebsite.org.uk",
"alt" => "My Own Website",
// For HiDPI support, you can specify paths to larger versions of the icon.
"srcset" =>
"/path/to/1.5x_version.png 1.5x, " .
"/path/to/2x_version.png 2x",
// If you have a non-default sized icon you can specify the size yourself.
"height" => "31",
"width" => "88",
);
#Hide poweredby logo
unset( $wgFooterIcons['poweredby'] ); Antonioagar1 (talk) 11:29, 16 May 2018 (UTC)
Skins placing header text outside of span
Trying a test upgrade from 1.24 to 1.30 and we've run into a problem we can't figure out. If you check a page at http://wiki-test.westeros.org/ and check the <h2> and <h3> headers, you'll see something like this:
<h3>
<span class="mw-headline" id="A_Dance_with_Dragons"></span>
<i>A Dance with Dragons</i>
</h3>
Obviously, the text should be within the span, not outside of it, but I can't figure out why this is happening. I thought at first it was only an issue with MobileFrontend and its Minerva skin, but as has been pointed out to me it was just very obvious there because Minerva sets span width to 100%.
/includes/Linker.php seems to be what constructs the headers, with this code:
public static function makeHeadline( $level, $attribs, $anchor, $html,
$link, $fallbackAnchor = false
) {
$anchorEscaped = htmlspecialchars( $anchor );
$fallback = '';
if ( $fallbackAnchor !== false && $fallbackAnchor !== $anchor ) {
$fallbackAnchor = htmlspecialchars( $fallbackAnchor );
$fallback = "<span id=\"$fallbackAnchor\"></span>";
}
$ret = "<h$level$attribs"
. "$fallback<span class=\"mw-headline\" id=\"$anchorEscaped\">$html</span>"
. $link
. "</h$level>";
return $ret;
}
Don't see anything obviously wrong with it, though. Any suggestions as to what the problem might be? Balerion300 (talk) 11:32, 16 May 2018 (UTC)
- Discovered the problem! The Tweeki skin has a hook that changes the behavior of how mw-headline is done, and for whatever reason it was affecting all skins. Disabling the skin seems to fix the issue. Balerion300 (talk) 14:34, 16 May 2018 (UTC)
- Thanks for the report, Tweeki has been updated to no longer affect other skins in this regard. https://github.com/thaider/Tweeki/issues/110 Thai (talk) 18:45, 16 May 2018 (UTC)
Internal Server error - while trying to upload pdf
RESOLVED | |
The cause of this error is due to the .htaccess-File in the images-Folder of the MW 1.30. Replacing this File with a File that runs properly resolved the problem! (I replaced the .htaccess-File of the latest Version with the 1.25-Version-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.
Since I installed the latest version of MW on my server (MW 1.30) and also one of the latest version of php (7.1) I cannot upload any type of files any more (pdf, jpeg, png) through "File upload". I always get the same error (Internal Server error) and the support of my hoster says that it's not due to a hosting problem. So what can I do to upload any type of desired files again? Patrik-ssptop (talk) 16:15, 16 May 2018 (UTC)
- The cause of this error is due to the .htaaccess-File in the images-Folder of the MW 1.30. Replacing this File with a File that runs properly resolved the problem! (I replaced the .htaaccess-File of the latest Version with the 1.25-Version-File). Patrik-ssptop (talk) 18:57, 16 May 2018 (UTC)
VisualEditor curl error 55
Hi,
I'm attempting to use visualeditor over https, but when I attempt to edit an article using visualeditor I'm constantly getting curl error 55:
"Error loading data from server: apierror-visualeditor-docserver-http-error: (curl error: 55) Failed sending data to the peer. Would you like to retry?"
Localsettings.php:
wfLoadExtension( 'VisualEditor' );
$wgDefaultUserOptions['visualeditor-enable'] = 1;
$wgDefaultUserOptions['visualeditor-editor'] = "visualeditor";
$wgHiddenPrefs[] = 'visualeditor-enable';
// $wgVisualEditorParsoidURL = 'https://mydomain.net:8143';
$wgVirtualRestConfig['modules']['parsoid'] = array(
'url' => 'https://mydomain.net:8143',
'domain' => 'localhost',
'prefix' => 'localhost',
// 'forwardCookies' => false,
// 'parsoidCompat' => false
);
Stunnel parsoid.conf:
cert = /etc/httpd/conf/ssl/mydomain.net.crt
key = /etc/httpd/conf/ssl/mydomain.net.key
CAfile = /etc/httpd/conf/ssl/root.crt
[parsoid]
accept = 8143
connect = 8142
Parsoids localsettings.js:
'use strict';
exports.setup = function(parsoidConfig) {
// Do something dynamic with `parsoidConfig` like,
parsoidConfig.setMwApi({
uri: 'https://mydomain.net/wiki/api.php'
});
};
I've tried millions of different combinations of uri/url, any help is greatly appreciated. Julznova (talk) 23:49, 16 May 2018 (UTC)
- If the setup instructions don't help, you should try to debug the issue yourself by inspecting the traffic the browser generates (use F12 to see the requests, where they are sent and if the URL makes sense). Open the RESTBase url from your browser and make sure it opens the documentation page.
- If this is not a problem, you'll have to look at parsoid and RESTBase error logs, and if there's anything obvious, check communication between RESTBase, Parsoid and MediaWiki with a packet sniffer like tcpdump Ciencia Al Poder (talk) 09:41, 18 May 2018 (UTC)
Syncing with iPhone X
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 trouble syncing my media monkey playlists to my new iPhone X 100.36.169.89 (talk) 01:50, 17 May 2018 (UTC)
- Wrong support forum. Better to ask at Need Help with Device Synchronization?. AhmadF.Cheema (talk) 05:47, 17 May 2018 (UTC)
- Thanks. Thought it might be this was just the first i found 100.36.169.89 (talk) 19:55, 17 May 2018 (UTC)
After Upgrade to 1.30 some TOC anchor with German Umlauts or special Characters wont work
Dear All
we recentyl upgraded from MediaWiki 1.23 to 1.30 and also migrated from SQL Lite to My SQL - so far everything worked except some Path Informations within an article but that could be fixed without any problem. The only Problem which still remain is that some anchor Links within the TOC wont work because they have German umlauts or some special characters in it.
Ill allready tried to delete an Article and save it new and when i take an look into the http source file ill cant see why it shouldnt work:
Source Code Example (TOC):
<li class="toclevel-2 tocsection-29"><a href="#L.C3.B6sung_2"><span class="tocnumber">8.4</span> <span class="toctext"><b>Lösung 2</b></span></a></li>
Anchor within Article:
<h2><span class="mw-headline" id="L.C3.B6sung_2"><b>Lösung 2</b></span></h2>
As i said before the Problem also occures when there is some special character in the TOC for Example:
<li class="toclevel-1 tocsection-30"><a href="#Darstellungsfehler_aller_Art_wie_falsche.2Ffehlende_Texte_und_Grafiken"><span class="tocnumber">9</span> <span class="toctext">Darstellungsfehler aller Art wie falsche/fehlende Texte und Grafiken</span></a>
Anchor: <h1><span class="mw-headline" id="Darstellungsfehler_aller_Art_wie_falsche.2Ffehlende_Texte_und_Grafiken">Darstellungsfehler aller Art wie falsche/fehlende Texte und Grafiken</span></h1>
How can i fix that issue? Thank you in advance, regards Mrniceguy1977 pc (talk) 06:59, 17 May 2018 (UTC)
- Additional Information: We use Windows Server 2016, IIS, MySQL and PHP 5.6 - what i found out is that on our testing enviroment ill added the Visual Editor Extension and as soon as i open an article within the new Visual Editor and go to Preview every Link work but actualy ill got the problem that it wont save the information. Maybe some can give me a clue how to manage the above mentionend issue with this additional information. Thank you in advance and have an nice day Mrniceguy1977 pc (talk) 07:40, 18 May 2018 (UTC)
- What is "the issue"? You listed the actual results but not the expected results it seems? Malyacko (talk) 10:54, 20 May 2018 (UTC)
- Obviously, TOC links, which have an umlaut in the link target do not work correctly in his case.
- I cannot reproduce this issue; for me TOC links with umlaut are working just fine. E.g. I have a link called "Ungeklärte Fragen". The HTML code contains this here: id="Ungekl.C3.A4rte_Fragen" and for me that is working correctly as link target from inside the TOC. 2001:16B8:10A7:6100:2D06:C123:4B0A:AC40 (talk) 14:03, 20 May 2018 (UTC)
- Yes when i got Umlauts or an Special Character like ( or / within the TOC the Link wont work but the curious thing is that the hardcoded Link when i just hover over the TOC seems to be right. What i also noticed is when i just open the TOC Link within an new TAB the new Tab open the article on the right position and then immediately scroll up to the Beginning of the Article and the TOC. Then i try to klick in the adressbar and press Enter to reload the Page with the TOC Anchor within the URL the Link work and the Article shows up at the right position. Maybe there is an Problem with the Script within the Mediawiki or something like this. Is there maybe an way to link to the TOC Number instead of the Text? So i can get rid of the issue, because the other way is to not use Umlauts but this wont help for the special characters. Regards Mrniceguy1977 pc (talk) 08:34, 22 May 2018 (UTC)
- The same thing with cyrillic header links in ToC.
- Instead of #Заголовок getting #.D0.97.D0.B0.D0.B3.D0.BE.D0.BB.D0.BE.D0.B2.D0.BE.D0.BA
- Meanwhile the article titles in ToC urls are displayed correctly before "#" 46.0.2.98 (talk) 13:17, 4 May 2019 (UTC)
- This is still a problem 3 years later. We upgraded our wiki from an earlier version to 1.37 and all TOC entries with umlauts in them are broken. The only way to fix them is to edit the page, edit the header text, and save the page. Even if there are still umlauts in there, the links do now work. Is there a good way to re-generate all TOCs at once? 178.19.235.21 (talk) 11:46, 26 January 2022 (UTC)
- Actually, the problem gets worse: Editing the TOC entries / headings makes them work again, but only for a few hours. The next day, the anchors are all broken again :( 178.19.235.21 (talk) 10:12, 28 January 2022 (UTC)
- While i have found no fix, i did find a workaround with the User Vulpix in the mediawiki IRC chat. you can set the $wgFragmentMode to
[ 'legacy', 'html5' ]
and that switche the encoding of the anchors and the toc entry around. i have no idea why that works any better than the "normal" way but it helped me. 178.19.235.21 (talk) 13:21, 28 January 2022 (UTC)
Beagle Bone Pocket Wiki uses mediawiki so want to read on localhost
I am using Ubuntu Studio 18.04 which had mediawiki in its repository and so I installed it as I normally do.
I also ordered a Beagle Bone Pocket and the Git Hub uses media wiki for it reference manual.
I used normat git clone to get the manual and used mediawiki to create the Localsetting.php.
There is no index.php in the Beagle Bone Pocket wiki files so where do I get mediawiki to use the existing files in BB pocket wiki on my laptop localhost ? Cool Games (talk) 13:07, 17 May 2018 (UTC)
- I'm not sure what's Beagle Bone Pocket, but if it's a linux distro or similar, MediaWiki needs a webserver (apache, nginx...) and PHP to run, and a database server (although sqlite is also supported). First check if you have a webserver and try to load the root page (I guess by accessing http://localhost/, not sure if you'll need a different port number) and from there follow the Manual:Installation guide Ciencia Al Poder (talk) 09:35, 18 May 2018 (UTC)
- I included link to the mediawiki files that are used.
- I said got mediawiki root page running on laptop but not the reference manual that included mediawiki files.
- "These instructions are deliberately brief. There is a lot that could go wrong, so if in doubt, you are advised to read the full instructions!"
- The reference manual I want working seems incomplete so my question is for help determining what steps are needed to view locally. Cool Games (talk) 10:56, 18 May 2018 (UTC)
- Your link points to a GitHubWiki, not to a MediaWiki wiki, although it's using a MediaWiki syntax.
- If you want to import those pages to a local MediaWiki installation, you'll need to import them, creating one MediaWiki page for each file. Sadly, there's no automatic way to do this. You can use the edit.php maintenance script to import one page at a time. Ciencia Al Poder (talk) 15:41, 18 May 2018 (UTC)
Upload new file version: getting old version unless browser cache refresh
We're using [[Media:Example.jpg]] to include versioned pdf files. New versions of the file are uploaded via "Upload new file version" on the file description page.
After having uploaded a new file version, the browser keeps returning the old version until the browser cache is being flushed with "Ctrl+F5".
Question: Is there a way to ensure the newest file version is being displayed without having to hard refresh the page manually? Shouldn't mediawiki pass some kind of "expired flag" when a new file version is available?
Software | Version |
---|---|
MediaWiki | 1.22.1 |
PHP | 5.3.17 (apache2handler) |
MySQL | 5.5.33 |
193.29.227.43 (talk) 14:45, 17 May 2018 (UTC)
- Please upgrade your MediaWiki version and then get help. 2A02:C7F:963F:BA00:F497:3E00:4BDD:A80A (talk) 07:01, 18 May 2018 (UTC)
- There's no way to send an "expired flag" to the browser, because the browser is not requesting the URL to see if the file has been updated.
- You should configure your server, the path that contains all your uploads, to send files with a Cache-Control: must-revalidate header, that will make the browser check every time if a new version of the file exists, and if not retrieve the cached version. Ciencia Al Poder (talk) 09:28, 18 May 2018 (UTC)
- @Ciencia Al Poder, but 193.29.227.43's MediaWiki version is too old and need upgrading. 2A02:C7F:963F:BA00:C4B8:9875:F37D:899E (talk) 15:45, 18 May 2018 (UTC)
- You already said that. I'm free to help people even if they use an unsupported MediaWiki version, specially if the problem is not with MediaWiki itself. Ciencia Al Poder (talk) 15:52, 18 May 2018 (UTC)
- Thank you for your lucid explanation. I have asked our administrator to configure our server according to your recommendation and will then report the result here. 193.29.227.55 (talk) 08:52, 22 May 2018 (UTC)
- @Ciencia Al Poder, is this your extension:
- https://github.com/ciencia/mediawiki-extensions-WikiDexFileRepository Revansx (talk) 19:46, 9 July 2019 (UTC)
- Hi there,
- I am experiencing the same issue.
- I have to ask all users to manually purge the cache before opening a reupload of a file version.
- Is there any other way to avoid this? I can edit all mediawiki files on the server, including .htaccess, but I don't have access to the server configuration.
- Mediawiki Version 1.31.3
- PHP Version 7.1.32
- MariaDB Version 5.5.64-MariaDB Waffle2019 (talk) 07:16, 22 October 2019 (UTC)
- You may try setting a Cache-Control header in .htaccess with a short age and "must-revalidate", to cause browsers to check if a new version is available before returning the cached one:
# 10 minutes
Header set Cache-Control "max-age=600, must-revalidate"
- See examples in https://www.askapache.com/htaccess/apache-speed-cache-control/ Ciencia Al Poder (talk) 09:13, 22 October 2019 (UTC)
- Thanks for the tip, I made this edit! I will follow up with my users in the next few weeks to see if it solved our problem. Waffle2019 (talk) 15:10, 30 October 2019 (UTC)
- I had the same issue and thanks to Science is Power @Ciencia Al Poder :-) guidance I was able to get this working for my instance in Windows Server 2012 R2 with IIS 8.5.
- Make sure you have IIS 6 Scripting Tools and IIS 6 WMI Compatibility installed through Server Manager.
- I basically opened IIS Manager and navigated to my website folder right clicked and selected "Add Virtual Directory". In the Alias field I put the same name as the folder in my case I customized wiki to use "uploads" folder so I put uploads in the field. For Physical path just hit the 3 dots and select your folder by navigating to it then hit OK.
- Open command prompt as admin and enter the following commands please enter in your values in the bold words.
cd C:\inetpub\AdminScripts
cscript adsutil.vbs SET W3SVC/1/ROOT/YOUR WIKI SITE/YOUR UPLOAD_IMAGES FOLDER/CacheControlCustom "no-cache"
- Then just test it out. Bruceillest (talk) 17:34, 6 November 2019 (UTC)
- Note that disallowing browsers to cache images will cause a lot of more traffic to your server, and slowness on the wiki (because of the need to redonwload all images on every request).
- It's better if you set the Cache-Control to "max-age=600, must-revalidate", (you can adjust the time) to allow images to be cached for 10 minutes, and then browsers will query the server to see if the image has changed, and if not, it will continue to use the cache without the need to download the image again. Ciencia Al Poder (talk) 20:07, 6 November 2019 (UTC)
- Thanks for that info luckily my site is for a small group of folks but, I did notice that PHP's FastCGI process does eat up a bit of CPU when this happens and in my situation its not too bad.
- If my site grows then I will most likely go down the max-age route. Bruceillest (talk) 20:43, 7 November 2019 (UTC)
- One thing I wanted to add that upon more testing I figured out that by doing the CacheControlCustom to no-cache it messes with indexing the folder using Cirrus search where I can't search for any media that I added. So the max-age route is a better option to avoid messing Cirrus search. Bruceillest (talk) 17:22, 8 November 2019 (UTC)
- I don't see how it can affect Cirrus Search, since Cirrus Search gets updated directly by MediaWiki (using php), whereas your CacheControlCustom property is applied directly to IIS and php is not involved at all. Your issue must be coming from somewhere else Ciencia Al Poder (talk) 10:19, 9 November 2019 (UTC)
- Your right that was not messing with indexing I figured out that Cirrus Search takes a good amount of time to index so I need to try to figure out how to speed that up. Bruceillest (talk) 16:37, 18 November 2019 (UTC)
- I keep having this bug with documents that I uploaded in my wiki. I already deactivated browser caching following this tutorial: https://techexpert.tips/apache/apache-disable-cache/
- The issue is still persisting. Does anyone have another idea?
- Wiki specs:
Product | Version |
---|---|
MediaWiki | 1.31.10 |
PHP | 7.2.24-0ubuntu0.18.04.7 (apache2handler) |
MySQL | 5.7.32-0ubuntu0.18.04.1 |
ICU | 60.2 |
AID-PMBD (talk) 14:13, 16 March 2023 (UTC)
- Your wiki is using an unsupported version and may be vulnerable.
- Apart from that, check for any proxy or intermediate cache. If in doubt, append a random query string to the URL of the file to discard a problem with the file itself. Ciencia Al Poder (talk) 21:39, 16 March 2023 (UTC)
- Thank you, I know the version is unsupported. Unfortunately I can not update the wiki at this point.
- Adding a random query string brought no changes to the file.
- I tried to find out about server side/intermediate caching. As far as I can tell there is no server side cache from the apache. In fact the cache modules are not active.. As for the cdn I am not really sure how to find out since I don't have access to the network architecture. I only have access to the docker the ubuntu server is running on.
- running the URL of the File Page through https://redbot.org/ returned the following results:
- HTTP/1.1 200 OK
- Date: Tue, 21 Mar 2023 08:38:12 GMT
- Content-Type: text/html; charset=UTF-8
- Transfer-Encoding: chunked
- Connection: keep-alive
- CF-Ray: 7ab4e0928e129e70-SJC
- Cache-Control: max-age=0, no-cache, no-store, must-revalidate
- Content-Language: en
- Expires: Wed, 21 Oct 2015 01:00:00 GMT
- Link: </pmbd/images/Quantum_PMBD_Logo.png?b9f7d>;rel=preload;as=image
- Vary: Accept-Encoding,Cookie
- CF-Cache-Status: DYNAMIC
- cf-apo-via: origin,host
- pragma: no-cache
- x-content-type-options: nosniff
- x-frame-options: SAMEORIGIN
- x-ua-compatible: IE=Edge
- Report-To: {"endpoints":[{"url":"https:\/\/a.nel.cloudflare.com\/report\/v3?s=K%2BTjI7CiI%2F4k8yZLEdwvoOhvbz0cpig15EZlxH4twqGljNgAyaJcQMZISv7eE6jpH%2FYdU4PiosxUWAnJpSqoGfl% 2Ffw7xxf5HtQYIgxj05VJRbxOfd6X1aw3234VQmZrJzvNp5RM7U6CIFyr1TAMZqtLL5ZUvRA3D%3D"}],"group":"cf-el","max_age":604800}
- NEL: {"success_fraction":0,"report_to":"cf-
- nel","max_age":604800}
- Server: cloudflare
- The Interpretation was the following:
- General
- The Pragma header is deprecated. This header field is no longer recommended for use, because of interoperability problems and/or lack of use. See the deprecation notice for more information.
- This response explicitly sets a rendering mode for Internet Explorer. This header field is no longer recommended for use, because of interoperability problems and/or lack of use. See the deprecation notice for more information.
- Security
- This response instructs browsers not to 'sniff' its media type. This header field is no longer recommended for use, because of interoperability problems and/or lack of use. See the deprecation notice for more information.
- This response prevents some browsers from rendering it within a frame on another site. This header field is no longer recommended for use, because of interoperability problems and/or lack of use. See the deprecation notice for more information.
- Content Negotiation(Content Negotiation response )
- The response content is different when content negotiation happens. This header field is no longer recommended for use, because of interoperability problems and/or lack of use. See the deprecation notice for more information.
- Content negotiation for gzip compression is supported, saving 59%. This header field is no longer recommended for use, because of interoperability problems and/or lack of use. See the deprecation notice for more information.
- Caching
- Pragma: no-cache is a request directive, not a response directive. This header field is no longer recommended for use, because of interoperability problems and/or lack of use. See the deprecation notice for more information.
- This response can't be stored by a cache. The Cache-Control: no-store directive indicates that this response can't be stored by a cache. AID-PMBD (talk) 09:03, 21 March 2023 (UTC)
- If appending a query string to the file doesn't display the new version of the file, this means the upload didn't succeed, or some permission problem prevented the file from being updated on the destination folder, although MediaWiki would have aborted the upload in that case. Check the filesystem and see if the file was actually replaced by the new version.
- Also, you may have inadvertently uploaded the same old version. Ciencia Al Poder (talk) 10:54, 21 March 2023 (UTC)
- Thank you very much for the help. I double checked, I uploaded the new version and it is definitely the right version of the file in the file system, also when I download the file it is always the right version.
- I have a new suspicion. The issue only appears when using Microsoft Edge and only with the built in preview from Edge. I also noticed that the URL when previewing the file is not in fact my wiki URL, but starts with https://view.officeapps.live.com/op/view .
- Could it be that the browser uses a depreciated version of the file when previewing it? AID-PMBD (talk) 12:34, 23 March 2023 (UTC)
- I don't know what's that preview from Edge, but indeed looks like the issue. It seems to be proxying the opening of that file to an external service (from MS office) that doesn't update its cache Ciencia Al Poder (talk) 14:21, 24 March 2023 (UTC)
- I am seeing a similar problem to AID-PMBD, where Edge seems to cache an old version of an uploaded file regardless of what I do in Apache. I added some "Header set Cache-Control "max-age=60, must-revalidate" to the .htaccess file of the images directory for the file types in question which Firefox seems to obey, but in Edge once I download a file from MW, all subsequent downloads of that same file will match the first downloaded version (regardless of if the file is replaced with a new version in Mediawiki) unless I go to Settings -> Privacy.......->Clear Browsing Data Now and clear the "Cached Images and Files".
- Oddly enough, despite this file seemingly existing somewhere, looking at the cache storage under the Dev Tools in Edge does not show anything. I'm sure that's just me doing something wrong, but thought I'd throw it out there.
- This issue presents itself with both the "Open" and "Save" download options that Edge gives, no Office Preview stuff involved at all. Andy.leonhard (talk) 15:57, 30 August 2023 (UTC)
Parsoid
Dear All,
I have a MediaWiki installation running on my one.com-hosted webspace. I wanted to install the VisualEditor extension. Do I need to install Parsoid & Node.js first and if so how?
I'm probably quite stupid but the only guides i seem to find are the ones for MWs hosted on local servers. Please advice.
Thank you very much!
Max 2003:E5:CBCE:FF67:818:3381:CFEE:D267 (talk) 20:06, 17 May 2018 (UTC)
- Yes, you need to install both Parsoid & Node.js.
- See Parsoid/Installing Node and Parsoid/Setup.
- Before you start attempting to install the applications, you should confirm from your hosting provider that whether they provide SSH access and Node.js installation or not. AhmadF.Cheema (talk) 05:22, 18 May 2018 (UTC)
Best extension for comments?
Due to GDPR I will most likely kill my Facebook comments plugin and also Disqus.
Now, which MediaWiki extension do you recommend for providing blog-like comments?
According to Wikiapiary Extension:Comments is the best choice. Does anyone know, if it will be maintained in the coming years?
Flow/StructuredDiscussions looks much to cumbersome to setup. Stefahn (talk) 16:40, 18 May 2018 (UTC)
- Extension:Comments, like other social tools, has literally been maintained for over a decade — mostly by a small team of volunteers, including me, since 2008. I don't have a crystal ball so I'm not able to accurately predict the future, but currently there are no plans to stop maintaining Comments and/or any of the other social tools. Furthermore I'm confident that even if I need to step down as the maintainer of the social tools group of extensions, someone else would fill in the void, given the popularity of these tools.
- If you encounter any issues, bugs or need help, please don't hesitate to post on the extension's talk page (for general issues) or file a task on Phabricator (for software bugs). Jack Phoenix (Contact) 15:31, 25 May 2018 (UTC)
- Thanks for your helpful reply!
- Yes, I found out that Comments does not allow names for anonymous visitors and added an according feature request to Phabricator at https://phabricator.wikimedia.org/T195348. Stefahn (talk) 20:25, 6 June 2018 (UTC)
Undesired line break after template
I’ve been trying to use multiple templates in a row like this:
{{[[Template:{{{1}}}|{{{1}}}]]}}{{[[Template:{{{1}}}|{{{1}}}]]}}
With Template being something basic like the output still is
Hello World. Hello World.
as opposed to the desired result
Hello World.Hello World.
What am I missing? 73.183.172.9 (talk) 00:39, 19 May 2018 (UTC)
New login 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.
I have a new install of mediawiki 1.30.0. It's running on a physical server (not a VM). My php version is 5.6.35. The database is mysql 5.6.40. All this is running on FreeBSD 11.1-RELEASE-p9 with apache 2.4.33.
Here's the issue: I got wikimedia installed and running. Login worked fine. Afterwards, I enabled SSL on the wiki site. Now, when a user logs in, he gets redirected to https://example.comindex.php/Main_Page - note the lack of a '/' between the domain and 'index.php...' - and of course it can't be found. If you manually put the '/' where it belongs, Main_Page loads properly. Before I enabled SSL, this worked correctly. Any ideas? Thanks.
PS - I'd rather not leave apache running until a couple of other unrelated things are resolved. Chauncey edgar (talk) 02:58, 19 May 2018 (UTC)
- If clicking on the logo doesn't redirect you to the faulty address, I'd say the problem may be in redirect rules from apache (if you have any) Ciencia Al Poder (talk) 15:58, 19 May 2018 (UTC)
- Clicking the logo gets me to the correct Main_page; but I have to click the Back button in my browser in order to see the logo. Immediately after login, I only see my browser's "not found" page.
- Thanks. Chauncey edgar (talk) 20:32, 19 May 2018 (UTC)
- Another way to phrase the question: when a user enter his password and clicks 'Log in,' which file processes the login and generates the URL? Chauncey edgar (talk) 21:34, 19 May 2018 (UTC)
- Unless you have changed anything in MediaWiki core files, the issue shouldn't be from there.
- Can you show your Apache redirect rules (if any), and the values for $wgScriptPath, $wgArticlePath from your LocalSettings.php file. AhmadF.Cheema (talk) 06:17, 20 May 2018 (UTC)
- I don't think I've changed those things, but I have $wgScriptPath = ""; $wgArticlePath does not appear in my LocalSettings.php. Chauncey edgar (talk) 13:49, 20 May 2018 (UTC)
- Update: the same problem appears when creating a new page. When you click the "Save" button, you get sent to the new page's URL, but the same '/' is missing (between the domain and 'index.php'). It also appears when saving an edit to an existing page, or searching on a page that exists. Searching on a nonexistent page works properly, i.e. offers you the opportunity to create it.
- To address Ciencia Al Poder's other point: The only apache redirect is from HTTP to HTTPS; this works fine.
- You can try it at https://navseadoc.org/. There is a test user called Testa (how do they think of these things?) with the password Rossa. Chauncey edgar (talk) 13:44, 20 May 2018 (UTC)
- After triple-checking all the mediawiki files, I rechecked my apache config and did some experimenting. I found that if I have apache listen on port 80 only, my wiki works fine. It's only listening on port 443 that causes the "wrong URL" issue, whether using a redirect from port 80 to 443, or with a straight 443-only setup. Here are the relevant parts of httpd.conf as it stands now, which causes the "wrong URL" problem. The parts that are obviously bogus have "real" values in the actual httpd.conf.
- Listen 443
- <VirtualHost *:80>
- ServerName navseadoc.org
- Redirect "/" "https://navseadoc.org"
- </VirtualHost>
- <VirtualHost *:443>
- ServerName navseadoc.org
- ServerAdmin myname@example.com
- SSLEngine on
- SSLCertificateFile "/path/to/certificate"
- SSLCertificateKeyFile "/path/to/private/key"
- # The following is a symlink to wherever mediawiki ended up:
- DocumentRoot /usr/local/www/apache24/data/sites/navseadoc.org
- </VirtualHost>
- Behavior is unchanged whether I use a symlink or the real path to mediawiki in the DocumentRoot line. If it matters, I am not using mod_rewrite. I do have shell access to the server. Chauncey edgar (talk) 20:27, 21 May 2018 (UTC)
- Maybe you should change the
Redirect "/" "https://navseadoc.org"
- with
Redirect "/" "https://navseadoc.org/"
- If that's the problem, you should also set $wgServer to use https:// instead of http:// Ciencia Al Poder (talk) 21:15, 21 May 2018 (UTC)
- Adding the trailing '/' to the apache redirect fixed it. The $wgServer change doesn't seem to have any effect, although I left it in place on general principles.
- Thank you so much! Chauncey edgar (talk) 21:54, 21 May 2018 (UTC)
just open the article when search
When I search on my wiki, it always list the result of search.
It's same when I type exact word.
I think when my keyword is exactly same with article name, it's much more proper that the article just show up. not listing results.
But I couldn't find the option of this. Is there someone can help me? 221.153.37.97 (talk) 09:05, 19 May 2018 (UTC)
Historical info and other facts vs. Mainsteam media
RESOLVED | |
Off-topic discussion for mediawiki.org as it is about the content of some other wiki |
The following discussion is closed. Please do not modify it. Subsequent comments should be made on the appropriate discussion page. No further edits should be made to this discussion.
Hey, I edited info (corrected terms of territory and added the fact that it was occupied and still is), but it was reverted due to it not being "friendly" towards one specific religious group who lately got a big thing for censorship, and I got a message explaining that it had to follow mainstream media. What is that all about? 85.191.189.171 (talk) 14:42, 19 May 2018 (UTC)
- It's a very sensitive topic for many, so as to not be fully direct on to what it is, I will leave a hint:
- The government of the people who occupy the territory of the country they're in doesn't allow equal rights, killed (literally killed) the previous government and is a terrorist organisation. Zahkrosis (talk) 14:51, 19 May 2018 (UTC)
- This support forum is primarily for queries related to the MediaWiki software (the application that runs Wikipedia). For questions related to Wikipedia content, it would be better if you ask them at w:Wikipedia:Teahouse. AhmadF.Cheema (talk) 15:45, 19 May 2018 (UTC)
When I attempted to configure a wiki family in Localsettings.php, it failed gracefully.
MediaWiki Version: 1.30
PHP Version: 5.6.36
MySQL Version: 5.6.39-cll-lve
In my Localsettings.php file I have been trying to configure a wiki family on my wiki, and it did not work well at the time. The site failed gracefully, leaving an error message saying that it was not possible to determine the wiki ID. Is there a way to fix this problem? What is wrong with the wiki family setup code? The code that the wiki had looked like this:
if ( defined( 'MW_DB' ) ) { ''// Set $wikiId from the defined constant 'MW_DB' that is set by maintenance scripts.'' $wikiId = MW_DB; } elseif (isset($_SERVER['SERVER_NAME']) && $_SERVER['SERVER_NAME'] == 'wiki1.example.org') { ''// Add a value to the $wikiId variable for e.g. https://wiki1.example.org/'' $wikiId = 'wiki1'; } elseif (isset($_SERVER['SERVER_NAME']) && $_SERVER['SERVER_NAME'] == 'example.org' && substr($_SERVER['REQUEST_URI'], 0, 6) == '/wiki2') { ''// Add a value to the $wikiId variable for e.g. https://example.org/wiki2'' $wikiId = 'wiki2'; } 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.' ); }
Newman2 (talk) 16:33, 19 May 2018 (UTC)
- If using $wgConf and SiteConfiguration, you can use the --wiki command line option to select the right wiki Bawolff (talk) 20:21, 19 May 2018 (UTC)
- How do you get to use the wiki command line option? Where is it located? It is hard to locate things in SiteConfiguration. Newman2 (talk) 20:47, 19 May 2018 (UTC)
- Sorry, i read too quickly. I thought you were talking about maintenance scripts.
- You could try and get what the current server is by looking at $wgServer (That variable should be registered by the time LocalSettings.php is loaded) Bawolff (talk) 21:09, 19 May 2018 (UTC)
- The server is at penguinicewikis.com. Newman2 (talk) 01:21, 21 May 2018 (UTC)
- I get errors when trying to configure the site. When I tried to extract configuration settings in global context, I got this error:
- PHP Fatal error: Call to a member function getAll() on null in /home/gjlxrtap/public_html/mw19/LocalSettings.php on line 238
- What can I do to get around this error? What is there in the SiteConfiguration.php file to make it possible to determine the wiki ID? I have no clue on what to do when I get an error like this. Newman2 (talk) 22:09, 22 May 2018 (UTC)
Help against vandalism
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, would somebody like to protect my user talkpage and preferably globally lock the IP? It has been blocked as an open proxy on both en.wiki and Commons. ~~~~. Bishonen (talk) 21:05, 20 May 2018 (UTC)
- Never mind. I guess this was the wrong page, but thank you all for your interest. The IP has been globally locked. Bishonen Bishonen (talk) 22:01, 20 May 2018 (UTC)
Removing "User" and "User Talk" Pages
RESOLVED | |
I ended up just dropping all pages in the database where page_title did not have a corrisponding username in user
Select * From page Where (Select user_name from user) Not In page_title AND (page_namspace = 2 or page_namespace = 3) |
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 need some assistance with deleting User and User Talk pages for all the users who are not registered.
Eg. I deleted about 50 users out of the database of our site and now would like to remove all of their User and User Talk Pages is there an easy way to do this?
Thanks. 115.187.155.108 (talk) 23:20, 20 May 2018 (UTC)
- You can use a bot like pywikibot, or use the nukePage.php maintenance script. You can easily generate a list of pages to delete using a spreadsheet and some formulas. Ciencia Al Poder (talk) 18:59, 21 May 2018 (UTC)
- I ended up just dropping all pages in the database where page_title did not have a corrisponding username in user 115.187.155.108 (talk) 23:26, 21 May 2018 (UTC)
PHP to Create Pages?
I would like my extension to create a couple pages. It should only create the pages once, on first run.
- Template
- Special page
- Form
I'm guessing this should happen in the file: MyExtension/extension.json Correct?
I assume it's only a matter of bundling the page-names and page-content in my extension, and passing that to a page-creation call.
But what is the page-creation call? Should i use generic php? Or is there a special page-creation function for mediaWiki? Johnywhy (talk) 11:02, 21 May 2018 (UTC)
- I see how pages are created using the web API
action=edit
. https://m.mediawiki.org/wiki/Special:MyLanguage/API:Edit - But the Main API page says to use the PHP extension interface Ok, cool, but where is documentation for the page creation call in the extension API?
- This page only mentions hooks in relation to page-creation, but no mention of creating pages directly. i don't need hooks for my purpose. Johnywhy (talk) 12:12, 21 May 2018 (UTC)
TCM
In the 1.31 version. I exported the local data to XML and imported it to the public network. I found that the classification was lost. What is the reason for this?
- MediaWiki:1.31
- PHP:7.1
- Database:mysql5.7 101.26.42.210 (talk) 11:29, 21 May 2018 (UTC)
- What do you mean by classification? Ciencia Al Poder (talk) 18:56, 21 May 2018 (UTC)
- Thank you very much for your reply!Category added in content,such as[[Category:Category name]]。 101.26.42.210 (talk) 00:10, 22 May 2018 (UTC)
- I try to add a content category. Found that the same can not be added, it may be because 1.31 is not perfect reason。 101.26.42.210 (talk) 01:59, 22 May 2018 (UTC)
- Thank you very much for your reply!Category added in content,such as[[Category:Category name]]。 101.26.42.210 (talk) 00:10, 22 May 2018 (UTC)
- Maybe you need to run Job queue. AhmadF.Cheema (talk) 07:07, 22 May 2018 (UTC)
- Is this related to the imported design linked to MediaWiki? 101.26.42.115 (talk) 08:12, 25 May 2018 (UTC)
- Thank you very much for your answer!I am using WINDOWS + nginx + PHP + MYSQL. How can I automatically set the category when importing data? 101.26.42.115 (talk) 08:11, 25 May 2018 (UTC)
- When you import data, one or more jobs are added to the queue, which perform the categorization. The same happens when you add a category when editing an article, but if you import several pages, and only one job is picked per page view, it may take longer to make the categorization effectively.
- Run the runJobs.php maintenance script, or set up a job runner service as explained in the manual of Job queue Ciencia Al Poder (talk) 09:29, 25 May 2018 (UTC)
- As the manual mentions, from a command terminal on Windows, run something like:
- <path_to_locally_installed_PHP>/php.exe <path_to_mediawiki_directory>/maintenance/runJobs.php AhmadF.Cheema (talk) 09:34, 25 May 2018 (UTC)
- Thank you very much for your answer. I open the CMD input C:\ Server \ php-7.2.5-nts-Win32-VC15-x64 \ php.exe C: \ Server \ WWWRoot \ MediaWiki \ maintenance \ runJobs.php. Invalid, please help me 101.26.42.115 (talk) 13:39, 25 May 2018 (UTC)
- I've never run a PHP command in Windows, so can't be sure what the problem could be.
- However, in CMD, did you include the spaces after each backslash (\) too? AhmadF.Cheema (talk) 15:14, 25 May 2018 (UTC)
Linebreak after template
Hi,
I am getting line breaks after each use of a template, even though the template itself doesn't include any line breaks at all.
That is a problem for me because I sometimes want to use two templates in a row or even just have some text after a template.
Any ideas why this is happening or any solutions? 73.183.172.9 (talk) 16:07, 21 May 2018 (UTC)
- You have a line break in the template, probably before the . 121.214.107.188 (talk) 07:59, 22 May 2018 (UTC)
- <noinclude> 121.214.107.188 (talk) 07:59, 22 May 2018 (UTC)
- I had the same issue and line break before <noinclude> were the cause in my case, so 121.214.107.188 answer solution/worked for me... CayceP (talk) 14:59, 24 May 2018 (UTC)
- y time you include a template, an extra line break is added. Usually this is no big deal, as mediawiki will ignore line breaks unless there are two in a row. But if the template has a line break, then the one in the template plus the extra one combine to be two causing a real line break.
- So as other's said, make sure the template has no line breaks at the end of it (potenitally using <noinclude> at end of template)n Bawolff (talk) 15:32, 28 May 2018 (UTC)
Invalid categories names
MediaWiki 1.30.0 PHP 7.0.28 (apache2handler) MySQL
Windows 10
Main language is Russian.
I install Mediawiki (bundle from Bitnami) and add some pages. After a few days I see that in pages _last_ letter of all titles of categories replaced by � (UNICODE FEFF). All pages, including specialpages! When I switch to English interface specialpages is ok, but other, where russian words are bad. What is wrong? 185.124.231.251 (talk) 17:41, 21 May 2018 (UTC)
- Any ideas? 84.22.137.77 (talk) 05:18, 24 May 2018 (UTC)
- That's rather odd.
- It suggests that something is wrong with charset related stuff. Maybe there is some error preventing MediaWiki from sending the UTF-8 content-type header. Check your php error/warning log
- If you have a link to your website, that could maybe help so we could see what's going on Bawolff (talk) 15:30, 28 May 2018 (UTC)
jCarousel implementation
I am new to MediaWiki and after countless googling, I still have this problem: I have the JavaScript file for jCarousel however I am not sure how to implement it so I can create a carousel on my mediawiki. All the directions say to edit MediaWiki:Common.js but I do not know what I am supposed to put in there. When I just put the jCarousel code in Common.js, the images appear next to each other instead of in a sliding motion. Does anyone know what I can do to fix this issue? S.zhangx20 (talk) 17:53, 21 May 2018 (UTC)
- Maybe try using Extension:JavascriptSlideshow. AhmadF.Cheema (talk) 07:07, 22 May 2018 (UTC)
Math extension error: API error: internal_api_error_DBQueryError
Hello, i need some help with deciphering the following error https://pastebin.com/pjPA0HZ9
Thank you. GEP316 (talk) 19:34, 21 May 2018 (UTC)
- Feel free to file a bug report with exact MediaWiki and Math version information and steps to reproduce. Malyacko (talk) 13:08, 26 May 2018 (UTC)
- Set this in LocalSettings.php to have more detailed error message:
$wgShowExceptionDetails = true;
$wgShowSQLErrors = true;
Ciencia Al Poder (talk) 16:13, 27 May 2018 (UTC)
How to use canvas in mediawiki
How can I use <canvas> in mediawiki? 79brue (talk) 02:57, 22 May 2018 (UTC)
Installed MediaWiki -- told it to ask me more questions, do I need to check extensions that come with 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.
There are several extensions like RenameUser and ParserFunctions that say, "This extension comes with MediaWiki vWhatever and above. Thus you do not have to download it again. However, you still need to follow the other instructions provided." But in the MediaWiki installation, if I tell MediaWiki that I want it to ask me more questions, it asks if I want these extensions. If I check the box for these extensions, are they fully installed for me? Is checking the box superfluous? Banaticus (talk) 19:34, 22 May 2018 (UTC)
- If you check the boxes those extensions will be "fully installed" (which in this case only means automatically adding the required 1-2 lines of code per extension inside the LocalSettings.php file). AhmadF.Cheema (talk) 19:52, 22 May 2018 (UTC)
- Thanks! Banaticus (talk) 20:49, 22 May 2018 (UTC)
How do I have my MediaWiki account here deleted?
I've never made a contribution to mediawiki.org other than to post here in the Support Desk, so I don't think deleting my account will have any of the "serious effects" that I've seen mentioned when I've searched for this issue.
How do I delete my account? Anthonyhobday (talk) 20:53, 22 May 2018 (UTC)
- In a nutshell: One can't delete their account themselve. Of course there are extensions that allow merging accounts and there is always the possibility to delete the entries in SQL, but in general, it's preferred no to delete users: https://www.mediawiki.org/wiki/Manual:FAQ#.E2.80.A6is_it_a_good_idea_to_keep_user_accounts.3F
- Even if you haven't contributed to MW.org itself, your post here in the Project Namespace already leads to database entries. CayceP (talk) 11:42, 24 May 2018 (UTC)
- Thanks for the reply, CayceP. Are you saying that it's not possible to have my account on Mediawiki.org deleted?
- I'm happy to have my account merged with some kind of Anonymous account, if that helps. I just don't want my details in the Mediawiki database. Anthonyhobday (talk) 20:52, 25 May 2018 (UTC)
- Also see, Wikipedia:FAQ#How do I change my username/delete my account? AhmadF.Cheema (talk) 21:01, 25 May 2018 (UTC)
Open file in new tab
Hi everyone,
Is there a way that I can open PDF or word files which I have embedded in the page in a new tab?
Thanks in advance! Joshua Tan JT (talk) 02:34, 23 May 2018 (UTC)
- Maybe Project:Support desk/Flow/2013/06#h-Opening_file-link_in_new_tab-2013-06-05T14:45:00.000Z will help. AhmadF.Cheema (talk) 04:18, 23 May 2018 (UTC)
- This doesnt seem to work for me. Is there any alternative solution?
- Thanks in advance! Joshua Tan JT (talk) 01:08, 24 May 2018 (UTC)
$wgEnableAPI Still Required?
RESOLVED | |
$wgEnableAPI is true by default, deprecated, and will be removed in the next release |
The following discussion is closed. Please do not modify it. Subsequent comments should be made on the appropriate discussion page. No further edits should be made to this discussion.
This doc says $wgEnableAPI must be set to true.
Does that apply to ALL API calls?
I noticed i'm able to perform query API calls, but $wgEnableAPI does not appear in my LocalSettings.php. Johnywhy (talk) 08:55, 23 May 2018 (UTC)
- Default value (if not exists in localsettings) is
true
. After 1.31.0 this setting will be "deprecated" (going to be removed). wargo (talk) 09:14, 23 May 2018 (UTC) - $wgEnableAPI is true by default, deprecated, and will be removed in the next release Ciencia Al Poder (talk) 09:15, 23 May 2018 (UTC)
Query XML or Json with WikiText?
RESOLVED | |
Extension:External Data#Displaying individual values |
The following discussion is closed. Please do not modify it. Subsequent comments should be made on the appropriate discussion page. No further edits should be made to this discussion.
Is there a native or extension method to query XML or Json using Wikitext?
(without php) Johnywhy (talk) 09:57, 23 May 2018 (UTC)
- might be the solution:
- Extension:External Data#Displaying individual values
- still checking Johnywhy (talk) 10:06, 23 May 2018 (UTC)
GPDR in MediaWiki?
- I'm going to take over a wiki which is running with MediaWiki 1.25 and currently is relatively dormant, so there was no preparation for the GPDR, I'll update it to the latest version when I move it to my own server.
- How can I make a MediaWiki-powered wiki compliant for the GPDR?
- Since the wiki has been closed for IP edits since its creation, it should be much easier I think. However, the following things still have to be implemented in our wiki:
- A way to export an user's saved data as an XML or JSON file
- Terms of use which need to be accepted when creating an account (or possibly a bridge to WoltLab Suite, which is the software a forum cooperating with the wiki runs with, so that forum accounts can be used in the wiki)
- Probably an overview for SQL commands to delete accounts
- Do these things already exist, or if not, are these already in development (as extensions?) or do I have to use some workarounds/close the wiki for a while? Sturmjäger (talk) 10:07, 23 May 2018 (UTC)
- The wiki you try to take over is running a outdated version of MediaWiki. Please, after taking over the wiki, upgrade your MediaWiki version on a wiki that has been taken over. 2A02:C7F:963F:BA00:386A:FB4:26AA:B992 (talk) 15:16, 24 May 2018 (UTC)
- We already have two threads dedicated to this (one you are already posted in):
- https://www.mediawiki.org/wiki/Project%3ASupport%20desk/Flow/2018/05#h-GDPR_compliance-2018-05-11T21%3A49%3A00.000Z
- https://www.mediawiki.org/wiki/Project%3ASupport%20desk/Flow/2018/05#h-How_to_make_a_MediaWiki_website_%22more%22_compliant_to_GDPR%3F-2018-05-16T06%3A07%3A00.000Z
- I think we should see with what solutions/suggestion the community comes up with, create a article on MediaWiki that documents solutions and see from there
- Please see here: https://www.mediawiki.org/wiki/GDPR_(General_Data_Protection_Regulation)_and_MediaWiki_software CayceP (talk) 09:00, 24 May 2018 (UTC)
File-Copy Extension?
Is there an extension or native method (URL API, not php) to copy a file from a remote url to my mediawiki server?
i don't see anything like that on the API documentation. Johnywhy (talk) 11:08, 23 May 2018 (UTC)
- See Manual:Importing external content for what is available in MediaWiki itself. You could use for example scp to copy files via ssh. Malyacko (talk) 13:06, 26 May 2018 (UTC)
- If you mean, for the puproses of uploading a file to your wiki, check out $wgAllowCopyUploads Bawolff (talk) 15:26, 28 May 2018 (UTC)
- Actually, i want to provide some pre-made wiki-pages as stand-alone files, and then enable admin to add those pages to their own wiki via wiki-text or Url-API. Johnywhy (talk) 13:18, 29 May 2018 (UTC)
MediaWiki first startup error
After the installation of mediawiki it shows me that error:
Warning: require(/users/myname/www/includes/resourceloader/ResourceLoaderContext.php) [function.require]: failed to open stream: No such file or directory in /users/myname/www/includes/AutoLoader.php on line 1264
Fatal error: require() [function.require]: Failed opening required '/users/myname/www/includes/resourceloader/ResourceLoaderContext.php' (include_path='.') in /users/myname/www/includes/AutoLoader.php on line 1264
I use the latest version of MediaWiki
Having trouble updating from 1.26.4 to 1.30
Hello. I run a small wiki for a baseball league (wiki.bullleague.org) and I seem to be encountering problems upgrading to 1.30. If someone is able to assist I'd appreciate it. Please email: commish (at) bullleague.org
Thanks! 209.171.88.240 (talk) 17:17, 23 May 2018 (UTC)
- Please make your queries directly on this forum here. AhmadF.Cheema (talk) 18:01, 23 May 2018 (UTC)
- Which error and/or problems did you get? 2A02:C7F:963F:BA00:386A:FB4:26AA:B992 (talk) 15:21, 24 May 2018 (UTC)
- I have now created an account to make this easier.... So, I haven't attempted again lately, but after I uploaded all of the extracted MW 1.30 files to my server via FTP (to a folder called ("/wiki130/"), I renamed the OLD "/wiki/" folder as something else ("/wiki-old/") and then named the new one as ("/wiki/").
- My server is PHP 5.5 or greater (5.7 I think) and I use MySQL again 5.58 or higher.
- My current MW version is 1.26 so the FAQ said no need to change anything in the LocalSettings.php. I tried using the browser method to update, which is the next step. I then get an HTTP 500 error. Bullleague (talk) 16:27, 3 June 2018 (UTC)
- You'll need to see the error message of the HTTP 500 error, that indicates the cause of the problem. Look at the error logs. See blank page Ciencia Al Poder (talk) 09:29, 4 June 2018 (UTC)
Patches for Cross Scripting vulnerability
- We are in the process of hosting a small community site and part of vulnerability scans, found these issues as below. Do you have any patches that I can run to avoid getting into issues of session cookie theft and other issues?
- 8 instances of this issue were identified, at the following locations:
- /load.php [modules parameter]
- /api.php [action parameter]
- /api.php [formatversion parameter]
- /api.php [iiprop parameter]
- /api.php [meta parameter]
- /api.php [name of an arbitrarily supplied URL parameter]
- /api.php [prop parameter]
- /api.php [titles parameter] Cloudgurushiva (talk) 18:26, 23 May 2018 (UTC)
- What **exactly** makes you think that there is some "Cross Scripting Vulnerability" somewhere? What is "Cross scripting"? If you meant "Cross-site scripting" (see https://en.wikipedia.org/wiki/Cross-site_scripting), have you found a specific testcase that you have tested yourself and could actively abuse? If that is the case, please see Reporting security bugs and include MediaWiki version information.
- If this is just about the general API (which is not a vulnerability at all in itself), you can disable the API. Malyacko (talk) 13:03, 26 May 2018 (UTC)
- Some automated scanners are of poor quality and have false positives on the api. Usually you can ignore these unless you can actually reproduce the issue. Bawolff (talk) 15:23, 28 May 2018 (UTC)
Controlling a dead wiki when I don't have the privileges?
Just recently, after racking up a total of eighteen 'deleted' spambot pages - more blanked and moved spam pages - I have openly threatened in changelog to start up a new one so i can actually have some control over the spambots. The problem is, it is usually only me working the wiki page, since everyone else seems to have abandoned it right from the start - including the creator of the page.
I am only running on the Wikipedia-based desktop side of MediaWiki - I haven't installed it because I've had a look and I'm very confused (I'm just a casual user, I'm very daunted by the prospects of setting up databases and updating regularly) - and I'm at the minute the only user actually making regular edits to the site - at the minute, as I have just said before, it's usually just cleaning out the spam, as at the minute, the more important content of the site, where I make video transcripts, has been left temporarily on the back-burner due to time constraints.
The wiki site is regularwiki.com - a wiki based on Regular Car Reviews, of which I have developed mostly on my own for many months now. As you will be able to see, it is very bare-bones in some aspects, including the lack of a properly-functioning and informative main page, lack of certain formatting tools that could help out in transcripting, lack of moderators, and lack of important details such as an about section. And with a recent resurge in spambots, I'm feeling like I really want to change things, but I think that MediaWiki is limited in that it cannot hand over control of a dead wiki to a certain user like Wikia does, and now that I think of it, would it be too much self-learning and power?
After all, I'm just a casual user with a small-ish Wikipedia background who just wants the best for the once-abandoned wiki. But after this spambot resurgence, I'm feeling more lost than ever for motivation and ways to expand the wiki with the limitations that I have thanks to a dead userbase. Hullian111 (talk) 21:16, 23 May 2018 (UTC)
- You don't have any permissions on the website and it's not yours, so you can't really do anything but complain to the owner and edit out the spam yourself. Your best option would be to start your own competing website and it shouldn't be too hard if you have any experience running WordPress or any website really. Skieraegis (talk) 21:26, 23 May 2018 (UTC)
- I've tried contacting the owner of the site through Reddit once, having contacted the user who made the first announcement, and I've not got a reply, and I've also used the messenger on that wiki, and I've got nothing from that either. Strangely enough, the Reddit account, last time I checked, was still active. I'll try again and if I don't get a result, I'll try and find a way to start some alternative wiki - a shame, really, because I've invested months of work into it. There was an abandoned one over at Wikia that I could easily claim... Hullian111 (talk) 21:31, 23 May 2018 (UTC)
- WHOIS is messed up thanks to GDPR compliance efforts by the registries, but you could try there too. I wouldn't bother using Wikia, since the website would then be entirely under their control too. You'd have greater freedom if you just installed MediaWiki onto your own hosting service.
- You can export the pages you created using Special:Export so it shouldn't be too bad. Just remember to set up proper anti-spam mechanisms (QuestyCaptcha, AbuseFilter) or you'll face the same issues. Skieraegis (talk) 21:36, 23 May 2018 (UTC)
- As mentioned above, Special:Export can simply be used to save all your months long work and then export it into another Wiki.
- On Wikia, although you will have less control plus Wikia ads, but since you mentioned being "very daunted by the prospects of setting up databases and updating regularly", Wikia will definitely be less headache. OR, you can also try free MediaWiki hosting by Miraheze. AhmadF.Cheema (talk) 06:55, 24 May 2018 (UTC)
- See Hosting services for other alternatives. I also advise against using Wikia. Ciencia Al Poder (talk) 09:42, 24 May 2018 (UTC)
- I don't recommend you Wikia wikis. They can be removed or given to someone else, at any time. That's their policy. Try to save the content you've created, and open your own wiki, transfer your content.
- Miraheze is really good, and it's free, but it require you or your community to be active. A non active wiki will be deleted after a while.
87.91.248.85 (talk) 13:42, 15 February 2019 (UTC)
Cannot automatically add Category when importing XML data
- MediaWiki:1.31
- PHP:7.1
- Database:mysql5.7
In the 1.31 version. I export the local data to XML and import it into the public network. I found that the categories in the content were not added. No category was found in Special:Categories. What is the reason?Very much looking forward and thanking you for your answer。 101.26.42.38 (talk) 04:43, 24 May 2018 (UTC)
- See Project:Support desk/Flow/2018/05#h-TCM-2018-05-21T11:29:00.000Z Ciencia Al Poder (talk) 09:44, 24 May 2018 (UTC)
- Is this related to the imported design linked to MediaWiki? 101.26.42.115 (talk) 08:12, 25 May 2018 (UTC)
- Thank you very much for your answer!I am using WINDOWS + nginx + PHP + MYSQL. How can I automatically set the category when importing data? 101.26.42.115 (talk) 08:10, 25 May 2018 (UTC)
Using MW for organizing fiction
Having been a fan and user of MediaWiki for a few years now, I have started using it to collect all my worldbuilding/fiction documentation in wiki format. However, I need to be able to "collect" pages for multiple projects without them colliding.
Let's say I'm writing about "Earth" for two separate "universes". I don't want to go the Wikipedia-route to use parentheses ("Earth (Project #1)" and "Earth (Project #2)") as I find it messy, both in linking and styling. I've tried using a wiki family, which did work but was too complex for me to properly maintain, and I'm using a shared host right now since VPS is too expensive at this point.
So the only real alternative I can see is using namespaces. However, much like with parentheses, namespaces add additional text (the namespace prefix) in the title. My question is this: what is the best method to separate pages per project? Are namespaces suitable for this? I did find two extensions that can hide the namespace prefix, so I'm aiming for that. But is it the best way? 62.140.132.91 (talk) 08:33, 24 May 2018 (UTC)
- Namespaces may be inconvenient, because then all your pages will be on a non-default namespace. If you use parentheses only when needed, only those pages will need the special attention while other pages can be linked naturally without namespaces nor parentheses. Ciencia Al Poder (talk) 09:20, 24 May 2018 (UTC)
- Well, not all pages will be on namespaces. The "Main" space will still be used for generic content. If I do use parentheses to indicate a "universe", can I hide those specific parts in the page title, while using less obtrusive text like a disambig template to show context? (e.g. "Earth (Universe #1)" will become "Earth" with a smaller subtitle of "Universe #1", while "USS Enterprise (aircraft carrier)" won't change).
- I could make an extension that somehow parses the title, checking for a particular string in parentheses, but only when there is no other way. I simply want the page title and internal links (without always using piped links) to remain clean. 145.44.77.224 (talk) 09:42, 24 May 2018 (UTC)
- You can have a displayed title different from the actual page name. See Manual:$wgAllowDisplayTitle. However, apparently internal links won't remain as clean as you want them to.
- The less obtrusive text can either be through some convenient template or simply using small font text (i.e.
<small>Text</small>
). AhmadF.Cheema (talk) 11:50, 24 May 2018 (UTC)
Problems with Mediaviewer
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 problem with viewing images at my wiki using Mediaviewer
So the images added to the article from commons they are fine, but images uploaded to the server cannot be seen - I have a message with error that message cannot be viewed.
You can see it here: https://wikireshebnik.ru/index.php/%D0%92%D0%B8%D0%BA%D0%B8%D1%80%D0%B5%D1%88%D0%B5%D0%B1%D0%BD%D0%B8%D0%BA:%D0%9F%D0%B5%D1%81%D0%BE%D1%87%D0%BD%D0%B8%D1%86%D0%B0
Could someone help me to resolve the problem? Fokebox (talk) 15:10, 24 May 2018 (UTC)
- Console of the F12 browser developer tools, shows up an error after opening the image in the Mediaviewer. AhmadF.Cheema (talk) 18:50, 24 May 2018 (UTC)
- I received an advice and saw that I had a mistake at Localsettings with $wgServer ="http://"; as I have installed sertificate it should be remade to $wgServer ="https://";
- It has resolved the proble Fokebox (talk) 12:12, 25 May 2018 (UTC)
Template: Template:Sidebar with collapsible lists no [Show...] buttons in our wiki
RESOLVED | |
Sorry it has self resolved. I hadn't copied over the commmons.js and after doing that it resolved itself. |
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 wonder if you know why the collapsible lists aren't showing correctly in our wiki? It isn't displaying any of the [Show...] buttons.
This is an example template: http://encyclopediaofbuddhism.org/wiki/Template:Tibetan_Buddhism_sidebar
It's copied over from Wikipedia here http://en.Wikipedia.org/wiki/Template:Tibetan_Buddhism_sidebar
We have copied over the common.css and common.js as described here:
https://en.wikipedia.org/wiki/Wikipedia:Common.js_and_common.css
Our wiki version info is:
http://encyclopediaofbuddhism.org/wiki/Special:Version
MediaWiki 1.30.0
PHP 5.6.36 (cgi-fcgi)
MySQL 5.6.36-82.1-log
Thanks! Robertinventor (talk) 19:17, 24 May 2018 (UTC)
Not Receiving Talk-Page Notifications
i am subscribed to various talk pages (clicked star at page top).
But i do not receive notifications/alerts/alarms/what are they called?
How to fix? Johnywhy (talk) 05:25, 25 May 2018 (UTC)
- Does this happen always, or just sometimes? AhmadF.Cheema (talk) 09:28, 25 May 2018 (UTC)
- Not sure. Just noticed. I have received talk alerts in the past. Johnywhy (talk) 10:05, 25 May 2018 (UTC)
- Sometimes happen with my account too. Some notifications are never received and some are late.
- Probably related to T190429. AhmadF.Cheema (talk) 07:53, 26 May 2018 (UTC)
- Currently, it seems i'm not receiving ANY talk alerts. Johnywhy (talk) 08:04, 26 May 2018 (UTC)
Can you move the location of the Extension:CharInsert box?
his might not be the most appropriate location for this query (I have also posted it to Mediawiki:Edittools, but is it possible to adjust preferences, skin, common.css etc to have the edittools/charinsert box ABOVE the edit window rather than below it? 101.26.42.115 (talk) 08:06, 25 May 2018 (UTC)
I want to upload in my club's wikipage the image of the shield of my club and Wikipedia doesn't allow me!
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.
Can you please help me to know what is going on and let me upload? JuntaJuniorFC (talk) 16:02, 25 May 2018 (UTC)
- Sorry, this helpdesk does not deal with issues regarding Wikipedia, only with questions about the software product MediaWiki of which Wikipedia is only 1 of many installations. Please direct your question to Wikipedia itself. —TheDJ (Not WMF) (talk • contribs) 16:16, 25 May 2018 (UTC)
- Sorry and thank you for your message JuntaJuniorFC (talk) 16:40, 25 May 2018 (UTC)
I would like to get in contact with a wiki contributor
Hello,
I'm an editor of a forthcoming book. I would like to use a picture for publication
I would like to get in contact with Wouter Hagens who is a contributor to wikimedia.
https://commons.wikimedia.org/wiki/User_talk:Wouterhagens
You can contact me on: image.requests.2018@gmail.com
Thanks,
Mark 92.110.79.158 (talk) 07:07, 27 May 2018 (UTC)
- Have you already tried commenting on the user's talk page? AhmadF.Cheema (talk) 09:06, 27 May 2018 (UTC)
- To send a (public) message to User:Wouterhagens, go to https://commons.wikimedia.org/w/index.php?title=User_talk:Wouterhagens&action=edit§ion=new Bawolff (talk) 15:17, 28 May 2018 (UTC)
API: Section Number From Name?
RESOLVED | |
Solution works on 1.30. Some issues on 1.31.
Make a template that converts section-name to section-id number:
|
The following discussion is closed. Please do not modify it. Subsequent comments should be made on the appropriate discussion page. No further edits should be made to this discussion.
is there a way to obtain the section number of a section, if I know it's name?
My goal is to use API edit action on an existing section, but the edit action requires a section number.
Section name is allowed only for new sections. (i wish name was allowed for existing sections too).
Alternatively, is there a method to edit a section by name directly?
Might be relevant: https://m.mediawiki.org/wiki/Special:MyLanguage/API:Query#/talk/21 Johnywhy (talk) 08:47, 27 May 2018 (UTC)
- There's not a great answer to this, but you can probably use action=parse&prop=sections
- e.g. https://www.mediawiki.org/w/api.php?action=parse&page=Manual:Extensions&prop=sections Bawolff (talk) 15:14, 28 May 2018 (UTC)
- Thanks for that. Then, i'd have to parse the returned data-- search for the section-name i seek, then reference its section number.
- Could be done with #get_web_data, and the Extension:External_Data. But native functionality is preferred over using an extension.
- Is there a filter available for the parse action? Doesn't appear to be (should be :)
- Or is there an API function to query a single value from json? Johnywhy (talk) 17:44, 28 May 2018 (UTC)
New page request
My Friends, I'm writing a paper on God Rap but I can't find anything here about it. I feel that this should be addressed. It's a rich topic with lots of heritage and relevance to the rap and hip-hop genre, as it is the root of both disciplines.Thank you
Matthew L. Sheppard, Esq. Sneferu8 (talk) 20:18, 27 May 2018 (UTC)
- This is the MediaWiki support desk, for issues related to MediaWiki software. You should probably ask on a forum or talk page of the wiki where you came from, since on mediawiki.org we don't have pages about this. Ciencia Al Poder (talk) 09:21, 28 May 2018 (UTC)
Composer
I am upgrading a 1.23 installation to 1.30. Several extensions must be upgraded, and at least one says it requires Composer. I don't really understand the Composer documentation, as I have always used FTP to copy uncompressed files into a folder. Is there a guide to Composer that would help a newbie? 71.163.111.232 (talk) 04:19, 28 May 2018 (UTC)
- You'll need to install PHP on your local computer, install composer, and run the composer command it needs to be run, then you'll be able to upload the folder to your hosting. Ciencia Al Poder (talk) 09:23, 28 May 2018 (UTC)
tar file available for parsoid installs (git clone not allowed)
Dear Support Desk
Our company does not allow us to go to a page and git clone from it.
Therefore we simply cannot do a git clone from https://gerrit.wikimedia.org/r/p/mediawiki/services/parsoid
Is it possible to get a tar gz from somewhere and download and install it ourselves? As we did so far with all or mediawiki releases and extensions.
Thank you very much in advance, Hannah HannahsBuzzards (talk) 06:58, 28 May 2018 (UTC)
- You can download a zip from the GitHub mirror repository, under the "clone or download" button:
- https://github.com/wikimedia/parsoid Ciencia Al Poder (talk) 09:18, 28 May 2018 (UTC)
wiki phone application
Dear Support Desk
Our company uses wiki platform for sharing database. can we also share this information in an app on a mobile phone. with user name & password 212.179.9.140 (talk) 08:33, 28 May 2018 (UTC)
- MediaWiki provides an API. You can develop an app and login your users through the api to access the wiki content. You can also retrieve content through the api. Ciencia Al Poder (talk) 09:15, 28 May 2018 (UTC)
Is Approval Need to Publish Extension on MediaWiki.org?
RESOLVED | |
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.
anyone is free to develop and publish an extension on mediawiki.org, without seeking approval, correct? Johnywhy (talk) 11:17, 28 May 2018 (UTC)
- correct, unless it is basically created for the intent of phishing or some other nefarious business. —TheDJ (Not WMF) (talk • contribs) 12:22, 28 May 2018 (UTC)
- @TheDJ wrote: "unless it is basically created for the intent of phishing or some other nefarious business"
- -- then approval is needed? Johnywhy (talk) 12:48, 28 May 2018 (UTC)
- no, then you are not allowed to publish here ;) —TheDJ (Not WMF) (talk • contribs) 13:18, 28 May 2018 (UTC)
Mediawiki: The site can't be reached
Hello there,
I am sorry if I shouldnt be asking this question here but I feel like i have been everywhere looking for answers an I can't figure out what I am doing wrong. Long story short, I can access my wikipage on my server using localhost, the ip of the server, or heritage.egm.mb.ca but I can't access the server from my home computer or any other computer. Please read on if you can help me thing of why.
I help with a volunteer group. We have a current wiki on a really old server here: http://heritage.apegm.mb.ca/index.php/Main_Page
I have built a new server for our group that is currently at my house. I am trying to get mediawiki up and running correctly, then I will transfer the data from the old site to the new site.
Versions
Mediawiki 1-30.0
Debian 9
PHP 7.0
mysql 5.6 (I think... I can check when I get home)
So like I mentioned the new server is at my house on my home network. Internally I have a static IP assigned to the server. Something different is that I have my mediawiki installation at /home/var/lib/mediawiki. I did this because my /home partition has the most space by far.
I have created a .conf file for my server under /etc/apache2/sites-available. In there I set my sitename to http://heritage.egm.mb.ca. I set an alias at http://www.heritage.egm.mb.ca and I set my document path to the path I mentioned earlier. I then enabled that site and disabled the default site. I changed the LocalSettings.php wgsitename to my server name and set my internalservername to the static ip I have assigned the server. I set the ip, sitename and host name in the etc/hosts file and checked etc/hostnames and made sure that my server is the only one listed. I set port forwarding on my router so that requests on port 80 and 443 on my router are forwarded to my server. When I access my router IP from outside my network at 24.76.201.191, the sitename gets resolved but won't load.
What am I missing? I am going crazy.
Thanks for any help,
Trent Whytekong (talk) 12:56, 28 May 2018 (UTC)
- I set the ip, sitename and host name in the etc/hosts file and checked etc/hostnames and made sure that my server is the only one listed
- So I think this is a DNS issue. There is no DNS record for
heritage.egm.mb.ca
. Its working on your server, because you added a record to /etc/hosts. /etc/hosts is a way to override DNS on just that computer, so with the entry on the server's /etc/hosts it will work on the server but no other computer, as all other computers don't have the entry in /etc/hosts - So you need to get a DNS entry added.
heritage.egm.mb.ca
however may not be a valid domain name: "The segment of the domain name that is on the left of the segment used for a Canadian province or territory, must be used for a Canadian city. (e.g. xyz.ottawa.on.ca or xyz.montreal.qc.ca). A segment is the group of characters between the dots in the domain name." (Edit: I think the CIRA whois is just a little broken, and that's not really true as there are plenty of third level domains under .ca that are not city names) - The reason going directly to http://24.76.201.191/ doesn't work, is because MediaWiki will use $wgServer to redirect to the canonical form of http://heritage.egm.mb.ca/index.php/Main_Page, which then doesn't work due to lack of DNS entry. Edit pages (which don't redirect to canonical form) do work: http://24.76.201.191/index.php/Main_Page?action=edit Bawolff (talk) 15:09, 28 May 2018 (UTC)
- So this may be a dumb question but how do i get a DNS entry added? Whytekong (talk) 16:17, 28 May 2018 (UTC)
- For a .ca domain, see https://cira.ca/ca-domains/register-your-ca
- Once you get the domain, you want to make sure the A record for the domain is the IP address of your server ( 24.76.201.191 ) Bawolff (talk) 17:59, 28 May 2018 (UTC)
- Ok thank you! I will take a look. Whytekong (talk) 18:59, 28 May 2018 (UTC)
News Bulletin
I want to create news bulletin on my mediawiki installation & am searching for extension where I can display 10 articles (Date Descending) from category "Local News". The display should apear with the content (either full or first 100 words) & a image in article.
How can it be done ? Help & support will be appreciated. Thanks in advance Ubagwe (talk) 13:17, 28 May 2018 (UTC)
- Possibly through Extension:DynamicPageList3. See:
- DPL:Parameters: Criteria for Page Selection#category
- DPL:Parameters: Controlling Output Volume#include specially labeled text portions and Volume#includemaxlength. AhmadF.Cheema (talk) 13:45, 28 May 2018 (UTC)
Parse error: Unexpected "$wikiId" in Localsettings.php
MediaWiki Version: 1.30
PHP Version: 5.6.36 (litespeed)
MySQL Version: 5.6.39-cll-lve
ICU Version: 57.1
Hello. When I attempted to set up a wiki family on the Localsettings.php of my wiki, I get an error with the following message: PHP Parse error: syntax error, unexpected '$wikiId' (T_VARIABLE) in /home/gjlxrtap/public_html/mw19/LocalSettings.php on line 259. The code that caused the error while attempting to create the wiki family is:
if ( defined( 'gjlxrtap_pnwiki' ) ) {
''// Set $wikiId from the defined constant 'MW_DB' that is set by maintenance scripts.''
$wikiId = penguinicewiki;
} elseif (isset($_SERVER['SERVER_NAME']) && $_SERVER['SERVER_NAME'] == 'wiki1.example.org') {
''// Add a value to the $wikiId variable for e.g. https://wiki1.example.org/''
$wikiId = 'wiki1';
} 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.' );
}
if ($wikiId == 'wiki1') {
$wgSitename = "Penguingame Studio";
$wgServer = "http://penguingamestudio.com";
$wgLogo = "ExampleWiki_logo.png";
$wgDBpassword = "we39585f7ha34";
$wgSecretKey = "9348vhas589ytas35aurhgao94aywrotuhapw94u";
$wgLanguageCode = 'en';
}if ($wikiId == 'wiki1') {
$wgSitename = "Penguingame Studio";
$wgServer = "http://penguingamestudio.com";
$wgLogo = "ExampleWiki_logo.png";
$wgDBpassword = "-----------------";
$wgSecretKey = "------------------------------";
$wgLanguageCode = 'en';
}
What can I do to fix this error? I have no idea on what to do here, I never expected to get errors like this. Thank you for reading. Newman2 (talk) 19:56, 28 May 2018 (UTC)
- Not sure which line is line # 259, but unless penguinicewiki is a predefined constant I would guess it's the line "$wikiId = penguinicewiki;", where you probably should've either assigned the MW_DB constant, or the string 'penguinicewiki'. Clump (talk) 20:53, 28 May 2018 (UTC)
- I changed it to MW_DB, and it still gives me the same error. And line 259 is the very line that should have the MW_DB constant. Newman2 (talk) 21:57, 28 May 2018 (UTC)
- Is "// Set $wikiId from the defined constant 'MW_DB' that is set by maintenance scripts." literally in your file? That is supposed to be a comment, not a string...
- The error is because php is encountering a variable ($wikiId) in a place where it makes no sense. So something is syntactically wrong with your file. Clump (talk) 01:43, 29 May 2018 (UTC)
- The error actually occurs with the line that has the following: $wikiId = penguinicewiki Newman2 (talk) 00:30, 31 May 2018 (UTC)
- Shouldn't that line be:
$wikiId = 'penguinicewiki';
- ? Ciencia Al Poder (talk) 09:24, 31 May 2018 (UTC)
- I'm not sure whether the central wiki ID will work the same way with any ID, or if the wiki ID of penguinicewiki should be the same as the if ( defined( 'gjlxrtap_pnwiki' ). Newman2 (talk) 12:24, 31 May 2018 (UTC)
- In how far does that have to do with the syntax error, which PHP is throwing?
- Does this syntax error go away, if you adjust the code as told by Ciencia? 2001:16B8:109A:6600:99CC:A011:191E:55A5 (talk) 15:17, 31 May 2018 (UTC)
- If penguinicewiki would be an unexpected wiki ID, then what can I do to fix this? Newman2 (talk) 17:59, 2 June 2018 (UTC)
- Looks like penguinicewiki is not a problem, because you got a PHP Parse error, if it is other error, you will get other type messages of the error. A PHP Parse error, mostly because of syntax errors in the code, have nothing to do with the logic of the application.
- So you should check the context of the 259 line for syntax error first. If you can't check, you can also post the context of the 259 line here and let us check (pay attention to attach the line number). 星耀晨曦 (talk) 19:29, 2 June 2018 (UTC)
- Do you even notice that line 259 is $wikiId = penguinicewiki? Newman2 (talk) 01:19, 3 June 2018 (UTC)
- Which is clearly invalid (should be a "string"), along with your comments being invalid syntax as already mentioned. 121.219.12.173 (talk) 06:36, 3 June 2018 (UTC)
- An error the parser encounters on line 259 could be caused by malformed code on a previous line. If on line 258 you literally have
"// Set $wikiId from the defined constant 'MW_DB' that is set by maintenance scripts."
then that is likely source of the syntax problem, as that is a string, not a comment. It should be// Set $wikiId from the defined constant 'MW_DB' that is set by maintenance scripts.
Note the lack of quotes. Also note that you have several comment-lines wrapped in quotes. Clump (talk) 01:54, 3 June 2018 (UTC) - I just removed the double apostrophes from the comments. Now it only fails gracefully with the following message: It was not possible to determine the wiki ID. What can I do to make it determine the wiki ID? Newman2 (talk) 15:14, 3 June 2018 (UTC)
- Not sure, but
$wikiId = penguinicewiki;
is almost certainly wrong. Try Ciencia's suggested fix:$wikiId = 'penguinicewiki';
Also note that you have two if-blocks at the end, both testing whether the wikiId is 'wiki1' but doing different things. Clump (talk) 17:24, 3 June 2018 (UTC) - I just fixed the penguinicewiki variable, and my wiki still fails with the code. What do I do then? Newman2 (talk) 22:21, 3 June 2018 (UTC)
- ^Read above. Newman2 (talk) 00:05, 4 June 2018 (UTC)
- @Newman2: can you post your current LocalSettings config (same as you did above, but with the changes you've made since)? Sam Wilson 05:04, 4 June 2018 (UTC)
- Newman2 (talk) 12:38, 5 June 2018 (UTC)
if ( defined( 'MW_DB' ) ) { // Set $wikiId from the defined constant 'MW_DB' that is set by maintenance scripts. $wikiId = 'penguinicewiki'; } elseif (isset($_SERVER['SERVER_NAME']) && $_SERVER['SERVER_NAME'] == 'en.penguingamestudio.com') { // Add a value to the $wikiId variable for e.g. <nowiki>https://wiki1.example.org/</nowiki> $wikiId = 'wiki1'; } 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.' ); } if ($wikiId == 'wiki1') { $wgSitename = "Penguingame Studio"; $wgServer = "<nowiki>http://penguingamestudio.com</nowiki>"; $wgLogo = "ExampleWiki_logo.png"; $wgDBpassword = "we39585f7ha34"; $wgSecretKey = "9348vhas589ytas35aurhgao94aywrotuhapw94u"; $wgLanguageCode = 'en'; }
- You should use
MW_DB
to get the wiki ID if possible, and but apart from that it should be okay: - Sam Wilson 12:48, 5 June 2018 (UTC)
<?php if ( defined( 'MW_DB' ) ) { $wikiId = MW_DB; } elseif (isset($_SERVER['SERVER_NAME']) && $_SERVER['SERVER_NAME'] === 'en.penguingamestudio.com') { $wikiId = 'wiki1'; } else { die( 'It was not possible to determine the wiki ID.' ); } if ($wikiId === 'wiki1') { $wgSitename = "Penguingame Studio"; $wgServer = "http://penguingamestudio.com"; $wgLogo = "ExampleWiki_logo.png"; $wgDBpassword = "we39585f7ha34"; $wgSecretKey = "9348vhas589ytas35aurhgao94aywrotuhapw94u"; $wgLanguageCode = 'en'; }
- Please change your secret key and database password on your server, because you've leaked it publicly Ciencia Al Poder (talk) 13:55, 5 June 2018 (UTC)
- Done. I will try not to leak anymore of my passwords in the future. I also changed the penguinicewiki variable to MW_DB, and it didn't fix the issue with the wiki ID. Newman2 (talk) 21:51, 5 June 2018 (UTC)
- There must be an issue with determining the server name. If you
var_dump($_SERVER['SERVER_NAME']);
what do you see? Are you serving the wiki from en.penguingamestudio.com or penguingamestudio.com (I assume the former)? - I'm guessing the idea here is to have separate language subdomains with separate wikis, all running from the same MediaWiki directory? If so, you probably want to extract the language code from the domain name and use it as part of the wiki ID. You can then also use it to set things like $wgLanguageCode and $wgServer (after validating it of course). Sam Wilson 00:05, 6 June 2018 (UTC)
- I used var_dump and got the following error: string(19) "penguinicewikis.com" It was not possible to determine the wiki ID. I also serve my second wiki at en.penguingamestudio.com, with my central wiki located at penguinicewikis.com. Newman2 (talk) 01:40, 6 June 2018 (UTC)
- Okay, so you probably want something along the lines of the following (I've removed the passwords etc. just to make it clearer; you'll need to add them for each wiki).
- Sam Wilson 03:17, 6 June 2018 (UTC)
<?php if ( defined( 'MW_DB' ) ) { $wikiId = MW_DB; } elseif (isset($_SERVER['SERVER_NAME']) && $_SERVER['SERVER_NAME'] === 'penguinicewikis.com') { $wikiId = 'main'; } elseif (isset($_SERVER['SERVER_NAME']) && $_SERVER['SERVER_NAME'] === 'en.penguingamestudio.com') { $wikiId = 'en'; } else { die( 'It was not possible to determine the wiki ID.' ); } if ($wikiId === 'main') { $wgSitename = "Penguinice Wikis"; $wgServer = "http://penguinicewikis.com"; $wgLanguageCode = 'en'; } if ($wikiId === 'en') { $wgSitename = "Penguingame Studio"; $wgServer = "http://en.penguingamestudio.com"; $wgLanguageCode = 'en'; }
- I did it. I also have already listed the server and the script path in Localsettings.php outside of the wiki family code. I just got the following error: PHP Parse error: syntax error, unexpected '<' in /home/gjlxrtap/public_html/mw19/LocalSettings.php on line 255 Newman2 (talk) 17:53, 6 June 2018 (UTC)
- In LocalSettings.php, on line 255, you have a "<" character, which does not belong there.
- Honestly I don't know, what you are changing in the file.
- Maybe you should first read an introduction to PHP before you go ahead - PHP can be rather picky about its syntax. You should read something about PHP syntax first! 2001:16B8:101A:200:D1C3:3F7F:9E12:ABDC (talk) 18:03, 6 June 2018 (UTC)
- @Newman2: Are you including the
<?php
part? That should be left out (it only goes at the top of LocalSettings, and you've probably already got it in that file). I'm sorry, I shouldn't have included it in the above code. Sam Wilson 22:42, 6 June 2018 (UTC) - I removed the <?php part from the wiki family code and now my Penguin Ice Wikis site is up and running. However, en.penguingamestudio.com has not loaded when I go to the site. What do I need to do in order to get the en.penguingamestudio.com site up and running? Newman2 (talk) 01:50, 8 June 2018 (UTC)
- Do you get any error?
- You firstly need to make sure that en.penguingamestudio.com is being mapped to the same MediaWiki directory. Sam Wilson 01:55, 8 June 2018 (UTC)
- No, I do not get any error on my main wiki. And by the way, how do I make sure that en.penguingamestudio.com is being mapped to the same MediaWiki directory? Newman2 (talk) 16:10, 8 June 2018 (UTC)
- ^Read the post above. Newman2 (talk) 00:11, 9 June 2018 (UTC)
- > how do I make sure that en.penguingamestudio.com is being mapped to the same MediaWiki directory?
- One easy way is to create a symlink from wherever it's being served from now to the other directory.
- Or you can change your web server configuration to change the document root (e.g. for Apache, set something like
DocumentRoot "/var/www/mediawiki"
). - Basically, it's nothing to do with MediaWiki itself, so you should be able to get the various domains pointing to the same directory on your server, and then after that work on configuring MediaWiki. Sam Wilson 08:28, 9 June 2018 (UTC)
- I have a question. Do I need to add a CommonSettings.php for global settings and separate LocalSettings files for each wiki? If so, do I need a separate database for each wiki? This could be why my Penguingame Studio wiki is not running.
- EDIT: I also installed global userrights, and I loaded it into my CommonSettings.php file. When I loaded the extension and added steward rights to my Commonsettings.php file, it did not show up on penguinicewikis.com. The settings of penguinicewikis.com are located in my LocalSettings.php file. Newman2 (talk) 14:12, 9 June 2018 (UTC)
- ^Read the post above. Newman2 (talk) 14:24, 10 June 2018 (UTC)
- (You don't need to keep saying "read the post above". It might come across as rude.)
- > Do I need to add a CommonSettings.php for global settings and separate LocalSettings files for each wiki?
- No, you can configure it all in LocalSettings if you wish, with conditional statements, or you can do something like this and have separate files:
require_once "$IP/LocalSettings_$wikiId.php";
- Personally, I prefer having it all in one file, because there's only half a dozen lines that are unique to each wiki and they're easy enough to see when all together.
- Did you get the other domain working? Sam Wilson 00:39, 11 June 2018 (UTC)
- I'm sorry about posting "Read the post above", I did it because I was afraid that people wouldn't read my post. And I've tried to get the other domain working, but the sites for my Penguingame Studio wikis can not be reached. And when I try to enable global extensions, it gives me an internal error.
- Do I need to install any databases to get multiple wikis running? If none of the additional wikis could have their site reached, then what can I do to make my additional wikis up and running? It is hard for me to find a way to get this all set up on my own. Newman2 (talk) 00:59, 11 June 2018 (UTC)
- Okay, to get things started I recommend you don't worry about MediaWiki at all: just get both domains being served from the same place. Doesn't matter if that directory just contains a simple index.html file. Don't try to get the MediaWiki side of things sorted out until you've done the webserver part.
- What web server are you using? Apache? What filesystem directories are set up as the document roots for the domains? e.g. they might be
/var/www/penguinicewikis.com
and/var/www/en.penguingamestudio.com
. So you need to get both of these pointing to a single place, either by changing the web server config or setting up symlinks (etc.). - Does that make sense? Sam Wilson 06:39, 11 June 2018 (UTC)
- My web host managers said I can't directly manage the Apache configuration files, but I can define specific rules just for your domain using an .htaccess file. Also, I can't change the web server config. Newman2 (talk) 18:06, 11 June 2018 (UTC)
- I started a subdomain of penguinicewikis.com called Penguiconverter. I pointed it at the original file, but my site shows up as a duplicate of the original site. What can I do to make the data on the wiki separate from the other site? Newman2 (talk) 18:39, 11 June 2018 (UTC)
- Sounds good! So you've got two domains pointing to the same place. :) That's good. If you've got it working on the subdomain as the same site, then you must have changed LocalSettings.php to have a default DB name etc.; can you post your current config?
- So next you need to sort out the configuration in LocalSettings.php — make sure you've got a config like I posted above, with the relevant subdomains in there.
- Do you have a second database set up for the other wiki? If not, you can clone your existing working one with tables/structure only and no data. Are you using phpMyAdmin? There's a tool in there for doing that. Sam Wilson 03:10, 12 June 2018 (UTC)
- I cloned my database by importing, and the wiki hasn't become separate yet. I also tried to use require_once in Localsettings.php, and it gave me the following error: PHP Fatal error: require_once(): Failed opening required '/home/gjlxrtap/public_html/mw19/LocalSettings_penguiconverter.php' (include_path='/home/gjlxrtap/public_html/mw19/vendor/pear/pear_exception:/home/gjlxrtap/public_html/mw19/vendor/pear/console_getopt:/home/gjlxrtap/public_html/mw19/vendor/pear/mail_mime-decode:/home/gjlxrtap/public_html/mw19/vendor/pear/net_smtp:/home/gjlxrtap/public_html/mw19/vendor/pear/pear-core-minimal/src:/home/gjlxrtap/public_html/mw19/vendor/pear/mail:/home/gjlxrtap/public_html/mw19/vendor/pear/mail_mime:/home/gjlxrtap/public_html/mw19/vendor/pear/net_socket:.:/opt/alt/php56/usr/share/pear:/opt/alt/php56/usr/share/php') in /home/gjlxrtap/public_html/mw19/LocalSettings.php on line 234
- What can I do to remove that fatal error? Also, how can I make my new wiki have separate pages and files but still run successfully? Newman2 (talk) 14:55, 12 June 2018 (UTC)
- > What can I do to remove that fatal error?
- Seriously, the error is very explicative. Why are you adding PHP code to files without having any clue of what you're doing, and then asking why it doesn't work, if you don't even explain the rationale of adding random require_once? Ciencia Al Poder (talk) 09:09, 13 June 2018 (UTC)
- I removed the require_once code and I currently will not remove it because I did not know how to fix it without help. I also want to know if the correct way to clone the old database is to export it and then import it into the new database, because my second wiki still shows the same pages and files as the original wiki. Newman2 (talk) 01:22, 14 June 2018 (UTC)
- You should export only the database structure, and not any data in it. Then, when setting up the new wiki you'll run:
php maintenance/update.php --wiki penguinconverter
- And yeah, if you want to have separate LocalSettings files for each wiki, you'll have to actually create those files. But I'd recommend you keep things simple. Sam Wilson 02:43, 14 June 2018 (UTC)
- Wait... do I run that script with a web server like Apache? Or where do I run it? Newman2 (talk) 15:38, 14 June 2018 (UTC)
- No, you need to run it from the command line, e.g.:
cd /var/www/mediawiki
php maintenance/update.php --wiki penguinconverter
- Alternatively, you can navigate to http://penguingamestudio.com/mw-config/ (and again for each domain in turn) and run the updated that way. Have a read of Manual:Upgrading#Web_browser for more information. Sam Wilson 10:38, 15 June 2018 (UTC)
- I updated my Penguiconverter wiki, however when I uploaded a test file it showed up on both Penguiconverter and Penguin Ice Wikis. Do I need to create separate directories for images and pages? If not, what do I need to do to fix this? Newman2 (talk) 16:55, 15 June 2018 (UTC)
- Yeah, you could base this too on $wikiId, e.g.:
- Sam Wilson 09:49, 16 June 2018 (UTC)
$wgUploadDirectory = "$IP/images_$wikiId"; $wgUploadPath = "/images_$wikiId"; $tmpDir = "/tmp/mediawiki_{$wikiId}_" . php_sapi_name();
- Added the upload location. I also did a test edit on my Penguiconverter wiki, and the edit showed up on my Penguin Ice Wikis wiki. What can I do to make pages and edits separate on each wiki when they are pointed at a single place?
- EDIT: I also added the database for Penguiconverter, and I got the following message: (Cannot access the database: Access denied for user 'gjlxrtap_penguinicewiki'@'localhost' (using password: YES) (localhost)) Newman2 (talk) 10:40, 16 June 2018 (UTC)
- Will anyone be able to read the above post? Newman2 (talk) 20:44, 22 June 2018 (UTC)
- Sorry if I keep bringing up my post. I am really ticked off that no one has appeared to notice my post. Newman2 (talk) 16:20, 23 June 2018 (UTC)
How to edit the Personal URLs?
I want to edit the personal URLs in my wiki, but I can't find the according MediaWiki message, and the manual also doesn't tell me which page I have to edit. Searches for MediaWiki messsages using prefixes like user or personal weren't successful either.
Can someone help me? ;) Sturmjäger (talk) 07:31, 29 May 2018 (UTC)
- You could get the message IDs by passing the URL parameter "uselang=qqx" and then search for these strings. Malyacko (talk) 07:54, 29 May 2018 (UTC)
- You'll find messages for the text of the personal URLs, but not the URLs themselves.
- You'll have to change them through the PersonalUrls hook. Ciencia Al Poder (talk) 09:20, 29 May 2018 (UTC)
Fatal error: Call to undefined function mysql_error() in /path/to/mediawiki-1.17.0/includes/db/DatabaseMysql.php on line 234
MediaWiki Version: 1.17
PHP Version 5.6.32
MySQL 5.6.24
After PHP upgrade to the new version mediawiki stopped working generating this error:
Fatal error: Call to undefined function mysql_error() in /path/to/mediawiki-1.17.0/includes/db/DatabaseMysql.php on line 234
These are db settings from LocalSettings.php
## Database settings
$wgDBtype = "mysql";
$wgDBserver = "dbserver";
$wgDBname = "dbname";
$wgDBuser = "dbuser";
$wgDBpassword = "dbpassword";
# MySQL specific settings
$wgDBprefix = "";
# MySQL table options to use during installation or update
$wgDBTableOptions = "ENGINE=InnoDB, DEFAULT CHARSET=utf8";
# Experimental charset support for MySQL 4.1/5.0.
$wgDBmysql5 = false; Mwas01 (talk) 07:51, 29 May 2018 (UTC)
- Now that you upgraded PHP to a supported version, you'll need to also upgrade MediaWiki as well. Ciencia Al Poder (talk) 09:21, 29 May 2018 (UTC)
API function to query a single value from json?
Could be done with #get_web_data, and the Extension:External_Data. But native functionality is preferred over using an extension.
Or, is there a filter available for the parse action? Doesn't appear to be (should be :) Johnywhy (talk) 07:57, 29 May 2018 (UTC)
Seems like classic software bloat. If every trivial thing is added "natively" or to core, then there is no need for extensions.> But native functionality is preferred over using an extension.
- Anyway, there is no way to do this in a "native" way, and for good reasons. Many api functions take considerable time to execute, and some may even timeout or output errors. 197.218.89.250 (talk) 08:49, 29 May 2018 (UTC)
- Seems like classic software bloat. If every trivial thing is added "natively" or to core, then there is no need for extensions.
- this is not a request to add something new to the core.
- It's only a question: is it already in the core?
Anyway, there is no way to do this in a "native" way, and for good reasons. Many api functions take considerable time to execute, and some may even timeout or output errors.
- Are you saying the API is broken? Are you saying people should not use the API?
- When you post anonymously, it significantly reduces your credibility. Johnywhy (talk) 09:15, 29 May 2018 (UTC)
- > Are you saying the API is broken? Are you saying people should not use the API?
- No, generally speaking, the api works mostly as intended. It is just limited like any software. Given the link to the parser function, it seemed like the question was about transcluding filtered api results to a page. That functionality doesn't exist in mediawiki api itself nor does the ability to extract a single value from a json returned by the api (as far as I know).
- >When you post anonymously, it significantly reduces your credibility.
- Mediawiki is opensource. Anyone can read its code or hire / ask someone do that on their behalf, or alternatively hope that mediawiki documentation isn't outdated or missing. So even if the statements above are false / wrong, it is verifiable. 197.218.89.250 (talk) 11:27, 29 May 2018 (UTC)
- if you're not recommending people not use the API, then how should users/admins interpret your statement:
"Many api functions take considerable time to execute, and some may even timeout or output errors."
- How should we act on that? Johnywhy (talk) 12:58, 29 May 2018 (UTC)
- The statement was related to exposing arbitrary results of API calls in a transclusion. It would fail in some cases (e.g . T86611 -> [1]).
- That's partly why Manual:$wgMiserMode exists, except that it doesn't really cover all such api calls. Another example is the API exposed by Extension:CirrusSearch, which may often timeout and return no results if regex search is used.
- > How should we act on that?
- Use such tools or extensions carefully. 197.218.89.250 (talk) 17:29, 29 May 2018 (UTC)
- This doesn't sound like a reason that something shouldn't be in the core, as you stated. The problem you describe can affect an extension too.
- Or are you saying the API is inherently slow and inefficient, compared with extensions? Johnywhy (talk) 08:05, 30 May 2018 (UTC)
- It doesn't make sense to exclude something from the core just "to give extensions something to do." That's not an appropriate criteria.
- The correct criteria is , "does it make sense as a core function."
- An API should be complete, symmetrical, and support itself.
- Completeness: Looking at this list of API functions, we can see many (most?) core functions that can be performed with a mouse in the 'front-end' have a matching API function. But not all.
- Symmetry:
- It makes sense for API to be able to perform all the same reads for which it can do writes. if there's a page Import function, there should be a matching Export.
- the API can create a new section by name, and edit a section by number. Therefor, API should be able to create a new section by number (ie insert a section), and edit a section by name.
- Support itself:
- if API can edit a Section by number, then the API (or core wikitext) should make it possible to obtain section number by name. Somehow.
- API query results are returned as structured data-- json, xml, etc. Therefor, it makes sense for API to offer a mechanism to parse that data.
- Dev Resources - Hidden Agenda?
- It seems your actual, and unspoken, objective is to reduce workload of core developers. Managing the limited resource of core devs is a legit development concern. Leaving gaping holes or bugs in implementation is not the solution. Prioritizing is the solution.
- Managing the efforts of a volunteer dev team is also a legit challenge. Leaving gaping holes or bugs, because "no one volunteered to fix it" is not the solution. Making up phony reasons like, "we want to give extensions something to do" is not the solution.
- It's reasonable to ask volunteers to work on stuff that's most important. Prioritizing doesn't mean that priority of a task shall be determined by whether or not someone feels like working on it. But apparently, that's how MediaWiki dev operates.
- Apparently, MW is so desperate for volunteer devs, MW allows developers to pick and choose what they work on, instead of MW saying "here are the important tasks to work on-- pick from those."
- Desperation is not a healthy basis on which to run a development project. Maybe MW should consider reducing it's paid bureaucratic staff (and/or their salaries), and expand it's paid development team. Of course, that won't happen as long as those same bureaucrats are calling the shots. Johnywhy (talk) 07:38, 31 May 2018 (UTC)
- You can obtain section numbers by action=parse IIRC. If there isn't a more specific api for a simple "give me a section number for section name X" is because that's a operation that requires parsing the entire page, and hence action=parse will give you all the extra information (because there's no extra effort to obtain that anyway).
- If it's not part of core function it's because it will be disabled on WMF wikis, and by default in general MW because it would be expensive. Ciencia Al Poder (talk) 09:23, 31 May 2018 (UTC)
- @Ciencia Al Poder > You can obtain section numbers by action=parse
- I don't see that. Parameter SectionTitle is only given for new sections:
- > "New section title when section is new."'
- API:Parsing wikitext
- Can you show how? Johnywhy (talk) 13:15, 1 June 2018 (UTC)
- prop=sections give you all sections of the page, with their name and index. Ciencia Al Poder (talk) 14:53, 1 June 2018 (UTC)
- Yes, but how to return the section number of just a single section? Johnywhy (talk) 15:17, 1 June 2018 (UTC)
- The api doesn't provide that, you'll have to look it from the results the api gives you. Ciencia Al Poder (talk) 17:05, 1 June 2018 (UTC)
- ok, thx. I'll try to use Extension:External Data for that. Johnywhy (talk) 19:02, 1 June 2018 (UTC)
TableEdit: Query and Update from Another Page?
The following discussion is closed. Please do not modify it. Subsequent comments should be made on the appropriate discussion page. No further edits should be made to this discussion.
Is it possible to query a single field from a single record, via wikitext on another page?
Is it possible to append a new record via wikitext on another page?
@JimHu Johnywhy (talk) 08:24, 29 May 2018 (UTC)
- For some reason I'm not gettting email notification of these, so sorry for the slow reply. I'm not sure exactly what you're looking for, but we don't have wikitext ways to do that. We do have a way to extend the system to make parser tag extensions that query the underlying table data, and special pages that prepopulate tables. JimHu (talk) 20:16, 3 September 2018 (UTC)
Update from 1.29 to 1.30 - fileinfo error
The following discussion is closed. Please do not modify it. Subsequent comments should be made on the appropriate discussion page. No further edits should be made to this discussion.
PHP 5.6.36
Mediawiki 1.30
MySQL 5.6.38
Operating system Linux
I installed Mediawiki through Softaculous, provided by my web host, and have been running it successfully for several years. I have just tried updating from 1.29 to 1.30 but received this error message:
- You are missing a required extension to PHP that MediaWiki requires to run. Please install fileinfo.
My web host will not install this for me and replied:
- PHP FileInfo extension uses too much memory / resources which is not suitable for our shared hosting environment.
Any advice on how to get around this problem would be much appreciated, in case there is some file setting I could change. (I am not a PHP wizard or a developer but I can follow instructions!)
Many thanks to anyone who can help.
ETA: I just tried a brand new installation of MediaWiki 1.30 and it threw up the same error message. Greylin (talk) 08:35, 29 May 2018 (UTC)
- There's no workaround other than not upgrading MediaWiki, or moving to a better host. Ciencia Al Poder (talk) 09:18, 29 May 2018 (UTC)
- Thank you for this.
- I'm with Lunarpages and two days ago had an email from them to say that if I didn't update MW 1.29 they would compulsorily update it. But if they won't install fileinfo and the compulsory update kills my wiki it will be time to move, on as you suggest. Greylin (talk) 15:57, 29 May 2018 (UTC)
- What kind of host is it that threatens customers to break their websites? Not a good one, if you ask me. Actually, what they said is not that they kill your wiki. What they said is that they do not want you as a customer. In this regard, I would never disagree with a service provider. Then someone else will get your money, someone who won't make you problems. 2001:16B8:1022:8600:60D5:36F0:9A8:A4AB (talk) 20:42, 29 May 2018 (UTC)
- I'm returning to this thread much later on because once my support request got elevated Lunarpages came up trumps and enabled fileinfo and I just wanted to set the record straight. Lunarpages have now been bought out by HostPapa so it's moot anyway. Greylin (talk) 10:17, 10 January 2020 (UTC)
Putting <references> before a reference
Also asked at w:WP:VPT
Hello technical wizards. Any ideas on how to force display of a reference list before the reference is mentioned in the text? Don't worry, it's not for article mainspace! The code below renders ok in preview but gives an gives an error when the page is saved:
{{notelist|refs= {{efn|name=hn1|head note text}} }} Words{{efn|name=hn1}}
Is it possible to implement this within the MediaWiki language at all? T.Shafee(Evo﹠Evo)talk 12:40, 29 May 2018 (UTC)
- This is not possible.
- You'd need to position the references on client-side, either with CSS or JavaScript Ciencia Al Poder (talk) 14:16, 29 May 2018 (UTC)
Use Redis with MediaWiki through socket instead of network connection
According to Manual:$wgObjectCaches Redis can be used as a caching server but in that example only through a network connection.
Is it possible to connect through a socket as well? 195.110.61.246 (talk) 13:21, 29 May 2018 (UTC)
- From code docs:
* - servers: An array of server names. A server name may be a hostname, * a hostname/port combination or the absolute path of a UNIX socket. * If a hostname is specified but no port, the standard port number * 6379 will be used. Arrays keys can be used to specify the tag to * hash on in place of the host/port. Required.
- So you just put the full path into the servers array. Bawolff (talk) 16:57, 4 June 2018 (UTC)
Map on GeoHack
Hello! GeoHack shows Crimea only Russia, but it's wrong. On OSM to Crimea shown as Russia and Ukraine. Screenshot https://pp.userapi.com/c844618/v844618710/5cc6f/MycMVmRghnM.jpg Will this problem be solved? Shiro D. Neko (talk) 19:20, 29 May 2018 (UTC)
- This does not seem to be a question about the MediaWiki software but about GeoHack. Issue can be seen at https://tools.wmflabs.org/geohack/geohack.php?pagename=Crimea¶ms=45.3_N_34.4_E_scale:2000000_type:isle. https://bitbucket.org/magnusmanske/geohack is where its bugtracker is located. AKlapper (WMF) (talk) 12:11, 30 May 2018 (UTC)
Page cannot be Displayed - Make sure Localhost is correct.
Firstly please excuse my lack of knowledge but I have been tasked with setting up an internal WIKI site for our school.
Our MS Win2008R2 server has PHP4.7.3 admin and XAMPPv3.3.2., these were installed to create our local "Blog Sites" where all users can login remotely which works fine after a few tweeks in PHP admin.
I installed MediaWiki on the server and all seems fine but when trying to remotely connect using the IP address/mediawiki then I keep getting the local host error. I have checked MySQL User settings and there is no mention of MyWiki (Wikimedia).
I hope this makes sense and can you possibly help? Stmaryscpsgill (talk) 12:16, 30 May 2018 (UTC)
- Which MediaWiki version is this about? (I think you meant "PHPadmin 4.7.3" instead of "PHP4.73 admin".)
- What is set as server name and script path in LocalSettings.php ? See https://www.mediawiki.org/wiki/Manual:LocalSettings.php for more info.
- Have you checked your server logs? What do they say? Malyacko (talk) 17:32, 30 May 2018 (UTC)
- Be sure $wgServer is set to a publicly accessible hostname or address, and not "localhost" Ciencia Al Poder (talk) 09:28, 31 May 2018 (UTC)
New version of images don't trigger thumbnail recreation (1.30.0)
I recently upgraded to 1.30.0, and for some reason, I'm having this strange thumbnail issue. Upon uploading an image, the thumbnails work like they should, but when a new version of that image gets uploaded, the thumbnails don't regenerate, leaving the original image as the thumbnailed version. The thumbnails are correctly sized on the pages to match the new image, but if the ratio of the image dimensions are different, the image gets stretched.
Here's an example of what I mean: https://www.pidgi.net/wiki/File:Promotional_image_EN_-_Poke_Ball_Plus.jpg
Any idea on how to fix this? Immewnity (talk) 14:22, 30 May 2018 (UTC)
- Maybe there was a temporary failure on the server when uploading, that didn't purge the old thumbnails when uploading the new file. You may need to remove the thumb folder of that file and let MediaWiki recreate them again.
- Looks like your wiki is not configured to generate thumnails dinamically. You'll need to manually recreate the thumbnails again by making a null edit on pages that use the image after deleting the thumbnails, or use Manual:Thumb.php from your browser to generate specific thumbnails. Ciencia Al Poder (talk) 09:33, 31 May 2018 (UTC)
- Update to this - it ended up being an incompatibility with an old version of Semantic MediaWiki. Immewnity (talk) 06:44, 11 August 2018 (UTC)
- These sorts of symptoms can also be a job queue failure (Upon change in image dimension, all pages using the image have to be purged, so the width/height attributes in html are changed for the new aspect ratio of the image) Bawolff (talk) 17:43, 12 August 2018 (UTC)
- Have the same issue on Mediawiki 1.31.0 and with Semantic Mediawiki 2.5.6
- Thumbnails are just not updated, even by using the call with thumb.php the old image remains. 89.15.237.160 (talk) 20:45, 10 September 2018 (UTC)
- Did you try to clear your browser's cache after uploading? It works for me. Lens0021 (talk) 05:25, 11 September 2018 (UTC)
- If the call with thumb.php does also not return the correct image, it's not a browser cache problem.
- You haven't checked if it's a job queue problem, though, so this is not helpful at all. Ciencia Al Poder (talk) 20:11, 12 September 2018 (UTC)
- Also seeing this issue.
- MW 1.31.0
- PHP 7.0.31
- SMW 2.5.6 Jamesmontalvo3 (talk) 15:36, 14 September 2018 (UTC)
- Upgrading to SMW 2.5.8 did not solve this problem for me. The unreleased 3.0.0-dev version appears to solve the problem. Jamesmontalvo3 (talk) 20:27, 14 September 2018 (UTC)
- Oh, and there are no jobs in the queue. Uploading a new version of the file does not appear to generate any jobs relevant to this, though, when using SMW 2.5.x (where the problem exists) or 3.0 (where the problem does not exist). The only jobs it generates are:
job_id: 266 job_cmd: recentChangesUpdate job_namespace: -1 job_title: RecentChanges job_timestamp: 20180914232556 job_params: a:2:{s:4:"type";s:11:"cacheUpdate";s:9:"requestId";s:27:"W5xDhLfkyYu4BqqyUK@9ZgAAAAY";} job_random: 1398893290 job_attempts: 0 job_token: job_token_timestamp: NULL job_sha1: t0ui7t0cg0b9prp29q7plzaevrijg70 job_id: 267 job_cmd: htmlCacheUpdate job_namespace: 6 job_title: Test_2.png job_timestamp: 20180914232644 job_params: a:8:{s:5:"table";s:10:"imagelinks";s:9:"recursive";b:1;s:13:"rootJobIsSelf";b:1;s:16:"rootJobSignature";s:40:"038e9b9a072b7f6f5674aad13cdf91173c8ed6a9";s:16:"rootJobTimestamp";s:14:"20180914232644";s:11:"causeAction";s:11:"file-upload";s:10:"causeAgent";s:7:"unknown";s:9:"requestId";s:27:"W5xDtI2DZquTPPQ4ptCRIAAAAAc";} job_random: 820376045 job_attempts: 0 job_token: job_token_timestamp: NULL job_sha1: qfv3vr0fn28whie2788uiy50x4a5mdy
- On the failing server (SMW 2.5.x) I only saw the "recentChangesUpdate", not the "htmlCacheUpdate". On the working server (SMW 3.0) I saw both. In either case the jobs get cleared so quick I could have missed something, though. Jamesmontalvo3 (talk) 23:29, 14 September 2018 (UTC)
- The problem with a failing extension is that the htmlCacheUpdate is never inserted.
- Jobs are inserted very late in the request pipeline, and an error in an extension can be totally unnoticed (because all the HTML has been sent to the browser). A debug log may have caught the problem. Ciencia Al Poder (talk) 16:21, 16 September 2018 (UTC)
- I'm having this problem too. Did anyone ever get a solution to this? - User:Revansx Revansx (talk) 20:00, 25 April 2019 (UTC)
- Have you tried disabling all extensions and reuploading the image? Ciencia Al Poder (talk) 09:19, 26 April 2019 (UTC)
- No. I guess you're saying that the problem is likely some extension that is causing an error late in the request line and might not get noticed except for such a simple problem. And that turning all extensions off and one-by-one turning them on is the only way to identify the problematic extension. Is that right? gah! .. i really need a dev system, lol Revansx (talk) 12:08, 26 April 2019 (UTC)
- Yes, that's what I'm suggesting. Ciencia Al Poder (talk) 17:10, 26 April 2019 (UTC)
- I just had the same problem. But after reading this I thought I'd try using a different browser, and the new thumb appeared there like it should. That totally sounds like a cache problem with my usual browser. (I'm not going to test this yet because I'm have unfinished work in the Sandbox and don't want to flush the cache yet.) Pikabruce (talk) 20:15, 10 June 2021 (UTC)
Need help rebuilding mediawiki using mamp and backup sql
So, a long story made short:
I had a wiki, I have the SQL. I tried to set it up on localhost using MAMP. Finally got rebuildall to do something, after I was able to get update.php to work.
I got the following:
[a5cbdb0fd715fc3ef188c065] [no req] Wikimedia\Rdbms\DBConnectionError from line 800 of /Users/carter/Sites/id8tionist/mediawiki/includes/libs/rdbms/database/Database.php: Cannot access the database: No such file or directory (localhost)
Backtrace:
#0 /Users/carter/Sites/id8tionist/mediawiki/includes/libs/rdbms/loadbalancer/LoadBalancer.php(1028): Wikimedia\Rdbms\Database->reportConnectionError(string)
#1 /Users/carter/Sites/id8tionist/mediawiki/includes/libs/rdbms/loadbalancer/LoadBalancer.php(670): Wikimedia\Rdbms\LoadBalancer->reportConnectionError()
#2 /Users/carter/Sites/id8tionist/mediawiki/includes/GlobalFunctions.php(2858): Wikimedia\Rdbms\LoadBalancer->getConnection(integer, array, boolean)
#3 /Users/carter/Sites/id8tionist/mediawiki/maintenance/Maintenance.php(1253): wfGetDB(integer, array, boolean)
#4 /Users/carter/Sites/id8tionist/mediawiki/maintenance/rebuildall.php(44): Maintenance->getDB(integer)
#5 /Users/carter/Sites/id8tionist/mediawiki/maintenance/doMaintenance.php(92): RebuildAll->execute()
#6 /Users/carter/Sites/id8tionist/mediawiki/maintenance/rebuildall.php(67): require_once(string)
#7 {main} Id8tionist (talk) 17:52, 30 May 2018 (UTC)
- See $wgDBserver. Note that if using "localhost", MySQL may interpret it connects through a socket, with a default location that may not exist on your installation. If your MYSQL is listening on a TCP port, use 127.0.0.1 instead Ciencia Al Poder (talk) 09:26, 31 May 2018 (UTC)
Our MediaWiki administrator left the company before we could reassign a new administrator
The following discussion is closed. Please do not modify it. Subsequent comments should be made on the appropriate discussion page. No further edits should be made to this discussion.
Is there a way for us to reassign new Adminstrators? 192.127.94.7 (talk) 19:00, 30 May 2018 (UTC)
- Please see Manual:Resetting passwords —TheDJ (Not WMF) (talk • contribs) 22:23, 30 May 2018 (UTC)
Kodi V18 Subtitles Not Working
RESOLVED | |
Wrong support forum (topic is not about MediaWiki 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.
Subtitle operation DOES NOT work if commencing play from the 'Movies/Titles' or 'TV shows/Titles' list. Your Kodi v18 (I use both Android 8a and Win10 (.exe) apps) continues from previous releases to not display subtitles during video play for both the TV Shows and Movies lists. My subtitles are English and Polish.
YET, subtitles operation DOES works if the same videos is selected off the Kodi's main menu under "In progress", or "Recently added etc.) AND also, if entering the video file system (mine a NAS) via the VIDEOS selection on the sidebar in the main menu.
If there is a more direct way to provide V18 bugs please advise, I did try to find some other means.
Kleczerx 205.251.148.146 (talk) 03:37, 31 May 2018 (UTC)
- Wrong support forum. 2001:16B8:109A:6600:885:AA98:4489:B346 (talk) 06:44, 31 May 2018 (UTC)
Parameter for Limiting Displayed Characters in smwtable
Is there a way to set a limit for the number of characters displayed/output by a form query page? For example, I have a Special Form Query page that collects inputs, has the Run Query button to run the query, and then displays results in a table. (It's using the #ask inline query). Some of the values in the cells of the table are quite long, however. Is there a way to apply a limit, and then if the user was interested, they could click on a "Show More" option that would expand the line of the table to see all the text?
I couldn't find a reference in the Parameters listed here: https://www.semantic-mediawiki.org/wiki/Help:Table_format Kmaughs (talk) 17:23, 31 May 2018 (UTC)
Can't connect to the server
Below is the text I receive:
Status: Resolving address of home202259039.1and1-data.host
Status: Connecting to [2607:f1c0:1000:c00e:1997:90ad:6054:800]:21...
Error: Connection timed out after 20 seconds of inactivity
Error: Could not connect to server
Last week I switched from Century Link to Cox so I have a new wifi/router. This is the first I've tried to upload my pages and I can't connect to the server. I'm not a techy and the help text I've looked at is all Greek to me. Help please. Gail Hardin (talk) 20:10, 31 May 2018 (UTC)
- Looks like your problem is not related to MediaWiki. Are you sure you're on the right support forum? Ciencia Al Poder (talk) 09:13, 1 June 2018 (UTC)