Project:Support desk/Flow/2010/11
| 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. |
Old questions
- These questions were posted before the switch to the new discussion system. Click here to view.
Current questions
Extension:ToggleDisplay doesn't work for me.
Hi,
I am using mediawiki locally in my desktop and recently I've installed ToggleDisplay extension by following instructions in Extension:ToggleDisplay, but when I use it as
<toggledisplay>
This will be shown.
</toggledisplay>
any texts, even toggle links are not shown. The block of toggledisplay disappeared from the page.
I've spent two days to solve this problem, but no luck so far.
Does anyone have any idea?
I am using:
MediaWiki : 1.16.0
PHP : 5.3.3
mysql : 5.1.48
Bests, dwjang (talk) 03:59, 1 November 2010 (UTC)
Nothing happens?
Hello,
So i copied mediawiki-1.16.0.tar.gz on my webserver, then i extracted everything to a mediawiki-1.16.0 folder and renamed it to wiki. Then i go to www.mysite.com/wiki and ofc there i click on "Please set up the wiki first." And it goes to /config/index.php and the installation page appears. But here is the thing: when i click on "Install MediaWiki" button - no matter what info i enter or even if i leave everything blank - it just jumps to my website homepage without css - so it looks ugly - and in the browser address bar it shows that its on "www.mysite.com/wiki/config/index.php". So it does not show me the error page when i click the install button - even if i dont complete any of the fields in the install form.
I must mention here i have no problems and it writes "Environment checked. You can install MediaWiki."
HELP PLEASE :) 79.119.217.102 (talk) 09:20, 1 November 2010 (UTC)
- Does your site have something like Cpanel that may reside at http://sitename.com/config/ ? Even if it is disabled, it may be mentioned in rewrite rules. Max Semenik 10:14, 1 November 2010 (UTC)
- I do have Cpanel, but there is no folder at sitename.com/config/. I think its a problem of permission, but i have no idea what :) - i'm not a server expert :( . I wrote you an e-mail with a link to my website, if you can take a look. Thank you for answering. 79.116.71.47 13:13, 1 November 2010 (UTC)
- This is so frustrating :( Nothing i try works... Does the installer need some folders with write permission? I've installed phpbb and wordpress with no problems, the server is administrated by a web server firm that has everything installed. Should i write them about this? Can Cpanel have some interaction with the installation of mediawiki? I'm lost :( 79.116.65.28 17:20, 1 November 2010 (UTC)
- So i got the legacy version mediawiki-1.15.5 and it works like a freakin' charm! I still have no idea what the heck was wrong with mediawiki-1.16.0. 79.116.66.213 19:07, 1 November 2010 (UTC)
- This is so frustrating :( Nothing i try works... Does the installer need some folders with write permission? I've installed phpbb and wordpress with no problems, the server is administrated by a web server firm that has everything installed. Should i write them about this? Can Cpanel have some interaction with the installation of mediawiki? I'm lost :( 79.116.65.28 17:20, 1 November 2010 (UTC)
- I do have Cpanel, but there is no folder at sitename.com/config/. I think its a problem of permission, but i have no idea what :) - i'm not a server expert :( . I wrote you an e-mail with a link to my website, if you can take a look. Thank you for answering. 79.116.71.47 13:13, 1 November 2010 (UTC)
Expiration of pages
Is there a functionality in MediaWiki to give certain pages a expiration date?
We have some formal information, that needs to be validated on a regular bases.
Can MediaWiki send an email if a page is expired?
Regards, Johan Theunissen 213.34.49.75 (talk) 10:56, 1 November 2010 (UTC)
- Hi Johan.
- did you find anything to help you with this?
- Thx
- Neil 115.70.218.126 05:58, 2 June 2014 (UTC)
- MediaWiki does not have a function to do this, and i don't know any extension, that can. Maybe you can use/find/create a bot who crawl the wiki pages and do things for you :) Florianschmidtwelzow (talk) 08:16, 2 June 2014 (UTC)
How to redirect from root directory http://examplex.com/Article to http://example.com/wiki/Article_title
I know using short URL up to root directory is bad. I installed MediaWiki in /w sub directory and change localsetting.php and .htaccess to /wiki as used in most wiki sites.
My site keep showing 404 Error page when I mistype http://example.com/Article_title. However, Wikipedia redirect this title to its internal path. e.g. http://en.wikipedia.org/bash will be automatically redirected to w:en:Bash in 5 seconds.
How should I configure my site? 175.100.127.123 (talk) 15:26, 1 November 2010 (UTC)
- Set ErrorDocument 404 in Apache config or .htaccess to point to redirection page which can be either PHP script that redirects to the right page with <meta http-equiv="Refresh" content="5; URL=http://example.com/wiki/foobar">, or a static HTML page that does the same with JS. Max Semenik 15:50, 1 November 2010 (UTC)
Problems with Copy&Paste
- mediawiki 1.16.0
- php 5.2.11 (cgi)
- database: MySql 4.1.22-log
- IE 8
Since i was updating from 1.15.1 to 1.16 and now working with vector skin i have problems with copy&paste actions. For example: http://www.mediadesign-group-server.de/c_helmstedt-wiki/index.php?title=Grasleben&action=edit - if you scroll down the editing-window, you will not be able to mark any text to copy. May someone be able to help me? Mirko Marhenke (talk) 18:22, 1 November 2010 (UTC)
- Does nobody have an idea about that problem? Some additional info. When you edit textes in the wikipedia and try to abort this by closing the window an alert says something like "do you really want to close that window. data will be lost...". But in my wiki it does not. Maybe a script missing? Djmirko 10:16, 5 November 2010 (UTC)
- Still have this f****** Problem. Are everybody elses wikis (1.16.0) running without these probs? 91.3.55.226 16:29, 10 November 2010 (UTC)
- I can copy paste fine (of course this is with firefox. I don't have IE installed). Your issue with the edit warning not popping out sounds like you might have extension:UsabilityInitiative mis-configured (but thats just a guess). Bawolff 02:06, 16 November 2010 (UTC)
- I already found out how to fix that problem with the editwarning. But i still have the problem (and yes, i am working with IE8) with copy&paste. If you scroll down the editing-window, you will not be able to mark any text to copy. This is really strange, because on the german wikipedia everything (even with IE8) is fine but not so on my wiki :-( Djmirko 16:39, 16 November 2010 (UTC)
Short URL with no root access steps produce no Mediawiki
Manual:Short URL/wiki/Page title -- no root access gives instructions that don't work for me at ICDSoft. If somebody will step me through the fix, I will fix the steps at the page.
I added the required lines to .htaccess in the web root and to LocalSettings.php in the Mediawiki root.
The .htaccess additions did nothing at all. The LocalSettings.php additions made it so that when I browsed from front page to the "w" folder, the URL changed to "wiki/Main_Page", but the page displayed no change (it still displayed the front page).
My configuration:
home/aaajack/www/www/index.php Web root path home/aaajack/www/www/en/w/index.php Mediawiki path
My .htaccess additions:
RewriteRule ^en/wiki/(.*)$ /en/w/index.php?title=$1 [PT,L,QSA] RewriteRule ^en/wiki/*$ /en/w/index.php [L,QSA]
My LocalSettings additions:
$wgScriptPath = "/en/w"; # Physical path (right part of first rewrite rule). $wgArticlePath = "/en/wiki/$1"; # Virtual path (left part of first rewrite rule). MUST be DIFFERENT from the path set above ($wgScriptPath)! $wgUsePathInfo = true; 98.177.237.129 (talk) 03:12, 3 November 2010 (UTC)
- The ICDSoft tech support folks told me to put the .htaccess additions before my other additions, like this:
# Mediawiki Short_URLs per # http://www.mediawiki.org/wiki/Manual:Short_URL/wiki/Page_title_--_no_root_access RewriteRule ^en/wiki/(.*)$ /en/w/index.php?title=$1 [PT,L,QSA] RewriteRule ^en/wiki/*$ /en/w/index.php [L,QSA] RewriteCond %{REQUEST_FILENAME} -d RewriteRule ^.*$ - [L] RewriteCond %{REQUEST_FILENAME} -f RewriteRule ^.*$ - [L] RewriteRule ^.*$ index.php [L]- That made the steps work. I will note it. 98.177.237.129 03:57, 3 November 2010 (UTC)
Interwiki link
Is it possible to make an interwiki link just on one part of a page.
I have a page with a lot of chapter, I just want make a link on the chapter 2. By clicking on the link, you can't see the others chapters. Balbitus (talk) 08:20, 3 November 2010 (UTC)
- What you probably want is to split your pages up in to a bunch of templates, then transclude all the chapters onto one page. This allows you to link directly to an individual chapter, or to the page with all the chapters. Alternatively you can use [[page name#section_name]] syntax to link half way down a page. Bawolff 20:32, 3 November 2010 (UTC)
- Okay, thank you for you quick answer, I'll test that!
- Edit : Yeah That's exactly what I wanted ! Thank you a lot ! Balbitus 07:13, 4 November 2010 (UTC)
Statistics for File Downloads
I cant see any statistics on how many times a file was downloaded. I link my files directly so the site statistics for the file wont work.
Where can I find these information or is there any extension? 193.196.64.2 (talk) 10:08, 3 November 2010 (UTC)
- Typically this is done on the webserver level not at the mediawiki level. You can process your apache access_log yourself, or I'm sure there is some script somewhere on the internet that will do that for you. Bawolff 20:28, 3 November 2010 (UTC)
- It would be very handy if this was some kind of feature. Indeed, you could just search for a script for it.
- But some members of the mediawiki really want to know how many times 'their' files were downloaded. And so how popular their files are. 81.83.24.71 10:23, 30 November 2010 (UTC)
- Its not really possible for mediawiki to keep track of file downloads, since mediawiki is not involved (unless you're using img_auth). When you download an image, apache (or whatever webserver) just finds the image and sends it. It doesn't notify mediawiki that its sending you the image. Bawolff 23:46, 30 November 2010 (UTC)
TinyMCE in Mediawiki
Hello everyone, two message in one day... I'm shamefull
Now I have a question with WYSIWYG Editors. I want to implement TinyMCE in my mediawiki. I read the page about is implementation. So I download the wysiwyg.patch but then the tutorial talk about some commands I have to do... but this is linux commands and my mediawiki is on a windows server so how can I integrate the patch or any others files which can install TinyMCE on my mediawiki?
If you think any other WYSIWYG editors is better than TinyMCE. Feel free to say it and I'll test it! Balbitus (talk) 10:43, 3 November 2010 (UTC)
- What Linux commands are you refering to? At Extension:TinyMCE MW#Installation I see only code that should be added to LocalSettings.php and no shell commands. Max Semenik 11:17, 3 November 2010 (UTC)
- I had a wrong or a old page. With your page I've been able to add TinyMCE. But now I have an issue ! TinyMCE break all my tab write in wiki text.
- Now I have this : {| class="wikitable" width="100%" align="center" |+ |- ! scope=col | Application Information ! scope=col | Documents |- | width="50%" | Applicat Balbitus 12:47, 3 November 2010 (UTC)
Upload a file from the edit page
On my MediaWiki setup, an Intranet MediaWiki, I'd like to have a button in the edit page that when clicked, open a popup page or popup div and allow the user to browse AND upload a file so it is easier to insert the specified file in his page/article...
To add a file, you currently have to go on the upload page, upload your file, remember the file name and then create your article and remember the file name so you can add it in your page.
Isn't there a easier way of doing this? Like adding file directly FROM the edit page? 24.226.145.73 (talk) 13:32, 3 November 2010 (UTC)
Taxobox
Ok, so on my page i enter:
{{Taxobox
| name = Sweetbay Magnolia
| image = Sweetbay1082.jpg
| regnum = [[Plant]]ae
| divisio = [[Angiospermae]]
| unranked_classis = [[Magnoliid]]s
| ordo = [[Magnoliales]]
| familia = [[Magnoliaceae]]
| genus = ''[[Magnolia]]''
| species = '''''M. virginiana'''''
| binomial = ''Magnolia virginiana''
| binomial_authority = [[Carolus Linnaeus|L.]]
}}
BUT it shows : Format:Taxobox
Why is this? Is there an extension i need to install? I've seen this question asked before but the answer was to copy the css from the common.css templete on this site. But that does not work for me. Can someone please explain how a Taxobox works? Thank you. 79.119.212.236 (talk) 20:05, 3 November 2010 (UTC)
- Its a template. See help:templates. To make it work you need to copy it (and its dependencies) from enwikipedia page w:template:taxobox. Typically you'd use w:special:export to do this. Bawolff 20:27, 3 November 2010 (UTC)
- Thank you Bawolff for helping me understand templates - i familiarized with them and made some simple ones myself. I did export the template:taxobox from enwikipedia but when i imported i got a lot of errors like:
Warning: xml_parse() [function.xml-parse]: Unable to call handler out_() in /home/site/public_html/wiki/includes/Import.php on line 437- I installed ParserFunctions but when i use it, my wiki crashes. I'm going to study more about this things tomorrow and i'll return here if i still have questions after i read all the User Help. 79.119.212.236 22:31, 3 November 2010 (UTC)
- I'm a happy man Bawolff! All thanks to you - Thanks a gazzilion times!! Taxobox - up and ready!! And i've learned how to import/export!
- The warning was because i had to erase the <restriction> elements from the xml and the extension ParserFunctions crashed because i was downloading the trunk not the version for my mediawiki version. And now everything looks great - Thanks again for pointing me in the right direction - I'll celebrate tonight in your honor good sir! 79.116.69.100 08:55, 4 November 2010 (UTC)
- Sorry for reopen, Im confused, I wanna insert The template Taxobox in my local site, or maybe create a infobox taxonomy. i Try export from w:en:Special:Export/Template:Taxobox but i think is not complete, there are a special step to get dependencies? Yermandu 04:52, 26 July 2011 (UTC)
- You probably need to mark the box "Include templates" in Special:Export. Hamilton Abreu 23:43, 26 July 2011 (UTC)
The requested URL /ro/File:Muntii-parang-2_l.jpg was not found on this server.
Hi! I've been doing some CMSs and forums so far, I'm new in wikis. Running: MediaWiki 1.16 Apache server: PHP 5.2.14, MySQL 5.0.90 As almost everyone, I've set up short URLs (no root access). Did set all permissions to 777 on image folder and all sub-folders, uploaded a test image, embeded in a test page, the image displays properly whether full-size or thumb. (The images folder is added to the $path array) BUT: When click on the image/thumb, I get the message mentioned above: "...was not found on this server." What do I miss, if anyone would gently please? Some settings, variables, parsers, ...what?! If any help (and not prohibited) you may see the page at http://wiki.romaniansociety.eu/ro/Drepturile_omului Thanks for reading. 89.122.62.83 (talk) 23:22, 3 November 2010 (UTC)
Javascript stopped working 1.17
Hi. On GrandTheftWiki, since upgrading to 1.17, our common.js has stopped loading into pages - no javascript is loading at all. This means no collapsible tables, analytics tracking or WikEd toolbar. We've made no relevant configuration changes, and userjs is off. I can't find any documentation on how to re-enable Javascript, and purging the common.js page had no effect. Gboyers (talk) 01:50, 4 November 2010 (UTC)
- Something with ResourceLoader -- Bryan (talk|commons) 19:09, 6 November 2010 (UTC)
- It loaded for me, your pages contain <script src="/load.php?debug=true&lang=en-gb&modules=site&only=scripts&skin=vector&version=20101105T185320Z"></script>, which loads Common.js[1] So it probably just doesn't work properly. Max Semenik 19:26, 6 November 2010 (UTC)
- That's the thing - everything worked before, and Common.js hasn't changed. Only the upgrade to v1.17 and ResourceLoader happened. I tried reverting to an older version of Common.js with no change.
- Even though the script tag is there, and is correct, the JS does not run in the browser. I'm assuming there's a conflict somewhere.
- It's not just Common.js that doesn't work - it's any javascript.
- Examples of JavaScript no longer working are Preferences (no tabs), editing any page (no toolbar), and collabpsible tables (at the bottom).
- An amount of CSS has also stopped working - including the diff colouring (for which I had to add some css myself to Common.css, which worked). Gboyers 23:39, 6 November 2010 (UTC)
- In your wiki's HTML, I see:
<script src="http://www.grandtheftwiki.com/index.php?title=MediaWiki:Common.js&usemsgcache=yes&ctype=text/JavaScript"></script>
- How did that get there? The URL MediaWiki outputs has
text/javascript(in lowercase) and has&action=rawin it somewhere. If you added this to try to fix the bug, it only made it worse. - Also, which revision of 1.17 are you running? Your Special:Version won't tell me. Catrope 09:57, 7 November 2010 (UTC)
- I added that line as an attempt to get some JavaScript to run, but it didn't help.
- The issue was that debug mode was enabled, and disabling it made it both CSS and JS work again immediately. Gboyers 20:51, 9 November 2010 (UTC)
- Just an addendum: I don't know why, but for some reason I had to set $wgResourceLoaderDebug to true to get JS and CSS working in the latest nightly build. 70.68.162.184 19:44, 18 February 2011 (UTC)
- Do you mean with "not working" that you don't see how/where it is loaded or that the actual functions you have in Common.js don't work ?
- Functions like LinkFA and hasClass (which you have in Common.js) work fine on your wiki when I try them from the javascript console.
- PS: The "debug=false" in the link overrides $wgResourceLoaderDebug, that way you can test both without having to mess in LocalSettings.php Krinkle 01:47, 20 February 2011 (UTC)
- uh. i still can't get this common.js to load. i tried disabling $wgResourceLoaderDebug and enabling, tried running debug to make some sense of what's causing it, but i'm having no luck.
- MediaWiki 1.17.0
- PHP 5.3.6 (cgi-fcgi)
- MySQL 5.0.24-community-nt 12.46.139.200 23:43, 2 August 2011 (UTC)
- I found that there was an asterisk * appended to the <style> tag in the Vector skin, just before the closing quotes. With debug off, load.php serves up nothing (so we get no custom styles). With debug on, it works fine. Something fishy is going on. Gboyers 23:45, 2 August 2011 (UTC)
- Gboyers - so the custom styles (and even scripts in Common.js) works with debug on in vector skin? could you tell me how to set the debug on? 12.46.139.200 17:43, 3 August 2011 (UTC)
- In your LocalSettings.php you just need to add:
- $wgResourceLoaderDebug = true; Gboyers 18:17, 3 August 2011 (UTC)
- I can confirm this behavior.
- Mediawiki 1.17 with FCKEditor extension (which uses javascript) does only work with
- $wgResourceLoaderDebug = true;
- Apart from FCKEditor, this is a normal mediawiki installation without special modifications.
- The installation version was 1.13 or 1.14 and upgraded from 1.16 to 1.17 currently. Philipp 11:16, 11 August 2011 (UTC)
- Is there any news to this problem yet? Philipp 09:18, 13 September 2011 (UTC)
- Gboyers - so the custom styles (and even scripts in Common.js) works with debug on in vector skin? could you tell me how to set the debug on? 12.46.139.200 17:43, 3 August 2011 (UTC)
- Just an addendum: I don't know why, but for some reason I had to set $wgResourceLoaderDebug to true to get JS and CSS working in the latest nightly build. 70.68.162.184 19:44, 18 February 2011 (UTC)
Philipp 09:18, 13 September 2011 (UTC)
- Could you clarify that, when you reported the problem, was the problem that you can't see where/how it's loaded or that the functionality inside is not loaded ?
- ResourceLoader combines and minifies resources to save bandwidth http requests, enabling debug mode is, well, for debugging. Please elaborate on what the problem is, what goes wrong if you don't set "
$wgResourceLoaderDebug = true;" ? By explaining that and allowing us to verify it it will enable the developer improve the software and fix the problems, right now your site is loading slower than it has to be because it's running in debug mode. Krinkle 05:43, 5 August 2011 (UTC)- Sure. This is as far as I have got in the troubleshooting. For some reason, ALL of the load.php HTML style tags always have an asterisk at the end of the URL, as here:
<link rel="stylesheet" href="/load.php?debug=false&lang=en-gb&modules=mediawiki.legacy.commonPrint%2Cshared%7Cskins.vector&only=styles&skin=vector&*" />- For the load.php URL that loads Mediawiki:Vector.css, this was a problem. It seems that with debug=false, the URL (with the asterisk) provided null output. With debug=true, it provided the expected debug indented output. With the asterisk manually removed from the URL, it worked both times.
- The effect this has was intermittent. On some page loads, the CSS would load, on others it wouldn't. I initially thought it was a timeout or 403 but enabling debug solved the problem and it all works all the time.
- Again - I'm not 100% sure as to the cause, or if this applies to anyone else, but that's just the quick dirty fix that made it work for me. Gboyers 15:18, 5 August 2011 (UTC)
- Did you get a resolution on this? I am having the same problem. For me, it is both JS and CSS files that seem to get the asterisk causing a 500 Server Error.
- When I copy & paste the included URLs into their own window, I can reproduce this 500 error. But when I remove the asterisk from the URL, everything works fine.
- If Krinkle's reply below is to be believed, then maybe it's a .htaccess problem? 18.111.58.13 19:52, 24 October 2011 (UTC)
- I think it might have had something to do with our wiki farm setup, where I had been editing the apache includes. I changed back to using regular .htaccess and that seems to have sorted a number of issues. Gboyers 03:20, 31 October 2011 (UTC)
- The asterisk at the end is harmless and doesn't have anything to do with your issue. It's a security fix for old versions of Internet Explorer to avoid security problems. Catrope and Tim_Starling can tell you more about that.
- Could you link to the url that is causing the null output ?
- Have you removed the part from your install ? It's not supposed to be there and doesn't work. Krinkle 22:43, 8 August 2011 (UTC)
<script src="http://www.grandtheftwiki.com/index.php?title=MediaWiki:Common.js&usemsgcache=yes&ctype=text/JavaScript"></script>
WYSIWYG editor / Extension tables
Hello everyone,
Today I have a little question ! Does anyone knows an extension, WYSIWYG editor or anything else that could simplify the entry of tables?
I have tested TinyMCE but it don't help me with the tabs, I have a lot of excel sheet to put in my mediawiki and it's take me too much time to input a tables with wiki text. I have also some colors in the excel sheet so if the extension take also in charge the font color and the backgroung color of a raw it will be fantastic ! Balbitus (talk) 13:45, 4 November 2010 (UTC)
Removing Warning: This file may contain malicious code, by executing it your system may be compromised.
- How can I remove the warning message "This file may contain ..." from our wiki pages
- Thanks,
- Al 66.207.201.146 (talk) 23:25, 4 November 2010 (UTC)
- Find the message in Special:Allmessages and blank it. -- Bryan (talk|commons) 19:07, 6 November 2010 (UTC)
- See Manual:$wgTrustedMediaFormats Sophivorus (talk) 15:16, 18 March 2016 (UTC)
- Please note that this warning is there for a reason. If you trust your uploaders that's fine. However, technically the files, for which this message is displayed, may be malicious. 87.123.63.39 (talk) 15:49, 18 March 2016 (UTC)
MessagesEn.php is missing
I have gone through the mediawiki installation and receive and error after processing the configuration form. It reads.
MessagesEn.php is missing
Any thoughts?
PHP - 5.1.1 MySQL - 5.1 Windows Server 2003 Chrispilie (talk) 17:29, 5 November 2010 (UTC)
- You're missing that file, reupload everything (no need to reinstall after that). Max Semenik 17:35, 5 November 2010 (UTC)
- is that a reinstall of MySQL or mediawiki? The reason I ask is that I tried installing mediawiki 3 times and get the same error. Chrispilie 18:10, 5 November 2010 (UTC)
- Not reinstall. You need to reupload the files. Re-running the installer script won't help. Max Semenik 19:09, 5 November 2010 (UTC)
- misread your post ;) Chrispilie 21:15, 5 November 2010 (UTC)
- Hi,
- I've got the same message: "MessagesEn.php is missing."
- I've reuploaded the files, but nothing changed, same message.
- Wiki: 1.18.0
- SQL: Postgresql 9.1.2
- php 145.228.61.5 09:48, 15 December 2011 (UTC)
- I got the same message @ v 1.17 145.228.61.5 10:29, 15 December 2011 (UTC)
- is that a reinstall of MySQL or mediawiki? The reason I ask is that I tried installing mediawiki 3 times and get the same error. Chrispilie 18:10, 5 November 2010 (UTC)
Where should I highlight a wiki collaboration project?
I have, together with some others, put together a proposal for a wiki Q&A site called WikiSpeedia. The goal is to provide help and community for experts and moderators across a variety of wiki platforms.
I think this could be of great benefit to MediaWiki user's and other people with a passion for sharing information, whether publically or behind company firewalls. Here's my question: where can I highlight this where it will be effective but not draw disapproval? Note: there's no money involved so there is nothing to sell except a free exchange of information. Thanks in advance for any advice.
--Robinson Weijman 06:48, 6 November 2010 (UTC)
- This is a place for technical discussion of the MediaWiki software, so not the appropriate place for your question. -- Bryan (talk|commons) 19:06, 6 November 2010 (UTC)
- Bryan - thanks for the reply. So, where is the best place for my question? Robinson Weijman 13:40, 9 November 2010 (UTC)
Unnamed div surrounding the table of contents
Alright, so I have an unnamed div wrapped around the table of contents, and it has its own stylesheet. You can see how this might be a problem, as it prevents me from applying my own styling to it. However, I can't find it in the code. Does anyone know where it is, or how I can change its setup? I'm desperate for help, here.
Image: http://i52.tinypic.com/2d27j8p.jpg BonesTheRabbit (talk) 20:17, 6 November 2010 (UTC)
Can new mediawiki pages be created from content based on an external website via RSS?
I am looking into whether new mediwiki pages can be created from content created on another website and then sent via RSS to mediawiki.
Is this possible?
The process i would like to be able to achieve is as follows:
1. New page created on existing website. 2. New content is passed to Mediawiki to make use of its categorisation and wiki linking. 3. New content needs to be able to be placed in a specific category or multiple categories if it meets the criteria. 4. Update is made on existing external website showing a link to the newly generated Mediawiki content.
Is this possible?
If RSS linking is not possible then is there another method of transport that can be used to link the external site to Mediawiki? It seems easier to export content from Mediawiki than to import. Is this correct?
Any assistance would be greatly appreciated.
Many thanks in advance,
Adam Greenitcompany (talk) 21:59, 6 November 2010 (UTC)
Search related questions
- Is there a variable or edit now place to remove markup from search results?
- Is there are to remove the descriptions from search results and only show titles? 68.9.159.22 (talk) 18:44, 7 November 2010 (UTC)
Uploading error
Hi all, I hope someone can help.
Here is an example of an error that has started happening when I try to upload an image on my wiki:
---
Warning: mkdir() [function.mkdir]: Permission denied in /home/pinkliza/public_html/herebemonsters.net/includes/GlobalFunctions.php on line 2176
Warning: wfMkdirParents: failed to mkdir "/home/pinkliza/public_html/herebemonsters.net/images/4/42" mode 511 in /home/pinkliza/public_html/herebemonsters.net/includes/GlobalFunctions.php on line 2179
---
This message also appears under warnings:
---
Could not create directory "public/4/42".
---
These errors never used to happen and I found I could upload just fine.
My installed software is as follows: MediaWiki 1.16.0 PHP 5.2.14 (apache2handler) MySQL 5.0.91-community
Does anyone have any idea what I need to do to fix? Please let me know if you need more info off me. Thank you! 222.155.54.194 (talk) 06:32, 8 November 2010 (UTC)
- You apparently made a configuration change to your webserver or changed the permissions of the images directory. Check the user and group the webserver is running in and whether those have access to the images directory. -- Bryan (talk|commons) 20:15, 11 November 2010 (UTC)
- Can you explain what to look for a little better because I moved servers and now have the same problem. I set the folder permissions to 777 but still get the same error. 80.79.127.146 08:32, 20 February 2011 (UTC)
- Makes sure you
chmod -R 777 ./imagesto recursively change all the directories under it and not just the parent. Unifiedrepublic 07:43, 1 March 2011 (UTC)
- Makes sure you
- Can you explain what to look for a little better because I moved servers and now have the same problem. I set the folder permissions to 777 but still get the same error. 80.79.127.146 08:32, 20 February 2011 (UTC)
204.101.78.248 18:50, 25 October 2011 (UTC)
Extracting user email
Hi, I am an admin at a wiki. How do I extract a user's email address from my database? It says it stored as a [BLOB - 22B]. There were some spammers who registered their email and I'd like to report their emails. Bluesoju (talk) 11:52, 8 November 2010 (UTC)
- Configure phpMyAdmin to show blob contents; set the following in config.inc.php:
$cfg['ShowBlob'] = true;
- and then in the web page, click on "options" just above the entries, select "show BLOB contents" and click execute. iAlex 18:22, 8 November 2010 (UTC)
ampersand doesn't work on page names anymore ?
Since the upgrade to 1.16, page names (and only page names) containing an ampersand character doesn't show the ampersand, but the code instead. For example, http://www.soundamental.org/index.php/Jam_&_Spoon (one can see "Jam & amp ; Spoon" instead of the usual "Jam & Spoon" from last version above the red line Is there a way to correct this ? a mySQL request ? Thanks for your answer 86.209.31.111 (talk) 13:36, 8 November 2010 (UTC)
- No, that's a double escaping (i.e. calling a second time the PHP function htmlspecialchars() on an already escaped text); check your skin to remove this. iAlex 17:43, 8 November 2010 (UTC)
- Thanks for your answer !
- We tried something, but we are not very familiar with the synthax
- A friend thought the problem came from here
- <?php $this->data['displaytitle']!=""?$this->html('title'):$ this->text('title') ?>
- But nothing happens when we delete the entire line, and the wiki goes offline if we delete only a part
- Is there a way to get a little more help ?
- Thanks in advance 86.209.159.124 10:22, 9 November 2010 (UTC)
- Ok, we finally managed to update the skin files and it works now
- Sorry for the inconvenience :D 86.209.159.124 16:44, 9 November 2010 (UTC)
Sidebar on Mediawiki.com
Hello,
Im a new developer and I was wondering if anyone could tell me what extension Mediawiki.com uses to get the drop down dynamic sidebar. I have found various Tree and Drop down menu extensions but none that work like the sidebar on the Mediawiki site. Can anyone point me in the right direction to figuring out this code?
Thanks for your help! 204.187.65.33 (talk) 15:37, 8 November 2010 (UTC)
- Extension:Vector for MediaWiki 1.17+; Extension:UsabilityInitiative for MW 1.16. iAlex 17:49, 8 November 2010 (UTC)
- I have installed the UsabilityInitatiaive extension and turned on the vector skin, however I am confused on how to proceed from here to get the collapsible nav bar on the left to work. What would my next step be?
- Thanks for all your help so far. 204.187.65.33 20:15, 8 November 2010 (UTC)
- Did you add the following to your LocalSettings.php file?
- iAlex 12:36, 9 November 2010 (UTC)
require_once( "$IP/extensions/UsabilityInitiative/Vector/Vector.php" );
- I did but I also added other code that I guess is for customizing the vector skin more. Once I removed it, it works great. Thanks for you help! 204.187.65.33 14:09, 9 November 2010 (UTC)
- Hey,
- I just copied the Extension:UsabilityInitiative in the extension folder. what do I have to do the next. 86.32.223.17 14:09, 28 November 2010 (UTC)
- Hey,
- I just copied the Extension:UsabilityInitiative in the extension folder. what do I have to do the next. 86.32.223.17 14:09, 28 November 2010 (UTC)
- I did but I also added other code that I guess is for customizing the vector skin more. Once I removed it, it works great. Thanks for you help! 204.187.65.33 14:09, 9 November 2010 (UTC)
I get a blank content
Hello, This is my mediawiki link: http://www.ikhwanwiki.com/index.php I get a blank page with no contents in the center, there is a javascript error: Message: Syntax error URI: http://www.ikhwanwiki.com/index.php?title=-&action=raw&gen=js&useskin=monobook
This issue has occured after I've lost my entire site and restored it from backup This is my system information: http://www.ikhwanwiki.com/phpinfo.php 41.153.192.141 (talk) 17:02, 8 November 2010 (UTC)
Configuration errors - Fatal error: Call to a member function isMultipleKey() on a non-object
I am installing Media Wiki and the installation itself went without any problems, but when trying to configure it I get these errors:
- MediaWiki 1.16.0 Installation
Don't forget security updates! Keep an eye on the low-traffic release announcements mailing list.
Checking environment...
Please include all of the lines below when reporting installation problems.
PHP 5.2.14 installed
Found database drivers for: MySQL SQLite
PHP server API is cgi-fcgi; using ugly URLs (index.php?title=Page_Title)
Have XML / Latin1-UTF-8 conversion support.
Session save path (/tmp) appears to be valid.
PHP's memory_limit is 90M bytes.
XCache installed
Found GNU diff3: /usr/bin/diff3.
Found ImageMagick: /usr/bin/convert; image thumbnailing will be enabled if you enable uploads.
Found GD graphics library built-in.
Installation directory: /home/rnbiblecom/wiki.biblecomic.net
Script URI path:
Installing MediaWiki with php file extensions
Environment checked. You can install MediaWiki.
Generating configuration file...
Database type: MySQL
Loading class: DatabaseMysql
Attempting to connect to database server as wikibiblecomicne...success.
Connected to mysql 5.1.39-log; enabling MySQL 4.1/5.0 charset mode
Database wiki_biblecomic_net exists
There are already MediaWiki tables in this database. Checking if updates are needed...
...ipblocks table does not exist, skipping new field patch
...ipblocks table does not exist, skipping new field patch
...already have interwiki table
Notice: Trying to get property of non-object in /home/rnbiblecom/wiki.biblecomic.net/includes/db/DatabaseMysql.php on line 264
Warning: mysql_num_fields(): supplied argument is not a valid MySQL result resource in /home/rnbiblecom/wiki.biblecomic.net/includes/db/DatabaseMysql.php on line 264
Fatal error: Call to a member function isMultipleKey() on a non-object in /home/rnbiblecom/wiki.biblecomic.net/maintenance/updaters.inc on line 329
Hoping someone has a suggestion to what I should do, thanks. 77.212.38.156 (talk) 14:00, 9 November 2010 (UTC)
- I have the same problem :( Also hoping for a answer
- Notice: Trying to get property of non-object in /path/includes/db/DatabaseMysql.php on line 264
- Warning: mysql_num_fields(): supplied argument is not a valid MySQL result resource in /path/includes/db/DatabaseMysql.php on line 264
- Fatal error: Call to a member function isMultipleKey() on a non-object in /path/maintenance/updaters.inc on line 329 75.72.213.250 09:19, 18 November 2010 (UTC)
- For a new install you should drop the old wikidb before the installation. it has helped me.
- If you are upgrading and have data to preserve you should follow the upgrade instructions and make sure you backup the database before upgrading. Chwalebne 17:00, 18 November 2010 (UTC)
- Looks like your database misses the recentchanges table, which probably means that it's a roast. What tables do you have? Max Semenik 06:00, 19 November 2010 (UTC)
- Try to check prefix name in $wgDBprefix. Leksey 15:19, 23 September 2011 (UTC)
How To show data from mysql tables
Hi,
I'm new to Mediawiki and mysql. Can you please let me know how to show mysql data into mediawiki? What are the steps to be followed?
Thanks for your help.
regards
Suresh Csuresh79 (talk) 20:44, 9 November 2010 (UTC)
Category does not contain links to their pages
My configuration:
MediaWiki 1.16 | PHP 5.1.6 | SQLite
The problem is that when viewing a category does not display pages that are in this category. However, if you browse the list of categories, in it for each category in brackets indicates the number of pages in her inbox. When you install any errors have occurred. Everything else works perfectly.
Many thanks! 81.30.54.82 (talk) 13:52, 10 November 2010 (UTC)
- This is a known problem, I suspect that this is caused by a pre-historical SQLite version. By the way, you can help us to investigate this - see the latest post in Bugzilla. Max Semenik 16:18, 10 November 2010 (UTC)
- Use MySqL and there is no any problem! 81.30.54.82 05:29, 11 November 2010 (UTC)
Install error Warning: preg_replace() [function.preg-replace]: Compilation failed: this version of PCRE is not compiled with PCRE_UTF8 support at offset 0 in /var2/mediawiki-1.16.0/includes/Title.php on line 2285
I am running into an error while trying to install mediawiki
mediawiki version 1.16.0 | Red Hat Enterprise Linux Server release 5.5 (Tikanga) | Linux servername 2.6.18-194.17.1.el5 #1 SMP Mon Sep 20 07:12:06 EDT 2010 x86_64 x86_64 x86_64 GNU/Linux | php-5.1.6-27.el5 | sqlite-3.3.6-5
On the install/configuration page it tells me "Environment checked. You can install MediaWiki" However when I fill in all the info and click install mediawiki I encounter the following error.
Warning: preg_replace() [function.preg-replace]: Compilation failed: this version of PCRE is not compiled with PCRE_UTF8 support at offset 0 in /var2/mediawiki-1.16.0/includes/Title.php on line 2285
Please advise. Thanks in advance. Ajmarsh (talk) 15:55, 10 November 2010 (UTC)
- The problem is exactly what it says: your PHP is misconfigured. We'll see to add a check for this condition in installer. Max Semenik 16:24, 10 November 2010 (UTC)
- Thanks, any advice on how to get it configured correctly?
- I'm pretty sure I have the right version of pcre installed and it claims to have UTF-8 support.
- pcretest -C
PCRE version 6.6 06-Feb-2006Compiled withUTF-8 supportNo Unicode properties supportNewline character is LFInternal link size = 2POSIX malloc threshold = 10Default match limit = 10000000Default recursion depth limit = 10000000Match recursion uses stackAjmarsh 16:25, 10 November 2010 (UTC)- This is a command-line tool, while we're speaking about the PHP module. Here's a simple check for these capabilities: <?php echo preg_replace( '/[\x{0430}-\x{04FF}]/iu', '', '-АБВГД-' );
- Save it in UTF-8 encoding and run. It should output two dashes without warnings if your PCRE is ok. Max Semenik 16:50, 10 November 2010 (UTC)
- ok I ran your test above on the command line and it did indeed produce two dashes. I think my PCRE is working correctly. I think there may be another problem here. Anything else you can think of to help me isolate and fix this problem. Ajmarsh 18:49, 10 November 2010 (UTC)
- Sometimes command line and web server have two different versions of PHP. In any case, things broke for you on the following chunk of code: preg_replace( '/[ _\xA0\x{1680}\x{180E}\x{2000}-\x{200A}\x{2028}\x{2029}\x{202F}\x{205F}\x{3000}]+/u', 'foo', 'bar' ); Try running it both from command line and web server. Max Semenik 18:56, 10 November 2010 (UTC)
- I added that code to my test script. Seem to run on the command line, does not produce any output. There is only one version of php on this machine.
#rpm -qa | grep -i phpphp-pdo-5.1.6-27.el5php-common-5.1.6-27.el5php-cli-5.1.6-27.el5php-5.1.6-27.el5Ajmarsh 19:03, 10 November 2010 (UTC)- Still, you should try running it from the web.
- By the way, why your PHP is so old? We're discussing dropping support for PHP 5.1 in MW 1.17. Upgrading to something newer will likely help. Max Semenik 21:05, 10 November 2010 (UTC)
- This is for a work project. Redhat is the only supported Linux distro I have access too. PHP 5.1.6-27 is what Redhat provides. Redhat is a pretty popular distro I can't believe I'm the only guy to have encountered this problem. Is there a possible workaround perhaps? Thanks again. 137.100.121.30 21:11, 10 November 2010 (UTC)
- You have been continuously ignoring MaxSem's request to run it from the web. So other than that, there is nothing you can do. 129.247.247.238 15:13, 15 November 2010 (UTC)
- Sometimes command line and web server have two different versions of PHP. In any case, things broke for you on the following chunk of code: preg_replace( '/[ _\xA0\x{1680}\x{180E}\x{2000}-\x{200A}\x{2028}\x{2029}\x{202F}\x{205F}\x{3000}]+/u', 'foo', 'bar' ); Try running it both from command line and web server. Max Semenik 18:56, 10 November 2010 (UTC)
- I am getting a similar error. I copied this code <?php echo preg_replace( '/[\x{0430}-\x{04FF}]/iu', , '-АБВГД-' ); into a text file and saved it as test.php in UTF-8 encoding. Moved it into my webserver directory and changed permission. Ran it but nothing is displayed. 67.130.62.194 17:03, 28 March 2012 (UTC)
- ok I ran your test above on the command line and it did indeed produce two dashes. I think my PCRE is working correctly. I think there may be another problem here. Anything else you can think of to help me isolate and fix this problem. Ajmarsh 18:49, 10 November 2010 (UTC)
- Done in r76456. Max Semenik 16:46, 10 November 2010 (UTC)
Smart search box?
I was wondering what search box is being used on this site (e.g. search results while typing). I've searched all the extensions but I can't find one that does this. It also doesn't do it natively on my installation. Using MediaWiki 1.16 with Vector skin. 82.150.6.100 (talk) 18:34, 10 November 2010 (UTC)
- Actually I found some now (previously I only searched for 1.16 extensions) but they're not as clean looking as the one on this site. So I'd still like to know which one is used here in case anyone knows. 82.150.6.100 18:42, 10 November 2010 (UTC)
- Oops I found $wgEnableMWSuggest now. Turns out this is now a standard feature (I upgraded from an older version so it wasn't activated). Still doesn't look really the same but it does me fine. Sorry to bother this support desk. 82.150.6.100 18:47, 10 November 2010 (UTC)
- When you check Special:Version for a wiki a listing is provided of all installed extensions. For example here they have MWSearch installed. (Note that as described on the extension page the extension depends on the Lucene search being installed and running, a fairly complicated undertaking.) Tlosk 00:53, 11 November 2010 (UTC)
- Oops I found $wgEnableMWSuggest now. Turns out this is now a standard feature (I upgraded from an older version so it wasn't activated). Still doesn't look really the same but it does me fine. Sorry to bother this support desk. 82.150.6.100 18:47, 10 November 2010 (UTC)
(RESOLVED) download.wikimedia.org server down?
I am trying to download mediawiki from the following links: download:mediawiki/1.16/mediawiki-1.16.0.tar.gz it seems that the download server is down. None of the files in this server is available. Could anyone please help to fix it? Thanks. Waterfallbay (talk) 18:42, 10 November 2010 (UTC)
- Yes, this is a known issue, for now you can download it from http://noc.wikimedia.org/mediawiki-1.16.0.tar.gz iAlex 20:35, 10 November 2010 (UTC)
- Also down! 84.143.0.39 16:44, 25 November 2010 (UTC)
Sandbox Bot
Hi, guys! Was wondering if you guys could share me the auto-clean sandbox bot and how can I implement it on my own wiki. I just really need it badly. Thanks in advance! Achilles2010 (talk) 08:26, 11 November 2010 (UTC)
Skinnin proper NS
How can I skin just one NS. Lets say I want to skin just ns file.--Juan de Vojníkov 10:08, 12 November 2010 (UTC)
- Try Extension:SkinPerNamespace. Reach Out to the Truth 12:29, 12 November 2010 (UTC)
- Thanks for that. But I have found it doesnt import the skin via URL. But I found a method how to call a skin and dont use JavaScript nor mw extension. it can be done just via selectors which as every ns even every page on mediawiki has its proper class for body. Juan de Vojníkov 23:53, 26 November 2010 (UTC)
FlagPage extension and 1.17alpha
http://www.mediawiki.org/wiki/Extension:FlagPage
Any way to make this work, or create any kind of 'flagging' system, with MediaWiki 1.17alpha? 195.194.21.157 (talk) 13:03, 12 November 2010 (UTC)
- It works fine in MW 1.17, it's just broken in vector :)
- Vector uses Manual:Hooks/SkinTemplateNavigation instead of Manual:Hooks/SkinTemplateTabs, so I'd have to fix that. I'll see what I can do. Church of emacs talk · contrib 17:07, 12 November 2010 (UTC)
- Same guy as OP - I extend my thanks, gentleman. LegendofSagan 17:10, 12 November 2010 (UTC)
- Fixed in r76583. Thanks for reporting it. Church of emacs talk · contrib 17:28, 12 November 2010 (UTC)
- Same guy as OP - I extend my thanks, gentleman. LegendofSagan 17:10, 12 November 2010 (UTC)
Auto create account / auto login
Hy,
I'm trying since too many hours to instal FBConnect with two difficulties: finding compatible mediawiki with this extension, and finding how to make it works, and verifying the good version of the facebook SDK...
According that I already have code and sources from facebook for database query and login, I would like to find how create automaticaly an account for a facebook visitor.
However I don't find the good page to explain me this :p
I would like also to verify the login (facebook or my site ID(1)) during the loading of the userlogin.php template, and if user is connected (ID(1):facebook or my site), I would like to get corresponding wiki user ID(2) in the database to send a "connect this ID" : how to send this login with such an ID(2).
Thanks for my computer which is afraid by the proximity of the window :p Lamidesbetes (talk) 18:50, 12 November 2010 (UTC)
- Explaination of the auto connect desired:
- I got the ID(1), no ID(2) corresponding to this ID1:
- -attrib a new ID2 (wiki)
- -chossing a password
- -get details for the account from ID1 (real name...) and adding them automaticaly to the profil user ID2 on the wiki...
- Please help (my computer and me). Lamidesbetes 18:53, 12 November 2010 (UTC)
Removing dropdown menu in Vector tabs?
Talking about these. How do I remove the dropdown and make these actions tabs like their brethren? LegendofSagan (talk) 19:12, 13 November 2010 (UTC)
Extension shows source code of current page
Help please to code that extension or give link if it already exists. 217.21.40.1 (talk) 12:01, 14 November 2010 (UTC)
- http://en.wikipedia.org/w/index.php?action=raw&title=Main_Page and/or use the API. Bawolff 01:56, 16 November 2010 (UTC)
Download link to MW 1.15 legacy on download page dead
Dear all,
I discovered that the download link to the legacy release mediawiki 1.15.5 legacy is dead. Please check and update. The link is situated on the mw download page in section Legacy release
Many thanks! Stoettner (talk) 21:12, 16 November 2010 (UTC)
- download.wikimedia.org is down. 1.16 is also available from noc.wikimedia.org, but as far as I can tell 1.15 isn't. Reach Out to the Truth 22:35, 16 November 2010 (UTC)
- This is a known issue, the download server is temporarily down. You can get the latest version (1.16) at http://noc.wikimedia.org/mediawiki-1.16.0.tar.gz . I'm not aware of any mirrors of the older versions like 1.15. If you _really_ need it I suppose you could download it from svn. Bawolff 22:36, 16 November 2010 (UTC)
- I have a copy, I will email it to Roan to see if he can chuck it on NOC as well since I don't have anywhere to upload it myself. Peachey88 00:08, 17 November 2010 (UTC)
- Ended up getting the tarball from Tim, but thanks all the same. http://noc.wikimedia.org/mediawiki-1.15.5.tar.gz Catrope 11:13, 19 November 2010 (UTC)
403 forbidden on home page, need to redirect.
|
Mediawiki 1.16.0
|
I am getting this error on the dead-rising-wiki.com page:
403 forbidden
Forbidden
You don't have permission to access / on this server.
Additionally, a 404 Not Found error was encountered while trying to
use an ErrorDocument to handle the request.
Apache/1.3.33 Server at dead-rising-wiki.com Port 80</pre>
My wiki is found in the /w sub-folder:
:http://dead-rising-wiki.com/w/index.php?title=Dead_Rising_Wiki
The wiki works fine. I just need to redirect:
:http://dead-rising-wiki.com
to
:http://dead-rising-wiki.com/w/index.php?title=Dead_Rising_Wiki
I know I need to create a .htaccess file and put it in the root folder. I have created one, but all the different coding I try does not work.
Please help. Thanks in advance. [[User:Adamtheclown|Adamtheclown]] ([[User talk:Adamtheclown|talk]]) 04:51, 17 November 2010 (UTC)
:. [[User:Adamtheclown|Adamtheclown]] 04:54, 17 November 2010 (UTC)
== Migrating data from multiple MediaWiki servers to a single MediaWiki server ==
My current employer has 3 different MediaWiki servers that they want to migrate into a single MediaWiki server.
What is the best way to do this? Is there some kind of utility available to download that can handle the migration process?
I have seen that MediaWiki has functionality to export pages, but I want to export the contents of the entire wiki, including all users, categories, images, links, history, etc not just a few pages at a time. [[User:Ashleyk|Ashleyk]] ([[User talk:Ashleyk|talk]]) 08:08, 17 November 2010 (UTC)
:Do you want to merge them to three different wikis on the same server or to one wiki? [[User:MaxSem|Max Semenik]] 04:44, 18 November 2010 (UTC)
::Preferably into one single wiki, but if that's not possible then I guess three different wikis on the same server will do. [[User:Ashleyk|Ashleyk]] 06:48, 18 November 2010 (UTC)
:::Never mind, I discovered a way that I can achieve this.
:::I can run maintenance/dumpBackup.php to export the wiki pages as XML and then maintenance/importDump.php to import the XML. [[User:Ashleyk|Ashleyk]] 08:47, 18 November 2010 (UTC)
== Content encoding error in load.php (forced gzip?) ==
Hello!
I am now in a process of upgrading my MediaWiki from an older 1.17alpha (at http://www.tiptheplanet.com/) to newer r76881 (at http://new.tiptheplanet.com).
As you can see on these links, the first one works perfectly, the second, not so much. The faulty feature introduced in newer revisions is ResourceLoader (load.php), which fails to load in any browser, leaving the site without any styles or scripts.
<code>load.php</code> sends HTTP 200, and everything seems to be ok, but no browser can read the contents, giving such errors in major browsers:
*'''Content Encoding Error:''' The page you are trying to view cannot be shown because it uses an invalid or unsupported form of compression. ''(in Firefox)''
*Failed to load resource ''(in Safari and Chrome consoles)''
As an example, you can have a look at [http://new.tiptheplanet.com/load.php?debug=true&lang=en&modules=mediawiki.legacy.shared&only=styles&skin=vector].
I have also seen a bug filled at [[bugzilla:25667]], but it hasn't been resolved yet.
Thanks for your time, and for, all in all, a great wiki software! I hope someone can help me with that issue, thanks! [[User:Holek|Holek]] ([[User talk:Holek|talk]]) 14:20, 17 November 2010 (UTC)
== translation ==
I operate a Wikimedia site and I want to translate from english to french. I want to keep the same content and tables of the original page. I want to name the translated page to Fr."English name" How do I automatically translate the page and save it under a new name for further editing? [[Special:Contributions/173.34.149.142|173.34.149.142]] ([[User talk:173.34.149.142|talk]]) 17:09, 17 November 2010 (UTC)
:Were you able to do this? I have a similar need.
:Thanks [[Special:Contributions/128.61.191.50|128.61.191.50]] 19:54, 12 January 2011 (UTC)
::Same here, did anyone find out about this? [[Special:Contributions/66.236.77.178|66.236.77.178]] 18:29, 18 March 2011 (UTC)
:::Have you tried looking at some of the articles on mediawiki, I am not sure what exactly you are looking for, or if these links will be of any help:
:::http://www.art122-5.net/index.php/MediaWiki_multi-Language_management_with_the_extension_MultiLanguageManager
:::http://www.mediawiki.org/wiki/Extension:Translate
:::http://www.mediawiki.org/wiki/Extension:MultiLanguageManager
:::http://www.mediawiki.org/wiki/Project:Translation
:::http://www.mediawiki.org/wiki/Extension:Google_Translator [[User:Ron Barker|Ron Barker]] 20:51, 18 March 2011 (UTC)
== translate ==
I operate a Wikimedia site and I want to translate from english to french. I want to keep the same content and tables of the original page. I want to name the translated page to Fr."English name" How do I automatically translate the page and save it under a new name for further editing? [[Special:Contributions/173.34.149.142|173.34.149.142]] ([[User talk:173.34.149.142|talk]]) 21:56, 17 November 2010 (UTC)
== Change default book sources ==
# MediaWiki: 1.6.8
# PHP: 4.4.2 (apache2handler)
# MySQL: 4.1.18-log
I would like to change a book source which is already appearing on the default page.
That is on the default Amazon link, I want to add my Amazon Associates ID tag to the linkURL.
Where do I go in the code to do this? [[User:Wjhonson|Wjhonson]] ([[User talk:Wjhonson|talk]]) 00:02, 19 November 2010 (UTC)
== Multiple Protection Levels ==
{{:Manual talk:$wgRestrictionLevels}} '''[[User:Multiple Protection Levels|<span style="color:blue;">Multiple Protection Levels</span>]]<sup>''[[User talk:Multiple Protection Levels|<span style="color:blue;">Talk</span>]]'''''</sup> 02:33, 19 November 2010 (UTC)
:Hi there,
:Unfortunately, this feature has not been implemented in MediaWiki. You'll probably need to implement it yourself -- the best places to look are <tt>includes/ProtectionForm.php</tt> and in <tt>includes/api/ApiProtect.php</tt>. That's where the protect/unprotect interfaces (both API and web) are implemented. [[User:Werdna|Andrew Garrett]] 01:22, 22 November 2010 (UTC)
== How to deploy MediaWiki in a highly available and fault tolerant configuration? ==
I am investing the possibilty of deploying MediaWiki inside my company. I have not found the documentation that I need. How do I deploy MediaWiki in an HA and FT configuration so there is no single point of failure? In the simplest senario can I install two apache servers on two unix servers and point them to a single MySQL database? If I put them behind a load balancer would I need to enable session persistence?
Thank You for your help.
-Raul [[User:Raul.chiriboga|Raul.chiriboga]] ([[User talk:Raul.chiriboga|talk]]) 22:22, 19 November 2010 (UTC)
== (Resolved)Are there forbidden character sequences that can cause 404 errors? ==
Hi! Here's my Special:Version info
<pre>Product Version
MediaWiki 1.15.1
PHP 5.2.14 (cgi-fcgi)
MySQL 5.1.39-log
On my MediaWiki (http://pj.freefaculty.org/cgi-bin/mw), everything works fine, except, I started to get 404 errors, but only when I entered some magic character string. I was writing about Linux file permissions and I pasted in some text output from a Linux terminal and after submitting that to the wiki, either by preview or save, the error message says:
Not Found The requested URL /cgi-bin/mw/index.php was not found on this server. Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.
I went back to the edit window and gradually cut out material until I found the thing causing the problem. This one line in the text of my wiki message causes that 404 error.
drwxr-xr-x 112 root root 112 Nov 18 17:21 ..
I've come here to test your wiki, and that line does not cause the 404 crash. So I'm quite stumped and have to ask for your help. If I put a blank space anywhere between the first 5 characters, there is no trouble. For example, this is OK
d rwxr-xr-x 112 root root 112 Nov 18 17:21 ..
I'm baffled. I wish you could help me.
Here's an even worse part. Once a Wiki page is saved with that destructive string, then the page cannot be opened or edited, so it can never be fixed or deleted.
Paul Johnson <pauljohn at ku dot edu> Center for Research Methods and Data Analysis
I've cut out my password info here, but other than that, this is the LocalSettings.php file.
$ cat LocalSettings.php
<?php
# This file was automatically generated by the MediaWiki installer.
# If you make manual changes, please keep track in case you need to
# recreate them later.
#
# See includes/DefaultSettings.php for all configurable settings
# and their default values, but don't forget to make changes in _this_
# file, not there.
#
# Further documentation for configuration settings may be found at:
# http://www.mediawiki.org/wiki/Manual:Configuration_settings
# If you customize your file layout, set $IP to the directory that contains
# the other MediaWiki files. It will be used as a base to locate files.
if( defined( 'MW_INSTALL_PATH' ) ) {
$IP = MW_INSTALL_PATH;
} else {
$IP = dirname( __FILE__ );
}
$path = array( $IP, "$IP/includes", "$IP/languages" );
set_include_path( implode( PATH_SEPARATOR, $path ) . PATH_SEPARATOR . get_include_path() );
require_once( "$IP/includes/DefaultSettings.php" );
# If PHP's memory limit is very low, some operations may fail.
# ini_set( 'memory_limit', '20M' );
if ( $wgCommandLineMode ) {
if ( isset( $_SERVER ) && array_key_exists( 'REQUEST_METHOD', $_SERVER ) ) {
die( "This script must be run from the command line\n" );
}
}
## Uncomment this to disable output compression
# $wgDisableOutputCompression = true;
$wgSitename = "PJMediaWiki";
## 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 = "/cgi-bin/mw";
$wgScriptExtension = ".php";
$wgFileExtensions = array( 'png','gif','svg','jpg','pdf' );
## UPO means: this is also a user preference option
$wgEnableEmail = true;
$wgEnableUserEmail = false; # UPO
$wgEmergencyContact = "pauljohn32@freefaculty.org";
$wgPasswordSender = "pauljohn32@freefaculty.org";
$wgEnotifUserTalk = false; # UPO
$wgEnotifWatchlist = false; # UPO
$wgEmailAuthentication = true;
## Database settings
$wgDBtype = "mysql";
$wgDBserver = "wiki.pj.freefaculty.org";
# MySQL specific settings
$wgDBprefix = "wiki_";
# MySQL table options to use during installation or update
$wgDBTableOptions = "ENGINE=InnoDB, DEFAULT CHARSET=binary";
# Experimental charset support for MySQL 4.1/5.0.
$wgDBmysql5 = true;
## Shared memory settings
$wgMainCacheType = CACHE_NONE;
$wgMemCachedServers = array();
## To enable image uploads, make sure the 'images' directory
## is writable, then set this to true:
$wgEnableUploads = true;
$wgUseImageMagick = true;
$wgImageMagickConvertCommand = "/usr/bin/convert";
## If you use ImageMagick (or any other shell command) on a
## Linux server, this will need to be set to the name of an
## available UTF-8 locale
$wgShellLocale = "en_US.utf8";
## If you want to use image uploads under safe mode,
## create the directories images/archive, images/thumb and
## images/temp, and make them all writable. Then uncomment
## this, if it's not already uncommented:
# $wgHashedUploadDirectory = false;
## If you have the appropriate support software installed
## you can enable inline LaTeX equations:
$wgUseTeX = false;
$wgLocalInterwiki = strtolower( $wgSitename );
$wgLanguageCode = "en";
$wgSecretKey = "9b5be89ae9788a7d9136b5a829713bc7abb7549e60374bb84a02467177483c10";
## Default skin: you can change the default skin. Use the internal symbolic
## names, ie 'standard', 'nostalgia', 'cologneblue', 'monobook':
$wgDefaultSkin = 'cologneblue';
## For attaching licensing metadata to pages, and displaying an
## appropriate copyright notice / icon. GNU Free Documentation
## License and Creative Commons licenses are supported so far.
$wgEnableCreativeCommonsRdf = true;
$wgRightsPage = ""; # Set to the title of a wiki page that describes your license/copyright
$wgRightsUrl = "http://www.gnu.org/copyleft/fdl.html";
$wgRightsText = "GNU Free Documentation License 1.3";
$wgRightsIcon = "${wgScriptPath}/skins/common/images/gnu-fdl.png";
# $wgRightsCode = "gfdl1_3"; # Not yet used
$wgDiff3 = "/usr/bin/diff3";
# When you make changes to this configuration file, this will make
# sure that cached pages are cleared.
$wgCacheEpoch = max( $wgCacheEpoch, gmdate( 'YmdHis', @filemtime( __FILE__ ) ) );
$wgGroupPermissions['*']['createaccount'] = false;
# Disable for everyone.
$wgGroupPermissions['*']['edit'] = false;
# Disable for users, too: by default 'user' is allowed to edit, even if '*' is not.
#$wgGroupPermissions['user']['edit'] = false;
# Make it so users with confirmed e-mail addresses are in the group.
#$wgAutopromote['emailconfirmed'] = APCOND_EMAILCONFIRMED;
# Hide group from user list.
#$wgImplicitGroups = array( 'emailconfirmed' );
# Finally, set it to true for the desired group.
#$wgGroupPermissions['emailconfirmed']['edit'] = true;
$wgGroupPermissions['*']['edit'] = false;
$wgGroupPermissions['user']['edit'] = false;
$wgGroupPermissions['sysop']['edit'] = true;
##Creates "Trusted" group
$wgGroupPermissions['Trusted'] = $wgGroupPermissions['user'];
$wgGroupPermissions['user' ]['edit'] = false;
$wgGroupPermissions['Trusted']['edit'] = true;
$wgGroupPermissions['sysop' ]['edit'] = true;
$wgUseTwoButtonsSearchForm = false;
##$wgUseTex = true;
$wgAllowCopyUploads = true;
$wgGroupPermissions['*']['edit'] = false;
129.237.46.125 (talk) 22:47, 19 November 2010 (UTC)
- Thats one of the more weird issues I've ever heard of.
- I think its just the phrase "drwxr" appearing in the output causing this. I think it might be your webserver, because http://pj.freefaculty.org/cgi-bin/mw/api.php?action=help&requestid=drwxr causes the issue, which doesn't really invoke much of mediawiki at all. You might want to try putting just a plain html document containing "drwxr" (and perhaps a plain php document outputting just that) to try and see if its a web server or php issue. Bawolff 03:46, 22 November 2010 (UTC)
- You are on the money. It has to be something wrong on dreamhost.
- I put up an html file with only the magic characters:
- http://pj.freefaculty.org/testbadfile.html
$ cat testbadfile.html <html> <body> drwxr </body> </html>
- And guess what? When you browse http://pj.freefaculty.org/testbadfile.html
Not Found The requested URL /testbadfile.html was not found on this server. Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.
- I will see about reporting this to the server administrators.
- Thanks for the idea. 24.124.5.113 22:59, 23 November 2010 (UTC)
- I got to the bottom of this issue on Dreamhost.com. They are running the 'Apache "mod_security" module. The module scans incoming and outgoing documents to detect/block web attacks. It guards against is a trojan horse attack through which the user tries to retrieve information about a file system.
- If
- "drwxr" or
- "uid" or
- "gid" appear in a page...
- ...even a static page, then mod_security will block that display for fear somebody has tried to snoop into the system.
- I have been asking if there is a way to create a special exception to this policy for a particular web page, but have not found a way. It is easy to exempt a particular IP client from mod_security, but not so easy to customize the particular phrases for which it scans. If this were convenient or easy to fix, I expect we would see more on how to do it. As it is, I see only frightening comments which indicate that customizing mod_security is even more difficult than customizing mod_rewrite, and even then, I'd have to be root to get around the problem.
- And here's the worst part of the whole thing. The mod_security system intentionally gives back a vague/misleading error message in order to prevent the attacker from knowing that mod_security has thwarted them. All in all, this makes it almost impossible to be a "part time" web page writer.
- My effort to write a little note about the meaning of "ls -la" on Linux has cost me about 12 hours of exploration. 129.237.46.125 15:57, 24 November 2010 (UTC)
- That seems like a rather stupid security system...
- As a hack, you could add an invisible unicode character between the drwxrwx so the filter doesn't get triggered.
- For example
drwx‌rwx(Which looks identical: drwxrwx) probably will work [2]. - Cheers. Bawolff 20:12, 24 November 2010 (UTC)
- I could not upload an image named tracert.gif. This was a screenshot of output of the tracert command. After renaming it to trace-rt.gif, everything was OK. This makes me think that O.S. commands and reserved words are forbidden. This might prevent certain types of attacks on the wiki. Nbauers 14:33, 20 June 2011 (UTC)
- Ask your hosts's support about their mod_security settings. While some stuff like prohibition on certain file names can be understandable (although stupid), some "smart" hosts prohibit people to post the word "select" to the wiki (or forum). Which is kinda like a preventative murder to save someone from being killed by criminals. Max Semenik 15:12, 20 June 2011 (UTC)
- Thanks. The problem has another twist. The file upload succeed but now I can't access the file to use it or delete it. I think I can work out how to get rid of it with ftp and MySQL table access. To err is human. To really foul things up, you need a computer. Nbauers 13:32, 21 June 2011 (UTC)
- Ask your hosts's support about their mod_security settings. While some stuff like prohibition on certain file names can be understandable (although stupid), some "smart" hosts prohibit people to post the word "select" to the wiki (or forum). Which is kinda like a preventative murder to save someone from being killed by criminals. Max Semenik 15:12, 20 June 2011 (UTC)
- See also:
- here are a lot more articles on this issue
|
100% mod_sec was the problem. Once namecheap removed the mod_sec my wiki works great. Here is youtube video of the problem: https://www.youtube.com/watch?v=82MvQXQgfHo |
|
I get this 404 error when I add this:
This is my solution:
|
Thewhitebox (talk) 16:57, 4 October 2014 (UTC)
sqlite : installation error : Enter a valid data directory
Hello,
I'm trying to run a local mediawiki (last ubuntu, mediawiki 1.16.0, php 5.3.3-1ubuntu9.1 )
When I complete the installation script (http://localhost/wiki/config/index.php), I get an error "Enter a valid data directory" in front of SQLite-specific options -> SQLite data directory
I wrote /home/my_user_name/mediawiki where mediawiki has attributes chmod 777
I don't understand whats wrong...
It's not the installation, it works when I use a specific other directory (on my ntfs drive, without any aditionnal setting...) (but not on my ntfs drive on my trucrypt partition... I don't understand...)
Any idea ?
Thanks 88.189.228.34 (talk) 00:15, 22 November 2010 (UTC)
Font size
How can i change the font size on the wiki 189.221.236.253 (talk) 18:25, 22 November 2010 (UTC)
transclusion using php
I am writing a special page using php and want to transculde another page. The syntax '{{namespace:pagename}}' results in just producing this text in the output. Any idea how to perform a transclusion in a special page using php? Gartonrd (talk) 06:45, 23 November 2010 (UTC)
my interface language
hi thank u 4 this mediawiki my version is 1.16wmf4 (r76812) my quastion is : can i make the defualt interface language for my mediawiki site arabic ? that meaning : if user (with no acount) visit my mediawiki site he get it with arabic interface not with inglish . can i get it with arabic fully ?? thank u very mutch Sofian11 (talk) 19:26, 23 November 2010 (UTC)
Show All Articles of a Category on a "normal" article
Hi.
I'm trying to call the content of a whole category on a normal page.
I tried something like that: {{:Category:NameoftheCategory}} but this command doesn't show the listed articles...
Do you have any idea?? Tjahebro (talk) 20:27, 23 November 2010 (UTC)
- You may try Extension:CategoryTree. iAlex 15:17, 24 November 2010 (UTC)
- Thank You!
- It works fine! Tjahebro 18:02, 29 November 2010 (UTC)
(RESOLVED) Upload XML files
The following discussion is closed. Please do not modify it. Subsequent comments should be made on the appropriate discussion page. No further edits should be made to this discussion.
Hi,
Everything is fine on my mediawiki 1.15.1, PHP 5.1.6 (apache2handler) and MySQL 5.0.77.
But (there is always a but...) when users try to upload XML file (it is teachers doc courses for their students), they can't with the warning text : This file contain HTML code or script...
Despite the fact that xml is added to $wgFileExtensions and not in the blacklist file.
How can I allow those upload of xml files ?
Thanks in adavance.
jh 193.52.16.15 (talk) 08:02, 24 November 2010 (UTC) I answer to myself :
This was because in the function detectScript (in includes/specials/SpecialUpload.php), the system verify the entire uploaded file to find some HTML tags which are '<a href', '<body', '<head', '<html', '<img', '<pre', '<script' and '<table'. And in the XML file to uploaded there was a <PRENOM> (First name in French) tag.
To fix the problem I change '<pre' to '<pre>' so that it's only real <pre> tag which cause the problem. Not exhaustive manner of course but it works for this case. 193.52.16.15 08:47, 29 November 2010 (UTC)
- this is not working for me i m having problem
- "This XML file does not appear to have any style information associated with it. The document tree is shown below."
- pls help 113.193.89.72 13:33, 6 May 2011 (UTC)
- Unless the file actually does contain style information, that's normal. Reach Out to the Truth 21:10, 21 May 2011 (UTC)
404 error only on two links, community portal and current events
media Wiki 1.16 PHP 5.3.3 Mysql 5.1.52 Windows 2008 iis7
when browsing the media wiki site locally on the server all links work fine. Yet when i try to browse from my workstation, these two links do not work community portal & recent changes. i get :-
404 - File or directory not found. The resource you are looking for might have been removed, had its name changed, or is temporarily unavailable.
the reset of the site works fine on my workstation.
can anyone help point me in the correct direction.
Cheers Mark 94.245.127.11 (talk) 15:27, 24 November 2010 (UTC)
- Hi sorry i ment to say the two links that dont work are
- community portal and
- Current events.
- if you log in also as admin, and click Admin as the top , this give the same error.
- Cheers
- Mark 94.245.127.11 17:05, 24 November 2010 (UTC)
- Helloo,
- Have you solved your problem? i've the same problem. I installed wiki in windows 2008 IIS7. Browsing on the server seems fine. But browsing it from other PCs it seems problematic.
- Server Error
- 404 - File or directory not found.
- The resource you are looking for might have been removed, had its name changed, or is temporarily unavailable. 202.131.225.147 03:00, 28 March 2011 (UTC)
- Sounds like the IIS 404 problem. —Emufarmers(T|C) 03:11, 29 March 2011 (UTC)
- Please, have a look to: http://www.mediawiki.org/wiki/Manual:Page_customizations
- Thanks ! 216.113.24.1 12:47, 31 July 2013 (UTC)
- Sounds like the IIS 404 problem. —Emufarmers(T|C) 03:11, 29 March 2011 (UTC)
Mediawiki displaying strange tags.
Hi,
platform: Windows 7 mw ver: 1.16.0 xampp ver: 1.7.2 php ver: 5.3.0 mysql ver: 5.1.37
To put long story short, i have downloaded the latest xml dump enwiki-20101011-pages-meta-current.xml.bz2 and imported it to MW by mwdumper.jar. Everything looks fine during the import process. However, when i review my wiki pages, there are strange tag displayed, such as other uses, see {{#if:|[[:{{{3}}}]]............see the screen shot below:
There are also some useful information missing, for example when i search "Hong kong" in the normal wiki, a geographical coordinates "Coordinates: 22°16′42″N 114°9′32″E" is displayed. But in my own wiki, seems that the information is replaced by something like "<a href="/wiki/index.php?title=Template:Coord&action=edit&redlink=1" class="new" title="Template:Coord (page does not exist)">Template:Coord</a>" (sounds like i need to somehow "install" a coord template to display this?) .
I am sorry that i am newbie to wiki, can anybody point me to the right direction or give me some hints that what is going wrong? I wish to build my own wiki that looks the same as the public one.
Thank you very much. Waterfallbay (talk) 17:52, 24 November 2010 (UTC)
- Install ParserFunctions, then export all templates used on that page and import them to your wiki. Max Semenik 18:19, 24 November 2010 (UTC)
- Hi,
- Thanks for your reply.
- Any page i can find all the wiki templates in a list?? Thanks again. Waterfallbay 02:22, 25 November 2010 (UTC)
- I have found the templates list here:
- w:en:Category:Wikipedia_templates
- My question is, where should i go to export these templates?? Waterfallbay 07:06, 25 November 2010 (UTC)
- The ans to my own question is:
- 1. go to w:en:Special:Export
- 2. type the template name in the Textarea in the page, such as Template:Coords
- 3. press the "Export" button. Waterfallbay 09:00, 25 November 2010 (UTC)
- After performing all the steps including installing ParserFunctions, i still get this:

- All the citation is shown in ref tag and the "Reference" part of my wiki goes into completely mess.
- Any ideas? Waterfallbay 09:13, 25 November 2010 (UTC)
- Install extension:Cite. There is a full list of extensions Wikipedia uses at w:special:version (Specifically the one's listed under Parser hooks are the extensions that generally affect how pages are rendered). Bawolff 18:58, 25 November 2010 (UTC)
- Please update you Mediawiki to 1.21 please because 1.16 is not supported any more 2.124.130.208 11:59, 23 November 2013 (UTC)
- Install extension:Cite. There is a full list of extensions Wikipedia uses at w:special:version (Specifically the one's listed under Parser hooks are the extensions that generally affect how pages are rendered). Bawolff 18:58, 25 November 2010 (UTC)
Insert image on media wiki
Hi,
After add imageplus on media wiki I have this message on top of the page : Notice : Undefined variable: fname in C:\wamp\mediawiki \extensions\imageplus\imageplus.php on line 203.
And I can't add image directly on webpage. Where I suppose to copy the picture to add it ..??? on wich folder??
I use wampserver, with : Apache 2.2.11 Php 5.3.0 on Windows server 2008 R2 194.98.196.2 (talk) 16:45, 25 November 2010 (UTC)
- This extension is broken, report this on its talk page. Max Semenik 16:52, 25 November 2010 (UTC)
- Thanks for your answer,
- I had lines but the problem is the same.
- Here is the bad line (array (), $fname, array('ORDER BY' => 'img_timestamp', 'LIMIT' => '10'));// add. SQL options) in
- function fnGetLastFilenames( $dbr )
- {
$res = $dbr->select('image', // FROMarray('img_name','img_size','img_description','img_width','img_height','img_timestamp'), // SELECTarray (), $fname, array('ORDER BY' => 'img_timestamp', 'LIMIT' => '10'));// add. SQL optionsreturn $res;- If somebody have any idea :-)
- I'm a newby on php... 194.98.196.2 17:43, 25 November 2010 (UTC)
(Resolved) PostgreSQL 9 - Installation Problem ...
On installation it get's no connection to database PostgreSQL 9 - which is running and connection works well outside of mediawiki. Any guess ... or workaround for the installation process?
Checking environment..
* PHP 5.2.0 installed
* Found database drivers for: MySQL PostgreSQL Oracle
* PHP server API is apache; ok, using pretty URLs (index.php/Page_Title)
* Have XML / Latin1-UTF-8 conversion support.
* Warning: A value for session.save_path has not been set in PHP.ini. If the default value causes problems with saving session data, set it to a valid path which is read/write/execute for the user your web server is running under.
* PHP's memory_limit is 512M bytes.
* APC installed
* Found GNU diff3: /usr/bin/diff3.
* Found GD graphics library built-in, image thumbnailing will be enabled if you enable uploads.
* Installation directory: /home/enpasos/webapps/mediawiki-1.16.0
* Script URI path: /wiki
* Installing MediaWiki with php file extensions
* Environment checked. You can install MediaWiki.
* Generating configuration file...
* Database type: PostgreSQL
* /home/enpasos/webapps/mediawiki-1.16.0/config/Installer.php:847: Warning: php://stderr is an unsupported or unknown path for this protocol [fopen] Loading class: DatabasePostgres
* Attempting to connect to database "postgres" as superuser "postgres"... error: No database connection
Help is very much appreciated :-) Thank you. 80.187.102.253 (talk) 06:45, 26 November 2010 (UTC)
- My problem fix/workaround:
- php implementation is caucho on glassfish
- made a connection pool on glassfish + datasource with jndi "jdbc/wiki"
- edit web.xml and sun-web.xml as described on http://old.nabble.com/GlassFish-Quercus-PHP-JNDI-Lookup-JDBC-Pool-td20566790.html
- changed "pg_connect( $connectString );" into "$this->mConn = pg_connect( "jdbc/wiki" );" within DatabasePostgres.php Enpasos 22:43, 2 December 2010 (UTC)
- I must add that Caucho is not officially supported. Max Semenik 06:20, 3 December 2010 (UTC)
- I solved this problem by setting the password for the postgres user inside PostgreSQL (which is not the same as the Unix postgres user password):
sh# sudo -u postgres psql- psql (9.1.9)
- Type "help" for help.
- postgres=# \password
- Enter new password:
- Enter it again:
- postgres=# \q
- sh#
Albert25 (talk) 10:31, 11 May 2013 (UTC)
Hyperlink To Files On A Server
How do you hyperlink from within MediaWiki to a file on a server within your network?
I'm finding mixed suggestions on how to do this, but cannot find the proper way as I keep getting errors no matter how I do it.
These are the suggestions I have come across;
[file://server name/folder/folder/file] name/folder/folder/file \\server name\folder\folder\file
Thanks for your help! 216.123.244.209 (talk) 21:58, 26 November 2010 (UTC)
Installation problem with mysql
Next to an update of my system (Ubuntu), I've to reinstall my xampp supported sites. All works fine for other sites, but I can't get my mediawiki working. The diagnosis when reinstalling my mediawiki for an existing database follows. I doesn't understnd very well the messages about mysql. I've tried the solutions proposed in the link, but nothing work (create a new user with on old password...) my site is shadok.enst.fr/barbules
<code> PHP 5.3.3 installed Found database drivers for: MySQL PostgreSQL SQLite PHP server API is apache2handler; ok, using pretty URLs (index.php/Page_Title) Have XML / Latin1-UTF-8 conversion support. Warning: A value for session.save_path has not been set in PHP.ini. If the default value causes problems with saving session data, set it to a valid path which is read/write/execute for the user your web server is running under. PHP's memory_limit is 128M bytes. Couldn't find eAccelerator, APC or XCache; cannot use these for object caching. Found GNU diff3: /usr/bin/diff3. Found GD graphics library built-in, image thumbnailing will be enabled if you enable uploads. Installation directory: /opt/lampp/htdocs/barbules Script URI path: /barbules Installing MediaWiki with php file extensions Environment checked. You can install MediaWiki. Generating configuration file... Database type: MySQL Loading class: DatabaseMysql PHP is linked with old MySQL client libraries. If you are using a MySQL 4.1 server and have problems connecting to the database, see http://dev.mysql.com/doc/mysql/en/old-client.html for help. Attempting to connect to database server as moissinac...success. Connected to mysql 5.1.51; You are using MySQL 4.1 server, but PHP is linked to old client libraries; if you have trouble with authentication, see http://dev.mysql.com/doc/mysql/en/old-client.html for help.; enabling MySQL 4.1/5.0 charset mode Database barbules exists Creating tables... FAILED Query "CREATE TABLE `user` ( user_id int unsigned NOT NULL PRIMARY KEY AUTO_INCREMENT, user_name varchar(255) binary NOT NULL default '', user_real_name varchar(255) binary NOT NULL default '', user_password tinyblob NOT NULL, user_newpassword tinyblob NOT NULL, user_newpass_time binary(14), user_email tinytext NOT NULL, user_options blob NOT NULL, user_touched binary(14) NOT NULL default '', user_token binary(32) NOT NULL default '', user_email_authenticated binary(14), user_email_token binary(32), user_email_token_expires binary(14), user_registration binary(14), user_editcount int ) ENGINE=InnoDB, DEFAULT CHARSET=binary " failed with error code "Table 'user' already exists (localhost)". </code>
137.194.20.157 (talk) 09:48, 28 November 2010 (UTC)
- There's already a table called "user" in your database. If it's left over from something you don't need, you can remove it; otherwise, you should either make another database or use a database prefix. —Emufarmers(T|C) 20:44, 28 November 2010 (UTC)
- It's a way, but not the solution. Im' trying to restore my mediawiki. So, I expect to preserve my user's table 82.224.127.67 06:27, 29 November 2010 (UTC)
- The installer checks for existence of tables called `cur` or `revision`. Your database appear to have neither, so the installer attemts to create the DB from scratch and fails because you have other MediaWiki tables. This is not a bug, because you don't need your old database without these tables. Max Semenik 14:00, 29 November 2010 (UTC)
- It's a way, but not the solution. Im' trying to restore my mediawiki. So, I expect to preserve my user's table 82.224.127.67 06:27, 29 November 2010 (UTC)
RESOLVED - Error 404 - Object not found. Internet access to wiki
The following discussion is closed. Please do not modify it. Subsequent comments should be made on the appropriate discussion page. No further edits should be made to this discussion.
Hello!
I was able to setup a working wiki, accesible localy on the home computer. When I try to access the page over the Internet, I get a Error 404 - object not found error. I guess it has to do with som kind of file-atributes, but I don't know what. Localsetting or some kind of httpd?
The host is running a cuple of virtual hosts that is working fine. I have added one more to point to the right directory:
<VirtualHost *:80> ServerName klimatwiki ServerAlias wiki.hal1.se DocumentRoot C:/xampp/htdocs/mediawiki/ </VirtualHost>
I have also added this to http.conf in apache:
<Directory "C:\xampp\htdocs\mediawiki">
Order Deny,Allow Allow from all
Options FollowSymLinks
AllowOverride None Order deny,allow allow from all
</Directory>
Adres: http://wiki.hal1.se/wiki/Huvudsida
Conf: Apache/2.2.11 (Win32) DAV/2 mod_ssl/2.2.11 OpenSSL/0.9.8i PHP/5.2.9
Would be most thankful for any suggestions to solve this! 213.114.173.20 (talk) 15:35, 28 November 2010 (UTC)
- 404 means file not found. If it was a permission problem you'd probably get a 403 forbidden.
- Appears to be a re-write rule problem. Your $wgArticlePath is set in such a way to redirect to a directory that doesn't exist (for example, without redirection http://wiki.hal1.se/index.php?title=Main_Page&action=view works) It also thinks the style directory is somewhere other then it is, so there is probably a mismatch between what is in LocalSettings.php (for $wgArticlePath type variables) and what you have in your apache config. Bawolff 12:27, 29 November 2010 (UTC)
- Hello again!
- Thanks for the answer! I decided to try everything from the top again, but wirh the same problem. The link you provided still seems to work through, with no stylesheet.
- This is how I did it, would be nice if you or anybode else could tell me where I'm doing something wrong.
- I have a working installation of xampp with both a traditional html-site and a php joomla site, both configured as virtual hosts.
- Their config in httpd.conf is:
- "<VirtualHost *:80>
- ServerName hal1.se
- ServerAlias hal1.se www.hal1.se
- DocumentRoot C:/Hemsidan
- </VirtualHost>
- <VirtualHost *:80>
- ServerName lekmera.nu
- ServerAlias lekmera.nu *.lekmera.nu
- DocumentRoot C:/xampp/htdocs/installation
- </VirtualHost>"
- I downloaded and extracted the latest version of mediawiki in C:/xampp/htdocs/mediawiki. Used the adress http://localhost/mediawiki to access the setup. Did the config (all basic, no email-functions at all) Copied the localsettings-file to the right directory and followed the link to my new wiki. Everyting seems to work fine.
- The I added another virtual host in my apache http.conf.
- "<VirtualHost *:80>
- ServerName wiki.hal1.se
- ServerAlias wiki.hal1.se
- DocumentRoot C:/xampp/htdocs/mediawiki
- </VirtualHost>"
- Then I restarted apache and tried to access http://wiki.hal1.se and get the Error 404 - object not found message.
- Is there some part of the configuration I've missed?
- Thanks in advance!
- Johan 90.230.227.43 12:03, 2 December 2010 (UTC)
- You need to add some things to LocalSettings.php. (Since mediawiki needs to know the path its accessed from, and you changed that since you first configuring mediawiki) Specificly
- $wgScriptPath should be $wgScriptPath= ''; (from your description, its probably currently set to something like
$wgScriptPath = "/mediawiki";)
- $wgScriptPath should be $wgScriptPath= ''; (from your description, its probably currently set to something like
- If you're trying to configure short url's, there other things you have to do, see Manual:Short URL Bawolff 00:06, 3 December 2010 (UTC)
- Just wanted to add att big thank you for helping me with this. Your suggestion about the scripthpath solved the problem.
- Once again, thanks!
- Johan 90.230.227.43 10:40, 3 December 2010 (UTC)
- no problem. Happy to help. Bawolff 06:25, 4 December 2010 (UTC)
- You need to add some things to LocalSettings.php. (Since mediawiki needs to know the path its accessed from, and you changed that since you first configuring mediawiki) Specificly
90.230.227.43 12:05, 2 December 2010 (UTC)
How to remove ns name from page title?
MW 1.16.0 PHP 5.3.0 MySQL 5.1.35
Is there a way how to do so? I have already tested Extension:HideNamespace and Extension:Editheader - both seems not to work. The problem is, that ns name is not in span in H1 title of the page, thus only way to hide it completely and replace it by another h1 edited in wikitext. But this takes problems with browser interpretations of such rule (i.e. IE). Juandev (talk) 16:40, 28 November 2010 (UTC)
(Resolved) wfRunHooks error... probably a configuration error on my part.
Hi all,
Just moved a wiki from one server to another, and upgraded at the same time to 1.16. Here's the scoop.
- Old server - Win 2003, PHP 5.1.4 (isapi), Mediawiki 1.12.0, MySQL 5.1.41-community-log
- New server - Mac OSX Server 10.6.5 (snow leopard), PHP 5.3.3 (apache2handler), Mediawiki 1.16.0, mySQL 5.0.91-log
- URL - http://wiki2.grinnellwiki.com
When saving edits to pages, the following error stream pops up;
- Detected bug in an extension! Hook smwfSaveHook failed to return a value; should return true to continue hook processing or false to abort.
- Backtrace:
- 0 /Library/WebServer/Sites/Grinnell7123/Wiki/includes/Article.php(2099): wfRunHooks('ArticleSaveComp...', Array)
- 1 /Library/WebServer/Sites/Grinnell7123/Wiki/includes/Article.php(1791): Article->doEdit(''Brainstor...', , 98)
- 2 /Library/WebServer/Sites/Grinnell7123/Wiki/includes/EditPage.php(1047): Article->updateArticle(''Brainstor...', , false, false, false, )
- 3 /Library/WebServer/Sites/Grinnell7123/Wiki/includes/EditPage.php(2552): EditPage->internalAttemptSave(false, false)
- 4 /Library/WebServer/Sites/Grinnell7123/Wiki/includes/EditPage.php(389): EditPage->attemptSave()
- 5 /Library/WebServer/Sites/Grinnell7123/Wiki/includes/EditPage.php(271): EditPage->edit()
- 6 /Library/WebServer/Sites/Grinnell7123/Wiki/includes/Wiki.php(553): EditPage->submit()
- 7 /Library/WebServer/Sites/Grinnell7123/Wiki/includes/Wiki.php(70): MediaWiki->performAction(Object(OutputPage), Object(Article), Object(Title), Object(User), Object(WebRequest))
- 8 /Library/WebServer/Sites/Grinnell7123/Wiki/index.php(117): MediaWiki->performRequestForTitle(Object(Title), Object(Article), Object(OutputPage), :Object(User), Object(WebRequest))
- 9 {main}
I checked out line 2099 of Article.php, and it looks like this;
- wfRunHooks( 'ArticleSaveComplete', array( &$this, &$user, $text, $summary, $flags & EDIT_MINOR, null, null, &$flags, $revision, &$status, $baseRevId ) );
Here's what looks to be the code from SMW_Hooks.php that's being called. Looks like it's *trying* to return "true" :-)
- /**
- * This method will be called after an article is saved after
- * editing. It stores the semantic properties in the database.
- * One could consider creating an object for deferred saving
- * as used in other places of MediaWiki.
- */
- function smwfSaveHook(&$article, &$user, &$text) {
- SMWFactbox::storeData(smwfIsSemanticsProcessed($article->getTitle()->getNamespace()));
- return true; // always return true, in order not to stop MW's hook processing!
- }
Any ideas? I did a little searching before posting this, but feel free to point me at a thread if I missed it.
Thanks in advance,
Mike --Oconnorstp 22:18, 28 November 2010 (UTC)
- Took a walk and figured out what was going on. The SemanticMediawiki and SemanticForms extensions were the problem. I commented them out of the LocalSettings.php file and all is good now. I'll leave this up just in case somebody else runs into the problem. Note to you page-editors, feel free to take this down if it's inappropriate... Oconnorstp 23:40, 28 November 2010 (UTC)
- You probably don't have to disable the extensions: they should work if you upgrade them to their 1.16 versions. (Ideally, you should upgrade all your extensions when you upgrade MediaWiki.) —Emufarmers(T|C) 02:40, 29 November 2010 (UTC)
Deletion caused creation email
I apologize if this is in the wrong place.
MediaWiki: 1.16.0
PHP: 5.2.4 (cgi-fcgi)
MySQL: 5.1.39-log
I have just recently deleted a page at starfoxwiki.org, and the system sent me an email that i created a page. Is this a bug in the software? or is it something we could of done wrong in our custom set up?
- We have no Extentions related to email (See [3])
- I have it selected to "E-mail me when a page on my watchlist is changed" and to "Add pages I delete to my watchlist"
Any ideas i how to fix this? Bud0011 (talk) 04:21, 29 November 2010 (UTC)
- This is bug 15646. It hasn't been fixed yet, unfortunately (you could try the fix that got reverted if you're really desperate). —Emufarmers(T|C) 05:07, 29 November 2010 (UTC)
- Nope. that will be fine. Not desperate enough to try the fix, but enough that i wanted to bring it to you guys attention.
- Thank you. Bud0011 06:16, 30 November 2010 (UTC)
different logo in styles
Hello,
I want use the new vector skin two times with different logos. One with the old company logo and one with the new company logo.
Someone an idea?
Thanks! 217.89.66.106 (talk) 08:24, 29 November 2010 (UTC)
- How do you want to determine when to use which logo?
- You can do this with an if statement in your LocalSettings.php You can also do this using css/js. Bawolff 12:19, 29 November 2010 (UTC)
Initial user was not created by installer
Hi all. Sorry if it's a noob question, but I'm kind of a new with administrating MediaWiki =) So, I've got this problem - no initial user after install :( FAQ says:
Alter the database
* Register a new account using the regular method (Special:UserLogin).
* Check the user ID in Special:Preferences.
* Execute the following SQL statement against the database:
o INSERT INTO user_groups ( ug_user, ug_group ) VALUES ( <id>, 'bureaucrat' ), ( <id>, 'sysop' );
<id> above should be replaced with the appropriate user ID which you can see on the user's preference page
Well, I just don't get it. What I need to do? And where? I created a new user with ID "1", and then?... 92.243.182.137 (talk) 20:41, 29 November 2010 (UTC)
- Meh, probably just be easier to add:
$wgAddGroups['user'] = true;- to the bottom of your LocalSettings.php, then log into your wiki as that user, and use special:userrights to add yourself to the Sysop (Administrator) and bureaucrat groups. Then make sure to remove that line from LocalSettings.php, and you are all set (Its very important to remove said line from localsettings.php afterwards, as it allows anyone to change group permissions).
- p.s. See Manual:$wgAddGroups for info on what the above actually does. Bawolff 00:32, 30 November 2010 (UTC)
Multiple account creation spam - IP block unhelpful
This page is constantly under attack, despite the numerous ip blocks from the same person, is unsuccessful, as new account is created immediately after. There is constantly a lot of drug related spam links to invalid sites. Ip block is not working, how else can you stop spam. Need working solutions, thanks. Can you restrict moderators for this site, rather then the open venue that it is now?
http://aikawiki.mezurashi.com/index.php?title=Persia&action=history Triniti~mediawikiwiki (talk) 01:38, 30 November 2010 (UTC)
- See Manual:Combating spam. —Emufarmers(T|C) 03:45, 30 November 2010 (UTC)
- Yeah, I', over my head in this, Spam is not stopping, ridiculous. Pretty sick links here.
- Manual:Combating spam is beyond me ... wish this game would change sites instead. More user friendly.
- Not sure what to type in to stop this.
* 06:20, 24 November 2010, CRCSUX (Talk | contribs) blocked 67.228.250.76 (Talk) (infinite, account creation blocked)* 06:20, 24 November 2010, CRCSUX (Talk | contribs) blocked 92.114.82.51 (Talk) (infinite, account creation blocked)* 06:19, 24 November 2010, CRCSUX (Talk | contribs) blocked 115.248.43.93 (Talk) (infinite, account creation blocked)* 06:19, 24 November 2010, CRCSUX (Talk | contribs) blocked 61.145.121.124 (Talk) (infinite, account creation blocked)* 09:54, 23 November 2010, CRCSUX (Talk | contribs) blocked 218.248.29.75 (Talk) (infinite, account creation blocked)* 09:54, 23 November 2010, CRCSUX (Talk | contribs) blocked 65.46.53.202 (Talk) (infinite, anon. only, account creation blocked)* 09:53, 23 November 2010, CRCSUX (Talk | contribs) blocked 209.203.19.2 (Talk) (infinite, account creation blocked) (Spamming links to external sites)* 00:56, 18 November 2010, CRCSUX (Talk | contribs) blocked 190.3.208.159 (Talk) (infinite, account creation blocked)* 00:56, 18 November 2010, CRCSUX (Talk | contribs) blocked 218.28.72.71 (Talk) (infinite, account creation blocked) (Spamming links to external sites)Triniti 10:47, 12 December 2010 (UTC)
Duplicated key in MySQL when re-introducing key after running mwdumper
Hi all,
I have imported the latest XML dump with mwdumper.jar. After a few times of uncompleted import, i follow the suggestions of the mailing-list that I removed all the key and indexes for the page, text and revision table. Well, it runs like a rocket after that.
However, i found a problem when i wish to re-introduce those index to the database after the dump finished. For primary key, there is no issues. But i failed to restore some unique key, such as:
CREATE INDEX name_title ON page (page_title) USING BTREE;
It will return duplicated key 'page_title" error.
If i choose to make the key with NON UNIQUE option, it will success but i cannot further add index for the 'page_title' column anymore. As the default setup of the page table contains two indexes for 'page_title', I just wanna know how to resemble the original DB setup. The same thing happens to the revision table.
Can anyone give me some hints in how to recreate those keys? Thank you. Waterfallbay (talk) 01:57, 30 November 2010 (UTC)
Transcluding onlyinclude and includeonly tags
- short question
Is there a way to let a template include <includeonly><onlyinclude>{{{date}}}</onlyinclude></includeonly> when transcluded?
- longer explaination for question
I'll try to explain it with this table:
| Page name: | Template(in this case: "template:update") | Page between(in this case: "update page") | Final page(in this case: "item page") |
|---|---|---|---|
| use: | add a notice to "update page" | show information about the update, and when transcluded show the date of it only |
Only have the text between the onlyinclude tags included |
This is because at the RuneScape Wiki i am trying to automate the update date. Because there is always a link to the update page on the item page, and the update page has the date on it, i want the update page to have an additional note with the date entered(between onlyinclude tags) and i don't want it to appear on the update page itself(between includeonly tags). All update pages have the template:Update on it, with the parameter {{{date}}} so I want template:update to add <includeonly><onlyinclude>{{{date}}}</onlyinclude></includeonly> to the update page so that when the item page has {{#time:j F Y|{{Update:(updatename)}}}} on it, it shows the date in "dd month yy" automatically without needing to add that yourself.
I hope someone can help me. Joeytje50 (talk) 08:14, 30 November 2010 (UTC)
MediaWiki acknowledgments in help system
Hello,
My company is integrating MediaWiki 1.16.0 (with MySQL 5.1.51 64-bit and PHP 5.3.3) into one of its products.
From a help perspective, we are thinking of creating a very limited set of topics (we only need a small set) that are fully integrated into our "end user" help system for our overall product. While we will glean important info from the MediaWiki help, we will not copy it verbatim - especially given we only need a very small subset of topics & use a different style guide / information design approach.
Are we required to acknowledge MediaWiki in those help topics in our help system at all?
I have read the important note at the top of this page: http://www.mediawiki.org/wiki/Help:Contents ...which indicates that the help "can be freely copied into fresh wiki installations and/or distributed with MediaWiki software." However, my question is a little different, as we will write a "lighter" and "smaller" version of help topics (that adhere to our own style guide) on an extremely limited subset of features.
Many thanks, Mary Mary nh2010 (talk) 18:56, 30 November 2010 (UTC)
- Everything in the Help: namespace is in public domain, you can do with it anything you like. Of course, giving credits is always welcome:) Max Semenik 19:54, 30 November 2010 (UTC)