Project:Support desk/Flow/2013/10
| This page is an archive. |
| Please ask questions on the current support desk. |
| This page used the LiquidThreads 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. |
How to contact an administrator
A got a thing telling me to contact an administrator, however the email this user funtion doesn't work, and I don't want to put it on a page. Is there a way to find other users email addresses? If so, how do you do it?
The wiki is version 1.20.2 Kyle 44 (talk) 03:35, 1 October 2013 (UTC)
- You can use Special:Emailuser on the wiki if email functions are enabled on the wiki, and if both you and the other person have a valid email address in preferences and have "Enable email from other users".
- If the admin doesn't have a valid email or doesn't allow the reception of emails from other users, ask in his/her talk page to enable it so you can contact him/her Ciencia Al Poder (talk) 09:33, 1 October 2013 (UTC)
- The "email this user" isn't working, and I don't want to discuss it on their talk page. Is there a way to find the email addresses of users with valid email addresses? Kyle 44 (talk) 21:29, 1 October 2013 (UTC)
- No, there isn't any access to the user's email. You might try using WHOIS to find the domain's owner, but that may not be who you are looking for. ☠MarkAHershberger☢(talk)☣ 04:16, 2 October 2013 (UTC)
- The "email this user" isn't working, and I don't want to discuss it on their talk page. Is there a way to find the email addresses of users with valid email addresses? Kyle 44 (talk) 21:29, 1 October 2013 (UTC)
[RESOLVED] remove pages from navigation bar
Hi! I need some help. I want to remove (or hide) the "Current events" and the "Random page" from the navigation bar on the left. How can I do that? I deleted this code lines from the Commmon.css and common.js but the pages are still there. Thank you! 46.251.31.104 (talk) 09:06, 1 October 2013 (UTC)
- Those lines shouldn't be in Commmon.css nor common.js. They are in MediaWiki:Sidebar Ciencia Al Poder (talk) 09:34, 1 October 2013 (UTC)
- Thank you very much, Its worked :) I have one more question.. can I upload documents (.doc) to my mediawiki? Thanks!! 46.251.31.104 09:51, 1 October 2013 (UTC)
- Look at Manual:Configuring file uploads, and create a new thread if your question is not related to the sidebar. Ciencia Al Poder (talk) 09:19, 2 October 2013 (UTC)
- Thank you very much, Its worked :) I have one more question.. can I upload documents (.doc) to my mediawiki? Thanks!! 46.251.31.104 09:51, 1 October 2013 (UTC)
Best way to handle same page but in several languages
Hi,
I'm from Belgium and we're using the mediawiki, but be need to have the pages in several languages, like Dutch, French and English. What is the best way to do this?
Jvuz Jvuz~mediawikiwiki (talk) 12:50, 1 October 2013 (UTC)
- Look at how this is done on MediaWiki.org. For example, see the API page which (buried in the API template) uses the "Languages" template in the following way:
- ☠MarkAHershberger☢(talk)☣ 17:24, 3 October 2013 (UTC)
{{Languages|{{#titleparts:{{FULLPAGENAME}}|1}}}}
MediaWiki:Vector.css, Broken!
hello, when I try to change the theme css Vector in "MediaWiki:Vector.css" appears the following error message:
Could not acquire 'wssouza01-wiki_:messages:en:status' lock. Backtrace:
- 0 /home/wteachers/www/wiki/includes/cache/MessageCache.php(710): MessageCache->load('en')
- 1 /home/wteachers/www/wiki/includes/cache/MessageCache.php(650): MessageCache->getMsgFromNamespace('January/en', 'en')
- 2 /home/wteachers/www/wiki/includes/Message.php(720): MessageCache->get('january', true, Object(Language))
- 3 /home/wteachers/www/wiki/includes/Message.php(464): Message->fetchMessage()
- 4 /home/wteachers/www/wiki/includes/Message.php(553): Message->toString()
- 5 /home/wteachers/www/wiki/languages/Language.php(923): Message->text()
- 6 /home/wteachers/www/wiki/languages/Language.php(942): Language->getMessageFromDB('january')
- 7 /home/wteachers/www/wiki/languages/Language.php(951): Language->getMonthName(1)
- 8 /home/wteachers/www/wiki/includes/OutputPage.php(3025): Language->getMonthNamesArray()
- 9 /home/wteachers/www/wiki/includes/OutputPage.php(2770): OutputPage->getJSVars()
- 10 /home/wteachers/www/wiki/includes/OutputPage.php(2475): OutputPage->getHeadScripts()
- 11 /home/wteachers/www/wiki/includes/SkinTemplate.php(462): OutputPage->headElement(Object(SkinVector))
- 12 /home/wteachers/www/wiki/includes/OutputPage.php(2034): SkinTemplate->outputPage()
- 13 /home/wteachers/www/wiki/includes/Wiki.php(572): OutputPage->output()
- 14 /home/wteachers/www/wiki/includes/Wiki.php(458): MediaWiki->main()
- 15 /home/wteachers/www/wiki/index.php(59): MediaWiki->run()
- 16 {main}
how can I fix this error? 200.239.65.5 (talk) 13:31, 1 October 2013 (UTC)
- Try it again, it may be a temporary problem. Ciencia Al Poder (talk) 09:31, 2 October 2013 (UTC)
- I just got this error too, and that happens if you have configured MediaWiki to use memcached, but memcached is not running, or MediaWiki fails to connect to memcached. Ciencia Al Poder (talk) 16:19, 27 June 2014 (UTC)
Is it possible to create a list of recent added articles by author?
I tried to do it with dynamic page list extension, but it doesn't work Fokebox (talk) 16:29, 1 October 2013 (UTC)
- Could you please elaborate? Ciencia Al Poder (talk) 09:32, 2 October 2013 (UTC)
- I tried to use this Extension:DynamicPageList_(Wikimedia)
- and these code:
<DynamicPageList> namespace = User:UserName order = descending count = 5 </DynamicPageList>
- So there was a list, but it has all recent registered articles and it was not ordered by username
- May be I did something wrong? Fokebox (talk) 13:19, 3 October 2013 (UTC)
- I doubt that list would display a list of all recent registered articles, since you're filtering by
namespace = User:UserName, which is also not a valid namespace. - Have you tried reading the documentation of the extension in the first place?
- Also, from my understanding, this extension doesn't provide that functionality. You'd need Extension:DynamicPageList (third-party) [1] Ciencia Al Poder (talk) 09:27, 4 October 2013 (UTC)
- I have read the documentation, but I don't understand clearly if it is possible to make a list of recent added articles ordered by author with standard extension, not third party extension Fokebox (talk) 12:32, 4 October 2013 (UTC)
- I doubt that list would display a list of all recent registered articles, since you're filtering by
Recreate the REVISIONS table
Hallo all, I have wrongly deleted the revisions table of my mediawiki and now I cannot see more any page. There is a way to reconstruct the revision data, also with some standard infos about the author etc?
Thank you very much. Claudio 188.217.54.242 (talk) 19:17, 1 October 2013 (UTC)
- Hi!
- The revision table is used for page history and user contributions listings. There are maintenance scripts (like rebuildall.php) which can populate the categorylinks, pagelinks, and imagelinks tables and refresh the search index, but these scripts require the revisions table - they cannot fill it. The manual on deleteArchivedRevisions.php tells you that this script can delete certain revisions (more or less what you did) and - the interesting part - that these revisions will no longer be restorable.
- So I think it is not possible to refill the revisions table. 88.130.103.16 19:50, 1 October 2013 (UTC)
- Sigh, so I cannot do anymore that leaving the project... çç
- I'm very sad 188.217.54.242 21:25, 1 October 2013 (UTC)
- Let's try to recreate the whole table before we begin with fiddly manual work:
- You can use a backup and restore the table from there. Maybe your host regularly does backups for you? Maybe you or a friend or another admin has an older backup somewhere? Or maybe you still have one somewhere on the server?
- Another idea: MySQL has options to create logs of recent actions. I think the interesting log is called binary log. If it is activated, this log can be used to rollback actions, which MySQL did. The log content is rotated, meaning: If you ask quickly enough, your DROP query might still be in and so can be rolled back.
- And doesn't MySQL maintain backups of the raw database data? I think that is in the data folder of MySQL, inside the subfolder backup/. I don't know how often these backups are refreshed, but I at least saw a system where that does not happen immediately, but exactly once a day. Having this data might help you as well.
- Does anything of that help you? 88.130.103.16 22:38, 1 October 2013 (UTC)
- If your page is in Google, you can use the texts from the Google cache and paste them back into your database. This should at least bring "some" pages back.
- If all that does not help, there still is another way to get your information back - a hard way:
- All your texts are still there, see the table "text". The page names also are still there, see the table "page". What you lost is the relation of the entries in "text" to the pages in "page". Both were connected in this way:
- "The text of the page itself is stored in the text table. To retrieve the text of an article, MediaWiki first searches the page table for page_title. Then, page_latest is used to search the revision table for rev_id, and rev_text_id is obtained in the process. The value obtained for rev_text_id is used to search for old_id in the text table to retrieve the text."
- So as a last help you can check the texts from the table "text" and try to manually put them into the right pages again. To do that, it might be wise to use a new database, so that you do not build upon the missing relations in the old DB. However, this task will be cumbersome, take a long time and won't be fun at all. Estimate yourself, if your data is worth the hassle!
- Whatever you do: You should really start using backups! Automatically generated backups; what has to be done manually will be forgotten. 88.130.65.67 13:07, 2 October 2013 (UTC)
- When you say
revisiontable, you mean only that one, or also thetexttable? - Depending on what method you used to delete them all, the text table is likely still intact. That table is what contains the actual page contents.
- However the revision table is what links these content versions to a page, user and timestamp.
- It's going to be hard to reconstruct the history, but at least you have all the content still (although without knowing which version is what page).
- You could use a combination of Google (and other caches/backups) to figure out what pages you had, and perhaps search through the text table for the actual content (by looking for a piece of text on that page).
- Since Google's cache is html only, if you'd import from that directly, you loose all semantics (e.g. things that came from templates etc.,) and possibly the markup as well (e.g. headings, bold, lists etc.) though markup you could re-add manually. By then re-creating the page with the content from the text table you restore the complete and unaltered wikitext.
- See also DB. Good luck! Krinkle (talk) 17:02, 2 October 2013 (UTC)
Upload images to diff server extension
I have a Windows-based Wiki site and I'd like to have the images in another account (i.e. diff IP address). Is there an extension which allows to upload images via a FTP account?
I searched for one but could not find, but perhaps I was looking for the worng phrase or what not.
i.e. www.mysite.com is my Wiki site at 200.200.200.200 and my images are on images.mysite.com at 100.100.100.100 87.69.146.131 (talk) 21:20, 1 October 2013 (UTC)
- I don't know about putting them on an ftp server, but there are tools like Extension:LocalS3Repo, Extension:AWS, and Extension:WindowsAzureStorage that let you store them "in the cloud." You might also look at Extension:UploadLocal. ☠MarkAHershberger☢(talk)☣ 16:12, 9 October 2013 (UTC)
Help with extension "InviteSignup
I am attempting to use the InviteSignup extension so I can invite users to an otherwise private wiki. The extension shows as loaded on the version page and I am able to bring up the page on which I can enter an email, and select what groups I want to give access to. This information is laid out as if it is a row in a table, and at the end there is an "add" button. When clicking add I am taken to a InviteSignup page which appears to be nothing more than a blank wiki page of that name. I have tried entering several different valid email addresses and none have received an invite. The wiki page for this extension does not offer a way to contact the developer which is why I am posting here, and I apologize if this is an inappropriate forum. However, if anyone can offer assistance I would appreciate the help.
In addition to adding the extension in the extensions folder I made the following change to localsettings.php require_once "extensions/InviteSignup/InviteSignup.php"; $wgISGroups = array( 'StateA', 'StateB', 'StateC' ); $wgGroupPermissions['bureaucrat']['invitesignup'] = true;
Wiki version 1.21.1, PHP 5.3.4.
Thanks 12.111.71.19 (talk) 01:59, 2 October 2013 (UTC)
- Are you sure? User:Nikerabbit is an active developer and I'm sure you can find him regularly on IRC. Ciencia Al Poder (talk) 09:44, 2 October 2013 (UTC)
- Thanks, I don't currently have access to IRC but will try contacting him that way. 199.19.250.44 12:17, 2 October 2013 (UTC)
[RESOLVED] Specialpage Listfile - Searching doesnt work properly
Hi. I've a problem on using the search function on the specialpage Filelist. I dont find an solution for this bug. So may i will get some help here.
The filelist counts more than 900 files. If i search for an specified file or name it works fine. But if i search for an user or only an fileextension, i can wait hours and get no results. It seems that the function works in an infinite loop.
Perhaps the result list is to big.
Im using mediawiki 1.21.2. 87.193.155.78 (talk) 11:53, 2 October 2013 (UTC)
- Doesn't anybody have an idea? Perhaps this "bug" is already listed? 87.193.155.78 06:20, 9 October 2013 (UTC)
- I solved it.
- More RAM. We use imagemagic für displaying gif-Files. The lib needed more memory in cause of this count of files. 87.193.155.78 06:53, 9 October 2013 (UTC)
Allowing a user to edit one page, but restrict all others
Is there a way to allow a user to edit one (or multiple) pages of a wiki anonymously, yet restrict everything else to require a login/registration? This is a private wiki inaccessible from outside the company.
Version information follows: MediaWiki 1.21.2 PHP 5.3.3 (apache2handler) MySQL 5.0.95
Thanks,
Wayne 64.214.53.2 (talk) 15:34, 2 October 2013 (UTC)
- Manual:$wgWhitelistRead looks like it could help you. ☠MarkAHershberger☢(talk)☣ 16:16, 9 October 2013 (UTC)
Getting "Lua error: Internal error: The interpreter exited with status 2." When testing infobox.
MediaWiki 1.21.2 PHP 5.4.11 (cgi-fcgi) MySQL 5.1.53-log Lua 5.1.5
URL: http://www.sportscardwiki.com/index.php?title=Infoboxtest
I'm getting an error of: "Lua error: Internal error: The interpreter exited with status 2."
I have also enabled error details and logging in LocalSettings.php, but neither seem to be working in this case so I do not have a backtrace to provide more details. 161.165.196.102 (talk) 18:01, 2 October 2013 (UTC)
- What OS are you using? Are you sure your web server has permission to write to the error log file? ☠MarkAHershberger☢(talk)☣ 17:41, 8 October 2013 (UTC)
[RESOLVED] How to use mediawiki API to edit a page on local server
I created a web page on my own local server using MediaWiki. The url is "http:\localhost\mediawiki\index.php\newPage". I intend to edit the page using the MediaWiki API in PHP, and plan to use API:edit. But how can I set the title or pageid parameter? Is there any other methods to edit this page on my local server using MediaWiki API?
Thanks in advance! Asdk77 (talk) 03:16, 3 October 2013 (UTC)
- Did you follow API:Edit?
- Also, the api is meant to be used by a client machine. If you want to edit it from the same server, in PHP, you may want to use the edit.php maintenance script. Ciencia Al Poder (talk) 09:46, 3 October 2013 (UTC)
- The problem is how to access to the certain page created by mediawiki on my local server. The example showing on Mediawiki API Main page access to the page by setting the "title" parameter, but that page is a wikipedia page. If I want to direct to a certain page on my local server, what should I do? How can I direct to that page or server? Thanks! Asdk77 (talk) 13:37, 3 October 2013 (UTC)
- You should go to http://localhost/mediawiki/api.php. ☠MarkAHershberger☢(talk)☣ 17:01, 3 October 2013 (UTC)
- Yes, it can work now. Thank you so much!!! Asdk77 (talk) 17:17, 3 October 2013 (UTC)
- You should go to http://localhost/mediawiki/api.php. ☠MarkAHershberger☢(talk)☣ 17:01, 3 October 2013 (UTC)
- The problem is how to access to the certain page created by mediawiki on my local server. The example showing on Mediawiki API Main page access to the page by setting the "title" parameter, but that page is a wikipedia page. If I want to direct to a certain page on my local server, what should I do? How can I direct to that page or server? Thanks! Asdk77 (talk) 13:37, 3 October 2013 (UTC)
Admin user is hijacked, what to do?
My superadmin user is hijacked! Our wiki, http://wiki.studiebyen.no, is now nothing but spam and my superadmin user/password no longer works. I preferably just would like to kill the whole wiki, but how? I cannot get access with my user hijacked.
Regards, Kim Sorenssen/StudiebyEN/Norway 78.91.39.251 (talk) 12:03, 3 October 2013 (UTC)
- Hi Kim,
- in those cases I always recommend reverting to a backup from before the hijacking. This is the easiest and a clean solution. Everything else will be more difficult und far more time-consuming. 88.130.68.191 12:33, 3 October 2013 (UTC)
- Thanks! Yes, that should probably do it.
- Kim 78.91.39.251 13:46, 3 October 2013 (UTC)
- I was wondering if this ever happened to my wiki, what should I do if I didn't want to kill the whole wiki, and revert back to a earlier back up? Kyle 44 (talk) 03:50, 4 October 2013 (UTC)
- Hi Kyle!
- Reverting to a backup really is the recommended procedure in this case.
- If you really want to clean the wiki up, you can do the following: Use the maintenance script createAndPromote.php from the shell to create yourself a new admin user. With this user block the hijacked account and take his rights away. Then revert all the spam inside the wiki; this might be a hugh task depending on "how hacked" your wiki is. Remove all files, which might have been uploaded and check the MediaWiki source code on your server; these files may have been manipulated as well. And do not forget to check extensions; they might also be affected.
- Check the server logs to see which URLs have been accessed during the hack. Information by mod_security (if active) might help as well.
- Finally you have to close the hole, through which the attacker came in. This can basically be anything: An insecure web application (maybe not even MediaWiki, but possibly something completely different), maybe an outdated extension, maybe a vulnerability in MediaWiki or in PHP or in MySQL or in the operating system....... Anyway: The hole must be fixed; otherwise you will soon be hacked again. 88.130.110.97 12:07, 4 October 2013 (UTC)
[RESOLVED] Permission to edit pages only if user belongs to that group
The following discussion is closed. 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 new to MediaWiki, I wanted to know is there a way to allow user to edit a specific page only if that page is created by the user who is of the same group. For instance if user A who belongs to a group YYY creates a page XYZ, and the user B can edit XYZ page only if that person belongs to YYY group.
Please let me know what setting I need to make to achieve this.
Thanks Chethan K Chethankswamy (talk) 13:50, 3 October 2013 (UTC)
- You can set aside a namespace (say "YYY:") that is only editable by people in the YYY group using Extension:Lockdown. ☠MarkAHershberger☢(talk)☣ 19:06, 3 October 2013 (UTC)
- Hi,
- First of all thanks for replying, I tried creating a custom namespace and created a page (yyy group), but even the user who belongs to "xxx" was able to edit,
- below is the setting that i used, please let me know where I have gone wrong.
require_once( "$IP/extensions/Lockdown/Lockdown.php" ); $wgGroupPermissions['*']['edit'] = false; $wgEmailConfirmToEdit = true; $wgGroupPermissions['user']['edit'] = false; $wgGroupPermissions['*']['createpage'] = false; $wgGroupPermissions['user']['createpage'] = false; $wgGroupPermissions['*']['createaccount'] = false; # Start with assigning the default permissions from group "user" $wgGroupPermissions['YYY'] = $wgGroupPermissions['user']; $wgGroupPermissions['YYY']['delete'] = true; $wgGroupPermissions['YYY']['protect'] = true; $wgGroupPermissions['YYY']['patrol'] = true; $wgGroupPermissions['YYY']['purge'] = true; # delete the cache of a page $wgGroupPermissions['YYY']['edit'] = true; $wgGroupPermissions['YYY']['createpage'] = true; # Start with assigning the default permissions from group "user" $wgGroupPermissions['XXX'] = $wgGroupPermissions['user']; $wgGroupPermissions['XXX']['delete'] = true; $wgGroupPermissions['XXX']['protect'] = true; $wgGroupPermissions['XXX']['patrol'] = true; $wgGroupPermissions['XXX']['purge'] = true; # delete the cache of a page $wgGroupPermissions['XXX']['edit'] = true; $wgGroupPermissions['XXX']['createpage'] = true; #define constants for your custom namespaces, for a more readable configuration define('NS_YYY', 100); define('NS_XXX', 101); #define custom namespaces $wgExtraNamespaces[NS_YYY] = 'yyy'; $wgExtraNamespaces[NS_XXX] = 'xxx'; #restrict "read" permission to logged in users $wgNamespacePermissionLockdown[NS_YYY]['read'] = array('yyy'); $wgNamespacePermissionLockdown[NS_YYY]['edit'] = array('yyy'); $wgNamespacePermissionLockdown[NS_YYY]['createpage'] = array('yyy'); $wgNamespacePermissionLockdown[NS_XXX]['read'] = array('xxx'); $wgNamespacePermissionLockdown[NS_XXX]['edit'] = array('xxx'); $wgNamespacePermissionLockdown[NS_XXX]['createpage'] = array('xxx'); #prevent inclusion of pages from that namespace $wgNonincludableNamespaces[] = NS_YYY; $wgNonincludableNamespaces[] = NS_XXX;
- Thanks
- Chethan K Chethankswamy (talk) 12:40, 7 October 2013 (UTC)
- You have a typo above. If you fix these, does it work?
- I'm looking at these two lines:
$wgNamespacePermissionLockdown[NS_YYY['createpage'] = array('yyy'); #... $wgNamespacePermissionLockdown[NS_XXX['createpage'] = array('xxx');
- These should be
$wgNamespacePermissionLockdown[NS_YYY]['createpage'] = array('yyy'); #... $wgNamespacePermissionLockdown[NS_XXX]['createpage'] = array('xxx');
- Those syntax errors make me wonder if MediaWiki was even reading the file where you put these changes. If the file were read as PHP, it should error out. ☠MarkAHershberger☢(talk)☣ 00:12, 8 October 2013 (UTC)
- Sorry it was a typo error while posting, its fine in the code which I have. Chethankswamy (talk) 06:41, 8 October 2013 (UTC)
- ok, I've editted your post to show that. ☠MarkAHershberger☢(talk)☣ 14:46, 8 October 2013 (UTC)
- Sorry it was a typo error while posting, its fine in the code which I have. Chethankswamy (talk) 06:41, 8 October 2013 (UTC)
- in the
$wgGroupPermissionssection, you've given "YYY" and "XXX" as the group names, but in the$wgNamespacePermissionLockdownsection, you've given "yyy" and "xxx". Group names are case sensitive, so you have four different groups. - Also, I recommend using "YYY" and "XXX" instead of the lower-case versions for your namespace names. ☠MarkAHershberger☢(talk)☣ 14:56, 8 October 2013 (UTC)
- ya I modified that, but still the issue persists :( Chethankswamy (talk) 05:32, 9 October 2013 (UTC)
- To avoid me misinterpreting what you currently have, could you paste your updated file here sans typos? ☠MarkAHershberger☢(talk)☣ 11:58, 9 October 2013 (UTC)
- Sorry for the confusion caused, I have pasted the entire settings present in LocalSettings.php file
- To avoid me misinterpreting what you currently have, could you paste your updated file here sans typos? ☠MarkAHershberger☢(talk)☣ 11:58, 9 October 2013 (UTC)
- ya I modified that, but still the issue persists :( Chethankswamy (talk) 05:32, 9 October 2013 (UTC)
| Extended content |
|---|
<?php
# This file was automatically generated by the MediaWiki 1.21.2
# installer. If you make manual changes, please keep track in case you
# need to recreate them later.
#
# See includes/DefaultSettings.php for all configurable settings
# and their default values, but don't forget to make changes in _this_
# file, not there.
#
# Further documentation for configuration settings may be found at:
# http://www.mediawiki.org/wiki/Manual:Configuration_settings
# Protect against web entry
if ( !defined( 'MEDIAWIKI' ) ) {
exit;
}
## Uncomment this to disable output compression
# $wgDisableOutputCompression = true;
$wgSitename = "xxx wiki";
$wgMetaNamespace = "xxx_wiki";
## The URL base path to the directory containing the wiki;
## defaults for all runtime URL paths are based off of this.
## For more information on customizing the URLs
## (like /w/index.php/Page_title to /wiki/Page_title) please see:
## http://www.mediawiki.org/wiki/Manual:Short_URL
$wgScriptPath = "/wiki";
$wgScriptExtension = ".php";
## The protocol and server name to use in fully-qualified URLs
$wgServer = "http://192.168.10.113:8888";
## The relative URL path to the skins directory
$wgStylePath = "$wgScriptPath/skins";
## The relative URL path to the logo. Make sure you change this from the default,
## or else you'll overwrite your logo when you upgrade!
$wgLogo = "$wgStylePath/common/images/sb_logo.png";
## UPO means: this is also a user preference option
$wgEnableEmail = true;
$wgEnableUserEmail = true; # UPO
$wgEmergencyContact = "xxx@gmail.com";
$wgPasswordSender = "xxx";
$wgEnotifUserTalk = true; # UPO
$wgEnotifWatchlist = true; # UPO
$wgEmailAuthentication = true;
## Database settings
$wgDBtype = "mysql";
$wgDBserver = "localhost";
$wgDBname = "my_wiki";
$wgDBuser = "root";
$wgDBpassword = "";
# MySQL specific settings
$wgDBprefix = "";
# MySQL table options to use during installation or update
$wgDBTableOptions = "ENGINE=InnoDB, DEFAULT CHARSET=binary";
# Experimental charset support for MySQL 5.0.
$wgDBmysql5 = false;
## Shared memory settings
$wgMainCacheType = CACHE_ACCEL;
$wgMemCachedServers = array();
## To enable image uploads, make sure the 'images' directory
## is writable, then set this to true:
$wgEnableUploads = true;
#$wgUseImageMagick = true;
#$wgImageMagickConvertCommand = "/usr/bin/convert";
# InstantCommons allows wiki to use images from http://commons.wikimedia.org
$wgUseInstantCommons = true;
## If you use ImageMagick (or any other shell command) on a
## Linux server, this will need to be set to the name of an
## available UTF-8 locale
$wgShellLocale = "en_US.UTF-8";
## If you want to use image uploads under safe mode,
## create the directories images/archive, images/thumb and
## images/temp, and make them all writable. Then uncomment
## this, if it's not already uncommented:
#$wgHashedUploadDirectory = false;
## Set $wgCacheDirectory to a writable directory on the web server
## to make your wiki go slightly faster. The directory should not
## be publically accessible from the web.
#$wgCacheDirectory = "$IP/cache";
# Site language code, should be one of the list in ./languages/Names.php
$wgLanguageCode = "en";
$wgSecretKey = "xxx";
# Site upgrade key. Must be set to a string (default provided) to turn on the
# web installer while LocalSettings.php is in place
$wgUpgradeKey = "xxx";
## Default skin: you can change the default skin. Use the internal symbolic
## names, ie 'standard', 'nostalgia', 'cologneblue', 'monobook', 'vector':
$wgDefaultSkin = "vector";
## For attaching licensing metadata to pages, and displaying an
## appropriate copyright notice / icon. GNU Free Documentation
## License and Creative Commons licenses are supported so far.
$wgRightsPage = ""; # Set to the title of a wiki page that describes your license/copyright
$wgRightsUrl = "";
$wgRightsText = "";
$wgRightsIcon = "";
# Path to the GNU diff3 utility. Used for conflict resolution.
$wgDiff3 = "/usr/bin/diff3";
# Query string length limit for ResourceLoader. You should only set this if
# your web server has a query string length limit (then set it to that limit),
# or if you have suhosin.get.max_value_length set in php.ini (then set it to
# that value)
$wgResourceLoaderMaxQueryLength = -1;
# Enabled Extensions. Most extensions are enabled by including the base extension file here
# but check specific extension documentation for more details
# The following extensions were automatically enabled:
require_once( "$IP/extensions/Cite/Cite.php" );
require_once( "$IP/extensions/ConfirmEdit/ConfirmEdit.php" );
require_once( "$IP/extensions/Gadgets/Gadgets.php" );
require_once( "$IP/extensions/ImageMap/ImageMap.php" );
require_once( "$IP/extensions/InputBox/InputBox.php" );
require_once( "$IP/extensions/Interwiki/Interwiki.php" );
require_once( "$IP/extensions/LocalisationUpdate/LocalisationUpdate.php" );
require_once( "$IP/extensions/Nuke/Nuke.php" );
require_once( "$IP/extensions/ParserFunctions/ParserFunctions.php" );
require_once( "$IP/extensions/PdfHandler/PdfHandler.php" );
require_once( "$IP/extensions/Poem/Poem.php" );
require_once( "$IP/extensions/Renameuser/Renameuser.php" );
require_once( "$IP/extensions/SpamBlacklist/SpamBlacklist.php" );
require_once( "$IP/extensions/SyntaxHighlight_GeSHi/SyntaxHighlight_GeSHi.php" );
require_once( "$IP/extensions/TitleBlacklist/TitleBlacklist.php" );
require_once( "$IP/extensions/Vector/Vector.php" );
require_once( "$IP/extensions/WikiEditor/WikiEditor.php" );
//require_once( "$IP/extensions/EditOnlyYourOwnPage.php" );
require_once( "$IP/extensions/Lockdown/Lockdown.php" );
# End of automatically generated settings.
# Add more configuration options below.
# Requires that a user be registered before they can edit.
$wgGroupPermissions['*']['edit'] = false;
# Requires users to confirm their eamail to edit a page
$wgEmailConfirmToEdit = true;
# hide user tools for anonymous (IP address) visitors
//$wgShowIPinHeader = false;
# Users cannot edit pages
$wgGroupPermissions['user']['edit'] = false;
# Anonymous users can't create pages
$wgGroupPermissions['*']['createpage'] = false;
$wgGroupPermissions['user']['createpage'] = false;
# Prevent new user registrations except by sysops
$wgGroupPermissions['*']['createaccount'] = false;
# Start with assigning the default permissions from group "user"
$wgGroupPermissions['rerun'] = $wgGroupPermissions['user'];
# Now modify these rights:
$wgGroupPermissions['rerun']['delete'] = true;
$wgGroupPermissions['rerun']['protect'] = true;
$wgGroupPermissions['rerun']['patrol'] = true;
$wgGroupPermissions['rerun']['purge'] = true; # delete the cache of a page
$wgGroupPermissions['rerun']['edit'] = true;
$wgGroupPermissions['rerun']['createpage'] = true;
# Start with assigning the default permissions from group "user"
$wgGroupPermissions['aec'] = $wgGroupPermissions['user'];
# Now modify these rights:
$wgGroupPermissions['aec']['delete'] = true;
$wgGroupPermissions['aec']['protect'] = true;
$wgGroupPermissions['aec']['patrol'] = true;
$wgGroupPermissions['aec']['purge'] = true; # delete the cache of a page
$wgGroupPermissions['aec']['edit'] = true;
$wgGroupPermissions['aec']['createpage'] = true;
#define constants for your custom namespaces, for a more readable configuration
define('NS_RERUN', 100);
define('NS_AEC', 101);
#define custom namespaces
$wgExtraNamespaces[NS_RERUN] = 'rerun';
$wgExtraNamespaces[NS_AEC] = 'aec';
#restrict "read" permission to logged in users
$wgNamespacePermissionLockdown[NS_RERUN]['read'] = array('rerun');
$wgNamespacePermissionLockdown[NS_RERUN]['edit'] = array('rerun');
$wgNamespacePermissionLockdown[NS_RERUN]['createpage'] = array('rerun');
$wgNamespacePermissionLockdown[NS_AEC]['read'] = array('aec');
$wgNamespacePermissionLockdown[NS_AEC]['edit'] = array('aec');
$wgNamespacePermissionLockdown[NS_AEC]['createpage'] = array('aec');
#prevent inclusion of pages from that namespace
$wgNonincludableNamespaces[] = NS_RERUN;
$wgNonincludableNamespaces[] = NS_AEC;
|
- I used your settings on a 1.20.2 wiki and it worked for me. What version is your wiki? ☠MarkAHershberger☢(talk)☣ 17:19, 9 October 2013 (UTC)
- I am using 1.21.2 wiki version Chethankswamy (talk) 05:06, 10 October 2013 (UTC)
- Alright, so I updated to 1.21.2 and am using the following LocalSettings.php:
- I am using 1.21.2 wiki version Chethankswamy (talk) 05:06, 10 October 2013 (UTC)
- I used your settings on a 1.20.2 wiki and it worked for me. What version is your wiki? ☠MarkAHershberger☢(talk)☣ 17:19, 9 October 2013 (UTC)
| Extended content |
|---|
|
- which is should be the same as yours modulo some debugging and password stuff.
- And it is working for me.
- Could you tell me what exactly what pages you are looking at and what happens?
- Here is what I am doing:
- Not logged in
- aec:AecTest -- "You do not have permission to read this page... limited to users in the group: rerun."
- rerun:RerunTest -- "You do not have permission to read this page... limited to users in the group: rerun."
- Logged in as User:Test which is in the aec group
- aec:AecTest -- see content which is "test can see, bogus can't"
- rerun:RerunTest -- "You do not have permission to read this page... limited to users in the group: rerun."
- Logged in as User:Bogus which is in the rerun group
- aec:AecTest -- "You do not have permission to read this page... limited to users in the group: rerun."
- rerun:RerunTest -- see content which is "Bogus can see, Test cannot" ☠MarkAHershberger☢(talk)☣ 16:32, 10 October 2013 (UTC)
- Thats exactly what I am looking for. But I am not able to do that :(.
- Here is what I am doing,
- Logged in as admin, then created an new account Testaec
- Went to user rights management, searched for Testaec user and added that user to aec group and saved.
- Logged in as User:Testaec,
- Created a "test aec page" and saved. Then logged out.
- Logged in as User:Testrerun (which belongs to rerun group, which I create the same way as above)
- Searched for "test aec page" and was able to view and edit that page :(
- Please let me know should I try reinstalling wiki or where I am doing wrong
- Below is my group permission page details:
- ==============
- (all)
- Create discussion pages (createtalk)
- Read pages (read)
- Use of the write API (writeapi)
- aec (list of members)
- Change protection levels and edit protected pages (protect)
- Create discussion pages (createtalk)
- Create pages (which are not discussion pages) (createpage)
- Delete pages (delete)
- Edit pages (edit)
- Mark edits as minor (minoredit)
- Mark others' edits as patrolled (patrol)
- Move files (movefile)
- Move pages (move)
- Move pages with their subpages (move-subpages)
- Move root user pages (move-rootuserpages)
- Override files on the shared media repository locally (reupload-shared)
- Overwrite existing files (reupload)
- Purge the site cache for a page without confirmation (purge)
- Read pages (read)
- Send email to other users (sendemail)
- Upload files (upload)
- Use of the write API (writeapi)
- Autoconfirmed users
- Edit semi-protected pages (autoconfirmed)
- Bots (list of members)
- Be treated as an automated process (bot)
- Edit semi-protected pages (autoconfirmed)
- Have one's own edits automatically marked as patrolled (autopatrol)
- Not create redirects from source pages when moving pages (suppressredirect)
- Not have minor edits to discussion pages trigger the new messages prompt (nominornewtalk)
- Perform CAPTCHA-triggering actions without having to go through the CAPTCHA (skipcaptcha)
- Use higher limits in API queries (apihighlimits)
- Use of the write API (writeapi)
- Bureaucrats (list of members)
- Edit all user rights (userrights)
- Not be affected by rate limits (noratelimit)
- Rename users (renameuser)
- rerun (list of members)
- Change protection levels and edit protected pages (protect)
- Create discussion pages (createtalk)
- Create pages (which are not discussion pages) (createpage)
- Delete pages (delete)
- Edit pages (edit)
- Mark edits as minor (minoredit)
- Mark others' edits as patrolled (patrol)
- Move files (movefile)
- Move pages (move)
- Move pages with their subpages (move-subpages)
- Move root user pages (move-rootuserpages)
- Override files on the shared media repository locally (reupload-shared)
- Overwrite existing files (reupload)
- Purge the site cache for a page without confirmation (purge)
- Read pages (read)
- Send email to other users (sendemail)
- Upload files (upload)
- Use of the write API (writeapi)
- (all)
-
- Administrators (list of members)
- Block a user from sending email (blockemail)
- Block other users from editing (block)
- Bypass IP blocks, auto-blocks and range blocks (ipblock-exempt)
- Bypass automatic blocks of proxies (proxyunbannable)
- Change protection levels and edit protected pages (protect)
- Create new user accounts (createaccount)
- Delete pages (delete)
- Delete pages with large histories (bigdelete)
- Edit other users' CSS files (editusercss)
- Edit other users' JavaScript files (edituserjs)
- Edit semi-protected pages (autoconfirmed)
- Edit the user interface (editinterface)
- Have one's own edits automatically marked as patrolled (autopatrol)
- Import pages from a file upload (importupload)
- Import pages from other wikis (import)
- Mark others' edits as patrolled (patrol)
- Mark rolled-back edits as bot edits (markbotedits)
- Mass delete pages (nuke)
- Move files (movefile)
- Move pages (move)
- Move pages with their subpages (move-subpages)
- Move root user pages (move-rootuserpages)
- Not be affected by rate limits (noratelimit)
- Not create redirects from source pages when moving pages (suppressredirect)
- Override files on the shared media repository locally (reupload-shared)
- Override the title or username blacklist (tboverride)
- Overwrite existing files (reupload)
- Perform CAPTCHA-triggering actions without having to go through the CAPTCHA (skipcaptcha)
- Quickly rollback the edits of the last user who edited a particular page (rollback)
- Search deleted pages (browsearchive)
- Unblock themselves (unblockself)
- Undelete a page (undelete)
- Upload files (upload)
- Use higher limits in API queries (apihighlimits)
- View a list of unwatched pages (unwatchedpages)
- View deleted history entries, without their associated text (deletedhistory)
- View deleted text and changes between deleted revisions (deletedtext)
- Users (list of members)
- Create discussion pages (createtalk)
- Mark edits as minor (minoredit)
- Move files (movefile)
- Move pages (move)
- Move pages with their subpages (move-subpages)
- Move root user pages (move-rootuserpages)
- Override files on the shared media repository locally (reupload-shared)
- Overwrite existing files (reupload)
- Purge the site cache for a page without confirmation (purge)
- Read pages (read)
- Send email to other users (sendemail)
- Upload files (upload)
- Use of the write API (writeapi) Chethankswamy (talk) 05:49, 11 October 2013 (UTC)
- You aren't putting the page you want to protect in a protected namespace, so it doesn't get protected. If you use "aec:test aec page" as a page name, it will be protected. ☠MarkAHershberger☢(talk)☣ 15:26, 15 October 2013 (UTC)
- Thanks a lot Mark, this worked, sorry for late reply Chethankswamy (talk) 10:43, 28 November 2013 (UTC)
- Administrators (list of members)
- Not logged in
Wikidata test repo at Wikimedia.de down
Hi wikimedia seems to be having a problem with http://wikidata-test-repo.wikimedia.de/wiki this website 90.217.5.92 (talk) 15:37, 3 October 2013 (UTC)
[RESOLVED] Errors 1170 and 1146 (ConfirmAccount)
Hello all, and thank you for your time
I am using Mediawiki 1.19 and using the ConfirmAccount extension. When I go to accept an account, I receive this error:
(SQL query hidden)
from within function "AccountConfirmSubmission::acceptRequest". Database returned error "1146: Table 'tuxmicro_mwiki.account_credentials' doesn't exist (localhost)".
I researched and found that it is because I need to run my update for php, so I ran
php maintenance/update.php
In doing so, I receive this error:
Database returned error "1170: BLOB/TEXT column 'acr_email' used in key specification without a key length (localhost)"
I went to extensions/ConfirmAccount/backend/schema/mysql/patch-account_credentials.sql and deleted "ADD INDEX acr_type_del_reg"
When I rerun the php update script, I then get a 1064 error. From here, I am lost Odyssey~mediawikiwiki (talk) 16:43, 3 October 2013 (UTC)
- Also, here is the structure of my account_requests table under phpmyadmin
- http://i41.tinypic.com/if4k6c.png Odyssey (talk) 16:49, 3 October 2013 (UTC)
- What does your 1064 error say? ☠MarkAHershberger☢(talk)☣ 19:04, 3 October 2013 (UTC)
- from within function "Database:Base::sourceFile( /var/www/info/extensions/ConfirmAccount/backend/schema/mysql/patch-account_credentials.sql )".
- Database returned error "1064: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'CREATE TABLE IF NOT EXISTS `account_credentials` (
- acd_id int unsugned NOT NULL' at line 2 (localhost)" Odyssey (talk) 19:59, 3 October 2013 (UTC)
- It looks like you accidentally put a typo in the file. It is complaining about the "unsugned" which should be "unsigned'. ☠MarkAHershberger☢(talk)☣ 23:59, 7 October 2013 (UTC)
- Ahh, that was my fault when typing in here. When running the update script again, it says "unsigned"
The last attempted database query was:"ALTER TABLE `account_requests`CREATE TABLE IF NOT EXISTS `account_credentials` (acd_id int unsigned NOT NULL auto_increment PRIMARY KEY,acd_user_id int unsigned NOT NULL,acd_real_name varchar(255) binary NOT NULL default ,acd_email tinytext NOT NULL,acd_email_authenticated varbinary(14) default NULL,acd_bio mediumblob NOT NULL,acd_notes mediumblob NOT NULL,acd_urls mediumblob NOT NULL,acd_ip VARCHAR(255) NULL default ,acd_filename VARCHAR(255) NULL,acd_storage_key VARCHAR(64) NULL,acd_areas mediumblob NOT NULL,acd_registration varbinary(14) NOT NULL,acd_accepted varbinary(14),acd_user int unsigned NOT NULL default 0,acd_comment varchar(255) NOT NULL default) ENGINE=InnoDB, DEFAULT CHARSET=utf8"from within function "DatabaseBase::sourceFile( /var/www/info/extensions/ConfirmAccount/backend/schema/mysql/patch-account_credentials.sql )".Database returned error "1064: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'CREATE TABLE IF NOT EXISTS `account_credentials` (acd_id int unsigned NOT NULL' at line 2 (localhost)"Odyssey (talk) 20:44, 8 October 2013 (UTC)- Just to test, I commented out the acd_id int line, and I reran the update script, and it seems to error at the very next acd line Odyssey (talk) 20:52, 8 October 2013 (UTC)
- Here is my patch-account_credentials.sql page as it exists:
- Odyssey (talk) 20:54, 8 October 2013 (UTC)
-- (c) Aaron Schulz, 2007 ALTER TABLE /*$wgDBprefix*/account_requests -- ADD INDEX acr_type_del_reg (acr_type,acr_deleted,acr_registration); -- This stores all of credential information -- When accounts are confirmed, the identity info goes here CREATE TABLE IF NOT EXISTS /*_*/account_credentials ( -- Revision ID # acd_id int unsigned NOT NULL auto_increment PRIMARY KEY, -- Foreign key to user.user_id acd_user_id int unsigned NOT NULL, -- Optional 'real name' to be displayed in credit listings acd_real_name varchar(255) binary NOT NULL default '', -- Note: email should be restricted, not public info. -- Same with passwords. acd_email tinytext NOT NULL, -- Initially NULL; when a user's e-mail address has been -- validated by returning with a mailed token, this is -- set to the current timestamp. acd_email_authenticated varbinary(14) default NULL, -- A little about this user acd_bio mediumblob NOT NULL, -- Private info for reviewers to look at when considering request acd_notes mediumblob NOT NULL, -- Links to recognize/identify this user, CSV, may not be public acd_urls mediumblob NOT NULL, -- IP address acd_ip VARCHAR(255) NULL default '', -- Name of attached file (.pdf,.doc,.txt etc...) acd_filename VARCHAR(255) NULL, acd_storage_key VARCHAR(64) NULL, -- Areas of interest acd_areas mediumblob NOT NULL, -- Timestamp of account registration. acd_registration varbinary(14) NOT NULL, -- Timestamp of acceptance acd_accepted varbinary(14), -- The user who accepted it acd_user int unsigned NOT NULL default 0, -- Reason given in email acd_comment varchar(255) NOT NULL default '' ) /*$wgDBTableOptions*/; CREATE UNIQUE INDEX /*i*/acd_user_id ON /*_*/account_credentials (acd_user_id,acd_id);
- Hi why not go into the extension confirm account and then click back end and then click MySQL and then click the first ConfirmAccount SQL and upload it to MySQL directly 86.179.149.75 06:38, 9 October 2013 (UTC)
- There needs to be a semi-colon after each statement. You've commented out the semi-colon for the first ALTER statement, so it looks like it says
ALTER TABLE `account_requests` CREATE TABLE IF NOT EXISTS `account_credentials` ...
- Here is the latest copy of patch-account_credentials.sql. Try it and see if it works. ☠MarkAHershberger☢(talk)☣ 11:56, 9 October 2013 (UTC)
- I pasted your patch-account_credentials.sql into my directory. I ran my update and this is what I get:
A database query syntax error has occurred.The last attempted database query was:"ALTER TABLE `account_requests`ADD acr_type tinyint(255) unsigned NOT NULL default 0,ADD INDEX acr_type_del_reg (acr_type,acr_deleted,acr_registration)"from within function "DatabaseBase::sourceFile( /var/www/info/extensions/ConfirmAccount/backend/schema/mysql/patch-account_credentials.sql )".Database returned error "1060: Duplicate column name 'acr_type' (localhost)"- I tried, just to test, commenting out the "ADD acr_type tinyint(255) unsigned NOT NULL default 0," line, but then I am back to my 1170 error Odyssey (talk) 14:19, 10 October 2013 (UTC)
- Recreate the file from the start and, before running update, remove the following stanza completely:
ALTER TABLE /*$wgDBprefix*/account_requests ADD acr_type tinyint(255) unsigned NOT NULL default 0, ADD INDEX acr_type_del_reg (acr_type,acr_deleted,acr_registration);
- That is, the top of your file should look like this:
-- (c) Aaron Schulz, 2007 -- This stores all of credential information -- When accounts are confirmed, the identity info goes here CREATE TABLE IF NOT EXISTS /*_*/account_credentials (
- After that is done, try re-running update.php. If you get an error at this point, please paste the whole error here, not just the error code. ☠MarkAHershberger☢(talk)☣ 15:54, 10 October 2013 (UTC)
- Deleted "patch-account_credentials.sql."
- Recreated file so that:
-- (c) Aaron Schulz, 2007-- This stores all of credential information-- When accounts are confirmed, the identity info goes hereCREATE TABLE IF NOT EXISTS /*_*/account_credentials (- Reran update script. Success
- Tested confirming a user in wiki website, success.
- No more errors. Thank you MarkAHershberger! 98.172.123.145 20:34, 10 October 2013 (UTC)
- I had this error as well, and I did not have luck with the change from MarkAHershberger -- however what I *did* do was to ALTER TABLE the account_requests table and change the column type from TINYTEXT to VARCHAR(255). This worked, and the update script went fine.
- I recently upgraded from 1.18 to 1.22, and just updated ConfirmAccount to the 1.22 compat version.
- mySQL version is: mysql Ver 14.14 Distrib 5.1.66, for debian-linux-gnu (x86_64) using readline 6.1 128.253.210.36 18:17, 13 May 2014 (UTC)
- Just to test, I commented out the acd_id int line, and I reran the update script, and it seems to error at the very next acd line Odyssey (talk) 20:52, 8 October 2013 (UTC)
- It looks like you accidentally put a typo in the file. It is complaining about the "unsugned" which should be "unsigned'. ☠MarkAHershberger☢(talk)☣ 23:59, 7 October 2013 (UTC)
moved my mediawiki - images dont appear
Hi , I moved my mediawiki to another server, all of the data in the content is showing up , but none of the images show. I have moved the entire /image directory. What reason could there be for the images not showing up? I get this message where the images should be Error creating thumbnail: Unable to save thumbnail to destination Dcastillo (talk) 17:55, 3 October 2013 (UTC)
- Hi!
- I guess you have a permission problem. Make sure that the webserver user has access to the image directory. He must be able to read and write to the folder and to subfolders. Maybe you don't even have to change the file permissions themselves; it might already be enough to modify owner and group of these files. 88.130.68.191 20:55, 3 October 2013 (UTC)
- You should also check/change the owner of those files and folders, because when transferred from one host to another (depending on how did you do that) they may still have the "old" owners, that may not match the user and group running the apache server, which would cause problems when doing deletes or renames of files. Ciencia Al Poder (talk) 09:39, 4 October 2013 (UTC)
[RESOLVED] extraneous text at top of page
Hi,
How can I stop some extraneous text from showing at the top of every page on my new installation of wikimedia onto Debian mint 15 using synaptics?
MediaWiki 1.19.7+dfsg-1 PHP 5.5.1-2 (apache2handler) MySQL 5.5.31-1
The text showing is from some php code prepended to the page, as shown in the page source below, it starts with "Wikidiff2" (i.e. after the first closing angle bracket) and flows up to the DOCTYPE tag.
The page source:
<?
$wgExtensionCredits['wikidiff2'][] = array(
'name' => 'Wikidiff2',
'version' => '',
'author' => 'Tim Starling',
'description' => 'external diff engine for MediaWiki',
'url' => 'https://www.mediawiki.org/wiki/Extension:Wikidiff2'
);
$wgExternalDiffEngine = 'wikidiff2';
<!DOCTYPE html>
<html lang="en" dir="ltr" class="client-nojs">
<head>
203.97.250.223 (talk) 23:48, 3 October 2013 (UTC)
- Your PHP configuration may include the option to disable short open tags.
- Find the file in extensions that contains the above text (probably called Wikidiff2.php?), and change the "<?" to "<?php". That should resolve the issue. brion (talk) 23:42, 4 October 2013 (UTC)
- Thanks brion,
- I changed the apache php.ini to allow short open tags, and that fixed the issue.
- I'm not happy with this solution, apparently that setting is strongly contra-indicated, but, hey! It works.
- Every php file in
/usr/share/mediawiki/**starts with the correct'<?php'open tag. No file contains a resemblance of the string being inserted, however there is a function referencing $wgExtensionCredits. My PHP is weak, but I'm guessing that this might be generating the text. I'll have to experiment. - Thanks again. 203.97.250.223 05:03, 5 October 2013 (UTC)
- Had the same issue. It took some time to find but the file is callled wikidiff2.php. I found it in /etc/mediawiki-extensions-enabled/ I just had to add the php bit after <? and it fixed it 24.225.104.171 23:00, 24 October 2013 (UTC)
- Thanks for this, that fixed it! What a weird bug, happening on an entirely fresh MediaWiki installation on a fresh Ubuntu system... 134.96.225.192 15:43, 9 May 2014 (UTC)
- Thanks so much, this fixed it for me as well. My gratitude for sourcing that problem. 96.50.1.242 15:50, 13 June 2014 (UTC)
Fix search bug in extension:confirmaccount
Hi please could someone please fix a search bug in this extension because it now doesent let you use the search bar to search for something it doesent show drop down list you have to know what you want it doesent show suggestion please fix it. I am using Mediawiki 1.22 Wmf 20 90.199.55.106 (talk) 15:32, 4 October 2013 (UTC)
- Hi!
- Requests for bug fixes are sually collected in the Bugzilla database or where else the extension author chooses to create an issue collection for further processing.
- Please add your request there!
- Thank you! 88.130.110.97 15:57, 4 October 2013 (UTC)
- Ok I have asked on bugzilla now 90.212.81.76 16:28, 5 October 2013 (UTC)
Create account / login in extension:confirmaccount
Hi please update login and create account buttons because the layout and look of them was changed in 1.20 when the separated them into create account and then login so please update the looks and the create account could be redirect to special request account. I am running Mediawiki 1.22 Wmf 20 90.199.55.106 (talk) 15:33, 4 October 2013 (UTC)
- The buttons look nice - what's the issue? 88.130.110.97 15:55, 4 October 2013 (UTC)
- Because it looks a little wired do to the new way you login and create account so could someone redo the way it looks please 90.212.81.76 13:09, 5 October 2013 (UTC)
- If you want that fixed, you should file a BUGREPORT. ☠MarkAHershberger☢(talk)☣ 00:19, 8 October 2013 (UTC)
- Ok I have reported it on bugzilla 90.212.81.76 16:01, 8 October 2013 (UTC)
- If you want that fixed, you should file a BUGREPORT. ☠MarkAHershberger☢(talk)☣ 00:19, 8 October 2013 (UTC)
- Because it looks a little wired do to the new way you login and create account so could someone redo the way it looks please 90.212.81.76 13:09, 5 October 2013 (UTC)
Different colours sides
Hi in Mediawiki could the background in vector automatically get bigger when the writing over goes the size of the page for example if you look on the support page and you see to different colour background one write one grey and the other blue could it automatic le adjust for the size of the text instead of having a side white please 90.199.55.106 (talk) 15:36, 4 October 2013 (UTC)
- That sounds like a css/js question which is not the sort of question we're ready to answer here. Please try a more appropriate forum.
- If you had some css/js that could do this, we could tell you how to make sure it is loaded correctly. ☠MarkAHershberger☢(talk)☣ 16:56, 8 October 2013 (UTC)
[RESOLVED] I copied my IIS based-Wiki to Linux
It went smooth, after simply copy-pasting the images and files to the new server, using the same database.
One thing I notices doesnt work properly: The site's namespace and my custom namespaces are unaccesible from the new Linux based-wiki, even tho they exist in the database. It's as if the Wiki doesnt realize the site's namespace and the custom namespaces exist, even tho I didnt not change LocalSettings.php. See the site's search on Windows: http://jpg.co.il/view/524fdab06ab58.png/ and on the Linux copy: http://jpg.co.il/view/524fdab06c5b0.png/
How can I fix the linux site?
Thanks, Yoni 87.69.146.131 (talk) 09:25, 5 October 2013 (UTC)
- Are those custom namespaces defined in your LocalSettings.php on the linux machine? They should be the same as the windows one. Ciencia Al Poder (talk) 09:41, 6 October 2013 (UTC)
- Yes, they are defined the same way (I used the same LocalSettings.php file - just copied everything to the Linux server):
define("NS_PORTAL", 100); define("NS_PORTAL_TALK", 101); $wgExtraNamespaces[NS_PORTAL] = "פורטל"; $wgExtraNamespaces[NS_PORTAL_TALK] = "שיחת_פורטל"; $wgNamespacesWithSubpages[NS_PORTAL] = true; $wgNamespacesWithSubpages[NS_PORTAL_TALK] = true;
- Also, in the "Prefixindex" special page, the namespaces can be found but the name it blanked, as seen in the screenshot:
- http://jpg.co.il/view/5251a99dcfe9b.png/
- Do you have any idea how I can get the software to recognize my main namespace and my custom namespaces?
- Thank,
- Yoni 87.69.146.131 18:22, 6 October 2013 (UTC)
- I found the problem, thought I'd put it in writing for the records.
- When I changed to Linux, the LocalSettings.php gave a "Warning: Cannot modify header information..." message. I found that BOM was the problem so I saved the file as text/ansi which got rid of the message but I didnt realize it messed up my Hebrew-texted namespaces (the editor didnt show the problem). I changed the coding to UTF-8 without DOM in Notepad++ and retyped all the Hebrew text and that fixed it. 87.69.146.131 14:56, 7 October 2013 (UTC)
- Good to know, thanks!
- This would be hard to diagnose otherwise Ciencia Al Poder (talk) 09:18, 8 October 2013 (UTC)
Name changing template
Hi how can I create a template that I can change the name of a title of a page without moving so that other template using it and showing the name would show the name differently please 90.212.81.76 (talk) 13:36, 5 October 2013 (UTC)
- I'm confused. Could you clarify what you want, exactly?
- You want to change the title of a page (say [[Foo]]) using a template so that the page can be refered to by the new title (say [[Bar]]) without actually moving the page? ☠MarkAHershberger☢(talk)☣ 20:19, 7 October 2013 (UTC)
Update bugzilla
Hi please update bugzilla at https://bugzilla.wikimedia.org because Mozilla has released an update at http://www.bugzilla.org/news/#release44 90.212.81.76 (talk) 16:34, 5 October 2013 (UTC)
- Hi!
- I am not sure, ho is responsible for maintaining bugzilla, but you should be able to find out via IRC. Or do you want to say that you can help with the update? Help is always appreciated very much! 88.130.75.79 19:50, 5 October 2013 (UTC)
- Well I carnt help I just notify them because if they update bugzilla who ever is responsible of looking after it. Because if they update it will fix bugs and some new things to make requesting bugs easer and more faster to find so they should update it 90.212.81.76 09:34, 6 October 2013 (UTC)
- See Bug 49597. Ciencia Al Poder (talk) 11:17, 6 October 2013 (UTC)
- Thanks 109.155.50.90 13:18, 6 October 2013 (UTC)
- I am responsible for Bugzilla - see the ticket that Ciencia linked to already. We will upgrade to 4.4 in the next 4 or 5 months. AKlapper (WMF) (talk) 09:47, 7 October 2013 (UTC)
- Ok thanks 90.212.81.76 15:11, 7 October 2013 (UTC)
- I am responsible for Bugzilla - see the ticket that Ciencia linked to already. We will upgrade to 4.4 in the next 4 or 5 months. AKlapper (WMF) (talk) 09:47, 7 October 2013 (UTC)
- Thanks 109.155.50.90 13:18, 6 October 2013 (UTC)
- See Bug 49597. Ciencia Al Poder (talk) 11:17, 6 October 2013 (UTC)
- Well I carnt help I just notify them because if they update bugzilla who ever is responsible of looking after it. Because if they update it will fix bugs and some new things to make requesting bugs easer and more faster to find so they should update it 90.212.81.76 09:34, 6 October 2013 (UTC)
How can I create both left-to-right and right-to-left pages in MediaWiki?
- (Apologies for what may be a simple question, but zillions of searches for "bidi" and "right-to-left languages" have just left me more confused than before.)
- MediaWiki 1.21.1
- PHP 5.3.24 (cgi-fcgi)
- MySQL 5.0.96-log
- http://horawiki.org/
- I would like users of my wiki to be able to contribute pages in both LTR and RTL languages, specifically English and Hebrew. I seem to have the interface working correctly per-language (I'm using the Universal Language Selector extension) but things don't work in content pages. How do I tell MediaWiki that a content page is RTL rather than LTR?
- For example, I have pages [2] and [3] which are more-or-less translations of each other. The latter page, however, displays generally as LTR---notice that everything is crammed against the left margin, not the right margin.
- On the other hand, when I look at the page in the WikiEditor "Preview" tab (after edit and before publish) everything looks great. Indeed, I can (mostly) use directional markers amp-lrm-; and amp-rlm-; to get the punctuation correct. (Still struggling with references, but that might work too.) How come the previewer shows the page correctly, but in the wiki it still looks wrong?
- From the documentation, it looks like I might need to set the "PageContentLanguage" or the like. But I can find only hooks and so forth to do this---how does a user set it for a page he is creating?
- Any help greatly appreciated. 216.15.119.210 (talk) 21:28, 5 October 2013 (UTC)
- Comment: The paragraph in my original post that starts "For example, I have pages..." continues with two example URLs. The first of these URLs ends with an exclamation point, which is not being rendered correctly here. It shows up after the external-link icon and isn't part of the URL. That seems to be a bug. I haven't seen it anywhere else and it's irrelevant to my current question. In any case, clicking that URL will take you to a nonexistent page unless you put the exclamation point back onto the end.
- I hope the second URL works for you. It simply says "Welcome to HoraWiki" in Hebrew. /Larry D 21:41, 5 October 2013 (UTC)
- I've fixed the link.
- You may try Extension:PageLanguage.
- Creating pages on a different text direction than the configured one is hard. You may be able to "partially" solve it wrapping all the contents inside
<div dir="rtl"></div>and also inserting the RLO character (RIGHT-TO-LEFT OVERRIDE, U+202E) at the start of the code and the PDF character (POP DIRECTIONAL FORMATTING, U+202C) at the end. Those characters are just for the textarea to display the text in the correct direction, since the textarea doesn't parse dir="rtl". Example (without those unicode characters that KDE doesn't allow me to easily insert here): - כדי למצוא אינפורמציה על ריקודים, יוצרים, ארועים ועוד, התחילו בתפריט הניווט הנמצא בצד ימין.
- אחר ההרשמה, הגולשים מוזמנים לתרום לאתר, לערוך, להוסיף, לתקן, וליצור דפים על פי רצונם. בצד שמאל תחת "עזרה" נמצאים הקישורים הדרושים לכך.
- יבואו הגולשים ללמוד ולהשתעשע. אין חשׁשׁ לקלקל דבר.
- Ciencia Al Poder (talk) 11:13, 6 October 2013 (UTC)
- thanks!! i was looking for an answer for like 19298129821 days but finaly got the answer!!! 79.183.204.235 (talk) 14:58, 27 October 2021 (UTC)
- thanks i was looking for an answer for like 19298129821 days but finaly got the answer!!! 79.183.204.235 (talk) 14:58, 27 October 2021 (UTC)
PHP Catchable fatal error on new installation : Argument 1 passed to ScopedCallback::__construct() must be an instance of Closure
Hi,
I am getting this on a new installation of Mediawiki on Centos 5 with PHP 5.4.20. After a successful install, and upload of LocalSettings, I get the following error when I try to access the site:
PHP Catchable fatal error: Argument 1 passed to ScopedCallback::__construct() must be an instance of Closure, unknown given, called in /var/www/html/mediawiki.prepis.org/includes/cache/MessageCache.php on line 344 and defined in /var/www/html/mediawiki.prepis.org/includes/ScopedCallback.php on line 33
Any tips would be greatly appreciated. Ttasovac (talk) 11:35, 6 October 2013 (UTC)
- Looks like the bit you ran into was backed out after release. I'll see if we can backport the fix. Try this patch. The drupal documentation for applying a patch may help here. ☠MarkAHershberger☢(talk)☣ 20:03, 7 October 2013 (UTC)
Filling parser function input with Semantic forms
Hi,
I have a parser function for integrating with JIRA.
So when I give {{#jira : JIRA-223}} the parser functions would fetch the Type and Status of the issue corresponding to the jira issue id ( in eg : JIRA-223 ) and displays in the page.
I wanted capture the Jira issue id from a Semantic form. So that the jira issue id is a semantic property and is displayed in a more user friendly manner.
I tried reading through the materials provided and checked the examples and code of extensions. I couldn't sort out the problem. Can any one please help to solve this. Arunvgchat (talk) 12:04, 6 October 2013 (UTC)
- Could you show us what you've tried? Is SemanticForms installed properly? What does the page you're expecting to get the data from look like? ☠MarkAHershberger☢(talk)☣ 19:50, 7 October 2013 (UTC)
- Oops sorry I missed replying. I could solve this by using the parser function within the template.
- {{#jira: Jira_ID::}}
- where Jira_ID is a semantic property Arunvgchat (talk) 06:48, 10 December 2013 (UTC)
[RESOLVED] Move the "last modifed"-string
Hi
To fulfill an ISO certified demand I have to add something in the header of the document that shows who and when the document was last edited. This because a printed document should also be mapped to a revision of the same doc in the mediawiki. I have tried to dig into the code, CSS, and all PHPs to find out a way to add that line. I can see that the info is there, the user who last edited, and when he did it, but how do I put it above the "name-of-the-document" with small letters? Very grateful for some help.
Regards Claes Lindvall Clanli (talk) 12:15, 6 October 2013 (UTC)
- I found an extension named PageNotice that saved my bacon.
- Case is closed. Clanli (talk) 20:19, 6 October 2013 (UTC)
Uploading files require create page permissions
The following discussion is closed. 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 currently using MediWiki 1.15.3, PHP 5.2.14 and MySQL 5.5.8
- I have disabled the user page creation by adding this:
- $wgGroupPermissions['user']['createpage'] = false;
- However, editing still works fine and I also want users to be able to upload files, but everytime I try to upload it says:
- "Permissions Errors
- You do not have permission to do that, for the following reason:
- You do not have permission to create new pages."
- What configuration is required in order to prevent regular users from creating pages BUT still allowing them to upload files?
- Thanks,
- Antonio Gomez 134.191.232.71 (talk) 12:41, 6 October 2013 (UTC)
- Hi please upgrade Mediawiki from 1.15.3 to Mediawiki 1.19 please because Mediawiki 1.15 is now unsupported 109.155.50.90 13:14, 6 October 2013 (UTC)
- will this solve it? 46.19.81.160 16:01, 6 October 2013 (UTC)
- It might help but know one can help you because Mediawiki 1.15 being discontinued so please upgrade to Mediawiki 1.19 or latter because it is still supported so people can help you. The difference between 1.15 and 1.19 is a big update and adds some new skins 109.155.50.90 16:49, 6 October 2013 (UTC)
- Please read https://www.mediawiki.org/wiki/Manual:Upgrading 109.155.50.90 16:50, 6 October 2013 (UTC)
- If you can upgrade your php from php 5.2 to 5.3 or later you can get Mediawiki 1.20 or Mediawiki 1.21 109.155.50.90 16:57, 6 October 2013 (UTC)
- ok Thanks, i'll give it a try 109.67.249.77 19:00, 6 October 2013 (UTC)
- Ok I hope it works please make sure to read https://www.mediawiki.org/wiki/Manual:Upgrading this because a lot of the files have been removed and a lot updated and some which arnt needed any more or required 109.155.50.90 19:26, 6 October 2013 (UTC)
- Many thanks for replying quickly. Off topic question - when uploading an image ,for example, wiki creates a description page with all the meta data of the file, and I assume that's were my problem is. Is a description/file page equal to a regular page in wiki? does it have special rights as far as you are familiar with?
- Thanks in advance 109.67.249.77 20:24, 6 October 2013 (UTC)
- As long as you are log in it should allow you to upload files and should have description and file page with it. 109.155.50.90 06:40, 7 October 2013 (UTC)
- What 109.155 says is true, except when
$wgGroupPermissions['user']['createpage'] = false;is in use, as the original message say. - Even if you upgrade, you'll still have the same problem. Maybe Extension:Lockdown may help on that, restricting page creation only for certain namespaces (and not the main one), but IMHO, this kind of restriction seems a bit weird.
- Another option is Extension:AbuseFilter, where you can define rules for that. Ciencia Al Poder (talk) 09:27, 8 October 2013 (UTC)
- hi has the issue been resolved 90.212.81.76 15:06, 11 October 2013 (UTC)
- No, we left it open for you to push a patch to Gerrit. 88.130.94.248 15:28, 11 October 2013 (UTC)
- oh so it hasent work have you tried updating if that doesent work you need to file a bug at bugzilla.wikimedia.org 90.212.81.76 18:19, 11 October 2013 (UTC)
- No, we left it open for you to push a patch to Gerrit. 88.130.94.248 15:28, 11 October 2013 (UTC)
- hi has the issue been resolved 90.212.81.76 15:06, 11 October 2013 (UTC)
- What 109.155 says is true, except when
- As long as you are log in it should allow you to upload files and should have description and file page with it. 109.155.50.90 06:40, 7 October 2013 (UTC)
- Ok I hope it works please make sure to read https://www.mediawiki.org/wiki/Manual:Upgrading this because a lot of the files have been removed and a lot updated and some which arnt needed any more or required 109.155.50.90 19:26, 6 October 2013 (UTC)
- ok Thanks, i'll give it a try 109.67.249.77 19:00, 6 October 2013 (UTC)
- If you can upgrade your php from php 5.2 to 5.3 or later you can get Mediawiki 1.20 or Mediawiki 1.21 109.155.50.90 16:57, 6 October 2013 (UTC)
- Please read https://www.mediawiki.org/wiki/Manual:Upgrading 109.155.50.90 16:50, 6 October 2013 (UTC)
- It might help but know one can help you because Mediawiki 1.15 being discontinued so please upgrade to Mediawiki 1.19 or latter because it is still supported so people can help you. The difference between 1.15 and 1.19 is a big update and adds some new skins 109.155.50.90 16:49, 6 October 2013 (UTC)
- will this solve it? 46.19.81.160 16:01, 6 October 2013 (UTC)
- Hi please upgrade Mediawiki from 1.15.3 to Mediawiki 1.19 please because Mediawiki 1.15 is now unsupported 109.155.50.90 13:14, 6 October 2013 (UTC)
- I found a way using the Extension AbuseFilter with the following Filter and the "disallow" action:
- (page_namespace = 0) &
- (old_wikitext == "") &
- !( 'sysop' in user_rights ) & !contains_any(added_lines, "redirect")
- It is certainly not perfect and notifies the user only after hitting "save", but it works. Halungg (talk) 15:34, 8 October 2020 (UTC)
How can I limit the Special:WantedPages range to only main space?
Currently my wiki have about 7000 articles, and their are some related article really need to be created. However, one of that wiki's editor use bot create tons of template, and these template contain sooo many uncreated links, which push all the real urgent pages to very back.
Therefore, I need to block all the wanted link created by templates to show pages that really need to be created. Are their any setting could limit the Special:WantedPages range to NS=0? Deletedaccount4567435 (talk) 18:01, 6 October 2013 (UTC)
- There isn't anything to do this out of the box. I would suggest writing your own Special:WantedPages to override the installed one in order to accomplish this. That, or file a bug report. ☠MarkAHershberger☢(talk)☣ 17:18, 8 October 2013 (UTC)
[RESOLVED] Adding some Text before output
Hello,
I'd like to add some text at the beginning of an article depending on a query parameter. What is the right hook for it and how can I realize this generally.
Thank you Finswimmer (talk) 07:58, 7 October 2013 (UTC)
- See ArticleViewHeader. ☠MarkAHershberger☢(talk)☣ 18:12, 7 October 2013 (UTC)
- Thanks a lot. Works great! Finswimmer (talk) 13:54, 8 October 2013 (UTC)
Backend Authentication
Hello there,
can you please give me some food for thought, i don´t get it which could be wrong :/
Settings
- MediaWiki 1.21.2
- using XAMPP 3.2.1
Informationen:
Domain= Test.local
OU with Users= Users
LDAPserver= 192.168.100.10
LocalSettings.php:"
# End of automatically generated settings. # Add more configuration options below. require_once( "$IP/extensions/LdapAuthentication/LdapAuthentication.php" ); $wgAuth = new LdapAuthenticationPlugin(); $wgLDAPDomainNames = array( 'test.local' ); $wgLDAPServerNames = array( 'test.local' => '192.168.100.10.test.local' ); $wgLDAPSearchStrings = array( 'test.local' => 'uid=USER-NAME,ou=Users,dc=192.168.100.1,dc=test,dc=com' ); $wgLDAPEncryptionType = array( 'test.local' => 'ssl' ); $wgMinimalPasswordLength = 1;
Wechdenmuell (talk) 10:30, 7 October 2013 (UTC)
- Hi!
- You have not posted a question. Do you have problems with LDAP? The LDAP documentation is here. Or is something else not working? 88.130.120.213 12:36, 7 October 2013 (UTC)
- sry I forgot :/
- I´ve read the documentation for the biggest part and also for my issue.
- I've got the problem that I always get the error "Error at authentication. Passwod is wrong..."
- but I know it´s the right one, because it´s very simple (test network)
- thank you for help 193.158.119.196 13:36, 7 October 2013 (UTC)
- If you check the logs of your ldap server, do you see the authentication being tried?
- Have you tried bumping up the verbosity of the ldap server's log to see if you can get more information? ☠MarkAHershberger☢(talk)☣ 17:26, 7 October 2013 (UTC)
PHP Startup: Unable to load dynamic library
PHP Warning: PHP Startup: Unable to load dynamic library '/usr/lib/php5/20090626/curl.so' - libasn1.so.8: failed to map segment from shared object: Cannot allocate memory in Unknown on line 0 libgcc_s.so.1 must be installed for pthread_cancel to work 91.98.122.229 (talk) 12:49, 7 October 2013 (UTC)
- That is really a Linux, PHP, or Apache question, not a MediaWiki question. But I'll give it a shot anyway. What is your Linux version?
- Also, looks like your system is running out of memory. What are apache and php's memory limits set to? ☠MarkAHershberger☢(talk)☣ 17:50, 7 October 2013 (UTC)
- Thanks :)
- I installed Mediawiki on my own PC, Ubuntu Desktop 64bit 12.04.
- I increased php memory limit to 1024mb from php.ini but still I see error in apache2 log. Honestly I don't know how increase apach2 memory limit.
- Maybe this happens because I installed mediawiki on a desktop??! 91.98.122.229 19:02, 7 October 2013 (UTC)
- I run MediaWiki on my desktop system all the time, so that shouldn't be the problem. And, actually, I just found a stackoverflow question that says that you might need to set Manual:$wgMaxShellMemory. If you adjust that, does it help? ☠MarkAHershberger☢(talk)☣ 19:18, 7 October 2013 (UTC)
- It worked! Thank you very much 91.98.122.229 19:31, 7 October 2013 (UTC)
- I run MediaWiki on my desktop system all the time, so that shouldn't be the problem. And, actually, I just found a stackoverflow question that says that you might need to set Manual:$wgMaxShellMemory. If you adjust that, does it help? ☠MarkAHershberger☢(talk)☣ 19:18, 7 October 2013 (UTC)
Navigation panel and treeview
Hi,
How do i modify the left navigation pane and replace that with a treeview? I have tried so many things. i tried using the treeandmenu extension but to no avail. (Extension:TreeAndMenu) Maybe i did something wrong? theses were the steps i followed:
- I downloaded the zip file required.
- Extracted the file and took only the treeandmenu folder and followed the instructions.
From then on i followed the details but maybe i messed somewhere. can someone help in this? There are a few threads on this but none have seemed to fix my issue. Chambugong (talk) 12:55, 7 October 2013 (UTC)
- By "tree view", do you mean sidebars like on Wikipedia? If so, you need to install and use the Extension:Vector for that. This is in addition to the Vector skin. ☠MarkAHershberger☢(talk)☣ 17:45, 7 October 2013 (UTC)
- Hi, I've installed Wiki on own domain few weeks ago, but I still can't find how to change main left navigation content. Thank you Gogy82 (talk) 00:32, 5 March 2014 (UTC)
- Edit the wiki page MediaWiki:Sidebar in your wiki! See Manual:Interface/Sidebar for help!
- Next time, please open an own thread for your question!
- Thanks! 88.130.69.63 01:14, 5 March 2014 (UTC)
- Hi, I've installed Wiki on own domain few weeks ago, but I still can't find how to change main left navigation content. Thank you Gogy82 (talk) 00:32, 5 March 2014 (UTC)
Default Licenses for file upload
I will a Default Licenses for image upload in a wiki use, becorse its a game wiki. 90% of the images are screenshots or ingame image (extract with a tool out of the game). And all images are under Copyright of the developer, and we have a Default Licenses for them. Only we upload a image from other source we need to select a other Licenses.
And now my Question.
How i configur mediawiki to use a Default Licenses without select one? Shadowslight 15:32, 7 October 2013 (UTC)
- See if this page in the manual helps. ☠MarkAHershberger☢(talk)☣ 18:07, 7 October 2013 (UTC)
- How i edit the MediaWiki:Licenses i know, but i need a Licenses preselection and not the default "none selection" after opern the file:upload.
- For example the preselection is "cc-by-sa-2.5|Attribution ShareAlike 2.5", then anyone will upload a image and he open the file:upload. Then is as preselection the "cc-by-sa-2.5|Attribution ShareAlike 2.5" Licenses to seen and not the " none selection". Shadowslight (talk) 04:29, 8 October 2013 (UTC)
- Because "nolicense" is hard-coded as the default option, the only way I can see to do this is to make all links to the Special:Upload page, include wpLicense in them. For instance: this link which looks like [{{fullurl:Special:Upload|wpLicense=CC-by-sa-2.5}} this link]. ☠MarkAHershberger☢(talk)☣ 14:43, 8 October 2013 (UTC)
Mediawiki connection to MySQL on FreeBSD through IPv6
Hi,
I'm having issue figuring out how to set up connection between my Apache web server and MySQL database using IPv6 as oppose to IPv4. My Apache and MySQL are on separate VMs and I know you direct MediaWiki to its database using $wgDBserver in LocalSetting.php, but does $wgDBserver support an IPv6 address? As far as I know there is support for IPv6 in MediaWiki (http://www.mediawiki.org/wiki/Manual:IPv6_support) but I can't figure out how to set up the IPv6 connection, I've tried using IPv6 address like $wgDBserver = "fe80::1" but it doesn't work. My setup works with an IPv4 setup so I feel like there should be a way around it using IPv6.
If anyone has any suggestion that'd be great. 74.93.209.209 (talk) 17:45, 7 October 2013 (UTC)
- What do you use on the command line to connect to the server over IPv6? Also, what software versions are you using? ☠MarkAHershberger☢(talk)☣ 18:15, 7 October 2013 (UTC)
- I'm using PHP 5.4.7, MediaWiki 1.19, MySQL 5.5 and Apache 2.2 for my setup. As for the command line, I'm not using any aside from allowing MySQL to accept any connection from fe80::*, other than that I've just been playing around with the $wgDBserver in LocalSetting.php. 74.93.209.209 18:28, 7 October 2013 (UTC)
- Can you ssh in and use a command line to access the server? Do you have access to the MySQL server? Can you check its logs? ☠MarkAHershberger☢(talk)☣ 19:06, 7 October 2013 (UTC)
- fwiw, there is this bug for php. You might try opening another bug there. In my searching, I came across this blog post about php 5.3, MySQL and IPv6.
- Bottom line, I don't think this is a MediaWiki problem ☠MarkAHershberger☢(talk)☣ 19:11, 7 October 2013 (UTC)
- I don't believe it's an issue with php, MySQL and IPv6. I ran nc and a test php script and they both succeeded in connecting to my MySQL server. It seems my versions of the software all support IPv6. Although, I changed my $wgDBserver syntax from $wgDBserver = "fe80::2b%em0"; to $wgDBserver = "[fe80::2b%em0]"; and now I'm getting a "Failed to parse IPv6 address" error instead of a "Failed to connect to database" error message. 74.93.209.209 20:38, 7 October 2013 (UTC)
- For some reason I can't save my edits, but for clarification, the % link part is there because I'm using a link-local address. 74.93.209.209 21:55, 7 October 2013 (UTC)
- If your php script can connect, then you're right, it probably indicates a MW problem.
- Could you post your php test script for IPv6 with passwords removed? I haven't really tried IPv6, so I need to see how you're connecting. ☠MarkAHershberger☢(talk)☣ 23:33, 7 October 2013 (UTC)
- I would personally never use link-local addresses anyways, and MediaWiki likely does not support them (IP.php makes no provision for it). Use global IPv6 addresses or IPv4 if possible.
- In any case, those are invalid link-local addresses because after % there can be only a number from 0 to 15, no letter m. Jasper Deng (talk) 07:56, 8 October 2013 (UTC)
- Hi Mark, thanks for your help so far. I thought I had reply to you but I guess not. Anyway, I'm just using mysql_connect("[fc00::2b]", "user", "pass") or die(mysql_error());. Note that I've changed my address to a unique local address to avoid using % and yet it's still giving me Warning: mysql_connect(): Failed to parse IPv6 address "fc00:3306". I also did some more digging on my own and everything is pointing to the lack of IPv6 support in php even though my phpinfo page says my IPv6 is enabled so one would assume this would work, but I guess it might only work for some other functions. 74.93.209.209 19:43, 9 October 2013 (UTC)
- Yep, I would try filing a bug against php, then. ☠MarkAHershberger☢(talk)☣ 21:15, 9 October 2013 (UTC)
- I've searched for mysql_connect(): Failed to parse IPv6 address and I've only came with 3 results... So my guess is that the IPv6 address you're using is not valid.
- Also, the error message mentions fc00:3306 while your input address was fc00::2b, which doesn't match. Ciencia Al Poder (talk) 09:31, 10 October 2013 (UTC)
- I wouldn't use IPv6 private addresses. It's just asking for trouble, in my opinion, unless there's an extremely compelling reason to use them. Jasper Deng (talk) 21:53, 10 October 2013 (UTC)
- Yep, I would try filing a bug against php, then. ☠MarkAHershberger☢(talk)☣ 21:15, 9 October 2013 (UTC)
- For some reason I can't save my edits, but for clarification, the % link part is there because I'm using a link-local address. 74.93.209.209 21:55, 7 October 2013 (UTC)
- I don't believe it's an issue with php, MySQL and IPv6. I ran nc and a test php script and they both succeeded in connecting to my MySQL server. It seems my versions of the software all support IPv6. Although, I changed my $wgDBserver syntax from $wgDBserver = "fe80::2b%em0"; to $wgDBserver = "[fe80::2b%em0]"; and now I'm getting a "Failed to parse IPv6 address" error instead of a "Failed to connect to database" error message. 74.93.209.209 20:38, 7 October 2013 (UTC)
- I'm using PHP 5.4.7, MediaWiki 1.19, MySQL 5.5 and Apache 2.2 for my setup. As for the command line, I'm not using any aside from allowing MySQL to accept any connection from fe80::*, other than that I've just been playing around with the $wgDBserver in LocalSetting.php. 74.93.209.209 18:28, 7 October 2013 (UTC)
[Resolved] Decipher failure message - file/directory permission
The following failure message occurred when attempting database entry. Examples include submitting new wiki entries, edit pre-existing pages and sending email verification. Please advise for appropriate course of action.
Warning: require(/mnt/target03/360794/605927/www.gamification.co/web/content/EngageDB/includes/UserMailer.php) [function.require]: failed to open stream: Permission denied in /mnt/target03/360794/605927/www.gamification.co/web/content/EngageDB/includes/AutoLoader.php on line 1160
Fatal error: require() [function.require]: Failed opening required '/mnt/target03/360794/605927/www.gamification.co/web/content/EngageDB/includes/UserMailer.php' (include_path='.:/usr/share/pear:/usr/share/php') in/mnt/target03/360794/605927/www.gamification.co/web/content/EngageDB/includes/AutoLoader.php on line 1160 72.225.247.172 (talk) 18:25, 7 October 2013 (UTC)
- The important bits are these two:
failed to open stream: Permission deniedFailed opening required '.../includes/UserMailer.php'- There appears to be a problem with the permissions of the files or their directories.
- Check that the includes directory has something like rwxr-xr-x as permissions and that UserMailer.php has rw-r--r--.
- If they don't, change them. If that looks ok, then let me know. We'll have to do some more digging. ☠MarkAHershberger☢(talk)☣ 19:04, 7 October 2013 (UTC)
- That actually did it. Thank you so much!
- notes: The usermailer.php was 000 or ----- prior to the change. 72.225.247.172 19:30, 7 October 2013 (UTC)
How to use API:Edit to edit the content of a section, but maintain the title of the section
Hi,
I intend to use API:Edit to edit the content of a section. For example, I plan to edit the section name "Wiki" which is the No.1(from 0) section. I set the parameter section as "section('1')". When I run the script, the page changed - the content of section 1 changed but the title was missed. The new content followed with the content of section 0. How can I maintain the title of the section?
Thanks! Asdk77 (talk) 18:33, 7 October 2013 (UTC)
- I'm confused by your explanation of what is happening. Could you point to your wiki where this is happening? Alternatively, could you list out the API calls you're making and the order that you're making them in?
- You may be using the API incorrectly.
- An alternative would be to edit the entire page using the API. ☠MarkAHershberger☢(talk)☣ 18:56, 7 October 2013 (UTC)
- Thank you for replying!
- I am learning how to use mediawiki API editing pages and testing on my local server. The previous page is like as following:
Page Title....Section 1....Section 2....- I want to change the content of section 1. I set the parameter "section" as "section('1')" and add the parameter "text(...)" followed by. Then I run the script (written in PHP), the content of Section 1 changed, but the title "Section 1" was missed. I want to keep the title. How can I do? Asdk77 (talk) 19:38, 7 October 2013 (UTC)
- The title is part of the section, so you have to make sure it is the first line of whatever your replacement text is. ☠MarkAHershberger☢(talk)☣ 20:39, 7 October 2013 (UTC)
- Thank you! Asdk77 (talk) 19:07, 8 October 2013 (UTC)
- If the section title is deleted with its contents, how can I create a title for this part after I replace it with new contents? Thanks! Asdk77 (talk) 18:45, 9 October 2013 (UTC)
- Just put a title there in the wikitext that you post.
- For example, if you have an old section like this:
== Original title ==This section, with its title, is deleted.- Then you can post a replacement like this:
== Replacment title ==This section, with the replacement title, is what is here now.- You could even "keep" the title if you just post it when you edit the section:
== Original title ==This is new section text.- What have you tried so far? ☠MarkAHershberger☢(talk)☣ 21:14, 9 October 2013 (UTC)
- The title is part of the section, so you have to make sure it is the first line of whatever your replacement text is. ☠MarkAHershberger☢(talk)☣ 20:39, 7 October 2013 (UTC)
How can I check the existing pages
Hi, I intend to see all the existing pages. It's said that all the pages are stored in page table. But where the page table is? I didn't find one in my database.
Thanks! 99.246.238.137 (talk) 03:15, 8 October 2013 (UTC)
- See page_table, check out Special:AllPages on your wiki, or use API:Allpages. ☠MarkAHershberger☢(talk)☣ 16:43, 8 October 2013 (UTC)
How to check whether a page exists or not
Hi, I intend to check whether a page exists or not. I know how to use mediawiki api to show its properties, but I don't know how to get the content(information of the file in xml) from a url which called a api for my php script. So I plan to check the mediawiki database. Any suggestions?
Thanks! 198.164.227.134 (talk) 19:18, 8 October 2013 (UTC)
- The API does return information in XML format.
- Example: [4]. Check for the
missing=""property. - If you want to fiddle with the database, look at the page table Ciencia Al Poder (talk) 09:36, 9 October 2013 (UTC)
Limiting access to view certain pages
We are on MediaWiki.
I am an administrator and our manager is using our wiki page to store some information that should only be viewable/editable by management (ex. bank account information, tax IDs). Is there a way to limit viewing to only a few users and/or not allow certain users to view a page?
Thank you. 66.147.0.46 (talk) 19:24, 8 October 2013 (UTC)
- You would want to read Manual:Preventing access, specifically the Simple private wiki example. Ciencia Al Poder (talk) 09:32, 9 October 2013 (UTC)
- In addition to the page Ciencia gave you, also see Extension:Lockdown for restricting access to a namespace for everyone not in a particular group. ☠MarkAHershberger☢(talk)☣ 11:47, 9 October 2013 (UTC)
Translate extension not displaying languages menu
Hello,
Versions
MediaWiki 1.21.1
PHP 5.3.23 (litespeed)
MySQL 5.1.70-cll
I've installed Translate extension and everything worked great but when I create a translation for a given page the language menu doesn't appear
so I can't link a page and its translated version.
Example : for http://www.triathlonadvisor.com/index.php/Triathlon I've created a French version (http://www.triathlonadvisor.com/index.php/Triathlon/fr) but the two are not linked automatically.
I can of course add the language markup myself but it gets messy because when I'm in the French version I don't have the language menu.
Thanks,
Bruno Da Silva 79.94.11.78 (talk) 19:34, 8 October 2013 (UTC)
- It looks like you have used the templates from this site. Do you still need something done? ☠MarkAHershberger☢(talk)☣ 20:43, 15 October 2013 (UTC)
Thumbnails not generating
For some reason thumbnails not generating in articles. Please see this article for example. Thank you. Titodutta (talk) 03:38, 9 October 2013 (UTC)
- Works for me Ciencia Al Poder (talk) 09:37, 9 October 2013 (UTC)
Does MediaWiki run slower from a portable stick?
Hi, just wanted to ask: is running a wiki on a stick slower than running it from your computer?
I had a small wiki that I ran off of localhost, but my computer died. I'm thinking about starting it back up, but I'd like to make it a bit more portable. Jpman22 (talk) 06:51, 9 October 2013 (UTC)
- It is probably slower unless you have USB 3.0. But if this is just for personal use, it will probably be ok. ☠MarkAHershberger☢(talk)☣ 11:36, 9 October 2013 (UTC)
- A USB stick usually contains a SSD (and not harddisc with rotating parts). SSDs are much faster than old HDD drives, but to be faster, they must be connected as a harddrive. When in contrast you use a USB port, this will be notably slower than any internal device; also slower than an internal HDD. If you have the choice, you get the fastest results with an internal SSD.
- However, apart from the purchase advice you might want to start backing up your stuff regularly. That way you won't have to start over again in the future. 88.130.68.156 22:04, 9 October 2013 (UTC)
- Actually, I have a question about backups. I think my old laptop's hard drive is probably still fine, so I'm gonna try to turn it into an external harddrive to access my old files, which should include all of my XAMP and wiki files. Could I just copy and paste those into my new laptop and run from those? Jpman22 (talk) 01:54, 14 October 2013 (UTC)
- I'm not a fan of portable MediaWiki because to me, it makes little sense to be carrying around the webserver and MySQL like this. The main limitation will be indeed the USB port. Jasper Deng (talk) 03:01, 11 October 2013 (UTC)
- I've run MediaWiki off a USB port, and while it is slower than on an actual hard drive (of any type), for a small personal wiki, it's not a bad idea if you are frequently on the go. However, I would make sure it's a USB 3.0 port you are using, as older ports can make things ever slower.
- I would consider it impractical for a really large wiki, which would probably be better off on any type of hard drive, external or internal. Arcane21 (talk) 04:14, 11 October 2013 (UTC)
- Unfortunately the new computer I bought does not have a 3.0 port, but based on all of your responses I suppose it's still worth a shot to try it out, since it's a smaller wiki. At least, I have nothing to lose by trying it out :p
- Thanks! Jpman22 (talk) 01:47, 14 October 2013 (UTC)
Internal error when creating a new user
Hi,
I've just installed Mediawiki with sqlite support and I got the following error when trying to create a new user account:
Fatal exception of type MWException
Enabling $wgShowExceptionDetails, I get the following instead:
User::addToDatabase: hit a key conflict attempting to insert a user row, but then it doesn't exist when we select it!
Backtrace:
#0 /var/www/localhost/htdocs/mediawiki/includes/specials/SpecialUserlogin.php(468): User->addToDatabase()
#1 /var/www/localhost/htdocs/mediawiki/includes/specials/SpecialUserlogin.php(453): LoginForm->initUser(Object(User), false)
#2 /var/www/localhost/htdocs/mediawiki/includes/specials/SpecialUserlogin.php(236): LoginForm->addNewAccountInternal()
#3 /var/www/localhost/htdocs/mediawiki/includes/specials/SpecialUserlogin.php(178): LoginForm->addNewAccount()
#4 /var/www/localhost/htdocs/mediawiki/includes/SpecialPage.php(613): LoginForm->execute(NULL)
#5 /var/www/localhost/htdocs/mediawiki/includes/SpecialPageFactory.php(487): SpecialPage->run(NULL)
#6 /var/www/localhost/htdocs/mediawiki/includes/Wiki.php(291): SpecialPageFactory::executePath(Object(Title), Object(RequestContext))
#7 /var/www/localhost/htdocs/mediawiki/includes/Wiki.php(565): MediaWiki->performRequest()
#8 /var/www/localhost/htdocs/mediawiki/includes/Wiki.php(458): MediaWiki->main()
#9 /var/www/localhost/htdocs/mediawiki/index.php(59): MediaWiki->run()
#10 {main}
This is my actual configuration:
Mediawiki - 1.21.2 SQLite - 3.7.17 PHP - 5.5.4
Any clue what might be causing the problem? 81.47.192.243 (talk) 10:52, 9 October 2013 (UTC)
- Couldn't reproduce with MW 1.21.2, sqlite 3.7.13 and php 5.4.4... trying php 5.5 ☠MarkAHershberger☢(talk)☣ 17:56, 9 October 2013 (UTC)
- Could you file a BUGREPORT? ☠MarkAHershberger☢(talk)☣ 18:22, 9 October 2013 (UTC)
- Done! => Bug#55552 81.47.192.243 08:22, 10 October 2013 (UTC)
- I have a similar or same bug, but with PostgreSQL 8.4.9. See Bug#55552. MikaelLindmark (talk) 08:15, 9 December 2013 (UTC)
- Done! => Bug#55552 81.47.192.243 08:22, 10 October 2013 (UTC)
[RESOLVED] Adding a text or link to registration page
How can I add a text or link to registration page without editing mediawiki source files? Is there any way? Omidh (talk) 14:07, 9 October 2013 (UTC)
- Hi!
- Yes there is: View the registration page and add to the URL &uselang=qqx. That will show you the name of the different labels. Once you know the name of the label, which you want to change, you can edit the according text inside the MediaWiki namespace of your wiki.
- For example, when the label is shown as "(mytalk)", go to the wiki page MediaWiki:mytalk to edit the text for this label.
- You can edit the text in the different languages by adding the language code to the URL.
- E.g. to edit the German (de) text of the former label go to MediaWiki:mytalk/de. 88.130.127.184 14:40, 9 October 2013 (UTC)
- Thanks! Omidh (talk) 14:51, 9 October 2013 (UTC)
Change links position on header
Is there any way to change positions of links on the header? I mean the "Register", "Login and ... links Omidh (talk) 14:14, 9 October 2013 (UTC)
- Hi!
- Yes, you can do that with CSS. You can put your own CSS rules into the wiki page MediaWiki:Common.css; they will then overwrite the rules, which come with the skin by default. You can use a tool like Furebug to see, which rules you want to modify. 88.130.127.184 14:33, 9 October 2013 (UTC)
How do I get Template:Languages to work on other wikis?
I exported it selecting "include templates" to get all the templates included in it. Are there still any sub dependent templates? What do I need to do to get this to work?
http://development.sashaweb.net/Main_Page Lieutenant Aleksandr Reznov 00:56, 10 October 2013 (UTC)
- Looks like it is working, right? ☠MarkAHershberger☢(talk)☣ 15:15, 15 October 2013 (UTC)
- It seems to be showing some sort of tags though, like maybe the template relies on some tag extension that isn't installed? ఠ_ఠ Inquisitor Sasha Ehrenstein des Sturmkrieg Sector (Talk) (Contr) 04:07, 20 October 2013 (UTC)
- You probably need Extension:Translate. Legoktm (talk) 17:20, 21 October 2013 (UTC)
- I just deleted the
bditags and it seems to work. ఠ_ఠ Inquisitor Sasha Ehrenstein des Sturmkrieg Sector (Talk) (Contr) 03:23, 26 October 2013 (UTC)
- I just deleted the
- You probably need Extension:Translate. Legoktm (talk) 17:20, 21 October 2013 (UTC)
- It seems to be showing some sort of tags though, like maybe the template relies on some tag extension that isn't installed? ఠ_ఠ Inquisitor Sasha Ehrenstein des Sturmkrieg Sector (Talk) (Contr) 04:07, 20 October 2013 (UTC)
Hide a top level category on the Special:UncategorizedCategories
Hello
How I can hide (prevent the apperance) a top level category on the Special:UncategorizedCategories page?
At the moment I've assigned 'Main' category to the 'Main' category. But it isn't probably a good solution?
I've used MW-1.21.2.
Dracorp (talk) 12:14, 10 October 2013 (UTC)
- See the note at the top of Special:UncategorizedCategories on this wiki. It should give you an idea of how to do this. ☠MarkAHershberger☢(talk)☣ 15:21, 15 October 2013 (UTC)
[RESOLVED] is not working on my Mediawiki install
The magic word is not working on my Mediawiki install; it simply appears as text on the page in which it is used. I am using version 1.21.1 of Mediawiki. I have seen two suggestions for solving this problem that have not helped.
The first is to use $htEditTabLink = false; I'm not sure what that does but when applied in my localsettings.php it doesn't help. The second I have seen is to upgrade the Mediwiki install; the cases I have seen are users with 1.18 or so and the suggestions is 1.20 or higher which I have.
My page is here where you can see the error and the error can be seen at the top:
http://wiki.tankpedia.org/Tankpedia:Picture_of_the_day/October_2013 173.165.184.50 (talk) 14:23, 10 October 2013 (UTC)
- Hi!
- You miss one underline at the beginning of the magic word. It must not be "_NOEDITSECTION__", but "__NOEDITSECTION__". 88.130.68.156 14:38, 10 October 2013 (UTC)
- Thanks! That fixed it. 173.165.184.50 14:47, 10 October 2013 (UTC)
Extension > Universal Language Selector > Input methods > ru-phonetic (Russian Phonetic input)
Russian Phonetic Input Method.
Some Cyrillic symbols are in the wrong positions:
Вв, Ээ, Зз, Ьь, Цц, Жж, and Ёё. --Victor•talk 15:21, 10 October 2013 (UTC)
- Could you file a BUGREPORT for this? ☠MarkAHershberger☢(talk)☣ 15:39, 10 October 2013 (UTC)
Problem with Mediawiki:Sitenotice on my wiki
Well it works fine, but there is a strange layout of the form. Look screenshot, I have marked a problem with red line! I don't know how remove a margin from the right Fokebox (talk) 17:26, 10 October 2013 (UTC)
- By editing the CSS. :) Hard to say what the reasons are without taking a look at it... AKlapper (WMF) (talk) 16:11, 11 October 2013 (UTC)
- Well I have just created mediawiki website, and there isn't any common.css page!
- Do you have any ideas what it can be? I test wiki locally Fokebox (talk) 20:43, 11 October 2013 (UTC)
- To discover what CSS is causing the problem, you could use Firefox's Page Inspector or Chrome's DevTools. ☠MarkAHershberger☢(talk)☣ 15:13, 15 October 2013 (UTC)
- Thx .. I try to find out this way and report here Fokebox (talk) 16:28, 15 October 2013 (UTC)
- I have updated my wiki and question is resolved! Thx all Fokebox (talk) 20:20, 15 October 2013 (UTC)
- To discover what CSS is causing the problem, you could use Firefox's Page Inspector or Chrome's DevTools. ☠MarkAHershberger☢(talk)☣ 15:13, 15 October 2013 (UTC)
Blannk Page after upgrading media wiki 1.9.2
MediaWiki 1.9.2 Installation Don't forget security updates! Keep an eye on the low-traffic release announcements mailing list.
Checking environment...
Please include all of the lines below when reporting installation problems. PHP 5.5.4 installed
I get this after upgrading and can't access the setup 159.46.196.8 (talk) 08:32, 11 October 2013 (UTC)
- It's on Windows Server 2012. 159.46.196.8 08:33, 11 October 2013 (UTC)
- Do you mean MediaWiki 1.19? Version 1.9 has been deprecated ages ago.
- Please be more specific about your error message. Jasper Deng (talk) 09:17, 11 October 2013 (UTC)
[RESOLVED] Why does a link inside a template not work?
Hi guys,
I want to create a template with a link to the login page. This is the link I want:
[{{SERVER}}/Special:UserLogin?returnTo={{FULLPAGENAME}}&action=edit Login and contribute]
Basically, this link works as expected.
But there is one problem:
When I put this link inside a template, then it just won't show up.
I have this template:
{| class="box message imagebox {{{2}}}"
| class="left image note"|
| class="spc1" |
| class="type" |Note
| class="spc2" |
| {{{1}}}
|}
I use the template like so:
{{Note|[{{SERVER}}/Special:UserLogin?returnTo={{FULLPAGENAME}}&action=edit Login and contribute]}}
So where you see the {{{1}}} in the template, there MediaWiki should show the link.
But it does not. At that place I just do not get any output.
Am I doing something wrong? 88.130.94.248 (talk) 16:58, 11 October 2013 (UTC)
- That happens when the URL contains a "=" sign. This tells the template that the text before it is the parameter name, and the text after it is the parameter value.
- So basically, MediaWiki is seeing it as:
- Parameters:
- name: [{{SERVER}}/Special:UserLogin?returnTo
- value: {{FULLPAGENAME}}&action=edit Login and contribute]
- To fix this, you need to explicitly use named parameters. Since your template doesn't use those, you can use the parameter index as the name. For example, try this (note the 1= ):
- Ciencia Al Poder (talk) 09:42, 15 October 2013 (UTC)
{{Note|1 = [{{SERVER}}/Special:UserLogin?returnTo={{FULLPAGENAME}}&action=edit Login and contribute]}}- Hi!
- Thank you very much! I didn't know that MediaWiki separates texts inside a template into parameter and value pairs. I now use the syntax, which you proposed, e.g. 1=http://domain.org?returnto=Main_Page and it is working as expected.
- Thanks again! 88.130.70.214 19:14, 15 October 2013 (UTC)
Help! How do I change my MediaWiki username?
How do I change my username on MediaWiki? I can't find an administrative page where I can put in a request. Apparently, I'm logged via an older username and I'd like to use my standard username when I'm exploring this wiki.
Thanks for any help you can provide. Liz (talk) 22:27, 11 October 2013 (UTC)
- Do you mean this wiki? Rename requests go at Project:Requests. Jasper Deng (talk) 22:47, 11 October 2013 (UTC)
- YES! Thanks, Jasper, that is exactly what I needed and couldn't find. Much appreciated! Nwjerseyliz (talk) 21:53, 12 October 2013 (UTC)
- I'll do your request once you verify that Liz is a username you own. Jasper Deng (talk) 23:13, 12 October 2013 (UTC)
- YES! Thanks, Jasper, that is exactly what I needed and couldn't find. Much appreciated! Nwjerseyliz (talk) 21:53, 12 October 2013 (UTC)
(solved) How to change table sort icons?
I'm working on a wiki (mediawiki 1.19.3) which has dark css theme that makes the default sorting icons for sortable class almost invisible. How do I change these icons? I have a feeling that it could be achieved by modifying the sorting js via common.js, but I can't find information on this anywhere. 91.157.56.96 (talk) 05:59, 12 October 2013 (UTC)
- Hi!
- All skin files are in the folder skins/ in your file system. Check the page source code to get the exact name and then replace the files with what you want. If - as you say - you have modified the default skin, then you should have an own folder for the files of your skin and most probably in there the icons should be. 88.130.65.166 10:35, 12 October 2013 (UTC)
- Thanks for the reply!
- However, when I check page sources for any table.jquery-tablesorter, the images for sorting icons are background-image: url("data:image/gif;base64,(base64 string for the image data)"); - so they don't directly point to a file, but a base64 encoded stream that contains the image data. Which is why I had no clue how to edit them.
- The skin has been edited via Mediawiki:Skinname.css only, so I don't know what's going on in the filesystem side.
- I don't have direct access to the file system (I'm just an admin on the wiki, but not the owner of the website) but I can contact the owner once I have a solution. Are you certain the files still exist and are used if page sources point to image data strings rather than the files? 91.157.56.96 12:03, 12 October 2013 (UTC)
- Those images are embedded directly in the CSS file by ResourceLoader. Append debug=true to the URL (see ResourceLoader/Features#Debug_mode) so the generated CSS isn't minified and it includes a URL to the file Ciencia Al Poder (talk) 09:56, 14 October 2013 (UTC)
- Thank you! I don't think I would've figured that one out myself, being as clueless about mediawiki's internals as I am.
- And in case someone else should stumble upon the same problem: You can simply point the table.jquery-tablesorter th.headerSort, th.headerSortUp and th.headerSortDown background-images to other files via CSS - ResourceLoader seems to handle it without problems. 91.157.56.96 15:14, 15 October 2013 (UTC)
- Those images are embedded directly in the CSS file by ResourceLoader. Append debug=true to the URL (see ResourceLoader/Features#Debug_mode) so the generated CSS isn't minified and it includes a URL to the file Ciencia Al Poder (talk) 09:56, 14 October 2013 (UTC)
How to create an all in one photo
Hi how do I create an all in one image like File:LiquidThreads sample screenshot.jpg this because I am going to update the photo File:LiquidThreads sample screenshot.jpg because it hasent been updated in a while 90.212.81.76 (talk) 11:10, 12 October 2013 (UTC)
- That image is just a screenshot from a monitor in portrait mode. ☠MarkAHershberger☢(talk)☣ 15:07, 15 October 2013 (UTC)
Page title flashes into view and then hides
Hi,
I have upgraded from MW 1.13 to 1.21 and now I'm experiencing this:
When a page is loaded, the page title is visible for a short time and when the complete page is loaded the title is hidden again. On my previous 1.13 wiki, the page title is hidden all the time.
Now the page displaying is not smooth, the title should never be visible when initially loading and when the page is completely loaded.
You can see the effect here:
http://www.s1002987-5945.mijnreus.nl/tdwiki.daverabelink.net/index.php?title=Main_Page
Just reload the page again and again to see that the title pops up and is hidden afterwards.
How do I completely hide the title? It should not be displayed, I do not need these page titles. 82.161.55.231 (talk) 12:17, 12 October 2013 (UTC)
- Hi!
- Your wiki currently is not reachable so that I cannot check, what the problem with the "blinking" headline is.
- However, in your wiki, go to the wiki page MediaWiki:Common.css and add these lines:
#firstHeading {display: none;}- I have not tested that, but this CSS rule should hide the heading. 88.130.65.166 14:02, 12 October 2013 (UTC)
- I tried this and yes the page titles are hidden now without popping up at initial load.
- (this applies for all pages, what I wanted)
- Thanks for this tip ! 82.161.55.231 15:07, 12 October 2013 (UTC)
- It looks like the page titles are hidden via javascript in your Common.js and processing that javascript can take a little while.
- Removing the code from your Common.js and adding .firstHeading { display:none; } to your Common.css should solve it. 91.156.198.247 16:13, 12 October 2013 (UTC)
- Note that it's not a class, but an ID, which is used in the HTML source code. So trying to hide it with ".firstHeading" won't work. It is "#firstHeading" as in my example above. 88.130.101.232 12:58, 14 October 2013 (UTC)
Add another language to MediaWIki
Hi, I want to add another language to my mediawiki website. I followed Translate extensions instruction but that wasn't what I want. I want something like this: LANGUAGE_CODE.example.com en.example.com
or
example.com/wiki/LANGUAGE_CODE example.com/wiki/en
is it possible? Omidh (talk) 14:00, 12 October 2013 (UTC)
- Take a look at Multilingual MediaWiki, and specially at Manual:Wiki family Ciencia Al Poder (talk) 09:48, 14 October 2013 (UTC)
Edit review before publish
How to review an edit before getting published on the mediawiki? Omidh (talk) 16:53, 12 October 2013 (UTC)
- Check out Extension:FlaggedRevs. ☠MarkAHershberger☢(talk)☣ 14:56, 15 October 2013 (UTC)
You do not have permission to edit user rights on other wikis
This post by Revibot was moved on 2015-07-11. You can find it at Extension talk:LDAP Authentication/2013#h-You_do_not_have_permission_to_edit_user_rights_on_other_wikis-2013-07-31T12:22:00.000Z. wargo (talk) 18:23, 12 October 2013 (UTC)
How to set up a deletion deadline limit?
I got a strange Administrator who keep trying to mass delete all the old articles in my wiki. I would like to set a limits that articles older than 1 years (create day or last edit day) will be auto-locked. So Administrators will not be able to delete that page.
That guy is a great manager expect he always tring to delete articles for strange reasons. I do not want to kick he out, but really want to limit his deletion rights. Deletedaccount4567435 (talk) 23:12, 12 October 2013 (UTC)
- You could set up a separate group where people have permission to delete articles, take away deletion rights for Administrators, and then only put people you want to have the right in the new group.
$wgGroupPermissions['sysop']['delete'] = false; $wgGroupPermissions['bureaucrat']['delete'] = false; $wgGroupPermissions['deleters']['delete'] = true;
- Also see $wgDeleteRevisionsLimit which may allow you to let this administrator delete some pages, but restrict his rights somewhat. ☠MarkAHershberger☢(talk)☣ 15:03, 15 October 2013 (UTC)
- Thank you! It works! Zoglun (talk) 23:02, 23 November 2013 (UTC)
$wgSearchType = 'LuceneSearch';
hi please fix an issue with $wgSearchType = 'LuceneSearch';this please because it says on my website an error has occurred while searching error fetching url couldn't connect to host. but if I remove $wgSearchType = 'LuceneSearch'; this from localsettings and leve the server it is to connect to and the port it works so please fix the issue. 86.171.32.116 (talk) 12:35, 13 October 2013 (UTC)
- It sounds like you don't have the extension or Lucene installed properly, but if you do, you need to open a BUGREPORT. ☠MarkAHershberger☢(talk)☣ 15:05, 15 October 2013 (UTC)
- I have extension:mw search installed but not the lucerne extension because I doint know how to do it without ssh access and with shared hosting 90.212.81.76 15:34, 15 October 2013 (UTC)
- Lucene requires another service to run on your host. You probably can't use it with shared hosting, but if you really want to, talk to your hosting company. ☠MarkAHershberger☢(talk)☣ 20:42, 15 October 2013 (UTC)
- I have extension:mw search installed but not the lucerne extension because I doint know how to do it without ssh access and with shared hosting 90.212.81.76 15:34, 15 October 2013 (UTC)
[URGENT - NEED DIRE HELP IMMEDIATELY] User rights cannot be added?
Hi, I am using global user rights in my wiki family. On a subwiki, I cannot assign NORMAL user rights. 173.173.78.73 (talk) 12:52, 13 October 2013 (UTC)
- Hi,
- how did you set up global user rights? And what do you mean with "normal" user rights? 88.130.115.6 20:20, 13 October 2013 (UTC)
- The database shows that user rights are in. I have a central wiki "central_" and the GlobalUserrights extension and tables installed with GUR's table under the "central_" prefix. I'm talking about local user rights; you should understand! Grapetheratclerk 15:47, 17 October 2013 (UTC)
- Should I use another Global User Rights extension? Grapetheratclerk 23:55, 19 October 2013 (UTC)
- The database shows that user rights are in. I have a central wiki "central_" and the GlobalUserrights extension and tables installed with GUR's table under the "central_" prefix. I'm talking about local user rights; you should understand! Grapetheratclerk 15:47, 17 October 2013 (UTC)
- What error messages are you seeing when you try assigning rights locally? Legoktm (talk) 17:23, 21 October 2013 (UTC)
- No errors, let's say I check off "Administrator" and "Bureaucrat" for User A, then when I click "Assign user rights", the check boxes disappear. When I do Special:ListUsers/sysop or /bureaucrat, User A displays but it does not mention they are an admin or bureaucrat. When User A logs in, they will not gain the rights. Grapetheratclerk 00:11, 24 October 2013 (UTC)
- I am running two 1.22wmf16s and 1.21.2s and 1.21.1s on the same database, with a 1.22wmf16 as the central one. However, this shouldn't affect local rights, right? Grapetheratclerk 14:55, 26 October 2013 (UTC)
- No errors, let's say I check off "Administrator" and "Bureaucrat" for User A, then when I click "Assign user rights", the check boxes disappear. When I do Special:ListUsers/sysop or /bureaucrat, User A displays but it does not mention they are an admin or bureaucrat. When User A logs in, they will not gain the rights. Grapetheratclerk 00:11, 24 October 2013 (UTC)
Extension:MobileFrontend
Hi how can I enable mobile view for example my website at http://simple-random-wikisaur.tk to http://m.simple-random-wikisaur.tk like http://en.m.wikipedia.org and is enabled and when click show desktop it would redirect to http://en.wikipedia.org . Extension:MobileFrontend 86.171.32.116 (talk) 13:25, 13 October 2013 (UTC)
- I just want to ask WHAT is random wikisaur? There are so many it's scary! Grapetheratclerk 13:48, 13 October 2013 (UTC)
- Just a website that any one can edit 86.171.32.116 13:51, 13 October 2013 (UTC)
- Including how to force your website to go from http://simple-random-wikisaur.tk to http://m.simple-random-wikisaur.tk so that It would detect your running a mobile and would automatically redirect you to the mobile website and when click desktop it would go back to the desktop page like wikipedia does 86.171.32.116 14:28, 13 October 2013 (UTC)
- And how can I redirect it for the mobile website to desktop because I used the the mobile template in LocalSettings to direct it to the mobile when clicked on mobile links but I doint know how to redirect back if desktop 86.171.32.116 18:55, 13 October 2013 (UTC)
$elasticaDir = $dir . 'Elastica/lib/Elastica/';
hi there is no such file as $elasticaDir = $dir . 'Elastica/lib/Elastica/'; because there is no folder called lib in Extension:Elastica I have mediawiki 1.22 wmf 21 please fix the issue 86.171.32.116 (talk) 14:52, 13 October 2013 (UTC)
- if you check https://git.wikimedia.org/tree/mediawiki%2Fextensions%2FElastica the files do not exists so please fix the issue 86.171.32.116 15:01, 13 October 2013 (UTC)
- See the README where it talks about using
git submoduleto get that code. ☠MarkAHershberger☢(talk)☣ 14:55, 15 October 2013 (UTC)- Oh I carnt use ssh on my web hosting 90.212.81.76 15:34, 15 October 2013 (UTC)
- You could do the checkout locally and then upload it. ☠MarkAHershberger☢(talk)☣ 20:40, 15 October 2013 (UTC)
- Is there any instruction on Mediawiki on how to do it locally please 90.212.81.76 13:38, 16 October 2013 (UTC)
- See Download from Git for some starter information on git. ☠MarkAHershberger☢(talk)☣ 23:51, 16 October 2013 (UTC)
- What do I use to download it to my computer because I carnt use ssh because my host doesent allow but how can I download it to my computer to upload to my website 90.212.81.76 15:46, 17 October 2013 (UTC)
- You could use git to download it to your computer, but it looks like you can also download it from github. ☠MarkAHershberger☢(talk)☣ 16:27, 17 October 2013 (UTC)
- Ok thanks I have downloaded it thanks for your help but could you please upload the files from that site to git for the extension please so when downloading it can download the whole file instead of just half of one and then downloading the other half from a different site or could you please add the link to the extension please 86.135.249.249 17:34, 19 October 2013 (UTC)
- If you want that, you should file a BUGREPORT. ☠MarkAHershberger☢(talk)☣ 01:25, 20 October 2013 (UTC)
- Ok thanks I have downloaded it thanks for your help but could you please upload the files from that site to git for the extension please so when downloading it can download the whole file instead of just half of one and then downloading the other half from a different site or could you please add the link to the extension please 86.135.249.249 17:34, 19 October 2013 (UTC)
- You could use git to download it to your computer, but it looks like you can also download it from github. ☠MarkAHershberger☢(talk)☣ 16:27, 17 October 2013 (UTC)
- What do I use to download it to my computer because I carnt use ssh because my host doesent allow but how can I download it to my computer to upload to my website 90.212.81.76 15:46, 17 October 2013 (UTC)
- See Download from Git for some starter information on git. ☠MarkAHershberger☢(talk)☣ 23:51, 16 October 2013 (UTC)
- Is there any instruction on Mediawiki on how to do it locally please 90.212.81.76 13:38, 16 October 2013 (UTC)
- You could do the checkout locally and then upload it. ☠MarkAHershberger☢(talk)☣ 20:40, 15 October 2013 (UTC)
- Oh I carnt use ssh on my web hosting 90.212.81.76 15:34, 15 October 2013 (UTC)
- See the README where it talks about using
Sharing images between two wikis
Hi how do I share images between my two wikis because I would like to just have one folder with images in it sharing the images between two wikis I have one domain and one subdomain how can I do it 86.171.32.116 (talk) 15:13, 13 October 2013 (UTC)
- You can use $wgForeignFileRepos to set this up. 153.18.25.209 19:00, 14 October 2013 (UTC)
- There's also settings that can be configured for creating a single website that images from all wikis can be uploaded to. With ForeignFileRepos, you'll still have separate image upload locations. ఠ_ఠ Inquisitor Sasha Ehrenstein des Sturmkrieg Sector (Talk) (Contr) 19:43, 14 October 2013 (UTC)
- Not necessarily. If you create a "commons.mywiki.com" and have every wiki use ForeignFileRepos to pull from that one, you have only one upload location. Legoktm (talk) 23:43, 14 October 2013 (UTC)
- Oh ok thankyou 90.212.81.76 13:44, 16 October 2013 (UTC)
- Not necessarily. If you create a "commons.mywiki.com" and have every wiki use ForeignFileRepos to pull from that one, you have only one upload location. Legoktm (talk) 23:43, 14 October 2013 (UTC)
- There's also settings that can be configured for creating a single website that images from all wikis can be uploaded to. With ForeignFileRepos, you'll still have separate image upload locations. ఠ_ఠ Inquisitor Sasha Ehrenstein des Sturmkrieg Sector (Talk) (Contr) 19:43, 14 October 2013 (UTC)
New install - constantly logged out of wiki
Hello,
My webhost has just installed mediawiki on a a subdomain of our website, running alongside our main wordpress site. The install was successful except that any time I try to do anything (open a new page, make an edit) I am constantly logged out and asked to log in again. I'm pretty sure its not a cookie issue, as cookies are enabled. Before deciding to go with mediawiki I also tried to install tikiwiki and had the same problem, so I suspect it something to do with our server setup. Our webhosts don't know what to do and at this point I'm beyond my technical capability. I've looked at posts for similar problems but not sure on the next step, can anyone help?
MediaWiki: 1.21.2 PHP: 5.3.23 (cgi-fcgi) MySQL: 5.5.30-30.2 URL: wiki.postmag.org LB1986 (talk) 18:32, 13 October 2013 (UTC)
- Well, first of all, I would always recommend that you install MediaWiki manually, because in many cases MediaWiki installation is messed up by auto-installers.
- See Special:Version on the wiki to determine if your webhost inadvertently installed anything related to authentication (such as wordpress).
- Also see Manual:LocalSettings.php to make sure that $wgServer is set to the correct place. Jasper Deng (talk) 18:47, 13 October 2013 (UTC)
- Yes I'm considering uninstalling and starting again, though everything else seems to work fine (for example I can make edits, I just need to login again at every step). And because I had a similar problem with tikiwiki, which I installed manually, I suspect the same thing might happen again.
- The special:Version page looks ok, no mention of wordpress, and $wgServer in localsettings.php is set to http://wiki.postmag.org, as it should. LB1986 (talk) 19:50, 13 October 2013 (UTC)
- Hi!
- When you are logged out again and again, this points to a cookie issue. Make sure that your browser accepts cookies from your wiki! 88.130.115.6 20:25, 13 October 2013 (UTC)
- I don't think its a cookies issue sadly, cookies are enabled in my browser and the site is not on my exceptions list. I've also tried the wiki on other browsers and other computers. LB1986 (talk) 20:48, 13 October 2013 (UTC)
- And you have the same issue also in other browsers and on other PCs?! Then maybe a cookie management problem inside PHP. What cookies do you get after you logged in succesfully? Is it any click and you are immediatelly logged out again? Meaning: You do exactly one click (no matter what you click) and you always are logged out again? And what exactly happens when you suddenly are logged out? Are all cookies gone? Or are they/some of them still there? Maybe it works, when you move the files away from the WordPress installation? Maybe WordPress gives you a cookie, which somehow interferes with what you have on the subdomain? 88.130.101.232 21:19, 13 October 2013 (UTC)
- I don't think its a cookies issue sadly, cookies are enabled in my browser and the site is not on my exceptions list. I've also tried the wiki on other browsers and other computers. LB1986 (talk) 20:48, 13 October 2013 (UTC)
- Yes, the same problem occurs on other pcs and browsers. The cookies I get are:
- [database name]_wikiUserID
- [databasename]_wikiUserName
- [databasename]_wiki_session
- [database name]_wikiToken
- After I'm logged out all four cookies are still there.
- Yes, I'm always logged out after one click, whatever it is that I actually try to do.
- What do you mean by move them away from the WordPress installation? Could I do that and still have the wiki available from the wiki.postmag.org subdomain? LB1986 (talk) 08:04, 14 October 2013 (UTC)
- Hi!
- Ok. This page should help you. Keywords to check are PHP sessions data, permissions of that folder and available diskspace. 88.130.70.214 23:48, 14 October 2013 (UTC)
Protected Only One Page
I want protected just only one page/article from editing by another user. How can I do that? please help me Ieebey (talk) 23:06, 13 October 2013 (UTC)
- Hi!
- To protect the article from exactly one user might be difficult; with MediaWiki alone this is not possible. But what you can do easily is to generally protect the article from being edited:
- Make sure you are member of a user group, which has the right to protect pages; by default the group "sysop" = administrators is such a group.
- Go to the wiki page of the article.
- Point your mouse on the arrow next to the "history" tab and in the menu, which then pops up, click on "Protect"
- Set parameters as desired and click "Ok". 88.130.101.232 23:38, 13 October 2013 (UTC)
- can I add a new group by own? Ieebey (talk) 23:56, 13 October 2013 (UTC)
- That will be far more complicated and in the end it even won't help you.
- You will need access to the file system of the server (you have to change LocalSettings.php), then you can add new user groups. See user groups. However, also if you put this user in a new user group, you will still have to protect the page in a way that he can't edit it, which with MediaWiki alone is not possible. Or do you want to take these users the right to generally edit pages in your wiki? If it is only for that one page, then you will additionally need some protection e.g. based on namespaces. This is possible with some extensions as well, but it is not secure, meaning there still will be ways to edit the page anyway. MediaWiki is not made for that kind of access control.
- I would go for one of these two options: If the page basically should only be edited by admins, then protect it accordingly. If the page still should be editable for all users and you cannot accept them to be temporarily unable to edit it, then block the offending user. 88.130.101.232 00:13, 14 October 2013 (UTC)
Unable to upload images
Hi All,
Can somebody please help me? I'm struggling trying to resolve the following:
[DESCRIPTION OF THE ISSUE]
- Once I try to upload a .png image I received the following error message: Could not create directory "mwstore://local-backend/local-public"
[ENVIRONMENT]
- Mediawiki: v1.21.2 running on a CentOS web hosted environment on mister.net
- PHP : v5.3.15 (apache2handler)
- MySQL: v5.5.27
- Skin Used: Cavendish
- This is the content of the non-confidential variables within the LocalSettings.php file:
$wgFavicon = "$wgScriptPath/favicon.ico"; $wgFavicon = "$wgScriptPath/favicon.ico"; $wgScriptPath = ""; $wgScriptExtension = ".php"; $wgStylePath = "$wgScriptPath/skins"; $wgStylePath = "$wgScriptPath/skins"; $wgLogo = "$wgStylePath/common/images/myLogo.gif"; $wgEnableEmail = false; $wgEnableUserEmail = true; # UPO $wgEmergencyContact = "apache@URLOFMYWEBSITE"; $wgPasswordSender = "apache@URLOFMYWEBSITE"; $wgEnotifUserTalk = false; # UPO $wgEnotifWatchlist = false; # UPO $wgEmailAuthentication = true; $wgDBtype = "mysql"; $wgDBserver = "localhost"; $wgDBname = "foo_db"; $wgDBuser = "foo_admin"; $wgDBprefix = ""; $wgDBTableOptions = "ENGINE=InnoDB, DEFAULT CHARSET=binary"; $wgDBmysql5 = false; $wgMainCacheType = CACHE_NONE; $wgMemCachedServers = array(); $wgEnableUploads = true; #$wgUseImageMagick = true; #$wgImageMagickConvertCommand = "/usr/bin/convert"; $wgUseInstantCommons = false; $wgShellLocale = "en_US.utf8"; $wgHashedUploadDirectory = false; #$wgCacheDirectory = "$IP/cache"; $wgLanguageCode = "en"; $wgDefaultSkin = "cavendish"; $wgRightsUrl = ""; $wgRightsText = ""; $wgRightsIcon = ""; $wgDiff3 = ""; $wgResourceLoaderMaxQueryLength = -1; $wgGroupPermissions['*']['createaccount'] = false; $wgGroupPermissions['*']['edit'] = false; $wgGroupPermissions['*']['read'] = false;
[STEPS FOLLOWED SO FAR]
- I do have an exact copy of my Wiki locally in a CentOS virtual machine where I try everything in advance and where I resolved this issue by simply using the chmod 755 command for the folder:"../skins/common/images"
- I used a simple FTP client (filezilla but also WinSCP) to modify recursively the permissions of the following folders in the web hosted remote site:
../httpdocs/skins/images ../httpdocs/images
- After having checked several posts in mediawiki.org I couldn't figure out how to resolve my problem
Any help is much appreciated.
Regards,
Buffa (talk) 02:04, 14 October 2013 (UTC)
- Hi!
- I would also say that this is a permission problem, which I would try to fix inside the file system. However, I would say changing permissions of /skins/common/images is not what you should do. This folder only contains skin-related images; default permissions for this folder are fine.
- What I would check are permissions for the folder /images/. Make sure that it is read- and writable for the webserver user. 755 permissions should usually do; however, depending on your setup you maybe need 777 permissions. 88.130.101.232 12:57, 14 October 2013 (UTC)
- Hi,
- I already tried this and once I do this I get the following error messages:
Could not open lock file for "mwstore://local-backend/local-public/archive" Could not open lock file for "mwstore://local-backend/local-public/archive/20131014231717!SmallLock.png"
- So basically it's even worse!!! :(
- Also while the local www folder in my local VM shows the following owners:
drwxrwxrwx. 6 root root 4096 Oct 15 00:45 images
- This is the situation in the remote web hosting server (via ftp):
drwxr-xr-x 2 jessy psacln 4096 Oct 14 17:17 images
- Note: On top of that I can't login via SSH in the remote web hosting server but only vis ftp and in this case the 'chown' command is not available!!!
- Can somebody help me?
- Regards, Buffa 23:13, 14 October 2013 (UTC)
- You can use chmod via ftp to change the permissions on your remote directory. ☠MarkAHershberger☢(talk)☣ 14:41, 15 October 2013 (UTC)
- Yes I can but the problem is that via FTP I also have to change the owner and the group owner of the folder "/images" and this is not possible via FTP.
- Also I believe I don't have SSH access to my web hosting server. I'm investigating :( 84.203.41.253 00:25, 16 October 2013 (UTC)
- You don't need to change the owner of images, you just need to make it writable by anyone. You can use
chmod 666 imagesto do that. ☠MarkAHershberger☢(talk)☣ 11:54, 16 October 2013 (UTC)- Note that it should be 777 for the images directory, not 666, since directories need the execute permission to be able to access them. Ciencia Al Poder (talk) 09:56, 17 October 2013 (UTC)
- Hi,
- Guys I have already tried those two tests.
- The problem is the owner and the group owner.
- Wiki writes with the "apache" user (which is the owner and group owner of the content of the 'images' folder) while the owner and the group owner of the 'images' folder is my personal user (which doesn't have root privileges and for this reason I can set 777 or 666 for the sub-files and sub-folders of the 'images' folder).
- I hope it's clear.
- Regards Buffa (talk) 11:31, 17 October 2013 (UTC)
- Using chmod to set the images directory to 777 can be done by your personal user. 777 means "anyone can do anything in this directory". That will allow the apache user to create new directories and files in your images directory.
- If you set images to 777 you should see the following:
drwxrwxrwx 2 jessy psacln 4096 Oct 14 17:17 images- and your problem should be resolved. ☠MarkAHershberger☢(talk)☣ 14:24, 17 October 2013 (UTC)
- Ciencia, thanks for correcting my mistake. :) ☠MarkAHershberger☢(talk)☣ 14:19, 17 October 2013 (UTC)
- Note that it should be 777 for the images directory, not 666, since directories need the execute permission to be able to access them. Ciencia Al Poder (talk) 09:56, 17 October 2013 (UTC)
- You don't need to change the owner of images, you just need to make it writable by anyone. You can use
- You can use chmod via ftp to change the permissions on your remote directory. ☠MarkAHershberger☢(talk)☣ 14:41, 15 October 2013 (UTC)
autosave, drafts
How do I add an autosave and draft feature to my wiki edit pages? I've seen the extension http://www.mediawiki.org/wiki/Extension:Drafts but it isn't working for version 1.20 on firefox and autosave isn't working at all on any browser. Are there any other options? LTech (talk) 08:44, 14 October 2013 (UTC)
- Unfortunately not. There are a few patches in Gerrit which might work, specifically gerrit:88405, but it's still a work in progress. 153.18.25.209 18:58, 14 October 2013 (UTC)
- When do you think the fixes will be finished? What kind of time-frame are we looking at eg a week/month/year?
- How do I apply the patch to try it out?
- Thanks LTech (talk) 06:28, 15 October 2013 (UTC)
- Since the patch was last touched today, it looks like they might finish it up soon. I'll go look at it in a bit.
- In any case, you can find the patch here and apply it by following these directions. ☠MarkAHershberger☢(talk)☣ 14:47, 15 October 2013 (UTC)
- Which version is this patch against? My site is version 1.20. The patch eg the part for Drafts.php doesn't work for the version I am using. LTech (talk) 07:30, 16 October 2013 (UTC)
- You'll have to upgrade to use that. The patch is against the version that will be compatible with 1.22 (which will be released at the end of November). ☠MarkAHershberger☢(talk)☣ 11:52, 16 October 2013 (UTC)
- Which version is this patch against? My site is version 1.20. The patch eg the part for Drafts.php doesn't work for the version I am using. LTech (talk) 07:30, 16 October 2013 (UTC)
upgrading from 1.1.15 with bridge to smf
I have 1.1.15 installed in a subdirectory to mainwebsite studentforums.biz ie studentforums/wiki/ php is 5.3.2 when I run update.php I get this error message PHP Warning: require_once(./extensions/Auth_SMF.php): failed to open stream: No such file or directory in /var/www/studentforums/wiki/LocalSettings.php on line 141 PHP Fatal error: require_once(): Failed opening required './extensions/Auth_SMF.php' (include_path='/var/www/studentforums/wiki:/var/www/studentforums/wiki/includes:/var/www/studentforums/wiki/languages:.:/usr/share/php:/usr/share/pear') in /var/www/studentforums/wiki/LocalSettings.php on line 141
I think I need to edit update.php with the right path but how do I do this? Astarmathsandphysics (talk) 11:00, 14 October 2013 (UTC)
- Removing '.' from './extensions/' resolved the file not found error but I still get this
- PHP Fatal error: require_once(): Failed opening required '/extensions/Auth_SMF.php' (include_path='/var/www/studentforums/wiki:/var/www/studentforums/wiki/includes:/var/www/studentforums/wiki/languages:.:/usr/share/php:/usr/share/pear') in /var/www/studentforums/wiki/LocalSettings.php on line 141
- permissions on this file are 644 but changing to 777 makes no difference Astarmathsandphysics (talk) 13:33, 14 October 2013 (UTC)
- Hi there!
- You are using the require_once() function incorrectly. When you include the file '/extensions/Auth_SMF.php', then the server will search this file in a folder called "extensions", which itself is expected to be in the root(!) of the server. This folder is not there and so you get an error. It should work with something like
require_once('extensions/Auth_SMF.php');- or maybe with the absolute path as
require_once($IP . '/extensions/Auth_SMF.php');- Ahh, and no, you do not have to modify update.php, but you have to fix this in LocalSettings.php, line 141. 88.130.70.214 23:16, 14 October 2013 (UTC)
- That went ok but now the screen is blank Astarmathsandphysics (talk) 09:16, 15 October 2013 (UTC)
- I have looked in the manual - increased memory size to 32 mb but can't work out how to turn on php error reporting.
- I dont have a php.ini file in /etc/ and my wiki doesnt even have an error_log Astarmathsandphysics (talk) 10:34, 15 October 2013 (UTC)
- I found the server php.ini file in /etc/php5/apache2 (who woulkd have guessed that?)
- but dont feel comfortable enabling error reporting from this file. Astarmathsandphysics (talk) 10:52, 15 October 2013 (UTC)
- What you are seeing currently is some kind of PHP error. See How to debug for more information on debugging. 88.130.70.214 10:59, 15 October 2013 (UTC)
- I found the server php.ini file in /etc/php5/apache2 (who woulkd have guessed that?)
- but dont feel comfortable enabling error reporting from this file. Astarmathsandphysics (talk) 10:59, 15 October 2013 (UTC)
- Switching to the old files with the new database - eveything works!
- Still need to upgrade the files though Astarmathsandphysics (talk) 11:29, 15 October 2013 (UTC)
- That went ok but now the screen is blank Astarmathsandphysics (talk) 09:16, 15 October 2013 (UTC)
11:30, 15 October 2013 (UTC)
- Using the old files with the new database might work for now, but it will break your system: When you try the update again in the future the update routine won't add the new columns (as they are already there) and - the real problem - it won't fill them with the necessary data. The longer you continue using the already updated DB with the old files, the bigger your problem will become.
- Make sure that you update properly. See upgrade for a detailed step-by-step guide. Finish the update now! 88.130.70.214 11:42, 15 October 2013 (UTC)
- I upgraded again with a backup copy of thew database.
- Everything still shows a blank page. Astarmathsandphysics (talk) 12:35, 15 October 2013 (UTC)
- Done!
- I renamed startprofiler.php and it works now Astarmathsandphysics (talk) 12:40, 15 October 2013 (UTC)
- You should read Manual:How to debug; there is no need to modify php.ini in order to get debug data show up. 88.130.70.214 14:22, 15 October 2013 (UTC)
Dynamic List
Hello,
we use Mediawiki now very successfull and it is our documentation tool for the Products.
But im looking for an extension for "dynamic lists"
- I have an Text
"asdasdasdasd BlaBla asdadasddasdasd CLACLA asdasdasd"
Now i want a List oft "1. BLABLA" "2. CLACLA" by using some marks.
"asdasdasdasd ++BlaBla++ asdadasddasdasd ++CLACLA++ asdasdasd"
1.BlaBla 2.CLACLA
Does an extension like this exist? (It is nearly that what ==HEADER== does ;) )
MFg Jens 194.149.241.3 (talk) 11:48, 14 October 2013 (UTC)
- It isn't clear to me what you want. Is MW supposed to ignore some text and then display the rest as a list in-line instead of the way it normally does?
- If you could provide exactly the output you want and avoid using nonsense text, that might help me understand what you want. ☠MarkAHershberger☢(talk)☣ 14:39, 15 October 2013 (UTC)
- Sorry, it was clear in my head. :S
- i have an article in Mediawiki:
- == Anwendungen ==
- Folgende Anwendungen sind derzeit in Entwicklung:
- === Konditionen-Tool ===
- Mit dem Konditionen-Tool werden Pflegesätze für gepflegt.
- === Portal-Anwendungen ===
- zbetrag
- KTLTypen
- JDBC_KT (JDBC Datasource)
- === Zuständigkeiten-Tool ===
- Mit dem Zuständigkeiten-Tool werden Informationen zu Zuständigkeiten in verwaltet.
- === Portal-Anwendungen ===
- ecmZuWD
- ZustaendigkeitJDBC (JDBC_Zust) (JDBC Datasource)
- It ist structured by the Product. Product a .... product b...
- Every Product got the chapter "" ==== Portal-Anwendungen ==== "" below this chapter are some information.
- This information in the Chapter should be summurized as an list.
- My thought was to !mark! the text i want to display in a list.
- So i get a List:
- zbetrag
- KTLTypen
- JDBC_KT (JDBC Datasource)
- ecmZuWD
- ZustaendigkeitJDBC (JDBC_Zust) (JDBC Datasource)
- I hope you understand waht i mean. :)
- greets 194.149.241.3 08:50, 16 October 2013 (UTC)
- So, you just want the bulleted items in each section displayed as one larger list?
- Where do you want this list displayed? ☠MarkAHershberger☢(talk)☣ 11:41, 16 October 2013 (UTC)
- Yes the bulleted for example.
- At the bottom of the Site would be ok. 194.149.241.3 12:25, 18 October 2013 (UTC)
- "for example"? So you may want to change it? I would suggest learning how to do this using Extension:Gadgets and jQuery. ☠MarkAHershberger☢(talk)☣ 22:53, 18 October 2013 (UTC)
[Resolved] Favicon doesn't display
The favicon for Sturmkrieg.ru doesn't seem to display, and the permissions and ownership seem to be identical to Sturmkrieg.us. The favicons for both wikis can be accessed but they don't display.
- Favicons
- Wikis
- http://www.sturmkrieg.ru/Стурмкриег_Вики
- http://www.sturmkrieg.us/Sturmkrieg_Wiki#.UlxHs2Rxte4 Lieutenant Aleksandr Reznov 19:37, 14 October 2013 (UTC)
- Hi!
- For me the favicon for Sturmkrieg.ru does display. Maybe you had some caching issue or solved the problem otherwise in the meantime. 88.130.70.214 23:29, 14 October 2013 (UTC)
- Thanks! It's good that it's working on your browser, but it still isn't displaying on Google Chrome.
- http://img.sturmkrieg.com/albums/userpics/10001/Screen_Shot_2013-10-14_at_9_00_55_PM.png
- I'm able get the .ru favicon fine when I go the file of the icon, but it's not displaying in the browser.
- EDIT
- It seems to show the favicon in Safari. ఠ_ఠ Inquisitor Sasha Ehrenstein des Sturmkrieg Sector (Talk) (Contr) 01:08, 15 October 2013 (UTC)
- It seems to be displaying now. ఠ_ఠ Inquisitor Sasha Ehrenstein des Sturmkrieg Sector (Talk) (Contr) 04:08, 20 October 2013 (UTC)
UNIQ ... QINU appears for GoogleAdsense and AdsWherever
My setup : MW 1.21.2 PHP 5.3.23 (cgi-fcgi) MySql 5.1.68-community
After upgrading from 1.13 to 1.21.2 I'm unable to get the GoogleAdsense extension to work.
At the location on the page where an add should be displayed I get the UNIQ....QINU text displayed.
I removed the extension and installed it again which did not help.
On the GoogleAdsense information page it is stated it is removed because "due to prolonged security issues with the code." So I probably go find another one. I installed Google AdSense 2, this works. But the ads are only displayed in the sidebar. I would like to ads to banners on some pages at specific locations (like the old AdSense did).
The extension AdsWhereever seems to provide this, but I get the same UNIQ...QINU text. I tried several possible fixes, but nothing helps. I'm not a php expert, so some changes which are advised I can not translate to the extension code. It seems something to do with the parser object.
Question: is this a general issue with these extensions and is there a ready-to-go fix/change to those extensions to get it working? Has this something to do with my MW and PHP version combination?
Maybe there is another extension to use, similar to Adsense and AdsWherever which offers the same features but is known to be working?
I have other extensions installed without problems by the way: - Collection - TwitterButton - FacebookLikeButton 82.161.55.231 (talk) 21:30, 14 October 2013 (UTC)
- If you refer to https://www.mediawiki.org/wiki/Extension:Google_AdSense_2 : The top says it's unmaintained, so somebody needs to take the code and fix it. AKlapper (WMF) (talk) 12:34, 15 October 2013 (UTC)
- Both GoogleAdsense2 and AdsWherever worked for me on my 1.21.2 installation. Maybe there is a conflict with another extension? What happens if you have only AdsWherever installed and disable the other extensions? ☠MarkAHershberger☢(talk)☣ 14:31, 15 October 2013 (UTC)
- I tried that and the issue persists.
- Right now I have added the plainhtml extension to insert the html code of AdSense straight into the page.
- I know this is unsafe, but I have restricted users to edit and create an account (only me is able to do that).
- So now I'm able to display the ads anywhere on the page. 134.54.0.9 14:20, 16 October 2013 (UTC)
[RESOLVED] First Configuration doesn't work
Hello I have just installed a new LAMP server on top of a VM with Scientific Linux 6.4, PHP 5.3.3, MySql 5.1, and Apache I followed the installation guide to install mediawiki but I run into a really annoying problem. when I enter the website I get the normal media wiki install guide to create a LocalSettings.php file, when I click on the link the browser is pointed to http://my-wiki/mw-config/index.php and then it stops, no warnings no errors, it just stops. I've been googling for hours but I can't seem to formulate the right questions.
Did anyone have had this issue? and if so could you please point me to the right direction?
Thanks in advance, Steve 129.26.136.119 (talk) 08:50, 15 October 2013 (UTC)
- Be sure your installation meets all the system requirements. See also the PHP or apache error log to see if there's any error message there. Ciencia Al Poder (talk) 09:46, 15 October 2013 (UTC)
- Hi!
- You say you follow the guide, but then, when you click the link, then it's broken. On which link do you click to get the broken result? Is it a link to the next installer step? Or the link to download the LocalSettings.php file? Or something completely different? 88.130.70.214 12:28, 15 October 2013 (UTC)
- Very wild guess: If /var/log/httpd/error_log says "PHP Fatal error: Class 'DOMDocument' not found", you've run into https://bugzilla.wikimedia.org/show_bug.cgi?id=42205 AKlapper (WMF) (talk) 12:31, 15 October 2013 (UTC)
- I meant the first link you get to start the LocalSettings.php configuration, I ended up just reinstalling apache, php, and mysql and it worked. But thanks a lot :)
- I have to migrate thousands of pmWiki articles to Mediawiki so I hope I'll survive this one :D 129.26.136.119 07:29, 16 October 2013 (UTC)
Force IE10 to use Document Mode IE8
hey,
in all other Document Mode my WYSIWYG editor destroys my semantic syntax, in document mode IE8 it works. Is there a way to force IE to use always this document mode?
I just found http://www.mediawiki.org/wiki/Manual%3a%24wgDocType but this isn't actual.
Would be very appreciated if someone could help me out here
Software Version MediaWiki 1.21.2 PHP 5.4.19 (apache2handler) MySQL 5.5.32 Semantic MediaWiki (Version 1.8.0.5) WYSIWYG extension (Version 1.5.6_0 [B551], CKEditor 3.6 (revision 6902)) 194.156.246.226 (talk) 12:38, 15 October 2013 (UTC)
- If you set $wgDocType, you should set $wgHtml5 to false. Did you try that? ☠MarkAHershberger☢(talk)☣ 14:00, 15 October 2013 (UTC)
- no i didnt, but i dont even know what on what i should set $wgDocType.
- Default is '-//W3C//DTD XHTML 1.0 Transitional//EN'
- so how can i set doc mode IE8 :D?
- Regards 217.248.137.73 18:18, 15 October 2013 (UTC)
- After some looking, you should force the IE10 browser you are using into compatibility mode by using the answer on this stackoverflow answer. ☠MarkAHershberger☢(talk)☣ 11:36, 16 October 2013 (UTC)
- hey.
- thank u for ur help and especially for ur time.
- But the problem is, my "hole grale" isnst the IE10 compatibility mode - its the "document mode IE8".
- With them everything works fine - like with Mozilla - but in my company all PCs have IE10 installed.
- When I go on my wiki on the server, IE uses compatibility mode IE10 as standard - cause its intranet.
- But he uses Document Mode IE7 (site standard).
- here a screenshot:
- http://s1.directupload.net/file/d/3412/t9n9sqw2_png.htm
- Would be very very appreciated if u can help me out a second time ;) 194.156.246.226 13:29, 16 October 2013 (UTC)
- From this bit on SuperUser, I found:
- The user goes to the Tools → Compatibility View dialog and checks the "Dispaly all websites in compatibility mode" checkbox.
- Maybe that would help? ☠MarkAHershberger☢(talk)☣ 14:17, 17 October 2013 (UTC)
- hey
- thank u again for ur help and time - but no, this doesn't help.
- with this option (which is default enabled) the wiki is shown in IE10 Compatibility mode - document mode ie7- but I want it to use document mode ie8.
- Thought there would be a easy way to to this, but it doesn't seem so.
- Or Anyone else can help me out here ːD?
- Regards, 194.156.246.226 06:46, 21 October 2013 (UTC)
- From this bit on SuperUser, I found:
- After some looking, you should force the IE10 browser you are using into compatibility mode by using the answer on this stackoverflow answer. ☠MarkAHershberger☢(talk)☣ 11:36, 16 October 2013 (UTC)
- I resolved this issue.
- in outputpage.php
- I changed the methodː
- public function getHeadLinksArray( $addContentType = false )
- i changed
- if ( $wgHtml5 ) {
- $tags['meta-charset'] = Html::element( 'meta', array( 'charset' => 'UTF-8' ) );
- );
- to
- if ( $wgHtml5 ) {
- $tags['meta-charset'] = Html::element( 'meta', array( 'charset' => 'UTF-8' ) );
- $tags['meta-http-equiv'] = Html::element( 'meta', array( 'http-equiv' => 'X-UA-Compatible' ,'content' => 'IE=EmulateIE8' )
- );
- works perfect :D 194.156.246.226 09:25, 21 October 2013 (UTC)
How can I automaticly have a catagory added to all my existing pages on my wiki?
I want to avoid having to go through every page (4000+) and make sure they have a category or correct category. Is there a way or an extension somewhere that would allow to run through all pages and create a category using the page title? Also, I'm considering installing Semantic MediaWiki...
WOIweb.com MediaWiki 1.21.2 PHP 5.3.15 (cgi-fcgi) MySQL 5.1.67-log
Thanks
«Dan» Woiow (talk) 17:10, 15 October 2013 (UTC)
- You could probably use PyWikibot to do what you want fairly easily, I think. ☠MarkAHershberger☢(talk)☣ 11:27, 16 October 2013 (UTC)
- OK, great, I'll give it a try...
- Thanks Dan
- mΩw Woiow (talk) 16:47, 18 October 2013 (UTC)
Offline editing
I've asked here if is trivial to retrieve the account information from the database instead of hardcoding the usernames and passwords in the LocalSettings.php.
In my computer I've a sort of "offline wikimedia editor". I first edit some pages locally (my connection speed is around 50kbps), then I "push" those edits to the destination wiki. The same accounts I've on the remote wiki (in that case: wikipedia, wikibooks), I've in the local wiki database. I would just need to specify that the information of accounts is inside the local database.
Going further
My access to the Internet comes from a cellphone (used as a modem). The network that I use, here, is called 2G (second generation). I live in Brazil, and if you see the news about Internet access, you will notice that more people is having Internet access. But from which way? Mostly through cellphone. Now think about other countries where rarely you see people with computer... how would be the "access" there? There are places that the poverty are even more present than what we see in the "Brazil"...
To be sincere I found very useful be able to make offline editions with my local mediawiki installation, and I say, that a lot of people around world would say the same. I say it because most still access the Internet with very low bandwith.
Requesting resources
I've noticed that the way we get "resources" from a mediawiki web interface is the problem (I just watched how many "request" it do to just fetch a page, and its a lot...). I known that I could be related to the caching system (sorry, my understanding is too little, I'm just guessing), but there should be another way to do it without compromising the performance from the server side...
You could say "there is a mobile interface". But that interface is very limited. If we talk about who has only access from just a cellphone, then there a problem...
Second: I don't believe that turning JavaScript off is the best solutions in that case, I believe that the system can be optimized.
Thank you, very much. I surely appreciate the MWF, what I'm doing is just suggesting improvements that could affect a lot of "poor" people. :) Guiwp (talk) 18:29, 15 October 2013 (UTC)
- A lot of work has already been put into optimizing the JS resources.
- I do sympathize with your concerns about page loading, though. Five years ago, I saw how slow amazon.com was loading in Rwanda which, at the time, only had a connection to the Internet through satellite link in England.
- I'm confused about your use case, though. If your local wiki is running on your local computer, there shouldn't be any page load time problems, and it sounds like that is where you are doing the editing.
- Are you just talking about reading Wikipedia and that those pages are loading slowly? What is missing from the mobile interface in that makes it unusable for your purposes? ☠MarkAHershberger☢(talk)☣ 11:21, 16 October 2013 (UTC)
- You said: I'm confused about your use case, though. If your local wiki is running on your local computer, there shouldn't be any page load time problems, and it sounds like that is where you are doing the editing.
- Sorry for my poor English, I think you didn't understand. I'm not facing problems locally, the "slow" part is related to the "remote" access (again, not locally).
- You said: What is missing from the mobile interface in that makes it unusable for your purposes?
- If someone just access the Internet through a very slow connection, the mobile interface wouldn't help much: most features that we need is only accessible through the "normal" interface (something like vector skin).
- Sure, a solution would be to deal directly with the MediaWiki API, but I'm talking something to be accessible to the people that don't have this knowledge.
- Thanks for trying to help. Guiwp (talk) 18:55, 16 October 2013 (UTC)
- There is also Wikipedia Zero, but the focus there is just giving people access to the content.
- It sounds like you want editing to work smoothly and, AFAIK, editing doesn't work on the mobile interface, yet.
- I would file a BUGREPORT outlining your use case and how MediaWiki could be improved. I expect that if someone were interested in fixing this, they would want a way to simulate your connection and it looks like they could use this ☠MarkAHershberger☢(talk)☣ 23:22, 16 October 2013 (UTC)
- Wikipedia Zero seems to be a interesting project, hope they can keep developing this.
- You said: I expect that if someone were interested in fixing this, they would want a way to simulate your connection and it looks like they could use this
- I think they should integrate a test like these in their testing framework. Its almost an obligatory test for whoever wants make their service accessible from the whole world.
- Talking about tools, there is a lot of tools to do it (all related to traffic shaping). Take a look in http://stackoverflow.com/questions/1094760/network-tools-that-simulate-slow-network-connection . Guiwp (talk) 00:35, 17 October 2013 (UTC)
- I opened a bug report to track the testing issue. ☠MarkAHershberger☢(talk)☣ 15:27, 17 October 2013 (UTC)
- Thank you very much for making this. :) Guiwp (talk) 17:32, 17 October 2013 (UTC)
- I opened a bug report to track the testing issue. ☠MarkAHershberger☢(talk)☣ 15:27, 17 October 2013 (UTC)
Random page in a template?
I am wondering if it's possible to display a random page from a wiki what changes each time the page is refreshed?
I tried using {{Special:Random}} but that did not work.
Does anyone else have any ideas? Msjulvad (talk) 21:24, 15 October 2013 (UTC)
- Hi!
- It is possible and you are already close to it. :-)
- Let's say you have a template called "Note". Then edit the wiki page Template:Note and on that page add
[[Special:Random]]
- Now add the template on a page:
{{Note}}- and you should get a link to Special:Random, which brings you to a random page. 88.130.104.68 22:51, 15 October 2013 (UTC)
- It's not a link I'm after, it's actually putting the random page inside a template.
- For example, I have my main page and I have a section what displays a random page from my wiki on the main page. Msjulvad (talk) 05:48, 16 October 2013 (UTC)
- You could do this with JavaScript but not with wikitext. ☠MarkAHershberger☢(talk)☣ 11:02, 16 October 2013 (UTC)
- I don't suppose you have an example? Msjulvad (talk) 02:23, 17 October 2013 (UTC)
- I don't, but you could use jQuery's ajax call.
- Retrieve a random page title: https://en.wikipedia.org/w/api.php?action=query&list=random&rnnamespace=0&rnlimit=1&format=jsonfm (you'll see something different, but I got "Lake Nipigon").
- Give the title to the api to parse: https://www.mediawiki.org/w/api.php?action=parse&page=Lake+Nipigon&format=jsonfm
- Display the returned text parameter (probably in an frame since some pages can be quite large).
- That's the outline. Unfortunately, I don't have a working example to give you right now. ☠MarkAHershberger☢(talk)☣ 15:16, 17 October 2013 (UTC)
- I don't, but you could use jQuery's ajax call.
- I don't suppose you have an example? Msjulvad (talk) 02:23, 17 October 2013 (UTC)
- You could do this with JavaScript but not with wikitext. ☠MarkAHershberger☢(talk)☣ 11:02, 16 October 2013 (UTC)
Access configuration
Hello,
My company decided to change our wiki and we changed from pmWiki to Mediawiki it is a given that there must be a namespace for the IT department so that the articles that are in it will only be accessible by the people who have an account All other articles must be open to everyone else.
I edited the LocalSettings.php file with $wgWhitelist so that all files that are specified in it will be open to everyone but the problem that I have is that, that method is really unintuitive. I can't have my collegues edit a php script everytime they want to edit the wiki. Besides it compromises the server's security.
Is there any way that I can make a namespace accessible only by logged in users?
I have been googling for two days now and I only find extensions most of which are just outdated or unsecure.
my current configuration is:
- // Disable reading by anonymous users
- $wgGroupPermissions['*']['read'] = false;
- // But allow them to read e.g., these pages:
- $wgWhitelistRead = array ("Sites");
Stmavropoulos (talk) 11:15, 16 October 2013 (UTC)
- Thank you in advance any help would be perfect :) Stmavropoulos (talk) 11:16, 16 October 2013 (UTC)
- Use the Extension:Lockdown to prevent access to your IT namespace for everyone not in the IT group. ☠MarkAHershberger☢(talk)☣ 11:46, 16 October 2013 (UTC)
Sharing MySQL database and sharing images
Hi how can I used the same MySQL database for mobile and desktop because I have set up a MySQL and I am using both the website on one database but the mobile and desktop don't show correctly I carnt use the web updater on both of them and how can I share images file on both I can setup another one for images so how can I do it like commons 90.212.81.76 (talk) 13:18, 16 October 2013 (UTC)
- Due to missing punctuation I absolutely do not understand what you want at all using MediaWiki with different clients is no problem at all and I tink ou should know that just have a look at Wikipedia you can access it with a wide variety of clients but maybe you are looking for replication that can be done with MySQL but that is not a MediaWiki problem setting up a shared image repository is a completely different issue which I will ignore here 88.130.104.68 18:45, 16 October 2013 (UTC)
AWC Extension & Emoticons
Hello again, I have my AWC extension running, and everything is running fine. The only thing I have noticed is that my emoticons do not show up. I sent myself a test message, and placed in all of the default smileys. This is my result:
|emotion_tag|/extensions/awc/forums/images/emotions/default/smile.png|emotion_tag|_end| :( :D :mad: :eek: :confused: :o ;) :heart: :wub: :p :lol: :roll: :thumbsdown: :thumbsup:
I went through and deleted all of the files from /extensions/awc/forums/images/emotions/default (I first made a copy), and then I tried re-adding them through Forum > Admin > Add/Delete Emotions. Any ideas? Odyssey~mediawikiwiki (talk) 14:31, 16 October 2013 (UTC)
- What is AWC? Which extension are you using? What shows up instead of a link to the emoticons? Could you provide a link to your wiki so we can see what the problem is? ☠MarkAHershberger☢(talk)☣ 14:57, 17 October 2013 (UTC)
- AWC is a forum extension for mediawiki.
- What I posted was a test message I sent myself. I also made a post in the forum and it displayed the same thing
- Link = http://oilcop.info/index.php/Main_Page Odyssey (talk) 20:13, 18 October 2013 (UTC)
- I've requested an account so I can see the problem. ☠MarkAHershberger☢(talk)☣ 21:39, 18 October 2013 (UTC)
- I would like to Become A Support Agent! TheOverseerXx (talk) 00:18, 19 October 2013 (UTC)
- Hi!
- That is great to hear! Basically it's easy: Monitor this page and go through the topics to see, if you can help the guys who have asked. If you can, hit the "Reply" button and go ahead!
- You can leave out those topics, which are marked as "[RESOLVED]" - these are already solved. All others are still waiting for you!
- Welcome aboard! :-) 88.130.65.191 01:04, 19 October 2013 (UTC)
- I would like to Become A Support Agent! TheOverseerXx (talk) 00:18, 19 October 2013 (UTC)
- Approved your request Odyssey (talk) 16:34, 21 October 2013 (UTC)
- Thanks. By the way what permissions do you have set up? I have a notice about new messages on my talk page, but when I click the link, I get the following:
You do not have permission to read this page, for the following reason:You are not allowed to execute the action you have requested.- So, I'm not allowed to read my own User_talk page? ☠MarkAHershberger☢(talk)☣ 17:02, 21 October 2013 (UTC)
- Seemed to work for me: http://oilcop.info/index.php/Special:AWCforum/st/id35 ☠MarkAHershberger☢(talk)☣ 17:05, 21 October 2013 (UTC)
- Weird, it must just be for me then that I am getting these errors, which really doesn't matter, it was just so that users could use the emoticons if they so choose. I posted a response to your topic with 2 different level access accounts, and I am curious if you see what I was seeing
- The permissions were setup by a previous administrator, and I am in the process of cleaning up things, which there is still work to be done. I am almost contemplating building a wiki from scratch as I just keep finding more and more things that are not functioning the way as I would like it to. Odyssey (talk) 17:57, 21 October 2013 (UTC)
- Sorry, your wiki is pretty locked down and it looks like my account was removed. I couldn't check. ☠MarkAHershberger☢(talk)☣ 00:15, 24 October 2013 (UTC)
- I've requested an account so I can see the problem. ☠MarkAHershberger☢(talk)☣ 21:39, 18 October 2013 (UTC)
An IP claims that this extension was integrated completely into core. As is goes in such cases no reference e.g. commit link was provided. Can someone more familiar what is going on with core verify this? Thanks and cheers [[kgh]] (talk) 17:21, 16 October 2013 (UTC)
- I have reverted the change. 88.130.104.68 19:50, 16 October 2013 (UTC)
- Thanks. [[kgh]] (talk) 07:47, 17 October 2013 (UTC)
An IP claims that this extension was integrated completely into core. As is goes in such cases no reference e.g. commit link was provided. Can someone more familiar what is going on with core verify this? Thanks and cheers [[kgh]] (talk) 17:21, 16 October 2013 (UTC)
- reverted. ☠MarkAHershberger☢(talk)☣ 22:33, 16 October 2013 (UTC)
- Thanks. [[kgh]] (talk) 07:46, 17 October 2013 (UTC)
SMF Mediawiki integration - cant log in to mediawiki
I have just upgraded both smf forum to the latest version and mediawiki too. I have a file in /extensions called SMF_Auth.php which is called when logging into mediawiki. This file contains the code
// Check Database for username and password.
$fstrMySQLQuery = 'SELECT `memberName`, `passwd`
FROM `' . $GLOBALS['wgSMF_UserTB'] . '`
WHERE `memberName` = CONVERT( _utf8 \ . $username . '\' USING latin1 )
COLLATE latin1_swedish_ci
LIMIT 1';
}
else
{
// Check Database for username and password.
$fstrMySQLQuery = 'SELECT `memberName`, `passwd`
FROM `' . $GLOBALS['wgSMF_UserTB'] . '`
WHERE `memberName` = \ . $username . '\'
LIMIT 1';
I am not logged into mediawiki when I use my smf forum username and password. Both databases use latin1_swedish_ci collation so I dont think this should be an issue. What can I do? Astarmathsandphysics (talk) 10:04, 17 October 2013 (UTC)
- Which extension are you using for SMF integration? ☠MarkAHershberger☢(talk)☣ 14:55, 17 October 2013 (UTC)
- As far as I know I am not using an extension.
- Here is the text of the file SMF_Auth
| Extended content |
|---|
<?php
/* vim: set expandtab tabstop=4 shiftwidth=4 softtabstop=4: */
/**
* This file makes MediaWiki use a SMF user database to
* authenticate with. This forces users to have a SMF account
* in order to log into the wiki. This should also force the user to
* be in a group called wiki.
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License along
* with this program; if not, write to the Free Software Foundation, Inc.,
* 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
* http://www.gnu.org/copyleft/gpl.html
*
* @package MediaWiki
* @subpackage Auth_SMF
* @author Nicholas Dunnaway
* @copyright 2004-2007 php|uber.leet
* @license http://www.gnu.org/copyleft/gpl.html
* @CVS: $Id: Auth_SMF.php,v 1.3 2007/04/05 22:17:56 nkd Exp $
* @link http://uber.leetphp.com
* @version $Revision: 1.3 $
*
*/
error_reporting(E_ALL); // Debug
// First check if class has already been defined.
if (!class_exists('AuthPlugin'))
{
/**
* Auth Plugin
*
*/
require_once './includes/AuthPlugin.php';
}
/**
* Handles the Authentication with the SMF database.
*
* @package MediaWiki
* @subpackage Auth_SMF
*/
class Auth_SMF extends AuthPlugin
{
/**
* Add a user to the external authentication database.
* Return true if successful.
*
* NOTE: We are not allowed to add users to SMF from the
* wiki so this always returns false.
*
* @param User $user
* @param string $password
* @return bool
* @access public
*/
function addUser( $user, $password )
{
return false;
}
/**
* Can users change their passwords?
*
* @return bool
*/
function allowPasswordChange()
{
return true;
}
/**
* Check if a username+password pair is a valid login.
* The name will be normalized to MediaWiki's requirements, so
* you might need to munge it (for instance, for lowercase initial
* letters).
*
* @param string $username
* @param string $password
* @return bool
* @access public
* @todo Check if the password is being changed when it contains a slash or an escape char.
*/
function authenticate($username, $password)
{
// Connect to the database.
$fresMySQLConnection = $this->connect();
// Clean $username and force lowercase username.
$username = htmlentities(strtolower($username), ENT_QUOTES, 'UTF-8');
$username = str_replace(''', '\\\'', $username); // Allow apostrophes (Escape them though)
// Check MySQLVersion
if ($GLOBALS['gstrMySQLVersion'] >= 4.1)
{
// Check Database for username and password.
$fstrMySQLQuery = 'SELECT `memberName`, `passwd`
FROM `' . $GLOBALS['wgSMF_UserTB'] . '`
WHERE `memberName` = CONVERT( _utf8 \'' . $username . '\' USING latin1 )
COLLATE latin1_swedish_ci
LIMIT 1';
}
else
{
// Check Database for username and password.
$fstrMySQLQuery = 'SELECT `memberName`, `passwd`
FROM `' . $GLOBALS['wgSMF_UserTB'] . '`
WHERE `memberName` = \'' . $username . '\'
LIMIT 1';
}
// Query Database.
$fresMySQLResult = mysql_query($fstrMySQLQuery, $fresMySQLConnection)
or die($this->mySQLError('Unable to view external table'));
while($faryMySQLResult = mysql_fetch_array($fresMySQLResult))
{
// print $this->md5_hmac($password, $username) . ':' . $faryMySQLResult['passwd'] . '<br />'; // Debug
// Check if password submited matches the SMF password.
// Also check if user is a member of the SMF group 'wiki'.
if ($this->md5_hmac($password, $username) == //<-
$faryMySQLResult['passwd'] && $this->isMemberOfWikiGroup($username))
{
return true;
}
}
return false;
}
/**
* Return true if the wiki should create a new local account automatically
* when asked to login a user who doesn't exist locally but does in the
* external auth database.
*
* If you don't automatically create accounts, you must still create
* accounts in some way. It's not possible to authenticate without
* a local account.
*
* This is just a question, and shouldn't perform any actions.
*
* NOTE: I have set this to true to allow the wiki to create accounts.
* Without an accout in the wiki database a user will never be
* able to login and use the wiki. I think the password does not
* matter as long as authenticate() returns true.
*
* @return bool
* @access public
*/
function autoCreate()
{
return true;
}
/**
* Check to see if external accounts can be created.
* Return true if external accounts can be created.
*
* NOTE: We are not allowed to add users to SMF from the
* wiki so this always returns false.
*
* @return bool
* @access public
*/
function canCreateAccounts()
{
return false;
}
/**
* Connect to the database. All of these settings are from the
* LocalSettings.php file. This assumes that the SMF uses the same
* database/server as the wiki.
*
* {@source }
* @return resource
*/
function connect()
{
// Check if the SMF tables are in a different database then the Wiki.
if ($GLOBALS['wgSMF_UseExtDatabase'] == true) {
// Connect to database. I supress the error here.
$fresMySQLConnection = @mysql_connect($GLOBALS['wgSMF_MySQL_Host'],
$GLOBALS['wgSMF_MySQL_Username'],
$GLOBALS['wgSMF_MySQL_Password'],
true);
// Check if we are connected to the database.
if (!$fresMySQLConnection)
{
$this->mySQLError('There was a problem when connecting to the SMF database.<br />' .
'Check your Host, Username, and Password settings.<br />');
}
// Select Database
$db_selected = mysql_select_db($GLOBALS['wgSMF_MySQL_Database'], $fresMySQLConnection);
// Check if we were able to select the database.
if (!$db_selected)
{
$this->mySQLError('There was a problem when connecting to the SMF database.<br />' .
'The database ' . $GLOBALS['wgSMF_MySQL_Database'] .
' was not found.<br />');
}
}
else
{
// Connect to database.
$fresMySQLConnection = mysql_connect($GLOBALS['wgDBserver'],
$GLOBALS['wgDBuser'],
$GLOBALS['wgDBpassword'],
true);
// Check if we are connected to the database.
if (!$fresMySQLConnection)
{
$this->mySQLError('There was a problem when connecting to the SMF database.<br />' .
'Check your Host, Username, and Password settings.<br />');
}
// Select Database: This assumes the wiki and SMF are in the same database.
$db_selected = mysql_select_db($GLOBALS['wgDBname']);
// Check if we were able to select the database.
if (!$db_selected)
{
$this->mySQLError('There was a problem when connecting to the SMF database.<br />' .
'The database ' . $GLOBALS['wgDBname'] . ' was not found.<br />');
}
}
$GLOBALS['gstrMySQLVersion'] = substr(mysql_get_server_info(), 0, 3); // Get the mysql version.
return $fresMySQLConnection;
}
/**
* If you want to munge the case of an account name before the final
* check, now is your chance.
*/
function getCanonicalName( $username )
{
// Connect to the database.
$fresMySQLConnection = $this->connect();
// Clean $username and force lowercase username.
$username = htmlentities(strtolower($username), ENT_QUOTES, 'UTF-8');
$username = str_replace(''', '\\\'', $username); // Allow apostrophes (Escape them though)
// Check MySQLVersion
if ($GLOBALS['gstrMySQLVersion'] >= 4.1)
{
// Check Database for username. We will return the correct casing of the name.
$fstrMySQLQuery = 'SELECT `memberName`
FROM `' . $GLOBALS['wgSMF_UserTB'] . '`
WHERE `memberName` = CONVERT( _utf8 \'' . $username . '\' USING latin1 )
COLLATE latin1_swedish_ci
LIMIT 1';
}
else
{
// Check Database for username. We will return the correct casing of the name.
$fstrMySQLQuery = 'SELECT `memberName`
FROM `' . $GLOBALS['wgSMF_UserTB'] . '`
WHERE `memberName` = \'' . $username . '\'
LIMIT 1';
}
// Query Database.
$fresMySQLResult = mysql_query($fstrMySQLQuery, $fresMySQLConnection)
or die($this->mySQLError('Unable to view external table'));
while($faryMySQLResult = mysql_fetch_assoc($fresMySQLResult))
{
return ucfirst($faryMySQLResult['memberName']);
}
}
/**
* When creating a user account, optionally fill in preferences and such.
* For instance, you might pull the email address or real name from the
* external user database.
*
* The User object is passed by reference so it can be modified; don't
* forget the & on your function declaration.
*
* NOTE: This gets the email address from SMF for the wiki account.
*
* @param User $user
* @access public
*/
function initUser(&$user)
{
// Connect to the database.
$fresMySQLConnection = $this->connect();
// Clean $username and force lowercase username.
$username = htmlentities(strtolower($user->mName), ENT_QUOTES, 'UTF-8');
$username = str_replace(''', '\\\'', $username); // Allow apostrophes (Escape them though)
// Check MySQLVersion
if ($GLOBALS['gstrMySQLVersion'] >= 4.1)
{
// Check Database for username and email address.
$fstrMySQLQuery = 'SELECT `memberName`, `emailAddress`, `realName`
FROM `' . $GLOBALS['wgSMF_UserTB'] . '`
WHERE `memberName` = CONVERT( _utf8 \'' . $username . '\' USING latin1 )
COLLATE latin1_swedish_ci
LIMIT 1';
}
else
{
// Check Database for username and email address.
$fstrMySQLQuery = 'SELECT `memberName`, `emailAddress`, `realName`
FROM `' . $GLOBALS['wgSMF_UserTB'] . '`
WHERE `memberName` = \'' . $username . '\'
LIMIT 1';
}
// Query Database.
$fresMySQLResult = mysql_query($fstrMySQLQuery, $fresMySQLConnection)
or die($this->mySQLError('Unable to view external table'));
while($faryMySQLResult = mysql_fetch_array($fresMySQLResult))
{
$user->mEmail = $faryMySQLResult['emailAddress']; // Set Email Address.
$user->mRealName = $faryMySQLResult['realName']; // Set Real Name.
}
}
/**
* Checks if the user is a member of the SMF group called wiki.
*
* @param string $username
* @access public
* @return bool
* @todo Remove 2nd connection to database. For function isMemberOfWikiGroup()
*
*/
function isMemberOfWikiGroup($username)
{
// In LocalSettings.php you can control if being
// a member of a wiki is required or not.
if (isset($GLOBALS['wgSMF_UseWikiGroup']) && $GLOBALS['wgSMF_UseWikiGroup'] === false)
{
return true;
}
// Connect to the database.
$fresMySQLConnection = $this->connect();
// Check MySQL Version
if ($GLOBALS['gstrMySQLVersion'] >= 4.1)
{
// Get all the groups the user is a member of.
$fstrMySQLQuery = 'SELECT `additionalGroups`, `ID_GROUP`
FROM `' . $GLOBALS['wgSMF_UserTB'] . '`
WHERE `memberName` = CONVERT( _utf8 \'' . $username . '\' USING latin1 )
COLLATE latin1_swedish_ci
LIMIT 1';
}
else
{
// Get all the groups the user is a member of.
$fstrMySQLQuery = 'SELECT `additionalGroups`, `ID_GROUP`
FROM `' . $GLOBALS['wgSMF_UserTB'] . '`
WHERE `memberName` = \'' . $username . '\'
LIMIT 1';
}
// Query Database.
$fresMySQLResult = mysql_query($fstrMySQLQuery, $fresMySQLConnection)
or die($this->mySQLError('Unable to view external table'));
while($faryMySQLResult = mysql_fetch_array($fresMySQLResult))
{
$faryTmp = explode(',', $faryMySQLResult['additionalGroups']); // This is a Comma Sep List
$faryTmp[] = $faryMySQLResult['ID_GROUP'];
}
// Get all the groups the user is a member of.
$fstrMySQLQuery = 'SELECT `ID_GROUP`
FROM `' . $GLOBALS['wgSMF_GroupsTB'] . '`
WHERE `groupName` = \'' . $GLOBALS['wgSMF_WikiGroupName'] . '\'
LIMIT 1';
// Query Database.
$fresMySQLResult = mysql_query($fstrMySQLQuery, $fresMySQLConnection)
or die($this->mySQLError('Unable to view external table'));
if (empty($fresMySQLResult))
{
die($this->mySQLError('Config Error, Unable to find group called ' . $GLOBALS['wgSMF_WikiGroupName']));
}
while($faryMySQLResult = mysql_fetch_array($fresMySQLResult))
{
$fstrWikiID = $faryMySQLResult['ID_GROUP'];
}
// Check if the user group was found.
if (empty($fstrWikiID) || !isset($fstrWikiID))
{
die($this->mySQLError('Config Error, Unable to find group called ' . $GLOBALS['wgSMF_WikiGroupName']));
}
if (array_search($fstrWikiID, $faryTmp) !== false)
{
return true; // User is in Wiki group.
}
else
{
return false; // User is not in Wiki group.
}
}
/**
* This is the MD5 Encryption SMF uses for passwords. Taken from Load.php
*
* @param string $data
* @param string $key
* @return string
*/
function md5_hmac($data, $key)
{
// Check if the user has the cfg file setup correctly.
if (!isset($GLOBALS['wgSMF_Version']))
{
die('<br />Error: You did not set $wgSMF_Version in your LocalSettings.php file.<br />
Please read the README file that came with the Auth_SMF plug-in for more info.<br />');
}
if (empty($GLOBALS['wgSMF_Version']))
{
die('<br />Error: You did not set $wgSMF_Version in your LocalSettings.php file.<br />
Please read the README file that came with the Auth_SMF plug-in for more info.<br />');
}
// Check that a valid version was passed.
if ($GLOBALS['wgSMF_Version'] != '1.0' && $GLOBALS['wgSMF_Version'] != '1.1')
{
die('<br />Error: Value passed in $wgSMF_Version is not valid.<br />
Please read the README file that came with the Auth_SMF plug-in for more info.<br />');
}
if ($GLOBALS['wgSMF_Version'] == '1.0')
{
$key = strtolower($key);
$key = str_pad(strlen($key) <= 64 ? $key : pack('H*', md5($key)), 64, chr(0x00));
return md5(($key ^ str_repeat(chr(0x5c), 64)) . pack('H*', md5(($key ^ str_repeat(chr(0x36), 64)). $data)));
}
if ($GLOBALS['wgSMF_Version'] == '1.1')
{
return sha1(strtolower($key) . $data);
}
// This should never happen.
die('<br />Error: Value passed in $wgSMF_Version is not valid.<br />
Please read the README file that came with the Auth_SMF plug-in for more info.<br />');
}
/**
* Modify options in the login template.
*
* NOTE: Turned off some Template stuff here. Anyone who knows where
* to find all the template options please let me know. I was only able
* to find a few.
*
* @param UserLoginTemplate $template
* @access public
*/
function modifyUITemplate( &$template )
{
$template->set('usedomain', false); // We do not want a domain name.
$template->set('create', false); // Remove option to create new accounts from the wiki.
$template->set('useemail', false); // Disable the mail new password box.
}
/**
* This prints an error when a MySQL error is found.
*
* @param string $message
* @access public
*/
function mySQLError( $message )
{
echo $message . '<br />';
echo 'MySQL Error Number: ' . mysql_errno() . '<br />';
echo 'MySQL Error Message: ' . mysql_error() . '<br /><br />';
exit;
}
/**
* Set the domain this plugin is supposed to use when authenticating.
*
* NOTE: We do not use this.
*
* @param string $domain
* @access public
*/
function setDomain( $domain )
{
$this->domain = $domain;
}
/**
* Set the given password in the authentication database.
* Return true if successful.
*
* NOTE: We only allow the user to change their password via phpBB.
*
* @param string $password
* @return bool
* @access public
*/
function setPassword( $password )
{
return true;
}
/**
* Return true to prevent logins that don't authenticate here from being
* checked against the local database's password fields.
*
* This is just a question, and shouldn't perform any actions.
*
* Note: This forces a user to pass Authentication with the above
* function authenticate(). So if a user changes their SMF
* password, their old one will not work to log into the wiki.
* Wiki does not have a way to update it's password when SMF
* does. This however does not matter.
*
* @return bool
* @access public
*/
function strict()
{
return true;
}
/**
* Update user information in the external authentication database.
* Return true if successful.
*
* @param $user User object.
* @return bool
* @public
*/
function updateExternalDB( $user )
{
return true;
}
/**
* When a user logs in, optionally fill in preferences and such.
* For instance, you might pull the email address or real name from the
* external user database.
*
* The User object is passed by reference so it can be modified; don't
* forget the & on your function declaration.
*
* NOTE: Not useing right now.
*
* @param User $user
* @access public
*/
function updateUser( &$user )
{
return true;
}
/**
* Check whether there exists a user account with the given name.
* The name will be normalized to MediaWiki's requirements, so
* you might need to munge it (for instance, for lowercase initial
* letters).
*
* NOTE: MediaWiki checks its database for the username. If it has
* no record of the username it then asks. "Is this really a
* valid username?" If not then MediaWiki fails Authentication.
*
* @param string $username
* @return bool
* @access public
* @todo write this function.
*/
function userExists($username)
{
// Connect to the database.
$fresMySQLConnection = $this->connect();
// Clean $username and force lowercase username.
$username = htmlentities(strtolower($username), ENT_QUOTES, 'UTF-8');
$username = str_replace(''', '\\\'', $username); // Allow apostrophes (Escape them though)
// Check MySQL Version
if ($GLOBALS['gstrMySQLVersion'] >= 4.1)
{
// Check Database for username.
$fstrMySQLQuery = 'SELECT `memberName`
FROM `' . $GLOBALS['wgSMF_UserTB'] . '`
WHERE `memberName` = CONVERT( _utf8 \'' . $username . '\' USING latin1 )
COLLATE latin1_swedish_ci
LIMIT 1';
}
else
{
// Check Database for username.
$fstrMySQLQuery = 'SELECT `memberName`
FROM `' . $GLOBALS['wgSMF_UserTB'] . '`
WHERE `memberName` = \'' . $username . '\'
LIMIT 1';
}
// Query Database.
$fresMySQLResult = mysql_query($fstrMySQLQuery, $fresMySQLConnection)
or die($this->mySQLError('Unable to view external table'));
while($faryMySQLResult = mysql_fetch_array($fresMySQLResult))
{
// print htmlentities(strtolower($username), ENT_QUOTES, 'UTF-8') . ' : ' . htmlentities(strtolower($faryMySQLResult['username']), ENT_QUOTES, 'UTF-8'); // Debug
// Double check match.
if (htmlentities(strtolower($username), ENT_QUOTES, 'UTF-8') ==
htmlentities(strtolower($faryMySQLResult['memberName']), ENT_QUOTES, 'UTF-8'))
{
return true; // Pass
}
}
return false; // Fail
}
/**
* Check to see if the specific domain is a valid domain.
*
* @param string $domain
* @return bool
* @access public
*/
function validDomain( $domain )
{
return true;
}
}
?>
|
- Ah, that looks like it is SMF/Users_Integration from this site. You should contact Nicholas Dunnaway to see if he could update the code.
- Alternatively, you could switch to another SMF extension. I just searched for "SMF" and found a few. The most promising looks like it is SMF Auth Integration -- see the installation notes that were updated within the past year, which includes a link to this thread. ☠MarkAHershberger☢(talk)☣ 02:59, 18 October 2013 (UTC)
How to: Update Search Index
Hi all! I've the problem that new text I put in doesn't show up when I search for it. I can search for the name of the actual page and when typing it's getting auto-completed as well. But when I try to search for a text that I know exists on a page, it doesn't show up.
Is there a way for me to check when the search index last was updated ? How is the update process done and can I start that process manually ?
Thanks Alexander 2A01:2B0:3041:3014:6417:836C:A417:126F (talk) 10:07, 17 October 2013 (UTC)
- You don't say how your search is done, but I'll point out that you can use Extension:OAIRepository to update your indexer. ☠MarkAHershberger☢(talk)☣ 14:07, 17 October 2013 (UTC)
- That didn't help me unfortunately. How do I figure out how the search is done. I didn't set the wiki up, just need to fix the indexing part.
- Thanks again
- /Alexander 2A01:2B0:3041:3014:6417:836C:A417:126F 15:55, 17 October 2013 (UTC)
- What are you using to index the site? ☠MarkAHershberger☢(talk)☣ 16:18, 17 October 2013 (UTC)
- I think but I'm not sure at all that we are using MWSearch because I've the dir /var/www/wiki/extensions/MWSearch. What is the proper way to determine which search algorithm we are actually using ? 2A01:2B0:3041:3014:4C6C:3C6B:768A:AC05 07:48, 18 October 2013 (UTC)
- So, MWSearch relies on Lucene-search which uses the aforementioned OAIRepository if you want to do incremental updates.
- Good luck! ☠MarkAHershberger☢(talk)☣ 21:33, 18 October 2013 (UTC)
- I think but I'm not sure at all that we are using MWSearch because I've the dir /var/www/wiki/extensions/MWSearch. What is the proper way to determine which search algorithm we are actually using ? 2A01:2B0:3041:3014:4C6C:3C6B:768A:AC05 07:48, 18 October 2013 (UTC)
- What are you using to index the site? ☠MarkAHershberger☢(talk)☣ 16:18, 17 October 2013 (UTC)
[RESOLVED] favicon.ico doesn't show up
Hello everybody,
I'm trying to force the favicon.ico to show up. I tried everything, but nothing works. E.g. I set the the $wgFavicon variable in my LocalSettings.php...
LocalSettings.php
$wgScriptPath = "/mediawiki";
...
$wgFavicon = "$wgScriptPath/skins/common/images/favicon.ico";
Permissions
/var/www/awiki/skins/common/images$ ls -la
...
-rw------- 1 xxx xxx 1150 Oct 17 13:55 favicon.ico
...
I would really appreciate your help. Thank you! 213.61.168.50 (talk) 12:20, 17 October 2013 (UTC)
- Resolved!
- chmod 644 favicon.ico 213.61.168.50 12:30, 17 October 2013 (UTC)
iwlinks
- Hello,
- I'm trying to use wikipedia's API to get lists of wikilinks from a given wiki to other ones (no matter the specific page, this is for a graphsearch project). On http://en.wikipedia.org/w/api.php, I found "prop=iwlinks" that seems to do that. So for a random webpage, I tried:
- http://en.wikipedia.org/w/api.php?action=query&prop=iwlinks&titles=San_Francisco&iwlimit=20
- which doesn't work (what it returns is clearly not a list of 20 wikilinks)
- while a similar request:
- http://en.wikipedia.org/w/api.php?action=query&prop=images&titles=San_Francisco&imlimit=20
- works well.
- How should I proceed? Thanks in advance! Fab8275 (talk) 13:31, 17 October 2013 (UTC)
- The results you see from prop=iwlinks are correct. If you look at the page, you'll see an infobox at the bottom with the text "Find more about San Francisco at Wikipedia's sister projects" and those links given. ☠MarkAHershberger☢(talk)☣ 14:04, 17 October 2013 (UTC)
- So then what exactly are interwiki links? I couldn't find them in the info box at the bottom, assuming I'm looking at the right thing of course. Do they link to the same page, or do they link to a page in the same wiki, i.e. wikilinks in wikipedia link to other pages in wikipedia? PietroLinguini (talk) 22:32, 17 September 2022 (UTC)
- If you look on the left-hand side of the San Francisco page, you will see "Wikimedia Commons" is listed as one of the links among the links under "In other projects".
- If you look at the results of the API query, you'll see an entry like:
{ "prefix": "c", "*": "San_Francisco" }
- This is equivalent to the url
https://en.wikipedia.org/wiki/c:San_Fransico
which, if you use it, will take you tohttps://commons.wikimedia.org/wiki/San_Francisco
since the "c" interwiki link expands to a page on commons.wikimedia.org. ☠MarkAHershberger☢(talk)☣ 16:19, 18 September 2022 (UTC)
Wiki farm question
OK, so I've managed to get the basics of wiki installation and installing addons, now I'm trying to create a small Wiki-farm the Wikimedia way, as shown at https://git.wikimedia.org/tree/operations%2Fmediawiki-config.git
I understand user rights well enough, can set them well crosswiki, e.g. Admin changed rights for User:Testuser1@localhwiki from sysop, bureaucrat, oversight to sysop, bureaucrat (test done).
I have MAMP Pro 2.2, on OS X Snow Leopard 10.6.8, PHP version is 5.4.10, and MySQL version is the latest version. I'm using the latest version of MediaWiki, 1.2.1, downloaded direct from here.
How can I accomplish the Wiki-farm with my domain names (done via MAMP Pro's interface), which are: wiki1.localhost wikimediatest.localhost and other domains, e.g. tourismwiki etc.
The URL to my wikis is not posted here as it's on localhost, but not accessible to the public.
I wanted to try the Wikimedia way, and find an automated way to create my Wikis from one template. Thanks! Hollister960 (talk) 13:04, 18 October 2013 (UTC)
- I would suggest looking at Orain (https://meta.orain.org/wiki/) who have their configuration up on github: https://github.com/orain
- That, and join the wikifarm mailing list. ☠MarkAHershberger☢(talk)☣ 23:17, 18 October 2013 (UTC)
- Actually, I strongly recommend against using Orain's configuration; Orain uses Ansible playbooks whilst Wikimedia uses Puppet. I'd recommend you first NOT use Puppet or Ansible. Grapetheratclerk 00:10, 20 October 2013 (UTC)
- What do you recommend? ☠MarkAHershberger☢(talk)☣ 01:23, 20 October 2013 (UTC)
- Actually, I strongly recommend against using Orain's configuration; Orain uses Ansible playbooks whilst Wikimedia uses Puppet. I'd recommend you first NOT use Puppet or Ansible. Grapetheratclerk 00:10, 20 October 2013 (UTC)
- Using Ansible/puppet might be overkill depending on how large of a wiki farm you're talking about. For the http://uncyclomedia.co family, we just store our config in php files [5]. Legoktm (talk) 17:22, 21 October 2013 (UTC)
Add Infoboxes to my website for me.
Hello, if I am posting in the wrong place, please forgive me. I installed the latest version of MediaWiki and I tried to add Infoboxes. I have followed 2 tutorials from top to end several times, I researched for many hours and tried every fix I could find in the forums, like setting the Lua permissions to 755, etc. After two days and a headache I finally give up, I am wondering if an expert would be willing to charge me to do it. I am hosting with Godaddy, I just removed the database and you can start from scratch. I would really appreciate the help. Thank you so much in advance.
Luis. Luispineda (talk) 04:56, 19 October 2013 (UTC)
- You can find consultants at the professional development and consulting page. I happen to be listed there. Feel free to email me.
- That said, you should have some way for people to contact you. I would recommend adding your email to your profile here so that people can use the email this user link. ☠MarkAHershberger☢(talk)☣ 01:32, 20 October 2013 (UTC)
- Thank you so much for taking the time to answer me, I really appreciate it. I moved out of Godaddy and thanks God everything worked now. Many Blessings!!! Luispineda (talk) 22:55, 20 October 2013 (UTC)
Format html is not supported for content model wikitext
I've problem when I'm trying add article on my installation. Version: 1.21.2
Error message with $wgShowExceptionDetails = true; :
Format html is not supported for content model wikitext
Backtrace:
#0 /public_html/includes/content/WikitextContentHandler.php(38): ContentHandler->checkFormat('html')
#1 /public_html/includes/content/ContentHandler.php(159): WikitextContentHandler->unserializeContent('== Getting star...', 'html')
#2 /public_html/includes/EditPage.php(2071): ContentHandler::makeContent('== Getting star...', Object(Title), 'wikitext', 'html')
#3 /public_html/includes/EditPage.php(1360): EditPage->toEditContent('== Getting star...')
#4 /public_html/includes/EditPage.php(1187): EditPage->internalAttemptSave(false, false)
#5 /public_html/includes/EditPage.php(416): EditPage->attemptSave()
#6 /public_html/includes/actions/EditAction.php(59): EditPage->edit()
#7 /public_html/includes/actions/EditAction.php(86): EditAction->show()
#8 /public_html/includes/Wiki.php(439): SubmitAction->show()
#9 /public_html/includes/Wiki.php(305): MediaWiki->performAction(Object(Article), Object(Title))
#10 /public_html/includes/Wiki.php(565): MediaWiki->performRequest()
#11 /public_html/includes/Wiki.php(458): MediaWiki->main()
#12 /public_html/index.php(59): MediaWiki->run()
#13 {main}
109.243.254.110 (talk) 15:44, 19 October 2013 (UTC)
- Which extensions do you have installed? If you disable them, does it work? ☠MarkAHershberger☢(talk)☣ 01:38, 20 October 2013 (UTC)
- I didn't install extensions. The problem occurs with frameless integration on Jfusion component for Joomla.
- I just want to know what to hack mediawiki to working editing. As I see ContentHandler-> checkFormat makes the problem. But how can I turn off eg checking that format. 109.243.254.110 11:30, 20 October 2013 (UTC)
- ContentHandler is a core bit of MediaWiki, but it is new in 1.21. You could try 1.19 (the LTS) since it doesn't have that. The other option is to fix Jfusion. You should really contact the developers of Jfusion. ☠MarkAHershberger☢(talk)☣ 16:53, 21 October 2013 (UTC)
Switching MediaWiki over to another site
Is there a fairly seamless way if, say, I'd find a host in the future and would like to transfer the wiki from my computer to theirs, or would it be easier if I find hosting first? 86.173.46.244 (talk) 12:19, 20 October 2013 (UTC)
- Hi!
- It is possible to transfer the wiki later. But there are some things you should take care of, especially: Both hosts must have a supported PHP version (should not be a problem) and more important: The MySQL versions must be compatible. Usually that also is not a big deal, but when you move your database from one host to the other you must(!) take care that after import things are still working properly. Especially umlauts, euro sign and stuff like that might get broken. In that case you would need to adjust the parameters for the ex- and/or import to fix that. Meaning: It might be that you need some MySQL knowledge to move the DB correctly.
- Also after moving a wiki, you should clear all caches (e.g. certain database tables) to prevent getting errors.
- And sure: If you later want to have the wiki hosted somewhere anyway, then it surely would be easier to put it there directly. Not having to move it is easier than moving having to move it. ;-) 88.130.121.132 15:52, 20 October 2013 (UTC)
Extension:mobilefrontend
how do I setup $wgMobileUrlTemplate = '%h0.m.%h1.%h2'; this to work so it like Wikipedia and mediawiki because I doint know how you got it to work please help how do I setup mobile access what was your configuaration 86.135.249.249 (talk) 14:53, 20 October 2013 (UTC)
- Have you found the description at Extension:MobileFrontend? 88.130.121.132 15:56, 20 October 2013 (UTC)
- yes I have but it only tells you that $wgMobileUrlTemplate = '%h0.m.%h1.%h2'; this is used manyly by Wikimedia foundation but dosent tell you how to get it working or how Wikimedia foundation got it to work 86.135.249.249 16:03, 20 October 2013 (UTC)
- The description tells you:
- Template used to transcode regular URLs into mobile URLs (optional, and probably an overkill for low-traffic sites). Can either be set as a static domain (eg 'mobile.mydomain.com'), or can use a template based off the host portion of your desktop domain. The token '%h0' represents the first portion of the hostname, '%h1' the second, and so on. For example, to achieve http://en.m.wikipedia.org from http://en.wikipedia.org, you would use: %h0.m.%h1.%h2
- So what is your domain name and what have you set $wgMobileUrlTemplate to? 88.130.121.132 20:09, 20 October 2013 (UTC)
- I have set it to what you just said but it says domain doesent esist 86.135.249.249 22:41, 20 October 2013 (UTC)
- Do I create a subdomain called m.mobiledomain.org for example and then put the template in LocalSettings and then I doint have to create a subdomain for all my domains 86.135.249.249 09:52, 21 October 2013 (UTC)
- I have set it to what you just said but it says domain doesent esist 86.135.249.249 22:41, 20 October 2013 (UTC)
- yes I have but it only tells you that $wgMobileUrlTemplate = '%h0.m.%h1.%h2'; this is used manyly by Wikimedia foundation but dosent tell you how to get it working or how Wikimedia foundation got it to work 86.135.249.249 16:03, 20 October 2013 (UTC)
Disable Moving
I've disabled editing by on-developer users, but I found out that any user can move/rename a page. How do I block the moving and renaming of a page? Gabessdsp (talk) 18:22, 20 October 2013 (UTC)
- Hi!
- When you have disabled editing a page, you most likely took the according group the "edit" user right away.
- If you also want to disable moving a page, you also have to take the "move" user right away.
- More information on the different user rights and how to set or remove them are on the page user rights. 88.130.121.132 20:06, 20 October 2013 (UTC)
How do I transclude an interface message onto a page?
By which I mean: How can I put into a page some text that changes with language?
The specific problem is that I want the introductory material on a Category page to be displayed in the current interface language. An example is at http://horawiki.org/page/Category:Dances.
I tried {{MediaWiki:TextPageName}} but this doesn't work; it does transclude the page, but doesn't transclude {{MediaWiki:TextPageName/he}} when the interface language is Hebrew.
I found my way to this page which gave me the idea to use {{int:TextPageNmae}}. This (surprisingly) did the same thing, transcluding the page but not changing with interface, though it seemed inconsistent---sometimes it did seem to get the /he version. But maybe I'm missing an extension or something.
Is there not a standard way to do this?
http://horawiki.org/, MediaWiki 1.21.1, PHP 5.3.24 (cgi-fcgi), MySQL 5.0.96-log 216.15.119.210 (talk) 21:12, 20 October 2013 (UTC)
- You want to use {{int:blah}}. Depending on how your caching is set up though, users might see cached text if the previous user had a different interface language set. Legoktm (talk) 17:19, 21 October 2013 (UTC)
- Awesome; this is consistent with everything I know, and explains the strange inconsistent results I get.
- Is cacheing you mention server-side or browser-side? If the latter, then I can do valid tests by just clearing my cache all the time, and it won't matter in practice. But I suspect that you're talking about some side of server-side cacheing (of which matters I'm ignorant) in which case it could be a problem. You say "depending on how [it] is set up"; is there more than one way to do it, and is there something I can do to ameliorate the visible effects? (If not, you may as well mark this one RESOLVED.) 216.15.119.210 22:23, 21 October 2013 (UTC)
- Addendum: I should say that I have a VERY low-traffic site, and any sort of cacheing is about as useful to me as feet on a fish. 216.15.119.210 23:08, 21 October 2013 (UTC)
- Yeah server-side. There are a bunch of different caches like parser cache, the main cache, message cache, etc. See Cache for more details. If you want to disable all caching,
$wgMainCacheType = CACHE_NONE;should do it. Legoktm (talk) 23:44, 21 October 2013 (UTC)
- Yeah server-side. There are a bunch of different caches like parser cache, the main cache, message cache, etc. See Cache for more details. If you want to disable all caching,
- Addendum: I should say that I have a VERY low-traffic site, and any sort of cacheing is about as useful to me as feet on a fish. 216.15.119.210 23:08, 21 October 2013 (UTC)
How do I add images to my Infobox?
Thank you very much for reading. I finally got my infoboxes to work. Now I would like to add images to them but I don't know where to upload the images, or honestly where to start. I tried with to upload an image to the "images" folder and when I call "|image = Example.jpg" I get just the text "|image = Example.jpg" on my infobox. I would really appreciate if someone could give me the procedure or a place where I could read it. Thank you so much for your help in advance!
Luis. Luispineda (talk) 23:01, 20 October 2013 (UTC)
- You need to upload them using [[Special:Upload]] on your wiki.
- After uploading them that way, you can refer to them using
|image=Example.jpg☠MarkAHershberger☢(talk)☣ 18:10, 4 November 2013 (UTC)
Addings table to database
Hello, i'm writing my own extension. How does it works, that when running the update-script the necessary table were added to the database?
Thanks a lot! Finswimmer (talk) 09:13, 21 October 2013 (UTC)
- You can use the LoadExtensionSchemaUpdates hook to add tables. Legoktm (talk) 17:18, 21 October 2013 (UTC)
HyperLinks
MediaWiki 1.20.3 PHP 5.3.6-13ubuntu3.9 (apache2handler) MySQL 5.1.66-0ubuntu0.11.10.3 FCKeditor (Versión 1.0.1)
Hi, When I try to edit a page that have HyperLinks on it, and I add another Link, the other Hyperlinks that I already have they are deleted and I have to make all the linking work for the previous Hyperlinks again.
Regards For the help.. 186.32.220.80 (talk) 11:31, 21 October 2013 (UTC)
- Is the wiki public so this can be tested? Plus 1.20.3 is old, please upgrade to the latest 1.20 version for your own safety. AKlapper (WMF) (talk) 12:47, 21 October 2013 (UTC)
- Is not public..
- Ok i will upgrade the wiki... But the issue whit the hyperlinks waht do you think that could be?¿?¿
- Regards! 201.198.138.107 20:39, 21 October 2013 (UTC)
- What extensions do you have installed? If you remove FCKeditor, do the links not edited remain?
- Did this ever work or is this a new installation? ☠MarkAHershberger☢(talk)☣ 19:10, 23 October 2013 (UTC)
After Upgrading to Mediawiki 1.21.1 with custom skin: How to deal with/resolve "Use of wfMsg was deprecated in MediaWiki 1.21" warnings
Hi all,
I've searched for my problem but couldn't find any topic for this yet.
I have taken over a mediawiki from someone else which uses a custom skin. Version before upgrading was mediawiki 1.19.1. After Upgrading the mediawiki to 1.21.1, the debug.log displays the following messages:
Use of wfMsg was deprecated in MediaWiki 1.21. [Called from csTemplate::execute in xxx/wiki/skins/cs.php at line 164]<br> Use of wfMsgReal was deprecated in MediaWiki 1.21. [Called from wfMsg in xxx/wiki/includes/GlobalFunctions.php at line 1444]<br> Use of wfMsgGetKey was deprecated in MediaWiki 1.21. [Called from wfMsgReal in xxx/wiki/includes/GlobalFunctions.php at line 1542]<br> Use of wfEmptyMsg was deprecated in MediaWiki 1.21. [Called from csTemplate::execute in xxx/wiki/skins/cs.php at line 164]
Is this something to be concerned of and which should be resolved? And if so, what needs to be changed? I found this document but I don't really understand what would need to be changed exactly in line 164 of my custom skin.php (if it needs to be changed at all).
the corresponding line in my custom skin cs.php are
line 164
<h5><font color="#D6D6FC"><?php $out = wfMsg( $bar ); if (wfEmptyMsg($bar, $out)) echo $bar; else echo $out; ?></font></h5>
I can understand that this custom skin maybe somewhat outdated, but why is is also displaying the use of deprecated wfMsg* in the GlobalFunctions.php (or is this a result of the action of the customskin?)
The custom skin is working without any problems in the FrontEnd, as far as I can tell.
Any help is hugely appreciated.
regards, CayceP (talk) 11:37, 21 October 2013 (UTC)
- Do you want help updating the skin? You can use this this table (and the larger page) to understand what needs to be replaced. ☠MarkAHershberger☢(talk)☣ 19:08, 23 October 2013 (UTC)
- Thank you for your reply.
- So I understand that depereciated efMsg have to be replaced to get rid of the mssage?
- And yes, I would need help how to update the skin to the new wfMsg* functions.
- I've never learned any programming language so I'm afraid I do not unterstand what exactly I need to change in my template code from the page you linked (and I found already) to make it work.
- Maybe I'm thinking too complicated but I do not understand what the
->text();part in my example and what the->inContentLanguage()->isBlank();part for WFEmptyMsg. I'm total at loss. - Status Quo:
<?php $out = wfMsg( $bar ); if (wfEmptyMsg($bar, $out)) echo $bar; else echo $out; ?>CayceP (talk) 14:37, 25 October 2013 (UTC)- I think the following untested code will do what you need:
- ☠MarkAHershberger☢(talk)☣ 18:09, 4 November 2013 (UTC)
<?php if ( wfMessage($bar)->inContentLanguage()->isBlank() ) echo $bar; else echo $out; ?>
- Thank You so much!
- After changing my custom skin template with the above code this seems to have done the trick. I don't see the message anymore in my debug log.
- FWIW if others should experience the same issue:
- From what it looks like the above message was thrown most of the time from a very aggressive yandex.ru crawler, I now blocked the Yandex.ru IP range in my .htaccess as well, so my Debug log is no longer 30+ MB in size after a week...
- I still have some issue according to debug log but I will address them individually in their own topics.
- Cheers CayceP (talk) 16:00, 11 November 2013 (UTC)
Translatewiki.net translations
Is it necessary for a translated message to get reviewed before they are exported to the gerrit? Thank you. William915 (talk) 13:43, 21 October 2013 (UTC)
- The whole process happens on TWN, you should ask there. ☠MarkAHershberger☢(talk)☣ 16:46, 21 October 2013 (UTC)
- No it's not as I understand it. Legoktm (talk) 17:17, 21 October 2013 (UTC)
- Messages are translated on twn and then automatically merged into gerrit after some period or threshold. Twn users watch for abuse. ☠MarkAHershberger☢(talk)☣ 18:26, 21 October 2013 (UTC)
- No. Good faith is assumed. siebrand (talk) 18:29, 21 October 2013 (UTC)
maintenance / DeleteOldRevisions not working
I've tried a to get various plugins to call maintenance/deleteOldRevisions.php for me to no avail.
I'm missing SSH access to the server, so I can't see if it's crashing, however I have tried two scripts now that basically call php's exec() function on the file and output the results. Each time I run it, it returns nothing.
First I tried an extension called DeleteHistory to do it, and the result was that the page didn't crash, but didn't do anything (it outputs a call to shell_exec(.../maintenance/deleteOldRevisions.php)).
Then I tried using the MaintenanceShell extension ( http://www.mediawiki.org/wiki/Extension:MaintenanceShell ) and the same thing happened. Nada. No output from the function call.
My question is, has anyone tested that maintenance script in the latest mediawiki (1.21.2)? Is there some other hook/extension/setting I might have that's breaking it or is it possible that maintenance script isn't working? 174.119.254.138 (talk) 01:04, 22 October 2013 (UTC)
- Hi!
- You need to have a look at the PHP error log; there you will find more information about the different problems.
- You can try MediaWiki extensions, you can also install a PHP shell. However, in any case it is posible - or even likely - that your hoster does not provide the needed environment to run these scripts. Maybe he just does not allow you to executde the necessary functions.
- However, you should know one thing: All that are only workarounds. Scripts like DeleteOldRevisions.php are made to be run from the shell and if you don't have shell access, they might just not work. The only real fix is to switch to a host, which does have shell access. 88.130.71.103 11:59, 22 October 2013 (UTC)
- Well, the shell_exec and exec() php functions operate effectively the same way as running it from a terminal. I'm not sure why mediawiki has decided that a terminal should be the only way to run these operations, but I don't know of any reason why it's different. Is there some reason why you're saying it should be done from the shell other than that's how it says to access it in the docs?
- I've tested running other scripts in the maintenance folder from the extension and they generally work. From what I can tell, the main problem here is that there's no response from the script when it's executed normally ( using --help works fine and outputs help info, for example ). Frug (talk) 17:51, 22 October 2013 (UTC)
WikiFarm with different permissions on each wiki
Is it possible to have a wikifarm where users in group A on wiki1 are in group B on wiki2? Painfulbird (talk) 01:42, 22 October 2013 (UTC)
- Short answer: yes.
- Longer answer: you'll have to do some work to implement this.
- (I should clarify that I think you'll have to do some programming to get this done. I don't know of a way to do this currently.) ☠MarkAHershberger☢(talk)☣ 18:47, 23 October 2013 (UTC)
Update WikiPages
Hi,
I need to update bunch of existing Wiki page using Export and Import utility. This will be kind of “bulk update” with few pages changing and few remaining unchanged. I am planning to export entire repository, update the rows which are needed and then do an entire import of the repository back.
Please guide me with the steps and procedure to be followed to overwrite/update existing Wikipages.
Thanks 115.111.36.94 (talk) 12:19, 22 October 2013 (UTC)
- Avoid modifying the database directly. Instead use importDump.php. ☠MarkAHershberger☢(talk)☣ 00:12, 24 October 2013 (UTC)
- Hi,
- I do not have shell access, thus importDump.php wont work for me.
- Due to restriction I can only use "Import/Export" utility.
- I have followed the below steps to overwrite an existing Wiki page using Export and Import utility.
- Step 1. Extracted data of an existing Wikipage in XML using the "export utility"
- Note : kept the "Include Templates" checkbox untick. Other 2 checkboxes were ticked.
- Eg : abcd.xml
<mediawiki xmlns="htttttp://www.mediamediawikinewtp.org/wiki " xmlns:xsl="httttttp://www.w3.org/2001/" xsl:schemaLocation = "htttttp://www.mediawikinewtp.org/xml/export...." version="0.4" xml:tang='en"> <siteinfo> <sitename>ABCD</sitename> <namespace>Media</namespace> </siteinfo> <page> <title>NEW</title> <id>25</id> <revision> <id>12345</id> <timestamp>2013-10-09</timestamp> <contributor> <username>rohi</username> <id>1</id> </contributor> <text xml:space="preserve"> {{ Documenation |name=XYZ |phonenumber=123456789 }} </text> </revision> </page> </mediawiki>
- Step 2. Made below changes in the above XML file.
- Changed phonenumber value as"phonenumber=9999999 ".
- Deleted the below tags from <revision> tag
<id>12345</id> <timestamp>2013-10-09</timestamp> <id>1</id>
- Below is updated abcd.xml
<mediawiki xmlns="httttttp://www.mediamediawikinewtp.org/wiki " xmlns:xsl="httttttp://www.w3.org/2001/" xsl:schemaLocation = "htttttp://www.mediawikinewtp.org/xml/export...." version="0.4" xml:tang='en"> <siteinfo> <sitename>ABCD</sitename> <namespace>Media</namespace> </siteinfo> <page> <title>NEW</title> <id>25</id> <revision> <contributor> <username>rohi</username> </contributor> <text xml:space="preserve"> {{ Documenation |name=XYZ |phonenumber=9999999 }} </text> </revision> </page> </mediawiki>
- Step 3. Imported the above XML file.
- After importing the updated XML file, the changes made were NOT reflected.
- Is this this the correct procedure to overwrite an existing Wikipage?
- Do I need to add or remove any tags ?
- (Note : The XML files are dummy)
- Please guide me on using the "Import/Export" utility.
- Thanks RohiniPagar (talk) 17:25, 13 November 2013 (UTC)
- Importing the same dump over the original wiki won't work. MediaWiki already does some checks to prevent creating duplicate revision entries when importing. It will see that the imported revisions already exist and won't update any article.
- You'll need to change revision ID, revision timestamp and username/user id, at least. Ciencia Al Poder (talk) 10:55, 14 November 2013 (UTC)
- Hi,
- Instead of changing the revision ID, revision timestamp and username/user id can I remove these tags ?
- Will I be able to import over the original Wiki by doing this?
- Please guide.
- Thanks RohiniPagar (talk) 09:53, 30 December 2013 (UTC)
- No, you can't remove those tags, or else it may give an error when importing, since MediaWiki expect them to exist for that checking.
- If you had shell access, the best way would be to use getText.php in combination with edit.php.
- Otherwise, you should consider doing it on-line using the API. Ciencia Al Poder (talk) 10:49, 30 December 2013 (UTC)
Help updating
I do not know how to write in this code. Is ther a way for me to update/edit a page and have the code inserted after? 98.148.240.88 (talk) 18:04, 22 October 2013 (UTC)
- Without more details it is impossible to help. What is "this code" exactly?
- In case you refer to an installation of the MediaWiki software, see https://www.mediawiki.org/wiki/Manual:Upgrading AKlapper (WMF) (talk) 14:38, 23 October 2013 (UTC)
Backspace not working in Windows 8.1 Wikipedia App
Typing in the search box, unable to backspace!! Key works fine in all other applications. 203.174.179.74 (talk) 21:29, 22 October 2013 (UTC)
- What I have noticed is that hitting backspace while typing in the search box actually applies a "page" backspace function (goes to the previous page) instead of deleting letters! 203.174.179.74 01:25, 23 October 2013 (UTC)
- https://www.mediawiki.org/wiki/Talk:Wikimedia_Mobile_engineering might be a better place to bring this up. AKlapper (WMF) (talk) 14:39, 23 October 2013 (UTC)
- Hmm, I thought I'd fixed that. I'll double-check it... brion (talk) 13:40, 25 October 2013 (UTC)
- Confirmed. Filed a bug for myself at https://bugzilla.wikimedia.org/show_bug.cgi?id=56168 brion (talk) 15:37, 25 October 2013 (UTC)
- Ok, fixed version should be in the Windows Store for update any time. brion (talk) 10:09, 26 October 2013 (UTC)
- Confirmed. Filed a bug for myself at https://bugzilla.wikimedia.org/show_bug.cgi?id=56168 brion (talk) 15:37, 25 October 2013 (UTC)
- <wikieditor-toolbar-tool-file-pre>Example.jpg]] 111.92.241.114 11:33, 26 October 2013 (UTC)
Different Vector Skin Style CSS (Code blocks and SyntaxHighlight Geshi)
My local installed MediaWiki is looking different then this version (http://www.mediawiki.org/wiki). For example: My Code blocks are not styled (no border).
Also my SyntaxHighlight blocks have dashed borders and a small font, but the blocks on this site have a solid border and a larger font. I searched and looked into a few different CSS files, but I cannot find .mw-code styled anywhere except Line-height.
Can anyone tell me where this difference in styling is from? 212.178.88.106 (talk) 11:21, 23 October 2013 (UTC)
- Can you provide a link to your wiki so we can try to see what the problem is? ☠MarkAHershberger☢(talk)☣ 18:45, 23 October 2013 (UTC)
[CLOSED] Installation impossible
Hello,
I upload all file in to my ftp, on my firefox, http://domain.com/wiki : The MediaWiki logo MediaWiki 1.21.2
LocalSettings.php not found.
Please http://domain.com/wiki/mw-config/index.php the wiki first.
I stay on the same page except that the link becomes http://domain.com/wiki/mw-config/mw-config/index.php
Version 1.21.2
Apache2 : Server version: Apache/2.2.22 (Debian) php : PHP 5.4.4-14+deb7u5 (cli) (built: Oct 3 2013 09:24:58) MySQL : mysql Ver 14.14 Distrib 5.5.31, for debian-linux-gnu (x86_64) using readline 6.2
Thanks for help me Owned67 (talk) 11:26, 23 October 2013 (UTC)
- I'm confused. If you go to http://domain.com/wiki/mw-config/ what happens? ☠MarkAHershberger☢(talk)☣ 00:04, 24 October 2013 (UTC)
- i can't post my link, it's bloked for spam omg (no-ip.org)
- by clicking on the link (replacing with my domain name) in the address bar of firefox, it returns this loop for each click:
- http://domain.com/wiki/mw-config/mw-config/mw-config/mw-config/mw-config/mw-config/mw-config/
- edit: i use php install.php but .css is not loaded ???? :x
- http://img401.imageshack.us/img401/7826/uvb0.png Owned67 (talk) 07:23, 24 October 2013 (UTC)
- The CSS problem, which you see is usually caused by wrong/missing rewrite rules in .htaccess. See Manual:Load.php for details. 88.130.98.197 10:43, 24 October 2013 (UTC)
- I have add but not change :x
- delete cookie & cache for my browser Owned67 (talk) 11:01, 24 October 2013 (UTC)
- Ok, strange. Check the source code of the page and see, which CSS files should be used. Then open the URL to these files in your browser and see what you get displayed. What you should see are CSS rules, maybe minified. 88.130.98.197 11:17, 24 October 2013 (UTC)
- I'm a newbie :x
- <!DOCTYPE html>
- <html lang="fr" dir="ltr" class="client-nojs">
- <head>
- <title>Accueil - Wiki Free 4 Funs</title>
- <meta charset="UTF-8" />
- <meta name="generator" content="MediaWiki 1.21.2" />
- <link rel="alternate" type="application/x-wiki" title="Modifier" href="/index.php?title=Accueil&action=edit" />
- <link rel="edit" title="Modifier" href="/index.php?title=Accueil&action=edit" />
- <link rel="shortcut icon" href="/favicon.ico" />
- <link rel="search" type="application/opensearchdescription+xml" href="/opensearch_desc.php" title="Wiki Free 4 Funs (fr)" />
- <link rel="EditURI" type="application/rsd+xml" href="http://192.168.1.32/api.php?action=rsd" />
- <link rel="alternate" type="application/atom+xml" title="Flux Atom de Wiki Free 4 Funs" href="/index.php?title=Sp%C3%A9cial:Modifications_r%C3%A9centes&feed=atom" />
- <link rel="stylesheet" href="http://192.168.1.32/load.php?debug=false&lang=fr&modules=mediawiki.legacy.commonPrint%2Cshared%7Cskins.vector&only=styles&skin=vector&*" />
- <meta name="ResourceLoaderDynamicStyles" content="" />
- <style>a{text-decoration:underline}
- /* cache key: l4d2funs-wiki_:resourceloader:filter:minify-css:7:75c3bd52b007b28b245b4c79c460fdfc */</style>
- <script src="http://192.168.1.32/load.php?debug=false&lang=fr&modules=startup&only=scripts&skin=vector&*"></script>
- code source Owned67 (talk) 11:21, 24 October 2013 (UTC)
- If that is the output of one of the CSSL files, namely of
http://192.168.1.32/load.php?debug=false&lang=fr&modules=mediawiki.legacy.commonPrint%2Cshared%7Cskins.vector&only=styles&skin=vector&*- and
http://192.168.1.32/load.php?debug=false&lang=fr&modules=startup&only=scripts&skin=vector&*- then your problem definitely is that the ReWriteRules are incorrect. .htaccess is tricky and a bit bitchy when it comes to wrong rules... 88.130.98.197 11:30, 24 October 2013 (UTC)
- i go to dokuwiki, sorry.
- thank for support Owned67 (talk) 11:21, 24 October 2013 (UTC)
- Ok, strange. Check the source code of the page and see, which CSS files should be used. Then open the URL to these files in your browser and see what you get displayed. What you should see are CSS rules, maybe minified. 88.130.98.197 11:17, 24 October 2013 (UTC)
- The CSS problem, which you see is usually caused by wrong/missing rewrite rules in .htaccess. See Manual:Load.php for details. 88.130.98.197 10:43, 24 October 2013 (UTC)
ConfirmEdit/QuestyCaptcha works - but only with trigger "createaccount"
I'm managing a small musicological wiki (http://liturgica-notata.wiki.gwdg.de) and trying to keep it spamfree. I've installed several extensions, and the most effective so far seems to be QuestyCaptcha with some really special questions.
What bothers me is: QuestyCaptcha seems to be only triggered by "createaccount", though in the LocalSettings.php I have specified it to be triggered by "edit", "create", "createtalk", "addurl", "createaccount" und "badlogin"; "skipcaptcha" is "false" for "*" und "user" and true for "autoconfirmed". As an unregistered user, I can create and edit articles and talk-pages without captcha ("addurl" and "badlogin" I didn't try out).
What can be the cause for that funny behavior? And how can I change this? As all spammers in my wiki so far did create accounts, it is no serious problem, but I'd like to protect the other kinds of actions as well.
(I moved this question from Extension talk:ConfirmEdit/2013#c-LiturgicaNotata-2013-10-02T16:30:00.000Z-QuestyCaptcha_works_-_but_only_with_trigger_"createaccount" since that page seems to be rather inactive.) LiturgicaNotata (talk) 12:23, 23 October 2013 (UTC)
- Thanks for pointing out where you originally posted this. I have started watching Extension talk:ConfirmEdit.
- Could you paste your settings for $wgGroupPermissions, $wgCaptchaTriggers, $wgCaptchaTriggersOnNamespace, $wgCaptchaWhitelist and $ceAllowConfirmedEmail? ☠MarkAHershberger☢(talk)☣ 23:44, 23 October 2013 (UTC)
- Thank you for your answer!
- I have fiddled around a lot with the GroupPermission-Settings in the beginning before I found the Lockdown-extension (which really works in the way I wanted it), so the section with GroupPermission is rather large (and maybe most of it unneccessary). For a test I deactivated all the GroupPermission-settings, but concerning the Captcha there was no change: still no captcha for editing a page as unregistered user. So I changed the settings back to the state before the test. As I mentioned Lockdown: That can't be the cause of the problem, since it was only installed after I discovered the Captcha-problem.
- Here come my settings:
$wgGroupPermissions['*']['createaccount'] = true; $wgGroupPermissions['*']['read'] = true; $wgGroupPermissions['*']['edit'] = true; $wgGroupPermissions['*']['createpage'] = false; $wgGroupPermissions['*']['createtalk'] = true; $wgGroupPermissions['*']['writeapi'] = true; # Registrierte Nutzer dürfen auch nicht mehr als unregistrierte, bis die # drei Tage Wartezeit um sind. $wgGroupPermissions['user']['move'] = false; $wgGroupPermissions['user']['move-subpages'] = false; $wgGroupPermissions['user']['move-rootuserpages'] = false; $wgGroupPermissions['user']['movefile'] = false; $wgGroupPermissions['user']['read'] = true; $wgGroupPermissions['user']['edit'] = true; $wgGroupPermissions['user']['createpage'] = false; $wgGroupPermissions['user']['createtalk'] = true; $wgGroupPermissions['user']['writeapi'] = true; $wgGroupPermissions['user']['upload'] = false; $wgGroupPermissions['user']['reupload'] = false; $wgGroupPermissions['user']['reupload-shared'] = false; $wgGroupPermissions['user']['minoredit'] = false; # Autoconfirmed (als nach drei Tagen Wartezeit) hat dann weitgehende Rechte: $wgGroupPermissions['autoconfirmed']['move'] = true; $wgGroupPermissions['autoconfirmed']['move-subpages'] = true; $wgGroupPermissions['autoconfirmed']['move-rootuserpages'] = true; $wgGroupPermissions['autoconfirmed']['movefile'] = true; $wgGroupPermissions['autoconfirmed']['read'] = true; $wgGroupPermissions['autoconfirmed']['edit'] = true; $wgGroupPermissions['autoconfirmed']['createpage'] = true; $wgGroupPermissions['autoconfirmed']['createtalk'] = true; $wgGroupPermissions['autoconfirmed']['writeapi'] = true; $wgGroupPermissions['autoconfirmed']['upload'] = true; $wgGroupPermissions['autoconfirmed']['reupload'] = false; $wgGroupPermissions['autoconfirmed']['reupload-own'] = true; $wgGroupPermissions['autoconfirmed']['minoredit'] = true; $wgGroupPermissions['autoconfirmed']['purge'] = true; $wgGroupPermissions['autoconfirmed']['sendemail'] = true; # Stellt ein, welche Benutzergruppen ein captcha auflösen müssen: $wgGroupPermissions['*' ]['skipcaptcha'] = false; $wgGroupPermissions['user' ]['skipcaptcha'] = false; $wgGroupPermissions['autoconfirmed']['skipcaptcha'] = true; $wgCaptchaTriggers['edit'] = true; $wgCaptchaTriggers['create'] = true; $wgCaptchaTriggers['createtalk'] = true; $wgCaptchaTriggers['addurl'] = true; $wgCaptchaTriggers['createaccount'] = true; $wgCaptchaTriggers['badlogin'] = true; # ermöglicht Erteilung von Benutzergruppenrechten: # $wgGroupPermissions['sysop']['userrights'] = true;
- no $wgCaptchaTriggersOnNamespace, no $wgCaptchaWhitelist, no $ceAllowConfirmedEmail. LiturgicaNotata (talk) 06:54, 24 October 2013 (UTC)
- I think you've discovered a bug. I tried to duplicate this on a 1.19 wiki and was successful. Here's the bug. Please add any useful information to it.
- Thanks! ☠MarkAHershberger☢(talk)☣ 16:08, 7 November 2013 (UTC)
- Thank you for trying it out yourself! I hope now it can be fixed at bugzilla. I have bookmarked the page, and if I find something that might help I will add it. LiturgicaNotata (talk) 10:29, 11 November 2013 (UTC)
.htaccess problems
In being a complete idiot and new to Mediawiki and websites in general, I attempted to set short URLs for my site.
My WebFTP wouldn't show hidden files, and after downloading FileZilla FTP did it occur to me that in adding a new .htaccess file with the short URL code, I inadvertently overwrote the old .htaccess file in my sites root.
First question - is this bad? I assume it is, and it didn't help sort short URLs... Second question - how do I create a new default .htaccess file to replace the one I overwrote?
Many thanks... 94.3.43.57 (talk) 13:55, 23 October 2013 (UTC)
- Apologies, I believe in searching I may not have such a problem after all... carry on. 94.3.43.57 14:01, 23 October 2013 (UTC)
[RESOLVED] Unable to update wiki database from unknown version
Old server crashed. I have an SQL dump of the old DB which I have imported back into MySQL. I'm guessing it's pre 1.5 because the collation in the dump is "latin_bin". I've also installed 1.21 into a different schema so I have the new DB with the new schema and the old data in the old schema.
I'm running on Windows w/ IIS. PHP 5.4.21. MySQL 5.6. New wiki seems to be running fine. Old setup was Windows w/ Apache (not set up by me). I'm hoping to update the old DB schema to match the new, then export the old data and re-import into the new schema (or just point the wiki at the newly updated schema).
The server is on a private LAN - internal use only.
I'm trying to run "php update.php --conf d:\website\wiki.old\Apache2\htdocs\wiki\localsettings.php" in the new wiki's maintenance folder. I receive the following error:
Fatal error: Cannot redeclare class SiteConfiguration in D:\website\wiki.old\Apache2\htdocs\wiki\includes\SiteConfiguration.php on line 17
Running the script without the --conf option runs successfully against the new schema - it finds there's nothing to do and exits normally.
Any suggestions?
Thanks,
-Jeff 69.39.6.178 (talk) 20:18, 23 October 2013 (UTC)
- Further searching shows the old version is actually 1.9.2. 69.39.6.178 23:07, 23 October 2013 (UTC)
- Is
wiki.oldthe old wiki or the new one? ☠MarkAHershberger☢(talk)☣ 00:00, 24 October 2013 (UTC)- The old one. The new one is in d:\website\wiki 69.39.6.178 00:57, 24 October 2013 (UTC)
- I figured this out. I stopped trying to use the old localsettings.php and changed the $wgDBname variable in the new localsettings.php. Ran the update and copied the images tree and everything seems to be working in the new version. 69.39.6.178 16:29, 24 October 2013 (UTC)
- Try backing up all your wikis files delete all the files on your website and then upload a new copy of Mediawiki and go into your backup wiki file and pick the files you want to show on your wiki 90.213.133.108 11:36, 25 October 2013 (UTC)
Short URLs just will not work...
I've been trying to set short URLs for nearly 2 days now to no avail.
I've used settings an advice (independently and in combination) on what to put in .htaccess and local_settings.php from:
http://wiki.dreamhost.com/MediaWiki/Short_URLs http://www.mediawiki.org/wiki/Manual:Short_URL/wiki/Page_title_--_no_root_access https://discussion.dreamhost.com/thread-129408.html http://www.mediawiki.org/wiki/Project%3ASupport%20desk/Flow/2013/04#h-%5BRESOLVED%5D_Short_URL_help_please-2013-04-29T22%3A29%3A00.000Z http://shorturls.redwerks.org/ http://wiki.dreamhost.com/Short_URL
And probably elsewhere. Nothing works - I either get 404 errors, or occasionally 500 Internal Errors (depending what I mess about with in .htaccess).
My site is up here - http://attwiki.org/index.php?title=Welcome_to_ATTwiki.org
Essentially I want it to miss out the "index.php?title=" bit, or have "/wiki/". But everything hates me.
Any help appreciated.
Dan 94.3.71.31 (talk) 22:10, 23 October 2013 (UTC)
- What have you tried in your .htaccess file? ☠MarkAHershberger☢(talk)☣ 22:39, 23 October 2013 (UTC)
- Pretty much everything included in the above links:
RewriteEngine On RewriteRule ^/?wiki(/.*)?$ %{DOCUMENT_ROOT}/w/index.php [L] RewriteRule ^/*$ %{DOCUMENT_ROOT}/w/index.php [L]- or
RewriteEngine On RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule ^(.*)$ index.php?title=$1 [PT,L,QSA]- or
RewriteEngine On RewriteBase / RewriteCond %{REQUEST_FILENAME} !-f RewriteRule ^/?wiki/(.*)$ /index.php/$1 [L,QSA] 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- /\ is from a series of comments in which you replied, and I tried the other thing you mentioned.
- Or
RewriteEngine On 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] 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]- Sorry about the dearth of information... None of these appear to do much, apart from change the error from a 404 to a 500 when I change the local_settings file... 94.3.71.31 23:14, 23 October 2013 (UTC)
- Hi!
- Maybe your .htaccess configuration is not the real problem here.
- When I see a link to one of your pages, then it links to index.php?title=.... In other wikis, where short URLs work properly, you do not get such link. Instead MediaWiki links you to Page title. So I think this is a problem, which you have to solve inside LocalSettings.php. Especially §wgScriptPath and $wgArticlePath are the variables to look at. 88.130.98.197 23:45, 23 October 2013 (UTC)
- Well at the moment I've left the local_settings.php alone again, i.e. not changed any settings for short URLs, as whenever I do, I get either a 404 or 500 error come up.
- For more on what HASN'T worked see below... 94.3.71.31 00:14, 24 October 2013 (UTC)
- What are $wgUsePathInfo and $wgArticlePath set to in your LocalSettings.php? ☠MarkAHershberger☢(talk)☣ 23:57, 23 October 2013 (UTC)
- Again, I've tried a few things.
- $wgScriptPath = "/w";
- $wgArticlePath = "/wiki/$1";
- Also including:
- $wgUsePathInfo = true;
- Sometimes leaving $wgScriptPath as = ""
- Sometimes using $wgArticlePath = "$wgScriptPath/$1";
- As I say, I've tried a lot through trial and error, so I'm surprised none of it has worked, given at least one of these seems to have worked for others... 94.3.71.31 00:12, 24 October 2013 (UTC)
- And $wgUsePathInfo is set to ...?
- I would try with something like the following. Note that currently you have your wiki files installed in the web root directly. This is not recommended. Instead, you should move all the wiki files and folders into a subfolder, e.g. called "wiki". That is what $wgScriptPath has to point at.
// Path to your wiki files$wgScriptPath = "/wiki";// Structure of the article path.$wgArticlePath = "/$1";- If you get an "Internal error" page saying "Redirect loop detected!" after you finish configuration you may be using something other than mod_php. If so you need to explicitly turn on short urls using the following line in your LocalSettings.php:
$wgUsePathInfo = true;- In any case, even when the short URLs do not work yet, you will still be able to call your wiki through the index.php file like so: index.php?title=Main_Page. Then check the tab "Page" to see, if MediaWiki basically creates the structure of the article path the way you want to. Once that is done you can configure .htaccess so that this kind of links gets redirected properly. 88.130.98.197 01:25, 24 October 2013 (UTC)
- Do you mean putting the whole "armstreaty.org" folder that I have into another folder named "wiki"?
- I figured that might make a difference, but on trying that with the above settings, I keep getting
- "Not Found
- The requested URL / was not found on this server.
- Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request."
- The problem is less that I don't get short URLs, and more that any attempt to do so makes my website inaccessible. 94.15.153.142 16:35, 24 October 2013 (UTC)
- No, what I mean is: On the server you have a folder, which from outside is accessible as domain.org. This folder is called web root. That is where you currently have all your wiki files and folders, e.g. the file LocalSettings or the folder images/ and many more. Now inside the web root, create a new, empty folder called "wiki/" and move all the wiki things into this folder, so that afterwards LocalSettings.php, index.php the folder images/ and the whole rest are all inside the folder wiki/.
- Afterwards calling http://attwiki.org/wiki/index.php?title=Welcome_to_ATTwiki.org (note the additional "wiki/" in the URL) must display you the main page of your wiki. Do you get that? 88.130.98.197 17:21, 24 October 2013 (UTC)
- I feel stupid.
- I've been assuming the main directly containing my "domain.org" was the web root. And whenever I accessed the website from the home URl it didn't work... right, I'll try the above settings now and let you know how I get on, thanks! 94.15.153.142 18:04, 24 October 2013 (UTC)
- Right, I've done that.
- So I now can access the page at http://attwiki.org/wiki/index.php?title=Welcome_to_ATTwiki.org
- However other pages within the wiki are inaccessible, and the main page reverts to the index with the "wiki" folder, even after trying to above settings... 94.15.153.142 18:16, 24 October 2013 (UTC)
- > So I now can access the page at http://attwiki.org/wiki/index.php?title=Welcome_to_ATTwiki.org
- That is no longer working now. You should restore that state. Move the files into the folder wiki/ again.
- After that begin modifying LocalSettings.php: Set
// Path to your wiki files$wgScriptPath = "/wiki";// Structure of the article path.$wgArticlePath = "/$1";- If you get an "Internal error" page saying "Redirect loop detected!" after you finish configuration you may be using something other than mod_php. If so you need to explicitly turn on short urls using the following line in your LocalSettings.php:
$wgUsePathInfo = true;- Then call http://attwiki.org/wiki/index.php?title=Welcome_to_ATTwiki.org again. Now the link "View history" should work properly. When you move the mouse over (do not click it!) move the mouse over the link "Page", you should see attwiki.org/Welcome_to_ATTwiki.org as URL.
- Does that work? Both of it? 88.130.98.197 18:28, 24 October 2013 (UTC)
- Yes on both counts (View History works and the correct URL shows up). 94.15.153.142 18:51, 24 October 2013 (UTC)
- Good.
- MediaWiki works and it now already creates the kind of URLs, which you want to have.
- Now update the .htaccess file. You might have such a file inside the folder wiki/. Does this file only contain your tests to set up short URLs? If so, remove it completely. Otherwise tell me, what's in it (apart from the short URL tests)! And then remove it anyway.
- Create a new .htaccess file in the web root (= outside of the wiki/ folder) with this content:
RewriteEngine on# uncomment this rule if you want Apache to redirect from www.domain.com/ to www.domain.com/Main_Page# RewriteRule ^$ /Main_Page [R]# Only do the following rewrite, if the requested file does _not_ existRewriteCond %{REQUEST_FILENAME} !-f# do the rewriteRewriteRule ^(.*)$ /wiki/index.php?title=$1 [L,QSA]- And then click a page, e.g. click the page tab at http://attwiki.org/wiki/index.php?title=Welcome_to_ATTwiki.org .
- Do you see your main page under the URL http://attwiki.org/Welcome_to_ATTwiki.org ? 88.130.83.62 22:21, 24 October 2013 (UTC)
- There was nothing bar the aborted Short URL attempts in the file.
- I did what you said, and it appears to have, well, worked! Thank you so much! I have no idea how you made this foolproof...
- But I'm going to assume there are further stages yet to make it not implode...? 94.15.153.142 22:40, 24 October 2013 (UTC)
- I make things foolproof ... half-day.
- Short URLs are basically set up now. Maybe there are still some things, that might need configuration, but these things - compared to in how far you have got it working now - are rather small.
- For example you might still want to remove what you have set as $wgLogo or make $wgLogo point to your own logo file so that you again see a logo in the upper left-hand corner. 88.130.83.62 23:53, 24 October 2013 (UTC)
- Oh, my cache hadn't caught up, I hadn't noticed that - thanks.
- Once again, thank you so much for this, I couldn't believe how I could read so much advice until this point and it still didn't work and yet, just a few simple steps later...! 94.15.153.142 09:14, 25 October 2013 (UTC)
- And you should disable registration for anonymous users and disable editing for anonymous users. Otherwise you will soon be flooded by spammers, which make your wiki a nice little place for small, blue pills and so on. See user rights for more information. 88.130.83.62 10:38, 25 October 2013 (UTC)
- Thanks for the hints. I pondered whether the benefits of keeping it open to anyone were worth it, but for such a niche site, it probably isn't worth the risk. 94.15.153.142 11:16, 25 October 2013 (UTC)
- Anonymous editing is disabled now. Looks good. For account creation the user right is "createaccount". Admins have this right by default, meaning when you are logged in, you will still be able to create new accounts yourself.
- And after that you might want to do your first MediaWiki Upgrade. :-) Version 1.19.8 is the current one from the 1.19 branch. A minor upgrade like this one is rather easy. You basically only have to replace all those files in your folder wiki/, which came with the MediaWiki package (so not the content of the folder images/), with the files from the new package. See Upgrade for what to do. 88.130.83.62 12:40, 25 October 2013 (UTC)
- Hello,
- $wgSitename = "Free 4 Funs";
- $wgMetaNamespace = "Free_4_Funs";
- $wgScriptPath = "/wiki";
- $wgScriptExtension = ".php";
- $wgArticlePath = "/$1";
- $wgUsePathInfo = true;
- $wgServer = "http://l4d2-funs.myriapulse.com";
- my htaccess:
- RewriteEngine on
- uncomment this rule if you want Apache to redirect from www.domain.com/ to www.domain.com/Main_Page
- RewriteRule ^$ /Main_Page [R]
- Only do the following rewrite, if the requested file does _not_ exist
- RewriteCond %{REQUEST_FILENAME} !-f
- do the rewrite
- RewriteRule ^(.*)$ /wiki/index.php?title=$1 [L,QSA]
- RewriteBase /wiki
- uncomment this rule if you want Apache to redirect from www.domain.com/ to www.domain.com/Main_Page
- RewriteRule ^$ /Main_Page [R]
- http://l4d2-funs.myriapulse.com/wiki/index.php/Accueil >> ok
- http://l4d2-funs.myriapulse.com/Accueil >> 404 not found
- http://l4d2-funs.myriapulse.com/Left4Dead2 >> 404 not found
- Sincerely, Owned67 (talk) 21:27, 27 October 2013 (UTC)
- Hi!
- Your configuration in LocalSettings.php is correct and MediaWiki creates the correct links. Your problem is the .htaccess file.
- The rewrite rules are currently not executed. E.g. with the rule
RewriteRule ^$ /Main_Page [R]- calling http://l4d2-funs.myriapulse.com/ should redirect to http://l4d2-funs.myriapulse.com/Main_Page. Currently this does not happen.
- In which folder on the server have you placed the .htaccess file? It must be not inside, but next to the folder wiki/. Is it at that place?
- Instead, another rewrite is kicking in: When I call your domain, I am redirected to /partage/public/. This redirect (and what magic else might happen at that moment) interferes with the MediaWiki rewrite rules. Make sure that this other magic gets disabled! 88.130.104.209 23:49, 27 October 2013 (UTC)
- htaccess file is locate in ./wiki/
- This redirect is a simple meta refresh.... (so it's disabled but any change)
- Problem solved, thank!!! ;)
- put htacces in root web and add :
- RewriteBase /wiki
- work's fine Owned67 (talk) 00:09, 28 October 2013 (UTC)
- The .htaccess file may not be located inside wiki/, but outside of it, next to it. I see you fixed that already and it's working for you now as well. :-) 88.130.104.209 01:17, 28 October 2013 (UTC)
- Thanks for the further hints there, appreciated (was away over the weekend so thought I'd thank you now anyway!). 94.3.137.255 18:28, 28 October 2013 (UTC)
- This does not work as I would like ...
- for example:
- http://l4d2-funs.myriapulse.com/partage/public is no longer available
- do you have the solution? Owned67 (talk) 21:35, 28 October 2013 (UTC)
- It is working as it should: The rewrite rules, which were not working before, now kick in nicely and you get the expected result. When you want to access other stuff, you should choose a different domain or subdomain for both; otherwise you will get problems with certain pages names inside MediaWiki. Separate URLs of different things properly and it's fine. 88.130.104.209 21:40, 28 October 2013 (UTC)
- I do not have a sub-domain but I think I found the solution. I affirm you tomorrow if the problem is resolved. Owned67 (talk) 22:34, 28 October 2013 (UTC)
- It is working as it should: The rewrite rules, which were not working before, now kick in nicely and you get the expected result. When you want to access other stuff, you should choose a different domain or subdomain for both; otherwise you will get problems with certain pages names inside MediaWiki. Separate URLs of different things properly and it's fine. 88.130.104.209 21:40, 28 October 2013 (UTC)
- Thanks for the hints. I pondered whether the benefits of keeping it open to anyone were worth it, but for such a niche site, it probably isn't worth the risk. 94.15.153.142 11:16, 25 October 2013 (UTC)
- And you should disable registration for anonymous users and disable editing for anonymous users. Otherwise you will soon be flooded by spammers, which make your wiki a nice little place for small, blue pills and so on. See user rights for more information. 88.130.83.62 10:38, 25 October 2013 (UTC)
- Yes on both counts (View History works and the correct URL shows up). 94.15.153.142 18:51, 24 October 2013 (UTC)
WikiEditor - customizing
Hi,
I would like to create a new toolbar for wikieditor :
Drop down that can add the content of another wikipage in the page we are editing
this something like template but this template is customizable for each page using it. I know that if the template change the page wont change but it is not a problem.
I managed to add some dropdown menu to the advanced toolbar that can add some text in the current wiki ( similar to headers in fact) , but I did not found a solution to get the content of a wikipage.
Could you help me? Best regards Adrien 192.44.63.161 (talk) 09:57, 24 October 2013 (UTC)
- I assume you've looked at the page on toolbar customization. You could use JS + the API to get the content of a given page. ☠MarkAHershberger☢(talk)☣ 15:28, 7 November 2013 (UTC)
Search results not linking to search phrase in page
Hi, I would like to have some way of linking the search results to the actual place on the page where the search phrase is, so that if the page is a long one, the user isn't left having to read through (or then have to use the browser search tool) the whole document. I know linking to the actual word might be difficult, but at least if it was to the nearest prior section, it would help enormously.
Does anyone know of an extension that does this, as I haven't found one yet? In an ideal world, I think there should be a way of inserting temporary anchors into pages when a specific search phrase is used, then the search box could double up as an in-page search tool as well.
Thanks for any suggestions
Marco 83.136.70.58 (talk) 15:42, 24 October 2013 (UTC)
- I don't know of an extension that does this. You can file a bug under extension requests and someone may write one (or point you to the existing functionality. ☠MarkAHershberger☢(talk)☣ 18:04, 4 November 2013 (UTC)
Are templates possible in MediaWiki?
Does anybody know if MediaWiki supports templates? I'd like to be able to structure pages somewhat like a database, with strongly enforced fields. Thoughts? 24.60.219.54 (talk) 19:47, 24 October 2013 (UTC)
- Hi!
- You know of Help:Templates?
- What do you mean with "strongly enforced fields"? Do you want to force your editors to fill out certain fields? 88.130.83.62 21:51, 24 October 2013 (UTC)
- Yeah, I don't think their definition of templates is what I'm looking for. I want something more like a database with, as you said, editors being forced to fill out (or at leas presented with) certain fields. For example: Name, Address, etc.
- What I'm looking for is to build a client profile page for hundreds of clients, and the fields/subfields are generally the same for all those clients. Trying to decide if MediaWiki is the way to go. 24.60.219.54 14:31, 25 October 2013 (UTC)
- You may be looking for something like Extension:SemanticForms. brion (talk) 22:22, 26 October 2013 (UTC)
Coordinates display
What might cause this: "Coordinates: 51.081°N 1.166°E{{#coordinates:51.081|1.166|region:GB_type:city(45273)|||||| |primary |name= }}" to display rather than "Coordinates: 51.081°N 1.166°E"?
http://206.196.110.205/w/English/index.php/Folkestone
Product Version MediaWiki 1.21.2 PHP 5.4.9-4ubuntu2.3 (apache2handler) MySQL 5.5.32-0ubuntu0.13.04.1
It displays normally at http://wwtrade.co/English/index.php/Folkestone
Product Version MediaWiki 1.21.2 PHP 5.3.10-1ubuntu3.8 (apache2handler) MySQL 5.5.32-0ubuntu0.12.04.1 Fred Bauder (talk) 11:42, 25 October 2013 (UTC)
- Your two wikis have different versions of the "coord" template. The one at the IP address invokes a Lua module (requires Extension:Scribunto for the #invoke, and may also use Extension:Geodata for the backend storage), while the wwwtrade.co version uses an older-style template that does not appear to use a Lua module. brion (talk) 22:21, 26 October 2013 (UTC)
- Yes, if Lua won't work you use the old templates. I never did solve this problem and have since re-imaged both servers. On one I never got mail to work and on the other never could get instant commons to work. I'm learning a lot though... Thank you very much brion for taking the time to respond. Fred Bauder (talk) 12:04, 3 November 2013 (UTC)
- Installation of Extension:Geodata solved this problem; without it geodata coding was being include in output. Fred Bauder (talk) 18:34, 11 November 2013 (UTC)
- Yes, if Lua won't work you use the old templates. I never did solve this problem and have since re-imaged both servers. On one I never got mail to work and on the other never could get instant commons to work. I'm learning a lot though... Thank you very much brion for taking the time to respond. Fred Bauder (talk) 12:04, 3 November 2013 (UTC)
PasswordReset does not let me reset user passwords directly
MediaWiki 1.21.2 PHP 5.4.20 (apache2handler) MySQL 5.5.31
Hello, I recently upgraded my mediawikies and password reset form changed, so no I can only press - email password. I am working with users that do not have email or does not remember passwords and I constantly need to reset them and I need that non-email functionality. Is there any way I could edit some php file so there would appear option of resetting a password directly instead of emailing it?
Thank you in advance for your help, Simonas Narbutas 146.50.80.232 (talk) 15:24, 25 October 2013 (UTC)
- anyone knows whether it's possible to get back old password reset form on 1.21.2 wiki? Or a way to do it without logging into shell/mysql database? 146.50.80.232 08:36, 29 October 2013 (UTC)
- There's Extension:Password Reset but it's marked as unstable, and may not work with the current release of MediaWiki. You're encouraged to create a new bug (if none already exists about this) to request the ability to generate a random password and be displayed to the admin requesting that instead of email it. Ciencia Al Poder (talk) 10:33, 31 October 2013 (UTC)
- Thank you for the reply,
- I was using this extension for my wikies on version 1.14, but I was doing some maintenance, migrating wikies from 5 years old server to a new one and updated wikies to lastest version and this extension does not work anymore. This is what the extension site says:
- In MW 1.18 and above, a special page "PasswordReset" exists which overrides the special page of this extension. This means this extension no longer works from 1.18 on.
- This is actually not a bug, just a functionality that has been removed.
- But I will try to create one. Thank you 146.50.80.232 09:07, 1 November 2013 (UTC)
- There's Extension:Password Reset but it's marked as unstable, and may not work with the current release of MediaWiki. You're encouraged to create a new bug (if none already exists about this) to request the ability to generate a random password and be displayed to the admin requesting that instead of email it. Ciencia Al Poder (talk) 10:33, 31 October 2013 (UTC)
Please set a page up for translation?
Hi, can someone please make Help:Screenshots translatable with the Translate extension? Thanks a lot! Elitre (WMF) (talk) 21:15, 25 October 2013 (UTC)
- (sorry if this belonged to Project:Current_issues. Please feel free to move/delete as you find appropriate.) Elitre (WMF) (talk) 21:16, 25 October 2013 (UTC)
- Nevermind, now
Done by user:Guillom. Elitre (WMF) (talk) 19:44, 28 October 2013 (UTC)
- Nevermind, now
Schriftgröße im Editor ändern?
In einem Wiki, in dem ich Admin bin, fragte mich ein Nutzer, wie er die Schrift im Editor-Fenster vergrößern konnte. Ich sah es mir mit Firebug an und fan diesen CSS-Code heraus:
#wpTextbox1 {
font-size:100px;
}
Der funktioniert auch in Firebug, nicht aber, wenn er in die Benutzer-common.css eingetragen wird. Der betreffende Nutzer teilte mri also mit, das der Code nicht funktionieren würde. Ich probierte es daraufhin in meiner eigenen Benutzer:Mariofan13/common.css und in meiner Vector.css aus, auch dort zeigte er keine Wirkung. Den Cache löschte ich immer, ich probierte auch den parameter action=purge in der URL aus, der zeigte keine Wirkung. Wie lautet also der CSS-Code zum Verändern der Schriftgröße im Editor-Fenster? Sturmjäger (talk) 09:24, 26 October 2013 (UTC)
- (German via Google Translate:)
- Dies kann sich auf mehr Elemente beziehen, als du willst, aber ich fand heraus, dass folgendes in Special:MyPage/common.css
textarea {font-size: 200%;}- den gewünschten Effekt haben sollte.
- (English original:)
- This may affect more elements than you want, but I found that adding the following to Special:MyPage/common.css
textarea { font-size: 200%; }- had the effect you seem to want. ☠MarkAHershberger☢(talk)☣ 18:10, 31 October 2013 (UTC)
[RESOLVED] #switch too long?
MediaWiki 1.21.2
PHP 5.4.20 (apache2handler) MySQL 5.5.34
<includeonly>{{#switch:{{{1|}}}
|AF = ...
+53 statements
|#default = ''{{{1}}}''<sup><small>[{{fullurl:Vorlage:Spezial|action=edit}} edit]</small></sup>
}}</includeonly><noinclude>V...
this switch statement runs since MW 1.16.x I've updated php and MW at the same time, so I'm not sure if it's a MW problem or a php problem.
Between { { and } } are 2824 Charters, when I delete some statements #switch works again. Swus (talk) 19:58, 26 October 2013 (UTC)
- Have you tested if the point where this makes a difference is, say, 2048 characters? I would suggest reading over WP:TLIMIT and, if your case isn't covered there, filing a bug report. ☠MarkAHershberger☢(talk)☣ 01:26, 5 November 2013 (UTC)
- I'm so st...
- a missing "]" was the problem :( Swus (talk) 14:50, 8 November 2013 (UTC)
how to run a query to search through all text on my site to find a 'string'
Mediawiki has a table in the database 'text' which contains the page content. It is saved as a [BLOB] file. I would like to run a query to search through all the text on the site to see which pages contain a certain 'string'. eg I want to find all the pages which contain the word 'elephant'. How do I run a query to search through the [blob] files? LTech (talk) 07:10, 27 October 2013 (UTC)
- If your wiki doesn't use compressed storage options, you can simply issue an SQL SELECT statement using the LIKE matching operator, it should work fine: http://dev.mysql.com/doc/refman/5.0/en/string-comparison-functions.html#operator_like
mysql> select page_namespace,page_titlefrom page,revision,textwhere old_text like '%francisco%'and old_id=rev_text_id and rev_page=page_id and page_latest=rev_id;+----------------+---------------+| page_namespace | page_title |+----------------+---------------+| 0 | San_Francisco |+----------------+---------------+- Note that if your wiki *does* use compressed storage options, this won't work at all. brion (talk) 11:47, 27 October 2013 (UTC)
- Thanks that worked.
- The query returned the results were the string was found but when I opened the BLOB file under old_text and then searched for that page on my site the text was not the same.
- How do I know if the old_text data is the current revision of the page or an old page?
- I tried finding the matching page in the revision table but it was getting really complicated and I couldn't figure it out. LTech (talk) 09:14, 28 October 2013 (UTC)
Further issues with: "wiki uses cookies to log in users. You have cookies disabled. Please enable them and try again."
This issue was marked as resolved in this post. But it is still a problem for me so i thought i would start a new thread about it.
The issue cropped up a few weeks after i installed mediawiki so i decided to reinstall the whole thing including databases as i had not started using it yet.
This time i dont want to do that as i have been using it and i want to know how to stop this from occuring again.
For both times it broke, I believe the error first appeared when i tried to access the site from my phone. Could be coincidence but worth mentioning.
Two other notes of interest:
- Both times i was logged in on another computer. I have still not logged out as im afraid i cant get back in again, although i ahve tried a different login name to no avail.
- When i log in repeatedly on my mac i get a blank page now although before it would give me the warning. Nothing seems to ahve changed and other computers still give me the warning.
I have tried creating a tmp folder in the wiki folder, public_html and root, giving them all 777 permision. I also made sure all my tmp folders are empty and putting
session_save_path("tmp");
at the end of my LocalSettings.php as suggested by these sites: http://stackoverflow.com/questions/16127882/how-can-i-fix-the-mediawiki-error-wiki-uses-cookies-to-log-in-users-you-have-c http://stackoverflow.com/questions/1148583/problem-with-mediawiki-cookies
The last site suggested ensuring the Internet Guest Account has correct permsisions which im unsure of so this is the only step i have not taken but i cannot see why that would randomly change itself.
- Wiki version: 1.21.2
- PHP 5.4 (FastCGI)
- MySQL:
- Server: Bluehost
I tried to get the debug log working and succeeded only in chaning my wiki login page to plain text somehow. Even after commenting out the debug log and delting the text file i wanted it to save to this remains...
I am clueless about all this so if there is any other details required for diagnosis, please let me know.
Thanks in advance for any help i get with this. 90.216.199.123 (talk) 10:21, 27 October 2013 (UTC)
- Hmm, i guess noone has ideas on how to resolve this issue. What about ideas to further investigate it? Im getting quite desperate to have this working again but im at then end of my admittedly limited knowledge of how to find potetntial issues. Any suggested avenues to explore would be very welcome! 90.219.35.251 16:01, 3 November 2013 (UTC)
- I missed your question before. Sorry for the late reply.
- You say you're seeing a blank page when you log in repeatedly. There are probably some errors that you're missing at this point. What happens if you add:
error_reporting( -1 ); ini_set( 'display_errors', 1 );
- right after the
<?phpline in your LocalSettings.php file? Do you see anything besides the blank screen? - Also you should use
- in your LocalSettings.php instead of just "tmp". But that should be changed as soon as you resolve this problem since it will make your wiki easy to hack into. ☠MarkAHershberger☢(talk)☣ 17:44, 4 November 2013 (UTC)
session_save_path("$IP/tmp");
- Hi thanks for the reply and sorry for not getting back to you. I got pretty frustrated with it and made a point of leaving it for awhile!
- The blank page only happened on my macs Firefox browser (but not on Windows Firefox browser). It happenend after spamming the login button but this no longer works. I think it's probably unrelated anyway. I put in the code for error catching so if it does work eventualy il post back here.
- Further ideas for helping me inverstigate or solve my issues are still most welcome!
- Not nearly as important but any notes on restoring the page back to normal from the plain text look would be great too!
- Thanks in advance,
- Douglas 94.13.40.143 20:17, 13 November 2013 (UTC)
- I don't understand what you mean by this bit:
- any notes on restoring the page back to normal from the plain text look would be great
- Could you describe the problem you're having with "plain text"? ☠MarkAHershberger☢(talk)☣ 17:49, 14 November 2013 (UTC)
- That is a minor issue and unrelated im sure. Shouldn't have gone of topic, i can fix that later. (FYI: i mean its like a plain html file).
- I noticed the following 2 errors after your advice with enabling error logs:
- Warning: Cannot modify header information - headers already sent by (output started at /home7/USERNAME/public_html/WIKI/includes/specials/SpecialUserlogin.php:1391) in /home7/USERNAME/public_html/WIKI/includes/WebResponse.php on line 38
- Warning: include(): Failed opening '/home7/USERNAME/public_html/WIKI/resources/Resources.php' for inclusion (include_path='.:/usr/php/54/usr/lib64:/usr/php/54/usr/share/pear') in /home7/USERNAME/public_html/WIKI/includes/resourceloader/ResourceLoader.php on line 204
- Note: I wrote in caps the key words that i worried might not be good to post online for the world to see.
- I have not checked these errors out myself yet with my own google-foo but i will tomorrow if i get time and post back here with any findings.
- Thanks a lot for taking the time to help me Mark. 94.13.40.143 20:45, 14 November 2013 (UTC)
- After more than a month i ahd the same result as this user: http://www.mediawiki.org/wiki/Project%3ASupport%20desk/Flow/2013/09#h-Wiki_uses_cookies_to_log_in_users._You_have_cookies_disabled._Please_enable_them-2013-09-20T13%3A35%3A00.000Z
- I went to show the issue to a PHP developer and it was working! Not exactly a solution to wait for weeks until it fixes itself but thats me sorted until it happens again...
- The plain html issue fixed itself as well.
- Thanks for your help Mark. Much appreciated. 94.13.40.143 13:10, 16 November 2013 (UTC)
- I don't understand what you mean by this bit:
ShortURL Builder 500 Internal Server Error
Hello,
/wiki/.htaccess
These rules go inside the .htaccess file at "/wiki/.htaccess". If a .htaccess file already exists there you should merge these rules in with it. However if you have any existing rewrite rules for your article path or thumbnail handler you should probably erase those to avoid conflicting with these.
RewriteEngine On RewriteCond %{DOCUMENT_ROOT}%{REQUEST_URI} !-f RewriteCond %{DOCUMENT_ROOT}%{REQUEST_URI} !-d RewriteRule ^(.*)$ %{DOCUMENT_ROOT}/wiki/index.php [L]
RewriteCond %{DOCUMENT_ROOT}%{REQUEST_URI} !-f RewriteCond %{DOCUMENT_ROOT}%{REQUEST_URI} !-d RewriteRule ^/?wiki/images/thumb/([^/]+)/([0-9]+)px-.*$ %{DOCUMENT_ROOT}/wiki/thumb.php?f=$1&width=$2 [L,QSA,B]
RewriteCond %{DOCUMENT_ROOT}%{REQUEST_URI} !-f RewriteCond %{DOCUMENT_ROOT}%{REQUEST_URI} !-d RewriteRule ^/?wiki/images/thumb/archive/([^/]+)/([0-9]+)px-.*$ %{DOCUMENT_ROOT}/wiki/thumb.php?f=$1&width=$2&archived=1 [L,QSA,B]
/wiki/LocalSettings.php
This configuration is meant to go into your LocalSettings.php. There should be a small block already in there that is similar to this, replace that with these settings to setup the MediaWiki side of the Short URL config.
- The URL base path to the directory containing the wiki;
- defaults for all runtime URL paths are based off of this.
- For more information on customizing the URLs please see:
- http://www.mediawiki.org/wiki/Manual:Short_URL
$wgScriptPath = "/wiki"; $wgScriptExtension = ".php"; $wgArticlePath = "{$wgScriptPath}/$1";
/wiki/LocalSettings.php
This configuration is meant to go into your LocalSettings.php. There should be a small block already in there that is similar to this, replace that with these settings to setup the MediaWiki side of the Short URL config.
- To enable image uploads, make sure the 'images' directory
- is writable, then set this to true:
$wgEnableUploads = true; $wgGenerateThumbnailOnParse = false;
this return 500 error, i don't have access on root...
Thanks Owned67 (talk) 11:40, 27 October 2013 (UTC)
- Hi!
- You must have an error in your .htaccess file. Check the Apache Log to get more information on the server error.
- With the information you gave us it is hard to help; having a URL to actually see, where you installed MediaWiki would be helpful. Apart from that I have lately helped someone with exactly the same problem and he has got Short URLs working properly now. See the thread called "Short URLs just will not work..." below on this site and follow the advises I gave there. I guess it should help you, too! 88.130.83.237 12:47, 27 October 2013 (UTC)
- i don't have access on root...
- htaccess:
RewriteEngine On- RewriteCond %{DOCUMENT_ROOT}%{REQUEST_URI} !-f
- RewriteCond %{DOCUMENT_ROOT}%{REQUEST_URI} !-d
- RewriteRule ^(.*)$ %{DOCUMENT_ROOT}/wiki/index.php [L]
- RewriteCond %{DOCUMENT_ROOT}%{REQUEST_URI} !-f
- RewriteCond %{DOCUMENT_ROOT}%{REQUEST_URI} !-d
- RewriteRule ^/?wiki/images/thumb/([^/]+)/([0-9]+)px-.*$ %{DOCUMENT_ROOT}/wiki/thumb.php?f=$1&width=$2 [L,QSA,B]
- RewriteCond %{DOCUMENT_ROOT}%{REQUEST_URI} !-f
- RewriteCond %{DOCUMENT_ROOT}%{REQUEST_URI} !-d
- RewriteRule ^/?wiki/images/thumb/archive/([^/]+)/([0-9]+)px-.*$ %{DOCUMENT_ROOT}/wiki/thumb.php?f=$1&width=$2&archived=1 [L,QSA,B]
- url site: http://l4d2-funs.myriapulse.com/
- url wiki : http://l4d2-funs.myriapulse.com/wiki Owned67 (talk) 13:16, 27 October 2013 (UTC)
- You do not need root access to set up short URLs. Your problem seems to be that you do not have MediaWiki installed; at least it is not present at any of the two links you posted. 88.130.83.237 13:21, 27 October 2013 (UTC)
- omg ?
- I remove htaccess for you :
- http://l4d2-funs.myriapulse.com/wiki/index.php/Accueil
- It's installed dude ;) Owned67 (talk) 13:24, 27 October 2013 (UTC)
- Yeah, now it's there. It only showed an error 404 when I checked the .../wiki URL.
- Some kind of short URLs is set up as well; it seems to be working currently... 88.130.83.237 13:39, 27 October 2013 (UTC)
- but I do not want:
- http://l4d2-funs.myriapulse.com/wiki/index.php/Accueil
- I would like to:
- http://l4d2-funs.myriapulse.com/wiki/Accueil Owned67 (talk) 13:42, 27 October 2013 (UTC)
- No, that will not work. You cannot have the page names in the same folder as you have your actual wiki files.
- Installing the wiki files themselves in wiki/ is fine, but then you must choose another path for your pages. You might e.g. choose "w/" or "nothing" so that the URLs will look like http://l4d2-funs.myriapulse.com/Accueil. The latter is what you get when you follow the thread "Short URLs just will not work...". 88.130.83.237 15:03, 27 October 2013 (UTC)
- setting wgarticlepath set to none ? Owned67 (talk) 15:53, 27 October 2013 (UTC)
- The value is "/$1". Best is you just follow the other thread. 88.130.83.237 16:22, 27 October 2013 (UTC)
- setting wgarticlepath set to none ? Owned67 (talk) 15:53, 27 October 2013 (UTC)
- You do not need root access to set up short URLs. Your problem seems to be that you do not have MediaWiki installed; at least it is not present at any of the two links you posted. 88.130.83.237 13:21, 27 October 2013 (UTC)
MediaWiki 1.21.2 / Private Wiki / BadLogin not triggered
Hey,
I`m Using MediaWiki 1.21.2. For logged users, the ConfirmEdit Ext. works just fine.
But when an Anonymous user tries to log with invalid cert, the bad BadLogin in ConfirmEdit is not triggered. Please Help :)
I`m using
$wgGroupPermissions['*']['read'] = false;
and added
$wgWhitelistRead = array ("Special:ConfirmEdit");
but still no dice...
Thank You!
Config:
# The following permissions were set based on your choice in the installer
$wgGroupPermissions['*']['createaccount'] = false;
$wgGroupPermissions['*']['edit'] = false;
$wgGroupPermissions['*']['read'] = false;
$wgWhitelistRead = array ("Special:ConfirmEdit");
require_once( "$IP/extensions/ConfirmEdit/ConfirmEdit.php" );
# ConfirmEdit
$wgCaptchaClass = 'SimpleCaptcha';
$wgGroupPermissions['*' ]['skipcaptcha'] = false;
$wgGroupPermissions['user' ]['skipcaptcha'] = false;
$wgGroupPermissions['autoconfirmed']['skipcaptcha'] = false;
$wgGroupPermissions['bot' ]['skipcaptcha'] = false; // registered bots
$wgGroupPermissions['sysop' ]['skipcaptcha'] = false;
$wgCaptchaTriggers['edit'] = false;
$wgCaptchaTriggers['create'] = false;
$wgCaptchaTriggers['addurl'] = false;
$wgCaptchaTriggers['createaccount'] = true;
$wgCaptchaTriggers['badlogin'] = true;
192.241.199.243 (talk) 16:10, 27 October 2013 (UTC)
- What do you mean the badlogin is not triggered? It looks like anonymous users can't use your site at all. ☠MarkAHershberger☢(talk)☣ 17:30, 4 November 2013 (UTC)
- I thought it means when a registered user tries to log in with the wrong password - or an anonymous user trying to log in without registration - I'm sure there must be a login-page, even if the wiki is otherwise closed to anonymous users.
- Could that be the same problem as mine that I reported here some days before?
- https://www.mediawiki.org/wiki/Project%3ASupport%20desk/Flow/2013/10#h-ConfirmEdit/QuestyCaptcha_works_-_but_only_with_trigger_%22createaccount%22-2013-10-23T12%3A23%3A00.000Z
- I've seen that our settings are quite different; I'm using MediaWiki Version 1.19.8 and QuestyCaptcha instead of SimpleCaptcha, and my Wiki is relatively open, but like for you there are triggers that don't work. LiturgicaNotata (talk) 07:51, 6 November 2013 (UTC)
- From the docs:
- 'badlogin' - triggered on the next login attempt after a failed one. Requires $wgMainCacheType to be set to something other than CACHE_NONE.
- So it doesn't have anything to do with anonymous users. I'm confused about this statement of yours:
- But when an Anonymous user tries to log with invalid cert, the bad BadLogin in ConfirmEdit is not triggered.
- What do you mean by "invalid cert"? ☠MarkAHershberger☢(talk)☣ 15:15, 7 November 2013 (UTC)
- From the docs:
Block user function does not work in my wiki.
For some reason I don't know yet, the block user function become totally useless in my wiki. All the spammer and spoilers are still able to act just like normal user!
I want to know which table in the wiki database store the Blocked user info. I need to manually set it. Deletedaccount4567435 (talk) 19:25, 27 October 2013 (UTC)
- Is the edits make on their own talk pages? wargo (talk) 19:34, 27 October 2013 (UTC)
- That caused by one bug list here: http://lists.wikimedia.org/pipermail/mediawiki-announce/2013-November/000135.html .
- Fixed by upgrade. Zoglun (talk) 23:01, 23 November 2013 (UTC)
Too early HTML expansion of wiki code returned by #if
When you use something like:
[[{{#if:fr|:Category:Main page templates/fr|:Category:Main page templates}}|Some text to display for the link]]
the #if: / #ifexpr: parser functions incorrectly assume that their return value will be the full content to expand to HTML, the result is:
[[
- Category:Main page templates/fr|Some text to display for the link]]
as if it was:
[[:Category:Main page templates/fr|Some text to display for the link]]
It should be:
as if it was:
[[:Category:Main page templates/fr|Some text to display for the link]]
It should be:
as if it was:
[[:Category:Main page templates/fr|Some text to display for the link]]
So they expand the leading : as if it was at the start of a newline, and generate an indented block (the indented definition item in a definitions list: dl+dd elements in HTML), truncating the leading character from the link to generate here, and in fact breaking it completely.
Here this breaks the intent to generate an inline link to a category, but this could as well be an inline interwiki link to another language, or to a file or image (not to render in a thumbnail), for which we need the leading : in the return value.
The same happens when the return value of #if[expr]: starts by ; (the bold defined term item in a definitions list: dl+dt elements in HTML), or * (bulleted item in an unordered list: ul+li elements in HTML), or # (numbered item in an ordered list: ol+li elements in HTML).
So the #if[expr]: parser function should not expand its return value out of its context, when it does not really know if it will be at the start of a wiki line, only the caller may do this where it knows that it follows a newline, or the caller should give instruction hints to #if about its current context of transclusion (i.e. if it is immediately after a newline; oatherwise the expansion should remain pending in the wiki code buffer and returned unchanged as a prefix to the caller that will perform the wiki code concatenation and expansion only when appropriate).
This may be caused by #if[expr]: or #switch:returning a spurious leading newline in its return value
- Note that this newline can't come from the source parameter given to be returned by
#if[expr]:or#switch:, because these source parameters are trimmed from all their embedded HTML comments, and then from their leading and trailing whitespaces, including newlines. However numeric character entities are not parsed and replaced at this level — see the related bug below in the last example —, so will not be considered whitespace and won't be trimmed, and these parser functions see each character entity as if it was multiple characters.
The bug does not affect the first parameter of #if[expr/exist/eq] and #switch, but it also affects the return value of #if[exist/eq], #switch, and possibly of some other functions returning some wiki text not intended to be used alone for generation of HTML...
Note that these tricks also do not work to generate the intended links:
[[{{#if:fr|<!-- -->:Category:Main page templates/fr|<!-- -->:Category:Main page templates}}|Some text to display for the link]]- same problem as above:
[[
- Category:Main page templates/fr|Some text to display for the link]]
[[{{#if:fr|<nowiki/>:Category:Main page templates/fr|<nowiki/>:Category:Main page templates}}|Some text to display for the link]]- no link generated, the brackets and pipe remain in visible text (even if this disables the generation of the definition list):
[[{{#if:fr|<nowiki/>:Category:Main page templates/fr|<nowiki/>:Category:Main page templates}}|Some text to display for the link]]- no link generated, the brackets and pipe remain in visible text (even if this disables the generation of the definition list):
[[:Category:Main page templates/fr|Some text to display for the link]]
[[{{#if:fr|:Category:Main page templates/fr|::Category:Main page templates}}|Some text to display for the link]]- broken result as well (additional bug, the numeric character entities containing
#are not recognized correctly by the Mediawiki parser for links in double brackets, which incorrectly sees them as if they were containing an anchor)
- broken result as well (additional bug, the numeric character entities containing
There's currently no easy way for a conditional template using parser functions to safely return any undecorated value wiki-parsable in context and starting by :, ;, * or #. Except possibly by returning them by transclusion of another template, like {{!}} for returning pipes (|), the trick being usable as well for returning undecorated values starting by !, =, - or (SPACE) in some cases where they need to preserve their special meanings at start of lines in the wiki syntax (or may be {, }, [, ], <, >, &, ', ~ as well, anywhere in lines ?).
Sometimes I really hate the wiki syntax with parser functions ! Thanks, now we can invoke the new Lua modules to replace all these damned parser functions in templates. Verdy p (talk) 20:10, 27 October 2013 (UTC)
Help with WYSIWYG editor
Hi
I installed the WYSIWYG editor, but I can't see how to create a code block. What I want is for a snippet of code to appear in a box with a border and have a light blue background. How is this possible with the WYSIWYG editor? 80.194.71.78 (talk) 10:23, 28 October 2013 (UTC)
- Which WYSIWYG editor? VisualEditor? Or https://www.mediawiki.org/wiki/Extension:WYSIWYG ? Are you aware of https://www.mediawiki.org/wiki/Extension:CodeEditor ? Which MediaWiki version is this about? AKlapper (WMF) (talk) 10:56, 29 October 2013 (UTC)
Upload return: Fatal error: Call to a member function bind() on a non-object in /var/www/site/l4d2-funs.myriapulse.com/wiki/includes/upload/UploadBase.php on line 259
Hello,
after upload image: Fatal error: Call to a member function bind() on a non-object in /var/www/site/l4d2-funs.myriapulse.com/wiki/includes/upload/UploadBase.php on line 259
images folder chmod 777
and $wgVerifyMimeType = false; but warning : http://img443.imageshack.us/img443/4791/v3gn.png
What should I tell my host to no longer be a problem?
Sincerely, Owned67 (talk) 11:49, 28 October 2013 (UTC)
- This is this bug. I'm kind of surprised that you're seeing this and it hasn't been fixed. ☠MarkAHershberger☢(talk)☣ 16:01, 1 November 2013 (UTC)
- Thank you! Owned67 (talk) 19:39, 3 November 2013 (UTC)
Quicker Import method
I'm trying to find a way to quickly import self generated wiki pages from external data, and have links and categories updated. If I generate an XML file, I can use the mediawiki importDump.php to bring in the pages, and everything is updated, but at a rather slow 2.5 pages a second. With 14 million pages, that would take months! I can skip updating links on the import, which takes it down to 2 days, but then links, categories, and semantic data isn't updated. So if I then run refreshLinks.php and such, we are right back to months. I've tried messing with a lot of the sql importers like mwdumper, but none seem to work right after 5+ years of no development, and they still aren't going to update links and other data. Any ideas on how I can speed things up? Maybe some tweaks that improve importDump? I'd really appreciate the help. Thanks! 66.25.74.224 (talk) 22:26, 28 October 2013 (UTC)
- Hi!
- I don't know if improving importDump.php would help here. After all you already know that you get the same result, when you use the separate scripts to update categories and such. So I guess: Either there is a way to optimize the SQL queries, which are needed to update categories and so on.
- Or you find a way to improve performance of your MySQL server. I would start with MySQL performance; there are some performance tuners, which might be a good starting point. However, I don't really know what exactly you would have to change... ;-( 88.130.98.212 22:36, 28 October 2013 (UTC)
- Well I just boosted my sql server performance by 10 fold, but it made virtually no difference to the importDump speed. :( The upgrade from MySQL 5.1.66 to MariaDB 5.5.3 though is astounding. 10 fold is probably an understatement at how much quicker the site is now. So happy I did it nevertheless.
- STILL, I guess SQL isn't quite the bottleneck? The server is dedicated, and looking at the task manager it seems like cpu usage is at 18%, but 1 of the 6 cores is getting pretty hammered, which I guess is my bottleneck right there. Memory still has a lot free, but I see the php memory use climbing. Hard drive is 3 SSDs in a Raid 5, so no stress there.
- Maybe I can speed this thing up if I can get it to use more cores? Any ideas how to do that on a WIMP server? 66.25.74.224 01:28, 29 October 2013 (UTC)
- The SQL side isn't the bottleneck. From my experience, the slowness comes from XML parsing that importDump does. At least, straight SQL imports are a lot faster than using importDump to recreate wikis.
- Would it be possible to use the MediaWiki API to import the pages? That might be faster for your case.
- The slowness could also come from the page parsing that MediaWiki is doing and have nothing at all to do with SQL or XML parsing. ☠MarkAHershberger☢(talk)☣ 17:54, 31 October 2013 (UTC)
- I looked at the api for importing a little, but wasn't sure I'd have any better luck with speed there. Seems a little more complicated, but I think I can figure out how to use it for importing. I'm actually creating the wiki for the first time, but have millions of pages worth of data to start the wiki off. Since the pages are just generated, they don't have any timestamps, parentids, or any of that stuff, which takes SQL importing off the menu. I'll post back if I find something out. 201.203.203.88 16:21, 8 November 2013 (UTC)
- Tried the pywikipediabot, and it was pretty slow at just under a page a second. Php bots all seem to error. Time to try some other stuff. 66.69.116.181 22:41, 13 November 2013 (UTC)
- Then the source of the problem is probably the page parsing itself. ☠MarkAHershberger☢(talk)☣ 17:47, 14 November 2013 (UTC)
- Tried the pywikipediabot, and it was pretty slow at just under a page a second. Php bots all seem to error. Time to try some other stuff. 66.69.116.181 22:41, 13 November 2013 (UTC)
- I looked at the api for importing a little, but wasn't sure I'd have any better luck with speed there. Seems a little more complicated, but I think I can figure out how to use it for importing. I'm actually creating the wiki for the first time, but have millions of pages worth of data to start the wiki off. Since the pages are just generated, they don't have any timestamps, parentids, or any of that stuff, which takes SQL importing off the menu. I'll post back if I find something out. 201.203.203.88 16:21, 8 November 2013 (UTC)
[RESOLVED] Embedded file link doesn't work
After upgrading mediawiki from version 1.6 to version 1.21.1, all file links (File:example.png) do not work. When links are changed to Image:example.png they do work.
versions: MediaWiki 1.21.1 PHP 5.4.19 (apache2handler) MySQL 5.5.32 94.188.248.67 (talk) 09:27, 29 October 2013 (UTC)
- Having file: in $wgUrlProtocols can cause problems. Check that variable. Ciencia Al Poder (talk) 10:35, 29 October 2013 (UTC)
- That was indeed the issue.
- Thanks a lot!! 94.188.248.70 11:07, 29 October 2013 (UTC)
no skins loaded
After dist-upgrading from squeeze to wheezy, also upgrading mediawiki. We run the update.php Script for migration the database entrys.
When i opened our Mediawiki, we saw our wiki, but no skin is loaded.
Every skin is, where it belongs. And the config is bug-free. 85.183.32.135 (talk) 11:46, 29 October 2013 (UTC)
- No, I do not think that the config is bugfree. See load.php. 88.130.98.212 12:48, 29 October 2013 (UTC)
Upload local files from extension
Hi everyone,
I am currently developing a little extension for MW, where I create an image with PHP and store it in a temporary subfolder of my extension-folder. How can I then import/upload/whatever the image into MW, such that I can include it with [[File:someFancyName.png]] on a page?
I am searching for an answer to this for days, but I found no good documentation of MW's internal upload processes and how to control them from my extension. I did found maintenance/ImportImages.php, but this won't do for me, because all functions to execute scripts on the server (exec(), shell_exec(), system()... ) are disabled for me.
I just would be glad to hear something like: "You must create an object of class X and then execute function Y with parameters Z. And do additional stuff A-F previously or thereafter.". I feel like this should be somehow possible.
Thanks in advance for your help! =)
Greetings, Patrick 77.177.86.95 (talk) 19:17, 29 October 2013 (UTC)
- Hi!
- I do not directly have an answer, but I do have a link: API:Upload. That page describes how you can use the API to upload a file. 88.130.98.212 19:48, 29 October 2013 (UTC)
- Thanks, I already found this, but this seems more like a workaround to me. Isn't the API designed to use from other sources on the web? Since I am working on the actual PHP with my extension, I should be able to do it directly, shouldn't I? 77.177.86.95 23:10, 29 October 2013 (UTC)
- Oh, sorry, seems like I did not read your whole post properly. ;-)
- You say that you already found the functionality, which MediaWIki uses to upload images internally (Manual:ImportImages.php). However, several functions in your PHP installation are disabled so that the scripts cannot work.
- Maybe there are workarounds for that case; however, as far as I know uploading images that way will just not be possible for you right now. You maybe find an extension or a patch file somewhere on the internet, which might work around these issues, but that is not likely if you ask me. The real fix is easy:
- Enable the disabled functions and things will work. 88.130.113.133 23:40, 29 October 2013 (UTC)
- Thanks, I already found this, but this seems more like a workaround to me. Isn't the API designed to use from other sources on the web? Since I am working on the actual PHP with my extension, I should be able to do it directly, shouldn't I? 77.177.86.95 23:10, 29 October 2013 (UTC)
- I created an extension to do something similar. See the function "pullFile" and I think you'll see what you need. ☠MarkAHershberger☢(talk)☣ 17:43, 31 October 2013 (UTC)
[RESOLVED] Server timeout when saving or previewing
Hi,
I have a new install of MediaWiki, as follows:
| Product | Version |
|---|---|
| MediaWiki | 1.21.2 |
| PHP | 5.3.26 (cgi-fcgi) |
| MySQL | 5.5.32-cll-lve |
It seems to be installed correctly, but I get a timeout error whenever I try to preview or save page edits. I have checked my error log, and nothing is shown there, so I'm completely at a loss!
It is currently set up as a private wiki, but I can change this if it helps. Any advice is gratefully received. z0mbee84 (talk) 12:05, 30 October 2013 (UTC)
- If it helps, I have installed a fresh version of MW from Softaculous on my server - the one above was installed manually - and it displays exactly the same behaviour. I guess this points to something being amiss on my server, but I really don't know what. z0mbee84 (talk) 16:35, 30 October 2013 (UTC)
- Consider this fixed - our office firewall was somehow blocking access to the save request >_< z0mbee84 (talk) 17:35, 30 October 2013 (UTC)
Forms / templates
Hello,
I would like to be able to create 3 forms/input fields and automatically deploy these imput fields/forms to 10 wiki pages.
For example:
Name
(users add the information)
Address
(users add the information)
Phone number
(users add the information)
On each wiki page, these forms/input fields should contain different information.
When everything is done, (all forms/input fields on all 10 wiki pages are filled in by users); i would like to be able to add a 4th form/input field, on the same 10 wiki pages. When doing so; all previous entered information it not to be touched.
For example:
Name
(Already containing information)
Address
(Already containing information)
Phone number
(Already containing information)
E-mailaddress
(users add the information)
So; using templates isn't an option as the information varies per page. (correct me if im wrong). I have tried Semantic Forms, but it does not seem to do what i want.
How is this to be archieved?
Thank you for your answer in advance! Supfors (talk) 20:47, 30 October 2013 (UTC)
- I don't understand why templates couldn't be used for this. Even if each page has slightly different information, you can use conditional output to change what is displayed on the page. ☠MarkAHershberger☢(talk)☣ 17:47, 31 October 2013 (UTC)
Upgrade from 1.11 to 1.22 : Blank Page & Nothing can be seen
Hello,
I am totally new to MediaWiki and I'm working for a friend on upgrading his system. He got it installed by some guy before and is totally out of Tech talk .. Anyway, I just tried several times upgrading using the method of downloading the 1.22 version, uploading it over the old 1.11 version after a database and files backup. All done but once everything is uploaded, I just see a blank page and LocalSettings file dissapears for some reason once I upload the 1.22 version (even if it doesn't contain one, it just disapears while the 1.11 one should be there ..).
I tried even uploading the old and a new LocalSettings file with error reporting toggled to 1, no results. Update.php file also returns a blank page. Here is the URL : http://azrai.com/wiki/
Please help ! Thanks ChaibiAlaa (talk) 23:50, 30 October 2013 (UTC)
- I've edited the StartProfiler.php and made it StartProfiler renamed, no everything is stuck on the installation page, whatever I do I'm on that page (Clicking on link strat installation don't do anything)
- Now I'm getting
- A database error has occurred. Did you forget to run maintenance/update.php after upgrading? See: https://www.mediawiki.org/wiki/Manual:Upgrading#Run_the_update_script
- Query: SELECT lc_value FROM `mw_l10n_cache` WHERE lc_lang = 'en' AND lc_key = 'deps' LIMIT 1
- Function: LCStore_DB::get
- Error: 1146 Table 'mediawiki.mw_l10n_cache' doesn't exist (localhost)
- In http://azrai.com/wiki/maintenance/update.php ChaibiAlaa (talk) 00:11, 31 October 2013 (UTC)
- You should't have StartProfiler there in the first place, so maybe you're not following the recommendations made in Manual:Upgrading about not unpacking the new files over the old ones.
- You should unpack the new version on an empty directory as the instructions say.
- Since 1.11 is quite old, instead of copying LocalSettings.php from the old one, it would be safer to run the installer without LocalSettings.php (you can specify the same database, etc, and it will upgrade it), and then manually merge any customizations from your old LocalSettings.php to the new one, probably checking first if those configuration settings are still applicable. Ciencia Al Poder (talk) 10:41, 31 October 2013 (UTC)
- Ciencia is right.
- Apart from that I would replace your DB with the backup and then run update.php again. Maybe it somehow started, then got an error and now you cannot update the DB correctly anymore...
- Note that you should run update.php not with the webbrowser (you posted that link above) but from the shell. Upgrade has some information on that as well.
- Does that help?
- If that still does not help, then please tell us, if you have any extensions installed! These might need an update as well. Possibly deactivating them for the update and then updating them one by one afterwards might help in that case. 88.130.71.170 12:38, 31 October 2013 (UTC)
- After installing it in a new directory (1.22) It was impossible to merge ! And for update, I have no shell access in my hosting ChaibiAlaa (talk) 14:48, 31 October 2013 (UTC)
- What was impossible to merge? These are textfiles! Surely they can be merged! And for shell access: Upgrade tells you how you can also try it without, but chances are that just won't work. 88.130.71.170 15:38, 31 October 2013 (UTC)
- And I just realize that you are speaking of MW 1.22. This version is not recommended for production use, as it only is in beta stadium or so. 88.130.71.170 15:42, 31 October 2013 (UTC)
- The first RC for 1.22 is out. 1.22 should be released by the end of November. ☠MarkAHershberger☢(talk)☣ 17:09, 31 October 2013 (UTC)
- And I just realize that you are speaking of MW 1.22. This version is not recommended for production use, as it only is in beta stadium or so. 88.130.71.170 15:42, 31 October 2013 (UTC)
- What was impossible to merge? These are textfiles! Surely they can be merged! And for shell access: Upgrade tells you how you can also try it without, but chances are that just won't work. 88.130.71.170 15:38, 31 October 2013 (UTC)
- After installing it in a new directory (1.22) It was impossible to merge ! And for update, I have no shell access in my hosting ChaibiAlaa (talk) 14:48, 31 October 2013 (UTC)
{{#switch:en| doesn't work for log-out visitor
This post by Revibot was moved on 2015-07-11. You can find it at Extension talk:LanguageSelector/Flow export#h-{{#switch:en|_doesn't_work_for_log-out_visitor-2013-02-12T05:35:00.000Z. Nemo 06:00, 31 October 2013 (UTC)
Images and tables
Dear Community,
I've got a little problem. I want to structure a page with two images next to a table. But I don't know, how I have to do it. Can somebody helps me?
Greetings, GreenApple97 Greenapple97 (talk) 13:29, 31 October 2013 (UTC)
- Hi!
- You can do that basically with a few HTML tags and a few CSS rules. Just put the markup into your wiki page and format it the way you like. There is no special magic at it. 88.130.71.170 15:43, 31 October 2013 (UTC)
How to get new logging site?
Hi
I've just upgraded my site to WM1.21.
How to get new look of logging site? TraaBBIT (talk) 14:16, 31 October 2013 (UTC)
- What do you mean with "logging site"? 88.130.71.170 15:39, 31 October 2013 (UTC)
- Site when You login.
- It,s different that mine.
- http://wiki.westeros.pl/ TraaBBIT (talk) 20:08, 31 October 2013 (UTC)
- The changes shown in Wikimedia Foundation Design/Login were introduced in MediaWiki 1.22. MediaWiki 1.22 is expected to be released at the end of this month. PleaseStand (talk) 05:58, 1 November 2013 (UTC)
No image in WikiLove
http://wiki.westeros.pl/index.php?title=Dyskusja_u%C5%BCytkownika:Ithlinne
Look at this page.
Why there's no image in WikiLove? TraaBBIT (talk) 14:46, 31 October 2013 (UTC)
- There would be one if you uploaded an image for [[Image:Editors_Barnstar_Hires.png]] on the wiki. ☠MarkAHershberger☢(talk)☣ 17:07, 31 October 2013 (UTC)
- And what should i load to use WikiLove? TraaBBIT (talk) 20:08, 31 October 2013 (UTC)
- Step 3 of the installation instructions for WikiLove tells you:
- If you want to use the built-in awards, you must have InstantCommons enabled. To do this, add this to LocalSettings.php: ☠MarkAHershberger☢(talk)☣ 15:41, 1 November 2013 (UTC)
$wgUseInstantCommons = true;
- OK.
- But how can I upload all pages of WikiLove with this all images? TraaBBIT (talk) 15:33, 3 November 2013 (UTC)
- Read the source code and figure it out. Using InstantCommons is faster and easier. ☠MarkAHershberger☢(talk)☣ 17:25, 4 November 2013 (UTC)
- Can You help me with that? TraaBBIT (talk) 15:43, 5 November 2013 (UTC)
- With finding the right images to upload? Sorry, my time here is limited (I often exceed it to my detriment) so I don't have time to do that for you since I have paying clients that I need to help.
- Even if you can't understand PHP, though, you could find the right images to upload pretty easily. Leave the barnstars you want and then look at the files that show up as missing and go get those files from Wikimedia commons and upload them. You should also look over your list of wanted files and upload the missing ones there.
- If you would just enable , though, it would remove all the pain of doing a manual import. Why not just enable InstantCommons? ☠MarkAHershberger☢(talk)☣ 19:45, 5 November 2013 (UTC)
$wgUseInstantCommons = true;
- pk i added that TraaBBIT (talk) 11:34, 6 November 2013 (UTC)
- Can You help me with that? TraaBBIT (talk) 15:43, 5 November 2013 (UTC)
- Read the source code and figure it out. Using InstantCommons is faster and easier. ☠MarkAHershberger☢(talk)☣ 17:25, 4 November 2013 (UTC)
- If you want to use the built-in awards, you must have InstantCommons enabled. To do this, add this to LocalSettings.php:
- Step 3 of the installation instructions for WikiLove tells you:
- And what should i load to use WikiLove? TraaBBIT (talk) 20:08, 31 October 2013 (UTC)
How can I change group membership from the server?
I just created a wiki hosting service where bureaucrats are not the highest group. Instead, the highest group is the staff. Is there a way that I can make myself a member of the staff group from the server without needing to change group permissions in LocalSettings.php? Lieutenant Aleksandr Reznov 16:28, 31 October 2013 (UTC)
- You can use createAndPromote.php to do this. You'll have to modify it, though. ☠MarkAHershberger☢(talk)☣ 17:04, 31 October 2013 (UTC)
- Thanks. I realized that I could do that, but I would have to change it and it wouldn't work for accounts that already exist. I suppose I could rename my account that was made during installation and then make a new one with the script.
- I made changes to that script to allow adding any group, but I haven't been able to commit it.
- https://github.com/Sturmkrieg/mw-userCreate/blob/master/createAndPromote.php ఠ_ఠ Inquisitor Sasha Ehrenstein des Sturmkrieg Sector (Talk) (Contr) 17:16, 31 October 2013 (UTC)
extension that allows you to chat
hi I propose that someone create an extenson that allows you to chat to people on your wiki like facebook does you would have a user page and user would add each other to be able to chat much quickly then on talk page and the talk page could be more used by ips 86.135.248.173 (talk) 20:00, 31 October 2013 (UTC)
- Something like this has already been requested in bug 16982 ("Create an extension that supports in-browser user chat (similar to Facebook Chat)"). PleaseStand (talk) 06:22, 1 November 2013 (UTC)
Changing group for user
I have group "admins" and "users".
How to move some user from "users" to "admins"? TraaBBIT (talk) 20:15, 31 October 2013 (UTC)
- Use Special:UserRights on your wiki. Grapetheratclerk 21:34, 31 October 2013 (UTC)
- I'm administrator, but it get this:
- You do not have permission to do that, for the following reason:
- You do not have permission to add or remove user rights. TraaBBIT (talk) 01:15, 1 November 2013 (UTC)
- By default, your account has to be in the "bureaucrat" group to do that. You can use createAndPromote.php to put your account in the "bureaucrat" group if necessary. See Manual:User rights.
- It would seem, though, that the account named "Admin" is in that group... PleaseStand (talk) 06:09, 1 November 2013 (UTC)
[RESOLVED] MediaWiki 1.21.2 LocalSettings.php not found. Please set up the wiki first.
Hello,
My problem is simple and driving me crazy :) I upload all my files, I try to install, and, I'm stuck on same page telling me please to set up wiki ! http://azrai.com/wiki/mw-config/index.php
Any idea which thing does this loop ? Thanks ChaibiAlaa (talk) 21:45, 31 October 2013 (UTC)
- I'm sorry for this .. It was just a htacess problem. ChaibiAlaa (talk) 22:55, 31 October 2013 (UTC)
Upgrade Database : 500 Internal Error
Hello,
I'm updating my website from 1.11 to 1.21.2, on third step of upgrade, when the system reconize my old database and try to update it, it loads a little and then throws a 500 Internal error, any one faced this before ?
In the error_log : [Thu Oct 31 15:55:08 2013] [warn] [client 41.224.80.202] mod_fcgid: read data timeout in 45 seconds, referer: http://azrai.com/wiki/mw-config/index.php?page=Upgrade [Thu Oct 31 15:55:08 2013] [error] [client 41.224.80.202] Premature end of script headers: index.php, referer: http://azrai.com/wiki/mw-config/index.php?page=Upgrade ChaibiAlaa (talk) 22:59, 31 October 2013 (UTC)
- Does your php error log show anything at this point? ☠MarkAHershberger☢(talk)☣ 15:36, 1 November 2013 (UTC)
- No ! Really ? With all those two big line, it seems for you that it isn't showing anything ? 197.27.71.179 21:42, 1 November 2013 (UTC)
- I assume this is some kind of joke.
- Really, all those errors tell me is that the person that caused the error was likely on the Orange cellular network in Tunisia, that the request was served by mod_fcgid and that there was a timeout on the Upgrade page of the installer.
- But absolutely nothing there tells me why it is failing. ☠MarkAHershberger☢(talk)☣ 17:24, 4 November 2013 (UTC)
- No ! Really ? With all those two big line, it seems for you that it isn't showing anything ? 197.27.71.179 21:42, 1 November 2013 (UTC)