Project:Support desk/Flow/2013/04
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. |
Trouble after adding $wgArticlePath
By default the paths of every url in mediawiki (at least for me after installing) is "/wiki/index.php?title={page_title}". I wanted to change this to something more simple, like seen on Wikipedia or basically every other site with a wiki. So I added "$wgArticlePath = "{$wgScriptPath/$1}";" to the LocalSettings.php file, that way the pages would be in the format of "/wiki/{page_title}".
My problem is, I want the url of all new pages to have this format, but it still uses the previous format when creating a new article. I also want to move any page that used the previous format to its own file/article, instead of having to redirect from the index.php (so basically just the Main_Page article, which I can always start from scratch I guess).
I haven't created much of anything yet, I've just been trying to change that setting if possible. 70.187.163.100 (talk) 06:10, 1 April 2013 (UTC)
- See the short url page in the manual. ☠MarkAHershberger☢(talk)☣ 13:58, 1 April 2013 (UTC)
- I am using Wordpress for the website, it generated it's own htaccess file, with two different url rewrite rules. The url rewrite works if add it to the end of the file, but I get a 404. Putting it at the beginning of the file allows the rewrite to work completely, and I can access the wiki with a more desired url. However, if I add the rule to the beginning, I can no longer access the main site. Going to www.example.com redirects me to www.example.com/wiki/Main_Page
- Here is the .htaccess, if it helps:
<IfModule mod_rewrite.c> RewriteEngine On RewriteBase // RewriteRule ^index\.php$ - [L] RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule ^(.*)$ $1.php </IfModule> <IfModule mod_rewrite.c> RewriteEngine On RewriteBase / RewriteRule ^index\.php$ - [L] RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule . /index.php [L] </IfModule> <IfModule mod_rewrite.c> RewriteEngine On RewriteRule ^/?wiki(/.*)?$ %{DOCUMENT_ROOT}/w/index.php [L] RewriteRule ^/*$ %{DOCUMENT_ROOT}/w/index.php [L] </IfModule>
- The last rule is the rule used to rewrite the url for the wiki 70.187.163.100 21:34, 1 April 2013 (UTC)
- Remove the last rule:
- Ciencia Al Poder (talk) 09:29, 2 April 2013 (UTC)
RewriteRule ^/*$ %{DOCUMENT_ROOT}/w/index.php [L]
Extension outputting UNIQ QINU text
Hi,
I'm trying to write a mediawiki extension that will pull the content from an existing article and display it on the front page. I want to use this extension because I could then change the article title in the extension and perhaps add more php features such as have an array hold a list of article titles in the extension, which I could then iterate through. I'm running a wiki on MW version 1.20.
The extension keeps showing a UNIQ-QINU number, i.e. UNIQ1c454b4cb729262-featured-00000004-QINU shows on my Wiki's Main Page. I've added the extension filename into my localsettings and it starts, I added the tag <featured></featured> on my wiki main page, and here is the code:
$wgHooks['ParserFirstCallInit'][] = 'wfstart'; // Hook our callback function into the parserfunction wfstart( Parser $parser ) { $parser->setHook( 'featured', 'wfFeaturedArticle' ); return true; }
function wfFeaturedArticle($input, array $args, Parser $parser) { //Get title of my existing wiki article $t = "Existing Article In My Wiki"; $article = new Article( Title::newFromText($t)); $text = $article->getContent(); $final = $parser->recursiveTagParse($text); echo $final; }
This UNIQ-QINU output message is driving me crazy!! I tried the different solutions posted online, did many google searches, and also tried the fixes found at http://www.mediawiki.org/wiki/QINU_fix
Please provide a solution for the UNIQ-QINU output and also please suggest improvements to my code. I'm still new to pulling content from an Article object.
Maybe there is a better MW function to use for this?? Thanks for your help folks! Peter321 (talk) 21:37, 1 April 2013 (UTC)
I would like to usurp the username Timl and make it my SUL
I already usurped Timl on en.wikipedia. I thought this would usurp my SUL too. It did not. Is this possible? Did I do something wrong when I made my request? Can I usurp the username Timl on mediawiki for consistency? Thanks! Timl2k4 (talk) 04:17, 2 April 2013 (UTC)
- You don't link to your request on enwiki, so I can't tell you if you did anything wrong. I think typically people handle account consolidation by filing a bug. ☠MarkAHershberger☢(talk)☣ 20:17, 8 April 2013 (UTC)
Contact de l'auteur d'un article ?
Bonjour,
J'ai eu beau chercher parmi les extensions, je n'ai rien trouvé !
À mon humble avis, il manque dans médiawiki la possibilité de "signer" un article permettant -surtout - de contacter l'auteur.
Ce serait bien pratique et utile, au lieu de mettre Utilisateur: Auteur
Mais peut-être existe-t-il une possibilité qui m"aurait échappée... 2A01:E35:2F6E:9F10:F048:6E73:1000:83B0 (talk) 16:18, 2 April 2013 (UTC)
- One article can be written by many people, and this is a main reason why by default this feature doesn't exist.
- Maybe Extension:PageCredits does what you need. Qgil (talk) 17:27, 2 April 2013 (UTC)
- Thanks for your answer ))
- « One article can be written by many people, and this is a main reason why by default this feature doesn't exist. ». Yes I understand .....But in case where an article is protected, it should be interessant !
- Like this : Contact utilisateur
- P.S Sorry for my bad english (( 2A01:E35:2F6E:9F10:5961:7BFE:EC3:9559 09:08, 7 April 2013 (UTC)
GlobalUsage changes
I have posted this question on the extension's talkpage but have not had any replies, so here I am. Extension GlobalUsage is working great, but I would like to change the display of the usage which is posted under the "database name" and not the {{SITENAME}}
which would be preferred. I am unable to locate the code to make these changes. Any help is greatly appreciated. Thanx - FlightTime (open channel) 16:18, 2 April 2013 (UTC)
Creating an XML file from scratch to upload into Mediawiki
The following discussion is closed. Please do not modify it. Subsequent comments should be made on the appropriate discussion page. No further edits should be made to this discussion.
I have a large CSV file that I am trying to convert it into an XML file so that I can then upload it into a Mediawiki. I can't find a lot of information on the syntax Mediawiki is expecting, so I can duplicate it. Any help would me greatly appreciated. 132.3.33.78 (talk) 20:23, 2 April 2013 (UTC)
- A simple way is to generate a XML first from MediaWiki, using Special:Export, and see the format (it's very simple). You can see the formal XML schema here
- If you have shell access to the wiki you can write a script and call the maintenance script edit.php to create or edit a page with a given text, that may be easier than converting a CSV into XML. Ciencia Al Poder (talk) 09:36, 3 April 2013 (UTC)
[RESOLVED] Database extensions and SQLite
With a wiki that uses SQLite, is there anything different I need to with extensions that require database changes, such as Abuse Filter? Lieutenant Aleksandr Reznov 01:32, 3 April 2013 (UTC)
- Running the update.php script when extensions are already installed should create or update the tables as needed. Ciencia Al Poder (talk) 09:37, 3 April 2013 (UTC)
- So it's just the same process then. Thanks. ఠ_ఠ Inquisitor Sasha Ehrenstein des Sturmkrieg Sector (Talk) (Contr) 04:08, 4 April 2013 (UTC)
How to install CheckUser for MediaWiki 1.16.5 ?
I tried to install CheckUser for my MediaWiki 1.16.5, but got the error message. Can someone help me? Thanks. Joz1165 (talk) 04:05, 3 April 2013 (UTC)
- Could you please give more specific details about what error you are receiving? Jasper Deng (talk) 04:31, 3 April 2013 (UTC)
- Thank you for your reply.
- 1. I tried to copy and past the code from http://svn.wikimedia.org/viewvc/mediawiki/trunk/extensions/CheckUser/ to my extensions/CheckUser folder.
- 2. Set AdminSettings.php with my valid username and password in my root.
$wgDBadminuser = 'ChangeToMywikiadmin'; $wgDBadminpassword = 'ChangeToMyadminpass';
- 3. Add the code below in my LocalSettings.php.
require_once ( "$IP/extensions/CheckUser/CheckUser.php" );
- When I browse my Special:CheckUser web page, got the error message below:
- Joz1165 (talk) 15:38, 3 April 2013 (UTC)
Fatal error: Call to undefined method CheckUser::checkPermissions() in /home/content/89/7724389/html/extensions/CheckUser/CheckUser_body.php on line 20
- You should do a complete download rather than just copying and pasting. Ensure you're getting a version of the extension appropriate for your version of MediaWiki, because it's probably that your version of MediaWiki's SpecialPage class does not have that method. Jasper Deng (talk) 17:35, 3 April 2013 (UTC)
- I installed others from http://svn.wikimedia.org/viewvc/mediawiki/trunk/extensions/ by copying & pasting the code. They have been working for my wiki website. Can you pleaese give more CheckUser installation details? Joz1165 (talk) 19:12, 3 April 2013 (UTC)
- CheckUser is a very actively-maintained extension - if you don't know how to select the version for your version of MediaWiki (1.16.5), use Special:ExtensionDistributor - the version you copied and pasted did not match your MediaWiki version. Jasper Deng (talk) 23:03, 3 April 2013 (UTC)
- In reply to your email, you should extract the tar.gz files first, and then upload those contents to your server (FTP would be the easiest here). Jasper Deng (talk) 19:37, 5 April 2013 (UTC)
- CheckUser is a very actively-maintained extension - if you don't know how to select the version for your version of MediaWiki (1.16.5), use Special:ExtensionDistributor - the version you copied and pasted did not match your MediaWiki version. Jasper Deng (talk) 23:03, 3 April 2013 (UTC)
- I installed others from http://svn.wikimedia.org/viewvc/mediawiki/trunk/extensions/ by copying & pasting the code. They have been working for my wiki website. Can you pleaese give more CheckUser installation details? Joz1165 (talk) 19:12, 3 April 2013 (UTC)
- You should do a complete download rather than just copying and pasting. Ensure you're getting a version of the extension appropriate for your version of MediaWiki, because it's probably that your version of MediaWiki's SpecialPage class does not have that method. Jasper Deng (talk) 17:35, 3 April 2013 (UTC)
Accidentally overwrote database with old data
I imported an old database backup file into the live wiki server, using mysql command. Is there any way to undo this? The backup available is 3 months old which is too old to restore. And yes, i know we should have done backup regularly. I'm not very familiar with how mediawiki works, but I understand that the version history, user accounts/access, etc. will all be affected, and the links as well.
The following are the versions used:
Mediawiki ver 1.13.2
PHP ver 5.2.6
MySQL ver 5.0.51b
Apache ver 2.2.9
Xampp ver 1.6.7
Desperately need help on this! Bsgno1 (talk) 05:49, 3 April 2013 (UTC)
- If you have the binary log enabled on mysql at the moment you imported the old database, you may recover it using point-in-time recovery: . Well, or at least that is possible during normal operation. I don't know if the import deleted and recreated tables, which may break this. And also for this to work the binary logs should be present since the previous backup, and you should apply them after restoring that backup.
- Otherwise you cannot recover your data anymore.
- If your wiki is public and indexed by search engines you may recover the last version of pages from the search engines cache. Ciencia Al Poder (talk) 09:43, 3 April 2013 (UTC)
- How do I check whether the binary log is enabled? Sorry I'm not very familiar with MySQL. The database is running myIsam engine if it makes any difference. Thanks for your reply! 175.138.221.146 13:47, 3 April 2013 (UTC)
- To get a list of binary logs, execute the following command on the mysql console:
SHOW BINARY LOGS
. If it shows nothing or says there are no binary logs, then you don't have binary logs enabled. - For performing backup and restore see Ciencia Al Poder (talk) 09:40, 4 April 2013 (UTC)
- To get a list of binary logs, execute the following command on the mysql console:
- How do I check whether the binary log is enabled? Sorry I'm not very familiar with MySQL. The database is running myIsam engine if it makes any difference. Thanks for your reply! 175.138.221.146 13:47, 3 April 2013 (UTC)
[RESOLVED] Bad presentation, does not excute instructions
Mon wiki ne réagit pas normalement puisqu'il n'inteprète que très partiellement les instructions. http://antifahahaha.com/fawiki/index.php?title=Jean-Pierre_Demol Probablement dois-je charger un add-on mais lequel ? Je rame complet depuis des heures, des jours... Merci d'avance
My wiki is not responding as it normally only partially interprets the instructions. http://antifahahaha.com/fawiki/index.php?title=Jean-Pierre_Demol Probably do I load an add-on but which one? I train full for hours, days ... Thank you in advance Lunablues (talk) 08:42, 3 April 2013 (UTC)
- It looks like you need to install/enable Extension:ParserFunctions.
- If a parser tag is leaked even if it works on other wikis, the problem normally is a missing extension that needs to be installed. Ciencia Al Poder (talk) 09:49, 3 April 2013 (UTC)
- thanks, i 'll trying Lunablues (talk) 13:07, 3 April 2013 (UTC)
- require_once( "www.antifahahaha.com/fawiki/extensions/ParserFunctions/ParserFunctions.php" );
- $wgPFEnableStringFunctions = true;
- No result.... What to do please ? Weeks and weeks and that does not run anymore, ouin. Lunablues (talk) 21:02, 11 May 2013 (UTC)
- Hmm, I do not kow this extension, but one note: in the require_once() you need to use the internal path to the file. Meaning not the URL to the server, but the path to the file in the file system. The variable $IP is most commonly used for that, e.g. like so:
- 88.130.88.226 21:26, 11 May 2013 (UTC)
require_once( "$IP/extensions/ParserFunctions/ParserFunctions.php" ); $wgPFEnableStringFunctions = true;
- Done, but it's doens't run anyway, shit Lunablues (talk) 22:23, 11 May 2013 (UTC)
- The extension is not displayed on your Special:Version page so I guess it is not included properly. Check the require_once() call. Maybe you can edit extensions/ParserFunctions/ParserFunctions.php and put something like this in a new line below the opening PHP tag:
echo"ParserFunctions.php was read.";die();
- Save these changes and open your wiki with the browser. Does your wiki display this text? 88.130.110.67 01:02, 12 May 2013 (UTC)
- Done, but it's doens't run anyway, shit Lunablues (talk) 22:23, 11 May 2013 (UTC)
- thanks, i 'll trying Lunablues (talk) 13:07, 3 April 2013 (UTC)
Lunablues (talk) 11:04, 26 May 2013 (UTC)
oflash extension
Hi http://www.mediawiki.org/wiki/Extension:OFlash
This is the extension we found for including flash. We included it but we dont know how to use it for viewing the file Please help. Kindly help Regards Sharmistha
We are using the following:
- Mediawiki
- Mediawiki 1.19.2
- PHP
- php 5.4.10
- Mysql
- Sharmistha123 (talk) 14:49, 3 April 2013 (UTC)
- The extension page seems to provide instructions to display flash files inside a page. Have you read the Usage section? Where did you get stuck? Ciencia Al Poder (talk) 09:44, 4 April 2013 (UTC)
- Seems I have a similar problem.
- According the description it should be easy to use. But I get only something like
-
UNIQ30f17a9469fbcac9-oflash-00000003-QINU
- as result. I tested
<oflash [[Datei:test.swf]] caption="Hi" width=500 height=900 /> <oflash file="http://www.abslute_link_to_directory/flash/test.swf" caption="hi" width=500 height=900 /> <oflash file="flash/test.swf" caption="hi" width=500 height=900 />
- I uploaded the file with "Fileupload" or FTP
- al same same.
- Thanks for any help
- Markus 193.175.22.11 21:44, 9 April 2013 (UTC)
- That's sad. I've marked the extension as unstable. Ciencia Al Poder (talk) 09:36, 10 April 2013 (UTC)
21:44, 9 April 2013 (UTC)
Sidebar editing doesn't work like described in 1.20.3
I'm going nuts now after trying to get any editing of the sidebar in a lot of skin types in any way described to work
when I access to /mywiki/index.php/MediaWiki:Sidebar all I get offered to edit is the mainpage, also some pages in the online help telling this way to edit the navigation bar are indicated to be outdated.
I'm using mediawiki the first time and like it because I use it as a reader on all sorts of pages and I can't believe that such a simple major thing is first: that bad described in the help pages, and: that bad documented in the code. (means hidden somewhere in skin and stuff)
may be I haven't learned much in 12 years php coding, satisfying hundreds of customers but for sure I'm too impatient to find out, what is easy for others.
Please help me quick 'how to edit sidebar' in standard not fancy skin.
cheers ralph Ralphd (talk) 16:41, 3 April 2013 (UTC)
- I'm sure you probably looked it up, but check over the instructions at
- http://www.mediawiki.org/wiki/Manual:Interface/Sidebar to make sure you're doing it right.
- Also, if it only lets you edit the main page, you may be missing a setting in your Localsettings.php
- Try changing your $wgArticlePath variable, info at
- http://www.mediawiki.org/wiki/Manual:LocalSettings.php#Article_path
- Your wiki is setup with a path of mywiki/index.php/ You may want to try other path settings such as mywiki/index.php?=Article Title
- Since you're stuck on the main page, It could also be a namespace issue, so do a search for mediawiki namespace problems, just a guess.
- Finally, if sidebar just doesn't work for you, you can try alternatives such as Custom Nav Block
- http://www.mediawiki.org/wiki/Extension_talk:CustomNavBlocks
- I've used it on my test wiki setup but be aware that CustomNavBlocks can conflict with the sidebar especially if you try to move the Search bar elsewhere.
- Peter Peter321 (talk) 01:29, 4 April 2013 (UTC)
- The /mywiki/index.php/MediaWiki:Sidebar URL will largely depend on your URL configuration. The page you need to edit is MediaWiki:Sidebar. You can reach it putting that link on a page on your wiki, hitting preview and following the link, or putting "MediaWiki:Sidebar" on the search field and submitting the search form. Ciencia Al Poder (talk) 09:47, 4 April 2013 (UTC)
- Same problem here. I can't find an edit sidebar area. I am stuck. :( i am really not a newbie as a sysop but in mediawiki. i know how to read a manual but I must overlook something... any help? i can't find the sidebar page within my mediawiki. there is no link to reach the edit page. Wdfgea (talk) 21:01, 24 June 2014 (UTC)
- "As an administrator of your own wiki, to edit your own MediaWiki:Sidebar, replace your wiki page's <title> in the title bar with <MediaWiki:Sidebar>. (The editinterface permission needs to be enabled and is enabled for administrators by default; for information on assigning it to other groups, see Manual:User rights."
- I don't get it. :/ nothing of this I can find in my mediawiki installation. where can I set the edit interface permission? i am an admin of my own wiki. i am using vector skin. is it a skin problem? Wdfgea (talk) 21:07, 24 June 2014 (UTC)
- Hello Wdfgea,
- for edit permission see:
- https://www.mediawiki.org/wiki/Manual:User_rights
- For the Sidebar: simply navigate to the page MediaWiki:Sidebar and edit this, so, if your normal url for the site "Test" is http://example.com/index.php/Test then the Sidebar url is http://example.com/index.php/MediaWiki:Sidebar
- Kind regards
- Florian Florianschmidtwelzow (talk) 05:22, 25 June 2014 (UTC)
- worked. why isn't it that easy in the help section?? i am confused and relieved. thanks. 78.53.2.198 11:33, 25 June 2014 (UTC)
- Same problem here. I can't find an edit sidebar area. I am stuck. :( i am really not a newbie as a sysop but in mediawiki. i know how to read a manual but I must overlook something... any help? i can't find the sidebar page within my mediawiki. there is no link to reach the edit page. Wdfgea (talk) 21:01, 24 June 2014 (UTC)
Extension not parsing Wiki tags such as noinclude
Hi,
I'm trying to write a mediawiki extension that will pull the content from an existing article and display it on the front page. I want to use this extension because I could then change the article title in the extension and perhaps add more php features later on. I'm running a wiki on MW version 1.20 with latest PHP and MySQL.
The code that I'm using CAN NOT Parse wiki tags such as noinclude tags. It works in outputting the HTML from a wiki article but is not parsing noinclude tags. Are there Parser functions or options that can parse these tags?
I did many online/google searches but couldn't find any info so I hope someone can help. I also looked at the Parser and ParserOptions.php files in my wiki installation but it's not well-documented.
And I'm using the code below:
$wgHooks['ParserFirstCallInit'][] = 'wfFeatured';
function wfFeatured( Parser $parser ) {
$parser->setHook( 'featuredmain', 'wfGetFeaturedArticle' ); return true;
}
function wfGetFeaturedArticle($input, array $args, Parser $parser) {
$t = "Article 1"; $article = new Article( Title::newFromText($t) ); $output = $article->getContent(); $parserObject = $parser->parse($output, $parser->mTitle, $parser->mOptions, false, false); return $parserObject->getText();
}
Thanks for your help!! Peter321 (talk) 19:32, 3 April 2013 (UTC)
Can any one please let me know whats the problem with my media wiki.
My media wiki Page When ever i tried to open my mediawiki site it is showing like this it is always asking for login id even after giving the details also it is same.I guess my Media wiki got corrupted can any one please do let me know how to fix this. 192.44.85.23 (talk) 09:00, 4 April 2013 (UTC)
- Do you see all the extra index.php in the location bar? That sounds like a bad rewrite rules on the server or Short URL misconfiguration. Review also the value of $wgArticlePath, $wgScript and $wgUsePathInfo Ciencia Al Poder (talk) 09:50, 4 April 2013 (UTC)
- Check what Cienca said.
- The non-working login might have to do with the wrong URLs. I would try to fix the URL problem first.
- When that is done, you should also see the styles and maybe the right URLs fix login already.
- Btw: Do you know how the problem came? Did someone modify .htaccess when the error occured? Or LocalSettings.php? The change dates of these files might give you a first pointer to where to find the root of the problem. Did you do an update? 88.130.90.115 20:27, 4 April 2013 (UTC)
- Can you let me know how to fix the urlproblem. 192.44.85.23 08:57, 5 April 2013 (UTC)
- Try to switch off $wgUsePathInfo to false in LocalSettings.php (or add
$wgUsePathInfo = false;
at the end of LocalSettings.php) - Also remove any rewriterules in .htaccess file on the MediaWiki installation folder or on the configuration of the server. Ciencia Al Poder (talk) 09:46, 5 April 2013 (UTC)
- I tried what all you said even then it is same. 192.44.85.23 13:00, 5 April 2013 (UTC)
- If you tried all, it's working now. 88.130.64.24 16:08, 5 April 2013 (UTC)
- I tried what all you said even then it is same. 192.44.85.23 13:00, 5 April 2013 (UTC)
- Try to switch off $wgUsePathInfo to false in LocalSettings.php (or add
- Can you let me know how to fix the urlproblem. 192.44.85.23 08:57, 5 April 2013 (UTC)
[RESOLVED] MediaWiki:Skinname.css stopped working
On our wiki skin specific styling via MediaWiki:Skinname.css stopped working. This applies for custom skins as well as for Vector & Co. Changes to the css files in the file system still take effect as well as changes to Common.css. Tested on various recent versions of FF & IE.
The issue occured on MW 1.19.0 with actually no changes being made that could have caused it. Meanwhile we've upgraded to MW 1.20.3 and the issues persist. On a similar install everything is still working as expected.
Any ideas?
Eric 88.134.160.61 (talk) 10:06, 4 April 2013 (UTC)
- Sigh, resolved, was a tiny typo in Common.css that caused all changes below and addtitional css files to be defunct. Sorry for bothering you.
- Eric 88.134.160.61 11:29, 4 April 2013 (UTC)
[RESOLVED] Edit/add text on Create account page
I wonder how to edit/add text on Create account page. Not the login page (I´ve found how to managed that) but the create account page. MWMP (talk) 10:24, 5 April 2013 (UTC)
- You might want to add text to MediaWiki:Gotaccount. Stefahn (talk) 13:02, 5 April 2013 (UTC)
Massive spam & vandalism. more than 150.000users!
I deactivate (i supose) all users privileges except "read" (with "false" indication). I eliminate "autoconfirmed" in the $wgRestrictionLevels, and $wgImplicitGroups... but it continues the massive editing os spammers (http://instantaneo.es/wiki/index.php?title=Especial:P%C3%A0gines_noves) even of the non-users. I modified DefaultSettings and LocalSettings, but.... no longer that I can more do!
MediaWiki 1.6, Apache 2.2.22 PHP 5.2.17 MySQL 5.1.66-cll Amanida (talk) 12:12, 5 April 2013 (UTC)
- MediaWiki 1.16.0...? Krenair (talk • contribs) 12:13, 5 April 2013 (UTC)
- Oops, yes
- MediaWiki 1.16.0
- 2010-07-28
- -( Amanida (talk) 13
- 20, 5 April 2013 (UTC)
- 1.16.1 security release
- 1.16.2 security release
- 1.16.3 security release
- 1.16.4 security release
- 1.16.5 security release Krenair (talk • contribs) 13:37, 5 April 2013 (UTC)
- And now 1.16 is no longer supported at all.
- You should do an update to 1.19 or 1.20. 88.130.64.24 15:32, 5 April 2013 (UTC)
- I Upgrade to 1.9... but continuous the Spam!!.
- There isn't any form possible to obtain that NOBODY can create new pages until it can fix this problem of security? Amanida (talk) 22:28, 7 April 2013 (UTC)
- You do not mean MW 1.9, but 1.19.
- MW 1.19.4 should be secure currently. If you still get IPs spamming, although editing is disabled for IPs, then there obviously is a way to hack your wiki. I just had a look at your Special:Version page and it e.g. lists the extension "Maintenance Shell".
- The version, which you use, has known security vulnerabilities. There are newer versions, in which several security issues have been fixed.
- Apart from that, as the wiki page states, no matter if you use the newest version or not: This extension per se is a security risk. You should uninstall this extension.
- If you continue having spam problems afterwards, see combating spam. 88.130.120.27 00:18, 8 April 2013 (UTC)
- I delete Maintenance Shell, inted install AbuseFilter but this caused an error (IndexPager::reallyDoQuery (AbuseFilterPager) - 1146: Table 'xtzpjxni_wiki.abuse_filter' doesn't exist (localhost))... previously i instaled (recommended by the instruccions page of AbuseFilter extension) "AntiSpoof" extension and run update.php (in web: mw-config directory)
- ...The thing is worse even: some of “Special Pages” have stopped working...
- I don't understand... there are any way for disabled the edition of new pages?
- I have obtained that more users are not created without sysop permission… but it is not necessary to be usuary (not even to use the pages of wiki) for creates new pages is exasperating!. It doesn't exist any page nor code that can block that? Amanida (talk) 17:47, 9 April 2013 (UTC)
- That table not existing error means you didn't run maintenance/update.php. Krenair (talk • contribs) 18:48, 9 April 2013 (UTC)
- That's really strange. I don't see how those bots are still editing the wiki o_O. Sure, it must be a backdoor there. But where?
- To stop more spam you can simply turn the wiki "readonly", setting Manual:$wgReadOnly.
- To see how people still can edit the wiki, you can turn on debugging, enabling a debug log. See Manual:How_to_debug#Logging. This can give you/us hints about what page/parameters/process are using to edit the wiki.
- Be careful, since it will log even pageviews, so turn it on in a short period of time until you catch someone creating a page. Ciencia Al Poder (talk) 18:59, 9 April 2013 (UTC)
- >That's really strange. I don't see how those bots are still editing the wiki o_O. Sure, it must be a backdoor there. But where?
- This is my great enigma!!!
- >To stop more spam you can simply turn the wiki "readonly", setting Manual:$wgReadOnly.
- Ooops...Then either!. I have placed the instruction ($wgReadOnly) in the LocalSettings… and they continue publishing spam!
- >To see how people still can edit the wiki, you can turn on debugging, enabling a debug log. See Manual:How_to_debug#Logging.
- I can't write in Apache program... it's a public server Amanida (talk) 20:21, 9 April 2013 (UTC)
- Finally there am code a backup copy of two years ago and…
- I prefer to rewrite what there am lost that to hopelessly continue erasing spamm "sine die"
- Thanks anyway for your aid.
- PS: Still I have not erased the damaged BD, in case somebody wants to experiment with her to find out where this the security hole, I activate in another directory so that whatever manipulates it wants. Amanida (talk) 20:34, 9 April 2013 (UTC)
- I am not sure that using a backup will help you: If you have security issues, which are being exploited, in your code, these won't be fixed by installing a backup. Even when you directly update the outdated source code from the backup with new code again, you will still have to find the place of the security breach and fix it. 88.130.105.123 21:22, 9 April 2013 (UTC)
- Agreed with 88.130. Restoring a backup without finding and fixing the security hole will give you the same problems again.
- Just a note: you can export specific pages from the wiki before restoring the backup to import them when restoring so you don't lose the work. See the Special:Export page on your wiki and Special:Import. Ciencia Al Poder (talk) 09:41, 10 April 2013 (UTC)
- I have only recovered the copy of the data base. P
- But previously he took to one week trying thousand adjustments (Localsettings, Dafaultsettings) and i've upgraded MW to 1.19.4, closing the edit to users and restricting the subscription to the Sysop
- So far nobody has entered to leave sweepings… we touch wood!
- By all means that I had liked to find the security hole! but no longer could more: the DB MySQL reached 9Gb! … and it continued growing.
- Anyway I will be watching! 95.17.135.215 09:57, 10 April 2013 (UTC)
- You replace the database and not a single file and the spam stops. Interesting constellation. That seems to mean that the "hack" was somewhere in the DB. Maybe - in the time where you used outdated software - someone found a way to manipulate the DB so that every user (also IPs) got special privileges? 88.130.77.162 11:53, 10 April 2013 (UTC)
Amanida (talk) 17:54, 9 April 2013 (UTC)
Introduce special characters
Hi, i want to know how we can (Vec.wiki, with software MediaWiki) to use special characters abbreviation as in eo.wiki: we want that if you type in "th" you get "Ž", with "lh" you get "Ł" and with "dh" you get "Đ". But we don't know how to do it. Tn4196 (dibates) 16:06, 5 April 2013 (UTC)
- My first idea would be to use the character code of the signs you want. E.g. Press and keep the ALT button and then type the numbers 209 to create the "Ð" sign.
- Another idea would be to ask in the eo wiki. They surely have a question and answer page... 88.130.64.24 16:13, 5 April 2013 (UTC)
- Sorry, but eo.wikipedians said me to ask here. I hope there's someone who knows where i can find this little information. Tn4196 (talk) 17:30, 5 April 2013 (UTC)
- I have just done a test edit in the eo wikipedia and it did not transform typed letters as you described.
- Maybe this effect is not created by settings on eo.wikipedia, but by settings on the peoples' computers (which I do not have as my OS works with German language where we do not have these signs)? How do you put these special characters in your texts; e.g. when you write a letter? 88.130.100.114 23:18, 5 April 2013 (UTC)
- Sorry, but eo.wikipedians said me to ask here. I hope there's someone who knows where i can find this little information. Tn4196 (talk) 17:30, 5 April 2013 (UTC)
Display in iframes on external sites broken after upgrade
Hi there,
on our wiki we have many pages created for display in iframes on external sites. It's an established feature we and others really rely on.
After an upgrade from 1.19.0 to 1.20.3 the pages are not displayed in iframes on external sites anymore but are still displayed on our own domain inside iframes.
Firebug says: "Load denied by X-Frame-Options: http://www.example.com/w/index.php/Pagename does not permit cross-origin framing."
So obviously a SAMEORIGIN at work somewhere!?
To be on the 'safe side' we set the following which did not make any difference:
$wgBreakFrames = false;
$wgEditPageFrameOptions = false;
$wgApiFrameOptions = false;
Suspects could be the security updates 1.19.x/1.20.x
Any ideas?
Would be perfect to have something like $wgAllowFramingFromDomain = array
Tyvm
Eric 88.134.73.95 (talk) 20:13, 5 April 2013 (UTC)
- I'm running 1.20.3 and tested to include a page inside an iframe and it worked perfectly. Inspecting the HTTP response headers there's no X-Frame-Options, except when editing or accessing some special pages like Special:RecentChanges Ciencia Al Poder (talk) 16:51, 6 April 2013 (UTC)
How can people move the mediawiki to another linux server?
I save the mysql databae(/var/lib/mysql/) and instalation(/var/www/) to another linux machine, but I find I can't work mediawiki fine. I use the same method and I think the method can move the discuz! and wordpress data to the another linux os successfully.
All the message show at below.
- 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 page_title FROM `page` WHERE page_is_redirect = '0' AND page_namespace = '8' AND (page_title NOT LIKE '%/%' ) AND (page_len > 10000)
- Function: MessageCache::loadFromDB(en)-big
- Error: 1146 Table 'MEDIAWIKI.page' doesn't exist (IP)
I also visit this this page, but it still doesn't useful.
Could MediaWiki provide any official tutorial to let people move their mediawiki to another machine? 118.160.226.90 (talk) 10:01, 6 April 2013 (UTC)
- Manual:Moving a wiki Jasper Deng (talk) 17:15, 6 April 2013 (UTC)
- The interesting part of your error message is the line
Error: 1146 Table 'MEDIAWIKI.page' doesn't exist
- MediaWiki tries to use a database called MEDIAWIKI - is that really the name of the database, which you want to use? 88.130.91.250 17:33, 6 April 2013 (UTC)
- Thanks for these replies, my friends
- Yes, MEDIAWIKI is mysql database name
- I will fellow the "Manual:Moving a wiki" step by step again first, and I hope it can work
- I may come back later ^^b 220.133.190.48 05:32, 7 April 2013 (UTC)
- OK. If MEDIAWIKI is the right database, then this database does not contain, what it should contain. It should contain around 80(?) tables; see DB. The most important ones are "page" and "text". It seems like in your case at least the table "text" is not there.
- When you move the wiki again take care that you actually import the complete(!) database. 88.130.120.27 12:19, 7 April 2013 (UTC)
SEO question: Removing "wiki" from domain
I have a domain like asdf-wiki.com and we use short URLs like asdf-wiki.com/wiki/Article.
Now I think about renaming the wiki to asdfPedia.com.
Do you think this will have negative impact for search terms that include "wiki"?
I mean we still have "wiki" in our URLs (asdfPedia.com/wiki/Article), but no longer in the domain itself...
Thanks for your opinion! Stefahn (talk) 09:29, 7 April 2013 (UTC)
- SEO is more or less guessing. No one really knows. And those few who know, won't tell you.
- So, yes, you would then remove one of the two "wiki" from the URLs and yes, one would still stay. However, I think it does not matter much: There are way more important factors than a stupid word in a URL; people don't expect search engines to provide them with the right URLs, but with the right content. 88.130.120.27 12:23, 7 April 2013 (UTC)
- google "iPod", first hits are: apple.com, en.wikipedia.org, cnet.com, amazon.com, howstuffworks.com, ilounge.com
- None of them domain "ipod".
- If your content and urls are good, the domain does not matter. If your content and urls aren't good, a domain won't help you. Krinkle (talk) 23:36, 9 April 2013 (UTC)
Reading numbers from titles
Hi. Could anybody help me how to read only numbers from titles with different parametres (e.g. the title is "1256 something" and the template should extract only "1256"; or the title is "something 358 something" and the template should extract only "358")? I tried it by using different magic words, but they appeared to be useless in this case. I'd also like to know if it's possible to create a template that will read the words from the title in a given order (e.g. the title is "Canis Minor" and the template should read only the second word, i.e. "Minor"). Thanks. Kiril Simeonovski (talk) 14:44, 7 April 2013 (UTC)
- For the first question, this needs something that could detect whether there's a number on a given text and extract it. It can only be done with Extension:RegexParserFunctions.
- For the second one, you need to use StringFunctions: {{#explode:Canis Minor| |1}} Ciencia Al Poder (talk) 09:33, 8 April 2013 (UTC)
- That is not entirely true Ciencia. Kiril, would the number ever be something like "456B" and have a non-numeric number in it? If not, you can do the whole thing with just StringFunctions and the included ParserFunctions. You can use the explode function as Ciencia has said, and then you can test if the result is a number with something like
{{#iferror:{{#ifexpr:{{#explode:{{{1|(string being tested)}}}| |(offset)}}^0=1}}|(do this if number)}}|(do this if not number)}}
Now, the offset is the hard part, I'm assuming that you don't know where in the string the number would be, and you will likely need something like the loops extension to be able to cycle through all of the parts of the word to find it. If the number does have a non-numeric character directly attached to it, then you may need to use W:ReGex to find it. - As for your second question. If the magnitude declaring word (such as minor) will always be the last word, you can pull that using
{{#explode:{{{1|(string being tested)| |-1}}
If it is not always the last word, then you will likely need some kind of looping functionality for that as well. I have some examples of templates where I manipulate strings in this way, and would be happy to let you look at them for reference or even help you build your template. Check out Template:Scase on my home wiki then let me know if you need help. (Note: the loops extension requires the variables extension for this functionality as well.) — Technical 13 (talk) 11:44, 8 April 2013 (UTC)- Thanks. This was pretty useful. I'll try it and tell you if any further assistance is needed. Best regards. Kiril Simeonovski (talk) 18:49, 8 April 2013 (UTC)
- That is not entirely true Ciencia. Kiril, would the number ever be something like "456B" and have a non-numeric number in it? If not, you can do the whole thing with just StringFunctions and the included ParserFunctions. You can use the explode function as Ciencia has said, and then you can test if the result is a number with something like
help creating your own wiki
hi could I have some help to install the media wiki software I dont have a server or a website but would like to create a free wiki website with media wiki please please could I have instruction and pictures and how to install it and create your own wiki website please 109.151.163.1 (talk) 19:28, 7 April 2013 (UTC)
- Hi,
- for information on installing MediaWiki see Installation. For information on installation requirements see here. 88.130.120.27 22:01, 7 April 2013 (UTC)
help with making my domain visable when clicked
how do I make http://localhost:800/mediawiki/index.php/Main_Page visable so whn people click the link it will shows the site I used BitNami to install it 109.151.163.1 (talk) 20:40, 7 April 2013 (UTC)
- If users from another PC should be able to see and use your wiki, you should not point to it with the domain name "localhost", but with the IP of the computer, on which MediaWiki is installed, or with a real domain name like "www.mediawiki.org".
- You will also have to provide this domain name in one of the variables in LocalSettings.php; I think it was $wgServer. 88.130.120.27 22:04, 7 April 2013 (UTC)
- could you give me an example of it showing thee link to an ip address 109.151.163.1 08:52, 8 April 2013 (UTC)
- how can you detect your ip which media wiki is installed on 109.151.163.1 09:02, 8 April 2013 (UTC)
- You can view your IP address from your network adapter settings (in details), assuming you're using Windows. Ciencia Al Poder (talk) 09:50, 8 April 2013 (UTC)
- this is my ip address but when I put it in the url it says it doesent work 109.151.163.1 10:01, 8 April 2013 (UTC)
- hi this address wont make it visble to everyone [] please help 109.151.163.1 20:36, 8 April 2013 (UTC)
- You're using the wrong kind of IP address here; frankly, I think the installation instructions to use localhost is a very bad idea, especially on Windows (and I'm going to look to change that).
- 127.0.0.1 and 192.168.1.71 are both private IPv4 addresses that cannot be connected to by anything outside your computer or anything outside your home LAN, respectively. Your public IPv4 address is different, and should not begin with any of 192.168.*, 10.*, 172.(16-31).*, or 100.(64-128).*. It is probably the address of your home modem or router, and to make it publicly viewable, you'll need to do port forwarding.
- $wgServer needs to be set to the IP address or domain name you want to serve from. Jasper Deng (talk) 21:01, 8 April 2013 (UTC)
- Agreed with Jasper Deng. The IP 192.168.1.71 would be good if you want to serve it from the internal network (home or work) but not if you want access from the internet. You'll need to configure port forwarding from the router, but then you may have problems accessing it from the internal network. Ciencia Al Poder (talk) 09:51, 9 April 2013 (UTC)
- how would I do it with bitnami 109.151.163.1 17:25, 9 April 2013 (UTC)
- Bitnami can't do that, you should configure this on the router. The configuration varies on each router so you should follow instructions based on your router model.
- Also, be sure to enable connections to the port used by bitnami through your firewall. Ciencia Al Poder (talk) 09:43, 10 April 2013 (UTC)
- how would I do it with bitnami 109.151.163.1 17:25, 9 April 2013 (UTC)
- hi this address wont make it visble to everyone [] please help 109.151.163.1 20:36, 8 April 2013 (UTC)
- this is my ip address but when I put it in the url it says it doesent work 109.151.163.1 10:01, 8 April 2013 (UTC)
- You can view your IP address from your network adapter settings (in details), assuming you're using Windows. Ciencia Al Poder (talk) 09:50, 8 April 2013 (UTC)
- how can you detect your ip which media wiki is installed on 109.151.163.1 09:02, 8 April 2013 (UTC)
- could you give me an example of it showing thee link to an ip address 109.151.163.1 08:52, 8 April 2013 (UTC)
Upgrade to Windows 7 renders mime type unable to upload
MediaWiki 1.19.1 PHP 5.3.3 (apache2handler) PostgreSQL 8.4.12
Hello, Recently desktops were upgraded from vista to windows 7. Nothing was changed on the server end. However, users attempting to upload files with extention ".oft" are met with
"File extension ".oft" does not match the detected MIME type of the file (text/plain)."
the oft was already in the LocalSettings
"Permitted file types: png, gif, jpg, jpeg, png, gif, jpg, jpeg, ppt, pdf, psd, mp3, xls, xlsx, swf, doc, docx, odt, odc, odp, odg, mpp, oft, msg, log, txt. "
There are no messages in the apache error logs. Tried browsers IE, firefox and chrome.
has anyone experienced anything likes this? Or please give me pointers on how to figure out what this might be.
Thanks m 61.200.23.228 (talk) 05:26, 8 April 2013 (UTC)
- I have added the following to the ~/includes/mime.type
application/vnd.ms-outlook oft
- but that doesn't appear to have helped.
- Ta 61.200.23.228 07:45, 8 April 2013 (UTC)
- For those with similar problems
- It appears the oft test file that was used was created under an older Microsoft Outlook and with the upgrade the New Version was not compatible. 61.200.23.228 04:15, 9 April 2013 (UTC)
Shared tables
So I'm starting out with two fresh MediaWiki installations for my school and I want to share users, user groups, and user properties between them. The goal is to disable account creation on MediaWiki TWO and have all accounts created through MediaWiki ONE, and have all user groups carry over from ONE to TWO.
I have $wgSharedDB = 'mediawikione'; $wgSharedTables[] = array( 'user', 'user_properties', 'user_groups' );
set in the LocalSettings for MediaWiki TWO, but user groups aren't carrying over. What am I doing wrong? Thank you. ColbyHighws (talk) 06:00, 8 April 2013 (UTC)
- Did you set the same $wgGroupPermissions on both wikis? Ciencia Al Poder (talk) 09:40, 8 April 2013 (UTC)
Minimum MySQL permissions
I've already installed MediaWiki 1.20.3 and all the extensions I plan on using. While doing this I gave MediaWiki full permissions to the database, but now to increase security, I'd like to revoke the unnecessary permissions. I no longer need to install any extensions and I can readd permissions when I need to update MediaWiki. So for normal operating needs, what's the minimal set? Thanks! Impy imps (talk) 07:07, 8 April 2013 (UTC)
- SELECT, INSERT, UPDATE and DELETE. Ciencia Al Poder (talk) 09:41, 8 April 2013 (UTC)
Unable to upload files to the server using Special:Upload
I've set a new wiki and my details are: Product Version MediaWiki 1.20.3 PHP 5.3.21 (cgi-fcgi) MySQL 5.0.96-log
I tried almost everything possible to get my uploads, but I'm unable to do so. When I try to upload a file, the browser processes for a while and lands on the same page. When the upload logs were checked, there was no hint of any uploads. Please help me with a solution! 117.217.3.218 (talk) 13:02, 8 April 2013 (UTC)
- are you on windows 7? 61.200.23.228 02:50, 9 April 2013 (UTC)
- This can happen if you have a wrong $wgServer which can be doing a redirect from one page to another on each post edit. If some post edits fails (for example, doing a search), this may be the problem. Ciencia Al Poder (talk) 09:57, 9 April 2013 (UTC)
- Can you enlighten me on this issue 16:11, 12 April 2013 (UTC)
- Imagine your wgServer is http//www.example.com, but your web server is actually at http://example.com and the server enforces it by redirecting all requests to http//www.example.com to http//example.com. Then when you submit a form in your MediaWiki, it posts the data to http//www.example.com, but before it reaches the PHP engine, the web server intercepts the requests and redirects it to http//example.com, losing the posted data, so MediaWiki receives the request as if nothing has been submitted. If you enable debugging on MediaWiki you won't see any POST request. Ciencia Al Poder (talk) 16:29, 12 April 2013 (UTC)
- Can you enlighten me on this issue 16:11, 12 April 2013 (UTC)
- This can happen if you have a wrong $wgServer which can be doing a redirect from one page to another on each post edit. If some post edits fails (for example, doing a search), this may be the problem. Ciencia Al Poder (talk) 09:57, 9 April 2013 (UTC)
Protecting pages and parts of
Hello i need some help for my own wiki
MediaWiki 1.19.2 [soon i'll update to 1.20] PHP 5.2.17 MySQL 5.5.30
Admins (Sysop and Bureaucrats) will create all pages and those should be seen by everyone also unregistered users but i need to protect edit that way. example:
- The editing of the page "John Doe" could be done just by those registered users: "John Doe" AND/OR "Sister of John Doe", AND/OR group "old John Doe's girlfriends".
- Those users and group could also edit the page "John Doe's Friends" but in this page just Admins (sysop and bureaucrats) have a protected part where they could write articles about John Doe's friens and making tables about that [Those articles and tables should remain at the top the page, users and groups contributions will take place after our articles].
how can i set up my wiki? i sow some extensions but i don't know which will work good for me F.E.
- http://www.mediawiki.org/wiki/Extension:SimpleSecurity
- http://www.mediawiki.org/wiki/Extension:ProtectSection
- http://www.mediawiki.org/wiki/Extension:UserPageEditProtection
Your help will be very appreciated! And i repeat... all pages should be seen and read by everyone also unregistered users
Thanks for your time (: 79.46.217.31 (talk) 14:57, 8 April 2013 (UTC)
- up Filoless 14:36, 19 April 2013 (UTC)
- Seeing and editing pages are two different things; even MediaWiki can differentiate between those. It is possible to protect pages in a way so that only users of special groups can edit these pages. However, to me your idea sounds like you would need hundreds of groups (for different families or relations). MediaWiki does not offer a way to have groups set up automatically, possibly depending on some user input. You would have to create all these groups yourself. And I don't know, if combinations of groups would be possible for one and the same page.
- I am not sure, if what you want can be done easily with MediaWiki. MediaWiki is not made for access control. If you want that, you should not use MediaWiki, but a CMS. 88.130.72.84 15:12, 19 April 2013 (UTC)
- What about installing Semantic mediawiki and using this extension?
- http://www.mediawiki.org/wiki/Extension:SemanticACL
- To be honest it will be a wiki about indie music, so there will be a protected page with our review and another protected page for band and label about the (musical) group's page [and a page for each group and label, but they'll write themselves on their page]. So that's why i need to protect some pages... I'll create all different wiki groups and all the "blank" pages, assigning permissions and protecting the page, and let them write on it... Did someone use semantic wiki or know something that could work like that??
- Thanks again Filoless 10:13, 23 April 2013 (UTC)
- up Filoless 11:43, 30 April 2013 (UTC)
- The access control your looking for looks like you want to specify one user (or a small group of users) for some pages.
- That is really too fine grained of control. ☠MarkAHershberger☢(talk)☣ 13:55, 30 April 2013 (UTC)
- up Filoless 11:43, 30 April 2013 (UTC)
LocalSettings.php
Hi folks,
I'm installing MediaWiki on OpenWRT. The system's got 32Mb of RAM and 2Gb of swap, plus 6Gb of disk... Everything went fine (even https with apache and mysql)
Now when I launch the setup through the form I wait hours without output. Is there any way to follow more closely what the form does ? Can I launch the w-config index.php from command line? What about creating LocalSettings.php by myself ? The conf is standard...
Thanks,
AxlMac 81.240.141.233 (talk) 18:45, 8 April 2013 (UTC)
- If you can log in, you can run maintenance/install.php to install MediaWiki from the command line. ☠MarkAHershberger☢(talk)☣ 19:50, 8 April 2013 (UTC)
[RESOLVED] Advanced Template
I'm sorry for bad English.
Hi, I use advanced template ( you can see it here ).
One of his advantages is changing text used in template to category ( you can see here full template ), by this code ( if in table is "nation" this convert this text too category ). Translated code ( original language is Polish ):
<noinclude> {{#if: {{{nation}}}| {{#switch: {{{nation}}} |Great Britain=[[Category:Great Britain]] |USSR=[[Category:USSR]] |Japan=[[Category:Japan]] |USA=[[Category:USA]] |Germany=[[Category:Germany]] |default=[[Category:{{{slot|}}}]]}}}} </noinclude>
And here is my ask: convert to category working perfect, but i want convert normal text to hyperlink too - [[USA]] for example.
I would like to make it work so: I write on normal site, using template, text "USA". After save, I see:
- link in table
- category
Is it possible?
Sorry for confusing writing this. Rycerzodie (talk) 22:37, 8 April 2013 (UTC)
- First of all, I think the code you've posted is wrong. You probably want to use <includeonly> tags instead of <noinclude>, because template parameters will work only in included wiki code.
- You can display links in addition to categories with the same way, since categories are just links (a special one).
- Ciencia Al Poder (talk) 09:52, 15 April 2013 (UTC)
<includeonly> {{#if: {{{nation}}}| {{#switch: {{{nation}}} |Great Britain= [[Great Britain]] [[Category:Great Britain]] |USSR= [[USSR]] [[Category:USSR]] |Japan= [[Japan]] [[Category:Japan]] |USA= [[USA]] [[Category:USA]] |Germany= [[Germany]] [[Category:Germany]] |default= [[{{{slot|}}}]] [[Category:{{{slot|}}}]]}}}} </includeonly>
- Unfortunately this bad working, you can see result on this screenshot.
- I bad write <noinclude> here. In template, I have this in <includeonly>.
- Someone have other idea, or solve for this method?
- Important to me to users must enter only the name.
- And then I could use this in a few other places. Rycerzodie (talk) 15:30, 17 April 2013 (UTC)
- Oh, I see now. Well, I haven't looked at that template before.
- Maybe what you want to do is change
* '''Nacja:''' {{{nacja}}}
- by
* '''Nacja:''' [[{{{nacja}}}]]
- ? Ciencia Al Poder (talk) 17:27, 19 April 2013 (UTC)
- Thanks, very simple solution ;p Rycerzodie (talk) 13:22, 23 April 2013 (UTC)
- Unfortunately this bad working, you can see result on this screenshot.
Disable edit or createpages by non-users
Finally I have been able to block the creation of new accounts of user, but itself receiving Spam of no-users. I cannot block IPs because they are thousands. There isn't any method to block the editing or creation of new pages? If nobody can create accounts nor is to editing option some of pages in wiki ...where generated those are pages of Spam? ...in the data base?
from where they leave these pages? http://instantaneo.es/wiki/index.php?title=Especial:P%C3%A0gines_noves Amanida (talk) 23:45, 8 April 2013 (UTC)
- This has been replied on your last post, Project:Support desk/Flow/2013/04#h-Massive_spam_&_vandalism._more_than_150.000users!-2013-04-05T12:12:00.000Z. Please follow the conversation there (since the thread is long, last replies may be hidden and you need to click on the "display X replies" link) Ciencia Al Poder (talk) 09:55, 9 April 2013 (UTC)
- I cannot follow that thread… all what I write disappears
- (???) Amanida (talk) 17:58, 9 April 2013 (UTC)
- I just found the problem of replies disappearing. I've filed a bug: bugzilla:47051. If that happens to you, just hit F5 after posting. Ciencia Al Poder (talk) 19:15, 9 April 2013 (UTC)
MediaWiki on subdomain, access from main domain
Hi there,
I have successfully installed the latest MediaWiki 1.20 on my subdomain "wiki.mydomain.org" in the subfolder "wiki.mydomain.org/mediawiki". I can access the wiki with clean URLs like "wiki.mydomain.com/wiki/whatever". Now I want to access my wiki over "www.mydomain.org/wiki/whatever" WITHOUT redirecting to "wiki.mydomain.com/wiki/..." The browser should show "www.mydomain..."
How to setup the .htacces file on "www.mydomain.com" and the LocalSettings.php? The access over "wiki.mydomain..." is not necessarily needed if this would be difficult.
I have no root permissions, I'm on a shared server :-( running Apache
Thanks
Stephan 217.7.253.209 (talk) 01:26, 9 April 2013 (UTC)
- If you're on a shared computer, you need to talk to your support person to get this. ☠MarkAHershberger☢(talk)☣ 21:04, 24 April 2013 (UTC)
Can't login. No error messages.
RESOLVED | |
Check Manual:How to debug/Login problems and provide more information on a new post |
The following discussion is closed. Please do not modify it. Subsequent comments should be made on the appropriate discussion page. No further edits should be made to this discussion.
- I try to login and it just refreshes the login page with no error and not logged in.
- I can view the contents of my wiki but unable to edit since login doesn't work.
- Is there a folder/database permission which could have changed which would do this?
- Also, when installing a test wiki i get a blank screen when clicking the initial setup button. The PHP log says:
- PHP Warning:
- require(.../wiki/languages/Language.php):
- failed to open stream:
- Permission denied in ...wiki/includes/AutoLoader.php on line 1146
- mediawiki 1.19.2
- php 5.4
- MySql 5.5.3 Bouncingmolar (talk) 05:58, 9 April 2013 (UTC)
Bouncingmolar (talk) 12:01, 9 April 2013 (UTC)
- Try to do perform a search through the search bar and let us know if the search works, and if it fails see if the search terms appear already in the search bar of the search results page. Ciencia Al Poder (talk) 09:45, 10 April 2013 (UTC)
- thanks for looking! search bar seems to work fine. However i notice that all the wikimarkup and html is included in the search results.
- edit: oh.. Just realised that is normal after googling it.
- btw my test wiki is 1.20.3 if that makes any difference. Bouncingmolar (talk) 12:02, 10 April 2013 (UTC)
- Well, that's really strange. Something that may cause this is the loss of session information.
- Make sure PHP session configuration variables are set correctly to allow session storage. For example, upload a php file with this contents to the server:
<?php session_start(); if (!isset($_SESSION['count'])) { $_SESSION['count'] = 0; } else { $_SESSION['count']++; } print($_SESSION['count']);
- Browse that page and it should print you a number increasing every time you reload the page. If not, something is wrongly configured in the php.ini. Ciencia Al Poder (talk) 20:18, 10 April 2013 (UTC)
- The test worked: +1 each refresh.
- Not sure if this is relevant, but a web developer recently installed joomla in a different directory. Also they wiped my htaccess.txt file. I deactivated the htaccess.txt file in the joomla directory just in case with no improvement. Bouncingmolar (talk) 05:04, 11 April 2013 (UTC)
- Check the value of Manual:Configuration settings#Cookies. If any of those variables are defined, try to comment them, since in general their default value is already OK.
- If your wiki is public a link to it may help. Ciencia Al Poder (talk) 09:31, 12 April 2013 (UTC)
- Maybe something is really wrong with your web server and somehow POST requests are being broken. (Most session related issues should raise some sort of error on special:userlogin)
- Do you have short urls enabled in any sort of way that's weird or different from the standard way of doing it? If you enabled editing for anonoymous users, does anon editing go through? Bawolff (talk) 10:18, 12 April 2013 (UTC)
- I have not changed anything to do with the cookies.
- I have tried installing a new wiki in a separate directory (1.20.3) and i can not get past the link "setup the wiki now" ---> http error 500
- I think that whatever problem is preventing me from installing the new wiki is also affecting my old wiki. I'm getting my host support to look at it right now. He is looking at permalinks to see if that is the problem. Bouncingmolar (talk) 04:28, 26 June 2013 (UTC)
- I had this problem and I have found a solution:
- In my LocalSettings.PHP file I had a line of code:
- $wgSessionsInMemcached = true; # optional
- THIS is causing the problem!
- I changed the true to false and it worked. Do you have this setting in your localsettings.php? and did this work for you also?
- So in closing: I uploaded my old wiki to a new server and suddenly couldn't login and with no error message. The local settings had a line of code (which was added by me a long time ago) and on the new server they didn't allow the caching. Turned the "True" to False and I can now login. 184.20.185.108 22:13, 8 February 2014 (UTC)
- Wow thanks for replying (a year ago) anonymous person. I can't seem to find that setting in my localsettings.php
- The closest thing I've got is:
- ##shared memory settings
- $wgMainCacheType = CACHE_NONE;
- $wgMemCachedServers = array(); Bouncingmolar (talk) 05:26, 27 February 2015 (UTC)
- Try to do perform a search through the search bar and let us know if the search works, and if it fails see if the search terms appear already in the search bar of the search results page. Ciencia Al Poder (talk) 09:45, 10 April 2013 (UTC)
- having this problem now, 8 years in the future! 69.1.112.226 (talk) 19:26, 5 June 2023 (UTC)
- See Manual:How to debug/Login problems Ciencia Al Poder (talk) 20:21, 5 June 2023 (UTC)
installed 1.20.3 is ok, but wiki seems not to work except mw_config
hi,
wiki installed, php: 5.3.22, mysql: 5.6.10 everything seems to be fine. wiki.dark-central.com is the site
no response, mw_config works, but nothing more. DB created by install. user table filled with data, in page is the Main_page present and so is the text too.
i have no idea what i can do..:(
thanks
Peter Ferenczy fpeter@gmx.net 145.236.150.212 (talk) 13:59, 9 April 2013 (UTC)
- Hi Peter,
- can you elaborate into what "no response" means?
- If you mean "I only see a white, empty page without anything on it", then you most probably get a PHP error. Turn on error reporting in PHP to see what is happening. Also check the PHP error log. 88.130.105.123 14:29, 9 April 2013 (UTC)
- if it were an empty page it would make things easier.. no response at all. check the site i linked. i can give ftp/db account to check, i didn't found anything.. 145.236.150.212 14:36, 9 April 2013 (UTC)
145.236.150.212 14:44, 9 April 2013 (UTC)
- You do not get a PHP error.
- When you call the domain directly, then you get a 301 redirect to index.php/Main_Page. So far so good.
- But when you call index.php/Main_Page, then you get exactly nothing. Not even HTTP header data is sent.
- Do you maybe have reqwrite rules in .htaccess, which could cause this? 88.130.105.123 14:46, 9 April 2013 (UTC)
- no .htaccess there 145.236.150.212 14:59, 9 April 2013 (UTC)
- i forgot the ftp and mysql connect data:
- ftp.dataglobe.eu
- mysql: https://www.dataglobe.eu/mysql/login.php?phpMyAdmin=qr087snjfso9p31nm9emg8c0h5lod0jg 145.236.150.212 14:46, 9 April 2013 (UTC)
- You can access images, CSS files, generally: You can access actual files, which are on the server.
- What you cannot access are pages, which are called through the index.php file, e.g. index.php/My_Page.
- However, when you only call index.php and put something behind the URL, so that you do not get the redirect to index.php/Main_Page, then it works. E.g. I can access your wiki, when I open it with http://wiki.dark-central.com/index.php?1=2
- My guess is that there is some strange server configuration. Maybe that is fixable by providing the right configuration in .htaccess. I am currently not sure, what "right" means in your case. Maybe ask your hoster, if they can tell you what you/they have to adjust, in order to get MediaWiki running properly. 88.130.105.123 15:33, 9 April 2013 (UTC)
- what really strange is, i had a mediawiki 1.6 installed which worked. i don't know if anything in this direction changed.. 145.236.150.212 15:39, 9 April 2013 (UTC)
- if i give the page as parameter to index.php, http://wiki.dark-central.com/index.php?title=Main_Page it works.. even with a special page 145.236.150.212 15:44, 9 April 2013 (UTC)
[RESOLVED] Upgrading beyond 1.19 is causing errors with links to the News: namespace
I upgraded from 1.17.0 to 1.20.3 and now some wiki links are not working. We have since upgraded to 1.19.4 but I want to use the Mobile Front End extension that needs the 1.20 or higher.
- 1.17.0 site – everything worked
- 1.19.4 site – now wiki.countingopinions.com (side nave works, Announcement inbox works)
- 1.20.3 site – wiki120.countingopinions.com (side nav some links don't work, Announcement infobox links don't work – after a second attempt to install we lost the endashes)
- 1.22alpha – wiki121.countingopinions.com (installed April 9, same errors as 1.20.3, but endashes work)
Side nav source code (working 1.17.0/1.19.4):
News
- <a href="/index.php/News:Announcements">Announcements</a>
- <a href="/index.php/Studies:Case_Studies">Case Studies</a>
- <a href="/index.php/News:Newsletters">Newsletters</a>
- <a href="/index.php/News:Upcoming_Events">Upcoming Events</a>
Side nav source code (not working – 1.20.3):
News
- <a href="News:Announcements" rel="nofollow">Announcements</a>
- <a href="/index.php/Studies:Case_Studies">Case Studies</a>
- <a href="News:Newsletters" rel="nofollow">Newsletters</a>
- <a href="News:Upcoming Events" rel="nofollow">Upcoming Events</a>
MediaWiki:Sidebar (text on page 1.20.3)
- News
- News:Announcements%7CAnnouncements (all text is a link)
- Studies:Case Studies|Case Studies
- News:Newsletters%7CNewsletters (all text is a link)
- News:Upcoming Events|Upcoming Events (only News:Upcoming is linked)
Edit (1.20.3)
*News ** News:Announcements|Announcements ** Studies:Case Studies|Case Studies ** News:Newsletters|Newsletters ** News:Upcoming Events|Upcoming Events
I have tried retyping on different computers with no luck.
Case Studies is the only work that links in this section (the links in other sections work fine, and there are more sidebar sections once someone is logged in).
The links in the "Announcement" infobox are also messed up in the 1.20.3 version, yet the DPL call on http://wiki120.countingopinions.com/...s:Case_Studies works as expected.
- MediaWiki 1.17.0 (worked)
- PHP 5.3.22 (apache2handler)
- MySQL 5.5.22-log
- MediaWiki 1.19.4 (working – current site)
- PHP 5.3.22 (apache2handler)
- MySQL 5.5.22-log
- MediaWiki 1.20.3 (not working)
- PHP 5.3.22 (apache2handler)
- MySQL 5.5.22-log
- MediaWiki 1.22alpha (not working)
- PHP 5.3.22 (apache2handler)
- MySQL 5.5.22-log
Thanks! 69.158.43.107 (talk) 03:46, 10 April 2013 (UTC)
- Since this has sat for a few weeks without an answer, I sent an email to info@ asking for who to contact.
- You can msg me here if you're still around. ☠MarkAHershberger☢(talk)☣ 14:57, 27 April 2013 (UTC)
- Same bug happened on dewikivoyage actually. For now best fix is to do something like
$wgUrlProtocols = array_diff( $wgUrlProtocols, array( 'news:' ) );
- at the bottom of your LocalSettings.php Bawolff (talk) 04:00, 28 April 2013 (UTC)
- Thank you!! that worked!
- Jennifer 70.29.97.44 15:00, 30 April 2013 (UTC)
Add tab and open in new window/tab
The following discussion is closed. Please do not modify it. Subsequent comments should be made on the appropriate discussion page. No further edits should be made to this discussion.
- I have found below code to create tabs next to Page and Discussion.
- The code itself works perfekt but it opens the link in the same window.
- I would like to open it in another window/tab, is that workable?
- How to add custom tab button with external link?
$wgHooks['SkinTemplateNavigation'][] = 'replaceTabs';
function replaceTabs( $skin, &$links) {
$links['namespaces']['name_of_tab'] = array(
'class' => false or 'selected', // if the tab should be highlighted
'text' => 'text_of_tab', // what the tab says
'href' => 'url_to_point_to', // where it links to
'context' => 'main',
);
return true;
}
- I am using
$wgExternalLinkTarget = '_blank';
but it doesn´t cover the links within this code. - I appreciate any help!
- I am using:
- MediaWiki version: 1.19.1
- PHP: 5.3.6 (apache2handler)
- MySQL: 5.5.16
- --MWMP (talk) 05:59, 10 April 2013 (UTC)
- No one that can give me a hand regarding this? MWMP (talk) 06:04, 11 April 2013 (UTC)
- I suspect it is possible to use
$wgHooks['LinkerMakeExternalLink']
- Allthough I don´t know how to implement it. MWMP (talk) 07:08, 11 April 2013 (UTC)
- You may have already discovered this, but $wgExternalLinkTarget is ignored by the Skin code, which is where these links are rendered.
- If you are using the Vector skin, you would have to look at the file in skins/Vector.php, and the
renderNavigation()
method. - You could create your own skin that would, for example, respect $wgExternalLinkTarget by simply overriding the
renderNavigation()
method. ☠MarkAHershberger☢(talk)☣ 15:57, 27 April 2013 (UTC)
- I suspect it is possible to use
- No one that can give me a hand regarding this? MWMP (talk) 06:04, 11 April 2013 (UTC)
- I know this is old, but I added this code under the href and it works.
- 'target' => '_blank' Musikagod (talk) 17:05, 7 March 2018 (UTC)
Upload security
RESOLVED | |
adding the recommended .htaccess settings from Manual:Security#Upload security addresses |
The following discussion is closed. Please do not modify it. Subsequent comments should be made on the appropriate discussion page. No further edits should be made to this discussion.
- I was installing MediaWiki and the installer warned me that
Warning: Your default directory for uploads /home/user/public_html/w/images/ is vulnerable to arbitrary scripts execution. Although MediaWiki checks all uploaded files for security threats, it is highly recommended to close this security vulnerability before enabling uploads.
The manual at Manual:Security#Upload_security says that I should use the code there to close this vulnerability. It mentioned that that was for apache.conf though, will the same code work for .htaccess? Thanks. Impy imps (talk) 06:55, 10 April 2013 (UTC)- Hi, can someone help me with this? Impy imps (talk) 06:34, 13 April 2013 (UTC)
- I would check what the code of the installer does to show you that message. And then fix that problem.
- Maybe wrong directory permissions? Or a missing .htaccess file? 88.130.73.60 12:12, 13 April 2013 (UTC)
- Hi, can someone help me with this? Impy imps (talk) 06:34, 13 April 2013 (UTC)
- Since this is still the top Google search result for this issue, I wanted to include here how I resolved this issue in case it is helpful for anyone else.
- Per Manual:Security#Upload_security, you need to both 1) prevent users from uploading malicious files, and also 2) prevent them from being able to be executed on the server.
- For Part 1, the default configuration (Manual:$wgFileExtensions & Manual:$wgFileBlacklist) luckily takes care of most of that for you by only allowing certain default file types to be uploaded.
- For Part 2, (in case someone is able to bypass part 1) you need to prevent the server-side execution of arbitrary scripts in the images (or uploads) folder. For my server, I did this by editing the image folder's .htaccess file and adding the recommended .htaccess settings from Manual:Security#Upload security: After I did that, I reloaded the Mediawiki Installation page and the vulnerability alert was gone!
# Serve HTML as plaintext, don't execute SHTML AddType text/plain .html .htm .shtml .phtml .php .php3 .php4 .php5 .php7 # Old way of registering php with AddHandler RemoveHandler .php # Recent way of registering php with SetHandler <FilesMatch "\.ph(p[3457]?s?|tml)$"> SetHandler None </FilesMatch> # If you've other scripting languages, disable them too.
- Hopefully this answer is helpful for anyone else who lands on this page and is looking for an answer. Let me know if I missed anything. Knomanii (talk) 01:00, 25 February 2021 (UTC)
How change your domain from local host to a domain of your choice for free
- how would I change my domain from to one of my chose like for example http://www.example.com or http://www.example.org or http:example.org or .com 109.144.217.14 (talk) 09:39, 10 April 2013 (UTC)
- You can't get a domain for free. You should buy one. And associate it with your public IP (the provider of the domain name normally already provides a way to update the DNS to change the associated IP address)
- There are some free services of "subdomains", eg, yoursubdomain.genericdomain.com, check out for google:dyndns Ciencia Al Poder (talk) 09:57, 11 April 2013 (UTC)
- could i have some help to set this as my dyndns this is my link and my host i created wikirandom.dlinkddns.com 217.39.7.252 16:25, 11 April 2013 (UTC)
- .tk domain names are free. It's dot.tk. ఠ_ఠ Inquisitor Sasha Ehrenstein des Sturmkrieg Sector (Talk) (Contr) 03:46, 12 April 2013 (UTC)
- Just FYI, dot.tk is not a domain, just a web redirect. You can't assign dot.tk an IP address, publish another service (mail, ftp), etc.
- If you ever attempt to put a dot.tk domain in $wgServer, no edit will be saved, since all requests will go to dot.tk, not your IP address, and the POST data will be lost on the redirect.
- That doesn't happen with a dyndns service. Ciencia Al Poder (talk) 09:21, 12 April 2013 (UTC)
- If you create an account, you can set the nameservers for it. If you do it anonymously, than all you can do is redirect it. We had people at Wikkii using it, since both services are free. Wikkii also doesn't seem to allow third level domains, so even when owning a domain, you either have to give up the domain root or use another one. ఠ_ఠ Inquisitor Sasha Ehrenstein des Sturmkrieg Sector (Talk) (Contr) 13:34, 12 April 2013 (UTC)
- how do i do that 217.39.3.13 16:27, 13 April 2013 (UTC)
- If you create an account, you can set the nameservers for it. If you do it anonymously, than all you can do is redirect it. We had people at Wikkii using it, since both services are free. Wikkii also doesn't seem to allow third level domains, so even when owning a domain, you either have to give up the domain root or use another one. ఠ_ఠ Inquisitor Sasha Ehrenstein des Sturmkrieg Sector (Talk) (Contr) 13:34, 12 April 2013 (UTC)
- You should check the docs of the dlinkddns service to set up your IP there (and to change the registered IP address whenever your IP changes if you have a dynamic IP).
- Once that's done, set up $wgServer to that domain. Be sure to check first that your wiki is accessible through that domain. Ciencia Al Poder (talk) 09:26, 12 April 2013 (UTC)
- i have setup my ip address on there how do i change the domain to an ip address so everyone can see it 217.39.3.13 16:28, 13 April 2013 (UTC)
- hi i have a free RANDOMPATTOM.TK domain how do i move my wiki to it 86.189.12.22 19:17, 13 April 2013 (UTC)
- In your dot.tk account, you should set the nameservers for the domain to the namesevers of the server your wiki is on. It might use CNAME, but probably nameservers. ఠ_ఠ Inquisitor Sasha Ehrenstein des Sturmkrieg Sector (Talk) (Contr) 03:46, 14 April 2013 (UTC)
- how would i do that could you write some instructions and a example please 217.39.7.253 10:30, 14 April 2013 (UTC)
- In your dot.tk account, you should set the nameservers for the domain to the namesevers of the server your wiki is on. It might use CNAME, but probably nameservers. ఠ_ఠ Inquisitor Sasha Ehrenstein des Sturmkrieg Sector (Talk) (Contr) 03:46, 14 April 2013 (UTC)
- hi i have a free RANDOMPATTOM.TK domain how do i move my wiki to it 86.189.12.22 19:17, 13 April 2013 (UTC)
- i have setup my ip address on there how do i change the domain to an ip address so everyone can see it 217.39.3.13 16:28, 13 April 2013 (UTC)
- .tk domain names are free. It's dot.tk. ఠ_ఠ Inquisitor Sasha Ehrenstein des Sturmkrieg Sector (Talk) (Contr) 03:46, 12 April 2013 (UTC)
- could i have some help to set this as my dyndns this is my link and my host i created wikirandom.dlinkddns.com 217.39.7.252 16:25, 11 April 2013 (UTC)
- Tried changing the $wgServer to the desired domain name but doesn't seem to be working. 203.116.208.9 (talk) 09:11, 28 June 2018 (UTC)
- Did you purchased the domain name, and pointed the domain name to the IP of the server? Also please open a new thread Ciencia Al Poder (talk) 09:27, 28 June 2018 (UTC)
Thumbnails creating but not showing
MediaWiki - 1.20.3
PHP - 5.4.9 (cgi-fcgi)
MySQL - 5.5.30-log
Windows Server 2003
Our wiki is for an internal resource and recently we moved it from one server to another, however since being moved thumbnails don't work. When an image is uploaded new thumbnails are successfully generated but they're never shown on pages - just broken image links - this is the same for existing thumbnails.
Looking in the source of the page, the src path of the thumbnail is correct, and following through to that folder in Windows does show that there is indeed a thumbnail there.
I've checked the permissions of the IIS services and they all have access to the folder it's running in, I've also upgraded to the latest version (it was 1.19 before) and the problem persists.
Full size images work without issue. 195.27.53.211 (talk) 11:25, 10 April 2013 (UTC)
- If you copy the src URL of a thumbnail and browse it directly, what do you get? Thy that with a browser other than Internet Explorer, since IE won't display any useful error message.
- If you get a "forbidden" error, it's a permission issue. If you get a "Not found" then something is not properly configured on the server and the URL is mapping to a path in the server that doesn't exist. You can also see the IIS error logs Ciencia Al Poder (talk) 09:54, 11 April 2013 (UTC)
- src URL of the main image,
<img alt="File:Progress-1.jpg" src="/images/e/e0/Progress-1.jpg" width="418" height="404">
- src for the thumbnail for that,
<img alt="" src="/images/thumb/e/e0/Progress-1.jpg/120px-Progress-1.jpg" width="120" height="116">
- When trying to go to that directly I just get a 404 page and no error.
- On the server, if I go to,
webroot/images/thumb/e/e0/Progress-1.jpg/
- the thumbnail is there.
- If I go directly through thumb.php,
http://<URL>/thumb.php?f=Progress-1.jpg&width=200
- A new generate thumbnail does show up. 194.205.13.211 09:20, 12 April 2013 (UTC)
- Check permissions of the generated thumb file (you said you've already checked folder permissions, but maybe the problem is on the particular file). Ciencia Al Poder (talk) 09:34, 12 April 2013 (UTC)
Auto new User Page Generation and Edit Extention no longer works after 1.18 Upgrade
Product Version
MediaWiki 1.18.2 PHP 5.3.10 (apache2handler) MySQL 5.5.23-enterprise-commercial-advanced-log
EXTENTION
When New users log into our wiki for the first time, a NewUserRedirect extention we created using a hook from AddNewAccount. This extention :
- 1 - Creates their userpage with their logon username.
- 2 - Edits that page to include a redirect to a page with their proper name IE "Joe Smith" aka $newName that we pull in from LDAP.
ISSUE
The issue is, after we upgraded from 1.17 to 1.18.2 this extension stopped working. We have tried to check all logs but are at a loss. A simplified version of the code is shown below.
QUESTION
My question is, has there been any changes to the $article = new or $article->doEdit that would now prevent this from working, and or is there a another command we could create and edit the new users page via an extention. Please note, this is only created the first time they log on.
I have spent a significant amount of time troubleshooting and researching this with no luck. Any help would be appreciated.
Sample Code :
<?php # Extension:NewUserRedirect if (!defined('MEDIAWIKI')) die('Not an entry point.'); define('NEWUSERREDIRECT_VERSION','2.0.1, 2008-12-08'); $wgHooks['AddNewAccount'][] = 'wfNewUserRedirect'; function wfNewUserRedirect($user) { $name = $user->getName(); $userpage = $user->getUserPage(); if (!$userpage->exists()) { $article = new Article($userpage); $article->doEdit("#REDIRECT [[[$newName]][Category: Category:AutoMagically Redirected]]",false); } return true; }
134.223.230.200 (talk) 19:14, 10 April 2013 (UTC)
- try updating to the new mediawiki software 1.20.4 because 1.18 is not supported anymore and try updating the extension 90.211.52.178 14:22, 28 April 2013 (UTC)
- We updated to 1.20.2 but no luck. I found some information in the 1.18 release notes (see below) related to a Article class heirarchy split. As a result of the noted change, I updated the $article = new Article($userpage); to $article = new WikiPage($userpage); but still no luck. I would be greatfull for any thoughts.
- BREAKING CHANGE: 1.18 release notes : Article class heirarchy split into WikiPage (backend). and Article (frontend) hierarchies. Several hooks now pass a WikiPage object instead of an Article object. These hooks all use an $article paramater as documented in hooks.txt. Extensions should be updated to account for this, though most won't require any changes. 134.223.230.200 06:22, 16 May 2013 (UTC)
how do I update 40 pages simultaneously?
- Good afternoon,
- My company has 40 different Wiki pages. They will all need periodic updates – the same paragraphs (sometimes also an attachment) will need to go to all 40 sites at the same time.
- Other than copying the content and pasting it separately onto each of the 40 sites, is there a simpler method of making these mass updates?
- Thanks!! 66.218.112.1 (talk) 22:22, 10 April 2013 (UTC)
- Yes, there is:
- Put your text in a template (or in multiple templates, if that fits your needs better) and include this template/these templates in each page, in which the contents should be displayed. See Templates for a how to. 88.130.77.162 23:01, 10 April 2013 (UTC)
- Sorry but I do not understand the explanation. The sites are already built and have been running for a year. Each site is slightly different because of the needs of the location and business that uses that wiki. How do I update 40 sites simultaneously? 66.218.112.1 13:26, 11 April 2013 (UTC)
- You can write code to edit all the wikis through the API. Or edit the page in one wiki, Special:Export it and Special:Import it on the target wikis. Ciencia Al Poder (talk) 09:36, 12 April 2013 (UTC)
- How do I import? That link in your response is blocked. Thanks! 66.218.112.1 16:43, 12 April 2013 (UTC)
- You should access the first page (Special:Export) in the wiki you want to export the content, and the other (Special:Import) on the wikis you want to import the contents. Ciencia Al Poder (talk) 19:22, 13 April 2013 (UTC)
- How do I import? That link in your response is blocked. Thanks! 66.218.112.1 16:43, 12 April 2013 (UTC)
- You can write code to edit all the wikis through the API. Or edit the page in one wiki, Special:Export it and Special:Import it on the target wikis. Ciencia Al Poder (talk) 09:36, 12 April 2013 (UTC)
- Sorry but I do not understand the explanation. The sites are already built and have been running for a year. Each site is slightly different because of the needs of the location and business that uses that wiki. How do I update 40 sites simultaneously? 66.218.112.1 13:26, 11 April 2013 (UTC)
- Hi, I need to replace '\10000-10499\10284' with '\11000-11499\11075' in several wiki pages. How do I do that simultaneously? 217.129.250.13 (talk) 11:48, 11 January 2021 (UTC)
- You can use the extension "Replace Text".
- Thomas TS (talk) 16:58, 12 January 2021 (UTC)
Please help, a bit confused here.
When we read through the docs before deciding to use this package, it seemed like a great system to use, now that it's installed, we can't seem to find a way to add the categories/subcategories etc, and things like that which were described in the features. On top of that, when you hit the index page, it seems "edit" is available for anyone. Is there an admin section that we are missing where we can administer this stuff, or is it all in the code that has to be edited by hand to customize it? I've looked through the docs, I've searched here, I've looked everywhere I can find, and no luck. Any help will be greatly appreciated!!
Osyrys 98.213.190.88 (talk) 07:28, 11 April 2013 (UTC)
- See: Help:Categories and Permissions. Ciencia Al Poder (talk) 10:06, 11 April 2013 (UTC)
search autocomplete case insensitive
We have several topics that haves upper case characters in the title. When searching the autocomplete does not complete the search using all lower case characters (searching however will). It looks as if the default configuration is only case insensitive for the first character. I would like to have the autocomplete case insensitive. I know this has the ability to be enabled as Wikipedia does not have this problem.
My effort researching a solution has been unsuccessful.
MediaWiki 1.20.2 72.228.158.3 (talk) 09:27, 11 April 2013 (UTC)
- Try installing Extension:TitleKey. brion (talk) 22:41, 11 April 2013 (UTC)
- Probably not the right way to fix this, but a possible workaround is:
- vim includes/PrefixSearch.php +234
- Replace
- 'page_title using utf8 ' . $dbr->buildLike( $prefix, $dbr->anyString() )
- with
- 'CONVERT (page_title using utf8 ) ' . $dbr->buildLike( $prefix, $dbr->anyString() ) Pedro.guima (talk) 13:12, 10 December 2014 (UTC)
- Do not hack MediaWiki core Florianschmidtwelzow (talk) 13:50, 12 December 2014 (UTC)
Crowdsourcing for Dummies
We are currently developing a free multimedia dictionary for K-12 and will use crowd-sourcing of entries as a feature. I'd like to talk to anyone at Wikipedia that could give us some guidance in this area, particularly in the area of establishing editorial procedures/network as well as how to entice contributors. We need "Crowd-sourcing for Dummies" information. I hope someone can help. Sincerely, Harley Hamilton, PhD Senior Research Scientist School of Interactive Computing Georgia Institute of Technology hhamilton@gatech.edu 76.97.24.170 (talk) 13:07, 11 April 2013 (UTC)
- replied via email. ☠MarkAHershberger☢(talk)☣ 21:09, 24 April 2013 (UTC)
Better category navigation
Hello, folks! Currently, you can only see pages in a category by name (or more precisely, the tag). Is there any current project to add new features, like listing pages by first edit time, last edit time or size? Also, it would be help too if users could have an option to see all pages in a category and its subpages, and to search within a category. Thanks! NaBUru38 (talk) 16:11, 11 April 2013 (UTC)
- extension:DynamicPageList (Wikimedia) can give lists of categories sorted in different ways (not exactly what you are asking for).
- There is some recent work with collation (per language sorting order) which could perhaps be abused to provide this feature (sorting by different criteria), but I'm not aware of anyone currently working on using collation support to that end. Bawolff (talk) 06:47, 12 April 2013 (UTC)
Settlement Not Rendering
The same text renders correctly on Wikipedia but not my Wikimedia site. The settlement box on the upper right of my page doesn't render correctly.
http://en.wikipedia.org/wiki/User:BocasThunder/Playa_Verde
http://panamanana.com/wiki/index.php?title=Playa_Verde
Any suggestions? BocasThunder (talk) 01:50, 12 April 2013 (UTC)
- Well you removed the box from your sample page, so hard to say ;)
- Common causes of infoboxes not rendering outside of wikipedia is different MediaWiki:Common.css pages.
- Additionally, the references in your article aren't rendering properly due to lack of extension:Cite. Bawolff (talk) 06:50, 12 April 2013 (UTC)
- I am not sure what you mean by "you removed the box from your sample page" The article text is identical on both sites.
- I will work on citations later. BocasThunder (talk) 13:53, 12 April 2013 (UTC)
- I have now copy/pasted Common.css but the page still doesn't render properly. BocasThunder (talk) 15:57, 12 April 2013 (UTC)
- As a result of input from other places I exported the page with templates and imported it. It still doesn't render. It has nothing to do with cascading style sheets as the HTML is not emitted. BocasThunder (talk) 23:21, 13 April 2013 (UTC)
- That's because the template is blank, empty: http://panamanana.com/wiki/index.php?title=Template:Infobox_settlement&action=history
- It looks like you tried to create the template first, then you blanked the page and then imported the contents from Wikipedia. Note that imports respect the date every edit was made, so if the last edit on the template on wikipedia is older than the edits on your local wiki, it will be inserted before your edits. You should simply revert to that revision (hit the timestamp of the first revision, edit and save).
- On a side note, if you're copying content from Wikipedia, you should put a notice about its origin on that page to comply with the license. Ciencia Al Poder (talk) 09:41, 15 April 2013 (UTC)
"Error establishing database connection" when creating a new page
I am still relatively new to wikis, but...
I get "Error establishing database connection" only when I try to create a page. I can edit other pages without getting the message.
A few days ago I changed my cpanel login password as well as the msql user password. I updated $wgDBpassword in localsettings - not sure if there is somewhere else i need to update? i also made sure the msql user had all necessary permissions.
the wiki i am trying to edit is http://goodlifebikes.ca/wiki
I enabled QuestyCaptcha today, i am not sure if the problem was occuring before i did this or not. I tried taking the Captcha code out of localsettings but the problem persisted.
any ideas? Kerryglcbs (talk) 03:04, 12 April 2013 (UTC)
- I sent you an email. ☠MarkAHershberger☢(talk)☣ 14:25, 27 April 2013 (UTC)
Using Git X
It seems to say "commit succesful," yet it doesn't seem to show up when I access the git repository here. I'm working on the sarcasm extension. Lieutenant Aleksandr Reznov 03:45, 12 April 2013 (UTC)
- By "using Git X" I assume you mean you are not using "git-review"(?)
- Just to check, you're not just committing locally, you are actually pushing the change? (In git speak, "commit" usually means to save the commit only to your computer. In order to make it show up to others, you need to push it to the repository using either
git push
(or the equivalent graphical thing in gitX) orgit review
). - If you did indeed push the commit, what url did you push to? Bawolff (talk) 06:44, 12 April 2013 (UTC)
- Thank you. I did see that I need to push changes, but when I did that, it asked for a username and password, and then failed. ఠ_ఠ Inquisitor Sasha Ehrenstein des Sturmkrieg Sector (Talk) (Contr) 13:35, 12 April 2013 (UTC)
- I added Git Review. I just got down to this point: Gerrit/Tutorial#Installing git-review ఠ_ఠ Inquisitor Sasha Ehrenstein des Sturmkrieg Sector (Talk) (Contr) 13:48, 12 April 2013 (UTC)
- Are you able to commit now? ☠MarkAHershberger☢(talk)☣ 18:35, 18 April 2013 (UTC)
- Just checked, the sarcasm repository and you haven't committed. What are you trying so far? ☠MarkAHershberger☢(talk)☣ 18:37, 18 April 2013 (UTC)
- I just uploaded sarcasm.php to the Sarcasm git repository. ఠ_ఠ Inquisitor Sasha Ehrenstein des Sturmkrieg Sector (Talk) (Contr) 00:20, 30 April 2013 (UTC)
- reviewed. Do you think the instructions for installing git-review alongside Git X could be improved? What did you have to do to install it? ☠MarkAHershberger☢(talk)☣ 02:10, 30 April 2013 (UTC)
- I just uploaded sarcasm.php to the Sarcasm git repository. ఠ_ఠ Inquisitor Sasha Ehrenstein des Sturmkrieg Sector (Talk) (Contr) 00:20, 30 April 2013 (UTC)
- I added Git Review. I just got down to this point: Gerrit/Tutorial#Installing git-review ఠ_ఠ Inquisitor Sasha Ehrenstein des Sturmkrieg Sector (Talk) (Contr) 13:48, 12 April 2013 (UTC)
- Thank you. I did see that I need to push changes, but when I did that, it asked for a username and password, and then failed. ఠ_ఠ Inquisitor Sasha Ehrenstein des Sturmkrieg Sector (Talk) (Contr) 13:35, 12 April 2013 (UTC)
Strip wikipedia markups
Hey, I've written a PHP code which retrieve information from wikipedia. The problem comes up when I try to display the content I've retreived - and then the wikipedia markups are displayed as well. I wonder if there is any method I can use in order to strip those markups?
Thanks in advance ! 37.142.62.111 (talk) 19:48, 12 April 2013 (UTC)
- That depends on what you mean with "markup". There is an option to get a "raw" version of a pages content; I guess it was also usable from the API... That would only give you the wiki text, not the HTML code around it. 88.130.73.60 20:35, 12 April 2013 (UTC)
calculation in tables
Hi, is there a way to calculate value (sum, etc.) in a table?
I was not able to find any information in the table syntax section nor i was able to find an extension.
regards, Karl 85.177.237.23 (talk) 19:48, 12 April 2013 (UTC)
- No, there are no extensions for that. Have in mind that wiki text is a completely unstructured text and can't do such calculations. This could be done on client side using JavaScript. Maybe you can find a script for doing that and add it to your wiki. Ciencia Al Poder (talk) 09:33, 15 April 2013 (UTC)
accessing site using http transfers
When anyone on our intranet tries to access our local mediawiki site (using 1.19) using regular http://wiki... it forwards to our corporate http://www... address despite getting the right IP address. The only way to get to the site is using https:// designation (where it won't forward to the corporate web page). What's going on here? Is this an apache problem?
I KNOW it's getting the right IP address because dig, nslookup, and my proxy.pac alert message shows it's getting the right one.
Thanks... 75.71.37.56 (talk) 14:58, 13 April 2013 (UTC)
- That's hard to say without seeing the site.
- A redirect can be done in many different ways; Apache, PHP... The most efficient one probably is the Apache configuration. So check the apache conf file and .htaccess files in the folder structure on the way to the folder which http://wiki points to in order to find it. 88.130.78.29 18:11, 13 April 2013 (UTC)
- Check what $wgServer is set to in LocalSettings.php Bawolff (talk) 08:56, 14 April 2013 (UTC)
- $wgServer seems to be set right:
$wgServer = "//wikiserver.eng.cosmicaes.com";
- I have no .htaccess.
- In httpd/conf/httpd.conf
- I have
Listen 80
ServerName wikiserver.eng.cosmicaes.com
UseCanonicalName On
DocumentRoot "/var/www/mediawiki"
<Directory />
Options FollowSymLinks
AllowOverride None
</Directory>
<Directory "/var/www/mediawiki">
Options Indexes FollowSymLinks
AllowOverride None
Order allow,deny
Allow from all
</Directory>
65.102.85.163 15:11, 15 April 2013 (UTC)
- Check what $wgServer is set to in LocalSettings.php Bawolff (talk) 08:56, 14 April 2013 (UTC)
Problems with convert when importing pages
Having some issue lately when importing pages. Every time there is a convert command, it doesn't process and instead i get this http://i.imgur.com/PcuA26B.jpg?1
Currently running MediaWiki v. 1.18, recently updated after my boss was still running the version of 5 years ago!. He still didn't update to the most recent version (1.20), will doing that help fix this? Be aware i'm a complete noob with this program. Any help is appreciated.
Here's the sample page containing what is happening http://historicracingleague.com/index.php?title=Ferrari_365_GT4_2%2B2
As you can probably tell, there is one more issue i came across when importing. Some of the car model template formats are also a bit screwed up, any guidance on that would also be appreciated. 71.164.166.131 (talk) 15:41, 13 April 2013 (UTC)
- you are missing extension:cite and extension:ParserFunctions. you can go to the page Special:Version on the old wiki to get a full list of extensions it used. Bawolff (talk) 09:06, 14 April 2013 (UTC)
Error when clicking 'Navigation' links
Hello. I am currently getting this error when I click on any of these buttons: http://gyazo.com/729168d617f4662e016d1ba3cd901bb0 it just opens a tab with an address like this (JUST THIS, by itself): help:Editing
Any ideas?
Thanks! 68.34.152.218 (talk) 04:00, 14 April 2013 (UTC)
- have you by any chance added help: to manual:$wgUrlProtocols. if you did it may screw up reading of the mediawiki:sidebar page. Bawolff (talk) 09:04, 14 April 2013 (UTC)
- No I didn't. 68.34.152.218 16:12, 14 April 2013 (UTC)
Unable to make changes to unprotected pages
'lo folks,
Upon attempting to edit certain pages on our wiki we find ourselves unable to put through the changes. The pages are not protected, allow admins to make edits and seem fine in all other aspects but when we edit, make the changes and either click submit to view changes, it takes us to the Main Page (no matter what page we are editing). For example;
We go to the "Medical" page, edit, make the changes and click submit. It takes us to the Main Page without making the alterations. Same happens if we click "Show preview"
I've updated the wiki to the latest version, ensured I have all admin rights, removed any and all restrictions from the pages to see if this would make a difference.
Our details; MediaWiki 1.20.3 PHP 5.3.20 Database 5.0.96 URL: http://database.obsidianfleet.net/
Any help would be appreciated. Thanks. 82.11.45.94 (talk) 12:59, 14 April 2013 (UTC)
- Hi Myrkul!
- > removed any and all restrictions from the pages to see if this would make a difference.
- ...as far as I understand you: It does not.
- Do you maybe have an .htaccess redirect, which is trigered by a certain string in the URL?
- Did it work before you did the upgrade? If so: From which version did you upgrade? 88.130.66.146 13:18, 14 April 2013 (UTC)
- Hi,
- It used to work, as far as I am aware. We upgraded from v1.8 today to see if that was the issue, which it isn't.
- Regarding the .htaccess, I cannot see anything which would stop the modifications from going through, it seems to be just on certain pages on the wiki this happens.
- Thanks. Sharr 19:42, 14 April 2013 (UTC)
- Since it requires login to edit I cannot directly test it, but I inserted manually a preview form on that page and it indeed redirected to main page.
- Set up a debug file and see what it prints just when hitting preview. If the redirect is done by MediaWiki, you should see a POST request (when hitting preview) and then a GET request of the main page. If the redirect is done by the web server without the intervention of MediaWiki, the POST request won't appear on the logs. Ciencia Al Poder (talk) 09:29, 16 April 2013 (UTC)
NOT search certain pages?
Can I set my wiki search to not include certain pages. There are pages we want to keep for achieve purposes, but not longer have "current" info and clog up my search. Can I exclude those pages? 70.36.233.88 (talk) 16:50, 15 April 2013 (UTC)
- Try putting the __NOINDEX__ page. It works for external search engines, but I'm not sure if it works for the internal one.
- Note that it's restricted to $wgExemptFromUserRobotsControl, so you probably want to be sure to move those pages to a non-content namespace for it to work. Ciencia Al Poder (talk) 09:35, 16 April 2013 (UTC)
A better msgnw?
Is there any better transclusion magic words like msgnw but include things in <!-- and--> but not the things in and <noinclude></noinclude> (just like when we create a page using <inputbox>)? Zhuyifei1999 (talk) 12:47, 16 April 2013 (UTC)
- I don't understand what mean. Could you give an example? ☠MarkAHershberger☢(talk)☣ 14:34, 27 April 2013 (UTC)
- subst: is going to be the closest you're going to get if I understand you correctly. msgnw really isn't at all like the behaviour of preload or editintro url parameters, which is what inputbox uses... Bawolff (talk) 04:07, 28 April 2013 (UTC)
- subst: replace itself with the template when it is saved, but is there anything that don't but gets the code? Zhuyifei1999 (talk) 08:18, 28 April 2013 (UTC)
- subst: is going to be the closest you're going to get if I understand you correctly. msgnw really isn't at all like the behaviour of preload or editintro url parameters, which is what inputbox uses... Bawolff (talk) 04:07, 28 April 2013 (UTC)
How can I create a userpage and populate it using an extention
Product Version
MediaWiki 1.18.2 PHP 5.3.10 (apache2handler) MySQL 5.5.23-enterprise-commercial-advanced-log
Issue
This extension Creates add and edits a user’s page the first time a user logs in. Our team has struggled for weeks without success to get this to work. Are new Article and Doedit the correct commands we should be using. This seemed to work fine in 1.17.
Code
<?php # Extension:NewUserRedirect if (!defined('MEDIAWIKI')) die('Not an entry point.'); define('NEWUSERREDIRECT_VERSION','2.0.1, 2008-12-08'); $wgHooks['AddNewAccount'][] = 'wfNewUserRedirect'; function wfNewUserRedirect($user) { $name = $user->getName(); $userpage = $user->getUserPage(); if (!$userpage->exists()) { $article = new Article($userpage); $article->doEdit("#REDIRECT [[[$newName]][Category: Category:AutoMagically Redirected]]",false); } return true; } ?>
134.223.230.201 (talk) 15:16, 16 April 2013 (UTC)
Database error after updating to 1.20.4
RESOLVED | |
Closing this 3 year old thread. Reason for this error most likely was not-recommended usage of beta versions or a downgrade of MediaWiki, which is not supported. Without an (older) unbroken backup, manual cleanup will be needed. |
The following discussion is closed. Please do not modify it. Subsequent comments should be made on the appropriate discussion page. No further edits should be made to this discussion.
- After updating to 1.20.4, I'm getting the following error whenever I attempt to save any changes to a page:
- A database query syntax error has occurred. This may indicate a bug in the software. The last attempted database query was:
- (SQL query hidden)
- from within function "RecentChange::save". Database returned error "1054: Unknown column 'rc_moved_to_ns' in 'field list' (localhost)".
- $wgReadOnly is not set in the LocalSettings.php page.
- There are no useful messages in my HTTP access_log or error_log files. Just this:
- 10.4.34.34 - - [16/Apr/2013:14:36:59 -0400] "POST /wiki/index.php?title=Performance_Testing_Home_Page&action=submit HTTP/1.1" 500 14388
- Turning on wgShowSQLErrors reveals the following:
- 64.214.53.2 (talk) 18:48, 16 April 2013 (UTC)
A database query syntax error has occurred. This may indicate a bug in the software. The last attempted database query was: INSERT INTO `recentchanges` (rc_timestamp,rc_cur_time,rc_namespace,rc_title,rc_type,rc_minor,rc_cur_id,rc_user,rc_user_text,rc_comment,rc_this_oldid,rc_last_oldid,rc_bot,rc_moved_to_ns,rc_moved_to_title,rc_ip,rc_patrolled,rc_new,rc_old_len,rc_new_len,rc_deleted,rc_logid,rc_log_type,rc_log_action,rc_params,rc_id) VALUES ('20130416184714','20130416184714','0','Main_Page','0','0','1','2','Wgillo','/* MediaWiki Help */ ','2917','2896','0','0','','10.4.34.34','1','0','4024','4060','0','0',NULL,'','',NULL) from within function "RecentChange::save". Database returned error "1054: Unknown column 'rc_moved_to_ns' in 'field list' (localhost)".
- In your database in the table "recentchanges" the column "rc_moved_to_ns" is missing. This causes the error.
- Try running update.php. 88.130.77.175 20:01, 16 April 2013 (UTC)
- I get the same error, running update.php did not help.
- Can i just add the column manually?
- 37.49.105.188 20:22, 20 April 2013 (UTC)
INSERT INTO `recentchanges` (rc_timestamp,rc_cur_time,rc_namespace,rc_title,rc_type,rc_minor,rc_cur_id,rc_user,rc_user_text,rc_comment,rc_this_oldid,rc_last_oldid,rc_bot,rc_moved_to_ns,rc_moved_to_title,rc_ip,rc_patrolled,rc_new,rc_old_len,rc_new_len,rc_deleted,rc_logid,rc_log_type,rc_log_action,rc_params,rc_id) VALUES ('20130420201706','20130420201706','0','Atomorbitale','0','0','55','0','37.49.105.188','','4827','2231','0','0','','37.49.105.188','0','0','2967','2968','0','0',NULL,'','',NULL) „1054: Unknown column 'rc_moved_to_ns' in 'field list' (localhost)“.
- You could add the column, but you have no guarantee that this would solve the base of this problem. It would be better to know, why it is missing. In some cases the installer does not only create empty columns, but also fills them with content (with content, which you do not know). Maybe some other columns are missing as well. So just creating this missing column is not enough. 88.130.109.119 21:51, 20 April 2013 (UTC)
- Ohh, I just found a change in MediaWiki, which might explain why the column is missing (and stays missing after running update.php): https://gerrit.wikimedia.org/r/#/c/17894/ It seems like it has been removed.
- Then the question is: Why does MediaWiki still try to use it?
- Check, that when you updated MediaWiki, you really deleted all old files and that you really added all new files.
- Update your extensions to the newest version for MediaWiki 1.20. Maybe you are still using old versions, which use this field?
- If there are some caches on the server, you might want to empty them as well. 88.130.109.119 21:55, 20 April 2013 (UTC)
- Well, the change you found seems to be, if im not mistaken, for the upcoming mediawiki 1.21 , so perhaps it could
- be possible that these columns are still needed for 1.20?
- Nevertheless, i will check my extensions for any outdated versions and report back, as a temporary fix i created these
- two columns to get my wiki up again... 37.49.105.188 22:41, 20 April 2013 (UTC)
- Oh, you are right. The column is still present in the tables.sql file in MediaWiki 1.20. Sorry.
- Maybe you can restore the old contents from that column. If you have a backup of your wiki, where the column is still there, you could copy the contents into that column again. Or, if you have not done too many changes, you could replace your DB with a backup, in which the column is still there. However, as I understand the note in tables.sql, this column has not been used in newer releases anyway.
- But I would make sure, that all other columns are there as needed. So what I would check now is, if any other columns are missing in your DB. 88.130.109.119 23:12, 20 April 2013 (UTC)
- I solved it by adding these two columns as shown below:
ALTER TABLE `your_database_name`.`wiki_recentchanges` ADD COLUMN `rc_moved_to_ns` TINYINT(3) UNSIGNED NOT NULL DEFAULT '0' AFTER `rc_type` , ADD COLUMN `rc_moved_to_title` VARBINARY(255) NOT NULL DEFAULT '' AFTER `rc_moved_to_ns` ;
- So my problem was that I first upgraded to 1.21, from 1.19, and then had to downgrade to 1.20. 188.116.36.216 06:07, 20 June 2013 (UTC)
- You request has error.
- It needs to:
- ALTER TABLE `your_database_name`.`wiki_recentchanges` ADD COLUMN `rc_moved_to_ns` TINYINT(3) UNSIGNED NOT NULL DEFAULT '0' AFTER `rc_type` , ADD COLUMN `rc_moved_to_title` VARBINARY(255) NOT NULL AFTER `rc_moved_to_ns`;
- DEFAULT expect value 213.152.136.229 11:15, 2 December 2013 (UTC)
- You could add the column, but you have no guarantee that this would solve the base of this problem. It would be better to know, why it is missing. In some cases the installer does not only create empty columns, but also fills them with content (with content, which you do not know). Maybe some other columns are missing as well. So just creating this missing column is not enough. 88.130.109.119 21:51, 20 April 2013 (UTC)
- just run this command
- alter table recentchanges add column rc_cur_time timestamp default '0000-00-00 00:00:00'; 202.89.104.21 (talk) 11:14, 29 April 2016 (UTC)
- Adding the rc_cur_time column will not fix the "Unknown column 'rc_moved_to_ns' in 'field list'" error.
- I think it got clear that if the update.php script cannot update the database, you either have to mnually fix any missing columns while still having the problem that the updater would actually fill some of them maybe and you then still have to figure out what exactly and how you have to put into these columns. This manual approach is climpsy, errorprone and not recommended at all.
- The way better solution is to take the backup from directly before the upgrade and to run the update script again. However, if there e.g. has been a failed update attempt in the past, then it is possible that the updater cannot fix the broken database anymore. In that case, the installation most likely either used a beta version at some point in time or a downgrade has been done. Both of this is _not_ recommended or is just not supported, especially not for a production website. Jörgi123 (talk) 15:09, 29 April 2016 (UTC)
where and how do you download MassEditRegex?
I visited the page Extension:MassEditRegex but the "Download" just links to an article about what a download. Where is the MassEditRegex so I can download it? I need to update 40 wiki pages simultaneously and MassEditRegex looks like it might be a solution.
thanks 76.203.239.150 (talk) 19:56, 16 April 2013 (UTC)
- You should download each file from the links provided next to the extension link, in the checkout-url. Ciencia Al Poder (talk) 09:15, 17 April 2013 (UTC)
[RESOLVED] Broken Thumbnails in Mediawiki 1.20
Edit: Future readers, if this happens, check for this in your LocalSettings.php:
$wgThumbnailScriptPath = "{$wgScriptPath}/thumb.php";
Fixed it for me.
Okay, I've been trying to fix this for the past hour. If I try to upload a large image, it comes out as a broken thumbnail. Click it and the image is fine. How do I fix this??
http://zelda-sanctuary.net/wiki/File:Link_SS_5_test.png
I use a Linode Linux Server. ZS-Izagar (talk) 02:42, 17 April 2013 (UTC)
- I've manually triggered the generation of that thumbnail through the thumb.php script: , and it now seems to work.
- Does it happen with large images only? Maybe the script that generates the thumbnail failed somehow when generating this one on upload. This may happen if the server was under heavy load and the command that generates the thumbnail was taking too long (or too many memory) to generate it and it was killed. Ciencia Al Poder (talk) 09:28, 17 April 2013 (UTC)
- Only large images, yes. But then even the smaller-like ones have issues. As seen here:
- http://zelda-sanctuary.net/wiki/File:Screenshot_ALTTP3DS_5.jpg
- I don't know why it would have an issue, even with the smaller pictures... :( ZS-Izagar (talk) 15:49, 17 April 2013 (UTC)
- OMG! I fixed it.
$wgThumbnailScriptPath = "{$wgScriptPath}/thumb.php";
Was missing from LocalSettings.php for my server. Ugh! ZS-Izagar (talk) 16:05, 17 April 2013 (UTC)
View Excel/Word documents in browser
- Hi there,
- I would like to know, if it's possible view documents uploaded to wiki directly on browser, like pdf files do?
- If I make a reference to a pdf file, the file opens in the browser, but with excel files, the browser ask me if I want to download it.
- Could anyone help me?
- Thanks.
- Cristiano. 201.55.240.4 (talk) 15:24, 17 April 2013 (UTC)
- That depends on your browser: To open a certain file type in your browser, you need a plugin for the browser, which allows you to open these files. So to open Excel and doc files, you need a plugin, which can open these files. I guess there might be one coming with Microsoft Office.
- Note that PDF files are a special case: Normally you would need a plugin there as well. However, if you are using the newest version of Firefox, then you can always open PDF files in the browser (also without any special plugin), because Mozilla integrated a PDF viewer in Firefox. 88.130.77.175 15:48, 17 April 2013 (UTC)
MediaWiki Configuration Issue Driving me Insane. Please Help.
First the System Configuration; Ubuntu Server 12, Apache server 2.2.22, MediaWiki 1.20.4, PHP 5.4.6, MySQL 5.5.29
Please Note: This server is a personal server, Not on the internet and is running on a local network behind a firewall.
LocalSetting.php setting: the wiki root is /var/www/wikibooks.
ArticlePath = /wikibooks/index.php/$1 set as $wgArticlePath = "$wgScript/$1"; ScriptPath = /wikibooks set as $wgScriptPath = "/wikibooks"; Index.php, api.php and load.php all point to /wikibooks/{name}.php
Extensions: All the same extensions as en.wikibooks.org are loaded ( except spam and user admin extensions - not really necessary) and show as loaded in Special:Version.
MY PROBLEM: I'm sure this is just configuration problems but I am at a loss to determine the answer. Here is what happens: when you load wikibooks you get the main page but ti reports that there are only "64 books"(brokenlink) in "0 pages"(active link). Click on the "0 pages" and ALL the pages are there. On the Main Page the Subject headings like Science and Computing are dead links. There does not seem to be any Subject definitions. The best example of how the system seems to be broken is by looking at certain pages. If I go to the "Latin" page under the "Featured Books", what I see is a perfectly good Latin page. But on that page are all the linked latin pages for lessons. Most (not all) of these pages are dead links. HOWEVER, if I manually type in the correct path to the lesson page it IS there an shows up just fine. Here are the two URLs. System Generated URL: wikibooks/index.php?title=/Lesson_1&action=edit&redlink=1. Manually generated URL: wikibooks/index.php/Latin/Lesson_1
This problem is extensive throughout most categories and pages. Somehow somepage have the correct link and others do not. How can I fix this configuration issue? It seems to be something to do with the data inthe database but I am guess.
Thanks for any and all help. 71.178.243.31 (talk) 18:02, 17 April 2013 (UTC)
- It was a little hard to catch. But it looks like you're saying <code>[[/Lesson 1]]</code>. Is linking to "/Lesson 1" instead of "Latin/Lesson 1".
- You just need to setup
$wgNamespacesWithSubpages
. Daniel Friesen (Dantman) (talk) 18:14, 17 April 2013 (UTC)- Thanks. That was it. Don't think I would have caught that. So thanks. 71.178.243.31 01:42, 18 April 2013 (UTC)
- Even if it has subpages, you should be able to link to it with [[:/Lesson 1]] Ciencia Al Poder (talk) 09:25, 18 April 2013 (UTC)
- Thanks. That was it. Don't think I would have caught that. So thanks. 71.178.243.31 01:42, 18 April 2013 (UTC)
main page have a category?
Hello Mediawiki Support,
Does the default main page have a category? I would think no. But how do I link all subcategory pages back to the main page if it doesn't have a category?
thanks for the help,
Jeff Jensen 131.216.19.160 (talk) 20:21, 17 April 2013 (UTC)
- The default main page doesn't have categories AFAICT, but you can edit the main page and add the categories you want. You can also read Help:Categories Ciencia Al Poder (talk) 09:23, 18 April 2013 (UTC)
- Hello Ciencia,
- thank you for the reply. In essence, I'm trying to make the main page as the main category page http://www.mediawiki.org/wiki/Help:Categories#Creating_a_category_page similar to a table of contents. This special page http://www.mediawiki.org/wiki/Special:AllPages/Category: is like a master table of contents page that appears to be auto generated. So, how do I make this the main page?
- thanks for your help,
- Jeff Jensen Jefferyjjensen (talk) 04:04, 23 April 2013 (UTC)
- Well, if you want your main page to actually be a category page, you can create that category page (for example,
Category:Main
) and edit MediaWiki:Mainpage on your wiki, puttingCategory:Main
there. - But usually the main page is a normal page where you manually link the most important pages or categories of the wiki, or even use extensions to add content dynamically like Extension:CategoryTree or Extension:DynamicPageList. Ciencia Al Poder (talk) 09:37, 23 April 2013 (UTC)
- Well, if you want your main page to actually be a category page, you can create that category page (for example,
How do I start the Wiki?
I would like to start a wiki called Monster Hunter Fanon, with a url of http://monsterhunterfanon.org or the like. I have downloaded MediaWiki itself, Wampserver 2.2, PHP 5.4.3, MySQL 5.5.24 and I'm using Widows 8. How do I set up the Wiki? {{SUBST:Cead/Signature}} 23:47, 17 April 2013 (UTC)
- Actually, I might use monsterhunterfans.org. Ceadeus Slayer (talk) 23:49, 17 April 2013 (UTC)
- See Manual:Installation guide Ciencia Al Poder (talk) 09:21, 18 April 2013 (UTC)
- This doesn't really help me much... :/ oh well Ceadeus Slayer (talk) 11:17, 18 April 2013 (UTC)
- See Manual:Installation guide Ciencia Al Poder (talk) 09:21, 18 April 2013 (UTC)
- Are you planning to run this wiki off of your local computer? That is possible, but probably not advisable if you want it to be accessible to the Internet without disruption. I would suggest getting a web host or a friend who has a server. (If none of your friends has a server, you should be friends with me -- I have a server.
) ☠MarkAHershberger☢(talk)☣ 18:19, 18 April 2013 (UTC)
- Yes, I'm fully intending on running it from my computer. If I could use yours, that'd be beyond awesome. :) Ceadeus Slayer (talk) 22:52, 18 April 2013 (UTC)
- So, how would I go about running the site from my computer? Like I've said, I have WampServer, Apache, PHP, and MySQL downloaded and uncompressed. So what are the steps? Ceadeus Slayer (talk) 13:09, 30 April 2013 (UTC)
- How does the previously mentioned Manual:Installation guide not help you? What do you need to know that isn't there? ☠MarkAHershberger☢(talk)☣ 13:52, 30 April 2013 (UTC)
- Sorry to say it is a terrible guide to anyone who is not already familiar with mediawiki and if you are familiar with mediawiki you would not need a guide! Ron Barker (talk) 13:13, 2 May 2013 (UTC)
- ...He's sort of right. There needs to be a guide written for those who are very new at this. {{SUBST:Cead/Signature}} 14:41, 2 May 2013 (UTC)
- There is not a bad video at http://www.youtube.com/watch?v=FtDXcnvbZMU Ron Barker (talk) 15:31, 2 May 2013 (UTC)
- Not sure about this but there is no reference in the video to creating a database first? Ron Barker (talk) 15:32, 2 May 2013 (UTC)
- MediaWiki can create the database for you if you give the MediaWiki the administrative password during installation. ☠MarkAHershberger☢(talk)☣ 15:42, 2 May 2013 (UTC)
- Thanks Mark
- I stumbled my way through installing 1.15.4 and dare not mess about with the software. Most of the language used on this site is double Dutch to me.
- Kind regards
- Ron Barker Ron Barker (talk) 18:07, 2 May 2013 (UTC)
- I won't claim that MediaWiki is the most approachable software. I'm engaged in a conversation now on mediawiki-l with a Mac user who is trying to take over the maintenance of his wiki. It is quite telling. ☠MarkAHershberger☢(talk)☣ 18:10, 2 May 2013 (UTC)
- Password for the database program? Ceadeus Slayer 19:01, 3 May 2013 (UTC)
- If you haven't created the database and user for the wiki yet, the first database username and password that prompts you the web installer is for a user with rights to create a database and a user for the wiki database, normally the root user. You should know that account name or password at this point, or else you should contact your system administrator.
- Once provided, next step allows you to specify a new username and password that will be used for connecting to the database from MediaWiki, which needs only privileges to work with the new database. You can choose the username and password you want. Note that this won't be a user of the wiki, just the credentials used by the MediaWiki software to connect to the database server. Ciencia Al Poder (talk) 10:57, 4 May 2013 (UTC)
- OK, on my W8 machine (bleh) the only MySQL program I can work with is MySQL Workshop or somthing. Is this where I do the database stuff?
- If it is, how do I create a database? {{SUBST:Cead/Signature}} 18:58, 6 May 2013 (UTC)
- I don't know of anything called "mysql workshop". It should be mysql server. For creating a database, read google:how+to+create+mysql+database Ciencia Al Poder (talk) 09:27, 7 May 2013 (UTC)
- What are you trying to do? Are you trying to set up mediawiki on your pc? Ron Barker (talk) 11:46, 7 May 2013 (UTC)
- If you read the thread, it looks like that is exactly what he wants to do. ☠MarkAHershberger☢(talk)☣ 02:27, 8 May 2013 (UTC)
- I was not sure if he was using mac or if it made any difference if he was. Anyhow SiteGround provides a helpful tutorial re setting-up mediawiki. It is not designed for setting-up on a pc but it helps with the settings. SiteGround also provides other MdediaWiki tutorials.
- There is also a step-by-step guide on the internet, if you can dodge the advertisements. It is an old guide and uses MediaWiki with version 1.11.1 but you can use the latest version so long as you are carful with the settings. JLBN Install & Setup Wiki Guide. The owners of the site JL and BN will also help with any problems you may have setting up the wiki.
- PS: You can get the latest WAMP Server from this Website or direct from HERE Ron Barker (talk) 07:20, 8 May 2013 (UTC)
- I have the latest version of WampServer. -_-
- I also have downloaded everything seperately as well.
- When I go to attempt to run index.php on my browser (Google Chrome) it says my server isn't configured to run PHP. wut {{SUBST:Cead/Signature}} 18:59, 8 May 2013 (UTC)
- IIRC, you can install WampServer without activating PHP. Are you sure it is turned on? ☠MarkAHershberger☢(talk)☣ 20:12, 8 May 2013 (UTC)
- err fairly sure {{SUBST:Cead/Signature}} 19:05, 9 May 2013 (UTC)
- WampServer has a phpinfo page at (I think) http://localhost/phpinfo.php -- what happens if you go to that page. ☠MarkAHershberger☢(talk)☣ 02:00, 10 May 2013 (UTC)
- err fairly sure {{SUBST:Cead/Signature}} 19:05, 9 May 2013 (UTC)
- IIRC, you can install WampServer without activating PHP. Are you sure it is turned on? ☠MarkAHershberger☢(talk)☣ 20:12, 8 May 2013 (UTC)
- If you read the thread, it looks like that is exactly what he wants to do. ☠MarkAHershberger☢(talk)☣ 02:27, 8 May 2013 (UTC)
- MediaWiki can create the database for you if you give the MediaWiki the administrative password during installation. ☠MarkAHershberger☢(talk)☣ 15:42, 2 May 2013 (UTC)
- ...He's sort of right. There needs to be a guide written for those who are very new at this. {{SUBST:Cead/Signature}} 14:41, 2 May 2013 (UTC)
- Sorry to say it is a terrible guide to anyone who is not already familiar with mediawiki and if you are familiar with mediawiki you would not need a guide! Ron Barker (talk) 13:13, 2 May 2013 (UTC)
- Going back to the original question. Running MediaWiki on your own computer is relatively easy to do following our wonderful installation guide. It's worth doing sometimes for debugging / experimenting, but running a website with a domain name... these days most people don't do that from their own computer. Using a home internet connection? You may find you get poor upload bandwidth. You may find your I.P. address changes a lot, so configuring your domain name to point at your computer may be difficult. You should try to get that stuff working before you even think about installing mediawiki. Try to get to the stage where you can see a file index.html containing "HELLO WORLD" text at your domain monsterhunterfans.org Harry Wood (talk) 11:28, 9 May 2013 (UTC)
- You mean index.php ? {{SUBST:Cead/Signature}} 18:53, 10 May 2013 (UTC)
- You may be able to access phpinfo by left clicking on the WAMP icon and then clicking on local host. Under tools click on phpinfo. You can also access php error log via the WAMP icon Ron Barker (talk) 06:26, 11 May 2013 (UTC)
- You mean index.php ? {{SUBST:Cead/Signature}} 18:53, 10 May 2013 (UTC)
- How does the previously mentioned Manual:Installation guide not help you? What do you need to know that isn't there? ☠MarkAHershberger☢(talk)☣ 13:52, 30 April 2013 (UTC)
- So, how would I go about running the site from my computer? Like I've said, I have WampServer, Apache, PHP, and MySQL downloaded and uncompressed. So what are the steps? Ceadeus Slayer (talk) 13:09, 30 April 2013 (UTC)
- Yes, I'm fully intending on running it from my computer. If I could use yours, that'd be beyond awesome. :) Ceadeus Slayer (talk) 22:52, 18 April 2013 (UTC)
22:52, 18 April 2013 (UTC)
MediaWiki 1.20 internal error
I need some help here...
I contacted our web host and they said that the htaccess file needs to be modified, but they didn't have information on how it had to be modified.
I don't know what to change in it to get this to work...any ideas? I've looked all over and have not been able to find an answer.
http://wiki.smartenit.com/ 98.189.165.213 (talk) 17:58, 18 April 2013 (UTC)
- It looks like you are hosting on GoDaddy, right? This page on their site talks about selecting a different version of php. ☠MarkAHershberger☢(talk)☣ 18:24, 18 April 2013 (UTC)
- Sorry...I tried to edit my post with the note that I had already upgraded php to 5.3 and asked them why it still wasn't working.
- That's when they said it was an htaccess issue. 98.189.165.213 18:45, 18 April 2013 (UTC)
- If they obviously exactly know the solution, why do they not tell you?
- Ask them again, what exactly you have to change in .htaccess to get PHP 5.3 actually being used for your domain. (What that actually is depends on the hoster; you might also try Google: There are different possibilities depending on how they set up PHP.)
- Seems like the GoDaddy support is not a great help. :-/ 88.130.72.84 18:51, 18 April 2013 (UTC)
- What if you remove your .htaccess file temporarily and then try to change the php version again? ☠MarkAHershberger☢(talk)☣ 18:51, 18 April 2013 (UTC)
- well, that htaccess file...I notice when I remove it, it makes the site go down completely.
- I'll try asking them again. Yeah, I would think this is something they could help with...but this is beyond my expertise. 98.189.165.213 18:54, 18 April 2013 (UTC)
- Assuming there aren't passwords in your .htaccess file, what does it contain? ☠MarkAHershberger☢(talk)☣ 18:55, 18 April 2013 (UTC)
- looks like it just has a redirect for one page and a few addhandlers
<head>
<meta http-equiv="Content-Type" content="text/html; charset=windows-1252">
</head>
addhandler x-httpd-php5-cgi .php
addhandler x-httpd-php5-cgi .php5
addhandler x-httpd-php5-cgi .php4
rewriteengine on
rewritecond %left out actual code
rewriterule ^left out actual code
rewritecond %left out actual code
rewritecond %left out actual code
rewriterule ^left out actual code
- I left out the actual code on those rewrites, as I'm not sure if there was any password stuff. 98.189.165.213 23:03, 18 April 2013 (UTC)
- According to this docu you will have to add lines like
AddHandler x-httpd-php5-3 .php
AddHandler x-httpd-php5-3 .php5
AddHandler x-httpd-php5-3 .php4
- instead of the three lines, which you have there currently.
- The head tag should not be part of the actual file. I guess it also is not, as it should cause an Server Error otherwise.
- Another idea would be to remove all lines starting with "AddHandler" and then to try again. Maybe you then get the PHP version, which you have set in the control panel? 88.130.72.84 00:26, 19 April 2013 (UTC)
- Ahhh...that must be why when after I open the file and don't make any changes, but try to upload it I get issues. Somehow my editor is adding that head tag for some reason.
- That's helpful to know!
- Well...I tried deleting all the addhandlers and that gave me a bunch of errors. Then I replaced them with the one's you have up there and now I get just one fatal error
- http://wiki.smartenit.com/
- Might be getting closer..? Still waiting for godaddy to respond to my inquiry. 98.189.165.213 00:54, 19 April 2013 (UTC)
- Congratulations, your original problem is solved! :-)
- You see another issue right now, but the PHP version now obviously is no longer a problem.
- Did you do an update to MediaWiki version 1.20? Or have you just moved to this host?
- I am asking, because the error message tells you that in the database, which you provided in LocalSettings.php, the table "mw_page" is not present. This should never happen, also not when you did an update.
- Make sure you are accessing the right database and that this database contains all the contents of a complete MediaWiki database (meaning: all tables, e.g. also the table "mw_page"). There should be around 80 tables in the database, see DB. 88.130.72.84 11:52, 19 April 2013 (UTC)
- Assuming there aren't passwords in your .htaccess file, what does it contain? ☠MarkAHershberger☢(talk)☣ 18:55, 18 April 2013 (UTC)
chmod permissions
Just wondering, is every file in MediaWiki supposed to have permissions set to 644 and is every directory supposed to be set to 755? After an upgrade to 1.20.4, it seems that all the permissions were set to 664 for some reason, so I had to mass change them back to 644. I'm wondering if that's how it should be (every file at 644, every folder at 755), or are there folders/files that should be set to something different? Thanks!
(Sidenote) Was it the MediaWiki installer that chmodded the files, or was it something to do with my host? Impy imps (talk) 07:29, 19 April 2013 (UTC)
- For LocalSettings.php, 640 would be better (with the right setup that is enough).
- I have never heard of the installer changing directory and file permissions. I would think that was someone else, maybe your hoster. 88.130.72.84 12:08, 19 April 2013 (UTC)
Uploaded documents not referenced correctly with dumpHTML
Hello,
We are referencing uploaded files (pdf documents) in our wiki using the syntax: Link: Media:mydocument.pdf
The document is correctly displayed in the browser with the appropriate url, for example: http://x.x.x.x/mediawiki/images/0/07/mydocument.pdf
In mediawiki this document is stored in: /usr/local/www/mediawiki/images/archive/0/07/mydocument.pdf
When dumping out the wiki using the command: /usr/local/bin/php /usr/local/www/mediawiki/extensions/DumpHTML/dumpHTML.php -d /home/backup/wikidump -k monobook --image-snapshot --force-copy
you'll get an error, because the document reference is wrong (it's referenced as C:\wikidump\images\0\07\mydocument.pdf) The correct reference is: C:\wikidump\images\images\0\2F\0\0\07\mydocument.pdf
The good thing in mediawiki is that you can register a new version of the uploaded file without having to change the link (Media:mydocument.pdf)
However, dumpHTML does not handle this feature. Is there any workaround for dumpHTML ?
Any help would be appreciated
Mediawiki: 1.19.3 Latest DumpHTML 85.3.90.236 (talk) 07:54, 19 April 2013 (UTC)
- You should File a bug report. ☠MarkAHershberger☢(talk)☣ 20:52, 24 April 2013 (UTC)
Logged out without noticing it or forgot to login
It happened to me and I'm sure I'm not the only one whom it happened to - after submitting an edit, you noticed you weren't logged in. It's annoying. It's of course caused by the ability to edit without having to be registered to the wiki - as I see it, there shouldn't be such a feature, because it makes contacting the user harder and for admins it's harder to tackle with trolling, but if MediaWiki developers insist on allowing it, here's a suggestion for a feature: when submitting an edit without being logged in, a login form will pop and asks you to login or to continue as an anonymous user. Galzigler (talk) 11:14, 19 April 2013 (UTC)
- There already are options to disable anonymous editing. See here. This allows you to force your users to log in prior to editing. 88.130.72.84 12:11, 19 April 2013 (UTC)
- I'm talking about Wikimedia foundation projects.
- BTW, It's not about avoiding IP edits, it's about avoiding from registered users from editing as IP users without noticing it. Galzigler (talk) 14:15, 19 April 2013 (UTC)
- Oh, I see.
- But an additional pop up window would also be annoying. How do you want to know, if this user is a user, who has a user name and forgot to log in, or if he in fact wants to edit as an IP? Mainly that would be annoying for all those thousands IP users, who want to edit as an IP. It is by intention that you are not forced to have an account.
- The solution, which some Wikipedias use (e.g. the German one), if you are not logged in, is: In top of the editing area they display a hugh note. It is really eye-catching. The user just has to read it and he knows that currently he is not logged in. 88.130.72.84 15:04, 19 April 2013 (UTC)
- Unfortunately, that not always will help since there is almost no support in AJAX in MediaWiki. What if for some reason my cookies were deleted or expired? It can be just a form (like the preview, which in the past users were forced to use before submitting the edit, along with a CAPTCHA), or a modal window, which is much less annoying. Galzigler (talk) 23:43, 19 April 2013 (UTC)
000webhost
Hi could some give some instruction on how this tall mediawiki using 000webhost please I have a domain but would like some help on installing it using 000webhost 95.110.184.39 (talk) 19:28, 19 April 2013 (UTC)
- A tutorial on how to install MediaWiki is here. 88.130.91.123 20:39, 19 April 2013 (UTC)
- But it doesent tell you how too install it through 000webhost because I got my free domain hosting thought them and got a free domain through dot tk 176.249.142.7 10:19, 20 April 2013 (UTC)
- I know how to install it on. My computer I want to installation my website so everyone can see it 90.217.24.187 13:39, 20 April 2013 (UTC)
- But it doesent tell you how too install it through 000webhost because I got my free domain hosting thought them and got a free domain through dot tk 176.249.142.7 10:19, 20 April 2013 (UTC)
wiki photographic information on South African Artist Helge Janssen
The following discussion is closed. Please do not modify it. Subsequent comments should be made on the appropriate discussion page. No further edits should be made to this discussion.
- I cannot find the correct link to which I need to LODGE THE FOLLOWING COMPLAINT.
- I am not too sure how you acquired these images, but the top image
- IS NOT HELGE JANSSEN
- http://www.picturesonline.org/helge-janssen
- PLUS
- the other images that you do display are distorted, random and, while displaying some of the FASHION WORK or VIDEO WORK IMAGES
- of artist Helge Janssen, they are unflattering and constitute a defamation of character.
- I trust that you will REMOVE THIS LINK ENTIRELY.
- king regards
- helge janssen (the REAL helge janssen) 4helge4 (talk) 06:41, 20 April 2013 (UTC)
- Hi Helge,
- you are talking about two different things:
- commons:File:Helge_Janssen.jpg is the image on Wikipedia, which you are talking about.
- The image description says that it would show the German Author Helge Janßen (I guess that is you then?). The picture is also used in the German article on this Helge Janßen. Is that wrong? What is the mistake with that? Or is that correct?
- Something else is that the page http://www.picturesonline.org uses this image. It seems like this page does not deal with the same Helge Janßen, but with a namesake. This page is not part of Wikipedia; it belongs someone else. To fix the usage there, you should contact the owner of that site and tell him about his mistake. However, if I understood you correctly, then the owner of this site won't be interested in showing your photo on that page, as you are not the Helge Janssen he obviously thought you would be. 88.130.91.123 14:08, 20 April 2013 (UTC)
- thank you.
- the situation has been cleared up.
- there are no images of ME any longer in this link.
- kind regards....
- (some other) helge janssen 105.208.95.241 (talk) 16:47, 14 January 2016 (UTC)
[RESOLVED] installing editing toolbar
hi could I have some help how to get wikieditor to work I followed all the instruction but it isent working could I please get some help 86.139.246.76 (talk) 21:34, 20 April 2013 (UTC)
- You need to tell us what you did and what happened. Just saying "It didn't work" won't give us any information so we can help. ☠MarkAHershberger☢(talk)☣ 20:49, 24 April 2013 (UTC)
- well my toolbar isent working so I decided to install wikieditor and it still hasent one anything 86.168.53.10 20:52, 24 April 2013 (UTC)
- Could you point us to your wiki? Maybe if we saw it we could help? ☠MarkAHershberger☢(talk)☣ 20:54, 24 April 2013 (UTC)
- my website is located at http://random-wikisaur.tk/index.php/Main_Page 86.168.53.10 21:01, 24 April 2013 (UTC)
- Looks like you found help here. ☠MarkAHershberger☢(talk)☣ 21:16, 24 April 2013 (UTC)
- my website is located at http://random-wikisaur.tk/index.php/Main_Page 86.168.53.10 21:01, 24 April 2013 (UTC)
- Could you point us to your wiki? Maybe if we saw it we could help? ☠MarkAHershberger☢(talk)☣ 20:54, 24 April 2013 (UTC)
- well my toolbar isent working so I decided to install wikieditor and it still hasent one anything 86.168.53.10 20:52, 24 April 2013 (UTC)
Strange php errors
Hello,
Im getting a bunch of these strange errors:
Strict Standards: Non-static method PEAR::isError() should not be called statically, assuming $this from incompatible context in xxx/Mail/smtp.php on line x
and
Undefined offset: 3 in xxx/includes/ImageGallery.php on line 267
This is a clean install, no modifications, imagemagick is installed and works, PEAR is installed and works (emails leave my server just fine).
Does anyone know how to get rid of them?
Thanks!
Specs: 5.4.6-1ubuntu1.2 (fpm-fcgi) - MW 1.20.4 - 10.0.1-MariaDB-mariadb1~quantal-log - Nginx 1.2.1-2.2 - pear.php.net/PEAR-1.9.4 - imagemagick 8:6.7.7.10-2ubuntu4 89.12.94.191 (talk) 23:22, 20 April 2013 (UTC)
- The "problem" is that you are using PHP 5.4 with a high level for error reporting. PHP offers a way to disable strict errors. Set it accordingly and these "errors" won't show up anymore. This will supress the errors (but not solve them).
- To get them solved, you should open two issues in the Bugzilla issue tracker, one issue per error message. 88.130.109.119 23:40, 20 April 2013 (UTC)
Revision::loadText Database returned error 1146...
Hi, I have been trying to fix a wiki I haven't been using for some years/months that gave this error. I launched an update script for the latest version (which went well), but I still get the same error.
- A database query syntax error has occurred. This may indicate a bug in the software. The last attempted database query was:
- (SQL query hidden)
- from within function "Revision::loadText". Database returned error "1146: Table 'Sql314882_2.text' doesn't exist (62.149.150.109)".
The page is http://www.goregrind.com/wiki/index.php?title=Main_Page
I don't have a backup of the database since the wiki has been offline for long, however the DB besides some spam for the latest months contains lots of data that is impossible to recover today, it's a very specific wiki. 2.234.17.115 (talk) 00:25, 21 April 2013 (UTC)
- In your database "Sql314882_2" the table "text" is missing. This table -would it be there- would contain the text of all pages in the wiki. Without this table (and its content!) your wiki will not work. You somehow need to get this table back in place again. 88.130.109.119 00:52, 21 April 2013 (UTC)
Extension:EzMwLucene help
when the instruction says move the server file to the location of your choice and then it shows an example next to it do I put it in extension because my website is hosting mediawiki 86.139.246.76 (talk) 10:28, 21 April 2013 (UTC)
- Ok... 88.130.109.119 10:31, 21 April 2013 (UTC)
- hi what do you mean ok 86.139.246.76 10:58, 21 April 2013 (UTC)
- That is ok. 88.130.116.142 19:49, 21 April 2013 (UTC)
- hi what do you mean ok 86.139.246.76 10:58, 21 April 2013 (UTC)
Extension:GlobalMessages
Extension:GlobalMessages download link http://unixpod.com/charlie/mediawiki/extensions/GlobalMessages doesent work anymore please could someone get the download file and upload it to sourceforge please and rewrite the instruction on how to install it please and replace the donwload link 86.139.246.76 (talk) 10:58, 21 April 2013 (UTC)
- User:Cmelbye has created the extension. Try asking him; if anyone knows, then it's him. :-) 88.130.116.142 19:57, 21 April 2013 (UTC)
Edit Userinfo via API
I know that I can query userinfo over the api. But I don't want to just read them out but to set them too. It seems that the api does not privide this possibility. Is there an existing api extension which makes this possible? Or any other way I can do this without direct access to the database?
Thanks for your answers in advance, Tekin 84.132.174.200 (talk) 12:10, 21 April 2013 (UTC)
- You can set your own user preferences through API:Options. You can't set other user's options. Ciencia Al Poder (talk) 09:31, 22 April 2013 (UTC)
article category
how would I put a code so that all new article be created would go in to a category without me going to the page and adding it 86.139.246.76 (talk) 17:55, 21 April 2013 (UTC)
- You can do that with a hook. Take the hook, which is executed when someone tries to create a page. Without having tried it, I would say that should work with the hook ArticleInsertComplete. In the hook function modify the text of the page by adding your category to it. 88.130.116.142 19:53, 21 April 2013 (UTC)
How can I modify the page tabs
Hi
I have my 1.19 Mediawiki that has page tabs look like this: http://s24.postimg.org/ep57u3uxx/screenshot_148.jpg
I want to add 'Watch' link as one of the tabs which should look like this: http://s8.postimg.org/jnn847cd1/screenshot_149.jpg
I googled the whole morning and couldn't figure out how. It seems the latter should be the default look of Mediawiki however I just couldn't get it. Any advice would be much appreciated. Jiaoziren (talk) 04:13, 22 April 2013 (UTC)
- This is part of the UsabilityInitiative extension. ☠MarkAHershberger☢(talk)☣ 13:58, 25 April 2013 (UTC)
[RESOLVED] MWException when change email
In Preferences: When I try to 'Set an e-mail address', an error message "[141c83d1] 2013-04-22 07:34:40: Fatal exception of type MWException" will pop up after I click 'change Email' button.
Product Version MediaWiki 1.20.4 PHP 5.4.14 (apache2handler) MySQL 5.1.43-community Harry jiang (talk) 07:38, 22 April 2013 (UTC)
- You should enable debugging or check the error log and post a more detailed error message to help us investigate.
- See Manual:How to debug Ciencia Al Poder (talk) 09:35, 22 April 2013 (UTC)
- Thanks a lot.
- I found the issue is "PEAR mail package is not installed". I forgot to restart the server after I install the mail package for pear.
- It works now. Harry jiang (talk) 05:46, 24 April 2013 (UTC)
How to allow insertion of the internal images in MediaWiki?
Allow img tag to be used in wikitext. $wgAllowImageTag = true;
This variant works <IMG SRC = "http://picasa.google.com/images/thumb_edit.png">
Cuts the src attribute for images from my site. <IMG SRC = "http://mysite.com/img.jpg"> 37.235.129.111 (talk) 11:24, 22 April 2013 (UTC)
- in tinymce add
- relative_urls : false,
- remove_script_host: false, 37.235.129.111 08:54, 23 April 2013 (UTC)
[RESOLVED] Tabs and portals and main page
Hi how can I change the tabs names and how can I let the main page name hide and where the tab says page it says main how do I do that and how do I add the portal tab 176.249.16.97 (talk) 15:14, 22 April 2013 (UTC)
- Try it with punctuation marks. In my experience that improves the situation greatly! 88.130.74.51 17:27, 22 April 2013 (UTC)
- But how do I change the name on the tabs for example next to page it says discussion I want to change the name on the tab to talk and I would like page to say article please 176.254.140.79 18:43, 22 April 2013 (UTC)
- You just need to find out how to do this is not difficult you can rename the tabs you only have to know the language label used rename its content that can be done on the according page in your mediawiki installation meaning it is no problem at all unfortunately i do not know what name the according labels have you can find out there is a language which shows you the label names just change the language to that one and see the label name then change the text on the according page in your wiki and you will have the text changed
- Do you now see, what the real problem is here? 88.130.74.51 21:06, 22 April 2013 (UTC)
- Where can I find the file which has the name of the tabs where I can change them and add tabs 176.254.140.79 11:57, 24 April 2013 (UTC)
- But how do I change the name on the tabs for example next to page it says discussion I want to change the name on the tab to talk and I would like page to say article please 176.254.140.79 18:43, 22 April 2013 (UTC)
How do I create the 'Add topic' tab to a talk page?
RESOLVED | |
User resolved |
The following discussion is closed. Please do not modify it. Subsequent comments should be made on the appropriate discussion page. No further edits should be made to this discussion.
Some mediawiki pages have a tab at the top labelled 'Add topic'. An example is here, but there are many others.
I notice that this page (the MW support desk, where I'm submitting this) has a 'Start new discussion' label. Is that done the same way?
Ah, never mind. It appears on its own. Alexthepuffin (talk) 01:48, 23 April 2013 (UTC)
Having full numbering path in titles
Hello,
I have been looking into this for hours with no luck. How can I create a list with full numbering path? For example, now I have a list like this,
1. First 1. Third 2. Forth 2. Second
But I'd like to have it as follows,
1. First 1.1. Third 1.2. Fourth 2. Second
Thanks for your time,
Best, 82.150.248.29 (talk) 15:49, 22 April 2013 (UTC)
- I think you want to use css counters. According to caniuse.com, these are supported in IE8+ and FF19+. ☠MarkAHershberger☢(talk)☣ 00:02, 28 April 2013 (UTC)
Encryption of some Wiki-Pages
Hi,
i start my own wiki-server (media-wiki). And my problem is to encrypt some sites.
The idea is, that my daught should not see all.
regards Torsten 84.57.167.17 (talk) 19:55, 22 April 2013 (UTC)
- You probably want Manual:Preventing access instead.
- That, or manually use w:Pretty Good Privacy before posting the data you want to encrypt. Ciencia Al Poder (talk) 09:48, 23 April 2013 (UTC)
[RESOLVED] problem with toolbar
hi my tool bar for when eiting isent showing a page whn I edit a page theres a white sequre for when you edit but nother on top please coul I have some help I run 1.19.4 because my provider of my domain hasent updated to the newer version of php 86.139.246.76 (talk) 20:57, 22 April 2013 (UTC)
- Could you please elaborate? Ciencia Al Poder (talk) 09:50, 23 April 2013 (UTC)
- It won't show up on top of the write box were you write stuff there is nothing on top - there should be the old toolbar when you install or is tht included in 1.20.4 because I am running 1.19.4 176.254.140.79 16:00, 23 April 2013 (UTC)
- A missing toolbar is often caused by a JavaScript error on the page. Open the JavaScript or Error console of your browser, reload the page and see if any JavaScript error comes out. Appending &debug=true to the URL (for example,
title=Your_Page&action=edit&debug=true
) would improve the readability of the code so you can post the filename and line where the error happens. - If your wiki is publicly accessible it would help us if you post the link to it. Ciencia Al Poder (talk) 09:33, 24 April 2013 (UTC)
- Ok the links to my webiste is http://random-wikisaur.tk/index.php/Main_Page 176.254.140.79 11:53, 24 April 2013 (UTC)
- Found the issue. See this: . This is the url that loads JavaScript and CSS. Your hosting is injecting this:
<!-- Hosting24 Analytics Code --> <script type="text/javascript" src="http://stats.hosting24.com/count.php"></script> <!-- End Of Analytics Code -->
- Which produces a Syntax error, since it's supposed to be JavaScript code, not HTML. If you can't disable that you'll need to find another hosting company. Ciencia Al Poder (talk) 21:07, 24 April 2013 (UTC)
- ok so how would I remove it what file do I load to remove it I removed it from localsetting.php 86.168.53.10 21:11, 24 April 2013 (UTC)
- How would I fix it 86.168.53.10 06:32, 25 April 2013 (UTC)
- If there is no obvious way how to disable it for you, you need to ask your hosting company how to fix this. AKlapper (WMF) (talk) 08:32, 25 April 2013 (UTC)
- Ok 176.254.140.79 17:19, 25 April 2013 (UTC)
- If there is no obvious way how to disable it for you, you need to ask your hosting company how to fix this. AKlapper (WMF) (talk) 08:32, 25 April 2013 (UTC)
- How would I fix it 86.168.53.10 06:32, 25 April 2013 (UTC)
- ok so how would I remove it what file do I load to remove it I removed it from localsetting.php 86.168.53.10 21:11, 24 April 2013 (UTC)
- Ok the links to my webiste is http://random-wikisaur.tk/index.php/Main_Page 176.254.140.79 11:53, 24 April 2013 (UTC)
- A missing toolbar is often caused by a JavaScript error on the page. Open the JavaScript or Error console of your browser, reload the page and see if any JavaScript error comes out. Appending &debug=true to the URL (for example,
- It won't show up on top of the write box were you write stuff there is nothing on top - there should be the old toolbar when you install or is tht included in 1.20.4 because I am running 1.19.4 176.254.140.79 16:00, 23 April 2013 (UTC)
Fatal exception of type MWException after changed page title using php script
Hi all,
I have to change the title of a few pages under a category. All the changes are successful.
However, when I try to create a new page. it gives me a Fatal exception of type MWException:
The Title object did not provide an article ID. Perhaps the page doesn't exist?
Backtrace: #0 /var/www/mediawiki/includes/parser/ParserOutput.php(390): LinksUpdate->__construct(Object(Title), Object(ParserOutput), true) #1 /var/www/mediawiki/includes/WikiPage.php(1749): ParserOutput->getSecondaryDataUpdates(Object(Title)) #2 /var/www/mediawiki/includes/WikiPage.php(1617): WikiPage->doEditUpdates(Object(Revision), Object(User), Array) #3 [internal function]: WikiPage->doEdit('sadf', '', 97) #4 /var/www/mediawiki/includes/Article.php(1820): call_user_func_array(Array, Array) #5 /var/www/mediawiki/includes/EditPage.php(1451): Article->__call('doEdit', Array) #6 /var/www/mediawiki/includes/EditPage.php(1451): Article->doEdit('sadf', '', 97) #7 /var/www/mediawiki/includes/EditPage.php(986): EditPage->internalAttemptSave(Array, false) #8 /var/www/mediawiki/includes/EditPage.php(379): EditPage->attemptSave() #9 /var/www/mediawiki/includes/actions/EditAction.php(51): EditPage->edit() #10 /var/www/mediawiki/includes/actions/EditAction.php(71): EditAction->show() #11 /var/www/mediawiki/includes/Wiki.php(427): SubmitAction->show() #12 /var/www/mediawiki/includes/Wiki.php(304): MediaWiki->performAction(Object(Article)) #13 /var/www/mediawiki/includes/Wiki.php(536): MediaWiki->performRequest() #14 /var/www/mediawiki/includes/Wiki.php(446): MediaWiki->main() #15 /var/www/mediawiki/index.php(59): MediaWiki->run() #16 {main}
192.75.88.232 (talk) 21:02, 22 April 2013 (UTC)
- Honestly I have not seen this kind of error before. The error message sounds like MediaWiki tries to edit an existing page, which internally obviously must be done differently than creating a new page.
- Do you have any extensions installed, which modify the process of adding pages? Or do you use a hook, when you are saving a new page? 88.130.74.51 21:09, 22 April 2013 (UTC)
- Hi,
- thank you for your reply, I did not have any problems before I change the page_title of some pages. I made a backup of the table page, when I recover this table, everything work fine again. The script that I wrote only change the page_title nothing else, I do not understand why this happens...any suggestion? 192.75.88.231 13:23, 23 April 2013 (UTC)
- So your script changes the page_title in the database directly? 88.130.74.51 13:27, 23 April 2013 (UTC)
- Yea..Is that the right way to do it? 192.75.88.231 13:30, 23 April 2013 (UTC)
- I would say: No. :-p
- The content at different places in the DB in some way is connected with content at other places. Sometimes a value from one column is used to identify, which row (= which content) to take from another database table. E.g. page_title is connected to categories and maybe to other places as well. Have a look at the image on DB.
- I would try to use the API to modify the DB. If you use the API, you should be on the save side. ;-) 88.130.74.51 13:59, 23 April 2013 (UTC)
- Thank you so much for your answer.
- Have anyone already done this before? I have no idea how to use the api. Could someone provide a small example?
- Thanks in advance! 192.75.88.231 14:24, 23 April 2013 (UTC)
- I have not, but it seems like
- you first have to login (to get write rights).
- Then you need to do a "action=query" with "prop=info" to get a token (which allows you to modify data).
- After that was successful, you can use this token when you query the API with "action=move".
- A short overview of the complete API is here. 88.130.74.51 14:58, 23 April 2013 (UTC)
- I have not, but it seems like
- Yea..Is that the right way to do it? 192.75.88.231 13:30, 23 April 2013 (UTC)
- So your script changes the page_title in the database directly? 88.130.74.51 13:27, 23 April 2013 (UTC)
Coding in wiki links
I'm sorry for bad English.
Hi, it is possible to set UTF-8 in the links on the wiki?
This link is very unfriendly.
During installation, I set UTF-8 in MySQL.
I have access to ftp.
Greetings Rycerzodie (talk) 13:29, 23 April 2013 (UTC)
- URLs and page names are UTF8 encoded, but you posted an anchor to a section of your page, which needs a different encoding system, since it matches an ID, and IDs use a limited subset of allowed characters.
- If you want to use a link to a specific section of one page in various places you can create a redirect page to that section and link to the redirect instead, so you don't have to write that ugly code. Ciencia Al Poder (talk) 09:38, 24 April 2013 (UTC)
api action=move badtoken error
Hi I get a badtoken error when trying to use api to move a page to another page. Here is the code that I am using:
<?php
/**
* Configuration
* -------------------------------------------------
*/
// Start session
session_start();
// Login
$app['username'] = "abc";
$app['password'] = "cheng";
// Version
$app["version"] = "0.0.1-dev";
// Last modified
date_default_timezone_set("UTC");
$app["lastmod"] = date("Y-m-d H:i", getlastmod()) . " UTC"; // Example: 2010-04-15 18:09 UTC
// User-Agent used for loading external resources
$app["useragent"] = "My First Tool " . $app["version"] . " (LastModified: " . $app["lastmod"] . ") Contact: myfirsttool (at) example (.) com";
// Cookie file for the session
$app["cookiefile"] = tempnam("/tmp", "CURLCOOKIE");
// cURL to avoid repeating ourselfs
$app["curloptions"] =
array(
CURLOPT_COOKIEFILE => $app["cookiefile"],
CURLOPT_COOKIEJAR => $app["cookiefile"],
CURLOPT_RETURNTRANSFER => 1,
CURLOPT_USERAGENT => $app["useragent"],
CURLOPT_POST => true
);
$app["apiURL"] = "http://138.85.252.123/mediawiki/api.php";
/**
* Login
* -------------------------------------------------
*/
// Info: http://www.mediawiki.org/wiki/API:Login
$postdata = "action=login&format=php&lgname=" . $app["username"] . "&lgpassword=" . $app["password"];
$token="";
$ch = curl_init();
curl_setopt_array($ch, $app["curloptions"]);
curl_setopt($ch, CURLOPT_URL, $app["apiURL"]);
curl_setopt($ch, CURLOPT_POSTFIELDS, $postdata);
$result = unserialize(curl_exec($ch));
if(curl_errno($ch)){
$curl_error = "Error 003: " . curl_error($ch);
}
curl_close($ch);
//print_r($result);//die;//DEBUG
$_SESSION["logintoken"]="";
// Basic error check + Confirm token
if ($curl_error){
$domain_error = $curl_error;
} else if ($result["login"]["result"] == "NeedToken") {
if (!empty($result["login"]["token"])) {
$_SESSION["logintoken"] = $result["login"]["token"];
$token=$result["login"]["token"];
$postdata = "action=login&format=php&lgname=" . $app["username"] . "&lgpassword=" . $app["password"] . "&lgtoken=" . $_SESSION["logintoken"];
$ch = curl_init();
curl_setopt_array($ch, $app["curloptions"]);
curl_setopt($ch, CURLOPT_URL, $app["apiURL"]);
curl_setopt($ch, CURLOPT_POSTFIELDS, $postdata);
$result = unserialize(curl_exec($ch));
if(curl_errno($ch)){
$curl_error = "Error 004: " . curl_error($ch);
}
curl_close($ch);
//print_r($result);//die;//DEBUG
} else {
$other_error = "Error 006: Token error.";
}
}
$url = 'http://138.85.252.123/mediawiki/api.php?action=move&from=Document_1&to=Document-1&token=';
$url .= $_SESSION["logintoken"];
$curl = curl_init();
curl_setopt($curl, CURLOPT_URL, $url);
curl_setopt($curl, CURLOPT_RETURNTRANSFER, 1);
$response = curl_exec($curl);
curl_close($curl);
echo $response;die;
echo $url;
// Delete the cookie file
unlink($app["cookiefile"]);
// Destroy the session
session_destroy();
// End this file
die($output);
?>
192.75.88.231 (talk) 19:13, 23 April 2013 (UTC)
- This is related to this thread.
- Where exactly in the script do you get the error? 88.130.90.169 21:25, 23 April 2013 (UTC)
[RESOLVED] problem with apiquarybase.php
hi I seem to have problem with apiquarybase.php on line 449 the error says Fatal error: Allowed memory size of 67108864 bytes exhausted (tried to allocate 7680 bytes) in /home/a2349506/public_html/includes/api/ApiQueryBase.php on line 449 and I am running 1.19.5 I carnt upgrade to 1.20.4 because of my host wont update to php 3.3 which I need to run the latest update 86.168.53.10 (talk) 20:50, 23 April 2013 (UTC)
- This error is most commonly caused by a memory limit, which is too low. Set it to something higher. 88.130.90.169 21:17, 23 April 2013 (UTC)
- 64MB of memory for a single page request should be enough. MediaWiki has a problem with memory usage. See bugzilla:45900.
- The solution would be to increase memory limit, which in a shared host would mean to upgrade your plan. Ciencia Al Poder (talk) 09:43, 24 April 2013 (UTC)
- how do I change the memory 86.168.53.10 20:53, 24 April 2013 (UTC)
- See this thread on StackOverflow: http://stackoverflow.com/questions/12172515/set-memory-limit-in-htaccess ☠MarkAHershberger☢(talk)☣ 21:13, 24 April 2013 (UTC)
- How would I do it with Mediawiki what file do I go in and what line do I change 176.26.62.33 12:42, 27 April 2013 (UTC)
- Ask your host. 88.130.67.50 13:09, 27 April 2013 (UTC)
- Ok but it isn't up to my host they host the website they don't upload the files I do 86.168.53.10 13:17, 27 April 2013 (UTC)
- That does not matter. If your host hosts the website (and I guess they wouldn't be called "host" if they didn't), then they are the only ones who can tell you. 88.130.67.50 13:27, 27 April 2013 (UTC)
- Ok but it isn't up to my host they host the website they don't upload the files I do 86.168.53.10 13:17, 27 April 2013 (UTC)
- In the root directory of your wiki, try adding an .htaccess file with the line
php_value memory_limit 64M
- Your host may have restricted this, though, so if this doesn't work, you may have to contact them. ☠MarkAHershberger☢(talk)☣ 14:13, 27 April 2013 (UTC)
- Is it in the main part of the wiki do you mean by root directory of your wiki do you mean out it in the same place where your local setting file is at 86.168.53.10 15:02, 27 April 2013 (UTC)
- I have fixed it I found the answer for 000webhost at http://www.free-installations.info/threads/change-php-variables-on-000webhost-com-servers.1402/ 86.168.53.10 15:22, 27 April 2013 (UTC)
- Is it in the main part of the wiki do you mean by root directory of your wiki do you mean out it in the same place where your local setting file is at 86.168.53.10 15:02, 27 April 2013 (UTC)
- Ask your host. 88.130.67.50 13:09, 27 April 2013 (UTC)
- How would I do it with Mediawiki what file do I go in and what line do I change 176.26.62.33 12:42, 27 April 2013 (UTC)
- See this thread on StackOverflow: http://stackoverflow.com/questions/12172515/set-memory-limit-in-htaccess ☠MarkAHershberger☢(talk)☣ 21:13, 24 April 2013 (UTC)
- how do I change the memory 86.168.53.10 20:53, 24 April 2013 (UTC)
Stop users from editing creating or moving pages
I can't find the version of Wiki I am using, nor the version of the php or MySQL. This was all done for me by my web host. The URL is www.Rudysguilds.com What I want to do is make the site open for reading only to all but admins. I did find the lines to stop editing and to stop creating pages, and added them to the php, however pages can still be moved. Can you help me with this..Totally new to wiki and to web design as well:( Jpzldoer (talk) 00:48, 24 April 2013 (UTC)
- Add this to the end of LocalSettings.php:
- $wgGroupPermissions['user']['createpage'] = false;
- $wgGroupPermissions['user']['move'] = false;
ఠ_ఠ Inquisitor Sasha Ehrenstein des Sturmkrieg Sector (Talk) (Contr) 01:03, 24 April 2013 (UTC)
Setting up mediawiki
I'm new to setting up wikis and I am running into an issue I hope someone can shed some light on...
I installed MediaWiki on Ubuntu 12.10 and can access it fine with localhost\mywikihere
However, when I try browsing to that machines IP on my local network from my laptop it will not work says page not found. If I add http:// in front it loads the page, but it loses all formatting and looks just like text done the side of the webpage. What am I missing? Any and all help is greatly appreciated. 68.14.85.239 (talk) 02:15, 24 April 2013 (UTC)
- The problem is you're using "localhost" as server name, which is an alias for "your own machine", so from another machine it will try to load a page from itself, not the server running MediaWiki!
- You should change $wgServer to the IP address or hostname that can be resolved/visible from the other machines in your network. Ciencia Al Poder (talk) 09:46, 24 April 2013 (UTC)
Advanced search in Mediawiki
How do I find the article on the date or size? For example, from 24/04/2013 to 04/01/2013 and the size of 12800 bytes Is there such extensions in Mediawiki? 37.235.129.111 (talk) 08:02, 24 April 2013 (UTC)
- This sort of information is available directly from the database. I don't know of a way to search for it, but it wouldn't be too difficult to write. ☠MarkAHershberger☢(talk)☣ 20:02, 24 April 2013 (UTC)
- Extension:Asksql allows you to do SQL queries, but the extension poses a major security risk. If this is a one-time thing you should probably just query the database directly. Manual:database layout could prove useful for this. jonkerz♠ 00:39, 25 April 2013 (UTC)
[RESOLVED] main page tab
hi how can I make a tab for main page called main page like Wikipedia does because I have my main oage but the tab says it is a page and how can I change page to article 176.254.140.79 (talk) 12:52, 24 April 2013 (UTC)
- rename it 88.130.90.169 14:54, 24 April 2013 (UTC)
api action=query
I don't know why the following code fails to print out the query...
$url = "action=query&prop=info&intoken=edit&titles=Document_1"; $ch = curl_init(); curl_setopt_array($ch, $app["curloptions"]); curl_setopt($ch, CURLOPT_URL, $app["apiURL"]); curl_setopt($ch, CURLOPT_POSTFIELDS, $url); $result1 = unserialize(curl_exec($ch)); if(curl_errno($ch)){ Death("Error 003: " . curl_error($ch),"API connection failed."); } curl_close($ch); print_r($result1);//die;//DEBUG
however, this seems to work:
$postdata = "action=login&format=php&lgname=" . $app["username"] . "&lgpassword=" . $app["password"]; $ch = curl_init(); curl_setopt_array($ch, $app["curloptions"]); curl_setopt($ch, CURLOPT_URL, $app["apiURL"]); curl_setopt($ch, CURLOPT_POSTFIELDS, $postdata); $result = unserialize(curl_exec($ch)); if(curl_errno($ch)){ $curl_error = "Error 003: " . curl_error($ch); } curl_close($ch); print_r($result);
192.75.88.232 (talk) 16:03, 24 April 2013 (UTC)
- The most obvious thing is that the first piece of code has the "Death" bit in it and the second does not. curl_errno($ch) could be returning true in both pieces but you would only see a failure in the first. ☠MarkAHershberger☢(talk)☣ 20:00, 24 April 2013 (UTC)
How do I remove the "NAGGING MATH PROBLEMS" when editing a page with an external link?
Just installed/updated our WIKI to the latest version, onto a new server which is inside a local secure network. We do not require the extra protection provided by the new "Solve a math problem" feature. I've tried searching the FAQs and help sections for a HOWTO disable the new feature, with no luck. Can someone point me in the right direction so I can pass it on to our reluctant SYSADMIN types.
TIA Tim 2brew (talk) 19:29, 24 April 2013 (UTC)
- This shouldn't be enabled by default, but to remove it, you should disable ConfirmEdit. ☠MarkAHershberger☢(talk)☣ 19:52, 24 April 2013 (UTC)
[RESOLVED] Extension:DynamicPageList (Wikimedia)
how do I get Extension:DynamicPageList (Wikimedia) to show date from newer to oldest so that the old date isent first 86.168.53.10 (talk) 20:52, 24 April 2013 (UTC)
- You've marked this resolved. Did you find the information you need? ☠MarkAHershberger☢(talk)☣ 21:14, 24 April 2013 (UTC)
- Yes I just remove one line that had it saying show it from oldest to newest I've removed it now it is showing from newest to oldest 86.168.53.10 06:31, 25 April 2013 (UTC)
[RESOLVED] blog
how can I add a tab so when for example I type in random wikisaur blog: the tab comes up with the name blog 86.168.53.10 (talk) 21:00, 24 April 2013 (UTC)
- Do you mean how to make the article tab have the text before the colon of the pagename? You should use a namespace for it, and then you'll have system messages (
nstab-<namespace name>
) to change the text of the tabs. For example, for the Help: namespace we have MediaWiki:nstab-help (Help). Ciencia Al Poder (talk) 09:32, 25 April 2013 (UTC)- But how do I a blog tab so that when typed in for example random wikisaur blog| name you want come up with blog on tab on left and then talk 86.168.53.10 19:17, 25 April 2013 (UTC)
- Read Manual:Using custom namespaces
- Add for example:
$wgExtraNamespaces[500] = "random_wikisaur_blog"; $wgExtraNamespaces[501] = "random_wikisaur_blog_talk";
- Create
MediaWiki:nstab-random_wikisaur_blog
and put "Blog" on it. That will be the name of the tab. - Create
MediaWiki:nstab-random_wikisaur_blog_talk
and put "Talk" on it. That will be the name of the talk tab. - Then create pages on that namespace or move existing ones there. Note that it shouldn't exist pages witch name starts with the new namespace name before creating that namespace, or otherwise they'll be inaccessible. If this happens, you need to rename them to another prefix before creating the namespace. Ciencia Al Poder (talk) 09:22, 26 April 2013 (UTC)
- Do I add the extra name space to local settings 176.254.140.79 12:14, 26 April 2013 (UTC)
- Thanks I have done it thank you 95.141.37.152 15:55, 26 April 2013 (UTC)
- Do I add the extra name space to local settings 176.254.140.79 12:14, 26 April 2013 (UTC)
- But how do I a blog tab so that when typed in for example random wikisaur blog| name you want come up with blog on tab on left and then talk 86.168.53.10 19:17, 25 April 2013 (UTC)
[Solved] Change the error text when read = false?
MediaWiki 1.20.2
PHP 5.3.23 (cgi-fcgi)
MySQL 5.5.23-55
The text currently says:
"You must log in to view other pages."
Is there a way to change that?
- Never mind Quaintdiamond (talk) 21:21, 24 April 2013 (UTC)
- This says solved, but in case anyone else comes across this:
- You can find the message you want to change by adding
uselang=qqx
to the URL's query string. - For instance, if the page was http://example.com/wiki/Foo displays a message you want to change, then you can change the URL to http://example.com/wiki/Foo?uselang=qqx to find the message to change.
- In the case of this message you would see
loginreqpagetext
where the message would be displayed. To change the message, then, you would visit http://example.com/wiki/MediaWiki:loginreqpagetext and change the text there. ☠MarkAHershberger☢(talk)☣ 13:39, 25 April 2013 (UTC)
visible html on pages:
Hi,
I am trying to repeat some of the wikipedia formatting but have a strange issue with httml showing on the page: </div>:
Template:Collapse_bottom http://computing.ccib.rutgers.edu/wiki/index.php/Template:Collapse_bottom
|} < / div >
http://en.wikipedia.org/wiki/Template:Collapse_bottom
|}
The same issue happens on this page too: http://computing.ccib.rutgers.edu/wiki/index.php/Template:Tnavbar-navframe
Versions:
http://computing.ccib.rutgers.edu/wiki/index.php/Special:Version
Product Version
MediaWiki 1.21.0rc3 (f4d60c4) PHP 5.3.3 (apache2handler) MySQL 5.1.67-log
CentOS release 6.4 (Final)
What could cause this?
Thank you 198.151.130.142 (talk) 02:59, 25 April 2013 (UTC)
- This appears to be html tidy at work. You have one too many closing div elements in your http://computing.ccib.rutgers.edu/wiki/index.php/Template:Tnavbar-navframe template. Removing one should solve the problem.
- Whenever your elements aren't balanced, this will happen. ☠MarkAHershberger☢(talk)☣ 13:55, 25 April 2013 (UTC)
- Thanks. I am confused as to why it works on wikipedia though. Is it theme dependent? Or do I need another extension.....possibly another header template loaded on all pages (with the 2nd starting )?
- http://en.wikipedia.org/wiki/Template:Tnavbar-navframe 198.151.130.142 23:31, 26 April 2013 (UTC)
- I think I was mistaken about the default setting for $wgUseTidy. I thought it was
true
but it isn't. Wikipedia has it set totrue
(See IntialiseSettings on noc). If you modify your LocalSettings.php so that it contains$wgUseTidy = true
, then it should work. ☠MarkAHershberger☢(talk)☣ 14:09, 27 April 2013 (UTC)
- I think I was mistaken about the default setting for $wgUseTidy. I thought it was
- Thanks. I am confused as to why it works on wikipedia though. Is it theme dependent? Or do I need another extension.....possibly another header template loaded on all pages (with the 2nd starting
Compilation failed: unknown property name after \P or \p at offset 7 in Scribunto/engines/LuaCommon/UstringLibrary.php
Hi,
I am trying to repeat some of the wikipedia formatting but have a strange issue:
Template:Navbox_with_collapsible_groups http://computing.ccib.rutgers.edu/wiki/index.php/Template:Navbox_with_collapsible_groups
Warning: preg_replace_callback(): Compilation failed: unknown property name after \P or \p at offset 7 in /www/mediawiki-core/extensions/Scribunto/engines/LuaCommon/UstringLibrary.php on line 604 Warning: preg_match(): Compilation failed: unknown property name after \P or \p at offset 7 in /www/mediawiki-core/extensions/Scribunto/engines/LuaCommon/UstringLibrary.php on line 490
http://en.wikipedia.org/wiki/Template:Navbox_with_collapsible_groups
Versions: http://computing.ccib.rutgers.edu/wiki/index.php/Special:Version
Product Version
MediaWiki 1.21.0rc3 (f4d60c4) PHP 5.3.3 (apache2handler) MySQL 5.1.67-log
CentOS release 6.4 (Final)
What could cause this?
Thank you 198.151.130.142 (talk) 03:06, 25 April 2013 (UTC)
- Hi!
- What exactly do you have in extensions/Scribunto/engines/LuaCommon/UstringLibrary.php on line 604 and in extensions/Scribunto/engines/LuaCommon/UstringLibrary.php on line 490?
- There must be some preg_... function. In the arguments there obviously is a \p modifier. And the part, which comes after that causes your problem. What is it?
- Here is the syntax of the \p modifier. 88.130.67.9 11:51, 25 April 2013 (UTC)
- hi,
- thank you for the note,
- I have obtained the git master branch and see the following differences below from the release for mediawiki-1.20.
- I put the complete master in place and the errors do not appear.
- I'll post to Scribunto if I have further issues.
- http://www.mediawiki.org/wiki/Extension:Scribunto
- 198.151.130.142 15:28, 25 April 2013 (UTC)
--------------------------------------------------------------------- diff /www/git/Scribunto/engines/LuaCommon/UstringLibrary.php Scribunto/engines/LuaCommon/UstringLibrary.php 462,466c462 < if ( $ret === false ) { < return array( null ); < } else { < return array( $ret + $init, $ret + $init + mb_strlen( $pattern ) - 1 ); < } --- > return array( ( $ret === false ) ? null : $ret + $init ); ---------------------------------------------------------------------
- On the first view it is not obvious to me how, but if this fixes the issue, it's fine. :-) 88.130.67.9 16:02, 25 April 2013 (UTC)
Restricting email address users can use
When signing up, is it possible to restrict the types of email addresses the user can use?
For example, @hotmail.com can't be used, but @gmail.com can. Sugarcrop (talk) 16:52, 25 April 2013 (UTC)
- Use the hook AbortNewAccount. In that hook, you have the variable $user, which allows you to access the data, which the user has provided. This also includes the email address.
- You could for example add something like this to LocalSettings.php:
// Call hook when a new user is registered $wgHooks['AbortNewAccount'][] = 'onAbortNewAccount'; /** * Check, if the email address is OK * * @returns TRUE, if it was OK, FALSE, if it was not */ function onAbortNewAccount( $user, $message ) { // Check the email address... // Add your code here... $providedEmailAddress = $user->getEmail(); if (strpos($providedEmailAddress, '@hotmail.com' !== FALSE) || strpos($providedEmailAddress, '@example.com' !== FALSE)) { // Set error message $message = 'You cannot use an email address from hotmail.com or example.com. Use another host instead!'; // Stop processing; no registration possible return FALSE; } return TRUE; }
- Untested, but should give you an idea of what to do... 88.130.67.9 18:15, 25 April 2013 (UTC)
- Would I be right in saying that
||
- means OR?
- Would this work:
- <syntaxhighlight lang="php">
if (strpos($providedEmailAddress, '@hotmail.com' !== FALSE)
|| strpos($providedEmailAddress, '@example.com' !== FALSE) || strpos($providedEmailAddress, '@google.com' !== FALSE)) { // Set error message $message = 'You cannot use an email address from $providedEmailAddress . Use another host instead!'; // Stop processing; no registration possible return FALSE; } Sugarcrop (talk) 19:20, 25 April 2013 (UTC)
- Yes, "||" means "or".
- In the part you quoted, you can remove the check against "example.com". example.com is a domain,which is reserved for examples. It can only be used in examples; you can be sure that no one will have it in real life. For $message you need to amend the different parts of the string together. Like so:
- 88.130.67.9 19:26, 25 April 2013 (UTC)
if (strpos($providedEmailAddress, '@hotmail.com' !== FALSE) || strpos($providedEmailAddress, '@google.com' !== FALSE) || strpos($providedEmailAddress, '@spammer.com' !== FALSE)) { // Set error message $message = 'You cannot use the email address ' . $providedEmailAddress . '. Use an address from another host instead!'; // Stop processing; no registration possible return FALSE; }
- (Apologies in advance if it's bad etiquette here to resurrect an old discussion thread. :) )
- On a security note, you should be careful using "strpos() !== FALSE" to check for the domain name of an email address. It can be fooled by a custom-made subdomain, e.g. "badguy@google.com.myrealdomain.example.com". In this particular case, the example is about blacklisting domains, so it doesn't matter that much, but if you were trying to whitelist domains, then this would be a big problem
- If you're trying to determine for sure whether an email address is @ a particular domain, you need to specifically check that the email address ends with "@" and the domain. There are several ways to achieve this in PHP. One way that's fairly easy is to reverse the email address, and reverse the domain name + "@", and then use strpos to see if the reversed domain name is at the start of the reversed email address:
// Note that you need to do the triple-equals sign, because we're checking for the integer 0.
if (strpos(strrev($providedEmailAddress), strrev('@hotmail.com')) === 0) {
// It's a hotmail account...
}
Aaronthemad (talk) 01:56, 8 June 2016 (UTC)
[RESOLVED] Showing number of pages in subcategories (instead of number of subcats)
On a category page subcategories are listed - which is fine.
After each subcategory there is a number that shows the number of subcategories which this subcategory has (Example) - which I don't like.
How can I show the number of pages instead of the number of subcats?
Or at least "x pages, y subcats" (I think this should be possible since this info is used in the title of the span).
Thanks! Stefahn (talk) 18:01, 25 April 2013 (UTC)
- See Extension:CategoryTree#Configuration Ciencia Al Poder (talk) 09:28, 26 April 2013 (UTC)
- Stefahn (talk) 11:23, 26 April 2013 (UTC)
Thanks.
I didn't know that Extension:CategoryTree affects this output.
I updated on the latest version, then it showed me "x Categories, y Pages".
Then I set$wgCategoryTreeCategoryPageOptions['mode'] = 'pages';
and now I can even expand the pages - Nice :)
Thanks again!
Unable to create new sites and subsites on newly installed mediawiki installation.
All I have been working on a install of MediaWiki 1.20.4. I installed the traditional wiki method using the web mw-config script. It is currently on Fedora 18 x86_64 with MySQL 5.5 and PHP.
Currently with the account I created during the installation I can edit but I can not create any new sites of subsites and the only groups that show up currently are Administrator and Bureaucrats. I modified the LocalSettigs.php with the following commands but I am still not able to create sites:
- 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/ConfirmEdit/ConfirmEdit.php" ); require_once( "$IP/extensions/Gadgets/Gadgets.php" ); require_once( "$IP/extensions/Renameuser/Renameuser.php" ); require_once( "$IP/extensions/Vector/Vector.php" ); require_once( "$IP/extensions/WikiEditor/WikiEditor.php" ); require_once( "$IP/extensions/UserAdmin/UserAdmin.php" );
- Customized Permissions
- Read Permissions Settings Section
- Read
$wgGroupPermissions['*']['read'] = false; $wgGroupPermissions['user']['read'] = true; $wgGroupPermissions['sysop']['read'] = true; $wgGroupPermissions['bureaucrat']['read'] = true;
- Whitelist to Read and loading of logon page
$wgWhitelistRead = array ("Special:Userlogin", "MediaWiki:Common.css", "MediaWiki:Common.js", "MediaWiki:Monobook.css", "MediaWiki:Monobook.js", "-");
- Editing Permissions Settings Section
- Edit
$wgGroupPermissions['*']['edit'] = false; $wgGroupPermissions['user']['edit'] = true; $wgGroupPermissions['bureaucrat']['edit'] = true; $wgGroupPermissions['sysop']['edit'] = true;
- Createpage (requires the edit right)
$wgGroupPermissions['*']['createpage'] = false; $wgGroupPermissions['user']['createpage'] = true; $wgGroupPermissions['bureaucrat']['createpage'] = true; $wgGroupPermissions['sysop']['createpage'] = true; $wgGroupPermissions['nmis']['createpage'] = true;
- createtalk (requires the edit right)
$wgGroupPermissions['*']['createtalk'] = false; $wgGroupPermissions['sysop']['createtalk'] = true;
- move (requires the edit right)
$wgGroupPermissions['*']['move'] = false; $wgGroupPermissions['sysop']['move'] = true;
- movefile (requires the move right and $wgAllowImageMoving to be true)
$wgGroupPermissions['*']['movefile'] = false; $wgGroupPermissions['sysop']['movefile'] = true;
- move-subpages (requires the move right)
$wgGroupPermissions['*']['move-subpages'] = false; $wgGroupPermissions['sysop']['move-subpages'] = true;
- move-rootuserpages (requires the move right)
$wgGroupPermissions['*']['move-rootuserpages'] = false; $wgGroupPermissions['sysop']['move-rootuserpages'] = true;
- createaccount
$wgGroupPermissions['*']['createaccount'] = false; $wgGroupPermissions['sysop']['createaccount'] = true; $wgGroupPermissions['bureaucrat']['createaccount'] = true;
- upload (requires the edit right)
$wgGroupPermissions['*']['upload'] = false; $wgGroupPermissions['sysop']['upload'] = true;
- reupload (requires the upload right)
$wgGroupPermissions['*']['reupload'] = false; $wgGroupPermissions['sysop']['reupload'] = true;
- reupload-own (requires the upload right)
$wgGroupPermissions['*']['reupload-own'] = false; $wgGroupPermissions['sysop']['reupload-own'] = true;
- reupload-shared (requires the upload right)
$wgGroupPermissions['*']['reupload-shared'] = false; $wgGroupPermissions['sysop'][] = true;
- upload_by_url (requires the upload right)
$wgGroupPermissions['*']['upload_by_url'] = false; $wgGroupPermissions['sysop']['upload_by_url'] = true;
- editprotected (without cascading protection)
$wgGroupPermissions['*']['editprotected'] = false; $wgGroupPermissions['sysop']['editprotected'] = true;
Also currently I do not have the underlying system set up to send out emails. Does anyone have an example of setting the Email verified date through MySQL.
Thanks Timothy.m.butterworth2 (talk) 18:24, 25 April 2013 (UTC)
- Who should read all this? Let me summarize your problem in one sentence: Your MediaWiki user account cannot create new pages.
- Assuming that you have not put any major sutff in your wiki, I propose the following:
- Truncate the MediaWiki database = delete all tables, which MediaWiki has created.
- Remove LocalSettings.php.
- Then run mw-config/index.php again. Copy the resulting LocalSettings.php file in the wiki directory without doing any changes. Does creating new pages with your MediaWiki admin user work now? 88.130.67.9 19:00, 25 April 2013 (UTC)
- I have already done that a number of times using the Private Wiki option, The Traditional Wiki option and the Authenticated user option. None of these provide the option to create new sites of subsites. I tried each of these with the version provided with Fedora 18 1.19.5 and I also downloaded the latest 1.20 as well. Which has the same issue.
- I though maybe it was due to not validating the email address, but it still did not work with traditional which should allow anyone to create sites. 99.136.242.254 03:23, 26 April 2013 (UTC)
- I would not pick authenticated user right now, as you said your mail setup would be broken as well. However, whether you choose to make your wiki private or open should not influence this problem. Both of them should work out of the box.
- In my wiki the page Main Page/123/456 does not exist. In MediaWiki 1.20 I see the following: When I do not have permission to create the page, there also is no tab "Create" to do so. In my case I have a private wiki and when I am not logged in I see this message. On the page there is a note that the page does not exist and that I cannot create it.
- However, when I am logged in with an account, which can create new pages (basically every account can), then the text says that the page does not exist but that I can create it.
- Do you have a link to the wiki? 88.130.88.238 10:47, 26 April 2013 (UTC)
Can't use PHP 5.3, which wiki version can work on 5.2?
Hello again,
I'm having trouble figuring out which Wiki version runs on php 5.2...as my website doesn't work on 5.3, so I can't use wiki version 1.20 on my site.
I don't know enough about PHP to know if my website can use 5.2 and the wiki use 5.3 simultaneously, but the easiest solution seems to be to just downgrade mediawiki to one compatible with my version of PHP.
Thanks! 98.189.165.213 (talk) 18:28, 25 April 2013 (UTC)
- Hi!
- MediaWiki 1.19.x is the last version, which runs on PHP 5.2.
- Your website and MediaWiki should basically use the same PHP version. But your provider might give you the possibility to set the PHP version separately for each domain, so that in this case you could have your website use PHP 5.2 and your wiki PHP 5.3. 88.130.67.9 18:54, 25 April 2013 (UTC)
Users cannot download files from wiki
Product Version MediaWiki 1.17.0 PHP 5.3.2-1ubuntu4.17 (cgi-fcgi) MySQL 5.1.63-0ubuntu0.10.04.1
When attempting to download files from wiki, users are receiving various corrupt file error messages. Eg:
Windows 8: "We're sorry the file cannot be opened because we found a problem with it's contents" Details: "The file is corrupt and can't be opened"
Other users are being prompted for a file conversion: "Select the encoding that makes your document readable" The document text is populating as below: ÐÏ à¡± á > þÿ È Ê þÿÿÿ Ä Å Æ Ç ÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿ
As an Admin user, I am able to follow the "view attachment information and history" link (file cabinet icon in attachments box), and download the file from that page without issue. This problem persists with new files that are uploaded to the wiki. The problem appears to be affecting all uploaded files stored on the wiki.
Please Help! 182.53.79.33 (talk) 06:18, 26 April 2013 (UTC)
- Why not try to upgrade to 1.20.4 because 1.17.0 is not supported anymore 176.254.140.79 07:01, 26 April 2013 (UTC)
first heading in the file is cloned to all other headings in the PDF's TOC and individual Page headings
Download articles as a PDF book " is producing a PDF where the first heading in the file is cloned to all other headings in the PDF's TOC and individual Page headings. PDF Book has same headers throughout the book for all contents and on all the pages. PDF Book creating wrong headers in both TOC and Page headings Though this does not build a TOC. Mahmoodch (talk) 10:11, 26 April 2013 (UTC)
- When I click the link "Download this selection of articles as a PDF book " it creates a PDF file but in the content table all the headings are same.
- This is the only heading in the all pdf document. "Release Note - Action Type Form's Job Field Cannot be Cleared - P12107"
- Please help to sort this out.
- Thanks
- Mahmood Mahmoodch (talk) 11:43, 26 April 2013 (UTC)
- Is this on your own wiki? If the link is available, could you share it?
- You may need to file a bug report ☠MarkAHershberger☢(talk)☣ 13:59, 27 April 2013 (UTC)
- Hi Mark
- Sorry-Its company's internal Wiki "PDFBOOK_VERSION', '1.0.4, 2010-01-05')"
- it does not have any public URL.
- When I download a PDF it has all the below same repeated contents
- "Table of Contents
- 1 Release Note - Action Type Form's Job Field Cannot be Cleared - P12107................................................................................................................1
- 2 Release Note - Action Type Form's Job Field Cannot be Cleared - P12107................................................................................................................2
- 3 Release Note - Action Type Form's Job Field Cannot be Cleared - P12107................................................................................................................3
- 4 Release Note - Action Type Form's Job Field Cannot be Cleared - P12107................................................................................................................4
- -------"
- Can you please let me know how and who I have to report the bug?
- Thanks
- Mahmood Mahmoodch (talk) 15:09, 29 April 2013 (UTC)
- It would be nice to reproduce this bug on a public wiki so that anyone can see the problem.
- That said, to file a bug for this issue, follow this link and describe your issue there. I'll get a copy of the bug report as well as the makers of the extension.
- Please to read over how to report a bug and include as much information as possible. Also, if you aren't the person responsible for installing your company's internal MediaWiki set up, then it is probably a good idea to let them know about the bug report as well. They may be able to answer some questions that you can't. ☠MarkAHershberger☢(talk)☣ 19:05, 29 April 2013 (UTC)
- FYI, bug report filed under bugzilla:47831 Malyacko (talk) 11:35, 30 April 2013 (UTC)
Top level category = common practice?
I'm trying to show all categories of my wiki with <categorytree>.
Is this only possible if I have a top level category which contains all my categories?
Is it common practice to have a top level category in a wiki (up to now I don't have any)?
Help:Categories says: "It is a good idea to organize all categories into a hierarchy with a single top level category."
Thanks!
Stefahn (talk) 11:58, 26 April 2013 (UTC)
- If you don't have a single top-level category, then how would you expect CategoryTree to work if you want to use it to display all your categories? I guess you could use multiple CategoryTrees on the same page.
- If there is no category hierarchy at all -- your question doesn't make it clear that you have any hierarchy -- then how would you expect CategoryTree to work? ☠MarkAHershberger☢(talk)☣ 13:56, 27 April 2013 (UTC)
- I thought there might be an option to show all categories in the root.
- I had several "top level" categories - now I changed it so that I have only one top level category.
- Thanks. Stefahn (talk) 21:37, 27 April 2013 (UTC)
- Good! If you don't know about it already, you might find the "hideroot" attribute handy. This is documented on Extension:CategoryTree. ☠MarkAHershberger☢(talk)☣ 23:53, 27 April 2013 (UTC)
- I thought there might be an option to show all categories in the root.
file upload new version
I did upload a new versin of a .pdf. Everything is all right.
But the page which the file is connected to still shows the "old" version of the file.
I do not have any idea. Thank you for help in advance.
MediaWiki 1.19.1 PHP: 5.2.17-0.dotdeb.0 (cgi-fcgi) MySQL: 5.0.51a-24+lenny4-log Rajede (talk) 14:40, 26 April 2013 (UTC)
- Add ?action=purge to your URL like MyPage?action=purge. That should show you the current version of the thumbnail again. 88.130.88.238 15:31, 26 April 2013 (UTC)
- Thank You! But it does not work. Is "# [[media:Muster_treuhandvertrag.pdf|Treuhandvertrag]]" the wrong way to point to the file? Rajede (talk) 16:13, 26 April 2013 (UTC)
- Try changing media to file: [[file:Muster_treuhandvertrag.pdf|Treuhandvertrag]]. ☠MarkAHershberger☢(talk)☣ 13:51, 27 April 2013 (UTC)
- I had the same problem. I deleted the old file and that did the trick. Ron Barker (talk) 16:47, 28 April 2013 (UTC)
- Try changing media to file: [[file:Muster_treuhandvertrag.pdf|Treuhandvertrag]]. ☠MarkAHershberger☢(talk)☣ 13:51, 27 April 2013 (UTC)
- Thank You! But it does not work. Is "# [[media:Muster_treuhandvertrag.pdf|Treuhandvertrag]]" the wrong way to point to the file? Rajede (talk) 16:13, 26 April 2013 (UTC)
Any extension for wikidaata
Is there any extension for wikidaata so we can open a wiki for our data so that we doing have to add it to each page 94.141.20.53 (talk) 14:53, 26 April 2013 (UTC)
- There are many extensions, what is the right one, depends on what youu want to do. See Extensions. 88.130.88.238 15:30, 26 April 2013 (UTC)
- The one I would like to install is the one which allows you to have a wiki and all your other wiki can sue the links for other languages in that wiki 95.141.37.152 15:53, 26 April 2013 (UTC)
- Sounds like Extension:Interwiki. 88.130.88.238 16:35, 26 April 2013 (UTC)
- What I mean is create one wiki which can control all infer wiki for example wiki data provide all of wikiepdiais langurs without needing to add [[en:name]] Paladox2014 (talk) 19:32, 26 April 2013 (UTC)
- Unclear, pleae elaborate further, if you want help. 88.130.88.238 21:45, 26 April 2013 (UTC)
- I think he needs Extension:Wikibase. Jasper Deng (talk) 22:07, 26 April 2013 (UTC)
- thank 176.26.62.33 10:04, 27 April 2013 (UTC)
- I think he needs Extension:Wikibase. Jasper Deng (talk) 22:07, 26 April 2013 (UTC)
- Unclear, pleae elaborate further, if you want help. 88.130.88.238 21:45, 26 April 2013 (UTC)
- What I mean is create one wiki which can control all infer wiki for example wiki data provide all of wikiepdiais langurs without needing to add [[en:name]] Paladox2014 (talk) 19:32, 26 April 2013 (UTC)
- Sounds like Extension:Interwiki. 88.130.88.238 16:35, 26 April 2013 (UTC)
- The one I would like to install is the one which allows you to have a wiki and all your other wiki can sue the links for other languages in that wiki 95.141.37.152 15:53, 26 April 2013 (UTC)
Hide certain pages in categories
- Can I prevent certain pages (drafts) from showing up in their categories?
- If not, can one hide pages of a certain namespace ("user" in my case) on the categories page?
- Thanks! Stefahn (talk) 16:26, 26 April 2013 (UTC)
- Hiding pages from a category listing would take some programming -- there is no way to do that out of the box. ☠MarkAHershberger☢(talk)☣ 13:46, 27 April 2013 (UTC)
- does someone know if there is a option to do this now? Livorji2 (talk) 15:05, 22 August 2024 (UTC)
[RESOLVED] How do I add more memory to Mediawiki
How do I add more memory to Mediawiki because I am using 000webhost Paladox2014 (talk) 19:30, 26 April 2013 (UTC)
- Ask the guys at 000webhost!
- Maybe some additional floppy disks can help you. 88.130.88.238 21:43, 26 April 2013 (UTC)
add non-collapsible or by default expanded sidebar
Using the SkinBuildSidebar hook I can add a sidebar which by default is of class portal and can be collapsed. How would I add a sidebar that is of class portal.persistent so that the user cannot collapse it?
Thanks already,
nick
- MediaWiki: 1.20.4
- PHP: 5.4.13--pl0-gentoo (apache2handler)
- MySQL: 5.1.67-log Nicolasbock (talk) 20:51, 26 April 2013 (UTC)
- Could you show us your current code? ☠MarkAHershberger☢(talk)☣ 13:49, 27 April 2013 (UTC)
- I load an extension in LocalSettings.php via
require_once()
and in that extension I have this code: - Nicolasbock (talk) 19:53, 27 April 2013 (UTC)
function shareSidebar ( $skin, &$bar ) { global $wgOut; $bar['Share'] = '<div class="ShareBar" id="sharetoolbar"> <table width="120" border="0" align="left"> <tr> <td align="left"> <a href="http://flattr.com/thing/95652/FreeON-A-linear-scaling-electronic-structure-code" target="_blank"><img src="http://api.flattr.com/button/flattr-badge-large.png" alt="Flattr this" title="Flattr this" border="0" /></a> </td> </tr> </table> </div>'; return true; } $wgHooks['SkinBuildSidebar'][] = 'shareSidebar';
- So, my wiki doesn't have the Vector extension and therefore doesn't have collapsible sidebars.
- I enabled it and poked around in the various ways to modify a hook.
- One way to do it is to use another hook, SkinTemplateToolboxEnd, and just use
echo
in your function to put the button at the end of the toolbox section. It is still collapsible, but the Toolbox is usually displayed by default. - The other (and probably what you want) is to add this bit to your Common.js:
$("#p-Share").attr("class", "portal persistent");
☠MarkAHershberger☢(talk)☣ 01:46, 28 April 2013 (UTC)- Thanks for the reply! I tried the Common.js approach by creating the page Mediawiki:Common.js and copying your code into it. That's what I was looking for, thanks again! Nicolasbock (talk) 16:39, 29 April 2013 (UTC)
- I load an extension in LocalSettings.php via
Wiki Runover, How to Mass Delete New Entries?
Hello,
I hadn't been paying attention to my wiki/server for the past year or so, and I was shocked to see that it's been run over by spammer. My 13MB wiki is now over 2GB!
I don't want to delete the whole wiki as I don't want to lose my info. Is there a way to delete all posts/comments past a certain date from the SQL server directly?
Thanks, 185.12.246.175 (talk) 08:16, 27 April 2013 (UTC)
- Look into Extension:Nuke. It may have what you want. ☠MarkAHershberger☢(talk)☣ 13:39, 27 April 2013 (UTC)
- Thanks. Is there anyway I can do it directly from the MySQL database with an SQL query? 178.238.191.2 03:57, 29 April 2013 (UTC)
- Don't modify directly the database unless you REALLY KNOW what you're doing, or you can lose all your data.
- You can query the database to get a list of pages to delete (see Manual:database layout) and then use the maintenance script nukePage.php that will take care to completely delete the page and associated text from the database. Ciencia Al Poder (talk) 09:45, 29 April 2013 (UTC)
- Thanks. Is there anyway I can do it directly from the MySQL database with an SQL query? 178.238.191.2 03:57, 29 April 2013 (UTC)
[RESOLVED] special page
hi I am getting lots of errors with special page I am using 000webhost 176.26.62.33 (talk) 10:05, 27 April 2013 (UTC)
- The next time please use Google for such general requests; it will give you faster and better information than we here - especially when you don't even give us one single error message. 88.130.67.50 11:44, 27 April 2013 (UTC)
- well one of the error messenges is Fatal error: Allowed memory size of 67108864 bytes exhausted (tried to allocate 7680 bytes) in /home/a2349506/public_html/includes/resourceloader/ResourceLoaderWikiModule.php on line 92
and website loacated at http://random-wikisaur.tk/index.php/Main_Page
176.26.62.33 11:48, 27 April 2013 (UTC)- Tell me, didn't you have another thread, where someone gave you the answer already? 88.130.67.50 12:15, 27 April 2013 (UTC)
- You already got the answer in your thread "problem with apiquarybase.php". Please stop posting several threads for one and the same kind of problem. Thank you. 88.130.67.50 12:17, 27 April 2013 (UTC)
- But this issue is different because it keeps proving different issues and changing issues 176.26.62.33 12:40, 27 April 2013 (UTC)
- Just continue with apiquarybase. 88.130.67.50 12:56, 27 April 2013 (UTC)
- Ok 86.168.53.10 13:18, 27 April 2013 (UTC)
- Just continue with apiquarybase. 88.130.67.50 12:56, 27 April 2013 (UTC)
- But this issue is different because it keeps proving different issues and changing issues 176.26.62.33 12:40, 27 April 2013 (UTC)
- You already got the answer in your thread "problem with apiquarybase.php". Please stop posting several threads for one and the same kind of problem. Thank you. 88.130.67.50 12:17, 27 April 2013 (UTC)
- Tell me, didn't you have another thread, where someone gave you the answer already? 88.130.67.50 12:15, 27 April 2013 (UTC)
Extension:WikimediaIncubator
how can I let user create test wiki without nneeding an account 176.26.62.33 (talk) 11:54, 27 April 2013 (UTC)
- Tell them to use Wikia. 88.130.67.50 12:19, 27 April 2013 (UTC)
- But what I mean is creating a wiki on your own domain like incubator 176.26.62.33 12:39, 27 April 2013 (UTC)
- It will surely have a setting for that. 88.130.67.50 13:00, 27 April 2013 (UTC)
- Do you know where the setting is located at so I can enable it 86.168.53.10 13:18, 27 April 2013 (UTC)
- No, I don't. 88.130.67.50 13:27, 27 April 2013 (UTC)
- Do you know where the setting is located at so I can enable it 86.168.53.10 13:18, 27 April 2013 (UTC)
- This is not built into MediaWiki. Adding a new wiki means changing the configuration. If you want to see how Incubator and the like are configured, have a look at http://noc.wikimedia.org/. ☠MarkAHershberger☢(talk)☣ 13:42, 27 April 2013 (UTC)
- But how can I change a setting in the extension to aloe it to do it with you log in or logged out 86.168.53.10 16:11, 27 April 2013 (UTC)
- For example if you go there can create the main page without loging in and if you go to for another example if you go there it will search for example title wn/simple it will search and you doint need to be logged in to change your test wiki settings 86.168.53.10 16:35, 27 April 2013 (UTC)
- Ah... I don't have much experience with the Incubator, so I'm afraid I don't know that much about it. ☠MarkAHershberger☢(talk)☣ 16:56, 27 April 2013 (UTC)
- Oh ok 86.168.53.10 17:23, 27 April 2013 (UTC)
- does anyone know 176.26.62.33 00:25, 28 April 2013 (UTC)
- Oh ok 86.168.53.10 17:23, 27 April 2013 (UTC)
- Ah... I don't have much experience with the Incubator, so I'm afraid I don't know that much about it. ☠MarkAHershberger☢(talk)☣ 16:56, 27 April 2013 (UTC)
- For example if you go there can create the main page without loging in and if you go to for another example if you go there it will search for example title wn/simple it will search and you doint need to be logged in to change your test wiki settings 86.168.53.10 16:35, 27 April 2013 (UTC)
- But how can I change a setting in the extension to aloe it to do it with you log in or logged out 86.168.53.10 16:11, 27 April 2013 (UTC)
- It will surely have a setting for that. 88.130.67.50 13:00, 27 April 2013 (UTC)
- But what I mean is creating a wiki on your own domain like incubator 176.26.62.33 12:39, 27 April 2013 (UTC)
Want to Modify Default Search Engine
Hi, My site has a mediawiki 1.20 installation and I want to add a few lines of code to omit some search terms such as "a title" (Just search for title) and "the title" (just search title). I can't seem to find the search tool files or folders. Can somebody advise?
For coding reasons, we want to to keep the default search rather than install an extension such as lucene search etc. Is this possible? Thanks. Peter321 (talk) 21:31, 27 April 2013 (UTC)
- Looking at Special:Search (found in includes/specials/SpecialSearch.php), the hooks available are:
- SpecialSearchGo
- SpecialSearchNogomatch
- SpecialSearchSetupEngine
- SpecialSearchResultsPrepend
- SpecialSearchResults
- SpecialSearchNoResults
- SpecialSearchResultsAppend
- SpecialSearchCreateLink
- ShowSearchHitTitle
- ShowSearchHit
- SpecialSearchProfileForm
- SpecialSearchPowerBox
- SpecialSearchProfiles
- I think if you looked at SpecialSearchNogomatch, you'll see where you can remove stop words like "the" and "a". But could you open a bug requesting a stop-word removal be added to MediaWiki? It seems like it would be useful. ☠MarkAHershberger☢(talk)☣ 23:48, 27 April 2013 (UTC)
Extension:ExtensionDistributor installation
hi could someone please write an installation and download guide please for Extension:ExtensionDistributor 90.211.52.178 (talk) 14:17, 28 April 2013 (UTC)
- Do you mean how to use it or how to install it? ☠MarkAHershberger☢(talk)☣ 15:03, 29 April 2013 (UTC)
How to keep CategoryTree stayed opened after clicking any category in sidebar in Vector skin?
When I am going down in one category and subcategories (depth 5-6), after loading the specified category , the category tree is folded again. Is there any chance the tree stays opened? Please reply ASAP... How to keep nodes expaneded even after clicking any category from the tree?Any code changes to be done in Categorytree extension? It would be great to have the tree expanded to the current page after clicking any article , so that the users can get a quick impression about the location of the current article in the overall context. Satyamcompany (talk) 14:53, 29 April 2013 (UTC)
- I don't think this is available right now. Please file a bug to request this feature. ☠MarkAHershberger☢(talk)☣ 15:00, 29 April 2013 (UTC)
Change the size of a "dashed box"?
Hello. I am a noob so please bear with me. I'm doing some formatting on pages for my company and I just learned how to make a dashed box like this:
Hey look! A dashed box!
Two questions: Is that what they're called? A "dashed box"? And more importantly, can one change the size? I would like to make it less wide.
Thank you. 74.114.47.2 (talk) 16:46, 29 April 2013 (UTC)
- It is more than simply a dashed box. The tag you are using is called "pre" for "pre-formatted" and you'll see that the contents of the box has a mono-spaced font instead of the regular one.
Lines inside of pre do not wrap so long lines scroll off to the right like this and that can be quite annoying if you aren't expecting it.
- That said, you can add add a style attribute (at least on Firefox) to handle that and the width:
- <pre style="white-space: pre-wrap; width: 50%">Lines inside of pre do not wrap so long lines scroll off to the right like this and that can be quite annoying if you aren't expecting it.
☠MarkAHershberger☢(talk)☣ 18:55, 29 April 2013 (UTC)
User's can't log into Wiki webpage
Hi all,
Two weeks ago we demoted one of our domain controllers (Windows Server 2003 R2)and we promoted a new Windows Server 2008 R2. My users could not log into the system ever since.
when I debug I get these results.
Entering validDomain User is using a valid domain. Setting domain as: XXXXXX Entering getCanonicalName Username isn't empty. Munged username: YYYYYYY Entering authenticate Entering Connect Connected successfully Entering getSearchString Doing a straight bind Binding as the user Failed to bind as XXXXX\YYYYYY
Any help is much appreciated.
A. Aortegon (talk) 20:56, 29 April 2013 (UTC)
- Which extension are you using for doing the authentication? My first guess -- without knowing how this sort of authentication is handled -- is that you pointed the MW extension to the old controller and need to point it to the new one. ☠MarkAHershberger☢(talk)☣ 23:47, 29 April 2013 (UTC)
- Hi Mark,
- I am very new to this, this system was built by a different person 7 years ago. It was never documented. We named the new domain controller the same way the old one was named after. It uses the same IP address. I am a noob as well. do you have any other suggestions?
- Thanks,
- A. Aortegon (talk) 15:37, 30 April 2013 (UTC)
- First things first: find out how the authentication is happening.
- Also, what version of MediaWiki and PHP are you using? What sort of system is it running on? What is the version of the OS? The DB? What extensions are displayed on the Special:Version page?
- You may consider hiring a consultant (like me) to help you upgrade the system and document it as well so that you can take over maintenance of it in the future. ☠MarkAHershberger☢(talk)☣ 16:34, 30 April 2013 (UTC)
- You may also find more help from the people in this thread who are using a similar authentication system: Project:Support desk/Flow/2012/04#h-Localsettings.php_not_Found_by_non-admin_users-2012-04-24T17:48:00.000Z ☠MarkAHershberger☢(talk)☣ 17:09, 30 April 2013 (UTC)
[RESOLVED] Short URL help please
Hello,
I've followed the tutorial, but am confused on one part.
My wiki is - http://wiki.smartenit.com/index.php?title=Main_Page and if you click the Main Page link, you'll see it goes to the short URL, but I have a 404 error.
I ran the wizard and it made it say wiki.smartenit.com/wiki/Main_Page...so I didn't want wiki in there twice, since I already have "wiki" as the subdomain, so I just modified the script in localsettings to be $wgArticlePath = "/$1";
Now, I don't know what to do to not get the 404 error.
Thanks for your help! 98.189.165.213 (talk) 22:29, 29 April 2013 (UTC)
- Since, I'm not able to edit the post I did...I wanted to add that I only have everything in a "wiki" folder currently, and don't understand why I would need everything in a "w" folder, or if I really do. That's one part I don't understand in the tutorial. 98.189.165.213 22:41, 29 April 2013 (UTC)
- Ok...so reading further, I see that setting the directory as "w" or anything other than "wiki" is advisable, but it seems to be if the URL is going to be domain/wiki/Main_Page...if I have a subdomain set up, I don't know if this works the same. 98.189.165.213 23:07, 29 April 2013 (UTC)
- Could you post your .htaccess file here? Maybe we'll spot a problem.
- One of the reasons that the tutorial says to use /w for the files and /wiki for the wiki so that you can have wiki pages named anything you like, including "Index.php".
- Anything could be used instead of /wiki as long as it matches what you put in your LocalSettings.php. ☠MarkAHershberger☢(talk)☣ 23:51, 29 April 2013 (UTC)
- Thanks Mark,
- Here is my htaccess code:
- 98.189.165.213 00:29, 30 April 2013 (UTC)
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]
- Try this:
RewriteEngine On RewriteBase / RewriteCond %{REQUEST_FILENAME} !-f RewriteRule ^/?wiki/(.*)$ /index.php/$1 [L,QSA]
- (This doesn't take care of the last two bits, but maybe we can get those next.)
- This will also require that the you have the (something like) the following in your LocalSettings.php:
- ☠MarkAHershberger☢(talk)☣ 02:01, 30 April 2013 (UTC)
$wgArticlePath = "/$1"; $wgUsePathInfo = true;
- Thank you Mark..
- Quick question...which code do I replace with your code in the htaccess? I'm assuming the first two lines...but not sure.
- Thanks again 98.189.165.213 19:20, 30 April 2013 (UTC)
- First two, yes. ☠MarkAHershberger☢(talk)☣ 22:24, 30 April 2013 (UTC)
- Alrighty...I figured that and tried it and it still gives an error :-( 98.189.165.213 22:46, 30 April 2013 (UTC)
- So, I assume you have
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 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]
- So, could change the first rule so that you have
RewriteRule ^/?(.*)$ /index.php/$1 [L,QSA]
- Let me know if that helps. I mistakenly copied rules that included /wiki/ and you don't have that. ☠MarkAHershberger☢(talk)☣ 22:56, 30 April 2013 (UTC)
- My hero! :-)
- That was it...thanks so much!! 98.189.165.213 23:16, 30 April 2013 (UTC)
- Followed your suggestions, but still receiving the 404 page. Please help. Here's my url directory with the mediawiki installed .org/noodles/
- my .htaccess
RewriteEngine On RewriteBase / RewriteCond %{REQUEST_FILENAME} !-f RewriteRule ^/?(.*)$ /index.php/$1 [L,QSA] RewriteCond %{DOCUMENT_ROOT}%{REQUEST_URI} !-f RewriteCond %{DOCUMENT_ROOT}%{REQUEST_URI} !-d RewriteRule ^/?noodles/images/thumb/[0-9a-f]/[0-9a-f][0-9a-f]/([^/]+)/([0-9]+)px-.*$ %{DOCUMENT_ROOT}/noodles/thumb.php?f=$1&width=$2 [L,QSA,B] RewriteCond %{DOCUMENT_ROOT}%{REQUEST_URI} !-f RewriteCond %{DOCUMENT_ROOT}%{REQUEST_URI} !-d RewriteRule ^/?noodles/images/thumb/archive/[0-9a-f]/[0-9a-f][0-9a-f]/([^/]+)/([0-9]+)px-.*$ %{DOCUMENT_ROOT}/noodles/thumb.php?f=$1&width=$2&archived=1 [L,QSA,B]
- and the change in localSettings:
## 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 = "/noodles"; $wgScriptExtension = ".php"; $wgArticlePath = "{$wgScriptPath}/wiki/$1"; $wgUsePathInfo = true;
- Thanks in advance Nkansahrexford (talk) 00:12, 24 June 2013 (UTC)
- Please:
- Do not post a reply for a new issue on a [RESOLVED] thread.
- Do not mix /index.php/$1 with /wiki/$1. There's a manual page for that. Follow it before making such changes: Manual:Short URL/Apache Ciencia Al Poder (talk) 09:37, 24 June 2013 (UTC)
- Please:
- Alrighty...I figured that and tried it and it still gives an error :-( 98.189.165.213 22:46, 30 April 2013 (UTC)
- First two, yes. ☠MarkAHershberger☢(talk)☣ 22:24, 30 April 2013 (UTC)
- Ok...so reading further, I see that setting the directory as "w" or anything other than "wiki" is advisable, but it seems to be if the URL is going to be domain/wiki/Main_Page...if I have a subdomain set up, I don't know if this works the same. 98.189.165.213 23:07, 29 April 2013 (UTC)
User Login Required Twice
Dear all,
We have an Intranet system based on Wordpress platform. This has been tied with a mediawiki installation so that users could login using the same credentials. But off late when someone tries to login to the Wiki it asks for the credentials twice. Any help would be very much appreciated.
Thanks 74.88.207.9 (talk) 03:38, 30 April 2013 (UTC)
How do I find the interlanguage links?
(The above page was created by the search engine's Search result page's "Create the page "...? ondiscussionpage:Project:Support desk" on this wiki!" link, clearly buggy) Urhixidur (talk) 13:24, 30 April 2013 (UTC)
- Never mind. There is a "Modify the links" link at the bottom of the interlanguage list, which takes me to a Wikidata page. Urhixidur (talk) 13:26, 30 April 2013 (UTC)
- Filed a bug report with the "create the page" bug. ☠MarkAHershberger☢(talk)☣ 13:46, 30 April 2013 (UTC)
Updating wiki help
I'm following this guide for updating the wiki, but am stuck at one part (https://gerrit.wikimedia.org/r/gitweb?p=mediawiki/core.git;a=blob;f=UPGRADE;hb=REL1_20)
From the command line
From the command line, browse to the "maintenance" directory and run the update.php script to check and update the schema. This will insert missing tables, update existing tables, and move data around as needed. In most cases, this is successful and nothing further needs to be done.
From what command line...dos prompt? how do I browse to maintenance directory and run the update.php script?
I did the wizard at /mw-config/index.php and it said update was complete and that I can now use my wiki, but I have a 500 error now, so I'm not sure if I have to do this command line update still or what.
Thanks! 98.189.165.213 (talk) 19:26, 30 April 2013 (UTC)
- You shouldn't see a 500 error even if the update isn't done. What do your logs show?
- If they don't show anything right now, try turning on the debug log or some of the other tips on that page for debugging. ☠MarkAHershberger☢(talk)☣ 22:24, 30 April 2013 (UTC)
- I noticed there were a few files that were not able to upload, so there was a fatal PHP error. So now I'm trying to figure out how to change the permissions so I can upload those files. 98.189.165.213 22:48, 30 April 2013 (UTC)
How do I get 'move' and 'protect' tabs on www.wikiflaw.com
Hi,
Thanks in advance for the help to a complete mediawiki newbie.
1. I am finally at the stage to change the default Main Page title and am instructed to use the 'move' tab, but cant see it on my www.wikiflaw.com install. Also, would love to have the 'protect' tab
2. Is there a better wysiwyg/m than WYSIWYG? Even if it is not free. We want to add pics, wrap around text and video. Are things that far yet?
Stu 90.201.94.65 (talk) 22:50, 30 April 2013 (UTC)
- 1) You need to have the right permissions to use move and protect. Use the user you created during installation or use that user to assign the "bureaucrat" rights to your current user.
- 2) None yet, but Extension:VisualEditor looks like it may be getting there. ☠MarkAHershberger☢(talk)☣ 23:01, 30 April 2013 (UTC)