Project:Support desk/Flow/2017/06
| This page used the Structured Discussions extension to give structured discussions. It has since been converted to wikitext, so the content and history here are only an approximation of what was actually displayed at the time these comments were made. |
| This page is an archive. |
| Please ask questions on the current support desk. |
How to display page name different from 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.
How can you display the name of the page different from the URL
Example:
The URL is named NCN_7 and therefore the display page shows "NCN 7" as the main name of the page
However how can I display "National Cycle Network Route 7" instead of NCN 7 ?
http://imgur.com/a/q0MH1 Urbexuk (talk) 01:42, 1 June 2017 (UTC)
- Use {{DISPLAYTITLE:title}} MacFan4000 (talk) 02:01, 1 June 2017 (UTC)
- I added this to the page but doe not work, still displays NCN 7
- {{DISPLAYTITLE:National Cycle Network Route 7}} Urbexuk (talk) 05:00, 1 June 2017 (UTC)
- Have you set Manual:$wgRestrictDisplayTitle to false? Osnard (talk) 07:44, 1 June 2017 (UTC)
- i use a wikifarm so will have to ask them Urbexuk (talk) 21:20, 1 June 2017 (UTC)
- You could use a redirect. Graham Phillips 110 (talk) 20:06, 2 June 2017 (UTC)
How to remove abandoned jobs from job queue?
The following discussion is closed. Please do not modify it. Subsequent comments should be made on the appropriate discussion page. No further edits should be made to this discussion.
We have 3 jobs sitting abandoned in a low traffic wiki running 1.27.1:
php maintenance/showJobs.php --group refreshLinks: 0 queued; 2 claimed (0 active, 2 abandoned); 0 delayed refreshLinksPrioritized: 0 queued; 1 claimed (0 active, 1 abandoned); 0 delayed
We believe these jobs are preventing updates to a category (pages were taken out of the category) from becoming effective.
All 3 abandoned jobs refer to a page which was used to test a DPL call and we found that DPL call to be not working properly due to a bug in DPL. In the mean time we have put all the DPL code on that page as comment, but that didn't solve the problem either.
How can I clear these abandoned jobs? PeterBodifee (talk) 22:39, 1 June 2017 (UTC)
- You can simply remove them from the job table using SQL. More interesting would be why those jobs are failing. Did you disable DPL in the meantime? Osnard (talk) 06:34, 2 June 2017 (UTC)
- Thanks @Osnard, I was thinking along that line as well, however the sys admin is still a bit hesitant to delete the entries from the job table.
- We didn't disable DPL as we need it. I was trying to use DPL's updaterules and they don't work as advertised, see issue report here I guess the test runs created the abandoned jobs. PeterBodifee (talk) 20:01, 2 June 2017 (UTC)
- About clearing abandoned jobs, either by repushing or deleting them. There is a core script allowing to do both: See ManageJobs.php. [[kgh]] (talk) 17:12, 21 October 2021 (UTC)
MagicWord for Revision Comment...
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 part of our documentation process we need to have visibility of a few key facts about a document/article...
Specifically much of the data contained on an articles History page, who did the last edit (i.e. {{REVISIONUSER}} ) when they did the last edit {{REVISIONTIMESTAMP}} etc...
We would like to include this on the same page as the article, so users (and auditors) can easily see who made the most recent edit (and we can print an article to PDF and provide it as an offline version with version control included)
I've got the template working pretty well, however I'd like to add in the comments from the most recent revision i.e. if I save/edit an article and save comments with "Minor: Added Info on X" I'd like to reference that on the page somehow, however it seems {{REVISIONCOMMENTS}} or something similar doesn't exist... is there an easy way to do this or will I have to dive into the API and manually create this?
Cheers,
Karl.Fitz 203.25.230.238 (talk) 02:31, 2 June 2017 (UTC)
{| class="wikitable" style="float:right; margin-left: 20px;" |+ Document - Version History ! ! Value |- ! Date | <includeonly>{{#time: Y-m-d | {{REVISIONTIMESTAMP}} }}</includeonly> |- ! Version | <includeonly>{{REVISIONID}}</includeonly> |- ! Name & Position | <includeonly>[[User:{{REVISIONUSER}}]]</includeonly> |- ! Review Notes | {{{LastRevNotes}}} |- ! History | <includeonly>[{{SERVER}}{{localurl:{{FULLPAGENAMEE}}|action=history}} History]</includeonly> |- ! Discussion | <includeonly>[[{{TALKSPACE}}:{{PAGENAMEE}}| Talk]]</includeonly> |}- I'd like to dynamically generate the Last Revision Notes if possible. 203.25.230.238 (talk) 02:45, 2 June 2017 (UTC)
- I believe this can only be done by writing an extension. It shouldn't be to hard to implement a new wikitext variable {{REVISIONCOMMENTS}}, that just fetches the comment of the current revision.
- Have a look at Manual:Variable. You will just have to look the up the data in the DB table/field 'revision'.'rev_comment'.
- Consider publishing your work on mediawiki.org.
- If you can't do it yourself, maybe we could find a volunteer. Osnard (talk) 06:41, 2 June 2017 (UTC)
Google image search finds thumbs but not full images?
The following discussion is closed. Please do not modify it. Subsequent comments should be made on the appropriate discussion page. No further edits should be made to this discussion.
I wonder why the Google image search finds my thumbs (size on articles) but not the full images. When I search the unique file name from the URL and go for "more sizes" only the thumb is found.
As if the crawler doesn't follow the thumb link to the file page (where it could grab the link to the full image URL).
My robots.txt doesn't disallow the File ns.
Also the XML sitemap includes the File ns and Google Webmaster Tools throws no errors. 2003:6F:8B2B:F100:5486:F8D0:75B1:CCC2 (talk) 10:44, 2 June 2017 (UTC)
- Nobody can help? Subfader (talk) 10:31, 5 June 2017 (UTC)
- This is the same question asked again and again, but apparently nobody asks it to google support forums, which will be the right thing to do. Feel free to post back the response if there's something we have to do in MediaWiki about this :) Ciencia Al Poder (talk) 09:34, 6 June 2017 (UTC)
- Quick test: It does find the originals of these
Upgraded MySQL 5.5 to MySQL 5.6 now old wiki 1.19 has empty pages
The following discussion is closed. Please do not modify it. Subsequent comments should be made on the appropriate discussion page. No further edits should be made to this discussion.
Only the title and sidebar is visible. The pages are all there even the history of the pages. 2600:6C4E:E7F:E831:7D3C:50D8:487A:3B7F (talk) 17:28, 2 June 2017 (UTC)
- You probably upgraded more things than Mysql. See Manual:Errors and symptoms#All pages have no content, but when editing a page the wiki text is there
- Also upgrade MediaWiki since 1.19 is no longer supported. Ciencia Al Poder (talk) 18:20, 2 June 2017 (UTC)
Only Headers
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 my wiki only headers are showing up. If i go to edit everything that should be there is there. 209.129.115.6 (talk) 03:49, 3 June 2017 (UTC)
- See Manual:Errors_and_symptoms#All_pages_have_no_content.2C_but_when_editing_a_page_the_wiki_text_is_there! 2003:72:6D08:CA00:A491:89A4:BC6B:98B3 (talk) 06:08, 3 June 2017 (UTC)
The index.php file shows only the sitenotice and the sidebar.
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.
All the other pages in the wiki shows properly. Only the index.php file or (homepage) has the problem. It shows the title as "Main Page", shows the sitenotice and sidebar. The source code are all intact. and even the history shows.
But why is the body of the page blank? 2600:6C4E:E7F:E831:B82C:E282:F145:E6ED (talk) 08:41, 3 June 2017 (UTC)
- Sounds like there's no text on that page, MacFan4000 (talk) 11:29, 3 June 2017 (UTC)
ProofreadPage Special:IndexPages empty
Hi, the ProofreadPage special page, Special:IndexPages is empty. I've tried updating site statistics, etc. but it still remains empty Reception123 (talk) 18:02, 3 June 2017 (UTC)
- No activity for a month. Bumping Reception123 (talk) 19:06, 8 July 2017 (UTC)
- Which version of MediaWiki and which version of Extension:Proofread Page are you using?
- When you say the page stays empty, do you then mean a PHP error, a completely blank page? Or does the page itself come up, but it does not show the image? 2003:72:6D74:4E00:1C43:CB1B:258F:9A96 (talk) 21:41, 8 July 2017 (UTC)
- MediaWiki 1.28.2
| 5.6.30-0+deb8u1 (fpm-fcgi) |
- Even if there are it says "
- There are no results for this repor"t. Reception123 (talk) 08:02, 10 July 2017 (UTC)
- With the most recent version of MediaWiki released, 1.29, this error is still persistent. Even though there should be it says "There are no results for this report." Reception123 (talk) 18:40, 2 September 2017 (UTC)
- So what you are getting is not a PHP error, but the special page says "There are no results for this report".
- If I remember correctly, it might help to run updateSpecialPages.php. 2003:72:6D7A:7000:710D:FCFB:AB8A:57C (talk) 21:37, 2 September 2017 (UTC)
- I tried, it says "skipped" even with override. Reception123 (talk) 09:29, 3 September 2017 (UTC)
InstantCommons doesn't work with specific SVG files
The following discussion is closed. Please do not modify it. Subsequent comments should be made on the appropriate discussion page. No further edits should be made to this discussion.
When trying to access SVG files specified here: https://commons.wikimedia.org/wiki/Category:Icons8_flat-icons the thumbnails do not load (example on TestWiki: https://publictestwiki.com/wiki/File:Icons8_flat_about.svg all icons: https://publictestwiki.com/wiki/SVG_test). I'm not sure what can cause this issue and how it may be fixed. Reception123 (talk) 18:03, 3 June 2017 (UTC)
- This could be an issue with [[Extension:NativeSVGHandler]] Reception123 (talk) 18:57, 7 June 2017 (UTC)
- No activity for a month. Bumping Reception123 (talk) 19:06, 8 July 2017 (UTC)
- Since you have NativeSVGHandler installed, it's embedding the svg file directly. However, svg files need to be served with the appropriate content type header for them to render correctly, and Commons is currently serving SVG images as text/plain. You can test it by clicking the image at commons:File:Icons8_flat_about.svg and see the SVG code instead of the image itself on the browser.
- Apparently someone else complained in T157660, which is a duplicate of a restricted task that I can't see. Ciencia Al Poder (talk) 18:04, 10 July 2017 (UTC)
- The code for the two (publictestwiki and commons) is as expected, identical. It's weird that the task is restricted, as the user who reported it says "it looks like the same issue" but I doubt that user can access restricted tasks.
- Well, most likely it's a NativeSVGHandler issue. Reception123 (talk) 05:45, 11 July 2017 (UTC)
Secure place for Database access data: update.php can't find it?
The following discussion is closed. Please do not modify it. Subsequent comments should be made on the appropriate discussion page. No further edits should be made to this discussion.
Hi,
I've placed the DB settings (username, password, etc) in a separate file outside the wiki installation. The wiki itself deals with it perfectly, but the update.php can't seem to find it. I get the message:
Warning: include(): Failed opening '../filename.php' for inclusion.
I used this code in localsettings.php to include the database access data:
/** Location of your mediawiki other info. */
include('../filename.php');
I had installed the extension "Echo" yesterday and I got the same error with some more, which let me to believe this might be the fault of my database and settings becoming corrupt.
Luckily this is a newly installed Wiki, so it's not a big problem. For now I'll use the full settings int he default file when I do an upgrade, and use the include again when all the updates are done.
But this does lead me tot he questions:
- Why can't update.php find the included file on the safe location, while the rest of the installation can?
- Is there a reason Mediawiki doesn't promote keeping database access data on a secure location?
Thanks for the help! IlseMul (talk) 11:14, 4 June 2017 (UTC)
- It might have to do with how you include your password file. On my setup, I use
require_once( '$configPath/PrivateSettings.php' );, where $configPath contains the full directory path. Try putting the full path to your password file (for example:include( '/var/www/w/filename.php');), and see if that works. It might be that update.php tries to search for the file in its own directory, where it does obviously not exist. - This is because MediaWiki was designed to also be able to run on hosts, where users only would have access their web directory. Placing a file outside the MediaWiki folder would not be possible due to restrictions by the host. —Mainframe98 talk 14:59, 4 June 2017 (UTC)
- Perfect! That did the trick! Thanks so much!
- Ah, that explains it. Thanks :) IlseMul (talk) 15:21, 4 June 2017 (UTC)
- It might have to do with how you include your password file. On my setup, I use
- And you might be able to get the complete server path using the constant __FILE__. Maybe you want to use it inside realpath() like so:
require_once(realpath(__FILE__) . PrivateSettings.php);2003:72:6D24:DB00:B57A:5017:F0BC:133A (talk) 15:49, 4 June 2017 (UTC)- Thanks for that tip! IlseMul (talk) 16:05, 4 June 2017 (UTC)
More default installed Extensions?
The following discussion is closed. Please do not modify it. Subsequent comments should be made on the appropriate discussion page. No further edits should be made to this discussion.
I've installed several extensions during the installation process and found later that there are several more extensions that are used basically on every wiki (or at least on a lot of wiki's) that weren't listed in the installation process. I was wondering if perhaps they could be included as well. Extensions I was thinking of, for example:
- CheckUser
- Echo
- Flagged Revisions
- CategoryTree
Would that be possible? IlseMul (talk) 13:36, 4 June 2017 (UTC)
Adding registration data from other source?
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,
Currently I'm making a game for which players need to register on my site. The registration will be handled through GameSparks. I'd prefer it if players would only need to register once and have their data both in the Game Database and in the MediaWiki database. Can I add the information (username, password, email) from an outside form (registration form for the website) into the MediaWiki database? Or is that not accepted? IlseMul (talk) 16:08, 4 June 2017 (UTC)
- Instead of fiddling in the database directly, you can use API:Account creation from the outsider form. If the outside web implements OAuth you can use Extension:OAuthAuthentication Ciencia Al Poder (talk) 09:41, 6 June 2017 (UTC)
- Thanks again for all your help! I've just checked out the OAuthAuthentication you linked. Although I'd like to include some game data in the wiki and perhaps vice versa, at the moment I simply need an account registration option. So I'll use the API you linked. I'll have to figure out how this api stuff works :D
- Thanks again for all the help! IlseMul (talk) 10:56, 6 June 2017 (UTC)
Warning: Cannot modify header information
The following discussion is closed. Please do not modify it. Subsequent comments should be made on the appropriate discussion page. No further edits should be made to this discussion.
Installed Version 1.28.2, everything went well, saved the local settings.php on the server and got this as a result:
Warning: is_dir() [function.is-dir]: open_basedir restriction in effect. File(/tmp) is not within the allowed path(s): (/users/christofgorny/www:/users/_temp/christofgorny) in /users/christofgorny/www/includes/libs/filebackend/fsfile/TempFSFile.php on line 90
Warning: is_dir() [function.is-dir]: open_basedir restriction in effect. File(/tmp) is not within the allowed path(s): (/users/christofgorny/www:/users/_temp/christofgorny) in /users/christofgorny/www/includes/libs/filebackend/fsfile/TempFSFile.php on line 90
Warning: Cannot modify header information - headers already sent by (output started at /users/christofgorny/www/LocalSettings.php:4) in /users/christofgorny/www/includes/libs/HttpStatus.php on line 111
Warning: Cannot modify header information - headers already sent by (output started at /users/christofgorny/www/LocalSettings.php:4) in /users/christofgorny/www/includes/WebResponse.php on line 45
Warning: Cannot modify header information - headers already sent by (output started at /users/christofgorny/www/LocalSettings.php:4) in /users/christofgorny/www/includes/WebResponse.php on line 45
Warning: Cannot modify header information - headers already sent by (output started at /users/christofgorny/www/LocalSettings.php:4) in /users/christofgorny/www/includes/WebResponse.php on line 45
Warning: Cannot modify header information - headers already sent by (output started at /users/christofgorny/www/LocalSettings.php:4) in /users/christofgorny/www/includes/WebResponse.php on line 45
Warning: Cannot modify header information - headers already sent by (output started at /users/christofgorny/www/LocalSettings.php:4) in /users/christofgorny/www/includes/WebResponse.php on line 45
Warning: Cannot modify header information - headers already sent by (output started at /users/christofgorny/www/LocalSettings.php:4) in /users/christofgorny/www/includes/WebResponse.php on line 45
What can I do? 2003:C4:2BE3:3100:B594:CB18:9E9:8713 (talk) 21:31, 4 June 2017 (UTC)
- Change the open_basedir setting to allow saving stuff to /tmp... Malyacko (talk) 10:00, 5 June 2017 (UTC)
- Or if you can't change that, set $wgTmpDirectory to an alternate writable directory, which must not be accessible from the web, /users/_temp/christofgorny seems like a good candidate, given it's name. Ciencia Al Poder (talk) 09:36, 6 June 2017 (UTC)
使用了中文的变种作为语言的用户,Special:MyLanguage不会自动调到中文的相关变种。
The following discussion is closed. Please do not modify it. Subsequent comments should be made on the appropriate discussion page. No further edits should be made to this discussion.
My preference language is zh-hans (中文(中国大陆)). When I click a Special:MyLanguage link, it won't take me to the place with "/zh" and "大陆简体" various. For example, when I click Special:MyLanguage/Help:Navigation, I will be took to Help:Navigation (the English page), instead of Help:Navigation/zh with zh-cn various. Please fix the problem soon.
我的参数设置语言设为zh-hans(中文(中国大陆))。当我点击一个Special:MyLanguage链接时,不会把我带到“/zh”并且“大陆简体”变种的页面。例如,当我点击Special:MyLanguage/Help:Navigation,我就会被带到Help:Navigation(英文的页面),而不是具有zh-cn变种效果的Help:Navigation/zh页面。请尽快修复这个问题。
I'm not good at English SolidBlock (talk) 09:11, 5 June 2017 (UTC)
- What language have you set in Special:Preferences? Ciencia Al Poder (talk) 09:37, 6 June 2017 (UTC)
- zh-cn,中文(中国大陆) SolidBlock (talk) 12:13, 6 June 2017 (UTC)
- The problem may be that Help:Navigation/zh exists, but not Help:Navigation/zh-cn
- You can try setting Assistant languages: adding zh
- It may be T55789, although zh-cn variants seem to be different, in the sense that MediaWiki can automatically convert between such variants.
- It may be very valuable if you can comment on that task the problem. I can do that for you if you're not sure. Ciencia Al Poder (talk) 09:46, 7 June 2017 (UTC)
- Thanks. I am not good at English. I have already set Assistant languages adding zh, but it may not work.
- (谢谢。我不太擅长英语。我已经在辅助语言加入zh了,但是没用。) SolidBlock (talk) 11:04, 7 June 2017 (UTC)
- Yes, I've reproduced the issue changing my language in preferences. I've added a new comment in the task explaining this situation. Feel free to subscribe yourself there if you want to be notified about updates. Ciencia Al Poder (talk) 20:04, 7 June 2017 (UTC)
Refresh all pages to use new categorization via template?
The following discussion is closed. Please do not modify it. Subsequent comments should be made on the appropriate discussion page. No further edits should be made to this discussion.
I have a template on many pages. I now added categorization to the template, but the pages don't appear in the category. Only when I edit/save single pages.
Is there a maintenance script to trigger a refresh to all pages? Tried purgeChangedPages.php, but no luck. Subfader (talk) 10:33, 5 June 2017 (UTC)
- Probably because there are pending jobs remaining. To see remaining jobs, browser to your Wiki's corresponding URL for: https://www.mediawiki.org/w/api.php?action=query&meta=siteinfo&siprop=statistics&format=jsonfm
- To run all jobs at once, run in your Wiki directory through SSH the following command:
- php maintenance/runJobs.php
- Hmh, the job queue is empty, so is my category.
- It works when I edit/save a page. Subfader (talk) 10:10, 10 June 2017 (UTC)
- You may be hitting T100085 Ciencia Al Poder (talk) 09:40, 14 June 2017 (UTC)
- Thanks, jobs is indeed empty everytime I check Subfader (talk) 12:43, 18 June 2017 (UTC)
- If you can, it may be helpful if you can download the latest release you're using currently from git (using the REL1_2* branch, for example REL1_28) and see if it solves the problem, and report back if it doesn't, so you don't have to wait for the next minor release. Ciencia Al Poder (talk) 18:14, 18 June 2017 (UTC)
How to implement and use shortcuts like "shortcut: FAQ"
The following discussion is closed. Please do not modify it. Subsequent comments should be made on the appropriate discussion page. No further edits should be made to this discussion.
Hi,
I've seen similar things on this wiki (Manual:FAQ) and other wiki's (like on Gamepedia wiki's). How can I implement such a thing and use it? I can't seem to find something for this.
Thanks for the help! IlseMul (talk) 11:03, 5 June 2017 (UTC)
- You mean that the user can open page "FAQ" and that he in fact will be shown page "Manual:FAQ"?
- That is a redirect! See Help:Redirects for more information! 2003:72:6D14:7800:F04E:88C3:E303:7C62 (talk) 11:49, 5 June 2017 (UTC)
- No, I mean where this text is placed somewhere in the text:
- shortcut: FAQ, like here: http://imgur.com/a/Wooto
- At the right, you can see the text in a small green bar. This is from Manual:FAQ.
- On gamepedia, for example, the Wowpedia uses this code:
- Shortcut to this page: WP:P
- Which leads to: http://wow.gamepedia.com/Wowpedia:Policies
- Is that what you mean with shortcuts? IlseMul (talk) 12:14, 5 June 2017 (UTC)
- See Template:Shortcut. AhmadF.Cheema (talk) 14:47, 5 June 2017 (UTC)
- Thanks! So, shortcut + redirect gives me what I need. Perfect! IlseMul (talk) 16:32, 5 June 2017 (UTC)
Nothing happens when uploading files
The following discussion is closed. Please do not modify it. Subsequent comments should be made on the appropriate discussion page. No further edits should be made to this discussion.
So a few days ago, some users reported that when uploading files to my wiki, nothing happens. No blank screen or error messages. It just appears that the page was refreshed and no file was uploaded. This seems to have started after I shortened the URL for my site. I looked into it myself, but I couldn't figure it out how to fix it.
Link to my wiki: http://omniversenexus.net/wiki/Main_Page
-MediaWiki version: 1.26.2
-PHP: 5.3.24 (cgi-fcgi)
-Database: MySQL 5.0.96-log
Here's my code:
In LocalSettings.php:
$wgUploadPath = "$wgScriptPath/images";
$wgUploadDirectory = "$IP/images";
$wgEnableUploads = true;
$wgHashedUploadDirectory = true;
$wgGroupPermissions['user']['upload'] = true;
$wgGroupPermissions['user']['reupload'] = true;
$wgGenerateThumbnailOnParse = false;
In .htaccess, I also have some Wordpress code. The MediaWiki site uses the same database as my Wordpress site, and the MediaWiki site is just lower in the hierarchy.
# BEGIN WordPress
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteRule ^index\.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
RewriteRule ^/?wiki(/.*)?$ %{DOCUMENT_ROOT}/index.php [L]
RewriteCond %{DOCUMENT_ROOT}%{REQUEST_URI} !-f
RewriteCond %{DOCUMENT_ROOT}%{REQUEST_URI} !-d
RewriteRule ^/?images/thumb/[0-9a-f]/[0-9a-f][0-9a-f]/([^/]+)/([0-9]+)px-.*$ %{DOCUMENT_ROOT}/thumb.php?f=$1&width=$2 [L,QSA,B]
RewriteCond %{DOCUMENT_ROOT}%{REQUEST_URI} !-f
RewriteCond %{DOCUMENT_ROOT}%{REQUEST_URI} !-d
RewriteRule ^/?images/thumb/archive/[0-9a-f]/[0-9a-f][0-9a-f]/([^/]+)/([0-9]+)px-.*$ %{DOCUMENT_ROOT}/thumb.php?f=$1&width=$2&archived=1 [L,QSA,B]
</IfModule>
# END WordPress
If necessary, here's the link to my Wordpress site: http://krayfishentertainment.com/
I have no issues uploading files there, only in the MediaWiki site. Krayfishkarl (talk) 13:24, 5 June 2017 (UTC)
- 1.26.2 is not a supported version. We reccomend that you update to a supported version. MacFan4000 (talk) 15:43, 5 June 2017 (UTC)
- I've downgraded for now since I can't figure out how to upgrade the PHP version to get the new version to work. I'm using GoDaddy and the required PHP version isn't available for me to use. It only has 5.4 and 5.3 available.
- Update: I upgraded PHP. Will see if it fixes. Krayfishkarl (talk) 00:40, 6 June 2017 (UTC)
- Be sure the upload form is being submitted to MediaWiki's index.php and it's not hitting any redirect or alias URL, because otherwise the server will perform a redirect and the uploaded file sent from your browser will be lost on the redirect. Ciencia Al Poder (talk) 09:31, 6 June 2017 (UTC)
- Upgrading to the newest MediaWiki version seemed to fix it. Thanks for the help. Krayfishkarl (talk) 14:06, 11 June 2017 (UTC)
Protecting Template page gives Lua error: expandTemplate: template "pp-template" does not exist.
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 wanted to protect the Template:Shortcut. When I had set the protection, the page returned with this error:
Lua error: expandTemplate: template "pp-template" does not exist.
What is this about? Does this mean I need to use the LuaSandbox instead LuaStandAlone?
Also... what has this to do with Lua?
Thanks for the help! IlseMul (talk) 19:31, 5 June 2017 (UTC)
- The error seems to indicate you're using expandTemplate() somewhere to load {{pp-template}}, but {{pp-template}} doesn't exist on your wiki. Ciencia Al Poder (talk) 09:33, 6 June 2017 (UTC)
- Okay.... Well, it's the template I downloaded from here. I thought that with export & import everything needed for the use of the page was exported. I guess I was wrong there. I'll have to figure out where it is used. The Template:Shortcut doesn't give any redlinked underlying templates, but maybe there's something else....
- Was I wrong with the assumption that really everything is exported?
- Thanks again for the help! IlseMul (talk) 10:23, 6 June 2017 (UTC)
- Apparently Special:Export has some limitations when other templates are requested dynamically inside Lua modules. Probably hard to resolve, though. Ciencia Al Poder (talk) 09:27, 7 June 2017 (UTC)
Problem while auto-login
The following discussion is closed. Please do not modify it. Subsequent comments should be made on the appropriate discussion page. No further edits should be made to this discussion.
Hi,
while i'm trying to auto-login user, my script allows to login automatically. but when i go to the page, i'm not logged in. Here is my script. What can be the problem?
<?php
error_reporting(E_ALL);
session_start();
/*
* To change this license header, choose License Headers in Project Properties.
* To change this template file, choose Tools | Templates
* and open the template in the editor.
*/
//require_once "includes/SimpleHttpRequest.php";
# $_Post[~] from B2B
# ~ wpName, wpPassword, key, sessionId
$wiki = 'http://cwiki/wiki/';
$redirectURL = $wiki."index.php?title=Spezial:Anmelden&action=submitlogin&type=login&returnto=Hauptseite";
$api = $wiki.'api.php?';
$retry = false;
$wpName = $_POST['wpName'];
//$wpName = 'Test_A';
$wpPassword = $_POST['wpPassword'];
//$wpPassword = 'gasdfww200';
echo("<br>name: ".$wpName);
echo("<br>pw: ".$wpPassword);
//echo(print_r($_POST,true));
$retry = $res = null;
if ( true /*checkB2BAuthentication()*/ )
{
$retry = LogIN( $wpName, $wpPassword);
echo("<br>retry = ".($retry?"true":"false"));
if ($retry)
$res = LogIN ( $wpName, $wpPassword);
if ($res !== null && $retry !== null)
echo(1);//header("Location: ".$redirectURL);
else
echo($res.".".$retry)."\n";
//header("Location: ".$wiki);
}
else{
return false;
}
function LogIN($wpName, $wpPassword)
{
global $wiki;
//$api = $wiki.'api.php?';
$api = $wiki."index.php/Spezial:Anmelden";
$retry = false;
$cokiefile = "/var/lib/php/session/pAAuth_lg";
$a = getToken($api, "login",$cokiefile);
$json_a = substr($a, strpos($a,'batchcomplete')-2);
$json_b = json_decode($json_a,true);
//echo(print_r($json_a,true));
$token = $json_b['query']['tokens']['logintoken'];
//echo("\n<br>Logintoken: ".$token."\n");
$data = array(
'action' => 'clientlogin',
'loginreturnurl' => $wiki,
'logintoken' => $token,
'username' => $wpName,
'password' => $wpPassword,
'rememberMe' => 1);
/*
$data = array(
'authAction' => 'login',
'title' => 'Spezial:Anmelden', //Holen (engl/Deusch)
'wpEditToken' => '+\\',
'wpLoginToken' => $token,
'wpName' => $wpName,
'wpPassword' => $wpPassword,
'wploginattempt' => 'Anmelden'); //Holen (engl/Deutsch)
*/
$ch = curl_init($api);
# Form data string, automatically urlencode
$postString = http_build_query($data, '', '&');
# Setting our options
curl_setopt($ch, CURLOPT_POST, 1);
curl_setopt($ch, CURLOPT_POSTFIELDS, $postString);
curl_setopt($ch, CURLOPT_COOKIEJAR,$cokiefile);
curl_setopt($ch, CURLOPT_COOKIEFILE, $cokiefile);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
# Get the response
$response = curl_exec($ch);
curl_close($ch);
$myfile3 = fopen("output/Auth_RESPONSE.txt","w");
fwrite($myfile3,print_r($response,true));
fclose($myfile3);
if (strpos($response,'PASS') !== false)
{
echo("<br>".$wpName." logged in!\n");
header("Location: http://cwiki/wiki/index.php?title=Spezial:Anmelden&action=submit&type=login&returnto=Hauptseite");
return false;
}
else if (strpos($response, 'RESTART') !== false
|| strpos($response,'FAIL')!== false)
{
return AutoCreateAccount($wpName, $wpPassword);
}
else {
echo("<br>ERROR. See logs!\n");
return null;
}
}
function AutoCreateAccount( $wpName, $wpPassword)
{
global $wiki;
$api = $wiki.'api.php?';
$retry = false;
$cokiefile = "/var/lib/php/session/pAAuth_cra";
$a = getToken($api, "createaccount",$cokiefile);
$ja = json_decode(substr($a, strpos($a,'batchcomplete')-2),true);
$createtoken = $ja['query']['tokens']['createaccounttoken'];
//echo("<br>Createtoken: ".$createtoken."\n");
$data = array(
'action' => 'createaccount',
'createreturnurl' => $wiki,
'username' => $wpName,
'password' => $wpPassword,
'retype' => $wpPassword,
'createtoken' => $createtoken);
$ch = curl_init($api);
# Form data string, automatically urlencode
$postString = http_build_query($data, '', '&');
# Setting our options
curl_setopt($ch, CURLOPT_POST, 1);
curl_setopt($ch, CURLOPT_POSTFIELDS, $postString);
curl_setopt($ch, CURLOPT_COOKIEJAR,$cokiefile);
curl_setopt($ch, CURLOPT_COOKIEFILE, $cokiefile);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
# Get the response
$response = curl_exec($ch);
curl_close($ch);
$myfile3 = fopen("output/Create_RESPONSE.txt","w");
fwrite($myfile3,print_r($response,true));
fclose($myfile3);
//echo("\nm".$response."\n");
if (strpos($response, 'PASS') !== false)
{
echo("created account for ".$wpName."\n");
return true;
}
else{
echo("<br>ERROR. See logs\n");
return null;
}
}
function getToken($apiURL, $type, $cokiefile)
{
$get = array(
'action' => 'query',
'meta' => 'tokens',
'type' => $type,
'format' => 'json');
$curl = curl_init($apiURL);
$curlstring = http_build_query($get);
curl_setopt($curl, CURLOPT_POST, 1);
curl_setopt($curl, CURLOPT_POSTFIELDS, $curlstring);
curl_setopt($curl, CURLOPT_COOKIEJAR,$cokiefile);
curl_setopt($curl, CURLOPT_COOKIEFILE, $cokiefile);
curl_setopt($curl, CURLOPT_RETURNTRANSFER, true);
$result = curl_exec($curl);
curl_close($curl);
return $result;
}
function checkB2BAuthentication()
{
global $paB2BConnection,$b2bKey, $wgRequest;
if ($_POST['key'] !== $b2bKey)
{
echo("B2B Authentication failed.");
return false;
}
else
{
$paB2BConnection['Parameters'] = 'cmd=authenticate&sessionId='.$wgRequest->getVal('sessionId');
echo ("...authenticate");
echo ("<br>");
echo ($paB2BConnection[Host]);
echo ("<br>");
echo ($paB2BConnection[Port]);
echo ("<br>");
echo ($paB2BConnection[URL]);
echo ("<br>");
$myRequest = new SimpleHttpRequest($paB2BConnection);
$responseGET = $myRequest->doRequest(SimpleHttpRequest::HTTP_GET);
//echo ($responseGET[Content]);
echo ("<br>");
$auth = simplexml_load_string($responseGET[Content]);
if($auth->response->authentication == 'false')
{
echo("B2B Authentication failed.");
return false;
}
if($auth->response->authentication == 'ok')
{
return true;
}
else{
echo("unknown error.");
return false;
}
}
} 62.153.239.66 (talk) 09:20, 6 June 2017 (UTC)
- Do you expect the script (run from a command line console or web app) to login, but also the user be logged in when browsing the wiki through the browser? That won't work, since login needs a cookie on the client (user browser or script), but that cookie is lost on the script and not shared by the browser, so the browser doesn't have the login state.
- Even if the script is run on a website and sends back to the browser the cookies delivered by the wiki, the script needs to be at least on the same domain (and adjust $wgCookiePrefix or even $wgCookieDomain), otherwise the browser won't share this cookie to the wiki. Ciencia Al Poder (talk) 09:28, 6 June 2017 (UTC)
persistent data in extension
The following discussion is closed. Please do not modify it. Subsequent comments should be made on the appropriate discussion page. No further edits should be made to this discussion.
Hi,
I'm trying to update my extension to the new format, but i am unable to give persistence to my data. Please help
In the specials folder of my extension, there is a file with something like:
<?php
$test=0
class mySpecialPage extends SpecialPage {
...
public function execute($sub) {
global $test, $wgOut, .... ;
$wgOut->addHTML('<br>'.$test++); # this code is a simplification (not tested)
}
But the variable $test does not keep the new value, it's always zero
Please, how to make it persistent
Thank you Btbe63 (talk) 10:35, 6 June 2017 (UTC)
- To make a value persistent you must store it on a persistent medium, either a database, a file or a service that maintains it in memory (like redis or memcached).
- For example, you can use wfGetMainCache(), and then use the returned BagOStuff object to add and get this value. Of course you need the wiki to have an object cache properly configured. Ciencia Al Poder (talk) 09:38, 8 June 2017 (UTC)
- OK thank you
- I figured out that in this case the data I want to be persistent is user related.
- So it seems better to store it in the user browser, like cookies
- Thanks again Btbe63 (talk) 09:19, 10 June 2017 (UTC)
Avoid wrap in formula
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'd like to know if it´s possible to stop a text which is the result of a formula from wrapping?
I`ve got this code:I´ve tried:
<div style="text-indent:10px;">{{nowrap|{{but it didn't work. Is it even possible using nowrap?
- {{nowrap}} is for inline styles. Newlines inside it will break it.
- You should use a block element to style it:
- <div style="text-indent:10px; white-space:nowrap;"> {{Special:RecentChanges/days=14,limit=5,hideminor,hidecategorization,tagfilter=MyCategory}} </div> Ciencia Al Poder (talk) 09:26, 8 June 2017 (UTC)
Default behavior after edit
The following discussion is closed. Please do not modify it. Subsequent comments should be made on the appropriate discussion page. No further edits should be made to this discussion.
After submitting changes to an article I'm not getting an automatic redirect to the article like on wikipedia.org. I'm gettig action=submit with no content... Is this normal behavior? I don't think i have any hooks registered for that event. Or maybe I have to code the redirect myself? Any comments are appreciated.
I'm running mediawiki 1.25.2 76.67.51.225 (talk) 19:56, 6 June 2017 (UTC)
- We recommend upgrading as 1.25.2 is unsupported. MacFan4000 (talk) 02:24, 7 June 2017 (UTC)
- If it happens on all pages, there's something screwed up. You probably get a blank page. See the linked page to enable the display of errors so you can see the error message and start finding from there.
- If it only happens when a specific text is inserted, it may be a rule of ModSecurity marking your edit as spam. Ciencia Al Poder (talk) 09:21, 8 June 2017 (UTC)
Citations with cite extension produce incorrect formatting
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 wiki, citations placed at the end of the line (after punctuation) are causing odd behaviour with formatting not being cleared for following lines. The specific example is a block of indented text with reference at the end, a blank line, and then a heading:
'''Heading 1''' :Indented text with reference followed by a line break with clear which should clear previous formatting.<ref>Reference1</ref> '''Heading 2''' :Some more text
Heading 2 should not be indented, with the correct formatting shown on my user page here. However, this is not the case on our Wiki, with the formatting behaving very strangely. Even more oddly, the formatting does show correctly on the Preview page.
Any thoughts?
Danny252 (talk) 20:18, 6 June 2017 (UTC)
- I tried in another Wiki, and the code is working fine there too. Possibly there is something in your MediaWiki:Common.css that is interfering.
- Maybe try removing code from there, doing hard refresh of the browser (Ctrl-Shift-R) a couple of times and then see if the issue persists. AhmadF.Cheema (talk) 08:04, 7 June 2017 (UTC)
- It isn't a styling issue, as the HTML is incorrectly formatted. The cause must be an extension that is installed which is interfering with Extension:Cite for some reason.
<dl> <dd>Indented text with reference followed by blank line only, reference before punctuation<sup id="cite_ref-1" class="reference"><a href="#cite_note-1">[1]</a></sup>.</dd> </dl> <dl> <dd>Indented text with reference followed by blank line only, reference after punctuation.<sup id="cite_ref-2" class="reference"><a href="#cite_note-2">[2]</a></sup><b>Heading 4</b></dd> <dd>And so on. All these display as expected in preview mode, including an extra line between 1 and 2. </dd> </dl>
- You can see the clear difference. When the reference is at the end of the line, the DD and DL doesn't end and instead carries on to just before when the next DL is meant to begin, and instead is just another DD in the first DL.
- Try disabling extensions (other than Cite) and see if it fixes it. 120.144.43.152 (talk) 11:45, 7 June 2017 (UTC)
- Thanks for that - it turns out it's a conflict with the Lingo extension (an outdated version, so perhaps not present in more recent versions), for some reason. Danny252 (talk) 13:32, 7 June 2017 (UTC)
How to upgrade my MediaWiki version?
The following discussion is closed. Please do not modify it. Subsequent comments should be made on the appropriate discussion page. No further edits should be made to this discussion.
Hi. I have a private wiki hosted in my computer only. Is not online, just in my PC. Currently, my MediaWiki version is 1.27.0. How can I upgrade the software version to the latest one (which is IINM 1.28.2)? Guycn2 (talk) 20:37, 6 June 2017 (UTC)
Repeated "nearby information" API call flips between two different sets of results
If I open https://en.wikipedia.org/w/api.php?action=query&list=geosearch&gspage=Eiffel%20Tower&gsradius=10000&gslimit=10 in a browser and repeatedly reload the page, the result flips (apparently at random) between two sets of information, one collection of points seeming to be closer than the others. Those sets are, to list their names and distances only:
- Globe C\u00e9leste (149.4), F\u00eate de la Concorde (365.7), International School of Paris (540.5), Gare du Champ de Mars (618.3), Holy Trinity Cathedral and the Russian Orthodox Spiritual and Cultural Center (640), Passy (Paris M\u00e9tro) (643.8), Palace of the King of Rome (644.1), I\u00e9na (Paris M\u00e9tro) (699.1), Direction de la surveillance du territoire (734.1), Flame of Liberty (807.2).
- Globe C\u00e9leste (149.4), Pont d'I\u00e9na (235.8), Exposition Universelle (1900) (337.6), American Library in Paris (337.7), Mus\u00e9e du quai Branly - Jacques Chirac (364), Champ de Mars Massacre (365.7), F\u00eate de la Concorde (365.7), Champ de Mars (365.7), u00cele des Cygnes (former island) (399.1), Jardins du Trocad\u00e9ro (438.9).
Is this a bug, or are API results meant to be taken as fuzzy suggestions rather than guaranteed as a wiki's X nearest geolocated articles? Gapfall (talk) 08:56, 7 June 2017 (UTC)
Localsettings.php error
The following discussion is closed. Please do not modify it. Subsequent comments should be made on the appropriate discussion page. No further edits should be made to this discussion.
Hi,
I installed the following extension Extension:EmbedVideo by 1) adding the folder in the extension folder and 2) add the correct line in the localsettings.php file. I initially used the following line "wfLoadExtension( 'EmbedVideo' );". I tried it on one page of the wiki (let's call it page 1) and it logically gave me this error: "Fatal error: Call to undefined function wfLoadExtension() in /home2/codamo/public_html/CodaWiki/LocalSettings.php on line 318"
I realised that the wfLoadExtension is designed for the mediawiki version 1.25 or above. As my version is 1.23.9, I changed it for "require_once "$IP/extensions/EmbedVideo/EmbedVideo.php". I tried to load the same page but I add the same error message. It didn't make since the function wfLoadExtension() was not present in the localsettings anymore. I checked that the upload of the correct localsettings.php was done. I tried on a different page (let's call it page 2) and I then add this new error "This version of the EmbedVideo extension requires MediaWiki 1.25+".
I then realised that I was stupid because I was trying to install an extension that requires a newest version of mediawiki than the one I have. I don't want to upgrade the mediawiki to the latest version so I decided to uninstall the extension (delete the folder and remove the parameters in the localsettings.php).
Despite having deleted the extension and the parameter in the localsettings.php:
- page 1 still displays "Fatal error: Call to undefined function wfLoadExtension() in /home2/codamo/public_html/CodaWiki/LocalSettings.php on line 318"
- page 2: still displays the following message: "This version of the EmbedVideo extension requires MediaWiki 1.25+".
I tried to play a bit more. I added the wfLoadExtension( 'EmbedVideo' ) parameters at line 316 but the extension folder (EmbedVideo) is still removed. I then loaded another page of the wiki (let's call it page 3). The page 3 displays the following message: "Fatal error: Call to undefined function wfLoadExtension() in /home2/codamo/public_html/CodaWiki/LocalSettings.php on line 316"
I then changed the paramaters to "$IP/extensions/EmbedVideo/EmbedVideo.php" and place line 317 (the extension folder (EmbedVideo) is still removed). i loaded another page (let's call it page 4). Page 4 displays "Warning: require_once(/home2/codamo/public_html/CodaWiki/extensions/EmbedVideo/EmbedVideo.php): failed to open stream: No such file or directory in /home2/codamo/public_html/CodaWiki/LocalSettings.php on line 317; Fatal error: require_once(): Failed opening required '/home2/codamo/public_html/CodaWiki/extensions/EmbedVideo/EmbedVideo.php' (include_path='.:/opt/php55/lib/php') in /home2/codamo/public_html/CodaWiki/LocalSettings.php on line 317)
I then delete the parameters and tried to reload each pages:
- page 1 still displays "Fatal error: Call to undefined function wfLoadExtension() in /home2/codamo/public_html/CodaWiki/LocalSettings.php on line 318"
- page 2: still displays the following message: "This version of the EmbedVideo extension requires MediaWiki 1.25+".
- page 3: still displays "Fatal error: Call to undefined function wfLoadExtension() in /home2/codamo/public_html/CodaWiki/LocalSettings.php on line 316"
- page 4: still displays "Warning: require_once(/home2/codamo/public_html/CodaWiki/extensions/EmbedVideo/EmbedVideo.php): failed to open stream: No such file or directory in /home2/codamo/public_html/CodaWiki/LocalSettings.php on line 317; Fatal error: require_once(): Failed opening required '/home2/codamo/public_html/CodaWiki/extensions/EmbedVideo/EmbedVideo.php' (include_path='.:/opt/php55/lib/php') in /home2/codamo/public_html/CodaWiki/LocalSettings.php on line 317)
Thinking it could be a cache issue, I tried to purge the pages (&action=purge or ?action=purge) and it doesn't do anything.
Any other page works correctly except "special pages" and "upload". Still possible to re-upload an existing file going through contributions.
Do you have any suggestions?
thanks in advance.
Bertrand 176.35.155.56 (talk) 16:00, 7 June 2017 (UTC)
- To cut a long story short: You tried installing an extension, which caused PHP errors. After removing the extension from your setup you are now still seeing these PHP errors.
- That most likely is a caching problem: Maybe MediaWiki is still caching the old version of the page. Or maybe your browser cache or some cache in between (a proxy maybe) is still serving you that old page.
- In order to narrow down the issue, it might help to visit the problematic wiki page from a different PC or maybe even from a different network. 2003:72:6D14:D200:55AD:3E40:54F6:C6 (talk) 17:24, 7 June 2017 (UTC)
- Hi,
- Thanks for your quick reply. I forgot to say but I already tried to visit the pages from a different PC and even from a different network but I still have the same errors. BertrandBru (talk) 18:02, 7 June 2017 (UTC)
- You obviously are having a caching problem. Either your browser or another intermediate cache is aggressively caching the error pages.
- If it happens on other PC, it's not your browser. Maybe you have a varnish/squid/nginx on top of your website? Do you have File cache enabled? Ciencia Al Poder (talk) 21:51, 7 June 2017 (UTC)
Unable to edit Interwiki due to error" relation "ignore" does not exist
The following discussion is closed. Please do not modify it. Subsequent comments should be made on the appropriate discussion page. No further edits should be made to this discussion.
- MediaWiki 1.23.15, PostgresSQL 9.5.4, Interwiki 2.3 20140327
- Attempting to edit existing Interwiki data to update change in URL, but always fails. Error logs show: relation "ignore" does not exist. Example: "UPDATE /* SpecialInterwiki::doSubmit first.last */ IGNORE "interwiki" SET"...etc...
- Googling suggests Postgresql does not support the IGNORE that MySQL has. Apparently the MediaWiki core DatabasePostgres.php does not account for this. Found someone's attempt at an update to the core file, but very wary of it from a compatibility standpoint (no version information specified). Is there a patch or other way (aside from updating DB manually) to get Interwiki to work with the table in Postgresql?
- Previous help from my posting in the wrong support area pointed to T130634 which unfortunately does not seem to be working when / how I implemented it. With the patch I now have a completely broken wiki with log errors, "PHP Fatal error: Class 'Database' not found in ...mediawiki-1.23.15/includes/db/DatabasePostgres.php on line 207"
- Did I apply the "patch" incorrectly (aka replace existing DatabasePostgres.php) or is it incompatible with my release(s)? I saw no guidance on applying the patch nor any reference to MediaWiki/Interwiki versions it was compatible with. Any help would be appreciated! Thank you. 162.93.65.8 (talk) 16:03, 7 June 2017 (UTC)
- On an unrelated note, 1.23 is an unsupported old version which does not receive security updates anymore. Please upgrade. Malyacko (talk) 11:19, 8 June 2017 (UTC)
- The "patch" shouldn't be applied by replacing the entire file, but by replacing only the modified lines, because the "original" file used to make those changes is probably from a different MediaWiki version than yours, and incompatible. This one should be particularly easy to implement, as it just adds a new function. Ciencia Al Poder (talk) 21:54, 7 June 2017 (UTC)
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.
am i aloud to copy and past the content mediawiki of into my website ? Nazila12 (talk) 19:56, 7 June 2017 (UTC)
- You should follow the license of each page. For example, Wikipedia uses the Creative Commons Attribution-Share-Alike License 3.0 or later. See w:Wikipedia:Copyrights. Other wikis may have other licenses. See details on each wiki (usually at the footer of any content page) Ciencia Al Poder (talk) 20:12, 7 June 2017 (UTC)
PAWS and harvesttemplates.py
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.
Could someone please add harvesttemplates.py as it is in the current pywikibot core to the paws global scripts directory? PokestarFan (talk) 21:29, 7 June 2017 (UTC)
- Hello? PokestarFan (talk) 00:54, 8 June 2017 (UTC)
- I use pywikibot myself but I don't know what the heck "paws" is. I suppose you should either elaborate or ask on a specific pywikibot forum/talk page/mailing list/IRC Ciencia Al Poder (talk) 09:18, 8 June 2017 (UTC)
- See Manual:Pywikibot/PAWS and "Developing pywikibot" on https://www.mediawiki.org/wiki/Manual:Pywikibot for contact information. Malyacko (talk) 11:18, 8 June 2017 (UTC)
What is hyperlink convert function name
The following discussion is closed. Please do not modify it. Subsequent comments should be made on the appropriate discussion page. No further edits should be made to this discussion.
I wrote a parser to detect the <c link="abc"/> (for example) tag and want to convert it like [[abc|abc]], but when I return this it become a string not a hyperlink like <a href="xxx/index.php/abc" title="abc">abc</a>, any internal method can do it? Chan15tw (talk) 09:52, 8 June 2017 (UTC)
- You will need to parse your wiki text. See Manual:Tag extensions#How do I render wikitext in my extension.3F Osnard (talk) 06:25, 9 June 2017 (UTC)
Changing font size of text field on editing 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.
First, I apologize if this is the wrong place to post this, or if it has been answered already. I did spend some time searching, but couldn't find an answer (though admittedly, I'm not quite sure of the terms to search for).
I'm running Media Wiki, and I have several contributors who have complained that the font size of the text field (when editing a wiki page) is too small, so I'd like to increase the default font size so it's easier for them to read what they are typing. I've figured out how to increase the default font size of displayed pages by adding the following code to the MediaWiki:Common.css file, but it doesn't affect the text fields for page editing. I would very much appreciate some help.
/* jwf--Make text larger */
#mw-content-text {
font-size: 1.000em;
}
/* jwf--Make text larger */
#bodyContent {
font-size: 1.000em;
} Joelwatsonfish (talk) 15:08, 8 June 2017 (UTC)
- Ciencia Al Poder (talk) 09:33, 9 June 2017 (UTC)
/* Edit textarea */ #wpTextbox1 { font-size: 1.5em; } /* Edit summary */ #wpSummary { font-size: 1.5em; } - Awesome! This worked! Thank you very much. Joelwatsonfish (talk) 15:33, 12 June 2017 (UTC)
Pages load, flash once then are replaced by white screen and constant page load activity - Chrome and Edge, not Firefox or Safari
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 Chrome and Edge, my wiki (Mediawiki 1.28.2, PHP 5.6.29, MySQL 5.6.32-78.1-log) has a display problem. On page load, the page is briefly visible, then it flashes to a white screen, and the page continues loading activity indefinitely.
This problem is not occurring in Firefox or in iOS Safari, both of which display the pages normally.
I've added the error logging code to my LocalSettings.php, but no error messages appear. I changed $wgMemoryLimit to 64M, just in case 50 wasn't enough.
I'd appreciate any help. Unfortunately, it's a private wiki, requiring accounts and logins, so I'd rather not post the address. If it's absolutely necessary, I could establish a troubleshooting account and email login details, though.
Thanks for any help you can provide. Please let me know if I haven't provided enough information to diagnose the problem. 2607:FB90:138B:B03A:F4DE:FD4F:B03C:3FE9 (talk) 15:37, 8 June 2017 (UTC)
- This is usually caused by a JavaScript code using document.write. Locate where it comes from and try to remove the extension/gadget/custom script or replace it with a working one.
- Hitting F12 on the browser may give you a hint if you look at the console. Ciencia Al Poder (talk) 09:28, 9 June 2017 (UTC)
- You were correct; using browser dev tools did locate the problem, which was with the wikEd editor. I disabled it and the problem seems to have stopped in Chrome. Haven't had a chance to test it with Edge yet, but I will post here if for some reason Edge still has the problem. Otherwise, consider this resolved. Thanks! Epimetreus (talk) 10:59, 9 June 2017 (UTC)
- Were you trying to enable WikiEditor for everyone by default? MacFan4000 (talk) 14:51, 9 June 2017 (UTC)
Ads defined in LocalSettings.php - means to limit them to NS_MAIN only?
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 the title says! I'm trying to figure out if there's a way, within Localsettings.php, to wrap ad tags/scripts with code that indicates they should only execute on pages within the Main namespace. Any suggestions that doesn't require an extension? Balerion300 (talk) 17:36, 8 June 2017 (UTC)
- You should tell us more details about what code/extension are you using for this. If you're doing the right thing, you'd be using a hook that receives a Title object which you can use to get the namespace of the page. Ciencia Al Poder (talk) 09:36, 9 June 2017 (UTC)
- I am using hooks, but I'm not sure how to get the namespace from that point. We use the SiteNoticeAfter, SkinBuildSidebar, and the SkinAfterContent hooks -- how would I work a check on namespace into that? Balerion300 (talk) 17:21, 9 June 2017 (UTC)
- Don't use hooks associated with the skin. Use hooks associated with page rendering (see [[Manual::hooks]] for details). Then do something like:
if($title->getNamespace == NS_MAIN){- $out->addModules('myscript');
- } 76.68.139.34 (talk) 03:07, 10 June 2017 (UTC)
- maybe try this hook:
- Manual:Hooks/BeforePageDisplay
- public static function onBeforePageDisplay( OutputPage &$out, Skin &$skin ) {
- if($out->getTitle()->getNamespace() == NS_MAIN){
- $out->addModules('mymodule');
- }
- }
- You probably also don't want the module to be loaded for certain actions... so you'll have to make sure to do this only for viewing the article. 76.68.139.34 (talk) 03:50, 10 June 2017 (UTC)
Technical assistance to upgrade our 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.
We are running version 1.26 and want to upgrade to 1.27 or 1.28. We are in transition and have no body to upgrade the WIKI. We are looking for somebody to come and upgrade. Please let us know Palanimunuswamy1 (talk) 18:05, 8 June 2017 (UTC)
Some of Bizagi's Thumbnails didn't display on Mediawiki
Hello everyone,
When I export my Bizagi's procedure to MediaWiki, some of Bizagi's Thumbnails display and some other not display and there's an error message instead of a thumbnail on Mediawiki.
I read a blog that dealt with image size. It said that if the image size was important, mediawiki could not resize it to become Thumbnails, but a setting exist to fix it.
My question is, what's the setting to fix my problem please? Pmt-it (talk) 19:09, 8 June 2017 (UTC)
- What is Bizagi? What is "my Bizagi's procedure"? And if there is an error message, what is the error message? And which MediaWiki version is used? Have you checked Manual:Errors and symptoms#Image Thumbnails not working and.2For appearing already? Malyacko (talk) 08:23, 9 June 2017 (UTC)
- Hi Malyacko,
- Bizagi is an app in which we can export procedure to Wiki format compatible Mediawiki.
- I use the latest version of Mediawiki.
- The error message isː "Erreur lors de la création de la miniature :" (french) and translate by "Error creating thumbnail:".
- I had to add those settings below to LocalSettings in order to display images from Bizagi to Mediawikiː
- $wgAllowImageTag = true;
- $wgGroupPermissions['*']['upload'] = true;
- $wgFileExtensions = array('png','gif','jpg','jpeg','doc','xls','mpp','pdf','ppt','tiff','bmp','docx', 'xlsx', 'pptx','ps','odt','ods','odp','odg');
- $wgEnableUploads = true;
- $wgHashedUploadDirectory = true;
- $wgUrlProtocols[] = "data:";
- What I've done to try to correct thumbnail's error is those settings below but it doesn't workː
- $wgUseImageResize = true;
- $wgUseImageMagick = true;
- #I copied ImageMagick portable folders in $IP/extra/convert.
- $wgImageMagickConvertCommand = "$IP/extra/convert";
- # For SVG image support
- $wgFileExtensions[] = 'svg';
- $wgAllowTitlesInSVG = true;
- $wgSVGConverter = 'ImageMagick';
- $wgSVGConverters = array(
- 'ImageMagick' => '"$IP/extra/convert" -background white -geometry $width $input $output',
- );
- Please help, I'm a novice...thanks a lot Pmt-it (talk) 20:53, 12 June 2017 (UTC)
- We need a more descriptive error than a generic "Error creating thumbnail". Try setting $wgShowExceptionDetails to true.
- If you don't get a more descriptive error message, you'll need to query your thumb.php script with a file that has this problem, for example http://yourwikisite/thumb.php?f=Image_with_problems.png&w=200 and it should give the error directly. Ciencia Al Poder (talk) 09:37, 14 June 2017 (UTC)
- Hi Ciencia Al Poder,
- I set $wgShowExceptionDetails to true. i got the error message ː"The source file 'picture._namepng' does not exist.". I noticed inside ./mediawiki/images/thumb, images that haven't been converted to thumbnail are not displayed in mediawiki website. I think that's the problem.
- Is it because mediawiki don't manage large images ? So do I have to find a setting to help to convert them ?
- Thanks for help Pmt-it (talk) 01:34, 20 June 2017 (UTC)
- Is your $wgGenerateThumbnailOnParse set to true? AhmadF.Cheema (talk) 04:03, 20 June 2017 (UTC)
- For other articles I had this error at the place of thumbnails ː
- Error Creating Thumbnail: Unable to Save Thumbnail to Destination
- I set this $wgGenerateThumbnailOnParse = true;
- But still have the problem.
- I don't understand why in some Bizagi's procedure thumbnails display and in other nothing?
- please help Pmt-it (talk) 00:58, 23 June 2017 (UTC)
- "Unable to Save Thumbnail to Destination" probably means permission problems in the images directory. Be sure all your folders and files inside the images folder have correct owner and permissions, recursively. Ciencia Al Poder (talk) 09:33, 23 June 2017 (UTC)
- I've checked images directory and all folders and files, all have the same correct owner and permissions recursively.
- Another suggestion, please? Pmt-it (talk) 00:57, 29 June 2017 (UTC)
Extension outputting UNIQ-QINU
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 guys,
I have a self written Multilanguage extension for MediaWiki using <country> tag for selective text display depending from user language settings. It interacts with the LanguageSelector which I installed in the version for my MediaWiki 1.23.
The extension is working fine, but I get some weird output like..
UNIQ64ea7d5fb1d3858c-country-00000000-QINU on my page.
Here the Extension Function:
function wfArticleSectionCheck() {
global $wgParser;
$wgParser->setHook("country","wfRenderArticleSectionCheck");
}
function wfRenderArticleSectionCheck($input, $args, $parser) {
global $wgLanguageCode, $wgLang;
$lan = $wgLang->getCode();
if(strpos($args['lan'], $lan) !== false) {
$output = $parser->recursiveTagParse($input);
return $output;
}
}
Here is my setup..
MediaWiki 1.23
PHP 5.3.3
MySQL 5.1.67
Thank you. Kairo5590 (talk) 08:47, 9 June 2017 (UTC)
- Unrelated, but please upgrade. 1.23 is an old unsupported version which does not receive security updates anymore. Malyacko (talk) 16:08, 10 June 2017 (UTC)
- We have QINU fix, which might help with some pointers... 2003:72:6D0A:FF00:A159:85BF:9A91:4353 (talk) 16:16, 10 June 2017 (UTC)
Cannot connect to an NAS database server
The following discussion is closed. Please do not modify it. Subsequent comments should be made on the appropriate discussion page. No further edits should be made to this discussion.
Hi, I'm trying to create a wiki and in the setup I want to connect it to a database that is on a Synology NAS with MariaDB and phpMyAdmin installed. However, when I enter the information for the database if gives me the following message:
DB connection error: MySQL server has gone away (xxx.xxx.xxx.xxx:xxxx).
Check the host, username and password and try again.
I tried this both with and without the port reserved for the NAS and still nothing.
What should I do in order to get the connection to the database working? 152.115.56.199 (talk) 09:38, 9 June 2017 (UTC)
- Another thing: I can create a wiki directly on the NAS using the MediaWiki package and it allows me to use a local database on the NAS and I can set it up successfully, however when I try to log onto the wiki from the NAS it prompts me to go one page back, reload, and try to log in again.
- If anyone has a solution, either for this problem or the one mentioned earlier, please let me know. 152.115.56.199 (talk) 09:46, 9 June 2017 (UTC)
- See MySQL server has gone away possible issues.
- For the second issue, see T147161. If you have $wgMainCacheType = CACHE_ACCEL; comment it out. Ciencia Al Poder (talk) 17:14, 11 June 2017 (UTC)
How to add "this page has been accessed ... times"
The following discussion is closed. Please do not modify it. Subsequent comments should be made on the appropriate discussion page. No further edits should be made to this discussion.
Hi Team,
I cannot find what variable I should add in LocalSettings.php in order to add the statistics for a page to be displayed in the footer of the page. BlagovestPeshev (talk) 11:10, 9 June 2017 (UTC)
- Page hit count got removed from MediaWiki. have a look at Extension:HitCounters Osnard (talk) 11:41, 9 June 2017 (UTC)
Pages showing blank despite code showing text
The following discussion is closed. Please do not modify it. Subsequent comments should be made on the appropriate discussion page. No further edits should be made to this discussion.
http://www.modelhorsepedigrees.com/wiki/index.php?title=Main_Page
Wiki has been up since 2014. Now it is no longer showing any of the text/images despite it being in the code. How can I make the Wiki show all of the content again. Tried on multiple browsers. Pinnygik (talk) 20:16, 10 June 2017 (UTC)
- What changes you did? What version and extensions installed? Could you try to upgrade? wargo (talk) 21:04, 10 June 2017 (UTC)
- This sounds like this problem: Manual:Errors_and_symptoms#All_pages_have_no_content.2C_but_when_editing_a_page_the_wiki_text_is_there. Upgrading MediaWiki should solve the issue. Btw: You are currently using MediaWiki 1.21.1. This version is old and has known security holes. This is another reason for upgrading to a supported version! 2003:72:6D0A:FF00:1DB4:F5DF:C15C:7AAD (talk) 22:05, 10 June 2017 (UTC)
How can I make movepages.py look at one category but not look at the parent category?
The following discussion is closed. Please do not modify it. Subsequent comments should be made on the appropriate discussion page. No further edits should be made to this discussion.
For enwikibooks, I am trying to get lots of categories to move themselves, but it lawyers starts with the parent category, which contains the pages that were already moved. How would I fix this? PokestarFan (talk) 21:27, 10 June 2017 (UTC)
- What is movepages.py? If this is a question about Pywikibot scripts, have you asked in a Pywikibot forum? Malyacko (talk) 12:11, 12 June 2017 (UTC)
- Ah, thanks. I will do that. PokestarFan (talk) 11:34, 13 June 2017 (UTC)
Interwiki case
Acting on some mediawiki site, I want to check if a page (or category) exists on Commons. I want to make a cross-wiki request for this. How can it be done with interwiki? Thank you. PereslavlFoto (talk) 21:49, 10 June 2017 (UTC)
Template translations
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 found some problem editing certain post (translating them).
I will get an example to enlight this:
Link (English): https://en.wikipedia.org/wiki/Montana_Jones
Link (Spanish): https://es.wikipedia.org/wiki/Montana_(serie_de_animaci%C3%B3n)
The problem I found: Copying the code I founded in English version to put a map sends error.
This code (extraction of now-working code in English version) doesn't work in Spanish version:
{{Location map+|World
|width=750
|float=right
|caption=Locations of Montana Jones.
|places=
{{Location map~|World|lat=23.316667|long=-102.366667|marksize=5|label=The Secret of the Gold Medal/Ormeca|position=none}}
}}
Alter a bit of investigation I changed all code to spanish template:
{{Mapa de localización+|Mundo
|ancho=750
|alineación=right
|etiqueta=Localizaciones de Montana Jones.
|mapa_alternativo=World_location_map_(equirectangular_180).svg
|lugares=
{{Mapa de localización~|Mundo|lat_gra=23.316667|lon_gra=-102.366667|tamaño_marca=5|etiqueta=The Secret of the Gold Medal/Ormeca|posición=none}}
}}
This didn't work too.
Any Idea?
Thanks a lot. 91.117.156.132 (talk) 15:44, 11 June 2017 (UTC)
- You can go to w:Template:Location map+ and look at the "in other languages" section to see if a similar template exists in the Spanish wiki. In this case, it's w:es:Plantilla:Mapa de localización+, and you can see there the parameter names. Ciencia Al Poder (talk) 17:07, 11 June 2017 (UTC)
Upgrade From 1.26 to 1.28 Breaks Some Images
The following discussion is closed. Please do not modify it. Subsequent comments should be made on the appropriate discussion page. No further edits should be made to this discussion.
Hello,
Recently the Scratch DACH wiki was upgraded to MW 1.28. We then noticed that some images were broken. Specifically, any images with special characters in the title. Example: https://scratch-dach.info/wiki/Datei:Kopfbl%C3%B6cke.png
Here's some interesting behavior. Going to the image's direct url fails: https://scratch-dach.info/w/images/b/be/Kopfbl%C3%B6cke.png
However, the error page yields a new image url. This works: https://scratch-dach.info/w/images/b/be/Kopfbl%C3%83%C2%B6cke.png
As can be seen, the image name requires more expansive character encoding. This was not the case in MW 1.26. MW 1.28 was the only change. PHP, Apache, SQL, etc... were not touched.
If it helps, we did run maintenance/rebuildImages.php . However, this did nothing.
Help? ErnieParke (talk) 03:21, 12 June 2017 (UTC)
- Probably unrelated but I noticed you said PHP was not changed from when MW 1.26 was being used. Looking at your Version page the PHP version is listed 7.1.5 (litespeed) and if I'm not mistaken PHP v7.x is unsupported for MW 1.26. Are you sure PHP version remained unchanged during the upgrade?
- Relevant discussions:
- https://stackoverflow.com/questions/4138705/mediawiki-special-characters-in-file-name-issue
- Project:Support desk/Flow/2011/06#h-Page_Titles_with_Special_Characters_not_decoding_properly_1.16.2_->_1.17.0-2011-06-24T15:19:00.000Z AhmadF.Cheema (talk) 05:25, 12 June 2017 (UTC)
- Yep. PHP 7 was used throughout. Somehow MW 1.26 is very stable with PHP 7.
- Anyway, I've been talking with the sysadmin who upgraded MW, and it appears he downloaded the images from Unix onto Windows, then uploaded them back to Linux. This messed up file encodings.
- Everything's fixed now! ErnieParke (talk) 16:51, 15 June 2017 (UTC)
i want to add one publish button in view history page next to autoapprove button and want to publish the wiki page in sharepoint.How can we do it?
The following discussion is closed. Please do not modify it. Subsequent comments should be made on the appropriate discussion page. No further edits should be made to this discussion.
i want to add one publish button in view history page next to autoapprove button and want to publish the wiki page in sharepoint.How can we do it? 144.36.185.157 (talk) 13:14, 12 June 2017 (UTC)
- Developer hub and How to become a MediaWiki hacker provide information on writing code. Malyacko (talk) 09:42, 13 June 2017 (UTC)
Editing the top header with CSS?
The following discussion is closed. Please do not modify it. Subsequent comments should be made on the appropriate discussion page. No further edits should be made to this discussion.
I'm just wondering how one would go about editing the CSS of the topmost portion of the wiki - the one where you see your log-in info as well as the buttons to edit the page. I'm asking since in my current wiki, the plain white clashes with the background, especially since it happens right behind the logo. I figure it can be edited with Common.css, but for the life of me, I can't figure out the syntax.
http://omniversenexus.net/wiki/Main_Page
How can I change the white to something else, say a gradient, or even just hide it altogether to show more of the background?
*MediaWiki version: 1.28.2
*PHP version: 5.6.30
If necessary, here's the link to the CSS page: http://omniversenexus.net/wiki/MediaWiki:Common.css
EDIT: Here's an example of what I'm talking about:
http://zelda.gamepedia.com/Main_Page
This wiki edited the top header to be blue and smoothly transition in to the rest of the background. Krayfishkarl (talk) 13:18, 12 June 2017 (UTC)
- To find div ids for particular elements in webpages, you can make use of browser developer tools. In Chrome pressing Ctrl + Shift + C will open a selection feature then you can select any element on the webpage which will open its id and properties.
- The div id for the top navbar is: p-personal. To hide it you can use:
#p-personal { display: none; }AhmadF.Cheema (talk) 13:44, 12 June 2017 (UTC)- Thanks. I should be on the right track now. Just have to play around more. Krayfishkarl (talk) 13:58, 12 June 2017 (UTC)
Help page in my old wiki was replaced by mediawiki help page when new version was installed
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 help page in my wiki has been replaced by mediawiki help page. I can't find my old page anywhere. 2600:6C4E:E7F:E831:25C5:91DD:99C4:F4D7 (talk) 16:15, 12 June 2017 (UTC)
- A MediaWiki upgrade does nt modify page contents. The page must have been changed by a user of the wiki - if you want to, you can undo the changes to get the old version back. 2003:72:6D16:1900:B0D7:3203:E08E:FE61 (talk) 18:29, 12 June 2017 (UTC)
- I kept a copy of the old database.
- Is there a way to just pull out that specific page from that old database? 2600:6C4E:E7F:E831:B0CE:CF6E:6523:9523 (talk) 03:22, 13 June 2017 (UTC)
- Try first to get it from the Page history. If it's not there (and I highly doubt MediaWiki has deleted anything during upgrade), you could query the text on the old database looking in the Page table, page_latest field contains the ID of the latest revision, which you should query on the Revision table and then get the rev_text_id to query on the Text table. Note that you won't get any visible text if you have $wgCompressRevisions set to true. Ciencia Al Poder (talk) 09:51, 13 June 2017 (UTC)
Attribute Error while getting whole revision history
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 was trying to get all history of a wikipedia article using special:export (https://en.wikipedia.org/w/index.php?title=Special:Export&pages=India&history=1&action=submit) and it's always showing error what's the issue please let me know
It was showing something like this:
<div class="footer">
<p>If you report this error to the Wikimedia System Administrators, please include the details below.</p>
<p class="text-muted"><code>
Request from 117.252.3.34 via cp3041 frontend, Varnish XID 707637861<br>Upstream caches: cp3041 int<br>Error: 403, Insecure Request Forbidden - use HTTPS - https://lists.wikimedia.org/pipermail/mediawiki-api-announce/2016-May/000110.html at Tue, 13 Jun 2017 07:00:34 GMT</code></p></div></html> Srinadhu (talk) 07:00, 13 June 2017 (UTC)
- I don't get this error, but a PHP fatal error: request has exceeded memory limit
- If you're using HTTPS (and not HTTP), you shouldn't get this error, unless you're using a proxy that's redirecting traffic to HTTP Ciencia Al Poder (talk) 09:43, 13 June 2017 (UTC)
- There's a Phabricator task for this: phab:T167760. —Mainframe98 talk 09:49, 13 June 2017 (UTC)
- So basically you can't use Special:Export for that page. If using the api is not an option for you, please explain the purpose of getting the full history of that page so we can suggest alternative methods. Ciencia Al Poder (talk) 09:32, 14 June 2017 (UTC)
- @Ciencia Al Poder we are researching on understanding knowledge building process on wikipedia for that we need entire revisions of some wikipedia articles in XML format ,we have limited memory so we can't use the complete wikipedia datadumps already provided.Can you please suggest a way to get entire revision history of a given article in 'one' XML file. Srinadhu (talk) 18:40, 14 June 2017 (UTC)
- Why getting an XML is a requirement? Can't you get the history from the api as suggested and save it in a database or similar? Ciencia Al Poder (talk) 19:41, 14 June 2017 (UTC)
Link which is supposed to show thumbnail only links to file-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,
I`ve got a problem with showing thumbnail of some pdfs. Normally I can show thumbnails using:
[[File:NameofFile.pdf]]
Clicking on the shown thumbnail I get to the page of the file.
But with some pdf-files it doesn't work since today. I did´t change any settings, the only thing I noted is that the pdf, after uploading it, is only shown as an pdf-icon in the file list (but it just happens with some of the pdfs). Does anybody have an idea why this is happening? Blumenfuchs (talk) 10:49, 13 June 2017 (UTC)
- Assuming you have Extension:PdfHandler in place, if you have $wgPdfCreateThumbnailsInJobQueue set to true, they may not be caught by the job queue so the thumbnail is still pending. Or maybe the PDF files are too large to handle them. Ciencia Al Poder (talk) 09:46, 14 June 2017 (UTC)
The requested URL /wiki/Speciale:Entra was not found on this server. (UPGRADE TO 1.28)
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 followed upgrade guide and i upgrade release 1.26 to 1.28. I run /mw-config in order to upgrade database and everything was ok. Now when i try to open main page i have no problem but when i try to login to wiki it reported the issue:
The requested URL /wiki/Speciale:Entra was not found on this server.
Probably something wrong in upgrade task?
Thanks 194.183.0.100 (talk) 10:51, 13 June 2017 (UTC)
- Does this happen with every other special page (like for example Special:RecentChanges)?
- The error "The requested URL XXXXXX was not found on this server." is from the server, not MediaWiki, and means you have wrong RewriteRules (if set) on the server or MediaWiki $wgArticlePath may be set incorrectly, making links point to wrong URLs. Ciencia Al Poder (talk) 09:43, 14 June 2017 (UTC)
Need basic table formatting help
The following discussion is closed. Please do not modify it. Subsequent comments should be made on the appropriate discussion page. No further edits should be made to this discussion.
I am wondering if someone would be willing to work with me for a few minutes on formatting a table that includes and image gallery in 1 Column, a Large Image in a 2nd column and then a paragraph in a bottom row that I would like to have centered. I also have some issues with the layout on lower resolution screens. Here is page I have been editing. https://www.gatesofsurvival.com/wiki/index.php/Main_Page
All the editing Im trying to is in the Skills Section.I have been using the Tables wiki and its helped alot but I not very good at basic html and would appreciate it if anyone could spend a little time helping me.
Thanks Mortalites (talk) 18:38, 13 June 2017 (UTC)
{| class="wikitable" |Some Image Gallery |A Large Image |- |colspan="2" style="text-align:center;"|a centered paragraph |}- See https://www.mediawiki.org/wiki/Help:Tables Malyacko (talk) 07:42, 14 June 2017 (UTC)
Will autocreated users (PluggableAuth/SimpleSAMLphp) get a confirmed email?
We are about to bring our wiki live with the possibility for users in the organization to login using the organization Identy Provider. As such the wiki account for these users will be auto created. We are passing on a legitimate email address from the IdP which in principle doesn't need confirmation.
I read here that email functions only work for confirmed email addresses. Will the autocreate function also send out a confirmation token to the email supplied in the autocreate? PeterBodifee (talk) 23:41, 13 June 2017 (UTC)
Download Git repository
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 download an older version of a MediaWiki Git repository (either the MediaWiki core or an extension)? GTrang (talk) 01:40, 14 June 2017 (UTC)
- Yes, after pulling a repository from git, enter
git branch -r | sort -VORgit tag -l | sort -Vwhich will list the available branches.- Then, checkout the specific branch by entering a command such as:
git checkout -b REL1_28 origin/REL1_28- where "REL1_28" will be what you want to name the branch locally while "origin/REL1_28" will be the branch name that you got from the above list.
- After the checkout of a different branch, you will have to run the
composer update --no-devandphp maintenance/update.php(and possibly some other) commands as well. - The same procedure for extensions, although as generally their branches are named as REL1_27, REL1_28, REL1_29 etc. you wouldn't need to find the branch names.
- See Download from Git. AhmadF.Cheema (talk) 03:30, 14 June 2017 (UTC)
Flagged Revs help
Hello, can somebody help me perhaps in Flagged Revs? I want to editing some pages and don`t show this to someone else. When I editing any Page so can everybody (Users) see the change. Is there any approach to invisible the treatments for outstanding? The User see the read tab and a tab with untagged change. I want to disabled the untagged change tab for users. Is this maybe possible?
Thanks. 131.173.73.106 (talk) 09:39, 14 June 2017 (UTC)
Tag protect
The following discussion is closed. Please do not modify it. Subsequent comments should be made on the appropriate discussion page. No further edits should be made to this discussion.
Hello, how to setup <protect> tag? 5.227.177.76 (talk) 11:58, 14 June 2017 (UTC)
- Hi. If your question is related to the MediaWiki software, please elaborate which underlying problem you would like to solve. Thanks! Malyacko (talk) 19:55, 14 June 2017 (UTC)
- Yes it is for mediawiki software. I know that it is possible to use <protect>example</protect> tags to protect "example" against to edition. How to setup it? I'm and an admin of one wiki. Thanks. 5.227.189.52 (talk) 05:21, 15 June 2017 (UTC)
- I think you are talking about: Extension:ProtectSection.
- Take care to read the warnings on the extension page too. AhmadF.Cheema (talk) 08:53, 15 June 2017 (UTC)
- Yes it is. Thanks a lot!
- And I have one more question: how to setup group Autoconfirmed users? How to setup their rights and the conditions to become an autoconfirmed user? Thanks again. 217.118.93.170 (talk) 14:42, 15 June 2017 (UTC)
- That is setup by default. 24.39.1.139 (talk) 15:33, 15 June 2017 (UTC)
- See Manual:Autoconfirmed users.
- For example:
- AhmadF.Cheema (talk) 15:36, 15 June 2017 (UTC)
// Time and no. of edits before accounts' autoconfirmation $wgAutoConfirmAge = 86400*6; // six days $wgAutoConfirmCount = 5; // five edits $wgGroupPermissions['autoconfirmed']['skipcaptcha'] = true; // give skipcaptcha right to 'autoconfirmed' users
Parse error: syntax error, unexpected 'private' XmlTypeCheck.php on line 364
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 get the above error when I try to upload an image.
When I try to access a page with an image, I get:
Parse error: syntax error, unexpected 'private' (T_PRIVATE) in ...includes/libs/XmlTypeCheck.php on line 364
Notice: DB transaction callbacks still pending (from LocalFile::lock). in .../includes/db/Database.php on line 4155
mediawiki-1.23.17 | php 5.6.30 | MariaDB 10.0.31
https://lsj.translatum.gr/ Spiros71 (talk) 13:55, 14 June 2017 (UTC)
- MediaWiki 1.23 is no longer supported and potentially insecure. Please upgrade.
- Anyway, I don't see any issue in the file on that line, maybe your file was edited Ciencia Al Poder (talk) 09:37, 16 June 2017 (UTC)
- Not easy to upgrade currently (wiki farm). Which file are you referring to? This is the part referred to (XmlTypeCheck.php on line 364):
* Handle coming across a <!DOCTYPE declaration. * * @param XMLReader $reader Reader currently pointing at DOCTYPE node. */ private function DTDHandler( XMLReader $reader ) { $externalCallback = $this->parserOptions['external_dtd_handler']; $generalCallback = $this->parserOptions['dtd_handler']; $checkIfSafe = $this->parserOptions['require_safe_dtd']; if ( !$externalCallback && !$generalCallback && !$checkIfSafe ) { return; } $dtd = $reader->readOuterXML(); $callbackReturn = false;- And this is from Database.php on line 4155
- Spiros71 (talk) 13:26, 16 June 2017 (UTC)
foreach ( $this->mTrxIdleCallbacks as $callbackInfo ) { $callers[] = $callbackInfo[1]; } $callers = implode( ', ', $callers ); trigger_error( "DB transaction callbacks still pending (from $callers)." ); - There is no closing brace on the condition starting on line 350... they had obviously come across this because they've chucked an extra brace on the end of the file... Nad (talk) 12:05, 3 July 2017 (UTC)
- Thanks for the solution; much indebted :) Spiros71 (talk) 12:21, 3 July 2017 (UTC)
Problem with finding article, when try to translate
The following discussion is closed. Please do not modify it. Subsequent comments should be made on the appropriate discussion page. No further edits should be made to this discussion.
Hi.
I would like to complain about translation page. When I try to translate, for example, from be-tarask (article Васіль Захарка) into Ukrainian, I just can`t find article and can`t translate.
But, when I do the same action from simple Belorussian to Ukrainian, there is no problem with finding article. What`s the problem?
I can see error when opening be-tarask page in translator .(⧼cx-error-page-not-found⧽)
It seems this is a bug. Viiictorrr (talk) 16:22, 14 June 2017 (UTC)
- You might find a more focused venue in https://www.mediawiki.org/wiki/Extension_talk:ContentTranslation :) AKlapper (WMF) (talk) 19:54, 14 June 2017 (UTC)
- Thanks, I will write there. Viiictorrr (talk) 20:56, 14 June 2017 (UTC)
Creating a subpage in the same namespace of parent 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.
Suppose I am watching a page in a namespace Chapter1.
I edit the page and I enter the following text:
[[Main Characters]]
The page will be created (after I click on the link) in the default namespace.
Is there some kind of parameter or extension which makes creating a new page by default in the namespace of the page in where the link was created ?
I know how I can create the page in the Chapter1 namespace by explicitly defining the Chapter1 namespace:
[[Chapter1:Main Characters]]
But is there any way without defining it explicitly in the link itself ? Lionel1234 (talk) 17:31, 14 June 2017 (UTC)
- Try [[/Main Characters]] MacFan4000 (talk) 19:21, 14 June 2017 (UTC)
- Thanks Lionel1234 (talk) 05:16, 15 June 2017 (UTC)
Main Page MediaWiki
The following discussion is closed. Please do not modify it. Subsequent comments should be made on the appropriate discussion page. No further edits should be made to this discussion.
Hi there I would like to know how I can create the 3 block that are in the MediaWiki.org Main page
So like the Using MediaWiki , System Administration and Developing & Extending
Thanks for anyu help in advance 37.9.216.65 (talk) 12:13, 15 June 2017 (UTC)
- Those are made through Template:Main page code, whose relevant part further depends on templates:
- Also relvant are the .CSS rules on MediaWiki:Gadget-site.css for classes:
- .mainpage_hubbox
- .mainpage_hubtitle
- .mainpage_boxcontents AhmadF.Cheema (talk) 12:47, 15 June 2017 (UTC)
One form field to fill multiple templates
Hi!
I have a from with multiple templates. Theres one value that is needed for all of them. Right now it has to be filled with with the same value 3 times. How can I set up the form that the value is entered once for multiple templates?
I tried that "hold template" and "embed in field"-thing without success. If that how its done, I need some help.
Cheers! Throwst (talk) 13:25, 15 June 2017 (UTC)
1.28.2 Running on MacOS - lightncandy.php errors
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've tried running from the git repository and downloading the tar.gz file for 1.28.2.
In both cases, I'm calling
php composer.phar install --no-dev
then when I load the index.php page I'm getting the following error,
Warning: preg_match(): Empty regular expression in /usr/local/var/www/htdocs/wiki/vendor/zordius/lightncandy/src/lightncandy.php on line 222
Error: Can not set delimiter contains '=' , you try to set delimiter as '{{' and '}}'.
I'm new to MediaWiki, have I done something obviously wrong? Am I missing a installation/setup step? 54.72.49.210 (talk) 15:19, 15 June 2017 (UTC)
- Just tried with 1.27.3 and had the same problem.
- I'm using php 5.6 and Apache web web server 2.4.25 54.72.49.210 (talk) 15:48, 15 June 2017 (UTC)
- From the warning and the error, it sounds like preg_match is behaving funny.
- Is there a known issue with preg_match behaving differently between PHP version and/or on mac? 54.72.49.210 (talk) 16:42, 15 June 2017 (UTC)
- It's not preg_match fault, but something is passing an empty regular expression to it, in lightncandy.php line 222
- If you're downloading the tar.gz and not from git, you shouldn't need to use composer. Try to extract everything again without using composer. Ciencia Al Poder (talk) 09:29, 16 June 2017 (UTC)
Category Page Titles
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 strip the word Category from category page titles? I'm just trying to clean things up cosmetically and I think Category:PageTitle looks kind of ugly. I did look through the documentation and I either can't find it, or it's not there. I'd appreciate any help. Shepherd67 (talk) 19:09, 15 June 2017 (UTC)
- Don't know whether they still work or not:
- Extension:HideNamespace
- Extension:HidePrefix
- I couldn't find any direct .CSS method of achieving this. AhmadF.Cheema (talk) 20:31, 15 June 2017 (UTC)
Usage of {{#time}}
The following discussion is closed. Please do not modify it. Subsequent comments should be made on the appropriate discussion page. No further edits should be made to this discussion.
How can I use {{#time}} to get June 2017? PokestarFan (talk) 01:23, 16 June 2017 (UTC)
{{#time: F Y}}CyberXRef☎ 02:08, 16 June 2017 (UTC)- Thanks PokestarFan (talk) 02:10, 16 June 2017 (UTC)
DBQueryError, Cannot use full-text search in master, tempdb, or model database.
The following discussion is closed. Please do not modify it. Subsequent comments should be made on the appropriate discussion page. No further edits should be made to this discussion.
Environment: SQLSMS 2008R2 - Windows Server 2012 - IIS8 - PHP 5.5
I've been trying to set up MediaWiki 1.28.2 on our server with our above environment . After installing the php_sqlsrb_55_nts.dll and php_pdo_sqlsrb_55_nts.dll drivers to identify SQLSMS and then running successfully through the steps of installation, the installer halts at "setting up database..." and I get the below stack trace. I've had a lengthy google and haven't found anything the same, only similar looking but different error. No link to the wiki as it is (will be) internal.
Help is appreciated.
Cheers.
ST:
[1d6fe9c27637e0ebbe027033] /wiki/mw-config/index.php?page=Install DBQueryError from line 1054 of C:\inetpub\wwwroot\wiki\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: CREATE FULLTEXT CATALOG [mediawiki]
Function: MssqlInstaller::setupDatabase
Error: 9966 [SQLSTATE 42000][Error Code 9966][Microsoft][ODBC Driver 11 for SQL Server][SQL Server]Cannot use full-text search in master, tempdb, or model database.
Backtrace:
#0 C:\inetpub\wwwroot\wiki\includes\libs\rdbms\database\Database.php(912): Database->reportQueryError(string, integer, string, string, boolean)
#1 C:\inetpub\wwwroot\wiki\includes\installer\MssqlInstaller.php(515): Database->query(string, string)
#2 [internal function]: MssqlInstaller->setupDatabase(MssqlInstaller)
#3 C:\inetpub\wwwroot\wiki\includes\installer\Installer.php(1515): call_user_func(array, MssqlInstaller)
#4 C:\inetpub\wwwroot\wiki\includes\installer\WebInstallerInstall.php(45): Installer->performInstallation(array, array)
#5 C:\inetpub\wwwroot\wiki\includes\installer\WebInstaller.php(279): WebInstallerInstall->execute()
#6 C:\inetpub\wwwroot\wiki\mw-config\index.php(81): WebInstaller->execute(array)
#7 C:\inetpub\wwwroot\wiki\mw-config\index.php(39): wfInstallerMain()
#8 {main} Zeenglishking (talk) 15:47, 16 June 2017 (UTC)
- Apparently, MediaWiki is trying to issue a "CREATE FULLTEXT CATALOG" sentence on SQLServer database, but it hasn't "changed" to the wiki database first. This is obvious a bug in MediaWiki.
- I've reported T168118 for you.
- Note that SQLServer support in MediaWiki is very low, I'd recommend using mysql instead. Ciencia Al Poder (talk) 09:28, 17 June 2017 (UTC)
Templates refuse to align right.
The following discussion is closed. Please do not modify it. Subsequent comments should be made on the appropriate discussion page. No further edits should be made to this discussion.
| MediaWiki | 1.27.1 |
| PHP | 7.0.19 (cgi-fcgi) |
| MySQL | 5.5.55-0+deb7u1-log |
| ICU | 52.1 |
| Lua | 5.1.5 |
www.sofac.org/Template:Character
an example is here www.sofac.org/Bone
I can't get the template to automatically or manually align to the right, it just sticks to the left side. Dog1994 (talk) 16:18, 16 June 2017 (UTC)
- Add "float:right;" to the table style (or maybe ".infobox { float: right; }" to Mediawiki:Common.css). Clump (talk) 00:27, 17 June 2017 (UTC)
- I used the css option and it worked perfectly, thank you! Dog1994 (talk) 20:02, 17 June 2017 (UTC)
Per-page template editing
The following discussion is closed. Please do not modify it. Subsequent comments should be made on the appropriate discussion page. No further edits should be made to this discussion.
I'd love for my users to be able to transclude or otherwise insert a template into a page, but then be able to edit the *copy* of the template, rather than having a template for literally every single instance of templates there is. How can I have them do that without just copy-pasting the template into every page?
| Product | Version |
|---|---|
| MediaWiki | 1.27.1 |
| PHP | 7.0.19 (cgi-fcgi) |
| MySQL | 5.5.55-0+deb7u1-log |
| ICU | 52.1 |
| Lua | 5.1.5 |
- Maybe try template substitution. See {{subst:Name}} in Help:Templates#Usage. AhmadF.Cheema (talk) 18:22, 16 June 2017 (UTC)
- Outstanding, that's exactly what I was looking for. You're a godsend.
- Sorry about a question that had such a straightforward answer. You'd think after reading it so many times one would get that, but I guess you'd begin to overthink things. Dog1994 (talk) 20:08, 17 June 2017 (UTC)
IsMainPage() in Localsettings?
The following discussion is closed. Please do not modify it. Subsequent comments should be made on the appropriate discussion page. No further edits should be made to this discussion.
Hi,
Is there any way to access isMainPage() from within Localsettings.php? Balerion300 (talk) 16:50, 16 June 2017 (UTC)
- What is it that you want to achieve? 2003:72:6D1B:A200:D988:7C3F:7151:32EA (talk) 00:52, 17 June 2017 (UTC)
- You need a Title object. Your code should be inside a Hook, and some of them provide it directly or indirectly. Ciencia Al Poder (talk) 09:14, 17 June 2017 (UTC)
Flow messages
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.
Does leaving a message on a flow user talk page cause "You have new messages" to be displayed to the user like a regular wikitext user talk page? GTrang (talk) 18:18, 16 June 2017 (UTC)
- Don't know if this is the default behavior or not but a notification does appear. Requires Extension:Echo too. AhmadF.Cheema (talk) 20:07, 16 June 2017 (UTC)
Help with server
The following discussion is closed. Please do not modify it. Subsequent comments should be made on the appropriate discussion page. No further edits should be made to this discussion.
I just update my server to Ubuntu 14.04.5 and now I can't get access to the /mediawiki-1.17.0/index.php file anymore 200.9.97.140 (talk) 20:30, 16 June 2017 (UTC)
- MediaWiki 1.17 is way too old and unsupported.
- You can try going through Manual:How to debug to get more descriptive error information. AhmadF.Cheema (talk) 20:36, 16 June 2017 (UTC)
- I want to upgrade my MediaWiki to 1.28.2 now but I don't know how to backup the information of my server. My server only runs on Ubuntu and have to use command line to get around. Could you show me what is the easiest way to back up my wiki info ? 200.9.97.140 (talk) 21:02, 16 June 2017 (UTC)
- Sorry I meant Linux ! 200.9.97.140 (talk) 21:03, 16 June 2017 (UTC)
- A little complicated but you'll have to take a look at this: Manual:Backing up a wiki AhmadF.Cheema (talk) 21:08, 16 June 2017 (UTC)
The upload mechanism doesn't work
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 isn't working today, and it didn't work yesterday. Anjuna (talk) 00:40, 17 June 2017 (UTC)
- "upload mechanism" where? AhmadF.Cheema (talk) 06:37, 17 June 2017 (UTC)
- https://anjuna.miraheze.org/wiki/Special:Upload Anjuna (talk) 08:12, 17 June 2017 (UTC)
- Have you asked Miraheze support? Ciencia Al Poder (talk) 09:12, 17 June 2017 (UTC)
- I emailed a trusted friend who has helped me with technical issues before. Anjuna (talk) 10:31, 17 June 2017 (UTC)
username / password
The following discussion is closed. Please do not modify it. Subsequent comments should be made on the appropriate discussion page. No further edits should be made to this discussion.
I cannot remember my username an/password. Is there a phone help/chat to sort this out.
its annoying when you cnnot log in 80.1.163.102 (talk) 11:08, 17 June 2017 (UTC)
- There is no telephone chat. There is a channel on freenode IRC, however, I guess I myself already have an idea:
- If you know a page, hich you have edited while you have been logged in, then you can view the page history to find your username again. After that you can reset your password. 2003:72:6D05:900:9843:2E59:F8C9:FF33 (talk) 18:19, 17 June 2017 (UTC)
Did not find alias for special page 'Namespaces'
The following discussion is closed. Please do not modify it. Subsequent comments should be made on the appropriate discussion page. No further edits should be made to this discussion.
With debug features turned on, I get the message bellow on Special pages:
Notice: Did not find alias for special page 'Namespaces'. Perhaps no aliases are defined for it? [Called from SpecialPageFactory::getLocalNameFor in C:\inetpub\wwwroot\OlePedia\includes\specialpage\SpecialPageFactory.php at line 692].
This problem is almost like the one described in https://phabricator.wikimedia.org/T35874, where it is marked as a bug and
My wiki is: http://www.hattebol.no/index.php?title=Spesial%3AVersjon, using: MediaWiki 1.28.2, PHP 7.0.20, MySQ"L 5.6.17, Lua 5.1.4. The wiki is in Norwegian.
Is this also a bug? Olht (talk) 11:25, 17 June 2017 (UTC)
- Probably a bug of Extension:SpecialNamespaces, try disabling this extension. Ciencia Al Poder (talk) 11:46, 17 June 2017 (UTC)
- That did it.
- Thanks Olht (talk) 12:22, 17 June 2017 (UTC)
Unable to login
I have created an account and account name, but my password is rejected, and when I request a new password to my email address nothing happens. Any experince with that? 2.130.200.238 (talk) 12:23, 17 June 2017 (UTC)
Connection Refused when using remote server.
The following discussion is closed. Please do not modify it. Subsequent comments should be made on the appropriate discussion page. No further edits should be made to this discussion.
I am trying to set up MediaWiki for the company I work at on one of our servers.
I have gotten everything installed correctly, and can navigate to the MediaWiki config page, but when I try to enter the information for the database I get this error:Cannot access the database: Connection refused (ip_address).
We have mariadb on the server we are trying to get MediaWiki working on. I have created a database and am using the name of that database to configure MediaWiki with. I have also tried creating user accounts in the different ways that I have seen. Such as:Check the host, username and password and try again.
my_wiki | %
| | my_wiki@% | %
Nothing I try seems to work.|
| wiki | ip_address |
Can anyone help me figure why I am having such an issue connecting? 2602:306:BC83:3AA0:59:8AA1:6C64:7418 (talk) 13:19, 17 June 2017 (UTC)
- This is on Ubuntu Server 16.04. 2602:306:BC83:3AA0:59:8AA1:6C64:7418 (talk) 13:21, 17 June 2017 (UTC)
- try connecting to the mariadb server through command line (using the "mysql" command) with the user you're trying to use to install the database of the wiki. Example:
- mysql -u rootuser -p
- Once you've succeeded, check if mariadb is listening to a specific network port, or if network is not enabled and you should connect through a Unix socket (that's usually set in the my.cnf configuration file). Then fill the database server address accordingly (127.0.0.1 for network-enabled mariadb on default port, localhost for unix socket, or even localhost:/path/to/mariadb/socket if PHP can't find the socket). Ciencia Al Poder (talk) 14:40, 17 June 2017 (UTC)
- @Ciencia Al Poder
- Thank you for replying! It looks like mysql is trying to connect by Localhost via UNIX socket. At least that's what I see when I do status in mysql.
- When I go to the mediawiki config page for the database, would I put that or do I need to change something in my.cnf to make sure that it is connecting to the outside?
- I just want to make sure I am setting this up correctly. 2602:306:BC83:3AA0:59:8AA1:6C64:7418 (talk) 15:15, 17 June 2017 (UTC)
- Oh, I wanted to add, our server is being hosted by digitalocean. I don't know if that makes a difference or not. 2602:306:BC83:3AA0:59:8AA1:6C64:7418 (talk) 16:25, 17 June 2017 (UTC)
- If mariadb is using unix socket, MediaWiki can only connect to it if they're both on the same machine. You should specify "localhost:" followed by the path of the unix socket on the "server" field. If mariadb is on a remote server, you'll need to configure it to listen to TCP connections, and be sure there's no firewall filtering the connections. Ciencia Al Poder (talk) 16:41, 17 June 2017 (UTC)
- Ok. I found something that the port to allow remote connections is 3306/tcp.
- Does that sound correct to you, or should I keep looking for another port to open? 2602:306:BC83:3AA0:59:8AA1:6C64:7418 (talk) 18:37, 18 June 2017 (UTC)
- 3306 is the default port for mariadb. Use 127.0.0.1:3306 (or the server's IP if it's not on the same machine as MediaWiki) as the host name of the mariadb server on the MediaWiki installation. Ciencia Al Poder (talk) 18:50, 18 June 2017 (UTC)
- I added 3306 to my server's ip address.
- I still get the connect refused error.
- I am very confused as to why this still won't work. The database name and database username are one's that I have created. If I put the command in mysql to see the databases and users they are there. 2602:306:BC83:3AA0:59:8AA1:6C64:7418 (talk) 19:03, 18 June 2017 (UTC)
- Check your network connectivity between MediaWiki and mariadb. On linux, you can use netcat to test if you can reach a remote IP with a given port. You can even use telnet to test that
- Also, there may be restrictions in PHP to do remote connections. This is most likely if the server has SELinux or AppArmor enabled, disable them to test and configure them correctly after confirming it was the problem. Ciencia Al Poder (talk) 19:13, 18 June 2017 (UTC)
- netcat said that the IP address of the server could not be reached as well.
- I stopped apparmor. When I look in `systemctl status apparmor` it says that apparmor is inactive. When I try netcat again and even attempting to just put all the information in the mediawiki config page again, I get a connection refused error.
- If I try to completely disable apparmor I get this
apparmor.service is not a native service, redirecting to systemd-sysv-install
- Executing /lib/systemd/systemd-sysv-install disable apparmor
- insserv: warning: current start runlevel(s) (empty) of script `apparmor' overrides LSB defaults (S).
- insserv: warning: current stop runlevel(s) (S) of script `apparmor' overrides LSB defaults (empty).
- insserv: warning: current start runlevel(s) (empty) of script `apparmor' overrides LSB defaults (S).
- insserv: warning: current stop runlevel(s) (S) of script `apparmor' overrides LSB defaults (empty).
- 2602:306:BC83:3AA0:59:8AA1:6C64:7418 (talk) 19:44, 18 June 2017 (UTC)
- You seem to have network problems not related to MediaWiki. Try contacting your network administrator? Ciencia Al Poder (talk) 19:47, 18 June 2017 (UTC)
- Hmm, thank you for all you're help.
- I am not sure why we are having this issue. I am technically part of the network administration team, the company I work for is a startup with a small team.
- I might just start over with this server and use digitalocean's one-click install for mediawiki and hope to works better.
- Thank you again for your help. 2602:306:BC83:3AA0:59:8AA1:6C64:7418 (talk) 20:04, 18 June 2017 (UTC)
- That's probably a good idea if it works. I hope they don't offer an ancient outdated MediaWiki version. Ciencia Al Poder (talk) 20:24, 18 June 2017 (UTC)
- I hope not either.
- It's MediaWiki on 14.04 it looks like. 2602:306:BC83:3AA0:59:8AA1:6C64:7418 (talk) 21:23, 18 June 2017 (UTC)
- That's not right, we're only up to 1.30 MacFan4000 (talk) 00:06, 19 June 2017 (UTC)
- Ubuntu Server 14.04. Sorry if that was confusing.
- Would you know how to tell what version mediawiki is? 2602:306:BC83:3AA0:59:8AA1:6C64:7418 (talk) 01:49, 19 June 2017 (UTC)
- the Special:Version page. If you start the installer, it should give you also the MediaWiki version being installed. Ciencia Al Poder (talk) 09:34, 19 June 2017 (UTC)
- Well, I had it working! Yay!
- I didn't do anything with it for a couple of hours and I tried to log in to my account and now my wiki just says the connection has timed out. Like it worked before I tried signing in, and now it does not work.
- Anyone know why this is happening?
- I have port 3306 allowed through ufw. I used let's encrypt to add an ssl certificate to the site earlier as well, and I have port 443 allow. I also have nextcloud setup on this server and I can navigate to that without having the page time out, but mediawiki has stopped working. 2602:306:BC83:3AA0:59:8AA1:6C64:7418 (talk) 23:58, 19 June 2017 (UTC)
- If you get a MediaWiki blank page with the logo and the error "the connection has timed out", it's database related and the connection between mediawiki and mariadb is failing (mariadb server is down or a firewall is blocking connections).
- If the error is from the browser, the problem is in the webserver. Ciencia Al Poder (talk) 09:41, 20 June 2017 (UTC)
- I was an issue with the firewall. Port 80 was not allowed and for whatever reason, mediawiki only decided after a few hours that it didn't recognize the port wasn't open. 2602:306:BC83:3AA0:59:8AA1:6C64:7418 (talk) 16:24, 20 June 2017 (UTC)
Search in semantic wiki's page properties
Hi
I need an advanced search page which be able to search in semantic wiki's page properties.
for example if I have pages with a property named "release date" i want to be able to search pages with "release date" between a date range & ...
How can I have such a feature? is there an extension for it? 2.190.77.209 (talk) 15:50, 17 June 2017 (UTC)
My problem isn't fixed
The following discussion is closed. Please do not modify it. Subsequent comments should be made on the appropriate discussion page. No further edits should be made to this discussion.
I think that my complaint yesterday was erroneously marked as fixed. I still cannot upload anything to my wiki.
https://anjuna.miraheze.org/wiki/Special:Upload Anjuna (talk) 01:13, 18 June 2017 (UTC)
- Continuing from Project:Support desk/Flow/2017/06#h-The_upload_mechanism_doesn't_work-2017-06-17T00:40:00.000Z.
- This support desk is for the MediaWiki software, not the Miraheze Wiki farm. You should instead make your query at Miraheze's support like:
Images
The following discussion is closed. Please do not modify it. Subsequent comments should be made on the appropriate discussion page. No further edits should be made to this discussion.
The image on this page keeps overextending beyond the screen when I set it to framed. How can I stop this? I want it to be framed.
https://anjuna.miraheze.org/wiki/Bart_Claessen Anjuna (talk) 03:34, 18 June 2017 (UTC)
framedoesn't respect size, it will display the image at its original size. See Help:Images#Size and frame. You probably want to usethumbinstead Ciencia Al Poder (talk) 18:37, 18 June 2017 (UTC)
Buttons in Wiki page
Hello,
I have two problems:
1) I need to insert in a wiki page some buttons;
2) I would like to improove the shape of these buttons with 3d effects.
Thank you in advance. Ardial (talk) 07:05, 18 June 2017 (UTC)
Problem with my account
The following discussion is closed. Please do not modify it. Subsequent comments should be made on the appropriate discussion page. No further edits should be made to this discussion.
- I use to have the user name kg4gsn, however my email address has changed and I am no longer able to reset the password. My old email address was ve5gsn@sasktel.net, my new email is listed on this account. Please advise if I can move all my edits and watchlist over to this account.
- Thanks. Va7gsn (talk) 07:26, 18 June 2017 (UTC)
- Special:ChangeEmail allows to change your email address. This is linked from Special:Preferences. If you want to merge accounts on Wikimedia sites, see https://meta.wikimedia.org/wiki/Steward_requests/Username_changes#Requests_involving_merges.2C_usurps_or_other_complications AKlapper (WMF) (talk) 10:23, 19 June 2017 (UTC)
Va7gsn (talk) 07:28, 18 June 2017 (UTC)
problems with my server
The following discussion is closed. Please do not modify it. Subsequent comments should be made on the appropriate discussion page. No further edits should be made to this discussion.
I'm using mediawiki 1.28.2, php 5.6 mariadb 10.1.13. Every time I connect to the site, error shows up and unable to connect.
When I connect to my wiki, this message shows up:
Fatal Error: Call to a member function getCode() on null in /home/evanswiki/public_html/includes/user/User.php on line 1538
or
Warning: mysqli::query(): MySQL server has gone away in /home/evanswiki/public_html/includes/libs/rdbms/database/DatabaseMysqli.php on line 42
Warning: mysqli::query(): Error reading result set's header in /home/evanswiki/public_html/includes/libs/rdbms/database/DatabaseMysqli.php on line 42
Warning: Error while sending QUERY packet. PID=17226 in /home/evanswiki/public_html/includes/libs/rdbms/database/DatabaseMysqli.php on line 42
MediaWiki internal error.
Exception caught inside exception handler.
Set $wgShowExceptionDetails = true; and $wgShowDBErrorBacktrace = true; at the bottom of LocalSettings.php to show detailed debugging information
sometimes main page shows up but I can't search and see other documents.
When I try searching, this message shows up:
Warning: Error while sending QUERY packet. PID=32699 in /home/evanswiki/public_html/includes/libs/rdbms/database/DatabaseMysqli.php on line 42
What's going on my server?
URL is http://evanswiki.maru.net/ Guswogjs499 (talk) 11:29, 18 June 2017 (UTC)
- The problem is in mysql. Maybe you're on a cheap hosting that limits mysql connections to an extremely low rate? Ciencia Al Poder (talk) 18:30, 18 June 2017 (UTC)
API blockinfo query for IP editors returns "invalid"
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 exact query I stumbled on is [3] but the example from API:Users is similar.
Behavior I expected: query returns the block information for the user (block date, reason, expiry time etc.) if user is currently blocked. (12.54.29.3 is blocked on en-wp.) This is what happens with a logged-in user (see e.g. https://en.wikipedia.org/w/api.php?action=query&list=users&ususers=Dananadan&usprop=blockinfo).
Real behavior: The query returns an "invalid" field and does not display the block info.
EDIT : example output
{ "batchcomplete": "", "query": { "users": [ { "name": "12.54.29.3", "invalid": "" } ] } }
Is this normal/desired? If so, how can one recover the block info for an IP editor on en-wp? Tigraan (talk) 19:25, 18 June 2017 (UTC)
- From https://en.wikipedia.org/wiki/Special:Version, the Mediawiki version is 1.30.0-wmf.5 (2802709)
- EDIT : tested from a different computer with a different browser (Chrome instead of Firefox). Same thing happens. Tigraan (talk) 19:28, 18 June 2017 (UTC)
- It works for me. Maybe if the user doing the request is blocked, it doesn't have permissions to display the block information? (which I find weird) Ciencia Al Poder (talk) 09:37, 19 June 2017 (UTC)
- @Tigraan API:Users doesn't seem to support getting info for IP addresses. However, you can get block info for an IP address via API:Blocks. Here's the latest block entry for the IP you specified: https://en.wikipedia.org/w/api.php?action=query&list=blocks&bkip=12.54.29.3 Jtmorgan (talk) 20:37, 19 June 2017 (UTC)
MW auto install
Hello,
I have a problem when im trying to install automatically mw 1.23.17 but actually, I dont know really how to do step by step and I did not find any exhaustive doc on that. First of all, is it possible ? I mean how to install MW automatically till the end. When you connect with your browser, you should not have any config to set (database account, mw name, database type etc.....). Haroun al Mouwahid (talk) 12:54, 19 June 2017 (UTC)
- I can't install a version more recent because it required a php version that I can't install for the time being.
- DB Type : Postgres
- Postgres : 9.4.0
- PHP : 5.4.20
- php-pgsql : 5.4.34
- Here is my command :
- # cd /srv/mediawiki
- # php maintenance/install.php --dbname wikidb --dbschema mediawiki --dbserver localhost --dbtype postgres --dbuser wikiuser --dbpass wikipass --installdbuser wikiuser --installdbpass wikipass --pass toto1234 --scriptpath /mediawiki mywiki WikiSysop
- PHP 5.4.20 is installed.
- Warning: Could not find APC, XCache or WinCache.
- Object caching is not enabled.
- Found GD graphics library built-in. Image thumbnailing will be enabled if you enable uploads.
- Git version control software not found.
- Using server URL "/mediawiki".
- Warning: Your default directory for uploads (/srv/mediawiki/images/) is not checked for vulnerability to arbitrary script execution during the CLI install.
- Using the intl PECL extension for Unicode normalization.
- The environment has been checked.
- You can install MediaWiki.
- Setting up database
- PHP Fatal error: Class 'Database' not found in /srv/mediawiki/includes/installer/PostgresInstaller.php on line 161. Haroun al Mouwahid (talk) 13:33, 19 June 2017 (UTC)
- And before all, I do that :
- sudo -u postgres psql -c "CREATE USER wikiuser with password 'wikipass';"
- sudo -u postgres psql -c "CREATE DATABASE wikidb ENCODING 'UTF8' OWNER wikiuser;"
- sudo -u postgres psql -c "alter database wikidb owner to wikiuser;" Haroun al Mouwahid (talk) 13:44, 19 June 2017 (UTC)
- MediaWiki 1.23 doesn't have a "Database" class, nor is there any attempt to create a Database class object. You most likely upgraded from an older version and you left old files behind that are causing conflicts. Please unpack MediaWiki 1.23 (or preferably a supported version) on a new and empty directory as explained in Manual:Upgrading Ciencia Al Poder (talk) 19:59, 19 June 2017 (UTC)
- Not at all, I don't have any older version of mediawiki installed. Im just trying to install MW 1.23 from scratch. But apparently it's not possible ? Haroun al Mouwahid (talk) 11:56, 20 June 2017 (UTC)
- I have a MediaWiki 1.23 installed and there's nothing in the code trying to instantiate a "Database" class, because on 1.23 it's called "DatabaseBase" instead. That's why I think you unpacked over old files.
- Another option may be that your linux distribution already contains a MediaWiki installation, with their files located somewhere, and being included in the include_path, conflicting with your installation. Ciencia Al Poder (talk) 17:40, 20 June 2017 (UTC)
- My OS does not have any other install of MW, Im trying to install from scratch. I put it in /srv/mediawiki :
- tar xvf /home/sagemuser/mediawiki-1.23.15.tar.gz -C /srv
- mv /srv/mediawiki-1.23.15 /srv/mediawiki
- Then I create the vhost /etc/httpd/extra/mediawiki.conf :
- Alias /mediawiki /srv/mediawiki
- <Directory /srv/mediawiki/>
- Options +FollowSymLinks
- AllowOverride All
- order allow,deny
- allow from all
- </Directory>
- <Directory /srv/mediawiki/config>
- Options -FollowSymLinks
- AllowOverride None
- </Directory>
- Then, I don't know if I have to prepare the database in posgres. If I do it, here is how I do
- sudo -u postgres psql -c "CREATE USER wikiuser with password 'wikipass';"
- sudo -u postgres psql -c "CREATE DATABASE wikidb ENCODING 'UTF8' OWNER wikiuser;"
- sudo -u postgres psql -c "ALTER DATABASE wikidb owner to wikiuser;"
- sudo -u postgres psql -c "CREATE SCHEMA mediawiki;"
- sudo -u postgres psql -c "ALTER SCHEMA mediawiki OWNER TO wikiuser;"
- sudo -u postgres psql -c "GRANT ALL ON SCHEMA mediawiki TO wikiuser;"
- Then, I open the URL https://my-server/mediawiki
- Page 1
- LocalSettings.php not found
- Please complete the installation and download LocalSettings.php.
- Page 2 : Language (mediawiki/mw-config/index.php)
- English
- Page 3 : Welcome (mediawiki/mw-config/index.php?page=Welcome)
- Welcome to MediaWiki!
- [..]
- The environment has been checked. You can install MediaWiki.
- [..]
- I click on Continue
- Page 4 : Connect to database (mediawiki/mw-config/index.php?page=DBConnect)
- Database type: PostgreSQL
- Database host: localhost
- Database name: wikidb
- Schema for MediaWiki: mediawiki
- Database username: postgres
- Database password: toto
- I click on Continue
- I get a white page....
- Im sure of the postgres password, if I do sudo -u postgres psql -U postgres -W, it's working. Haroun al Mouwahid (talk) 09:50, 21 June 2017 (UTC)
- Nobody can help me ? :/ Haroun al Mouwahid (talk) 13:26, 21 June 2017 (UTC)
- No one ? Haroun al Mouwahid (talk) 22:13, 23 June 2017 (UTC)
font
The following discussion is closed. Please do not modify it. Subsequent comments should be made on the appropriate discussion page. No further edits should be made to this discussion.
how do i remove itals 62.253.57.186 (talk) 13:12, 19 June 2017 (UTC)
- You can put your styles on the wiki page MediaWiki:Common.css in your wiki! 2003:72:6D19:FE00:ED7D:A67F:2D6B:CF52 (talk) 16:49, 19 June 2017 (UTC)
mass replace
Hiya. Is there a way to mass-replace instances that are equal to the page title within the articles itself en masse? For example, what I want is replacing anything written as <Earth Bound> inside the article with the same name with the magic word {{PAGENAME}}. I know pywikibot can do exactly that, but I can't figure for the life of me how to use it... maybe something simpler? 188.24.55.66 (talk) 19:47, 19 June 2017 (UTC)
- Try Extension:Replacetext Ciencia Al Poder (talk) 19:50, 19 June 2017 (UTC)
- And what would I need to use to make those edits? Since the edits are not going to be similar to one another. The only common thing all have is that all articles end with the same word. Other than that, I would like for the script to replace the exact phrase in the article that matches the title of the article with {{PAGENAME}}. 188.24.55.66 (talk) 20:17, 19 June 2017 (UTC)
- For example, all articles end in Bound. But all articles have different starting words, i.e. Earth, Sky, Ocean etc. And I would like for the script to find all instances of Earth Bound inside Earth Bound, Sky Bound inside Sky Bound etc. and replace them with that magic word. 188.24.55.66 (talk) 20:19, 19 June 2017 (UTC)
- Ah, I misinterpreted your original needs. Well, that's too complex for Extension:Replace text and would require a custom replace bot for Pywikibot. Ciencia Al Poder (talk) 09:32, 20 June 2017 (UTC)
- I see. Thanks anyway. 188.24.55.66 (talk) 12:17, 20 June 2017 (UTC)
- I know this thread is very old, but this is actually something I needed to do and I figured a workaround of my own. You need to use AutomatedWikiBrowser for this.
- 1. Open AWB, go to find and replace (normal or advanced settings) and check the 'Regex' tickbox.
- 2. Then, in the search field, use:
(.*?) Bound
- replace:
- {{PAGENAME}}
- Your only issue here is that it will replace ALL instances of Bound + preceding word to {{PAGENAME}} so maybe you want to use AWB in manual mode and not bot mode (aka don't check 'Auto save'). │Star-Warden│ 13:58, 2 November 2018 (UTC)
Empty wiki page when using bot to upload XML, not empty when manually using Special:Import
The following discussion is closed. Please do not modify it. Subsequent comments should be made on the appropriate discussion page. No further edits should be made to this discussion.
Hello,
I have a weird problem when using a bot to upload an XML to a private Wiki.
I'm using a powershell script to generate an XML file, which then is uploaded to a private Wiki by a bot. The XML itself should be valid, because I can manually use Special:Import to import said XML to the Wiki without problems. The problem however arises when I try to use a bot to do the same thing. The bot logins normally, acquires login and import tokens and uses multipart/formdata that it uses to upload the content. Everything seems to be fine and the object acquired through Invoke-WebRequest returns the title as a result, as it should - which indicates a success.
However, the resulting wikipage that is generated is completely empty. There's no data and the revision history shows (empty) import. I can't figure out what I'm doing wrong... And the weird part is that when using Special:Import for the same XML, it uploads completely without problems and data is generated on the wikipage.
Can I get some help for this? Thanks. 193.64.242.250 (talk) 13:05, 20 June 2017 (UTC)
- So are you using API:Import from the power shell script? I wonder if it may be a bug in the api endpoint Ciencia Al Poder (talk) 09:11, 21 June 2017 (UTC)
- Yes I'm using that exactly. 193.64.242.250 (talk) 14:04, 21 June 2017 (UTC)
- You can see if it works using Special:Import (sniffing from the page what parameters you need to pass). If it works, then the problem is with the api and you should bugreport that, including what MediaWiki version are you using. Ciencia Al Poder (talk) 20:42, 21 June 2017 (UTC)
Can't create account
The following discussion is closed. Please do not modify it. Subsequent comments should be made on the appropriate discussion page. No further edits should be made to this discussion.
Hi, it says I've already tried to create an account, but if I did it was years ago and I never received any communication about it. How do I clear my history so I can create an account now? 47.149.0.243 (talk) 00:17, 21 June 2017 (UTC)
- Can you give the exact error message, and for which wiki you're getting this? Note that if the username you're trying to use is already registered, you'll need to register a different username. It may be already taken by someone else. Ciencia Al Poder (talk) 09:19, 21 June 2017 (UTC)
Subscribe to the hooks of remote wikis
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 thinking about creating a bot for Discord that would show the recent changes of certain MediaWiki based wikis and I want to know is it possible to subscribe to the hooks of remote wikis? Such as the PageContentSaveComplete hook or the ArticleDeleteComplete hook etc. Tribly (talk) 05:26, 21 June 2017 (UTC)
- Hooks can be used only by skins and extensions loaded in MediaWiki code, you can't access them from outside MediaWiki.
- You can configure MediaWiki to send recent changes to a remote server with Manual:$wgRCEngines and Manual:$wgRCFeeds. Ciencia Al Poder (talk) 09:18, 21 June 2017 (UTC)
- I see. I thought there might be a way to push the recent changes and actions logs to a bot without modifiying anything in the wikis in question, but from what you say it seems there is no way to do that. :/ The reason I wanted to do this is so the bot could be used with Wikia, Gamepedia, ShoutWiki wikis as well where you can't modify the configuration files of your wiki or install extensions. Tribly (talk) 12:17, 21 June 2017 (UTC)
Bulk Delete Files From 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 there guys,
MW 1.27.2
I noticed there are few extensions to bulk upload files to Mediawiki installation.
Currently, I have been trying to do the opposite. And I'd like to be able to bulk delete files with specific file extensions.
For example, in my case, I want to mass delete all files with extension .mp3 which I had uploaded in our Mediawiki (once upon a time) in the past. There are over a few thousand .mp3 files which I have to delete and since I used $wgHashedUploadDirectory, these files are spread across various sub-directories on the server.
So my question is...
Is there a MediaWiki maintenance script or a specific Mediawiki plugin which allows to batch delete files that have been uploaded to a wiki? (I searched a lot but couldn't find a single one... which is why I'm asking you guys here)
Also, If there is no such plugin or script to automate this task, what would be the manual way to delete all the files cleanly from both the database and the webserver?
~ Arnab Arnab vani (talk) 09:31, 21 June 2017 (UTC)
- Hey guys... Any ideas or advice on how to deal with this?
- ~ arnab Arnab vani (talk) 06:26, 22 June 2017 (UTC)
- You can use deleteBatch.php Ciencia Al Poder (talk) 09:14, 22 June 2017 (UTC)
- Okay, awesome this worked like charm. Thanks @Ciencia Al Poderfor taking the time to help me out here. Arnab vani (talk) 10:08, 27 June 2017 (UTC)
Please help with the translating with Extension:Scribunto/Lua reference manual
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 <translate>s and <!--T:*-->s may be broken. See Extension:Scribunto/Lua reference manual/zh, the content that is not translated is not able to be translated. I try to change the en page but not succeed. How to make all the content of Extension:Scribunto/Lua reference manual translatable? SolidBlock (talk) 12:41, 21 June 2017 (UTC)
- The latest version was not marked for Translation so I marked it. MacFan4000 (talk) 21:53, 21 June 2017 (UTC)
Defining "nowrap" in tables
How can I define that contents of tables don´t wrap, so that it´s valid for all of the tables? Is it possible to define that only links (or special formats) don´t wrap? Blumenfuchs (talk) 12:59, 21 June 2017 (UTC)
Templates
The following discussion is closed. Please do not modify it. Subsequent comments should be made on the appropriate discussion page. No further edits should be made to this discussion.
I need a new address label template??
2" x 2'' 5/8 2604:2000:2681:8C00:BD62:4971:ACA2:3E02 (talk) 13:53, 21 June 2017 (UTC)
integrate an external authentication with MW.
I am try to integrate an external authentication with MW. I've a external login script that writes some variable in the $_SESSION and redirects to MW.
In MW I want to be able to read these variables to check if the user is authenticated and pass them to a sessionProvider (in my case I was trying to use Auth_remoteuser extension).
How can I easily read $_SESSION? If I try to session_start() everything brakes; 007r (talk) 14:44, 21 June 2017 (UTC)
Search Special:Contributions with byte size
I am trying to fix some problems at an wiki, but I want to view contributions that go above a certain size limit (plus or minus 10 bytes). How would I do that? PokestarFan (talk) 18:41, 21 June 2017 (UTC)
VirtualEditor
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 all. I am not a software programmer or a web designer.. I have a basic wiki running for my company and every time I try to set up an extension like PDFHandler or now Visual Editor and each time i follow the directions only to get errors. Clearly these setups are designed for people who do this stuff regularly. Now I am getting an error VisualEditorHooks::onBeforePageDisplay.... and SkinTemplateNavigation... and onResourceLoaderRegisterModules... and all refer to Hooks.php... is there someone i can pay to remote in and make this stuff work? Thank you Olds98 (talk) 23:41, 21 June 2017 (UTC)
- If you're interested in professional consulting, look at Professional development and consulting.
- Visual Editor is rather complex to setup, and latest version usually works only with latest MediaWiki version, which is probably the hook errors you're getting, because there are lots of hook changes to add new features for Visual Editor Ciencia Al Poder (talk) 09:16, 22 June 2017 (UTC)
How to delete registered 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 use a mediawiki on a local intranet as admin.
I can't find a way to delete users from the userlist who no longer use this mediawiki?
It's possible to block these users but they stil can enter the site.
Someone here who can help me with this? Mrnoname019 (talk) 06:39, 22 June 2017 (UTC)
- You may be interested in using Extension:DisableAccount Ciencia Al Poder (talk) 09:12, 22 June 2017 (UTC)
Log-in 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 am trying to log in as Крепкий чай, which used to be my main identity for creating and editing wikipedia pages. I haven't logged in for ages, but remember (I am fairly certain) the password - however it isn't letting me log in - I get this message, which I do not understand
Central user log in
No active login attempt is in progress for your session.
Please advise what I can do to log in once again as Крепкий чай. Thanks. Stitchill Stitchill (talk) 20:09, 22 June 2017 (UTC)
- PS - I am still able to log in and out as Stitchill. Stitchill (talk) 20:11, 22 June 2017 (UTC)
- Please advise. Again this morning I have attempted to log in and work under my old username Крепкий чай, but there still seem to be problems of access which I don't understand. The last edit I made as that user, on the page I wish to contribute further to now, was in January 2016. @Stitchill Stitchill (talk) 14:32, 23 June 2017 (UTC)
- Open a bugreport for it, using your Stitchill account you can login to phabricator to report this. Ciencia Al Poder (talk) 13:19, 24 June 2017 (UTC)
- I also have an issue when I try to login with my account Xenlaurent. I didn't use it for ages, too.
- But since the 19th of June when I try to log in, I get either:
- a message «No active login attempt is in progress for your session.»
- or I get logged in and then when I click on any page, the header shows again «Not logged in»
- I try on several site (en.wikipedia.org, fr.wikipedia.org, mediawiki.org) with several browser (FireFox, IE even FireFox on Android) same behavior.
- Does anyone have a clue? 217.111.201.70 (talk) 12:43, 28 June 2017 (UTC)
- I created a new account (xentest) and log in works without any issue with that one. And if I log out and try back with xenlaurent, it still fails.
- I presume that there is something wrong with my account.
- BTW, I found similar behavior here: https://phabricator.wikimedia.org/T168858 Xentest (talk) 13:28, 28 June 2017 (UTC)
- This is an existent upstream issue, nothing can be done to fix it unless upstream does. Reception123 (talk) 18:43, 28 June 2017 (UTC)
Links to TranslateWiki.net fails for some repos
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 seems like a lot of extensions on GitHub have failing links to TranslateWiki. These links should be something like mwgithub-something, but are ext-something. Extensions with this problem can be found in Category:Extensions in GitHub version control, and it seems to be several of them. The extension where I first saw this problem was Extension:Pickle.
Could anyone fix this? Jeblad (talk) 21:39, 22 June 2017 (UTC)
- Fixed it for Extension:Pickle, but all extensions listed in the category should be checked. Jeblad (talk) 22:04, 22 June 2017 (UTC)
- It should be posted in Project:Current issues. If all extensions hosted on GitHub have that prefix, a bot could do that. Ciencia Al Poder (talk) 15:44, 24 June 2017 (UTC)
cant login
The following discussion is closed. Please do not modify it. Subsequent comments should be made on the appropriate discussion page. No further edits should be made to this discussion.
cant login 2602:301:777F:F860:574:C9E9:DBB7:52A (talk) 01:20, 23 June 2017 (UTC)
- Could you be more specific about your issue? │Star-Warden│ 13:10, 23 June 2017 (UTC)
Logging every page accessed v1.24.1
We have a project wiki that requires authentication to access any page other than the login page (already in place), we would like to log every page accessed by user. Extension:Access Log mentions it has that capability, I would be fine with just logging to a file.. any suggestions? 24.216.164.36 (talk) 04:31, 23 June 2017 (UTC)
Database error when trying delete page
The following discussion is closed. Please do not modify it. Subsequent comments should be made on the appropriate discussion page. No further edits should be made to this discussion.
I installed mediawiki 1.28.2 on a server Ubuntu 16.04 / Apache 2.4.18 / PHP 7.0 / MariaDB 10.0.29.
Everything work fine until I got an error message when trying delete page from my wiki.
Database error
A database query error has occurred. This may indicate a bug in the software.
[23f939656076e62453b3960b] 2017-06-23 04:49:43: Fatal exception of type "DBQueryError"
Picture : https://s29.postimg.org/58g05xytz/Screenshot_from_2017-06-23_13-02-29.png
How to fix this issue ? Thachakrit (talk) 06:13, 23 June 2017 (UTC)
- I just run php update.php on terminal. It works fine now. Thachakrit (talk) 07:18, 23 June 2017 (UTC)
Template which expands to 4 columns (Conditional Table)
The following discussion is closed. Please do not modify it. Subsequent comments should be made on the appropriate discussion page. No further edits should be made to this discussion.
Hey,
I`ve got problems building a template, which should be a table that expands up to 4 columns.
That´s the template-code:
<onlyinclude>{| class="wikitable"
|- {{#if: {{{Skills 1-4|}}} |
{{!}} Skills: {{!!}}
{{{Skills 1-4}}} {{!!}} {{{Skills 5-8}}} {{!!}} {{{Skills 9-12}}}
}}
|-
|}
Including it into a page, it would look like that:
{{NameofmyTemplate
|Skills 1-4=
|Skills 5-8=
|Skills 9-12=
}}
But the {{!!}} after {{{Skills 1-4}}} and {{{Skills 5-8}}} don´t work, I just get displayed pipes, but actually I wanted that the Skills 5-8 and will be shown in additional columns. I only get displayed the column "Skills" and a second column where the contents of Skills 1-4, Skills 5-8 and Skills 9-12 are displayed. The skills should be listed with bullet points, so I typed them in like
*1. Skill
*2. Skill
Could anybody tell me how I get more columns, but only if there´s content in Skills 5-8 or 9-12? Blumenfuchs (talk) 11:13, 23 June 2017 (UTC)
- Apparently, the newline after the line
{{!}} Skills: {{!!}}in your code is causing problems. Try the following: {| class="wikitable" |- {{#if: {{{Skills 1-4|}}} | {{!}} Skills: {{!!}} {{{Skills 1-4|}}} {{#if: {{{Skills 5-8|}}} | {{!!}} {{{Skills 5-8|}}} |}} {{#if: {{{Skills 9-12|}}} | {{!!}} {{{Skills 9-12|}}} |}} |}} |}Don't know yet how to get the bullet points included in the table, though.- Update: For bullet points you can use the following::
{| class="wikitable" |- {{#if: {{{Skills 1-4|}}} | {{!}} Skills: {{!!}} <li>{{{Skills 1-4|}}}</li> {{#if: {{{Skills 5-8|}}} | {{!!}} <li>{{{Skills 5-8|}}}</li> |}} {{#if: {{{Skills 9-12|}}} | {{!!}} <li>{{{Skills 9-12|}}}</li> |}} |}} |}- A practically exact copy of the above, but with better template page representation:
- AhmadF.Cheema (talk) 14:16, 23 June 2017 (UTC)
{| class="wikitable" |- {{#if: {{{Skills 1-4|<noinclude>a</noinclude>}}} | {{!}} Skills: {{!!}} <li>{{{Skills 1-4|<noinclude>Skill alpha</noinclude>}}}</li> {{#if: {{{Skills 5-8|<noinclude>b</noinclude>}}} | {{!!}} <li>{{{Skills 5-8|<noinclude>Skill beta</noinclude>}}}</li> |}} {{#if: {{{Skills 9-12|<noinclude>c</noinclude>}}} | {{!!}} <li>{{{Skills 9-12|<noinclude>Skill gamma</noinclude>}}}</li> |}} |}} |} - Thank you so much :) Blumenfuchs (talk) 13:14, 27 June 2017 (UTC)
Failed to parse Missing code
The following discussion is closed. Please do not modify it. Subsequent comments should be made on the appropriate discussion page. No further edits should be made to this discussion.
I am running Mediawiki on Windows and the math section which has links for Linear Regression are coming up with parsing errors. I am not sure how to trouble shoot this. I understand that this is using php. 50.59.126.67 (talk) 13:13, 23 June 2017 (UTC)
- Which MediaWiki version? What exact "parsing errors"? Malyacko (talk) 15:30, 25 June 2017 (UTC)
Math Module and texvc
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 Media Wiki installed on Windows Servers and the math modules aren't parsing correctly. I am not sure how to resolve this issue with php on windows. Failed to parse (Missing <code>texvc</code> executable. Rbizzell40 (talk) 14:02, 23 June 2017 (UTC)
- See Texvc#Windows. In short: Don't try to use texvc on windows. 120.144.27.95 (talk) 08:04, 24 June 2017 (UTC)
Vanessa Karpio
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.
Please help. I set up an account but I am not able to log in as the password appears not to be working. I am not able to email a new password as it is stating there is no email address set up with my account.
What can I do?
Thank you,
Vanessa 64.134.221.150 (talk) 07:23, 25 June 2017 (UTC)
- If the question is related to Wikimedia projects, see
- w:Help:Logging in#What if I forget the password.3F
- . Tropicalkitty (talk) 16:51, 25 June 2017 (UTC)
How to integrate statistic into wiki
Is there any popular statistic extension or software can easily intergate to mediawiki? Chan15tw (talk) 06:44, 26 June 2017 (UTC)
- Category:Statistics extensions
- Haven't come around to using any personally though. AhmadF.Cheema (talk) 16:39, 26 June 2017 (UTC)
- I am using Piwik and I have just used one of the hooks to get the default Piwik code put into my pages. 2003:72:6D15:D600:A56C:97DA:BF2A:84A9 (talk) 18:38, 26 June 2017 (UTC)
Getting message: Warning: [page-name] is calling Template:[template-name] with more than one value for the "" parameter. Only the last value provided will be used.
Since upgrading from 1.23.15 to 1.27.1 our wiki pages that use one of our templates are getting the above message when we preview an edit. Example: Warning: DP Official Documentation:General/wf-test-language is calling Template:Languages with more than one value for the "" parameter. Only the last value provided will be used.
MediaWiki level: 1.27.1 PHP: 5.5.9-1ubuntu4.21 (apache2handler) Database: MySQL 5.5.55-0ubuntu0.14.04.1
URL of wiki page that has this error: https://www.pgdp.org/wiki/DP_Official_Documentation:General/wf-test-language
The call to the Languages template looks like this:
{{Languages|Languages:|=
|en|{{NAMESPACE}}:General/Code of Conduct|=
|fr|{{NAMESPACE}}:General/French/Code de la Conduite|=
|es|{{NAMESPACE}}:General/Spanish/Código de Conducta|=
|de|{{NAMESPACE}}:General/German/Verhaltenskodex|=
}}
It uses a layout style suggested in https://meta.wikimedia.org/wiki/Special:MyLanguage/Help:Template#Template_tag_lay-out ending each line with |= to make the coding more legible to the page editor.
Since migrating to 1.27.1 that style results in the message shown above. To avoid the message we have to delete all the |= characters and collapse the template call onto one long line of wiki code. That makes it harder to maintain, so we would like to be able to use the formerly supported approach. Wf49670 (talk) 19:23, 26 June 2017 (UTC)
Filtering Entries in Categories
The following discussion is closed. Please do not modify it. Subsequent comments should be made on the appropriate discussion page. No further edits should be made to this discussion.
Hi there,
I'm using Semantic MediaWiki with the MediaWiki Language Extension Bundle to create a multilingual tools library for peacebuilders. Unfortunately, this has resulted in strange Category pages where each language of a tool is listed. (eg, "Apollo", "Apollo/ar", "Apollo/en", etc.) I'd like to have just one version of the tool listed but can't seem to figure out how to make it happen.
I have tried to modify the individual tool pages, but the Translate Extension doesn't allow me to modify translated pages through anything but the translation interface. I can't remove the "'[[Category:Tool]]" tag from individual tool pages because it is embedded within a template. Is it possible to modify the category pages so that they filter any page with a "/" in their name or duplicates of the same page?
Thanks,
Derek
| Product | Version |
|---|---|
| MediaWiki | 1.26.2 |
| PHP | 5.6.21 (fpm-fcgi) |
| MySQL | 5.6.30 |
| ICU | 52.1 |
- Unrelated: Note that you run an ancient, insecure, unsupported MediaWiki version. Please strongly consider upgrading for your own safety. Malyacko (talk) 12:35, 28 June 2017 (UTC)
Write Javascript Block Manual
Can someone help me to write java script blocking manual link to my pt-personal or pt-cactions Such as this can you fixed this
mw.util.addPortletLink(
'p-personal',
mw.util.getUrl("/wiki/Special:Block/" encodedTarget),
'Block',
'pt-blocklink',
'Menu Block',
null,
'#pt-watchlist'
)
Murbaut (talk) 09:25, 28 June 2017 (UTC)
[SOLVED] Converting in WikiText
The following discussion is closed. Please do not modify it. Subsequent comments should be made on the appropriate discussion page. No further edits should be made to this discussion.
Hi,
I'm trying to convert this table in wiki format but without success:
__NOTOC__ <table width="100%" height="100%"> <tr> <td width="50%" valign="top" align="left"> == Left Column == * Left Item 1 </td> <td width="50%" valign="top" align="left"> == Right Column == * Right Item 1 </td> </tr> </table>
Can anyone help me ? With the following code the second column does not stay aligned with the first one, any suggestion ?
{| width="100%"
| width="50%" |
== Left Column ==
* Items Left
| width="50%" |
== Right Column ==
* Items Right
|}
87.253.113.50 (talk) 10:49, 28 June 2017 (UTC)
- You may need valign="top" for your columns. Clump (talk) 11:52, 28 June 2017 (UTC)
- Solved!! Thank's bro! 87.253.113.50 (talk) 07:29, 30 June 2017 (UTC)
Mediawiki removes whitespace between headlines
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 everybody! I noticed a strange behavior and wonder if this is intentional or no. It drives me crazy!
For example, I have a small page with a few headlines like so:
= Headline 1 = Text for headline 1 == Headline 2 == Text for headline 2 == Headline 3 == Text for headline 3
Notice the double new line in front of each headline. This is meant to be this way, because then the headline will be much more visible. This may not be as important with headline levels 1 and 2 like in the example, but when you come down to headline level 3 and 4 they get harder to distinguish from plain bold text, so the added whitespace before each headline helps to improve readability.
OK, so this is how my mediawiki pages are structured. Now I go and edit the text for headline 2 with the neat symbol next to headline 2, which is very handy because it will only show the text for headline 2 in editor. However doing this, after saving the edited text, the whole page text source will be as follows:
= Headline 1 = Text for headline 1 == Headline 2 == Edited text for headline 2 == Headline 3 == Text for headline 3
Notice how the double new line in front of headline 3 was replaced with just a single new line. In effect, the whitespace before headline 3 has vanished. What is more, there seems to be no way to stop this from happening, because the headline 3 was not even part of the text in the editor, so the new lines could not have been adjusted by user neither. This seems to be mediawiki deciding on its own.
The only known workaround for me is to think about never editing only text for headline 2. However that way, I need to scroll in editor, find headline 2 again, before I can start editing. This can be very cumbersome, when more text and headlines are present than in the example above. Also all editors need to think about it for every edit, otherwise this effect happens again, destroying the whitespace for all users, so it is not really viable.
Please let me know if this was intentional behavior following a conscious decision by mediawiki developers or just a minor glitch which nobody seems to have cared for just yet. Thank you and best regards Kebap (talk) 13:01, 28 June 2017 (UTC)
- Not sure if this was a conscious decision or not, but in case you didn't know, new lines can be added by specifically including the code for new lines :
<br />AhmadF.Cheema (talk) 14:22, 28 June 2017 (UTC) - I would interpret it as a wikimedia error.
- However, if you want spacing around your headlines, perhaps a better way than manually inserting space would be to add the required spacing through css, either as a margin or padding property; e.g.,:
.mw-body h2, .mw-body h3, .mw-body h4 {padding-top:1em;}Clump (talk) 21:55, 28 June 2017 (UTC)- Thanks for mentioning CSS spacing, this may be a worthwile idea as well.
- How can I report the wikimedia error for it be fixed at some point in time? Kebap (talk) 14:45, 30 June 2017 (UTC)
- How to report a bug
- Note that trailing newlines are discarded in page edits, so maybe this is intended, as a uniform application of that behaviour in section editing. Clump (talk) 16:45, 30 June 2017 (UTC)
- If you really want to add more space before each heading, for all pages, use CSS for that so it's applied in all pages and you won't need to edit each page individually adding newlines. Ciencia Al Poder (talk) 18:14, 4 July 2017 (UTC)
Can ImageMagick convert images already uploaded?
The following discussion is closed. Please do not modify it. Subsequent comments should be made on the appropriate discussion page. No further edits should be made to this discussion.
We're running into storage limitations on our installation, due to the number of pictures uploaded. I have figured out how to have images resized on upload, but what about my images already uploaded? For instance, can I convert already uploaded .PNG to .JPG? Can I scale images larger than say 1200x720 scaled down to fit this size (or smaller)?
Thanks!
MediaWiki 1.27.0
PHP5.6.21 (cgi-fcgi)
MySQL 5.6.34 Canrush (talk) 02:43, 29 June 2017 (UTC)
- Do you mean convert the original files? You'll need to do that manually and reuploading them again (as a new version of a file, or under a different name in case of PNG->JPG conversion), because MediaWiki stores metadata of each file in the database, such as image format and file size, and modifications on original files would otherwise cause display issues. Ciencia Al Poder (talk) 18:24, 4 July 2017 (UTC)
Error code: -1
The following discussion is closed. Please do not modify it. Subsequent comments should be made on the appropriate discussion page. No further edits should be made to this discussion.
Hi all !
I've a problem when I upload an image on my mediawiki, the sending goes well but if I try to show that image with a resizing in parameter, it shows me this message :
"Erreur lors de la création de la miniature :
Error code: -1"
Does anyone know why ?
Edit : If you want to see an image with this problem : http://gce-electronics.com/wiki/index.php?title=Fichier:EcoDevice-RT2_Dashboard-Poste_1.png Roideseaux (talk) 14:24, 29 June 2017 (UTC)
- As a starting point see Project:Support desk/Flow/2016/07#h-Error_creating_thumbnail-2016-07-31T20:02:00.000Z. AhmadF.Cheema (talk) 16:59, 29 June 2017 (UTC)
Mobile view
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!
On en:Wikiversity, Main Page, the Mobile view link at the bottom of the page only shows the Main Page top image and blue-bannered Welcome section! All the others below are not shown! What can we do or you do to have the lower bannered sections appear on '''Mobile view'''? --Marshallsumter (talk) 15:13, 29 June 2017 (UTC)
- When you take a look at the source code for the Main Page, you will find the tag ids "mf-" being used. These tags allow Wikis to serve entirely different main pages to mobile users. This is done by marking certain elements for display with id attributes "mf-" or "mp-". When an element is marked in this way it will be shown and all other elements will be hidden.
- The straightforward way would be to add this tag to the other elements too. But this is likely to cause weird unintended styling behaviour which will need to be fixed. Probably the reason why it hasn't already been done.
- Note that the use of these tags is deprecated (T32405). Alternate ways should be used for mobile versions of the main page. Take the example of how this is done on Wikidata.
- Additionally, an alternative method by using class "nomobile" is also available. See Mobile Gateway/Mobile homepage formatting. AhmadF.Cheema (talk) 16:57, 29 June 2017 (UTC)
Improve the search
The following discussion is closed. Please do not modify it. Subsequent comments should be made on the appropriate discussion page. No further edits should be made to this discussion.
For example, I have the word "number". I need it to return me "number" even if I type "umber".
I went through the file "SearchMySQL.php" but I could not.
Is there any way to do this? Analistacavanha (talk) 20:11, 29 June 2017 (UTC)
- Extension:CirrusSearch is supposed to do something similar.
- From Help:CirrusSearch: "Search results will often be accompanied by various preliminary reports. These include Did you mean (spelling correction), and, when no results would otherwise be found it will say Showing results for (query correction) and search instead for (your query)." AhmadF.Cheema (talk) 10:02, 30 June 2017 (UTC)
Table won't end, headlines included
The following discussion is closed. Please do not modify it. Subsequent comments should be made on the appropriate discussion page. No further edits should be made to this discussion.
For example, in this page http://wiki.mudlet.org/w/Manual:Migrating#Notes_to_be_aware_of for some strange reason, with the last edits done, now more than half of the headlines are INSIDE a table. If I remove the last line of the table before that happening, the headlines go back to normal. Still that line seems like every other line in the table. What am I missing here? Thanks! Kebap (talk) 22:31, 29 June 2017 (UTC)
- The characters,
<time in s>are the problem. - MediaWiki is interpreting it as a tag, if it is indeed a tag then close it (
</time>) or if it is to be shown as plain text, then use the "nowiki" tags as you have done in other places. AhmadF.Cheema (talk) 09:43, 30 June 2017 (UTC)
API:Feedrecentchanges strange behavior
API:Feedrecentchanges behaves differently and I don't know how to configure. See here for some examples. For some entrys, a whole diff-log is shown in summary, for others* only a link to review changes. In both cases, the entry summary starts with the short summary line as well. I would like to only see the summary line, and definitively no diff-log. How can I configure this?
* An example for a short entry without the whole diff-log can be found with title "Manual:Mapper Functions" updated on "2017-06-30T09:11:57Z" Kebap (talk) 14:42, 30 June 2017 (UTC)