Project:Support desk/Flow/2011/07
| 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. |
Adding a domain to existing wiki
I've been running MediaWiki at http://www.davidaspitzley.org/MythicDetroit without a hitch since December, and earlier this week I finally got around to registering MythicDetroit.org. Ideally I'd like for both http://www.davidaspitzley.org/MythicDetroit and http://www.MythicDetroit.org to display the wiki. Currently I've got MythicDetroit.org mapped to the /MythicDetroit directory, but since I've got $wgScriptPath set to "/MythicDetroit", the script errors out when you try to access the wiki that way, since it's looking for a subdirectory which actually corresponds to the root of that domain. Any recommendations on the correct way to achieve what I'm going for?
Here are my site details: MediaWiki 1.16.0 PHP 5.2.17 (cgi) MySQL 5.1.54 Hosted on LunarPages on a Linux server I have FTP access but no shell access Dspitzle (talk) 16:25, 1 July 2011 (UTC)
- Oh, and I should note I've got the ability to edit .htaccess, but that's it as far as server configuration. Dspitzle 18:39, 1 July 2011 (UTC)
- Well, I figured it out myself after some further thought and extended trial and error.
- 1) I switched $wgScriptPath to "". This allows MediaWiki to run at the root of MythicDetroit.org (I've seen warnings against such placement, and I'm unclear any negative implications of doing this).
- 2) I set up a redirect of http://www.davidaspitzley.org/MythicDetroit to http://www.MythicDetroit.org
- It works. Huzzah! Thanks to everybody for the help :) Dspitzle 20:40, 1 July 2011 (UTC)
$wgInvalidateCacheOnLocalSettingsChange
If I include a file in LocalSettings.php, I guess I still need to use the old $wgCacheEpoch method to make sure changes in the included file get picked up?
For admin reasons, I have "include('../AdditionalSettings.php');" in LocalSettings.php.
Cheers, Dmb (talk) 09:44, 2 July 2011 (UTC)
$wgBlockDisablesLogin and autoblock?
If I set $wgBlockDisablesLogin to true, when someone tries to log in using a blocked account, will the IP address still be autoblocked? Kudu ~I/O~ 16:44, 2 July 2011 (UTC)
External links in navigation bar (sidebar), no info about it in FAQ
I use the lastest version, need to make external link in side bar. How to make it? Help me pls. I searched but didn't find solution. Shahan (talk) 20:29, 2 July 2011 (UTC)
- Manual:Interface/Sidebar covers this. —Emufarmers(T|C) 15:33, 3 July 2011 (UTC)
- Thank you very much! Shahan 21:31, 3 July 2011 (UTC)
REDIRECT don't reply 301 code??
For SEO, every body believe 301 redirect will be better.
How can I add 301 code to a page with #REDIRECT [[Target page name]]?
I found this webpage, but it seems too old to mediawiki 1.17
http://www.sumbytes.com/mediawiki-301-redirects/
Anybody know how to add 301 code in a mediawiki page? Deletedaccount4567435 (talk) 07:36, 3 July 2011 (UTC)
- No, not everybody believes that. See bug 18883.
- Still, you can use the HTTPRedirect extension. —Emufarmers(T|C) 15:31, 3 July 2011 (UTC)
Hallo, ich suche einen Programmierer für mein Media Wiki / need a Designer.
Hallo, ich bin auf der Suche nach einem Programmierer der mir mein Media Wiki ähnlich wie das Media Wiki anpasst, zum beispiel die funktionen mit dem pfeil in der sidebar, oder das unbennen der sidebar, also ein paar kleinigkeiten währen zu ändern, ich bezahle Sie Natürlich nach ihrem Wunsch entsprechenden /Std. Preis.
Translation
Hello, i need a People who change me the Media Wiki Template "Vector" i need new side bar "quickbar". I pay for your work /h. 85.178.148.110 (talk) 10:51, 3 July 2011 (UTC)
How to use Latin characters (ISO-8859-1)
Hi, I've started using MediaWiki (version 1.17.0).
I need to use Latin characters in the title of the Wiki because of the the word "Zélia" but it's not working and I have no idea how to work it out. I suppose it has something to do with UTF-8 and ISO-8859-1, but I'm a little lost here and have no idea what I'm suppose to change... (http://estacaozd.com/wiki)
thanks. Msantosfotografia (talk) 18:56, 3 July 2011 (UTC)
- How is it not working? —Emufarmers(T|C) 22:20, 3 July 2011 (UTC)
- In the title, it doesn't show "WikiZélia", it's like "WikiZ& e a c u t e ; lia"...
- (without the spaces, i just posted it like that cause if I didn't it would appear here as "é".) Msantosfotografia 22:28, 3 July 2011 (UTC)
- In the title, it doesn't show "WikiZélia", it's like "WikiZ& e a c u t e ; lia"...
- (without the spaces, i just posted it like that cause if I didn't it would appear here as "é".) Msantosfotografia 22:28, 3 July 2011 (UTC)
- It shows up as Enciclopédia Zélia Duncan for me. —Emufarmers(T|C) 07:11, 4 July 2011 (UTC)
- Yes. But the problem is: Enciclopédia Zélia Duncan is followed by WikiZ & e a c u t e ; lia
- "Enciclopédia Zélia Duncan - WikiZélia"
- WikiZélia is the actual name, Enciclopédia is just the Main Page title... 186.221.7.67 01:40, 5 July 2011 (UTC)
- Looks like you have variables in your LocalSettings.php is encoded wrong.
- Look for $wgSitename line in LocalSettings.php Change it to be exactly:
$wgSitename = "WikiZ\xC3\xA9lia";- This should fix your problem with the wrong encoding in the title (The \xC3\xA9 is a fancy was of writing é). (I'm unclear how you're seeing an é - I get a unicode replacement character) Bawolff 03:16, 7 July 2011 (UTC)
- It shows up as Enciclopédia Zélia Duncan for me. —Emufarmers(T|C) 07:11, 4 July 2011 (UTC)
Translating de->en uses the wrong default language.
This post by Revibot was moved on 2015-07-11. You can find it at Extension talk:Translate/Archive 2/2011#h-Translating_de->en_uses_the_wrong_default_language.-2011-06-30T09:57:00.000Z. Krinkle (talk) 22:38, 3 July 2011 (UTC)
Wiki-Entwickler gesucht, der unsere Anpassung testet und optimiert
Wir haben ein stark modifiziertes MediaWiki, das auf den Stil unserer kommenden Website zugeschnitten ist. Wir suchen jemanden, der das Wiki eingehend testet und optimal nutzbar macht. Unser Design sieht eine extrem vereinfachte Oberfläche vor, auf der auch Wiki-Fremde sich unmittelbar wohlfühlen sollen.
Wenn wir auch gleich einen verlässlichen Administrator finden, wäre das schön, ist aber keine Bedingung.
Bitte kurze Mail mit Honorarwunsch an: info@igk.de 88.74.200.173 (talk) 23:11, 3 July 2011 (UTC)
running mediawiki in a joomla wrapper
I get errors that some things can't be opened in an I frame. Can I control this restriction easily?
I'm running 1.17 My site is www.delmarvasportfishing.com Mathialoc (talk) 23:28, 3 July 2011 (UTC)
- You can adjust $wgEditPageFrameOptions. —Emufarmers(T|C) 07:09, 4 July 2011 (UTC)
Getting blank pages in Safari. And how do I tweak memory_limit?
My setup:
- MediaWiki 1.17.0
- PHP 5.2.17 (cgi)
- MySQL 5.0.92-community-log
- Running on a shared hosting server.
- Note: I'm by no means fluent in web development. All I know is the little I've picked up through having to fix a problem. I've only used Wordpress before.
- My wiki: http://wiki.ISFNpub.com
My problem:
When I'm editing using Safari, I get blank pages that I have to keep refreshing until the content shows up. Firefox doesn't seem to have this problem.
Reading here, it seems like I should tweak the memory_limit setting. However, I'm not very savvy with this stuff and those instructions are rather confusing to me. Where is this php.ini file located? How do I know how much memory I should set it to? (Is there a maximum?) How do I restart my webserver?
- Edit: I found a php.ini file in the public_html folder, but it's very short (9 lines) and does not contain "memory_limit".
Keep in mind that I've never used Terminal to connect to a server; my experience ends with what is available through cPanel.
Thanks. 72.12.171.119 (talk) 05:13, 4 July 2011 (UTC)
- These questions may be bettered answered by your web host. Certain web hosts, especially shared hosts don't allow direct access to the php.ini file. See this guide for more on what to do, but you need only a FTP client and a code editor to do it (not sure which is best on OSX though). Calebrw 06:21, 4 July 2011 (UTC)
- I created a .htaccess file as specified above, but the website went crazy.
- Thing is, the blank pages seem to only be a problem with Safari (OS X). I tried Firefox and everything seems to work fine. — (Another issue I've noticed in Safari is that the user preferences page shows all settings at once (as opposed to having tabs for different settings). ... So I think this might be a compatibility issue?) 72.12.171.119 06:59, 4 July 2011 (UTC)
i don't have a editor toolbar for text
i don't have a editor toolbar for text like the one here ^ how do i get that
| 87.211.86.244 (talk) 07:04, 4 July 2011 (UTC)
How to allow really anonymous edits in mediawiki?
I mean, anonymous IPs in recent changes and on user pages are only seen by sysops, while the other users see something like 'Anonymous coward'. 83.142.212.151 (talk) 09:45, 4 July 2011 (UTC)
- I would suggest setting $wgPutIPinRC to false. Hazard-SJ ± 22:58, 13 July 2011 (UTC)
- That won't work: it only disables logging of the IP in the recentchanges table for logged in users. There is no configuration setting or extension which makes the IP's of anonymous users hidden. MrBlueSky 13:04, 14 July 2011 (UTC)
- I agree that I know of no such configuration setting or extension which makes the IP's of anonymous users hidden, but my suggestion is a part of what was asked. Also, I suggest setting $wgShowIPinHeader to false to prevent the anonymous user from seeing his/her IP (and it will also reduce the required server resources, because each different IP has to be loaded separately). Hazard-SJ ± 23:42, 15 July 2011 (UTC)
- That won't work: it only disables logging of the IP in the recentchanges table for logged in users. There is no configuration setting or extension which makes the IP's of anonymous users hidden. MrBlueSky 13:04, 14 July 2011 (UTC)
How to open a image in a new page?
I know $wgExternalLinkTarget = '_blank'; can make a external link open in a new page.
but how to make image open in a new page?
For example: commons:File:Orchid FL PI NWR view area Centennial Trail bdwk10.jpg
I want to click the picture in this page and let wiki show the full size image in a new window, instead of in same window. Deletedaccount4567435 (talk) 10:33, 4 July 2011 (UTC)
- Click on the picture itself. Hazard-SJ ± 23:00, 13 July 2011 (UTC)
Importing Database?
Hello, I'm about to start up a new wiki using mediawiki. I wanted to know if this can be done:
I've got a database dump from a Wikia wiki, can I upload that dump into the sqldatabase that mediawiki is using, and will all the data appear?
Or is there another way to import data from a Wikia wiki.
Regards 122.169.182.136 (talk) 20:33, 4 July 2011 (UTC)
- If you have access to phpMyAdmin, you can import it from there. Hazard-SJ ± 23:01, 13 July 2011 (UTC)
emailing watched page notifications
Is there a test function or method available for sending email notifications, or step-by-step troubleshooting? I went through the LocalSettings and set my mail server settings, and email parameters, but have not been able to get an email notice after a page is changed. It would be nice if there is a page or script that sends a test message, using the settings.
My MediaWiki version is 1.16.0, PHP 5.3.6 on CentOs, and MySQL 5.5.13
Thank you - Steve Szabo 76.20.237.76 (talk) 01:34, 6 July 2011 (UTC)
- Test using Special:Emailuser on your wiki. Try using the command line mail program on you server if you have shell access. Bawolff 03:04, 7 July 2011 (UTC)
- The command line "mail" test succeeds. How do I use the Special:Emailuser ? My search found that page, but it yields the following:
- You have not specified a target page or user to perform this function on.
- I noticed that MediaWiki uses Pear's Mail object, which my other applications do successfully.
- Thanks for responding. 76.20.237.76 13:19, 7 July 2011 (UTC)
- MediaWiki only sometimes uses Pear's mail object, it depends on your config. For special emailuser - pick a user you want to mail (yourself is probably a good person) and go to the page Special:emailuser/Username (so I might go to Special:emailuser/Bawolff ) Cheers. Bawolff 00:10, 8 July 2011 (UTC)
- Thanks, that worked (special:emailuser/sszabo). It delivered a message to the email address associated with my account (sszabo). Now, how do I test and get a notification on a changed page? I clicked 'watch' on a few pages and also have the following in my LocalSettings.php.
- $wgUsersNotifedOnAllChanges = array( 'sszabo' );
- Is there a cron task somewhere that's supposed to process that queue? That would make sense for digests. 76.20.237.76 17:10, 8 July 2011 (UTC)
- You can configure the job queue to run by cron (more efficient), but the default config will send the mails on something like 1 out of every 10 requests, which is good enough for most smaller wikis.
- Some things to check with watchlist emails:
- Make sure you have the relevant preferences checked in special:preferences. (The option in LocalSettings enables the preference, you have to also check the preference)
- You will only get emails about changes made by users who are not you.
- You will only get emails if you have "viewed" the page since the last mail about the page was sent. To make sure that all pages on viewed just go to your watchlist and click on any of the bolded pages.
- $wgUsersNotifedOnAllChanges isn't working for you because the config variable changed names to $wgUsersNotifiedOnAllChanges (extra i). It used to be notif-ed since the system is called enotif, but then someone decided it was a spelling mistake and changed it to notified a long time ago. Bawolff 17:46, 8 July 2011 (UTC)
- Ah, the missing i seems to have fixed things. I received my first notification finally! I'll have one of the other users(non AllChanges) try the Watch feature. Thanks much!
- BTW, Those steps would be very helpful to include in the online documentation. 76.20.237.76 01:51, 9 July 2011 (UTC)
- It actually never occurred to me that the original spelling might not have been an error (in my defense, it apparently didn't occur to anybody else either). Clearly Tim was too clever for his own good. —Emufarmers(T|C) 05:57, 9 July 2011 (UTC)
- Hmm, I was just assuming that that was the intention because lots of other stuff was notif-this-or-that. It quite honestly could have been a spelling mistake originally. :) Bawolff 22:24, 9 July 2011 (UTC)
- MediaWiki only sometimes uses Pear's mail object, it depends on your config. For special emailuser - pick a user you want to mail (yourself is probably a good person) and go to the page Special:emailuser/Username (so I might go to Special:emailuser/Bawolff ) Cheers. Bawolff 00:10, 8 July 2011 (UTC)
manual (as in labor) wiki creation with 1.17
I am trying to install a new wiki by hand by following the instructions at Manual:Security#Manual_installation. I am using a LocalSettings.php generated by the 1.17 installer for a different wiki. I modified the site name, database and script path. I granted rights to the same mysql user on new database. I get a blank page at the url after completion of all steps. No error feedback at all. I am using mediawiki 1.17 with mysql 5.1.49 and php 5.3.3 Any ideas appreciated. John.james (talk) 03:51, 6 July 2011 (UTC)
- See debugging. Usually means you have a syntax error. Enable php error reporting. (Really its better just to use the web installer. In 1.17 you no longer need to make the directory writeable, so the minor risks mentioned on that page don't apply) Bawolff 03:03, 7 July 2011 (UTC)
- Thanks for the link. I got it working but only after I installed seven wikis in a row with the installer. Kind of a drag I was looking to avoid, but not that bad. I agree the security concerns are minimal. John.james 20:20, 8 July 2011 (UTC)
Is there any way to make a mediawiki frontpage to look like this?
I want front page of the wiki to look like this: http://www.khanacademy.org/
All the articles and categories on one page. Is this possible? And how to implement it? 194.28.180.35 (talk) 05:10, 6 July 2011 (UTC)
- You'll probably need to know lots of css and some html to make it look pretty like that. Remember that some special pages can be transcluded using synyax like
{{special:allpages}}and{{special:prefixindex/prefix}}. Extensions like extension:DynamicPageList (Wikimedia) may be helpful. Bawolff 03:00, 7 July 2011 (UTC)
Rollback changes after spam attack
Hi,
there was a spam attack on my very small wiki project whereat I'm the only author. I tried to fix the problem with the NukeDPL-extension, but this didn't work. (I only get the %PAGE%-Page.)
Is there a way to rollback all changes that have been made after a specific date? (There is no database backup for that date?)
Best regards Schubi87
Produkt Version
MediaWiki 1.15.5-2squeeze1 PHP 5.3.3-7+squeeze1 (apache2handler) MySQL 5.1.49-3
http://wiki.physikerwelt.de/wiki/Spezial:Version
Recent Changes: http://wiki.physikerwelt.de/wiki/Spezial:Letzte_%C3%84nderungen Schubi87 (talk) 08:58, 6 July 2011 (UTC)
[RESOLVED] is it possible to auto delete articles after a period of time?
Is it possible to auto delete articles after a given time? Like , 30 days? So they will be automaticly deleted after 30 days (only for 1 special category). Thanks! 84.87.137.253 (talk) 13:34, 6 July 2011 (UTC)
- You're probably looking for a bot Bawolff 02:56, 7 July 2011 (UTC)
Prerequisites for infobox
Hello,
could you offer a list of what is to do with a newly installed current version of mediawiki to enable infoboxes?
- installed features
- activated features
- options to be made
- templates to install (which and how using export from wikipedia)
- anything else
- make this list of prerequisites part of FAQ or manual
Would it be possible to put these steps into a acript or kind of batch file to just run it against a fresh installed mediawiki?
Thanks in advance! 93.135.236.139 (talk) 06:03, 7 July 2011 (UTC)
- I think this guide I wrote covers most of it, although you won't need a full dump if you just want infoboxes. —Emufarmers(T|C) 16:37, 7 July 2011 (UTC)
Wiki unable to display uploaded images (image links point to local computer's drive--rather than webserver)
Windows 2008 MediaWiki 1.16.1 PHP 5.3.5 (cgi-fcgi) MySQL 5.5.8
Hello,
We are setting up a new mediawiki installation. After using the toolbox to upload an (image) file, every attempt to display that image anywhere within mediawiki fails because the HTML IMG tag which mediawiki composes points to the local drive of the client computer -- rather than the web server.
So for example: -I use the toolbox 'upload file' page to upload "Smhasti.jpg"
-The upload succeeds on the backend (I can view the image by going directly to http://server/mediawiki/images/9/97/Smhasti.jpg )
-However when I view the File History page for this file and mediawiki tries to show a preview of the image, the HTML code generated is: img alt="File:Smhasti.jpg" src="C:\inetpub\wwwroot\mediawiki\images/9/97/Smhasti.jpg
-The image fails to display because obviously my client computer does not have Smhasti.jpg stored on its local C-drive.
Thoughts? Thanks!
Jason 65.196.83.140 (talk) 15:22, 7 July 2011 (UTC)
- Most likely - You have $wgUploadPath set to something very wrong in LocalSettings.php (or some other path related variable like $wgScriptPath, but if that's wrong it'd screw up a whole slew of things). $wgUploadPath should be the web accessible place where uploads are. in your case it should be something like '/mediawiki/images'. Bawolff 00:48, 8 July 2011 (UTC)
Being Constantly Redirected and unable to edit
The following is a wiki that I developed as part of a schoolfusion classroom page. I created it today. I have tried to edit within the wiki multiple times, but have be consistently redirected to login after I select "save page".
I did not have any issues yesterday with the wiki I created. Is there something that I can do? 66.82.162.21 (talk) 16:13, 7 July 2011 (UTC)
- In addition to being unable to edit the wiki. I am redirected to login no matter which tab I select. ALL tabs within the wiki are redirecting me to login again, but then direct me back to the edit page. PLEASE HELP. 66.82.162.21 16:38, 7 July 2011 (UTC)
- It sounds like you've heavily customized the log in process. I think the errors have more to do with customizations made than mediawiki itself. Bawolff 00:44, 8 July 2011 (UTC)
(Solved) Mediawiki mysql and importDump restore failures from 1.6.6 to 1.16.5.
- Summary:
- I have SQL and XML backups of a 1.6.6 mediawiki install that I am trying to update. The mediawiki is pure vanilla. The only extension I have used is the math (Latex, Ocaml) package. I had no trouble restoring an earlier backup to a 1.10.1 version with mysql, so I did not anticipate any problems with this. However:
- "mysql my_wiki < backup.sql" dies, reporting: "ERROR 1071 (42000) at line 43: Specified key was too long; max key length is 1000 bytes"
- "php importDump.php backup.xml.gz" dies, reporting "PHP Fatal error: Call to a member function current() on a non-object in /srv/www/htdocs/s/mw1165/includes/TitleArray.php on line 43"
- I have browsed your Manual: pages, which tell me the upgrade process works [or worked] smoothly. I have browsed your Support Desk pages and found both of these problems mentioned, but no direct answers on how to deal with them.
- The first one was reported to MySQL in 2004 Bug #4541 and is apparently still open, so somebody has clearly gotten around it.
- The second one has been around for over 9 months: importDump.php error with no response.
- I am minimally competent with PHP and MySQL, so I would greatly appreciate it if someone could guide me through these issues.
- In exchange I offer to revisit Manual:Upgrading and incorporate what I learn in the process. I am significantly more competent with writing text (and occasionally python), than I am at PHP and MySQL.
- Details:
- I have three installations running in VirtualBox VMs:
- Mediawiki 1.6.6, PHP 5.2.4, MySQL Ver 14.12 Distrib 5.0.45 (openSuSE 10.3)
- Mediawiki 1.16.5, PHP 5.3.5, MySQL Ver 14.14 Distrib 5.1.53 (openSuSE 11.4)
- Mediawiki 1.17.0, PHP 5.3.5, MySQL Ver 14.14 Distrib 5.1.53 (openSuSE 11.4)
- I have three installations running in VirtualBox VMs:
- The 1.6.6 version is a full restore of my backup, but with intermittent functioning of the math extension and an unsupported OS. The other two are both unable to import the backup. Both give the error messages shown above.
- If someone can answer these questions, I can probably do the upgrade, and explain it to others.
- How does one tell whether MySQL is using the MyISAM or the InnoDB engine? The install script recommends InnoDB but the Manual: pages recommend MyISAM. I chose InnoDB during the install, but the restore specifically says: "ENGINE=MyISAM". How can I tell which engine MySQL thinks it is using for this table? My LocalSettings.php sets $wgDBTableOptions = "ENGINE=MyISAM, DEFAULT CHARSET=utf8"; but that doesn't assure me that MySQL is set to MyISAM.
- The mysql error message points at the very first CREATE: "CREATE TABLE `xexternallinks`" where "x" is the table prefix. There clearly is a conversion routine somewhere, since the structure of the KEY in this table in the recent installs is quite different from 1.6.6. How can I do that conversion?
- The importDump error points at the very first HTML link in the originally installed home page: "* Configuration settings list". What can I do to get the importDump script to work?
- In both of these cases, the script appears to die when it gets to its first substantive task. That leaves me concerned that fixing the first problem will simply lead to other ones. Should I take Tim Starling at his word: There are no open bug reports regarding upgrading from 1.3 to 1.13. The vast majority of reports indicate that it works just fine -- and only upgrade to 1.13? I have a copy of the 1.13.2 installer in my archives.
- Incidentally, his comment points to a mailing-list link, which in turn points to upgradeTest.py. That link is broken. The SVN toolset has been moved. The correct link is http://svn.wikimedia.org/viewvc/mediawiki/trunk/tools/upgrade-test/upgradeTest.py?view=markup
- Thanks in advance for any help you can give me! Docduke (talk) 23:44, 7 July 2011 (UTC)
- For the "php importDump.php backup.xml.gz" dies, reporting "PHP Fatal error: Call to a member function current() on a non-object in /srv/www/htdocs/s/mw1165/includes/TitleArray.php on line 43" part of this (not commenting on the rest of it for now)
- That's not a known issue (afaik). If possible you should open a bug, attaching a minimal example (aka just has the page that causes the error, since there's size limits on the upload size). Just because there's a post on mwusers doesn't mean people with the power to fix things will actually see it (And its really hard to fix that sort of thing without an example dump file that causes the error). Bawolff 00:39, 8 July 2011 (UTC)
- Regarding the XML restore: There will now be a slight delay due to technical difficulties. I shortened the file from 322 MB to 28 KB. It failed in 1.16.5. I tried it in 1.17.0 and it appeared to work, but bitched about missing links, so I retried the full file in 1.17.0 -- and learned that my openSUSE testbed default install created a large /home partition and a small / partition, which promptly filled up via MySQL and crashed. I'm not sure what I did to get the XML restore to work, but I have some serious system rebuilding to do before I can find out. Thanks for your quick response. Please consider this my problem rather than that of MediaWiki, until I can rebuild a system where I can properly test it.
- Thanks for the support! Docduke 17:30, 8 July 2011 (UTC)
- Indeed it turned out to be my problem, probably with permissions. I retried the install and importDump update from scratch, and it succeeded with the full restore!
- However, not all problems are gone. The restored database appears to be missing its Searchindex. I have spent some time looking for a way to fix that, but updateSearchIndex only works on Recentchanges, and there appears to be no way to put all pages in the Recentchanges list. I'll post this as a separate thread.
- Let me say at this point, the update was remarkably easy, once I got past whatever (probably permission) problem I had, and now I have citations, images and equations working! Thanks for the help!
- For the solution regarding the Searchindex, see What is the easiest way to restore a Searchindex? Docduke 01:13, 1 August 2011 (UTC)
Thumbnails not shown for anonymous user (but only a part of them)
On my wiki I have some thumbnails that are not shown for anonymous user. When uou see here: http://encyklopedia.szczecin.pl/wiki/Szczecin_Niebuszewo there are no thumbnails that can be seen. But when you look at this: http://encyklopedia.szczecin.pl/wiki/Ludzie_z_wyspy anonymous user can see the thumbnails. Wht can causes the problem ? Files do exists. When you log in you will see all of the thumbnails... 212.14.11.13 (talk) 07:10, 8 July 2011 (UTC)
- Can enybady help ? Sthe strange thig is that i have one page that has one thumb in gallery that is visible for all and other not:
- http://encyklopedia.szczecin.pl/wiki/Szczecin_Gumie%C5%84ce
- In case of the single image the source of the page is:
- When user is logged in
<a href="/wiki/Plik:Stacja_Szczecin_Niebuszewo_1.jpg" class="image"><img alt="Stacja Szczecin Niebuszewo 1.jpg" src="/images/8/89/Stacja_Szczecin_Niebuszewo_1.jpg" width="768" height="1024" /></a></pre> * When user is logged out <pre><a href="/wiki/Plik:Stacja_Szczecin_Niebuszewo_1.jpg" title="Plik:Stacja Szczecin Niebuszewo 1.jpg">Plik:Stacja Szczecin Niebuszewo 1.jpg</a>
- Is there any way to make thumbnails wisible for the anonymous users ? Arekbis 07:00, 15 July 2011 (UTC)
Generating summary pages of structured (templated) content
This is an end user question not a config / admin question - please let me know if there is a more appropriate forum.
I am new to MediaWiki but have used Confluence in the past.
Confluence has a reporting extension that combined with boilerplate templates makes it very easy for users to set up simple data capture and reporting.
For example, say I want to have a single reference point for all my environments. In both MediaWiki and Confluence I would set up a template for environments with fields Name, Owner, Phase, PhysicalBox, CodeVersion, Comments, and then create a page for each environment from this template.
Let's say I also want a summary page that lists the Name, Phase and CodeVersion of all my environments. In Confluence I can create this summary page as a report on the details pages so the data doesn't need to be maintained in two places. If I expect more environments to be created in future I might also include an "add new enviroment" link that starts a new page with the correct template preassigned.
Is it possible to do something similar in MediaWiki? 192.223.140.45 (talk) 09:10, 8 July 2011 (UTC)
How do I get a page layout like the one on mediawiki.org home page
I like to have my landing page like the one on the mediawiki.org site. Checked the help sections but couldn't locate anything that can help me achive that layout on my own wiki. Can someone point me the appropriate documentation. Thanks in advance. 122.174.19.103 (talk) 16:28, 8 July 2011 (UTC)
- It has to do with how you format the page. You will often find that various wiki sites may have the same design, as they may have copied the source and modified the information for their purposes. Hazard-SJ ± 21:06, 13 July 2011 (UTC)
Exclude a heading from TOC
I'm using these: MediaWiki: 1.17.0; PHP: 5.3.3-7+squeeze3 (cgi-fcgi); MySQL: 5.1.49-3 at http://pea.vesperto.org/
My question is: How do I supress some headings from showing up in the TOC, and otherwise keep their usual behaviour? I need it for this page, where the headings from the transcluded template should not show up the the TOC of the pages including it.
Thanks for your time! Tuvalkin (talk) 17:14, 8 July 2011 (UTC)
Can't see any extensions installed?
I've got MediaWiki 1.17 and I installed a few extensions last night (Parserfunctions, cite etc) and then I went on Special:Version but there is no record of any extensions installed?
I've put the php stuff in my localsettings and put the appropriate folders in my /extensions directory. What's going on? 90.207.213.130 (talk) 19:06, 8 July 2011 (UTC)
- Is that LocalSettings.php file located in the right place? —Emufarmers(T|C) 05:58, 9 July 2011 (UTC)
- I hope you haven't ended your LocalSettings.php file with
?>, then placed the required lines after it. We don't advise ending your file. Hazard-SJ ± 21:08, 13 July 2011 (UTC)
Importing XML dump with importDump.php: Call to undefined method WikiImporter::uploadCallback() in Import.php on line 622
I have a XML dump generated on 1.13.3.
I'm trying to import it on 1.17.0 PHP 5.3.4 (cli) (built: Dec 15 2010 12:15:07) Using sqlite3 The local machine environment is MacOS 10.6.8.
I've installed mw1.17.0 on my local machine just fine.
The problem: when importing the XML dump, after several pages are imported, this error occurs:
$ php maintenance/importDump.php SGLabs-wiki-backup.xml 1 (53.67 pages/sec 53.67 revs/sec) 1 (20.87 pages/sec 41.73 revs/sec) 1 (20.62 pages/sec 61.85 revs/sec) ..... 46 (74.60 pages/sec 700.63 revs/sec) 46 (74.45 pages/sec 700.81 revs/sec) 47 (75.90 pages/sec 700.88 revs/sec) Fatal error: Call to undefined method WikiImporter::uploadCallback() in /Users/...path.../includes/Import.php on line 622
(Obviously, the result above was obtained with the debug flag turned on.)
I can't find where uploadCallback() is defined, but I see this in comments elesewhere, so I suppose this piece of code was left from older version without proper updating. When I comment out the line 622, the importer goes on, to the end of the XML file without causing any error, but I am probably missing something without noticing.
The content was taken from my website but the published site is currently running without mediawiki component. I'm trying to upgrade the engine, convert from mysql to sqlite and do some cleaning on local machine first. 71.192.161.223 (talk) 07:28, 9 July 2011 (UTC)
- HELLO - is this such a difficult issue?? Or only very few people are involved in maintaining importDump.php? 71.192.161.223 04:21, 14 July 2011 (UTC)
- Yes, you would probably have better luck if you asked on a mailing list. —Emufarmers(T|C) 07:13, 15 July 2011 (UTC)
- Thanks - where do I find the info on the ML? 71.192.161.223 20:28, 15 July 2011 (UTC)
- Mailing lists
- mediawiki-l is your best bet, although you can try wikitech-l if you don't get a response after a couple days. —Emufarmers(T|C) 22:32, 15 July 2011 (UTC)
- Thanks - where do I find the info on the ML? 71.192.161.223 20:28, 15 July 2011 (UTC)
- Yes, you would probably have better luck if you asked on a mailing list. —Emufarmers(T|C) 07:13, 15 July 2011 (UTC)
Include Unity3D (JavaScript)
Hi. I want to include the following source into a site of my MediaWiki:
<script type="text/javascript" src="http://webplayer.unity3d.com/download_webplayer-3.x/3.0/uo/UnityObject.js"></script>
<script type="text/javascript">
function GetUnity() {
if (typeof unityObject != "undefined") {
return unityObject.getObjectById("unityPlayer");
}
return null;
}
if (typeof unityObject != "undefined") {
unityObject.embedUnity("unityPlayer", "http://startrek-is.com/wp-content/themes/startrek/unity3d/FED_Steamrunner.unity3d", 640, 400);
}
</script>
How can i get it?
This will look like this: http://lcars.66th-fleet.de/include/schiffe/media_st_is1.php 78.94.190.223 (talk) 12:47, 9 July 2011 (UTC)
- This Question is from me^^ JTGarrett 13:01, 9 July 2011 (UTC)
- Go to MediaWiki:Common.js on your wiki. Assuming you have MediaWiki 1.17.0 installed, paste the following:
$.getScript('http://webplayer.unity3d.com/download_webplayer-3.x/3.0/uo/UnityObject.js', function(){ function GetUnity() { if (typeof unityObject !== "undefined") { return unityObject.getObjectById("unityPlayer"); } return null; } if (typeof unityObject !== "undefined") { unityObject.embedUnity( "unityPlayer", "http://startrek-is.com/wp-content/themes/startrek/unity3d/FED_Steamrunner.unity3d", 640, 400 ); } });
- Then create Template:UnityPlayer:
<div id="unityPlayer"></div>
- Then place
{{UnityPlayer}}on any wiki page, save the page, and the player should show up. Krinkle 14:33, 10 July 2011 (UTC) - Hi. Thanks for your help. But thats not working... did i do anything wrong?
- http://stis.sci-wiki.de/index.php/Diskussion:Hauptseite
- There is nothing.
- And: There will be more ships. Not only the Steamrunner-Class. How can i include more then one script and include it into a wiki?
- MfG
- JTGarrett 22:32, 10 July 2011 (UTC)
- Look at this diff. It seems there was a syntax error, should be good if you update your MediaWiki:Common.js Krinkle 20:39, 11 July 2011 (UTC)
- One Post over yours i wrote:
- Hi. Thanks for your help. But thats not working... did i do anything wrong?
- http://stis.sci-wiki.de/index.php/Diskussion:Hauptseite
- There is nothing.
- And: There will be more ships. Not only the Steamrunner-Class. How can i include more then one script and include it into a wiki? JTGarrett 12:02, 12 July 2011 (UTC)
- Yes, and above yours, after the one you repeated – I wrote:
- Look at this diff. It seems there was a syntax error, should be good if you update your MediaWiki:Common.js
- So, update your MediaWiki:Common.js with the script at Project:Support desk/Flow/2011/07#c-Krinkle-2011-07-10T14:33:00.000Z-78.94.190.223-2011-07-09T12:47:00.000Z. Krinkle 10:41, 16 July 2011 (UTC)
- No change. It don't work. JTGarrett 09:39, 18 July 2011 (UTC)
- Hope that anyone can help me...
- I don't yet find a solution.
- MfG JTGarrett 21:30, 23 July 2011 (UTC)
- omfg... okay?
- Now it is working... but how can i include it like a blank script... i don't know how to say it in english...
- example:
- I insert
- {{unityGalaxy}}
- and in the script and in line 11 the line
- "http://startrek-is.com/wp-content/themes/startrek/unity3d/FED_Steamrunner.unity3d",
- will changed in
- "http://startrek-is.com/wp-content/themes/startrek/unity3d/FED_Galaxy.unity3d",
- {{unitySteamrunner}}
- and the line will be
- "http://startrek-is.com/wp-content/themes/startrek/unity3d/FED_Steamrunner.unity3d",
- or similar JTGarrett 21:39, 23 July 2011 (UTC)
- Sry... me again... have found the solution for my last request.
- But i have one more problem.
- I include it as presentation but i have two results. It have to look like this:
- http://bgo.sci-wiki.de/index.php/Viper_Mk_II
- But it looks like this:
- http://stis.sci-wiki.de/index.php/Vorlage_Diskussion:Schiffsdaten
- It is about the text... on the site where i include the unity3d the text is under the table... on my BGO-Wiki the table is on the right and the text goes around it.
- Where is the fault? JTGarrett 22:40, 23 July 2011 (UTC)
- No change. It don't work. JTGarrett 09:39, 18 July 2011 (UTC)
- One Post over yours i wrote:
Dumping SVN content
Note I also posted this to [w:en:Wikipedia:Village pump (technical)#SVN server dump], before realizing this was probably the more appropriate forum:
I'm doing some research into collaborative software repositories. I have already processed the entire log from the MediaWiki SVN (~91,000 revisions), which has indicated to me there are about 500,000 unique file versions. I would like to obtain all these versions for analysis, and I have the script needed to do so. I doubt the network bandwidth required to run 'svn co -r [#] [url] > [file]' half-a-million times is, (a) something I want to wait on, and (b) is something developers want taxing their server. I was curious if someone might be able to run it on the server directly for me, and provide a pointer to the very large file that results? Thanks, West.andrew.g 13:35, 10 July 2011 (UTC)
- We have a git mirror, pretty fast to download. Max Semenik 14:16, 10 July 2011 (UTC)
Tidy?
Does anyone have a detailed guide on how to install tidy? I've got the tidy folder downloaded (it has a lot of .c files), and I have MediaWiki running on MAMP. How do I install Tidy? 90.207.213.130 (talk) 21:19, 10 July 2011 (UTC)
Changing default direcory to /wiki/
How can i change my site from the default name to /wiki/ 124.197.55.80 (talk) 22:42, 10 July 2011 (UTC)
- Move the wiki directory.
- See Manual:Short URL. —Emufarmers(T|C) 05:58, 11 July 2011 (UTC)
How do change the permalinks formats in Mediawiki?
My mediawiki pages format is (EXAMPLE) :
http://wikihearts.com/index.php?title=Christy_Jacob
How can I change it like the simple format shown below (EXAMPLE FROM ANOTHER SITE)?
http://wikipedia.org/wiki/Christy_Jacob 115.119.215.2 (talk) 05:21, 11 July 2011 (UTC)
- See Manual:Short URL. That's not a permalink, incidentally. —Emufarmers(T|C) 05:58, 11 July 2011 (UTC)
Revision variable for templates specifically?
Hello,
I am using the revision variables, more specifically {{REVISIONDAY}}/{{REVISIONMONTH}}/{{REVISIONYEAR}}. These seem to list the revisions of the main page it is referenced on, which is all good and working.
My problem is as follow. I have a couple pages with template pages within. The page code is along the lines:
=Reports=
{{Results Fin}}
{{Results Tech}}
{{Results Opps}}
{{Results Fac}}
I have included the revision variables within each template page (not the main page), as I would like to see when the individual templates where last updated appose to the mainpage [[Reports]]. Using {{REVISIONDAY}}/{{REVISIONMONTH}}/{{REVISIONYEAR}} on each of these template pages, is not doing exactly what I would like. The revision stamp is that of the mainpage [[Reports]] on all templates, instead of listing individual revision stamps, one for each template.
The problem comes in when one of the template page is updated, the revision stamp is updated for all.
Please advise if this is possible, as I have not been able to find a another way to do this.
My Wiki versions: Product Version MediaWiki 1.16.2 PHP 5.1.2 (apache2handler) MySQL 5.0.45-community-log
Any assistance and guidance would be appreciated. Regards <ruhann> Wiggwire (talk) 10:08, 11 July 2011 (UTC)
- Hello. Yes, you are correct that those variables actually display according to the page on which the variable is placed. In that case, I advise that you place the variable on each individual page, if possible, since that is what it seems that you want. Hazard-SJ ± 20:31, 13 July 2011 (UTC)
Missing Images; 1.15 to 1.17 upgrade
I upgraded one of my MediaWikis from 1.15.1 to 1.17.0 tonight, and I had the problem with about half of my images not displaying on their pages. I am using GoDaddy hosting, which doesn't allow console access, so running the rebuildImages.php script was not an option. After spending an hour or so looking at the database, I couldn't find anything wrong. All image names were in the image table, and all files in the "images" directory from the old wiki directory were successfully moved to the new wiki directory. The missing images would even display on the Special Page: "File list". Just as a test, I went to one of my pages with missing images, selected "Edit", pressed the "Save" button (making no changes), and the images are now displaying! It will take a little effort to re-save all of the pages with missing images, but it's a lot better than having to re-upload all of those images again. I am just posting this in case it may help others.
My only suggestion would be to give the option to run the "rebuildImages.php" script from the web interface. I tried putting the URL to that file in my web browser's address bar, but it didn't appear to work. 68.47.209.152 (talk) 04:21, 12 July 2011 (UTC)
- No, maintenance scripts aren't supposed to work from broswer. Can you give a link to your wiki? Max Semenik 08:55, 12 July 2011 (UTC)
- Actually, you run that script from a command line, not your browser. Hazard-SJ ± 21:13, 13 July 2011 (UTC)
- Have you run the update script? Hazard-SJ ± 21:15, 13 July 2011 (UTC)
- Without console access, I don't think he/she can run scripts. If I'm not mistaken, the suggestion (not so much a question) is for MediaWiki to offer an equivalent option from a browser interface. The relevant link would be [1] Cavila 06:40, 14 July 2011 (UTC)
- According to what he/she said, the only problem is that the images are not displaying, not how to upgrade. (I admit I didn't see that he/she said the host doesn't allow console access.) Hazard-SJ ± 23:46, 15 July 2011 (UTC)
- Without console access, I don't think he/she can run scripts. If I'm not mistaken, the suggestion (not so much a question) is for MediaWiki to offer an equivalent option from a browser interface. The relevant link would be [1] Cavila 06:40, 14 July 2011 (UTC)
- Have you run the update script? Hazard-SJ ± 21:15, 13 July 2011 (UTC)
Images behind /a/ad/ directory, but are not ad images.
While browsing my locak Sprial Knights wiki I came across 2 images there were there, but were being blocked by my browsers anti-ad mod. I've noticed the 2 image while pointing to the correct location File:x.png the image location was behind /a/ad/.
How can the images be moved so they are no longer behind the /a/ad/ and how would future images not have the same fate? examples below. http://wiki.spiralknights.com/File:Equipment-Angelic_Raiment_icon.png -> http://wiki.spiralknights.com/images/a/ad/Equipment-Angelic_Raiment_icon.png http://wiki.spiralknights.com/File:Token-Bark_Module.png -> http://wiki.spiralknights.com/images/a/ad/Token-Bark_Module.png
Thanks! 71.12.241.40 (talk) 06:24, 12 July 2011 (UTC)
- You can rename the files.
- You could also not use misconfigured browser extensions. —Emufarmers(T|C) 19:28, 12 July 2011 (UTC)
"There is currently no text in this page..." - What's going on?
WikiWright (talk) 11:17, 13 July 2011 (UTC)
Problems upgrading to MW 1.17
- MySQL 5.1.57
- Php 5.2.17
Having used Installatron to upgrade from 1.16.2 to the latest version of MW, I received an error message saying that there are problems with two of my Semantic MediaWiki extensions. When I disabled the extensions in LocalSettings.php, the site appeared but the root of the problem proved to be more serious:
A database query syntax error has occurred. This may indicate a bug in the software. The last attempted database query was: SELECT iwl_prefix,iwl_title FROM `o2a5_iwlinks` WHERE iwl_from = '3440' FOR UPDATE from within function "LinksUpdate::getExistingInterwikis". Database returned error "1146: Table '[…name of database here…].o2a5_iwlinks' doesn't exist (localhost)".
Some of the help pages mention using a script from the command line, but I don’t have shell access. Any help would be much appreciated!
Cavila 13:39, 13 July 2011 (UTC)
I also tried web configuration by going to [URL of site]/mw-config/index.php but that one produces an internal server error.
Internal Server Error The server encountered an internal error or misconfiguration and was unable to complete your request. Please contact the server administrator, [...] and inform them of the time the error occurred, and anything you might have done that may have caused the error. More information about this error may be available in the server error log. Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request. Apache/2 Server at [site] Port 80
What error log? The odd thing is that after a while, the "A database query syntax error ..." message disappeared, but activating Semantic MediaWiki with Semantic Bundle still gives me "Parse error: syntax error, unexpected T_STRING [site]extensions/semantic-bundle/SemanticBundleSettings.php on line 7". Looks like the upgrade is still in limbo? Cavila 19:31, 13 July 2011 (UTC)
- The upgrade instructions are here. If you're using Installatron, you'll need to seek support from them. —Emufarmers(T|C) 00:04, 14 July 2011 (UTC)
- I know where the manual is to be found, or else I wouldn't have known of trying .../mw-config/index.php as an alternative installation method. That's the method I've been focusing on of late (as opposed to Installatron). Cavila 06:28, 14 July 2011 (UTC)
- OK, the last error message I mentioned is due to a bug in Semantic Bundle (it's never one thing, of course). Tbc, Cavila 07:22, 14 July 2011 (UTC)
- Even though the update script did not succeed entirely, resulting in an internal error as noted above, it appears to have done the trick! Sadly, the database tables have not been refreshed a 100%, but the site is basically working. Cavila 08:09, 15 July 2011 (UTC)
- What isn't working at this point?
- What version of the Semantic Bundle are you using? You should always upgrade your extensions when you upgrade MediaWiki. —Emufarmers(T|C) 22:29, 15 July 2011 (UTC)
- Yes, the latest versions of the extensions have been installed (though I wonder if that should have been before rather than after the upgrade).
- There may have been database issues before I upgraded, which delayed or impeded certain changes to SMW properties and which somehow interfered with the upgrade. The combination of Installatron and the MW web (re-)installer was needed in my case, but it’s unusual alright and may have been throwing up the internal error message (or perhaps the PHP memory limit is set too low?).
- Whatever it was, the issues appear to have gradually sorted themselves out over the last few days, as far as I can see. The only odd behaviour I could spot is that I can’t browse through a category by clicking on ‘next 200’ – it just hangs regardless what skin I use. That may be quite another issue though (a new bug?).
- Thanks for taking an interest. Regards, Cavila 08:49, 17 July 2011 (UTC)
- Even though the update script did not succeed entirely, resulting in an internal error as noted above, it appears to have done the trick! Sadly, the database tables have not been refreshed a 100%, but the site is basically working. Cavila 08:09, 15 July 2011 (UTC)
- OK, the last error message I mentioned is due to a bug in Semantic Bundle (it's never one thing, of course). Tbc, Cavila 07:22, 14 July 2011 (UTC)
- I know where the manual is to be found, or else I wouldn't have known of trying .../mw-config/index.php as an alternative installation method. That's the method I've been focusing on of late (as opposed to Installatron). Cavila 06:28, 14 July 2011 (UTC)
problem editing Main page only
I have recently set up two Wikis on the same server and for one of these a problem has developed when trying to edit the Main page from the top level edit. I can edit all other pages and can edit the sub sections of the main page, but when I click the top level edit and try to save the Main page I see this
'Forbidden
You don't have permission to access /wikiwiki/index.php on this server.
Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.'
I don't think there is a problem with permissions - I have all enabled and am administrator and bureaucrat etc, plus it works with the same set up for my other wiki.
Any ideas how to trap this ErrorDocument 404 error? Johny Transfinite (talk) 11:50, 14 July 2011 (UTC)
{{#sprintf...}} ?
What is the preferred method for presenting no more than 3 significant digits of the result of an {{#expr..}}, eg a function like {{#sprintf...}} it work for this purpose.
Product Version MediaWiki 1.15.3 PHP 5.2.6-1+lenny9 (cgi-fcgi) MySQL 5.0.51a-24+lenny5-log http://diogenesinstitute.org/index.php?title=Special:Version Jabowery (talk) 13:48, 14 July 2011 (UTC)
ResourceLoader duplicate header Status on FastCGI
Using MediWiki 1.17.0 on a server with FastCGI. After a few minutes, the css is not loaded anymore.
With Firebug I see that the URL http://example.com/mw/load.php?debug=false&lang=nl&modules=mediawiki.legacy.commonPrint%2Cshared%7Cskins.vector&only=styles&skin=vector&* gives a 500 Internal Server Error.
In the apache log it says:
.. "/var/www/xxx/cgi-bin/php" aborted: error parsing headers: duplicate header 'Status', ..
In includes\resourceloader\ResourceLoader.php I found the following code in the respond() function:
header( 'HTTP/1.0 304 Not Modified' );
header( 'Status: 304 Not Modified' );
I found that FastCGI does not like it when you send a Status header like that. The problem disappears when I change these lines into:
if ( substr(php_sapi_name(), 0, 3) == 'cgi' ) {
@header("HTTP/1.1 304 Not Modified");
} else {
@header("Status: 304 Not Modified");
}
I wonder if this is the right solution (no way: hacking core is never the right solution). I googled and searched, but did not find anyone else with the same problem. Is FastCGI not used by many? Or is there something else very strange in my case only?
PHP 5.2.4 (FastCGI)
MediaWiki 1.17.0
MySQL 5.0.51a 82.157.57.208 (talk) 13:49, 14 July 2011 (UTC)
- I've filed a bug for you. It also seems like this issue has been encountered before. ^demon 17:37, 14 July 2011 (UTC)
- I'm getting an error 500 with the following URL, should I file another bug or is this related?
- .../mediawiki/load.php?debug=false&lang=en&modules=jquery.checkboxShiftClick%2Cclient%2Ccookie%2Cplaceholder%7Cmediawiki.language%2Cutil%7Cmediawiki.legacy.ajax%2Cajaxwatch%2Cwikibits&skin=vector&version=NaNNaNNaNTNaNNaNNaNZ
- (lighttpd/1.4.28, php-cgi 5.3.3-7+squeeze3, Mediawiki 1.17.0) 194.246.123.103 22:04, 15 July 2011 (UTC)
- Sounds like a different bug. "Error 500" is really vague, so you might want to see Manual:How to debug. ^demon 17:39, 18 July 2011 (UTC)
- Thanks for the hint. However, once ini_set( 'display_errors', 1 ) is set, the error goes away. With only error_reporting set in LocalSettings.php, the error does not show up. I think I'll better head off to a mailinglist for this one. Thanks for replying though! -- 194.246.123.103 23:17, 18 July 2011 (UTC)
- Sounds like a different bug. "Error 500" is really vague, so you might want to see Manual:How to debug. ^demon 17:39, 18 July 2011 (UTC)
How can I make an Extension create an Article?
Hi everyone.
I'm trying to write a piece of code, that imports one (specific) ical-file (calendar-data) into the wiki (=creates an article), so a calendar extension uses it. The code should be executed when the calendar is viewed (there'll be restrictions to that). For test purposes I use a <test/> tag on a page to start it and just let it create a "test" page with some text. But there are two basic problems:
- One: The "test" page is only created when the starter page is saved (or previewed) - not when it's viewed.
- Two: When the "test" page is created, the title of the starter page is changed to "test"
The problem lies in the $article->doEdit part. Here's a simple code for reproduction:
<?php
# Confirm MW environment
if (!defined('MEDIAWIKI')) {
die( 'This file is a MediaWiki extension, it is not a valid entry point' );
}
$wgHooks['ParserFirstCallInit'][] = 'efAutoEditSetup';
function efAutoEditSetup( Parser &$parser ) {
$parser->setHook( 'test', 'autoEdit' );
return true;
}
function autoEdit($paramstring, $params = array()) {
$debug="check";
$newtitle="test";
$newarticle = new Article(Title::newFromText($newtitle), 0);
$testtext="ThisPageWasCreatedByAnExtension";
$newarticle->doEdit($testtext, EDIT_UPDATE);
return $debug;
}
This is in MW 1.17.0 and 1.19alpha/1.18alpha (intern/download) with php: 5.3.3-1ubuntu9.5 (apache2handler)
However, 1.18 doesn't change the "starter"-title but instead reports an internal error:
Invalid marker: ?UNIQ1b659bf462b401f8-test-00000001-QINU?
Backtrace:
#0 /home/inviron/www/TestWiki118a/includes/parser/StripState.php(37): StripState->addItem('general', '?UNIQ1b659bf462...', 'check')
#1 /home/inviron/www/TestWiki118a/includes/parser/Parser.php(3745): StripState->addGeneral('?UNIQ1b659bf462...', 'check')
#2 /home/inviron/www/TestWiki118a/includes/parser/Preprocessor_DOM.php(1110): Parser->extensionSubstitution(Array, Object(PPFrame_DOM))
#3 /home/inviron/www/TestWiki118a/includes/parser/Parser.php(2983): PPFrame_DOM->expand(Object(PPNode_DOM), 0)
#4 /home/inviron/www/TestWiki118a/includes/parser/Parser.php(1142): Parser->replaceVariables('<test/>')
#5 /home/inviron/www/TestWiki118a/includes/parser/Parser.php(340): Parser->internalParse('<test/>')
#6 /home/inviron/www/TestWiki118a/includes/WikiPage.php(1927): Parser->parse('<test/>', Object(Title), Object(ParserOptions), true, true, NULL)
#7 /home/inviron/www/TestWiki118a/includes/WikiPage.php(1057): WikiPage->prepareTextForEdit('<test/>', NULL, Object(User))
#8 [internal function]: WikiPage->doEdit('<test/>', '', 97)
#9 /home/inviron/www/TestWiki118a/includes/Article.php(2012): call_user_func_array(Array, Array)
#10 /home/inviron/www/TestWiki118a/includes/EditPage.php(1161): Article->__call('doEdit', Array)
#11 /home/inviron/www/TestWiki118a/includes/EditPage.php(1161): Article->doEdit('<test/>', '', 97)
#12 /home/inviron/www/TestWiki118a/includes/EditPage.php(2815): EditPage->internalAttemptSave(false, false)
#13 /home/inviron/www/TestWiki118a/includes/EditPage.php(475): EditPage->attemptSave()
#14 /home/inviron/www/TestWiki118a/includes/EditPage.php(353): EditPage->edit()
#15 /home/inviron/www/TestWiki118a/includes/Wiki.php(496): EditPage->submit()
#16 /home/inviron/www/TestWiki118a/includes/Wiki.php(236): MediaWiki->performAction(Object(Article))
#17 /home/inviron/www/TestWiki118a/includes/Wiki.php(621): MediaWiki->performRequest()
#18 /home/inviron/www/TestWiki118a/includes/Wiki.php(529): MediaWiki->main()
#19 /home/inviron/www/TestWiki118a/index.php(57): MediaWiki->run()
#20 {main}
This might be related to https://bugzilla.wikimedia.org/show_bug.cgi?id=24997
Is this even the right way to create a wikipage in an extension? Should this work? Is there another way to do it?
Any help is appreciated. Sidcom (talk) 16:55, 14 July 2011 (UTC)
Guide to moving wiki from localhost to web?
Hello,
Major n0ob here.
Does anyone have a guide of how I can move my wikipedia from localhost (as I've been refining it) to my hosting provider on the web?!
Any help would be greatly appreciated. 90.207.213.130 (talk) 16:57, 14 July 2011 (UTC)
- Meta has a page on exporting content. Files can be copied directly. I hope this helps. jonkerz♠ 14:48, 16 July 2011 (UTC)
How do I define custom tables in a skin's css file?
I would like to predefine custom table formats in the css that various contributors can then use when adding content. I'm new to Mediawiki. Can anyone point me to resources that provide detailed instructions for defining tables, and other elements for that matter, in the skin's css? I am using Mediawiki 1.16.5, PHP 5.3.3, MySQL 5.1.52. Thanks in advance. 75.5.96.194 (talk) 17:03, 14 July 2011 (UTC)
- in your .css you can define something like:
table#infobox { border: 2px; font-size: 105%; } table#infobox td { vertical-align: top; }- and so on...
- in your wiki you can then call this style by starting your table with :
- {| id="infobox
- for any css tweaking you might want to check out: http://getfirebug.com/ - in case you haven't already. Sidcom 17:29, 14 July 2011 (UTC)
- Thank you so much. I have what is likely a dumb question. I'm familiar with the TD (cell) tag from regular HTML tables, which I've used often. In your example, above however, I'm not understanding the "td" use and assume it's not the same thing as a regular HTML table td tag. Did you provide two different table examples above (one named "table#infobox" and one named "table#invobox td"? Because there is a closing table symbol "}" before "table#infobox td, I'm assuming it's a separate table. Perhaps the syntax is different for tables within the css file? Thanks so much. I will also look at getting Firebug. 75.5.96.194 19:19, 14 July 2011 (UTC)
- "table#infobox" is the style for the whole table, "table#infobox td" is the style for a td tag within the #infobox table. Sidcom 08:50, 15 July 2011 (UTC)
Errors with categories in 1.17.0
I just updated to 1.17.0 (from 1.16.X). Everything seems fine, except all of my category links seem to be broken. For example, when I try to click on them, I end up with the following error:
A database query syntax error has occurred. This may indicate a bug in the software. The last attempted database query was: (SQL query hidden) from within function "CategoryViewer::doCategoryQuery". Database returned error "1054: Unknown column 'cl_sortkey_prefix' in 'field list' (localhost)".
I'll be blunt--I have no idea what that means. I've done nothing fancy with my installation--other than a few extensions, it's pretty vanilla. If you want to take a look at the wiki to diagnose things, go to http://www.kuglerworld.com/wiki/index.php/Main_Page and click on one of the category links on the left menu bar.
Thanks, and hopefully we can get this sorted out.
-Chris GuJiaXian (talk) 22:40, 14 July 2011 (UTC)
- You need to run the update script. —Emufarmers(T|C) 22:33, 15 July 2011 (UTC)
- I did run the update script when I installed 1.17.0. I just ran it again with the same results. I do not have command line access, so I used the web method. I renamed my LocalSettings.php file, navigated to my wiki, worked through the reinstallation (it detected my wiki in the database and claimed to have updated the database for 1.17.0), deleted the new config file, and finally renamed my old config file again. My wiki seems to work, except for categories.
- Did I miss something? I'm pretty clueless when it comes to this stuff. GuJiaXian 01:08, 16 July 2011 (UTC)
- The instructions for 1.17 don't say to rename your LocalSettings.php file. —Emufarmers(T|C) 02:12, 16 July 2011 (UTC)
- You're right...that did it. Thanks! GuJiaXian 02:28, 16 July 2011 (UTC)
- The instructions for 1.17 don't say to rename your LocalSettings.php file. —Emufarmers(T|C) 02:12, 16 July 2011 (UTC)
- Also, make sure the database user in your LocalSettings.php file, has sufficient privileges for altering the DB structures. 86.0.20.129 19:37, 16 July 2011 (UTC)
delete
GuJiaXian (talk) 22:40, 14 July 2011 (UTC)
Mark task complete: How can i set the parameter "completedtext" to sub branch?
Hi,
i want the following. I want to store the completed Tasks not in the first branch but in the second branch.
Example:
Main branch - Completed = No!!!! Main branch - My ToDos - Completed = This is myvision
Is this doable?
Bye 213.160.23.26 (talk) 07:25, 15 July 2011 (UTC)
Suggestion to warn user when leaving page
Hi, I don't know where to post this, but I really just want to suggest that some sort of warning is given before a MediaWiki.org user leaves this page. I had recently written quite much in this box, when I decided that I wanted to go back to the previous outcast of the post, before I had pressed "Show preview" the last time, so I clicked "Go back one page" in my web browser. This trick works in Wikipedia, and despite the dialog box that asks you if you really want to leave the page you can safely go forth and back between the different version of the post without loosing any information (I'm using FireFox, maybe this doesn't work with other web browsers). Here on the other hand, I didn't get back to my previous version of the post. I didn't even get a warning, but was brought right back to the page before I had even started to write my post, and when I clicked forward again, my post was gone. I therefore suggest that some kind of warning is given to the user before he/she tries to leave a started post. —Kri 18:17, 15 July 2011 (UTC)
- Hi, thanks for reporting this! I've filed it as bug 29917. —Emufarmers(T|C) 22:47, 15 July 2011 (UTC)
Help with #expr: function, please
I'm trying to get a #expr: function to work, but it doesn't, and instead I get the message Expression error: Unrecognised punctuation character "{". The expression I'm trying to evaluate is
{{#expr: {{Simple recursion|{{#expr: |1| }}|1}} }}
where Simple recursion is a Wikipedia template I have just written; it takes four arguments, the first and the third arguments is repeated n times by using the Wikipedia template Repeat, and the second argument is put in between, where n is given by the fourth argument. Anyway, I had thought that the expression I have written would be substituted something like this:
{{#expr: {{Simple recursion|{{#expr: |1| }}|1}} }}→{{#expr: {{#expr: 1 }} }}{{#expr: {{#expr: 1 }} }}→{{#expr: 1 }}{{#expr: 1 }}→1
where the substitutions have been underline before and after they have been made. Can someone please help me to understand what actually happens here, and how I should write this instead? The expression I really want to evaluate is of course not as simple as this one, but it included an #expr: function inside of a Simple recursion that was in turn inside of another #expr: function. —Kri 18:35, 15 July 2011 (UTC)
[RESOLVED] Zebra wikitable: Not alternating colors
Hi. I found a great table format for alternating row background color called "class-"zebra wikitable". I have tried this and no matter what browswer I view it in, the rows are all the same color... even though the samples I find, such as the below, show alternating clors in them. It does not work for me. Does anyone else have the same problem? Is there something in my css that I need to do regarding "zebra wikitable" to make it work? I saw no instructions to that effect, but I'm wondering...
See: http://qed.princeton.edu/main/Help:Zebra for an example that works but that I cannot duplicate.
Thank you. Vikkiwiki (talk) 19:24, 15 July 2011 (UTC)
- Hey guys,
- I have the same issue.
- Any solutions in the meantime?
- Thank you :-) 217.91.246.108 15:33, 23 January 2013 (UTC)
- They have a bit of code in wikibits.js to get this effect. You can get a similar effect by putting the following in your MediaWiki:Common.js page:
// Tables with class=zebra $(document).ready(function() { // the "className" includes all the classes so we must use re; // CSS is case-sensitive anyway, so there is no point ignoring case: var re = /\bzebra\b/, t = document.getElementsByTagName("TABLE"), n = t.length, r, nr; for (var i=0; i<n; i++) { if ( re.test(t[i].className)) { r = t[i].getElementsByTagName("TR"); nr = r.length; for (var j=1; j < nr; j+=2) { if (r[j].className) { r[j].className += " stripe";} else r[j].className = "stripe"; } } } });- You'll also want to add a
stripeclass to your MediaWiki:Common.css page: - ☠MarkAHershberger☢(talk)☣ 23:02, 23 January 2013 (UTC)
.stripe { background-color: red; }- You can achieve the same with CSS3 selectors: https://developer.mozilla.org/en/docs/CSS/:nth-child Ciencia Al Poder (talk) 13:40, 23 February 2013 (UTC)
- I copy and pasted:
table.zebra tr.stripe { background-color: #ccc; }- and it worked
- (I also used the code above, but I'm not sure if that affected it) 19:51, 2 July 2013 (UTC)
- oops, forgot to mention that I put this in common.css 19:52, 2 July 2013 (UTC)
Macro to update sortable table?
Is there a macro that can update a sortable table pulling the infomration from a template? 205.175.225.22 (talk) 20:38, 15 July 2011 (UTC)
Permissions
Hello everyone, I am actually running a wiki page and i have a question I dont know exactly how to do in order to protect some pages from editing from some users. I explain an example to illustrate my question Imagine i have a wiki with information of Madrid and Bacerlona. I have two different group of user Mad and BCN I create (i guess as follow) $wgGroupPermissions['Mad'] = $wgGroupPermissions['user']; $wgGroupPermissions['BCN'] = $wgGroupPermissions['user'];
How can i do to protect articles of Madrid from bein editing by BCN people? something like that $wgGroupPermissions['BCN']['edit']['mad articles'] = false;
Thank you very much in advanced! 95.16.122.179 (talk) 12:04, 16 July 2011 (UTC)
Cyberduck won't let me upload widgets extension?
Hi,
All my other extensions are uploaded to my wiki on the net but I get the following error when I'm uploading the widgets extension.
I get the following error:
550 /extensions/Widgets/compiled_templates/%%FC^FCE^FCE29807%%wiki%3ASevenload.php: Forbidden command argument.
When I click on the error log, it says this:
TYPE I 200 Type set to I PASV 227 Entering Passive Mode (66,96,147,102,128,145) STOR /extensions/Widgets/compiled_templates/%%FC^FCE^FCE29807%%wiki%3ASevenload.php 550 /extensions/Widgets/compiled_templates/%%FC^FCE^FCE29807%%wiki%3ASevenload.php: Forbidden command argument QUIT 221 Goodbye.
Why is this happening?! 90.207.213.130 (talk) 15:56, 16 July 2011 (UTC)
- "Cyberduck" is an FTP application, right? And "550" looks like an FTP error, which has nothing to do with MediaWiki. Try to find out where these strange filenames come from or try another FTP client or consult your FTP-Host administrator for help. -- 194.246.123.103 21:03, 16 July 2011 (UTC)
Non-template pages
How do I transclude/substitute non-template pages into a page? 123.24.69.208 10:36, 17 July 2011 (UTC)
Mediawiki search box
Hi does anyone know how to get the nice looking search box on the mediawiki website? I just have a normal searchbox with buttons 'go' and 'search'? 90.204.161.197 (talk) 12:00, 17 July 2011 (UTC)
- The search box in the top-right corner? That's part of Vector, I think. —Emufarmers(T|C) 01:53, 18 July 2011 (UTC)
- I have Vector installed. It's not included. 90.204.161.197 10:10, 18 July 2011 (UTC)
- Have you set $wgVectorUseSimpleSearch = true;? —Emufarmers(T|C) 15:34, 18 July 2011 (UTC)
- Yes, nothing has happened. I put in my LocalSettings.php and put it under
$wgDefaultSkin = "vector";90.204.161.197 23:30, 18 July 2011 (UTC)- You need to install the Vector extension; the skin that's included with MediaWiki doesn't include this feature (for some reason). —Emufarmers(T|C) 01:19, 19 July 2011 (UTC)
- Yes, nothing has happened. I put in my LocalSettings.php and put it under
- Have you set $wgVectorUseSimpleSearch = true;? —Emufarmers(T|C) 15:34, 18 July 2011 (UTC)
- I have Vector installed. It's not included. 90.204.161.197 10:10, 18 July 2011 (UTC)
Adding a font size change button?
Hello!
Is it possible to add a button to every publication in MediaWiki, allowing readers to change the size of the font for better readability?
Is there an extension or some in-built functionality I could use?
Thanks in advance! 93.152.182.41 (talk) 13:50, 17 July 2011 (UTC)
- Most web browsers have a built-in function for increasing and decreasing the font size. They keyboard combination of "Ctrl and +" will increase the font size while "Ctrl and -" reduce the font size. 63.78.190.195 19:41, 4 May 2012 (UTC)
- I don't know about an extension, which could do that, but that also is not needed actually: I would go for the webbrowser as well. For example in Firefox you can also use Ctrl + Mousewheel to zoom a page. Very convenient and does not only work in your wiki (like a button in the webpage would), but in each and every page. The output of MediaWiki has been tested to be compliant with these functions. :-) 88.130.71.112 23:10, 4 May 2012 (UTC)
Can someone help me with this table?
| a | b | c |
|---|---|---|
|
[[#{{{1}}}|{{{1}}}]] |
[[Special:MyLanguage/Category:{{{1}}}|Category:{{{1}}}]] | |
| Bronze star | Gold star | Green star |
{| cellpadding="2" style="border: 1px solid darkgray; background:#f9f9f9;"
! width="357" | a
! width="357" | b
! width="357" | c
|- align="left"
| style="border: 1px solid #C0C0C0;"|
{{a}}
| style="border: 1px solid #C0C0C0;"|
{{b}}
| style="border: 1px solid #C0C0C0;"|<!--greenish border-->
{{c}}
|- align="center"
|Bronze star || Gold star || Green star
|}
- Above is the table I'm working on. Could someone show me how I would add a row on top of the a,b,c to cover the entire three columns? So, for example it would say 'Alphabet', centered perhaps coloured which has the rows merged? 90.204.161.197 (talk) 21:06, 17 July 2011 (UTC)
| Alphabet | ||
| a | b | c |
|---|---|---|
|
[[#{{{1}}}|{{{1}}}]] |
[[Special:MyLanguage/Category:{{{1}}}|Category:{{{1}}}]] | |
| Bronze star | Gold star | Green star |
- Hamilton Abreu 21:57, 17 July 2011 (UTC)
{| cellpadding="2" style="border: 1px solid darkgray; background:#f9f9f9;" | colspan=3 style="text-align:center" | Alphabet |- ! width="357" | a ! width="357" | b ! width="357" | c |- align="left" | style="border: 1px solid #C0C0C0;"| {{a}} | style="border: 1px solid #C0C0C0;"| {{b}} | style="border: 1px solid #C0C0C0;"|<!--greenish border--> {{c}} |- align="center" |Bronze star || Gold star || Green star |}- Thank you so much!
- Do you know what I would have to type (and where) to make Alphabet in a bigger font and in a different color? 90.204.161.197 22:45, 17 July 2011 (UTC)
- Changing
| colspan=3 style="text-align:center" | Alphabet
- to
| colspan=3 style="text-align:center; font-size:120%; color:blue" | '''Alphabet'''
- gives
| Alphabet | ||
| a | b | c |
|---|---|---|
|
[[#{{{1}}}|{{{1}}}]] |
[[Special:MyLanguage/Category:{{{1}}}|Category:{{{1}}}]] | |
| Bronze star | Gold star | Green star |
- Now play around with it and read Help:Tables. Hamilton Abreu 02:00, 19 July 2011 (UTC)
- You can also use https://www.tablesgenerator.com/mediawiki_tables but it's a better idea to read the manual as Hamilton suggested, so you learn how to work with mediawiki tables. TiltedCerebellum (talk) 04:28, 29 July 2020 (UTC)
How do I create a wiki farm like Wikia with MediaWiki? 125.235.160.166 08:47, 18 July 2011 (UTC)
- All wiki farm software I know of is proprietary. You would have to figure out how to make it yourself from scratch, unless you can afford to buy the software from someone else. Badon 06:21, 20 July 2011 (UTC)
- Have you tried searching? Max Semenik 16:25, 20 July 2011 (UTC)
I created a page with a + in the page title, and it went nuts.
So I created a page with a + in the page title, and now it's acting all weird. For reference, the wiki is the Majesty: Heroes of Ardania Wiki, and relevant pages include Mithril Breastplate +4, Mithril Breastplate 4, and Mithril Breastplate
The whole process is described decently on the Mithril Breastplate +4 discussion page, but here's a summary: The wiki is for a separate game, with separate developers. An item in the game is named "Mithril Breastplate +4". I noticed that we had the information for that item listed on the page "Mithril Breastplate". The game had recently gone through a major revamp, and so I thought they had changed the name of the item, or we just made the page wrong; so I moved the page to "Mithril Breastplate +4". However, it seems that either my browser or MediaWiki does something weird when you put "+" (or it's equivalent "%2B") in the URL. Since it does that whenever it's even in the URL bar, that makes it difficult to fix; the 'move' page changes it to "Mithril Breastplate 4", and then you're trying to move an entirely different page (that was at the time empty), so I wasn't even able to undo the change... as such, since the redirect from Mithril Breastplate to Mithril Breastplate +4 seemed to work just fine, I just added the same redirect to Mithril Breastplate 4 as a temporary fix. Likewise, pretty much any attempt at accessing "Talk:Mithril Breastplate +4" sent you to "Talk:Mithril Breastplate 4", so I added a redirect from the latter to the former, again as a temporary fix. (All in all, this has been a rather weird experience with the... software? Client? I don't even know what to call it, my brain is frazzled.)
Is there a way to either keep MediaWiki from spazzing out when it sees a + in the URL, or to move "Mithril Breastplate +4" back to "Mithril Breastplate" (we could handle it being named slightly wrong if we needed to), or otherwise undo the move that I made from "Mithril Breastplate" to "Mithril Breastplate +4"? (I myself am not the owner of the wiki or a SysOp, so there are some changes I can't make, but I may be able to tell the owner so that he can make the needed changes if it's something I can't do.)
Thanks for any help you can give on this odd situation! Will the Spellcaster 10:27, 18 July 2011 (UTC)
- Ooh, I haven't played that in years.
- Anyway, see Manual:Short_URL#Ampersand_.28.26.29_problem. —Emufarmers(T|C) 13:35, 18 July 2011 (UTC)
- Awesome! I figured I wasn't the first to run into this, but apparently didn't quite know where to look. Thanks.
- Followup question: Is there an easy way for a non-admin/sysop to tell what version of MediaWiki/Apache we're running? If not, then how would an admin tell? Will the Spellcaster 09:54, 19 July 2011 (UTC) 09:53, 19 July 2011 (UTC)
- Special:Version for MW, no universal solution for Apache. Max Semenik 11:29, 19 July 2011 (UTC)
Is there a test file upload location on mediawiki.org?
I have written a bot for converting ms word files to mediawiki. It's employing api.php. I have tested the code successfully on our wiki, but I'd like to expand it so it can be used for any mediawiki with the right configuration. I was able to convert a file to a mediawiki.org page already, but I encountered two minor problems:
- When trying to use the Sandbox as a test location, I'm getting a "need protect rights to edit this page" error in my webresponse. As I said, I was able to post to some other pages, including my user page.
- Is there a location where I could test the file upload feature of my converter? I use that part for graphics inside the document and the document itself. Of course I wouldn't like to spam mediawiki with lots of unused files, so is there a location that gets deleted regularly, analogous to the Sandbox?
Cheers, Michfuchs (talk) 12:24, 18 July 2011 (UTC)
- As for uploads, not really, You could probably upload to test.wikipedia.org but things would still need to be properly licensed. Peachey88 13:18, 18 July 2011 (UTC)
Problem installing MediaWiki
Hi,
I'm sorry if this has been solved elsewhere in the forum but I couldn't find any posts which hade these issues regarding installation. Trying to install MediaWiki on an website hosted @ byethost I ran into this problem during the installation:
- Install
- Setting up database... done
- Creating tables... done
- Creating database user... done
- Populating default interwiki table... done
- Initializing statistics... done
- Generating secret keys... done
- Warning: Secure keys ($wgSecretKey and $wgUpgradeKey) generated during installation are not completely safe. Consider changing them manually.
- Creating administrator user account...
- MWHttpRequest::factory: allow_url_fopen needs to be enabled for pure PHP http requests to work. If possible, curl should be used instead. See http://php.net/curl.
- Backtrace:
- 0 /home/vol7/byethost32.com/b32_5337545/htdocs/wiki/includes/installer/Installer.php(1445): MWHttpRequest::factory('https://lists.w...', Array)
- 1 /home/vol7/byethost32.com/b32_5337545/htdocs/wiki/includes/installer/Installer.php(1423): Installer->subscribeToMediaWikiAnnounce(Object(Status))
- 2 [internal function]: Installer->createSysop(Object(MysqlInstaller))
- 3 /home/vol7/byethost32.com/b32_5337545/htdocs/wiki/includes/installer/Installer.php(1314): call_user_func(Array, Object(MysqlInstaller))
- 4 /home/vol7/byethost32.com/b32_5337545/htdocs/wiki/includes/installer/WebInstallerPage.php(1084): Installer->performInstallation(Array, Array)
- 5 /home/vol7/byethost32.com/b32_5337545/htdocs/wiki/includes/installer/WebInstaller.php(250): WebInstaller_Install->execute()
- 6 /home/vol7/byethost32.com/b32_5337545/htdocs/wiki/mw-config/index.php(46): WebInstaller->execute(Array)
- 7 /home/vol7/byethost32.com/b32_5337545/htdocs/wiki/mw-config/index.php(14): wfInstallerMain()
- 8 {main}
I have:
Operating system: Linux (That byethost is running on)
Apache version:2.2.15 (Unix)
PHP version:5.2.13
MySQL version:5.1.45
The url: http://tune.byethost32.com/wiki
I can't seem to understand what the problem is. But this is the first time I have tried to install MediaWiki so I don't understand the number of error messages very well either. For reference Wordpress is working just fine with the Sql and PHP.
I really appreciate all the help I can get... 46.239.99.227 (talk) 17:57, 18 July 2011 (UTC)
- Your PHP doesn't seem to have any means of making HTTP requests. Installer exploding in such situations is certainly a bug, as a workaround don't choose Subscribe to the release announcements mailing list. Max Semenik 18:46, 18 July 2011 (UTC)
- I might have figured out what the problem is. That the webhosting service I use have the "allow_url_fopen" disabled in PHP, and does not support curl in the free version. Have I understood it correctly that this is infact the problem, and there is no workaround for this? 46.239.99.227 18:47, 18 July 2011 (UTC)
- Reported as bug 29959, see the workaround above. Max Semenik 18:54, 18 July 2011 (UTC)
- Thanks for the very fast reply Max.
- This solved the problem. 46.239.99.227 19:13, 18 July 2011 (UTC)
- Thanks for the very fast reply Max.
- Reported as bug 29959, see the workaround above. Max Semenik 18:54, 18 July 2011 (UTC)
want to create layout having 3 coloumns in all page
I installed PHP 5.3 (5.3.6) Apache 2.2 MYSQL via Windows (x86, 32-bit), MSI Installer Mediawiki which are working fine
I am new to mediawiki. Actually wanted to create 3 coloumns on every page whenever user creates a new page. User should be viewd 3 coloumn in tabular form and edit button at the bottom so as he can edit the text in all the three coulmn. and a common edit button at the bottom. The contents will always in the tabular form so wanted to create this layout of 3 coulmns.
Can anyone help me please. Many thanks. Ashish 10985 (talk) 10:26, 19 July 2011 (UTC)
no galleries after upgrade from 1.16.1 to 1.17.0
i'm confused. what's the reason i.e. http://simpsonspedia.net/index.php?title=Simpsonspedia:Galerie
thx 178.24.201.222 (talk) 14:03, 19 July 2011 (UTC)
- reason:
- the css class gallery & co moved from folder monobook file main.css to folder common shared.css CBG 16:52, 19 July 2011 (UTC)
Can not install
Hi, I've been trying to install mediawiki last three days in my local server. It works fine until last step. but when I come tho last step and click proceed. It says web page can not be displayed. And when I check database I see that it didn't create all tables needed. If I want to restart the setup process I have to drop all tables because if I don't at last step it says table creation skipped because all tables are in there which is not. is there any full sql script that I can run in my sqlserver and skip this table creation problem. thanks 97.78.72.199 (talk) 14:48, 19 July 2011 (UTC)
(RESOLVED) Project namespace access
- Main Domain: http://www.everythingfoodanddrink.org/wiki/Main_Page
- Sub Domain: http://mywiki.everythingfoodanddrink.org/wiki/Main_Page
- MediaWiki: 1.17.0
- PHP : 5.2.17 (cgi-fcgi)
- Database: 5.1.52
I have a problem, I can't access project space. Try going to ANY page in the Everything Food & Drink namespace and you go to the same deleted page.
Note: Look at the URL, it is the URL for the page you choose.
Any insight will be greatly appreciated. - FlightTime (open channel) 17:52, 19 July 2011 (UTC)
- P.S. Do not have this problem at sub domain. Mlpearc powwow 17:57, 19 July 2011 (UTC)
- Looks like you have a broken URL scheme. See Manual:Short_URL#Ampersand_.28.26.29_problem. —Emufarmers(T|C) 02:29, 20 July 2011 (UTC)
- Wow, I think you hit the nail on the head. This make sense. thank you for the link, but I have no idea where to find these files to make the changes. Mlpearc powwow 08:47, 20 July 2011 (UTC)
- Looks like you have a broken URL scheme. See Manual:Short_URL#Ampersand_.28.26.29_problem. —Emufarmers(T|C) 02:29, 20 July 2011 (UTC)
- On behalf of the developers at Everything Food and Drink I would like to thank you for your assistance and we got it working. (The best option for reference is the simple rewrite) Joe Gazz84 14:59, 20 July 2011 (UTC)
CategoryTree Extension Expand All
Do you know how to set up CategoryTree so that when it first opens, it is totally expanded, like expand all. Or how I can add an expand all so I don't have to click on all of the pluses through all of the sub categories. 65.222.133.67 (talk) 18:13, 19 July 2011 (UTC)
UTF8 Problem with update from 1.16 to 1.17
Hello,
The database update "php update.php" broke all page links of my wiki http://es.vikidia.org . Now pages with UTF8 chars in their title are red links and unavailable.
I just don't know where I have to search. I have an (old but not too much) database backup, but I'd like to avoid this solution which would prevent me from using mediawiki 1.17.
Something strange is that I upgraded http//fr.vikidia.org from 1.16 to 1.17 just before on the same servers and it went good.
For information:
http://es.vikidia.org/wiki/Special:Version MySQL Server 5.1.49-3 MySQL charset : UTF-8 Unicode (utf8) Php 5.3.3-7+squeeze3
Could someone tell me where I have to search ? Thanks, Plyd 18:34, 19 July 2011 (UTC)
- 220.241.136.1 05:20, 25 July 2011 (UTC)
I also need help on this issue. All pages with Chinese page_title are not found. And displaying "ȬŠè¨€" as title. Thanks! http://www.easonmusic.com/wiki MediaWiki 1.17.0 PHP 5.2.17 (cgi-fcgi) MySQL 5.1.39-log (Database collation: utf8_unicode_ci)
- Hi all, i went into the same problem as well on http://eichsfeldwiki.de/ (NetBSD, PHP 5.2) with german "umlauts" in titles. The crazy thing is that only Titles / URLs are affected - any "umlauts" in content are shown correct.
- Did someone investigated this further? Did not found yet if it is a problem by the update.php / maintenance.php script or part of the new mediawiki code.
- Afaik there are many german users out with the same problem - but no solution for them around until now.
- Many thanks for any tip/hint here.
- Niels.
- Syndicat IT&Internet
- http://www.syndicat.com/ Nielsd 13:19, 12 August 2011 (UTC)
- Hello,
- still no idea about sollution of the problem - I have the same problem with http://www.enviwiki.cz which is running on Linux (Ubuntu, Apache), but not with the other one - http://www.czp.cuni.cz/vcsewiki, which is running on Windows Server (Apache).
- Strange.
- --Jirka Dl 20:31, 27 August 2011 (UTC)
- Same problem here, any help is appreciated.
- Regards,
- JS 146.52.16.59 12:44, 29 October 2011 (UTC)
- Hello,
- I managed to solve the problem. It was caused by the coding of datebase. My database tables were coded in UTF-8, but if you normally install the new Mediawiki 1.18, it is coded in "binary".
- My steps were:
- In phpmyadmin - ALTER TABLE page CONVERT TO CHARACTER SET latin1 COLLATE latin1_bin - as this sollution I found somewhere in internet.
- The same I made to all tables which contain text fields and all worked correctly.
- Only than I looked to new installation and I made second conversion
- "ALTER TABLE page CONVERT TO CHARACTER SET binary" and all is working correctly still.
- Only the table "searchindex" cannot be converted to binary. Jirka Dl (talk) 05:48, 26 March 2012 (UTC)
- > Only the table "searchindex" cannot be converted to binary.
- That's correct, it should still be UTF-8. And there was another table, which should stay UTF-8 (I guess it was "hitcounter"). --88.130.80.237 12:39, 26 March 2012 (UTC)
- Thank you so much Jirka!
- I spent 2 hours searching for a solution for the umlaut problem - until I found this thread.
- I successfully updated my MediaWiki from 1.16.2 to 1.19.1.
- A short explanation for those who might be still confused about what to do:
- Navigate to the old database in phpMyAdmin
- Click on the SQL button (between structure and search)
- Enter the following and press OK: ALTER TABLE page CONVERT TO CHARACTER SET latin1 COLLATE latin1_bin
- Export the old database as gzip file
- Create a new database and import the gzip file
- It's necessary to update the old database. Navigate to yoursite.com/mediawiki/mw-config/index.php and follow the instructions.
- These steps worked for me.
- It was sufficient to only alter the page table - not more. The umlaute are shown correctly.
- Is it necessary to turn the page table (of the new database) to binary??
- It didn't change anything.
- But here is how to do it:
- Navigate to the new database in phpMyAdmin
- Click on the SQL button
- Enter the following and press OK: ALTER TABLE page CONVERT TO CHARACTER SET binary Stefahn (talk) 12:30, 15 June 2012 (UTC)
- > Is it necessary to turn the page table (of the new database) to binary??
- No, it is not. What you must have in the table is data, which is UTF-8 encoded. This is important, because MediaWiki always writes data as UTF-8 (and always expects to get back UTF-8 encoded data from the DB). You can either use UTF-8 encoding or binary encoding (in this case MediaWiki will just store its UTF-8 data in the binary tables, which is fine as well). 88.130.77.161 13:59, 15 June 2012 (UTC)
- Thanks for your reply.
- If I understand correctly you shouldn't let the table latin1 encoded.
- So in our case it's necessary to turn the table page back to binary or UTF-8.
- Please correct me if I'm wrong... Stefahn (talk) 14:39, 15 June 2012 (UTC)
- > If I understand correctly you shouldn't let the table latin1 encoded.
- Yes.
- > So in our case it's necessary to turn the table page back to binary or UTF-8.
- Basically you are right: Your tables should either be set to be UTF-8 encoded or binary. But be careful: You must make sure that, when you switch your tables to UTF-8 (or to binary), you in fact have UTF-8-encoded data in them. You generally can store data, which has any encoding, in a DB table with any - possibly other - encoding. If you did that, you would run into strange problems, e.g. as described at the beginning of this thread. 88.130.77.161 15:40, 15 June 2012 (UTC)
- Thanks for the information.
- I realized that dealing with only one table (page) wasn't enough. Category titles and user pages with umlaute were broken too. So I decided to run "ALTER TABLE tablename CONVERT TO CHARACTER SET latin1 COLLATE latin1_bin" on all tables. Then I exported and imported.
- After that I ran "ALTER TABLE tablename CONVERT TO CHARACTER SET binary" on all tables. About 5 tables (among them "searchindex") didn't accept the character set binary and showed to have latin1_swedish_ci (I don't know why!?). Anyway, I took those 5 tables and assigned them binary via the operation button -> collation, which worked.
- I hope this is all okay?
- Wiki looks fine now in all places :) Stefahn (talk) 21:22, 15 June 2012 (UTC)
- I can't tell you how exactly you have to CONVERT TO CHARSET your data. It depends on what character set you actually had in the database. When you end up with UTF-8 after your operation, it's all fine.
- The tables, which did not accept binary encoding really should not be binary, but UTF-8. If I remember correctly, there actually was a reason to keep these tables in UTF-8. After all it does not really matter, if you use UTF-8 or binary, because MediaWiki will provide UTF-8 data anyway, so using UTF-8 won't make something break. 88.130.94.243 17:10, 16 June 2012 (UTC)
- Hi there!
- This was awesome, it really worked for the page's titles but I'm still having the problem with the images that use special characters...they don't display, not even in the images list!...I did everything you said in the images table but nothing seems to work...
- Any idea? 190.85.146.218 16:12, 12 July 2012 (UTC)
- I'm afraid I can't really help you.
- The first time I updated my DB (for test reasons) everything worked fine - also images with special chars were shown properly.
- The second time I updated my DB (now the real version) I had an issue with (only) one image (containing "ü"). I reuploaded the file and then it worked... Stefahn (talk) 19:55, 12 July 2012 (UTC)
Exporting an entire wiki to pdf
Can I export an entire wiki (with many categories) to a pdf file (or any common file format that would allow either using the wiki on a CD-ROM and/or printing the entire wiki organized by category with complete TOC)?
Thanks, Jim 99.64.24.246 (talk) 19:41, 19 July 2011 (UTC)
- Look at Extension:PDF Writer and the Other Approaches section at the bottom. Hamilton Abreu 23:36, 19 July 2011 (UTC)
- Yes, I've looked at that extension (and others) and am unclear whether I can simply render to PDF and edit/format/copy/create CDs from that, or if it requires going through PediaPress.
- Anyone have any experience rendering to PDF (without using PediaPress) and simply outputting to one's own device or simply to CD?
- Thanks,
- Jim 99.64.24.246 16:09, 20 July 2011 (UTC)
"Server encountered an unexpected condition" when running update.php on CGI
Hello,
I have MW 1.17. When I try and run the update.php via ,mw-config/index.php, I can get through most of the options, but when It's time to update tables, I get the following error:
The server encountered an unexpected condition which prevented it from fulfilling the request. The script had an error or it did not produce any output. If there was an error, you should be able to see it in the error log.
Why is this happening?! I'm on MediaWiki on a shared web host (iPage). 90.204.161.197 (talk) 22:54, 19 July 2011 (UTC)
- Can you check what the error log says? (see Manual:How to debug) —Emufarmers(T|C) 02:25, 20 July 2011 (UTC)
notification email
I need to send a notification email for every change which occurs on a wiki to all registried users. How can i do this? I tried to use $wgUsersNotifiedOnAllChanges, but it means, that i'll must change this params every time, when i registr. new user. 212.33.232.253 (talk) 10:40, 20 July 2011 (UTC)
- wiki 1.16 212.33.232.253 11:21, 20 July 2011 (UTC)
sub naviagtion menus
how hide sub navigation menus when the user does not click and display when click on??
and how all pages include the navigation menu when a user is not connected??? 213.154.78.26 (talk) 11:35, 20 July 2011 (UTC)
Turn off upload Restrictions
Mediawiki: 1.17.0
PHP: 5.3.5
Database:MySQL 5.5.8
I've added the following to my LocalSettings.php
$wgFileExtensions [] = array_merge( $wgFileExtensions, array( 'png', 'gif', 'jpg', 'jpeg', 'doc', 'xls', 'mpp', 'pdf', 'ppt', 'tiff', 'bmp', 'docx', 'xlsx', 'pptx', 'ps', 'odt', 'ods', 'odp', 'odg', 'zip', 'exe', 'php', 'sql', 'txt', 'log', '7z'));
$wgStrictFileExtensions = false;
$wgVerifyMimeType = false;
$wgCheckFileExtensions = false;
$wgUploadDirectory = "{IP}/Uploads"
$wgEnableUploads = true;
I moved $wgEnableUploads from the middle of the document to the end based on a recomendation. Either way it doesn't work and the only permitted files types are: png, gif, jpg, jpeg.
This is an internal system and I wish to remove all upload restrictions. Zigy221 (talk) 14:14, 20 July 2011 (UTC)
- I've done the following :
- $wgEnableUploads = true;
- $wgFileExtensions = array_merge( $wgFileExtensions, array( 'docx', 'doc' ) );
- $wgFileExtensions[] = 'exe';
- $wgGroupPermissions['user']['upload'] = false;
- $wgFileBlacklist = array_diff( $wgFileBlacklist, array ('exe') );
- $wgStrictFileExtensions = false;
- $wgMimeTypeBlacklist = array_diff( $wgFileBlacklist, array ('doc') );
- feel the diffrents=)
- so, i think you have sintax error, try this(without []):
- $wgFileExtensions = array_merge( $wgFileExtensions, array( 'png', 'gif', 'jpg', 'jpeg', 'doc', 'xls', 'mpp', 'pdf', 'ppt', 'tiff', 'bmp', 'docx', 'xlsx', 'pptx', 'ps', 'odt', 'ods', 'odp', 'odg', 'zip', 'exe', 'php', 'sql', 'txt', 'log', '7z'));
- and use $wgFileBlacklist,$wgMimeTypeBlacklist Vasya 07:22, 21 July 2011 (UTC)
- I tried your suggestion. No difference, as far as I can tell none of these commands are making any effect. On the Upload page all I'm allowed is still "Permitted file types: png, gif, jpg, jpeg."
- If I try to put a zip file, for instance, in the field the Permitted file line turns red and it clears the entry field. Zigy221 13:39, 25 July 2011 (UTC)
Set [Signature|Nickname] for LDAP Users autmatically
This post by Revibot was moved on 2015-07-11. You can find it at Extension talk:LDAP Authentication/2011/07#h-Set_[Signature|Nickname]_for_LDAP_Users_autmatically-2011-07-20T15:28:00.000Z. Max Semenik (talk) 16:23, 20 July 2011 (UTC)
error creating thumbnail unable to open permission denied
I'm getting the error:
Error creating thumbnail: convert: unable to open image `/home/user/public_html/wiki/images/thumb/a number/another number/filename.jpg/120px-filename.jpg': Permission denied.
This was previously asked here:
The solution to that problem was to correct the chown the user from "root" to the mediawiki user. In my case, everything is already set to the mediawiki user, with chmod 755. So, what's wrong, and how do I fix it? Badon (talk) 05:09, 21 July 2011 (UTC)
- I needed to change permissions to 777 instead of 755. Solution came from here:
- http://www.mwusers.com/forums/showthread.php?17205-error-creating-thumbnail-unable-to-open-permission-denied Badon 18:30, 21 July 2011 (UTC)
Upgrade never finishes
We use mediawiki as the main website for our charity. Unfortunately due to a miscommunication between our hosting company and ICT support company the PHP version was upgraded on our host causing our website to fail. I identified that it is a problem caused by the way variables are declared and the easiest way to solve it is to upgrade.
I have backed up changed name of local settings file and set config directory to be writable I have entered the web installer fine, completed the first few pages and the install has identified the existing database fine I click to upgrade the existing installation the page loads with the timer wheel but nothing else ever happens (i left it over night) I've tried restarting the installer a few times
Alas due to the PHP update simply reinstalling the backup doesn't get me any further one thought is that the session is timing out somehow given how many version we are behind the other is that I should approach this by doing a multi-step backup
any thoughts?
Current Media wiki is 1.14
Upgrading to 1.17.0
PHP 5.3.6
MySQL 5.0.92-community-log Clemo~mediawikiwiki (talk) 20:29, 22 July 2011 (UTC)
- You're not supposed to change the name of LocalSettings.php. —Emufarmers(T|C) 16:07, 24 July 2011 (UTC)
Anyone used MediaWiki over Amazon EC2 Cloud?
Does anyone know how to setup MediaWiki over Amazon EC2? 90.204.161.79 (talk) 20:41, 22 July 2011 (UTC)
Permissions
How do I grant/revoke permissions for users? 123.24.73.77 08:46, 23 July 2011 (UTC)
- These links might be helpful:
Export
How do I export all wiki pages in a wiki? 123.24.73.77 (talk) 08:48, 23 July 2011 (UTC)
- Hi
- Try: http://www.mediawiki.org/wiki/Manual:Parameters_to_Special:Export
- Wiki pages can be exported in a special XML format to upload import into another MediaWiki installation (if this function is enabled on the destination wiki, and the user is a sysop there) or use it elsewise for instance for analysing the content. See also Syndication feeds for exporting other information but pages and Help:Import on importing pages. See Help:Export for more details. Ron Barker 12:31, 23 July 2011 (UTC)
- If you have shell access you may try this Manual:DumpBackup.php. 46.0.68.70 12:51, 24 July 2011 (UTC)
Error 404 on userpage and portals
Good morning,
I'm currently trying to set up a wiki version 1.17. http://bushbase.bushcraftnederland.nl When I'm opening a portal or a user on the main page, I get an error 404. When I'm opening on special pages I get a nice page to edit.
I've surged all different ways, but can't find an answer. is there anyone who can give me a hint?
Thanks in advance.
Lars 84.87.2.63 (talk) 10:09, 23 July 2011 (UTC)
- Your webserver is hijacking 404s. See bug 18270. —Emufarmers(T|C) 16:06, 24 July 2011 (UTC)
Problem with registering MW in Search Engines
I am sorry, if the question is already disscussed by the community. Would appreciate you link me to the discussion.
Our configuration is:
MediaWiki 1.16.0 PHP 5.2.10-2ubuntu6.10 (apache2handler) MySQL 5.1.37-1ubuntu5
The problem is a total blindness of Search Engines (like Google) on behalf of indexing our regional free program on informational developing (wiki.kanevsk.ru). We tried a couple of seo extensions which just add some meta info in the head of the articles but it doesn't save the situation anyhow.
Please, just a hint would suffice in which direction to dig on to fix the problem. Thanks!
(Btw, site analyzers (like cy-pr.com) say that our wiki doesn't respond for their querries). 85.172.54.191 (talk) 15:16, 23 July 2011 (UTC)
- This may help
- Add your URL to Google Mlpearc powwow 16:36, 24 July 2011 (UTC)
- Thank you much, but would you think I would bother you on such a piece of cake as asking a link to "add site at Google"...
- The problem is while initiating indexing Search engines would answer with "the site is not accessible" reply. Although Google wouldn't say back anything like that the result is just the same as with the engines that find our site unaccessible - null search result. Analyzers do not find the site as well. Although it is pretty visible through http protocol...
- Please, help. Thanks! 85.172.54.191 06:51, 25 July 2011 (UTC)
- Other words, while the Search engine makes a query to wiki site it does not receive 200 OK response, but
- here is our situation in details:
- HTTP/1.1 301 Moved Permanently
- Server: nginx/0.7.62
- Date: Mon, 25 Jul 2011 07:17:46 GMT
- Content-Type: text/html; charset=utf-8
- Connection: keep-alive
- Set-Cookie: bb2_screener_=1311578266+127.0.0.1+81.177.33.63; path=//
- Vary: Accept-Encoding,Cookie
- Expires: Thu, 01 Jan 1970 00:00:00 GMT
- Cache-Control: private, must-revalidate, max-age=0
- Last-Modified: Mon, 25 Jul 2011 07:17:46 GMT
- Location: http://wiki.kanevsk.ru/index.php/%D0%97%D0%B0%D0%B3%D0%BB%D0%B0%D0%B2%D0%BD%D0%B0%D1%8F_%D1%81%D1%82%D1%80%D0%B0%D0%BD%D0%B8%D1%86%D0%B0
- Would you, please, tell how it really have to be to make it 200 OK reply? 85.172.54.191 07:28, 25 July 2011 (UTC)
- Would you, please, give a hint on the problem? 85.172.54.191 10:59, 28 July 2011 (UTC)
- I found out the reason for that trouble. It is the "bad behaivior" extension that blocks search engines by default paramaters. The server would generate 403 error reply if you wouldn't change this plugin's set up. 85.172.54.191 05:40, 27 September 2011 (UTC)
(RESOLVED) other tools like mediawiki
hi, please i want to know if exist an others tools like mediawiki??? 41.82.188.93 (talk) 16:38, 23 July 2011 (UTC)
- Didn't you know mediawiki is god? 90.204.161.79 17:56, 23 July 2011 (UTC)
- w:Comparison of wiki software. Max Semenik 19:49, 23 July 2011 (UTC)
Why are my categories treated like new pages?
I have many things on a category I made yet mediawiki thinks it's an empty page. Does anyone have a workaround? 90.204.161.79 (talk) 20:24, 23 July 2011 (UTC)
- Category page contains only it's description and the categorization of category.
- In the wiki-text you can't find Categorymembers, but you can retrieve this list from API.
- Description of API-call is here: API:Categorymembers.
- {{ApiEx
- |desc=Get the 10 articles most recently added to Category:Physics
- |p1=action=query
- |p2=list=categorymembers
- |p3=cmtitle=Category:Physics
- |p4=cmsort=timestamp
- |p5=cmdir=desc
- }} 46.0.68.70 13:08, 24 July 2011 (UTC)
- I see. Thank you.
- Does anyone how I can put a subcategory? Don't know how to do that :( 90.204.161.79 13:17, 24 July 2011 (UTC)
- It's simple. You have to put in subcategory's page line that put in another category.
- To have category "B" as a subcategory of category "A" you have to add on "Category:B" page line
[[Category:A]]. - See help page here: Help:Categories. 46.0.68.70 13:30, 24 July 2011 (UTC)
(RESOLVED) Error caused by custom namespace
Site URL: http://www.everythingfoodanddrink.org/wiki/Main_Page
- MediaWiki: 1.17.0
- PHP: 5.2.17 (cgi-fcgi)
- MySQL: 5.1.52
When searching via the sidebar inputbox for (example) "Template:Imbox" I receive the following error message.
A database query syntax error has occurred. This may indicate a bug in the software. The last attempted database query was:
(SQL query hidden)
from within function "LinkHolderArray::replaceInternal". Database returned error "1054: Unknown column 'NS_ARTICLE' in 'where clause' (localhost)".
- Note: NS_ARTICLE is a custom namespace. Here are the LocalSettings.php config. for the namespace.
//Namespace shorcuts
$wgNamespaceAliases['EFD'] = NS_PROJECT;
$wgNamespaceAliases['AR'] = NS_ARTICLE;
$wgNamespaceAliases['MW'] = NS_MEDIAWIKI;
<----
These two sections do not follow each other in LS
---->
/* Custom namespace */
$wgContentNamespaces[] = 100;
$wgExtraNamespaces[100] = "Article";
$wgExtraNamespaces[101] = "Article_talk";
define("NS_Article", 100);
define("NS_Article_talk", 101);
Any idea's ? - FlightTime (open channel) 19:15, 24 July 2011 (UTC)
- You've defined your defined below their first use which will result in e.g. "NS_PROJECT" being used instead of the later-defined value. Also, don't forget about case sensitivity. Max Semenik 19:28, 24 July 2011 (UTC)
URLENCODE and related functions as encodeURIComponent
Hi! Help:Magic words#URL_data lists the "|QUERY", "|WIKI" and "|PATH" options. Some years before I used "encodeURIComponent(foo)". Just spent some hours to generate properly urlencoded links at #JavaScript_hints using all three methods. Some suggestions:
- the documentation should reference to build in MediaWiki functions
- http://svn.wikimedia.org/viewvc/mediawiki/trunk/phase3/includes/parser/CoreParserFunctions.php?view=markup should be refferenced at Help:Magic words#URL_data; I spend a lot of time to identify that page
I could neither find a way to search at
nor at
Best regards לערי ריינהארט 21:29, 24 July 2011 (UTC)
page aliases
Dear friend; I am involved in a larger inter project / inter site linking via VIAF Virtual International Authority File numbers. Is there a way to define apache aliases for wiki pages via VIAF values. Some examples are available at testwiki:Category:Authority control. I think about an alias url for de:Gilad_Schalit the shortest would be http://de.wikipedia.org/viaf/53960499. The VIAF value should be included in the sourcecode "mediaWiki.config.set" array.
Need to leave this internet cafeé. Will provide more details soon. Best regards לערי ריינהארט 21:40, 24 July 2011 (UTC)
- No. This is not a native feature in MediaWiki and is something for an extension. Johnduhart 03:16, 21 August 2011 (UTC)
Login error... Error sending mail: There is no e-mail address recorded for user "Wikiadmin".
I cannot log into my MediaWiki page http://logicalproposals.com/mediawiki-1.16.0/
The Username is: wikiadmin and what i thought is the password is not working. When I click the button to email new password an error message reads:
Login error Error sending mail: There is no e-mail address recorded for user "Wikiadmin".
How can I access my account? 76.170.225.94 (talk) 03:15, 25 July 2011 (UTC)
(RESOVLED) There is no e-mail address recorded for me and I dont have my password. How can I log in?
There is no e-mail address recorded for me and I dont have my password. How can I log in?
http://logicalproposals.com/mediawiki-1.16.0/ It is media wiki. The admin login Username : wikiadmin 76.170.225.94 (talk) 03:23, 25 July 2011 (UTC)
- Generally for a case like this the best choice is to set e-mail directly in the database table and use "Email new password" feature.
- Alternatively you can:
- use the Manual:ChangePassword.php maintenance script or
- install Extension:Password Reset.
- Manual page here: Manual:Resetting passwords 95.167.125.206 04:51, 25 July 2011 (UTC)
95.167.125.206 04:51, 25 July 2011 (UTC)
[RESOLVED] How to browse a category?
- MW 1.17
- MySQL 5.1.57
- Php 5.2.17
Did anyone work out yet how to get further pages in a category by clicking on "next 200" (or whatever number it is that you have specified)? For some reason I can’t get past the first group of results, as clicking on the link for "next 200 pages" achieves nothing. I’ve tried it with different skins and in different browsers, but the site just hangs.
As far as I can see, I'm using the latest versions of my extensions (SMW extensions, Extension:CategoryTree, etc.). Note that the category function in Semantic Drilldown and Wikipedia’s TOC templates for categories, or at least some of them, are working fine. Cavila 07:52, 25 July 2011 (UTC)
- Using the latter provides an elegant solution for categories containing over 200 pages, so no real harm is done. But it's an odd bug which I haven't seen before and which seems worth bringing up if anyone else has bumped into the same thing.
- Regards, Cavila 12:31, 28 July 2011 (UTC)
- Please give a link to the wiki. Hazard-SJ ± 01:11, 30 July 2011 (UTC)
- I just found out that Extension:CategoryTree was causing the issue, possibly because it may not have been updated at the time to suit MW 1.17's new way of handling javascript through ResourceLoader. That's been sorted though, so this topic can be marked as resolved. Cavila 09:40, 2 August 2011 (UTC)
- Okay, thanks for your response. Hazard-SJ ± 02:13, 3 August 2011 (UTC)
- Another problem has occurred, but see here instead. Cavila 14:06, 3 August 2011 (UTC)
- Okay, thanks for your response. Hazard-SJ ± 02:13, 3 August 2011 (UTC)
- I just found out that Extension:CategoryTree was causing the issue, possibly because it may not have been updated at the time to suit MW 1.17's new way of handling javascript through ResourceLoader. That's been sorted though, so this topic can be marked as resolved. Cavila 09:40, 2 August 2011 (UTC)
(RESOLVED) How to view the HTML source of a page
hi, please where we can see the html code of mediawiki pages?? Isbou (talk) 12:41, 25 July 2011 (UTC)
- After loading a page, right-click with your mouse somewhere in the page and select "View source" from the popup-menu. Or see the explanation here. MrBlueSky 00:25, 26 July 2011 (UTC)
Install question
When I installed the wiki, I selected the option to only allow me to edit but now, I was to open it to allow persons.
Where or how can I do that? I can't find it!! 66.190.32.220 (talk) 20:18, 25 July 2011 (UTC)
- You have to changes the Global settings. See Manual:User rights Kersti 13:49, 26 July 2011 (UTC)
Problem with uploaded m files
I am facing a strange problem with our mediawiki. I enabled certain file extensions, as Matlab files (*.m). However, while users can upload these files without problems, it is not possible to download/view them. "404 File not found"
Funny thing is, that I can access the files when I login to the webserver and go into the respective folder under wiki/images/... The user rights are set correctly to all subfolders of images. And it works with all other files in there, like jpg, png, pdf, doc, xls etc...
What's wrong? Any ideas? 129.59.79.164 (talk) 22:38, 25 July 2011 (UTC)
Parse error: syntax error, unexpected '<'
Dear people,
I try to install mediawiki but with the final step I get the following message:
Parse error: syntax error, unexpected '<' in /home/a6769890/public_html/LocalSettings.php on line 138
This is after I have the localsettings.php file uploaded and try to reach my wikipage.
Mediawiki version 1.17.0 PHP version 5.2.17 Database version: MSQL 5.1
Is there for my problem a solution or fix?
Many thanks for your answers
Regards Tom 87.210.141.195 (talk) 12:35, 26 July 2011 (UTC)
- What do you see on that line? Max Semenik 13:12, 26 July 2011 (UTC)
- 138.<!-- www.000webhost.com Analytics Code --> 87.210.141.195 13:37, 26 July 2011 (UTC)
- Apparently, added by your host. Remove that code (not only this line, but also other lines below). Max Semenik 15:20, 26 July 2011 (UTC)
- Many thanks! The wiki is made! 87.210.141.195 16:13, 26 July 2011 (UTC)
- Thanks to!! 79.159.242.18 15:31, 14 June 2012 (UTC)
- Many thanks! The wiki is made! 87.210.141.195 16:13, 26 July 2011 (UTC)
- Apparently, added by your host. Remove that code (not only this line, but also other lines below). Max Semenik 15:20, 26 July 2011 (UTC)
- 138.<!-- www.000webhost.com Analytics Code --> 87.210.141.195 13:37, 26 July 2011 (UTC)
View content by tag/label
Hey, I am new to MediaWiki... In Confluence Wiki contentbylabel allows viewing of pages that have specified label(s). It is very nice in that this page is created once and not touched again. But as new pages are input, if labeled, all the matching pages show up without any additional work.
Is there something like it in MediaWiki?
Appreciate the help! Nubiwiki (talk) 16:52, 26 July 2011 (UTC)
- Try using a Category tag, like this:
[[Category:Example]]- You don't even need to create the category page itself—as soon as you use the tag on a page, MediaWiki will automatically create the Category:Example page with a list of all pages using the tag. (It shows up as a red link because the page has no content other than the list of pages using the tag.) FYI, the Special:Categories page lists all of the categories currently in use on a MediaWiki site. CarLuva 11:37, 5 August 2011 (UTC)
- Eventually there will be so many tags (categories) by so many people that this list will become practically useless. So I want to be able to create a page or a link that displays only pages with certain tags (categories).
- For example, I want to display all pages with tags "Cars" and "Fast", but exclude "Toyota".
- Is this possible?
- Thanks for replying! Nubiwiki 16:35, 11 August 2011 (UTC)
- You want something like DPL or Semantic MediaWiki. —Emufarmers(T|C) 11:32, 17 August 2011 (UTC)
- Yes! This is cool! Thank! Nubiwiki 23:04, 23 August 2011 (UTC)
- You want something like DPL or Semantic MediaWiki. —Emufarmers(T|C) 11:32, 17 August 2011 (UTC)
Error 404
I am facing a strange problem with our mediawiki. I enabled certain file extensions, as Matlab files (*.m). However, while users can upload these files without problems, it is not possible to download/view them. "404 File not found" error occurs.
Funny thing is, that I can access the files when I login to the webserver and go into the respective folder under wiki/images/... The user rights are set correctly to all subfolders of images. And it works with all other files in there, like jpg, png, pdf, doc, xls etc... What's wrong? Any ideas? 129.59.79.164 (talk) 17:00, 26 July 2011 (UTC)
How to deal with greed-motivated documentation suppression on mediawiki.org?
This post by Revibot was moved on 2015-07-11. You can find it at Project:Village Pump/Flow/2011#h-How_to_deal_with_greed-motivated_documentation_suppression_on_mediawiki.org?-2011-07-26T02:17:00.000Z. P858snake (talk) 00:36, 27 July 2011 (UTC)
How to login Mediawiki via URL
I want automatic login to my wiki via URL, example as : html://mymediawiki.com?username=...&password=....
Thanks. 113.165.8.205 (talk) 09:37, 27 July 2011 (UTC)
$wgAdvancedSearchHighlighting set to true. Wrong results for cyrillic text
Site URL: http://www.autopark.ru/wiki
- MediaWiki: 1.17.0
- PHP: 5.2.10 (apache)
- MySQL: 5.1.41-log
$wgAdvancedSearchHighlighting set to true.
- In search results there are wrong text snippets - just show beginning of article (some first lines)
- No highlighting, even if the search text is in these first lines
Samples:
- Up. Sorry, but the problem is still actual. Thanks. 91.77.220.191 16:32, 9 August 2011 (UTC)
I want to register users of the
I want to register users of the media wiki to allow me to be active
Font and font color can be changed
Revision can be done with the approval of the director
Please help me
Raya2017 (talk) 22:20, 27 July 2011 (UTC)
- Personally, I don't understand your problem. Please expand. Hazard-SJ ± 22:57, 29 July 2011 (UTC)
- Just Guess about "Revision can be done with the approval of the director"
- This might help: Extension:FlaggedRevs
- "Article validation allows for Editor and Reviewer users to rate revisions of articles and set those revisions as the default revision to show upon normal page view" 95.167.125.206 12:57, 1 August 2011 (UTC)
[RESOLVED] Error when code or system commands are in wiki page.
When trying to save system commands (Linux) or any code in a wiki page, I receive the following error:
Forbidden You don't have permission to access /index.php on this server.
I can pull out any of the code in that page and attempt to save it again with no problems. An example would be putting something like "/etc/init.d/mysqld restart" in the page.
I use the wiki all the time to save scripts that I use for work and other misc admin/security notes.
Here are the version infos:
MediaWiki 1.17.0
PHP 5.2.10 (apache2handler)
MySQL 5.0.77
I would link the wiki, but it's secured with no access available, sorry.
Thanks! 71.251.109.198 (talk) 02:50, 28 July 2011 (UTC)
- Daggum, it was mod_security, which has been installed for quite some time now. It must have been a Mediawiki or mod_security update that recently changed things. 71.251.109.198 03:52, 28 July 2011 (UTC)
Table on wrong position
Hello. This is about the following question: http://www.mediawiki.org/w/index.php?title=Project:Support_desk&offset=20110725075245&limit=20#Include_Unity3D_.28JavaScript.29_5293
Now i have a new problem:
I include it as presentation but i have two results. It have to look like this:
http://bgo.sci-wiki.de/index.php/Viper_Mk_II
But it looks like this:
http://stis.sci-wiki.de/index.php/Vorlage_Diskussion:Schiffsdaten
It is about the text... on the site where i include the unity3d the text is under the table... on my BGO-Wiki the table is on the right and the text goes around it.
Where is the fault? JTGarrett (talk) 10:31, 28 July 2011 (UTC)
- Can anyone help me? JTGarrett 16:45, 29 July 2011 (UTC)
Firebug Javascript Error
- Firebug Javascript Fehler: stylepath is not defined
wikibits.js?301() wikibits.js?301 (Zeile 586) [Bei diesem Fehler anhalten] window.ts_image_path = stylepath + '/common/images/'; (Nicht angegeben in der config Datei?)
This is the german Error inclusive the report of a user... here my try to translate it:
* Firebug Javascript Error: stylepath is not defined
wikibits.js?301() wikibits.js?301 (Zeile 586) [Stop on this error] window.ts_image_path = stylepath + '/common/images/'; (not defined in config file?)
Can anyone tell me where is the issue? I think all is fine. The Code from line 586 and following:
window.ts_image_path = stylepath + '/common/images/'; window.ts_image_up = 'sort_up.gif'; window.ts_image_down = 'sort_down.gif'; window.ts_image_none = 'sort_none.gif'; window.ts_europeandate = wgContentLanguage != 'en'; // The non-American-inclined can change to "true" window.ts_alternate_row_colors = false; window.ts_number_transform_table = null; window.ts_number_regex = null;
Regards JTGarrett (talk) 10:34, 28 July 2011 (UTC)
- I found a site where this line:
window.ts_image_path = stylepath + '/common/images/';</pre> was wrote as <pre>window.ts_image_path = stylepath+'/common/images/';
- I edited it like this but the error will comes again.
- You can look at this on http://stis.sci-wiki.de
- Hope anyone can help me.
- Regards JTGarrett 16:45, 29 July 2011 (UTC)
[RESOLVED] editable table
I need an editable table on my wiki. I googled and found an extension tableedit. Likewise can anyone suggest some more please which are better than it? 146.162.240.242 (talk) 14:22, 28 July 2011 (UTC)
- I haven't seen much to my liking myself, but here's a few general pointers which may or may not be useful to you:
- See Category:Table extensions for all available extensions, although some of them are no longer maintained or have become obsolete.
- Several WYSIWYG extensions have added support for creating tables from the editing interface.
- If you need tables to be built on the basis of queries for predefined properties, you could also consider Semantic MediaWiki and its family of related extensions.
- Hope that helps Cavila 14:40, 28 July 2011 (UTC)
[RESOLVED] how do i do this
The Sun is pretty big,[1] but the Moon is not so big.[2] The Sun is also quite hot.[3]
How do I do the above in my MediaWiki? The <ref> tags do not do anything in my wiki. 38.116.199.130 (talk) 17:10, 28 July 2011 (UTC)
- Install the Cite extension, just like Wikipedia and MediaWiki.org did. Krinkle 18:04, 28 July 2011 (UTC)
- Does the creator of the wiki have to install this? I did not create the wiki so should I contact the creator or is there a way I can install it into the wiki? 38.116.199.130 19:57, 28 July 2011 (UTC)
- Yes, the site administrators are the only ones that can do that. Badon 20:14, 28 July 2011 (UTC)
- Thank you. 38.116.199.130 20:18, 28 July 2011 (UTC)
- Yes, the site administrators are the only ones that can do that. Badon 20:14, 28 July 2011 (UTC)
- Does the creator of the wiki have to install this? I did not create the wiki so should I contact the creator or is there a way I can install it into the wiki? 38.116.199.130 19:57, 28 July 2011 (UTC)
[RESOLVED] What does a pipe do at the end of a parameter?
There's no documentation of the difference between
{{{parameter}}}
and
{{{parameter|}}}
What does the pipe do? Badon (talk) 20:13, 28 July 2011 (UTC)
- Whatever is placed after the pipe becomes the default value if the parameter is not passed to the template. There are some subtleties around it; you may find it helpful to translate to English the page Help:Parser functions in templates/pt (I'll get this done someday). Hamilton Abreu 22:55, 28 July 2011 (UTC)
- Whatever is placed after the pipe becomes the default value if the parameter is not passed to the template. There are some subtleties around it; you may find it helpful to translate to English the page Help:Parser functions in templates/pt (I'll get this done someday). Hamilton Abreu 22:55, 28 July 2011 (UTC)
- Thanks! Badon 00:14, 29 July 2011 (UTC)
How to add a different icon after the link according to interwiki link
How to add a different icon after the link according to interwiki link? Like icone after standard links according to the files extensions (pdf, jpg,...) 80.254.155.51 (talk) 23:09, 28 July 2011 (UTC)
Validate RSS Feed
MediaWiki 1.16.0 PHP 5.2.15 (cgi-fcgi) MySQL 5.1.53-log
I'm attempting to make use of the rss feed on my wiki. Specifically, I want to display it on my related forum. However, I've tried running the feed through a Feed Validator and it keeps failing. Any ideas on what the issue might be? My wiki is only editable by registered users, but it is viewable by anyone.
This is the feed in question: http://markedrp.com/w/index.php?title=Special:RecentChanges&feed=rss
Any ideas? Ranimara (talk) 04:32, 29 July 2011 (UTC)
- Anybody? I want to use the feed outside of the wiki. I'm dropping it into a custom php block from Simple Portal, a portal mod for SMF forums. But the code I'm using results in the error message: "XML error: Invalid document end at line 2". I was able to successful use a feed from another mediawiki. Gossamer 17:49, 3 September 2011 (UTC)
[RESOLVED] New Pages
How to view a list of pages created by me from 2008 year using Special:NewPages? wargo (talk) 18:20, 29 July 2011 (UTC)
- Well, I agree that MediaWiki needs to get tools similar or based on some at Toolserver. The closest I saw was this at toolserver for this specific wiki, or this on wiki. Hazard-SJ ± 22:22, 29 July 2011 (UTC)
- thanks :) wargo 09:31, 30 July 2011 (UTC)
- No problem ;) Hazard-SJ ± 15:59, 30 July 2011 (UTC)
- thanks :) wargo 09:31, 30 July 2011 (UTC)
German MediaWiki support community?
Hi. I am searching for a german Board where i can ask about problems.
Here i didn't get any answers since a few days:
Now i hope to find a german helpful community where i can ask about this problems.
Regards JTGarrett (talk) 14:46, 30 July 2011 (UTC)
- I assume you might have meant MediaWiki, because MediaWiki is the software, Wikimedia is the organization under which the projects are managed. Hazard-SJ ± 16:16, 30 July 2011 (UTC)
- Yes. You are right. I meant MediaWiki.
- Do you now anything like this? JTGarrett 16:49, 30 July 2011 (UTC)
- Unfortunately, no. You will have to stick with the current community. By the way, the software is developed by people who speak English, but is translated for other languages by TranslateWiki, so I wouldn't have expected a MediaWiki website for each language supported. Hazard-SJ ± 18:04, 30 July 2011 (UTC)
- Es gibt zwei Möglichkeiten, wie man an einen Antwort auf Deine Fragen kommen kommen könnte.
- Wenn die Fragen sich in die Form "Wie macht ihr das bei Wikipedia" quetschen lassen, kann man es hier versuchen: Wikipedia:Fragen zur Wikipedia - aber es ist sehr wahrscheinlich daß sie Dich dort auf Mediawiki, also hierher und auf die Auskunft verweisen.
- Wenn sie sich nicht in diese Form Quetschen lassen bleibt ausschließlich die Wikipedia:Auskunft
- In beiden Fällen besteht eine brauchbare Chance, daß jemand mitliest, der Ahnung hat. Kersti 09:56, 16 August 2011 (UTC)
- Es gibt zwei Möglichkeiten, wie man an einen Antwort auf Deine Fragen kommen kommen könnte.
- Unfortunately, no. You will have to stick with the current community. By the way, the software is developed by people who speak English, but is translated for other languages by TranslateWiki, so I wouldn't have expected a MediaWiki website for each language supported. Hazard-SJ ± 18:04, 30 July 2011 (UTC)
A database error has occurred. Did you forget to run maintenance/update.php after upgrading?
When trying to install my local MediaWiki, this error occured:
A database error has occurred. Did you forget to run maintenance/update.php after upgrading? See: http://www.mediawiki.org/wiki/Manual:Upgrading#Run_the_update_script Query: SELECT lc_value FROM `l10n_cache` WHERE lc_lang = 'de' AND lc_key = 'deps' LIMIT 1 Function: LCStore_DB::get Error: 1146 Table 'my_wiki.l10n_cache' doesn't exist (localhost)
How do I fix this problem? Freyn (talk) 17:33, 30 July 2011 (UTC)
- Hello. As the error had said, the problem can be fixed bu running maintenance/update.php. Hazard-SJ ± 18:06, 30 July 2011 (UTC)
Problem migrating to new server
I am attempting to migrate a wiki to a new host. I believe I have created the new database correctly, and configured LocalHost.php with the new data. The The host provider has given me a temporary URL to access the site in the form of "Http://some.odd.url/~folsom9.
When I access that URL and the wiki, "http://some.odd.url/~folsom9/wiki" I get a 404 Not Found of the form "http://some.odd.url/wiki/index.php?title=Folsom_Family_Wiki_Main_Page.
In other words, the original URL with the "/~folsom9" omitted.
Is there a chance the "~" in the path name is messing up the process, or is it more likely I screwed up LocalSettings.php?
Thanks,
Al Folsom 98.114.239.168 (talk) 19:28, 30 July 2011 (UTC)
- Are you sure the wiki files were as yet uploaded by the host? Hazard-SJ ± 02:19, 3 August 2011 (UTC)
- May be setting Manual:$wgScriptPath may help here. 95.167.125.206 05:09, 4 August 2011 (UTC)
help install
well i get to the last step and it makes the stuff in the database but its not making the LocalSettings.php file ase u can see http://img215.imageshack.us/img215/12/unledmie.png my website is http://imperialism-wiki.zxq.net/ 96.228.216.23 (talk) 23:07, 30 July 2011 (UTC)
- Known issue, will be fixed in 1.17.1 - meanwhile, as a workaround don't check "subscribe to the release announcements mailing list". Max Semenik 01:43, 1 August 2011 (UTC)