Project:Support desk/Archive 04
Edit Link has changed after upgrading to 1.90
Since upgrading to 1.90, the [ edit ] link is now on the left of the header and is in the same font as the header for all pages. It's not that bad, but I'd like to go back to the nice, small links on the right. How do I fix this? Example from my Site
- Suspect you need to edit the template that you are using. Can't really help beyond that, sorry, might get you going in the right direction though. --Dr DBW 22:44, 8 February 2007 (UTC)
- Add the following CSS rule to your "MediaWiki:Monobook.css" page:
div.editsection { float: right !important; }
- To size down the text, you might want to end something like font-size: 50% !important; before the closing brace. -- 85.177.33.102 13:32, 16 February 2007 (UTC)
How to Replace the default WYSISWYG editor into mediawiki?
My name is Dominick and I'm looking for some help. I would like to change the default html editor that is into mediawiki by TinyMCE. But I have no idea on how to do it. I already did some search on google by it was unsuccesful. Can you please guide me through some help or explain me how to do it. I also checked the instruction on tinemce web site and I didn't catch how to with their explanation. Thanks. Dominick
- Links to details that you did find? What don't you understand about their instructions? --Dr DBW 22:42, 8 February 2007 (UTC)
Help pages
I followed the procedures in Help:Import and Help:Export to import the help files from META to my newly installed wiki. I noticed that some templates were being refered to by these pages, such as Template:H:h and Template:H:f. So i imported them also. But I still get the following strange text string on some of the help pages: {{#if: Help|Template:H:h Help|Template:H:h Help}} Could anyone clue me in about this? How do I get it to work correctly?
- m:Template:H:h refers to m:Template:H:h Help; since it uses #if you need m:ParserFunctions. You can also replace Template:H:h by your own version (some header) or blank it.--Patrick 00:03, 5 February 2007 (UTC)
$WgImportsources not working
Can't upload any pages from Meta.... it's not working for some reason, why?? I added it to Localsettings.php as follows: /**
* List of interwiki prefixes for wikis we'll accept as sources for * Special:Import (for sysops). Since complete page history can be imported, * these should be 'trusted'. * * If a user has the 'import' permission but not the 'importupload' permission, * they will only be able to run imports through this transwiki interface. */
$wgImportSources = array(metawikipedia, wikitravel); /**
* Optional default target namespace for interwiki imports. * Can use this to create an incoming "transwiki"-style queue. * Set to numeric key, not the name. * * Users may override this in the Special:Import dialog. */
$wgImportTargetNamespace = null; /**
* If set to false, disables the full-history option on Special:Export. * This is currently poorly optimized for long edit histories, so is * disabled on Wikimedia's sites. */
$wgExportAllowHistory = true; /**
* If set nonzero, Special:Export requests for history of pages with * more revisions than this will be rejected. On some big sites things * could get bogged down by very very long pages. */
$wgExportMaxHistory = 0; $wgExportAllowListContributors = true ; Anyone able to figure this one out??
--82.42.237.84 22:49, 5 February 2007 (UTC)
- What values are in the array? Perhaps it should be $wgImportSources = array("metawikipedia", "wikitravel"); -- 85.177.33.228 21:15, 21 February 2007 (UTC)
Search over more than one Wiki
We have 3 Wikis and want to centralise the searching. This Wikis are all installed on a single VM utilising the same LAMP environment. Is there any solution?
- Oh it must be said, that these Wikis are for internal use. It can't be indexed with google, or something like this.
- If a wiki search solution doesn't fit or can't be reworked, you may want to use IBM/Yahoo's free OmniFind product. It crawls and indexes wikipedia sites very nicely. It also gives you the ability to customize the interface so it's not "Yahoo'ed". I've had really good success with it - just read the forms on their support site for tips on how to prevent indexing in circles...
- Sounds good, thanks! We'll check that.
- How about a different approach using three dedicated namespaces within a single Wiki? If this was a way to get this fuctionality would there be any tools availiable to migrate existing wiki contents into this newly created namespaces?
- Are there tool available to migrate a full wiki to a namespace ... but there are problems with the rights ... not all are allowed to read and write in different wikis. so namespaces are interessting but not a good solution for us i think ... but i will consider it if its not so a big reorganisation. --Conni 08:18, 16 February 2007 (UTC)
- How about a different approach using three dedicated namespaces within a single Wiki? If this was a way to get this fuctionality would there be any tools availiable to migrate existing wiki contents into this newly created namespaces?
- Sounds good, thanks! We'll check that.
- If a wiki search solution doesn't fit or can't be reworked, you may want to use IBM/Yahoo's free OmniFind product. It crawls and indexes wikipedia sites very nicely. It also gives you the ability to customize the interface so it's not "Yahoo'ed". I've had really good success with it - just read the forms on their support site for tips on how to prevent indexing in circles...
$WgLogo
$wgLogo = "/DIRECTORYPATH/MEDIAWIKINAME/images/FOLDER/FOLDERNAME/IMAGENAME"; This worked for me when I installed 1.9, $WgLogo doesn't work on newer versions, doesn't appear in LocalSettings.php --82.42.237.84 12:50, 6 February 2007 (UTC) domjj6jykk,jklj 5jj55jj uj65
DefaultSettings.php
Okay, so I made a mistake instead of adding the FileExtensions to LocalSettings.php I modified DefaultSettings.php Now nothing works, is there a way to repair the DefaultSettings.php
- Get it from a fresh installation. Download and unzip it on your own computer, and then copy over the fresh file to your server. --Dr DBW 22:41, 8 February 2007 (UTC)
Wiki hacked by Turkish hacker (iskorpitx)
My wiki was defaced by iskorpitx. He basically replaces the index.php page with his own. What is the easiest way to reinstall and how do I prevent this in the future?
- I suspect you may find that this has nothing to do with MediaWiki, but rather a hacking of the server itself. They had to get in there to be able to write a new index.php page, which is not the wiki one. You can't do this via MediaWiki. Your server provider should be able to find out how they got in there. --Dr DBW 22:56, 8 February 2007 (UTC)
How do I use {{BASEPAGENAME}} as a parser function?
TylerRick 18:56, 6 February 2007 (UTC)
I'm trying to make a template that creates a link to a category, but I don't want the link to include the "Category:" part -- just the base page name. So far I have:
<includeonly>[[[:Category:{{{1}}}]]][[Category:{{{1}}}]]</includeonly>I know {{BASEPAGENAME}} is technically a variable , but I'd like to use it as a parser function / a template that accepts arguments. I'd like to be able to do something like this, but none of these work: Support desk Template:BASEPAGENAME {{#BASEPAGENAME|Category:something}} {{#BASEPAGENAME: Category:something}} Any ideas on how I might accomplish this or is it not currently possible?
- You can simply make a piped link [[:Category:{{{1}}}|{{{1}}}]]. To extract a part of a string you would need the StringFunctions extension.--Patrick 00:38, 7 February 2007 (UTC)
- Thanks for your help. --TylerRick 06:44, 7 February 2007 (UTC)
Database Error after updating to 1.9.0
I'm getting the following Error Message when I attempt to save Page Edits: "Database 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 "Article::updateRedirectOn". MySQL returned error "1146: Table 'nameddb.redirect' doesn't exist (wiki.domain.com)"." I have to try re-saving several times before it finally saves. Also noticing that the Date / Time Stamp shortcut are not working (i.e. using the date ~'s) Thank you.
- You haven't updated your database. Either add the tables and fields manually, or run maintenance/update.php from the command line (php update.php within the correct directory), or reinstall the wiki through the installation wizard (but use the same settings as you did on the first install.) If you do not have access to the command line, you can use phpshell to gain access. Ronald Ping Man Chan 06:46, 7 February 2007 (UTC)
^^ Thank you - this resolved the issue!
Form variables
Is there a way to read variables sent to the page, such as...
http://localhost/index.php/Main_Page?name=Travis
...where 'Travis' was assigned to 'name' from a form?
- Yes, with extension m:DynamicFunctions##arg:.--Patrick 23:25, 7 February 2007 (UTC)
- I tried
{{#arg:name|default}}but it doesn't translate to the variable or the default value. Is displays as the function itself.- It works for me. Note that it is an extension. It has to be installed.--Patrick 17:11, 8 February 2007 (UTC)
- I tried
texvc.ml vs. OCaml
Hallo, I tried everthing, but I can't run TeX in my mediawiki. I have an XP-platform and installed xampp. I have OCaml and ImageMagick installed. The Compilation of the texvc.ml gets Exceptions. I do know nothing about Ocaml and Makefiles, but want to create a MathWiki for my Math-Lessons. Is there anywhere who can help me? Readme an google are not realy good. thx, Ingo Roseneck My email: iroseneck@web.de
Ability to add a header and footer to Mediawiki?
I would like to keep some consistency within all pages on my website and as such need to add a header.htm and footer.htm page to my MediaWiki section. Has anyone done this and if so can you give some pointers. I don't see an easy way to do it.
Trying to find value similar to a.new in main.css file...
I'm trying to change the colour of the red links in my wiki to a different colour, since it clashes with the background I set...
I looked all over the main.css file in my skin, and I found the entries a.new, #p-personal a.new and a.new:visited, #p-personal a.new:visited, but changing them only changed the colours of the red links outside of the articlespace (for example, a userpage that did not exist), but all of the links in the article stayed red... What's weirder is that changing a.new:visited, #p-personal a.new:visited also changes the colour of the links IN the articlespace, which is what I was going for... How can I get the red links to be a different colour? Thanks in advance! Kareeser|Talk! 00:20, 8 February 2007 (UTC)
- Apply the following CSS rule:
a { color: #xxxxxx !important; }
.new a, a.new { color: #yyyyyy !important; }
Where #xxxxxx is the new color for the "blue" links and #yyyyyy is the new color for the "red" links. -- 85.177.33.102 13:23, 16 February 2007 (UTC)
Solved
I reran the Installer, the problem is solved, the Wiki is up and running again. Thx and bye
- Webinstaller should work ... but this could be the solution on long term. btw: Did you host your wiki at the german webhoster "HE" ? --Nyks 18:31, 21 February 2007 (UTC)
Category linking without becomong a member
Is it possible to link to a category page without becoming a member of that category ?
- Yes, put a colon after "[[".--Patrick 15:49, 9 February 2007 (UTC)
Problem with image links
A short question: On my wiki (rezeptewiki.org, PHP4, MW1.6.8) there is a strange behaviour on images pages. Under the line "The following pages link to this file:" there is always the image page of this image listet, and so the specialpage unusedimages gives no results. Any ideas? -- Daniel Beyer
- Ok, I updated to PHP5.1 and MW1.9.3 but the problem is still the same. Really no ideas? -- 84.184.134.115 17:08, 23 February 2007 (UTC)
- I solves the Problem. It was a simple template problem... -- 84.184.197.175 22:08, 7 March 2007 (UTC)
User Ratings and Link Ratings
I'd like to impliment a system for rating users and external links. For external links though I only want ratings for certain ones for example [http://www.website.com/ WebSite] will have no rating but something like [http://www.website.com/ WebSite|rate] would. I'd like it if someone who knew PHP could do this or guide me though the process to make this extension.--71.217.192.176 03:26, 10 February 2007 (UTC)
Config Fatal Error - Loading 1.9.2 Stable Version
I am installing a new Wiki using the stable version 1.9.2 I set the config dir so it is writeable. I loaded all of the files. The config won't run. I get a warning then a fatal error: Warning: main(install-utils.inc) [function.main]: failed to open stream: No such file or directory in /var/www/vhosts/aircoolersla.org/httpdocs/wiki/config/index.php on line 43 Fatal error: main() [function.require]: Failed opening required 'install-utils.inc' (include_path='.:/var/www/vhosts/aircoolersla.org/httpdocs/wiki:/var/www/vhosts/aircoolersla.org/httpdocs/wiki/includes:/var/www/vhosts/aircoolersla.org/httpdocs/wiki/languages') in /var/www/vhosts/aircoolersla.org/httpdocs/wiki/config/index.php on line 43 I checked all the files in the include directory and did not see any "install" files and I didn't see any .inc files.
Would like help getting recent data on the main page.
I would like to show this information on the front page somehow in a table format. I have no idea how to do this and was wondering if someone could help. I would like it to look similar to jeepiki
- Most Popular
- New Pages
- Recently Updated
- It uses m:Dynamic Article List, install that and use wikitext like on jeepiki.--Patrick 10:14, 10 February 2007 (UTC)
Fatal skin error in MW 1.5.8 under WinXp
Following the instructions at http://lifehacker.com/software/wikipedia/geek-to-live-set-up-your-personal-wikipedia-163707.php word for word. Then this pops up:
Warning: dir(C:\wamp\www\wiki\skins) [function.dir]: failed to open dir: Invalid argument in C:\wamp\www\wiki\includes\Skin.php on line 23 Fatal error: Call to a member function read() on a non-object in C:\wamp\www\wiki\includes\Skin.php on line 26
What do I do!?‽
- The guide you used described the installation for MediaWiki 1.5.8. This version is very, very old, you should use the current stable version, 1.9.2. As I look over the guide, I see some more horrible advices. You should uninstall WAMP and MediaWiki and have a look for a newer guide, favorably one at Wikipedia etc. For example, if you're speaking German, you might find this guide useful. There should be equivalents in all major languages, this is what I found immediately. -- 85.177.33.102 13:19, 16 February 2007 (UTC)
Mixing Wikitable and HTML syntax
I am setting up a new wiki using the current stable version. Under the terms of the GFDL I am copying a little (attributed) information from Wikipedia. This includes a template which works perfectly there, but does not on my new implementation. I have tracked the problem down to the original template author mixing wikitable pipe syntax and html table syntax. Ignoring the fact that this is poor practice, I need to know what I must do to make it work on my new wiki, please. To distill the problem I have an example:
Wiki table including conventional table syntax
This creates
Wiki table including conventional table syntax
in the finished article. If I do the same on Wikipedia (or in THIS wiki) I just get Wiki table including conventional table syntax This is the intended end result, and thus highly desirable. I conclude that I have not installed something that exists on Wikipedia (or here). But what? Timtrent 11:51, 11 February 2007 (UTC)
- Wikipedia uses the current testing version, 1.10α. You, however, utilize the current stable branch, 1.9. Maybe this is the reason. -- 85.177.33.102 13:12, 16 February 2007 (UTC)
Problem with session
I use IIS, PHP 5 and MediaWiki 1.9.2, i try to connect me (open session in wiki) and it goes, but i'm direclty disconnected when i click on a link why? I try to check, remember my login on my computer and i'm not directly disconnected. It's the first solution, this radio button button is obligatory!! But i try to understand why, on Wikipedia, i'm need not to check the radio button (remember my login on my computer) to be connected correctly?
- The solutions is the creation of folder /sessions under PHP folder. Don't forget to use 'mysqli' to communicated between PHPmyadmin (2.9.2) and Mysql (5.0.24a)
Google for "MediaWiki session data loss" and see what turns up. 164.11.204.56 23:33, 21 February 2007 (UTC)
MediaWiki 1.91 - no tagline
For some reason MediaWiki:Tagline isn't working.... why?? I run MW 1.91 on my local WAMP server! --82.42.237.84 13:47, 11 February 2007 (UTC)
- It's hidden by default. Add something like
#siteSub { display: inline; }to MediaWiki:Common.css on your wiki. 164.11.204.56 23:32, 21 February 2007 (UTC)
https log problem
I have MediaWiki 1.9.2 installation (typical installation) on an nginx server. I have nginx setup to listen on port 443 as shown at the bottom of this message. I am using Firefox 2.0.0.1 and have cookies enabled. After I log in to the wiki, as soon as I attempt to go to another page on the wiki, I am always involuntarily logged out of the wiki. Is there a problem with MediaWiki remembering sessions when using https? Or are there any other known problems that would explain this? Thanks.
nginx.conf
server {
listen 443;
server_name wiki.domain.com;
auth_basic "Restricted";
auth_basic_user_file /usr/local/nginx/conf/htpasswd;
ssl on;
ssl_certificate /usr/local/nginx/ssl/nginx.crt;
ssl_certificate_key /usr/local/nginx/ssl/nginx.key;
location / {
root /usr/local/nginx/sites/wiki/html;
index index.html index.htm index.php;
}
# pass the PHP scripts to FastCGI server listening on 127.0.0.1:10005
#
location ~ \.php$ {
fastcgi_pass 127.0.0.1:10005;
fastcgi_index index.php;
fastcgi_param SCRIPT_FILENAME /usr/local/nginx/sites/wiki/html$fastcgi_script_name;
fastcgi_param QUERY_STRING $query_string;
fastcgi_param REQUEST_METHOD $request_method;
fastcgi_param CONTENT_TYPE $content_type;
fastcgi_param CONTENT_LENGTH $content_length;
}
}
Template for new pages
Is there a way that new pages already contains something defined by a template page?
- Yes, see m:Help:Inputbox, type=create, with preload.--Patrick 14:24, 12 February 2007 (UTC)
- Better option, and a shameless plug; see Extension:Preloader. 164.11.204.56 23:29, 21 February 2007 (UTC)
default of "my preferences"
I want to make a default user which i can set the preferences for example like "Enable e-mail from other users" or "Auto-number headings". So if someone get registerd he should have standard settings in his preferences which i want, that he has it. How can i make such a "default user template"?
- Ive found a function in user.php called "createNew". Perhaps there i can set the preferences? Or anywhere in user.php?
- See Manual:$wgDefaultUserOptions. --.anaconda 21:42, 14 February 2007 (UTC)
- Thank u very much for this tipp :) --Conni 08:12, 16 February 2007 (UTC)
- See Manual:$wgDefaultUserOptions. --.anaconda 21:42, 14 February 2007 (UTC)
Recent Changes
Hi everybody, i have a problem with our Wiki and the rubrik Recent changes in navigationbar. I installed mediawiki-1.9.1, but on our Wiki this Rubrik is shown on an other way than it is shown on Wikipedia. I just can compare the actual version with the version before, but on Wikipedia it ist possible to compare every Version with every other Version. I need the same on our Wiki too, what is to do here? Do I need an extension? Please Help. Greetings Benni
- I have MediaWiki 1.6.8 installed (because only PHP 4 is available on my webspace), and the Special:Recentchanges page is the same as in Wikipedia with MediaWiki 1.10α. You're probably mixing up the recent changes and the page history. -- 85.177.33.102 13:09, 16 February 2007 (UTC)
Oh, you are right I thank you for your answere.
server time error
In the Time Zone section of the Preferences page under Time and Date, the server time is displayed wrong. It is different than my server clock/time. How do I change that time to whatever time I want it to be? Meaning how to change the server time in the Time Zone section. I really appreciate your help Thanks in advance
Could not find a suitable database driver!
Hi I'm reasonably new to all of this so please be patient with me if this seems obvious. I'm having what seems to be a common problem when installing Media Wiki, but it also seems that everyone that has this problem is running windows:
* PHP 5.2.0 installed Could not find a suitable database driver! o For MySQL, compile PHP using --with-mysql, or install the mysql.so module o For PostgreSQL, compile PHP using --with-pgsql, or install the pgsql.so module
This is the setup:
- Apache Server 2.2.3
- MySQL 5.0
- openSUSE 10.2
I don't really know where to start so if anyone could just point me in the right direction I'd be very grateful.
- you need to install the php5-mysql module. Without PHP5 can not connect to a mysql databse. In the same step, think of php5-gd.
Problems with tables in the German Lostpedia
can someone help us with the Main Page? http://de.lostpedia.com/wiki/Hauptseite Greetings, Daniel (@Lostpedia)
Renaming the entry page
When users first enter the wiki, they are sent to "Community Portal". I have a redirect to where I want them to go. The main reason for the redirect is to get rid of the "Community Portal" page title. How do I either a) send them to the correct page on entry OR b) get the Community Portal page to display a different title? Thanks, Alan
- I know thats maybe not the best solution... but what about redirecting the Community-Portal page to another one? Redirect is your friend...
- If I correctly understood, you want to change MediaWiki:Mainpage. --.anaconda 12:13, 15 February 2007 (UTC)
Thanks for the replies, but I already have a redirect from community portal to the page I want, I want people to go straight there, so they don't get a "redirected from..." message. I want to change the default page everyone goes to on entry from Community Portal to something else.
- Hmm... so I think you want to change MediaWiki:Portal-url. --.anaconda 15:37, 17 February 2007 (UTC)
You could just remove the link; see Manual:Navigation bar. 164.11.204.56 23:27, 21 February 2007 (UTC)
MarkPatrolled
Hi, how off this function? I don`t need red exclamation marks and this function. Thans for help :) --88.222.212.231 15:34, 14 February 2007 (UTC)
- See Manual:$wgUseRCPatrol. Add this line to your LocalSettings.php:
$wgUseRCPatrol = false;--.anaconda 21:36, 14 February 2007 (UTC)
Installation Failed
I can't manage to install MediaWiki and this is the output of the Installer: MediaWiki 1.9.2 Installation Don't forget security updates! Keep an eye on the low-traffic release announcements mailing list. Checking environment... Please include all of the lines below when reporting installation problems. PHP 5.1.2 installed Found database drivers for: MySQL Warning: PHP's register_globals option is enabled. Disable it if you can. MediaWiki will work, but your server is more exposed to PHP-based security vulnerabilities. PHP server API is apache2handler; ok, using pretty URLs (index.php/Page_Title) Have XML / Latin1-UTF-8 conversion support. PHP is configured with no memory_limit. Have zlib support; enabling output compression. Couldn't find Turck MMCache, eAccelerator or APC. Object caching functions cannot be used. Found GNU diff3: /usr/bin/diff3. Found ImageMagick: /usr/bin/convert; image thumbnailing will be enabled if you enable uploads. Found GD graphics library built-in. Installation directory: /df01_htdocs/htdocs/dev/giovanni/apps/wiki Script URI path: /dev/giovanni/apps/wiki Environment checked. You can install MediaWiki. Generating configuration file... Database type: MySQL Loading class: DatabaseMysql Attempting to connect to database server as root...success. Connected to 5.0.21-standard Attempting to create database... Created database wikidb Creating tables... using MySQL 4 table defs... done. Initializing data... Granting user permissions to wikiuser on wikidb...success. Fatal error: Call to undefined method User::newfromname() in /df01_htdocs/htdocs/dev/giovanni/apps/wiki/config/index.php on line 877 All my directories are 777 at this point in time. Any ideas anyone? Giovanni
- It looks like one of your files is out of sync. Try deleting the whole directory, downloading MediaWiki 1.9.2 again, and starting anew. — Edward Z. Yang (Talk) 15:43, 19 February 2007 (UTC)
New articles
Hi, how I can see newest articles in recent changes or anywhere..? Only new articles, without last edits. Thanks for help --88.222.212.231 12:02, 16 February 2007 (UTC)
- Use the special page "New pages". -- 85.177.33.102 13:45, 16 February 2007 (UTC)
Create an intranet Wikipedia
If I am to create a local Wikipedia for my company. Do I have to install some more addons to this program, or is it suffisient to download and install the mediawiki. I of course have the webserver with IIS and mySQL installed. If som, what addons do I have to download and install?
- So, you want to create a local copy of Wikipedia? I expect that you have a current version of PHP with the MySQL extension up and running. Install the current version of MediaWiki and import a dump of Wikipedia from http://dumps.wikimedia.org. This can be done with this command line:
php [mediawiki-path]/maintenance/importDump.php [xml-dump-file].xml
- Have a look at w:Special:Version to find out which extensions might be necessary for you. For example, if you intent to use Wikipedia for historical researches, you might want to install the timeline extension. Click on the links to get the download sources and installation instructions. If you want to view the mathematical formulas in Wikipedia articles, you will have to install TeX and the MediaWiki hooks. -- 85.177.33.102 13:44, 16 February 2007 (UTC)
someone posted hidden files on my site
I am still new to mediawiki. Not many people use my site so I can watch all of the edits and uploads. However, somehow someone posted the following and other files on my wiki. They redirect to other sites. How did they do this without me knowing? Is there a way to stop them from doing this in the future? www.virtualtoychest.com/mediawiki-1.8.2/images/archive/e/e3/slots-11.html www.virtualtoychest.com/mediawiki-1.8.2/images/archive/e/e3/roulette-3.html www.virtualtoychest.com/mediawiki-1.8.2/images/d/d6/poker-7.html www.virtualtoychest.com/mediawiki-1.8.2/images/thumb/7/77/casino-5.html
- See this section of the manual. --.anaconda 15:31, 17 February 2007 (UTC)
- Right. Why did you disable upload security protection? — Edward Z. Yang (Talk) 15:42, 19 February 2007 (UTC)
Thank you for your help. There is still a problem. I restricted uploads to certain kinds of files, and deleted the offending files from cpanel. However I returned today to find the bad html files were back. I was never aware that I disabled upload security. When I originally enabled uploading I followed the directions on http://www.mediawiki.org/wiki/Configuring_file_uploads It would be helpful if that page mentioned more about security. I am not qualified to write about it. I have now disabled uploads. I deleted the files via ftp. The files reappeared. I tried to find them in phpadmin for mysql but did not see them in browsing or via a search. please advise. Virtualtoychest 01:57, 21 February 2007 (UTC)
- If the file reappears, check if its entry in the image table in the database also reappears. If not, the file was not uploaded via mediawiki, but directly, for example via ftp (which is notoriously insecure). That an HTML file should show up in image/thumbs also lets me believe the file was put there without mediawiki's doing - html files can not be rendered/scaled, and thus should not show up in the thumbs directory. Also, it should not be possible to upload HTML files to mediawiki at all, even if you disable mime checks.
- If such mystery files show up, please secure a copy of these files, and record their exact location, creation/modification time and the file permissions on image directory and subdirectories in which those files showed up. Please secure a copy of your upload log (ideally the log table from the database, or just a copy of mediawiki's Special:Log page showing the relevant timespan), as well as your image and oldimage tables. With this information, it's more likely that we can tell you what's going wrong. -- Duesentrieb ⇌ 11:11, 21 February 2007 (UTC)
I realize that this is probably not a mediawiki issue, however it relates to properly setting up images, which is a problem that many users have encountered. (see http://www.mediawiki.org/wiki/Talk:Configuring_file_uploads#End_user) I think that this all may have been caused by the chmod settings. The image file directory was set to 777 as was stated on the following page http://www.mediawiki.org/wiki/Manual:FAQ#How_do_I_enable_uploading.3F I have changed it to 755, but I have not yet enabled uploads. Is this the right setting? Some pages mention 755, and others 744. http://www.mediawiki.org/wiki/Talk:Configuring_file_uploads#End_user http://www.mediawiki.org/wiki/Configuring_file_uploads Could someone also explain apache permissions and how they are set? Also how I can make sure that the images are not sent through the php interpreter. Virtualtoychest 15:19, 21 February 2007 (UTC)
Copy into MS-Word?
I'm running MediaWiki 1.80, and I seem to crash Microsoft Word when I copy text from a wiki page into MS Word. Has anyone else seen this? Do you know what could cause it? It happens to all users of this wiki. (Note, if you leave a response, can you let me know via Wikipedia? w:User talk:timneu22 Thank you
- This wouldn't be a bug with Wikipedia, it would be a bug with Microsoft Word. Does copypasted text from Wikipedia have a similar effect? — Edward Z. Yang (Talk) 15:40, 19 February 2007 (UTC)
- No it does not. w:User talk:timneu22
Transwiki
How do you get this to work?? I tried doing this:
# When you make changes to this configuration file, this will make # sure that cached pages are cleared. $configdate = gmdate( 'YmdHis', @filemtime( __FILE__ ) ); $wgCacheEpoch = max( $wgCacheEpoch, $configdate ); /** * List of interwiki prefixes for wikis we'll accept as sources for * Special:Import (for sysops). Since complete page history can be imported, * these should be 'trusted'. * * If a user has the 'import' permission but not the 'importupload' permission, * they will only be able to run imports through this transwiki interface. */ $wgImportSources = array(wiktionary);
Tried importing the page wikt:obesity from Wiktionary, but it didn't work! Anyone know how to fix it?? --82.42.237.84 18:02, 16 February 2007 (UTC)
- Try
$wgImportSources = array('wiktionary');--.anaconda 15:28, 17 February 2007 (UTC)- Didn't work, anyone know what to do next?? --82.42.237.84 01:39, 18 February 2007 (UTC)
- Which is the error you get? Have you (manually) added the entry 'wiktionary' to the interwiki table? See meta:Help:Guide for system administrators for setting up interwiki linking. --.anaconda 22:57, 18 February 2007 (UTC)
- Didn't work, anyone know what to do next?? --82.42.237.84 01:39, 18 February 2007 (UTC)
- The error I got was : 'Could not open import file'. And yes, I did add the prefix 'wiktionary' to the interwiki table.
Still not working. --82.42.237.84 01:12, 19 February 2007 (UTC)
- I caught on that error about 2 months ago, IIRC. PHP wasn't sending a valid User-Agent header (wasn't set). If you run MediaWiki on your own server, try adding something like
user_agent = "PHP"to your php.ini file, or add this to your LocalSettings.php:ini_set('user_agent', 'PHP');. This is just because Wikimedia's Squids require a valid User-Agent header, probably to stop bots. This solved my problems. --.anaconda 03:48, 19 February 2007 (UTC)
- Tried that, still can't import from Wiktionary (or even en.wikipedia) for some reason. What is wrong with this?? I'm running
MW 1.92, if that's of any help. --82.42.237.84 16:15, 19 February 2007 (UTC)
Disable languages
Is it possible to disable all or some languages all together? I need to create some special messages in my wiki and it would be nice to be able to avoid people selecting other languages than English. --194.19.86.146 14:08, 19 February 2007 (UTC)
- Not that I know of. Alternate languages are fairly harmless, though, especially if you're not going to be into the multilingual thing. — Edward Z. Yang (Talk) 15:39, 19 February 2007 (UTC)
Aboutus.org
which extension of mediawiki is used by aboutus.org?
- You will need to be more specific about this. What kind of functionality are you looking for? — Edward Z. Yang (Talk) 15:19, 19 February 2007 (UTC)
- See http://www.aboutus.org/Special:Version (they probably also have custom skin stuff that is not mentioned on that page) -- Duesentrieb ⇌ 00:13, 20 February 2007 (UTC)
Wiki SQL for content and tables
I would like to be able to retrieve data from a MySql database and use it for content. Often I have relational data, and it would be much easier to have this data in a database. From the database you could then dynamically create content in e.g. tables.
- See Extension:WikiDB and meta:WikiData for starters -- Duesentrieb ⇌ 00:12, 20 February 2007 (UTC)
No admin account created after install
Hi everyone. I just installed MediaWiki for the first time and afterwards when I attempted to login with the admin username and password that the configuration script asked for, I was told there was no such username. I reinstalled several times and the same result occurred. I then created a new user and went into my database tables and saw that this user had been assigned a user id of 2. So that could mean that the admin account was created, but not working for some reason? Is there something special I have to do to "kickstart" that admin account?
- By default, an account with the name WikiSysop is created. Are you trying to access the wiki through the name of your configuration script? If so, then I'd double-check that you're logging with WikiSysop and then retry.
- If you're not, though, and there's a WikiSysop account, but it is inaccessible, you can try resetting its password, as described on the FAQ, then try to log in again. That is almost killing a fly with a bazooka, so doing that as the last resort would be ideal. Tito xd (?!?) 22:54, 19 February 2007 (UTC)
- See Manual_talk:FAQ#Creating/Promoting_initial_user -- Duesentrieb ⇌ 00:15, 20 February 2007 (UTC)
- I am trying to access the Wiki through the name that I used in the configuration script and it says that no such user exists. I've also tried to access through the user name WikiSysop and it says the same thing. The user does not exist.
- The link I provided above tells you how to create it, too... -- Duesentrieb ⇌ 11:20, 20 February 2007 (UTC)
- It says that in order to access "Special:Userrights" I need to be in the "Bureaucrats" group. So should I add this to LocalSettings.php:
- $wgGroupPermissions['myusername']['bureaucrat'] = true;
- Instead of 'sysop'? Or is it a different group name?
- The link I provided above tells you how to create it, too... -- Duesentrieb ⇌ 11:20, 20 February 2007 (UTC)
- I am trying to access the Wiki through the name that I used in the configuration script and it says that no such user exists. I've also tried to access through the user name WikiSysop and it says the same thing. The user does not exist.
No, insert an appropriate row into the user_groups table; INSERT INTO user_groups ( ug_user, ug_group ) VALUES ( 1, "bureaucrat" ); would do it, assuming your user ID is 1 (exposed in Special:Preferences). 164.11.204.56 23:24, 21 February 2007 (UTC)
Changing User Admin Email
I've created a wiki for a College and I've used one of my own email addresses in the setup / testing phase but now it's working and I'd like to change the email address, because now new users receive an email from my private emailaddress when they sign up... Can this be done? How? Thanks! Bert
- Look for that private mail address in your LocalSettings.php and change it where you find it. -- Duesentrieb ⇌ 11:18, 20 February 2007 (UTC)
How can i make a wiki with different languages
How can i make a wiki-portal with different languages (on one system)?
Error after install on Windows
Just installed MediaWiki 1.8.2 on a windows server using IIS. After the install, i go through the "setup your wiki" page successfully. Once done there I browse to the site and get this error. Warning: Cannot modify header information - headers already sent by (output started at C:\Wiki\mediawiki-1.8.2\includes\DefaultSettings.php:1) in C:\Wiki\mediawiki-1.8.2\includes\WebResponse.php on line 9 Warning: Cannot modify header information - headers already sent by (output started at C:\Wiki\mediawiki-1.8.2\includes\DefaultSettings.php:1) in C:\Wiki\mediawiki-1.8.2\includes\WebResponse.php on line 9 Warning: Cannot modify header information - headers already sent by (output started at C:\Wiki\mediawiki-1.8.2\includes\DefaultSettings.php:1) in C:\Wiki\mediawiki-1.8.2\includes\WebResponse.php on line 9 Warning: Cannot modify header information - headers already sent by (output started at C:\Wiki\mediawiki-1.8.2\includes\DefaultSettings.php:1) in C:\Wiki\mediawiki-1.8.2\includes\WebResponse.php on line 9 Warning: Cannot modify header information - headers already sent by (output started at C:\Wiki\mediawiki-1.8.2\includes\DefaultSettings.php:1) in C:\Wiki\mediawiki-1.8.2\includes\WebResponse.php on line 9 Warning: Cannot modify header information - headers already sent by (output started at C:\Wiki\mediawiki-1.8.2\includes\DefaultSettings.php:1) in C:\Wiki\mediawiki-1.8.2\includes\WebResponse.php on line 9 Any help would be great. TDS
- You have something at the top of DefaultSettings.php file. Some windows editor add an UTF8 hidden caracter there. Oh, and you should put your settings in LocalSettings.php ! Hashar 21:46, 20 February 2007 (UTC)
Currently using 1.2, how should I upgrade?
Looking over the upgrade instructions, I assumed I need to make the changes for each version (upgrade a version at a time). Is this true? If it is, could I run database updates only? Then I could go from a clean set of the latest PHP pages. Along those lines, could I just export my wiki data and then re-import it on a clean install of the latest version?
- I would recommend to upgrade to 1.4.latest, make an XML dump, upgrade to 1.5.latest and mind all the charset conversion fuzz, then upgrade to 1.9.latest (the point being that the only really problematic transition is between 1.4 and 1.5). Oh yea, and upgrade more often. -- Duesentrieb ⇌ 23:08, 20 February 2007 (UTC)
Problem with Fileextensions?
I have uploaded many pictures in my wiki. So i have noticed, that files with extensions in capitals were not displayed. Has anyone the same problem, or even a solution?
- File names are case sensitive. When using the file, you have to enter the name exactly as on upload. -- Duesentrieb ⇌ 13:03, 21 February 2007 (UTC)
- Sorry for my short description. i mean if i click on Spezialseiten -> Dateiliste -> specific file. There if a png, or jpg has his extension in capital letter, won't get displayed. --Conni 15:55, 21 February 2007 (UTC)
How do I prevent un confirmed email user editing
I found this message in the user messages confirmedittext - You must confirm your e-mail address before editing pages. Please set and validate your e-mail address through your user preferences. How do i activate this functionality?
$wgEmailConfirmToEdit = true;in LocalSettings.php- or
$wgGroupPermissions['emailconfirmed']['edit'] = true;$wgGroupPermissions['user']['edit'] = false;
Is forum like facility is available in mediawiki software?
Is forum like facility is available in mediawiki software? Kindly reply.
- There have been some more or less successful attempts of integrating forum software - but htere's nothing definite. The most interresting i have seen so far is meta:LiquidThreads. I don't know if it's ready for use, though. -- Duesentrieb ⇌ 13:02, 21 February 2007 (UTC)
- ok
How can I make a page only viewable for special users or groups?
I use mediawiki 1.5 and the whole page is open for all to see and restricted for * to edit. But there is a need for some pages that they can't be seen by everybody. Perhaps one can use a $wgblacklistread but I think that doesnt work. Or even better would be to edit the Parser so you can set the rights while editing the page, like: code: <<black|user|read|User1,User2,...>> or <<black|group|read|Group1,Group2,...>> /code Does somebody has an idea?
I have an other question: My page can only be edited by logged in users. How can I set that not logged in users can edit for instance the "guestbook"? $wgwhitelistedit seems to be depricated and doesnt work.
Difference between MediaWiki 9.1 and 9.3
Sir/Madam, I have been working on Mediawiki 9.1. I am customizing the source code. But now as new version has arrived I need to upgrade it. Each and every time new version arrives I have to change the code of new version files. Instead can I not replace the new version files with my old changed files? Or the simple question to ask you is that is there any difference in files between newer and the older version (9.1)? Please reply ASAP. Regards, Vikas Agrawal
- You can use a file comparison tool to check the difference between two versions of a file. One of the ways is putting one version in a wiki page, then putting the other version, and using diff. If the new official version of file A1 is file A2, and you have changed A1 to A3, I suppose you have to merge the changes, creating a file A4. The more far-reaching your changes are the more tricky this becomes. Obviously suitability of A4 also depends on other files, and their changes.--Patrick 09:15, 22 February 2007 (UTC)
Patrick, Thank you for your reply. Regards, Vikas Agrawal
Problem with Link [\\internalPC\share]
I want to use some kind of special-links in my Media-Wiki, like [\\internalPC\share] for example. I have the Problem, that this kind of Links are shown as Text and not as Link. How can I change this. Http-Links are 100% funktional, [http:www.test.com http:www.test.com]for example Please help.I am useing version 1.9.1.
- You need to specify the "file:" prefix to indicate the "file protocol" and better use forward slashes (for example, [file://internalPC/share]), and you need to add "file" as a valid protocol: $wgUrlProtocols[] = 'file:'. Note however that it depends on the browser if "remote files" are allowed for the "file" protocol - as far as I know, only MSIE supports that. You would have to mount the desired shares locally, in the same place on all client machines, and then use the local path ([file:///Z:/bla]), to make this work with all browser. -- Duesentrieb ⇌ 16:21, 22 February 2007 (UTC)
I thank you so far Duesentrieb, big THX
How do i create a link to a non-html file server?
We want to link to CIFS shares (windows shares) on our file servers. The normal windows method would be \\servername\\share but i would be happy with file:///server/share/ as used in the HTML context when you browse CIFS shares from a web broweser. Any help would be appreciated - thanks Jcastleberry 21:32, 22 February 2007 (UTC)
- See the question right above yours. -- Duesentrieb ⇌ 23:27, 23 February 2007 (UTC)
Image sizing problem
I recently set up my own wiki using the mediawiki software. While trying to embed an image into a page, I typed the text: [[Image:The house.jpg|center|thumb|100px|Our house]] However, the image still appears on the screen as a full size embedded image on the right of the page. It still retains the mouse-over caption "Our house", but none of the resizing or formatting options work. Anything you could help me with would be appreciated
- It's possible that MediaWiki is unable to resize the image; check that
$wgUseImageResizeis switched on in LocalSettings.php. You need to install the GD libraries, or (better) ImageMagick, and instruct MediaWiki to use convert - see the comments for the thumbnailing options in LocalSettings.php and includes/DefaultSettings.php for more information. robchurch | talk 22:11, 23 February 2007 (UTC)
Problem with Dynamic Article List
already posted in wikimedia (Problem with refresh). I think there is a problem with the SQL-queries, the lists only refresh if i edit the site, where the dynamic article list is inserted. I have tested it on different sites in my wiki. The mystery is, it refresh only if this site gets edited. On other sites there is no refresh, only if it gets edited. I hope its clear, what i want to say and that someone can help me out :) --Conni 09:33, 23 February 2007 (UTC)
- No, this is standard behaviour with a parser hook extension due to MediaWiki's use of a cache to store the results of the wiki text transformation operation, which is too expensive to perform for all pages on all page views. The extension does have a means of asking MediaWiki's parser not to cache output, but this might not be in use in the extension in question, or it might be that the version of MediaWiki in use is too old; as I recall, the function call needed was broken in older versions of MediaWiki (less than 1.7.0). robchurch | talk 22:08, 23 February 2007 (UTC)
- Hello ... im using mediawiki 1.9.2 mysql 5.0.24 and apache 2.0.55 and i noticed, that the lists refresh in about one day. i have no site caching, or so. Can there be a problem between mysql and apache? --Conni 09:35, 26 February 2007 (UTC)
SVG rendering to PNG with ImageMagick
File:Problemimage.png Does anyone know how to render SVG to PNG using ImageMagick in LocalSettings.php?? The only reason I'm using ImageMagick is because the webhost of the person I'm setting the wiki up for wants ImageMagick, he doesn't really want to go too far from the defaults in MediaWiki. I've enabled SVG uploads, but nothing shows up, so I have to upload .svg.png files for now. Anyone got a solution to this?? Advice is appreciated! --Westholm 12:30, 23 February 2007 (UTC)
- Set up
$wgSVGConverterin LocalSettings.php - this option is well-commented in includes/DefaultSettings.php. robchurch | talk 22:02, 23 February 2007 (UTC)- I did that, but it's not displaying SVG's properly.... why?? --Westholm 11:55, 24 February 2007 (UTC)
no changing articles
can you tell me, how I can adjust the mediawiki server that no viewer of the article can change the article? Best Regards Peter
- Here is an article about userrights. i hope, it helps ;) --Conni 13:38, 23 February 2007 (UTC)
RSS options?
If I were to host my own wiki, using MediaWiki on my firm's server, is it possible to offer RSS feeds for individual wiki-pages? I do not want to send e-mail notices when updates to the content of a specific page is made, but would like to offer update notices to RRS subscribers interested in specific wiki-pages (wiki-topics). Trevor.
- MediaWiki provides RSS feeds for recent changes and page histories. robchurch | talk 22:01, 23 February 2007 (UTC)
- Try WikiArticleFeeds, it allows any page to be served as a RSS/Atom feed. Very handy for news pages.
Make a User's page his login Home at login
Does anyone know how to make it so when a particular user logs in he is directed and landed on his own user page instead of the Main page> This open up a lot of opportunities. Dan Mendell
- That could be done using the UserLoginComplete hook, a couple of lines of code in the LocalSettings.php:
$wgHooks['UserLoginComplete'][] = 'usrRedirect';
function usrRedirect($userid) {redirect('http://www.wiki.net/index.php/LinkToUserPage&id='.$userid);}- Or something similar along those lines. Noopectro 13:39, 19 March 2007 (UTC)
User email & IP Lookup
- Can I look-up the email address and IP address of a User?
- Just found Extension:CheckUser --84.9.191.165 19:00, 23 February 2007 (UTC)
User Log file entries?
I see that Syspo/Admin's actions are entered into a log file. Is there a similar log file for Users? --84.9.191.165 18:50, 23 February 2007 (UTC)
- All actions performed by anyone, including page moves, deletion, and protection, blocking users, file uploads and deletion, etc. are logged in Special:Log. robchurch | talk 21:54, 23 February 2007 (UTC)
Account creation activation
Can I require accounts to be activated by a Sysop? --84.9.191.165 18:36, 23 February 2007 (UTC)
- It's possible to create a custom group with edit permissions, and remove those permissions to regular users; a bureaucrat can then move users into, e.g. the editors group as needed. This doesn't, however, grant approval access to administrators. You could, however, adapt an extension such as MakeBot or GiveRollback to allow administrators to perform this operation. robchurch | talk 21:56, 23 February 2007 (UTC)
Account email requirement
Can I require new accounts to have an authenticated email address? --84.9.191.165 20:38, 23 February 2007 (UTC)
- You can require that accounts have a valid, authenticated email address set before editing; use
$wgEmailConfirmToEdit = true;in LocalSettings.php. robchurch | talk 21:59, 23 February 2007 (UTC)
Header message
Warning: Cannot modify header information - headers already sent by (output started at /home/base72/public_html/wiki/LocalSettings.php:1) in /home/base72/public_html/wiki/includes/OutputPage.php on li
- remove the blank line or BOM from the top of your LocalSettings.php -- Duesentrieb ⇌ 14:16, 19 March 2007 (UTC)
include .txt files into a wiki-page
i want to include the content of a *.txt file (e.g. a ftp statistic file) into a wiki article, but i have no clue how to do that. I found this configuration setting: $wgExternalStores it says: "External stores allow including content from non database sources following URL link", but i don't know how to use it. Can anybody please give me a hint how to get that thing working, or how else i can solve my problem? --80.69.122.107 12:52, 24 February 2007 (UTC)
- External stores are not what you want. It should be relatively simple to write a parser hook to do what you want. Look at Extension:HTMLets for starters. -- Duesentrieb ⇌ 13:33, 24 February 2007 (UTC)
Need to use PHP 4
I need the latest stable version of MediaWiki that works with PHP 4 ... where can I get that? Thanks in advance!
- See Installation#Notes. Try 1.6.10 from http://sourceforge.net/project/showfiles.php?group_id=34373&package_id=93103 --.anaconda 20:48, 24 February 2007 (UTC)
Sidebar not visible with cologne blue
I modified the page "mediawiki:sidebar" but unfortunately the modification is not visible when using the skin "cologneblue" - when i switch to "monobook" I will see my modified sidebar. I compared cologneblue.php and monobook.php but could not find out, what code to add to see the modified sidebar with cologneblue. Anyone have an idea? Link to my wiki is Freecoffee Wiki - thx in advance --77.128.51.163 12:32, 25 February 2007 (UTC)
- Its a bug - not a feature - reported at 2005年11月15日 but obvisouly not fixed yet - see [1]. I think the only solution is to edit the skin.php as described here [2] --85.178.182.187 14:47, 26 February 2007 (UTC)
- Don't think this is a bug, since I use this skin and can edit the sidebar fine. I suspect it is a cache issue, need to clear the cache for the page. --Dr DBW 02:37, 27 February 2007 (UTC)
- I dont think so, see the wikipedia with the cologne blue skin [3] and you'll miss the sidebar... anyway, how can you clear the page cache? --85.178.151.212 06:18, 27 February 2007 (UTC)
- Don't think this is a bug, since I use this skin and can edit the sidebar fine. I suspect it is a cache issue, need to clear the cache for the page. --Dr DBW 02:37, 27 February 2007 (UTC)
MediaWiki:Userrights-logcomment
I'm using the almost ancient version 1.6.8 of MediaWiki, Finnish localization/version. I'm a Steward there (sysops have no access to Special:Userrights, Bureaucrat group is not used, Stewards can access Special:Userrights). Whenever I, as a Steward, modify an user's groups, the log comment is taken from MediaWiki:Bureaucratlogentry when it seems that it should use the comment in MediaWiki:Userrights-logcomment. I know, I should upgrade to 1.9.3 but it's out of my hands as I don't own the domain and they run PHP 4.3 and not 5.1... --Sayuri 16:09, 25 February 2007 (UTC)
Content Encoding Error
I'm currently running MediaWiki Version 1.6, with PHP version 4.4.4 I am not able to upgrade PHP to V5 to use a newer version of Media Wiki. Whilst trying to access it all I get is a Content Encoding Error. "Content Encoding Error (content_encoding_error) Server response could not be decoded using encoding type returned by server. This is typically caused by a Web Site presenting a content encoding header of one type, and then encoding the data differently." I can access other wikis on the internet ok, just not my installation. Is there anything in the settings I can change to make my installation work?
Create New Wiki a/c
How to create new Wiki a/c
- Do you mean a new wiki user? Just click on the login/register link and follow the instructions --Dr DBW 02:32, 27 February 2007 (UTC)
hook: ArticleSave & ArticleSaveComplete
I am trying to catch an article when someone is saving it. I have tried : $wgHooks['ArticleSave'][] = 'mgt_ArticleSave'; function mgt_ArticleSave(&$article, &$user, &$text, &$summary, $minor, $watch, $sectionanchor, &$flags) {
// nothing in it
} but I get the following error (no, no one else is working on it ><) : Someone else has changed this page since you started editing it. The upper text area contains the page text as it currently exists. Your changes are shown in the lower text area. You will have to merge your changes into the existing text. Only the text in the upper text area will be saved when you press "Save page". alternate possibility for me is to work with ArticleSaveComplete hook. But is there a way to get the previous ID revision on an article when using ArticleSaveComplete hook? I have notice than: getOldIDFromRequest() return 0. getRevIdFetched() return the current id, after the article have been saved. thanks for your time.
problems running maintenance scripts.
I can't get any of the maintenance scripts to run. Or to be more exact, they appear to run, but do nothing. Any help on how to see what's going on? server:/Library/WebServer/docs/wiki/maintenance jkeenan$ time php -v runJobs.php PHP 4.4.4 (cli) (built: Nov 1 2006 18:12:33) Copyright (c) 1997-2006 The PHP Group Zend Engine v1.3.0, Copyright (c) 1998-2004 Zend Technologies real 0m0.059s user 0m0.034s sys 0m0.022s server:/Library/WebServer/docs/wiki/maintenance jkeenan$ joe Upload files other than image such as PDF or DOC or XLS. Is there a method to allow user to upload and then add a link on a page to the uploaded PDF document?
Fatal error "non-object" while upgrading 1.8.2 to 1.9.3
Upgrading from 1.8.2 to 1.9.3. Did so for another similar wiki on the same server, got through fine. This time it reaches the "Deleting old default messages..." step (which does take a very long time I have found out ~ 10 minutes) and comes up with a fatal error: "Call to a member function addGroup() on a non-object in maintenence/deleteDefaultMessages.php on line 19." Line in question is "$wgUser->addGroup( 'bot' );" Any suggestions on what to do? Tried the #mediawiki IRC and can't find mention of something similar anywhere. --Dr DBW 02:30, 27 February 2007 (UTC)
- Found the solution, thanks to TimStarling. The problem is an extension that is installed, called Auth_phpBB. Removing that from LocalSettings.php while running the update.php script removed the error and the updating script finished fine --Dr DBW 23:10, 27 February 2007 (UTC)
Problem with Link to Wikipedia
I have a problem with linking my Mediawiki to Wikipedia. I am using mediawiki-1.9.1 normally i make a link to Wikipedia with following code:
wikipedia:test
but it doesnt work, it is shown as wikipedia:test on the otherside:
wikispecies:test
is working, so I just have to change something with my config. But what and where? plz help. Ok, I found a solution myself. http://meta.wikimedia.org/wiki/Help:Guide_for_system_administrators_for_setting_up_interwiki_linking
ZIP file?
Hi Is it possible to get the mediawiki in a .ZIP file?
- Whats wrong with the Archive u can download from the sourceForge Servers? It is unpackable with the most common Unzip tools --85.178.133.252 17:42, 27 February 2007 (UTC)
- 7zip is a useful open-source alternative to winzip and winrar, and can open tarballed and gzipped files. I used that one for my mediawiki installation although winrar is my primary archive manager. Kareeser|Talk! 15:46, 7 March 2007 (UTC)
Okay I wanna try it :-)
In-page translations to improve content cohesion between languages
One thing that really bug me about wikipedia is that translations of topics differ so wildly in their content. You will often see different translations offering different facts, media, outside links etc. I think you might agree when I say that this is because MediaWiki doesn't seem to offer any tools to easily link translations together. Suppose for example that MediaWiki would allow per-section translations. That way, translators would be strongly encouraged to provide the same content in the language they're translating to. Also, readers could provide a list of languages that they understand and if a translation of a paragraph is missing, MediaWiki could provide the content for that paragraph in another language they understand. Per-section-and-language version numbers could be used to alert translators to the fact that a translation might need updating. This is just an example of what could be done, I'm just trying to raise awareness of this issue and I'm wondering if any work is being done towards fixing it.
- Have a look at Extension:Multilang -- Duesentrieb ⇌ 20:32, 27 February 2007 (UTC)
500 Internal server error
I'm running Apache 2.2.4 with PHP 5.2.1, PHP is loaded as a fastcgi. Mediawiki picks that just fine and all the install checks go through properly, but once the installation is complete and I try to open wiki's main page I get a "500 Internal Server Error" and nothing more. Have anyone experienced a similar issue and what can I do to resolve this problem?
- What does the server error log say? --Dr DBW 22:33, 27 February 2007 (UTC)
acces log has this in it:
10.65.68.28 - - [28/Feb/2007:10:18:17 +0200] "GET / HTTP/1.1" 200 186 10.65.68.28 - - [28/Feb/2007:10:18:17 +0200] "GET /icwiki/index.php HTTP/1.1" 301 26 10.65.68.28 - - [28/Feb/2007:10:18:19 +0200] "GET /icwiki/index.php?title=Main_Page HTTP/1.1" 500 536 10.65.68.28 - - [28/Feb/2007:10:18:27 +0200] "GET /favicon.ico HTTP/1.1" 404 209
error log has only this one line:
[Wed Feb 28 10:18:27 2007] [error] [client 10.65.68.28] File does not exist: D:/apps/ApachePub/wwwroot/favicon.ico
- v1.9.3 fixed the problem. Though I still can't figure out what the problem was. --196.26.83.136 08:03, 2 March 2007 (UTC)
Want to include TinyMCE - where to do?
as mentioned above I want to include TinyMCE in my mediawiki. For this reason i have do include the javascript on every .php i need: <html> <head> <title>TinyMCE Test</title> <script language="javascript" type="text/javascript" src="../jscripts/tiny_mce/tiny_mce.js"></script> <script language="javascript" type="text/javascript"> tinyMCE.init({ mode : "textareas" }); </script> </head> Now is my question in which file i have to put this code? I searched the whole wiki directory but found nothing. Pleas tell me the correct page. Thanks in advance Patrick
- put it into the skin class - for the Monobook-Skin (the default), this would be skins/Monobook.php -- Duesentrieb ⇌ 20:31, 27 February 2007 (UTC)
Under title...
Hi, how add one line of text under title? example en wiki:
From Wikipedia, the free encyclopedia
Thanks for help. --88.222.212.231 12:56, 1 March 2007 (UTC)
- Edit the page MediaWiki:tagline on your wiki. Note that the "tagline" is hidden per default, and only shows up in the print version, and when you copy&paste. To make it visible, you would need to put #siteSub { display:block; } into your MediaWiki:common.css page. -- Duesentrieb ⇌ 14:35, 1 March 2007 (UTC)
Y2K7?
Lot's of products affected. Anything under the hood here?--74.231.144.126 16:23, 1 March 2007 (UTC)
- Internally, MediaWiki uses UTC for everything. For display in listings, etc, timezone offset is a user preference, and is not automatically changed when DST starts/ends. For rendered dates, e.g. in signatures, i'm not quite sure - if a symbolic time zone is set for this, PHP's time zone handling is used, I suppose. On a quick glance I coudn't find anything about PHP and Y2K7 - not sure if this is good or bad. -- Duesentrieb ⇌ 20:14, 1 March 2007 (UTC)
German Umlaut in Upload File
Hello I installed MediaWiki 1.9.1 on my System (German). It is working fine, but if I upload files with ö,ä, ü, or ß than they are stored with wrong characters like Ã1⁄4. How can I change this?
- Uploaded files are served by apache directly, not via mediawiki. Make sure apache declares the correct charset for the type of file you want (the above looks like you uploaded UTF-8, but it's served as Latin-1/ISO-8851-1). See the apache docs. Or just change the display charset in your browser when looking at the file. -- Duesentrieb ⇌ 11:28, 2 March 2007 (UTC)
I tried changing the charset, but the filename is still the same. Can you suggest me a help page?
- Oh, you are talking about the file name, not file contents. Well, the files are stored with utf-8 filenames. On windows, this may lead to problems if the filesystem is configured to use Latin-1 or cp1252 for file name (which is the default). On a linux system, this should work. Also, this might be a browser issue - i recall some older browsers no converting file names correctly for files from FAT partitions - or something like that. -- Duesentrieb ⇌ 17:23, 2 March 2007 (UTC)
Upgrading from backup (1.4 -> 1.9)
I have a mysql database & uploaded files backup from mediaWiki 1.4 (it ran with php 4). Now I'm going to transfer everything to my new server with php 5. Which way is better: download and install 1.4 again, load backup and then try to upgrade to 1.9? Or download and install 1.9 and then somehow try to load backup directly into this version? Or probably there is a third way? Thanks in advance for your help --85.206.209.17 11:49, 2 March 2007 (UTC)
- Two options, basically:
- restore the backup and then install 1.9. This should take care of any shema change automatically - however, note that 1.4 used Latin-1 encoding per default, while 1.5 and later use UTF-8 only. Charset conversion is not applied automatically. See [4], and the next point. Also beware that mysql's dump- and import-functions sometimes try to be "smart" about charsets, and convert on thy fly - which tends to break mediawiki dumps badly (especially with mysql 4.1, it seems).
- restore the backup, install 1.4, then use maintenance/dumpBackup.php to make an XML dump. The XML dump is "future proof" - it should not have any encoding issues, and it's independant of the database layout. This is the preferred format for migration and long term storage. You can then proceede like in option 1, hoping for the best, or you can set up a virgin 1.9 wiki and import everything from the XML dump. Note however that the XML dump only contains pages (with all revisions) - images need to be imported separately (use maintenance/rebuildImages.php --missing), and you would also have to transfer the user database (that would be a reason to use the 1.9 installer to convert the db shema). Logs would be lost too.
- See also Manual:Upgrading. HTH -- Duesentrieb ⇌ 14:29, 2 March 2007 (UTC)
- Thank you, Duesentrieb. I installed 1.4 again, then I upgraded to 1.9 as per manual. Since I have no access to command line, I chose to rerun installer. Now looks like it works more or less, at least I can browse articles, but I still have some problems.
- Looks like some links are messed up, especially image ones. I suppose it was supposed to happen and refreshScript.php could fix it. But it must be runned from command line and I cannot do it. Are there any alternatives?
- As you said, encodings got messed up. Actually I don't even remember which one I used before but it might be either UTF-8 or Windows-1275 (both supports lithuanian language symbols). Now I chose UTF-8 when upgrading so I believe it was win-1257 before. This wouldn't be a big issue, we could rewrite messed symbols manualy, but there is another error and I guess it has something to do with encodings:
- When I try to edit article I get this: "Parser::replaceLinkHolders". MySQL error "1267: Illegal mix of collations (latin1_bin,IMPLICIT) and (utf8_general_ci,COERCIBLE) for operation '=' (localhost)". - Is there any way to fix it?
--Nomad
- if you don't want/need an XML dump, you don't need to install 1.4, there's no point.
- if you can't solve the charset issue otherwise, use an XML dump
- to solve the charset issue, try to run your database dumps through iconv before importing them (win-1257 -> utf-8) - this assumes the dump was not mangled on creation - which happens frequently! MediaWiki always declares latin-1, no matter what it actually uses (to work around some mysql bug). This may cause confusion when the dump is created. The charset used by your terminal may also play into this - both when creating the dump, and when applying it.
- to resolve the "mix of collations" problem, don't select "experimental utf-8" when installing 1.9, use "compatible" mode instead.
- if you don't have command line access, don't expect to be able to do more than basic operation with mediawiki. Command line access is required for many things. You can try to use phpshell to simulate a command line via the web browser, but that's flaky.
-- Duesentrieb ⇌ 17:17, 2 March 2007 (UTC) -- Duesentrieb ⇌ 17:17, 2 March 2007 (UTC)
- Thanks once more Duesentrieb, I managed to get just about everything work using phpshell and following your other advices & reading manual. Just one more thing - I already used rebuildImages.php and they are restored, but in cases where they are in thumbs ([[Image:image.jpg|thumb...]]) I get errors. They reads that permissions are denied for mkdir(), and that image in question is not found.[5]. I get almost the same errors when I try to upload a new version of an existing image. Completely new image uploading works very well (but I cannot use it with |thumb| too). I have chmoded /images/ dir and /thumbs/ dir inside /images/. 777 but I left those lots of inner dirs intact. Should I chmod 777 them too? Or the problem is somewhere else? Thanks again ;) --88.118.185.83 19:51, 2 March 2007 (UTC)
- All those directories in there have to be writable for the php process (i.e. you user id, or apaches, depending on setup). Setting them to 777 will do that - although that may be overly broad anyone on the server can then do anything with the files in there. Perhaps talk to your hosting people about what file permissions/ownership/groups would be appropriate.
- Also note that in case php-safe-mode is in effect, the user running php must be the owner of the directories. -- Duesentrieb ⇌ 23:42, 2 March 2007 (UTC)
- Thanks a lot, I changed permissions for those lots of dirs, now everything's allright. --88.118.185.83 04:24, 3 March 2007 (UTC)
Question
How...exactly..do you get your own to work? I dont understand.
- question to me? Private wikipedia that can use commons images, 200 languages interwiki, etc...is so strong DB. Why Private? In korean copyright law, For Private use...(publish -> X) I can use any images, any articles, thesis, book, etc...
- Private use...any law prohibit my uasage. I can make So strong DB and use. -- WonYong (Talk / Contrib) 03:01, 3 March 2007 (UTC)
- I beg to differ. I run my wiki on an AMD K6+, equivalent to a PII at best :P
- To answer your question: You need to allow the .SVG extension in your localsettings file.
- Also, install a PHP Cache Optimizer. I use APC (installation guide), it works VERY well. Instant gain. Kareeser|Talk! 15:41, 7 March 2007 (UTC)
Customizing Category text and link inserted by category tag
Background: When you use [[Category:foo]] in a page, it automatically displays the text "Category:foo" and makes "Category" a link to "Special:Categories". Problem 1: On my installation, I want to change the text "Category:" to something else. Problem 2: Would also like to have that text link to something other than Special:Categories. Have spent an hour and a half looking through system messages & phps and wikipedia & wikimedia help & can find nothing. Help meeeeeeeee pleeeeeease! Elf 15:51, 3 March 2007 (UTC)
- The text can be changed by editing MediaWiki:Categories, the link by editing MediaWiki:Pagecategorieslink - on your wiki, of course. If those (pseudo-)pages do not exist, simply create them with the content you want. You may have to flush the parser cache to see the effect, no sure - for testing, use the edit preview mode (that's never cached), to purge all pages, simply touch LocalSettings.php. -- Duesentrieb ⇌ 16:02, 3 March 2007 (UTC)
Thanks so much! I don't know why I couldn't find those before on Special:Allmessages -- but now that I see them, I also see that what I probably need is MediaWiki:pagecategories rather than MediaWiki:Categories. 75.30.114.204 17:25, 3 March 2007 (UTC)
Default Value for new users
Hello I want I set up a default value that users get on emails on changes in observed sides. How can I do this?
$wgDefaultUserOptions ['enotifwatchlistpages'] = 1;
- This only applies for newly created users, of course. Existing users already have a setting for this option, so the default does not apply. To force everyone to have this enabled, you can use maintenance/userOptions.php (on the command line):
php userOptions.php enotifwatchlistpages 0 1
-- Duesentrieb ⇌ 11:07, 5 March 2007 (UTC)
Makesysop help
For some reason, when I used Makesysop, it didn't work! What do I need to do to make it work like the Wikimedia wikis?? I tried to set rights for "User:Westholm@northmidlandswiki" but it said no such user existed, even though I have an installation with this user. What should I do to get it working and to make it work like the Wikimedia meta wiki?? --Westholm 00:12, 6 March 2007 (UTC)
- Unless "@northmidlandswiki" is part of the username, you don't need that bit there... Kareeser|Talk! 15:38, 7 March 2007 (UTC)
- On m:Special:Log/rights it shows the username as Username@nameofwikidatabase, so that's probably why Westholm sees it that way... --82.42.237.84 14:38, 8 March 2007 (UTC)
Edit Link lead to editing the template and not the document
I have the following template;
{{{title}}}
{{{description}}} The template works fin and the entry appears corectly in the TOC However next to the heading there is an edit link. Clicking this link takes the user to the template edit and not the page edit. Can this be corrected easily? Preferably; can the edit link be supressed for that heading i.e. in the template so that it remain functional elsewhere.
- This is not a bug, it's a feature - kind of. The problem is: depending on context, you may want to go to the template when clicking edit (i.e. you want to edit the text you see there, namely, the template). In other cases, you would want to edit the templates parameters, or add some text before or after the template - which isn't possible when the edit link takes you to the template directly.
- I don't know of a way to control this behavior, but I agree that it would be nice to be able to control it somehow - at least globally, ideally per-page and/or per template. Perhaps file a feature request on Bugzilla - actually, there is probably already a ticket discussion this issue. -- Duesentrieb ⇌ 11:03, 6 March 2007 (UTC)
Suppot for Microsoft SQL server
OK daft question for which I apologise. But am I correct to assume that MediaWiki only works with MySQL and not MS SQL?
Composite page
I'm attempting to create a printable version of a group of wiki pages. My attempt so far has been to create one "host" page that links all my content using the composite page syntax {{:PageOfContent}}. This solution is not perfect for me. For one, embeded pages ignor the headers in the host page, as they should I could be at ==== Foo ==== and a content page will go back to == Bla ==. Second, page titles do not display when embeded. Neither of this issues are a big deal but together they make for a hell of a document to read. From this set up, I have three questions: 1. can I make a template that will take as an input a number to be translated into a header level: {{head|2|Subject}} => == Subject ==
- Yes, see m:Template:head.
- head does not work even on wikimedia.org. {{head|4|foo}} creates <h3>=foo=</h3>, however I love the idea. I did create all the x# templets too by the way.
- m:Template talk:Head shows that it works, but you have to put the template call in a new paragraph (I reverted Fabartus' change of m:Template:X4 into something unrelated.)--Patrick 00:45, 8 March 2007 (UTC)
- Still no luck, looks as if something is in m:Template talk:Head that makes it work for you. I've writen up an example of what I'm seeing here m:Template talk:Head/broken.--Ceaser 11:23, 8 March 2007 (UTC)
- m:Template talk:Head shows that it works, but you have to put the template call in a new paragraph (I reverted Fabartus' change of m:Template:X4 into something unrelated.)--Patrick 00:45, 8 March 2007 (UTC)
- head does not work even on wikimedia.org. {{head|4|foo}} creates <h3>=foo=</h3>, however I love the idea. I did create all the x# templets too by the way.
- Yes, see m:Template:head.
2. can a page take a variable and can that variable be pass to the templat in the question one?
- Yes, the page can have a parameter, a call {{head|2|abc}} can be replaced by {{head|{{{1}}}|abc}}
- I see, but how do I pass the parameter from one page to another
- Page P containing {{head|{{{1}}}|abc}} can be called with e.g. {{:P|3}}, as usual.--Patrick 00:51, 8 March 2007 (UTC)
- I see, it all makes since now.--Ceaser 11:23, 8 March 2007 (UTC)
- Page P containing {{head|{{{1}}}|abc}} can be called with e.g. {{:P|3}}, as usual.--Patrick 00:51, 8 March 2007 (UTC)
- I see, but how do I pass the parameter from one page to another
- Yes, the page can have a parameter, a call {{head|2|abc}} can be replaced by {{head|{{{1}}}|abc}}
3. can content be displayed only when page is embeded (I don't really need this but I could hack things out with it).
- With noinclude, see m:Template#Noinclude, includeonly, and_onlyinclude.--Patrick 01:17, 7 March 2007 (UTC)
- Love it, thanks.--Ceaser 19:51, 7 March 2007 (UTC)
- With noinclude, see m:Template#Noinclude, includeonly, and_onlyinclude.--Patrick 01:17, 7 March 2007 (UTC)
Thanks in advance. --Ceaser 20:08, 6 March 2007 (UTC)
Migrating MediaWiki
Is there any way by which I can migrate my mediawiki from windows machine to linux. Thanks. — Preceding unsigned comment added by Chida (talk • contribs)
- Hi, Chida. I do believe the database itself (which contains the "meat" of your wiki, so to say) is platform-independent. Just save it as an SQL file or XML file, and copy it over. Don't forget to make multiple backups! Kareeser|Talk! 15:35, 7 March 2007 (UTC)
- User:Flominator/Backup MW could be helpful. --Flominator 11:12, 12 March 2007 (UTC)
width-limitation of text
is it possible to reduce the writeable place of my MediaWiki (width) to 70%.
So it is better to read a long text. My users are loosing their line to often, cause of their high resolution.
This high resolution leads to very long text lines.
Any Ideas?
- Could be done in the monobook.css, I assume. --Flominator 11:11, 12 March 2007 (UTC)
Changing License type
During the install process I was allowed to choose a License type. Now I wish to switch, how do I do that without having to reinstall my entire Wikisoftware?
- Use the following settings in LocalSettings.php:
$wgRightsPage = ""; # Set to the title of a wiki page that describes your license/copyright $wgRightsUrl = ""; $wgRightsText = ""; $wgRightsIcon = "";
Enable external image link
I use my mediawiki. I suggest a new feature. External image link!!
<IMG src="http://acb.com/image.jpg">
I want to use "html code image link".
$wgExternalImageLink = false; (default) $wgExternalImageLink = true; (I want this!!)
-- WonYong (Talk / Contrib) 14:18, 7 March 2007 (UTC)
Configuring MediaWiki to use SMTP Relay?
Hi all, trying to enable email from behind firewall, which won't work by default. I have an SMTP relay option, but there are no options in the localsettings.php file to enable it... any help? Kareeser|Talk! 15:33, 7 March 2007 (UTC)
- See $wgSMTP. -- Duesentrieb ⇌ 01:11, 8 March 2007 (UTC)
- Hm, I thought I needed pear to be installed to get that... I tried it anyway (without pear), and it doesn't seem to work...
- Warning: require_once(Mail.php) [function.require-once]: failed to open stream: No such file or directory in C:\WAMP\www\wiki\includes\UserMailer.php on line 87
- Hm... Kareeser|Talk! 06:08, 8 March 2007 (UTC)
- You need to download PEAR (pear.php.net), then extract it into your includes directory. If done correctly, you will have Mail.php in the includes directory, and a new Mail subdirectory. Once done, you shouldn't get anymore script errors. ~Swampert
<php> </php>
Creating a Javascript extension?
- I want to create an extension which uses Javascript to run a picture image swapper/slideshow. Has anyone created a basic Javascript extension?
- Or is there a better way to place a bit of Javascript in the middle of my edited content? --84.9.191.165 10:27, 9 March 2007 (UTC)
- What about creating a template with a javascript link and defining the function for it at MediaWiki:Monobook.js or MediaWiki:Common.js? Regards, --Flominator 11:09, 12 March 2007 (UTC)
- If your extension needs extra JavaScript, you have to register that script with the $wgOut object:
global $wgOut, $wgJsMimeType, $wgXXXExtensionPath;
$wgOut->addScript(
"<script type=\"{$wgJsMimeType}\" src=\"{$wgXXXExtensionPath}/XXXExtension.js\">" .
"</script>\n"
);
- Instead of referencing a JS file, you can directly put you JS code there, of course.
- However, note that doing this in the parser hook function will not work, because that function is not called when using content from the parser cache. Instead, it would have to be done always (perhaps in the extension-function that registers your parser hook) - or you can do it only for pages which need it - that's a bit more complicated though. You would have to set a marker in the parser-output object, and check in a OutputPageParserOutput hook if that marker is set; if yes, you have to inject the JavaScript. Look at Extension:CategoryTree, function efCategoryTreeParserHook and efCategoryTreeParserOutput, and also CategoryTree::setHeaders for the actual scripßt-injecting code. -- Duesentrieb ⇌ 11:27, 12 March 2007 (UTC)
$wgLocalDatabases
$wgLocalDatabases - what does this do?? --82.42.237.84 12:03, 9 March 2007 (UTC)
- DefaultSettings.php sais: Other wikis on this site, can be administered from a single developer account. This appears to be used by some maintenance scripts that are able to process more than one wiki. A quick grep turns up the following:
maintenance/clear_interwiki_cache.php:foreach ( $wgLocalDatabases as $db ) {
maintenance/clear_stats.php:foreach ( $wgLocalDatabases as $db ) {
maintenance/nextJobDB.php: foreach ( $wgLocalDatabases as $db ) {
maintenance/cleanupSpam.php: print "Finding spam on " . count($wgLocalDatabases) . " wikis\n";
maintenance/cleanupSpam.php: foreach ( $wgLocalDatabases as $db ) {
Force Registration for editing
Hi All, How can I force my users to register to my MediaWiki and just allow editing Articles for registered users?
- I thank you very much. It's exactly what I am was looking for.
XML Parsing Error on Special:Recentchanges&feed=rss
After upgrading to MediaWiki 1.9.1 the "recent changes" feed stopped working and I get this error for both rss and atom. XML Parsing Error: xml declaration not at start of external entity Location: http://local.babyblog.com/index.php?title=Special:Recentchanges&feed=rss Line Number 1, Column 2: <?xml version="1.0" encoding="utf-8"?> -^ XML Parsing Error: xml declaration not at start of external entity Location: http://local.babyblog.com/index.php?title=Special:Recentchanges&feed=atom Line Number 1, Column 2: <?xml version="1.0" encoding="utf-8"?> -^
- There is probably a blank line (or a BOM) at the start of the XML feed. This can happen if a stray blank line (or BOM) is introduced into a PHP file, especially at the very top (before the <?) or the very bottom (after the ?>). Check all files you might have edited, especially LocalSettings.php. Another problem could be files getting mangeled during upload, especially when using FTP without "binary mode" enabled. -- Duesentrieb ⇌ 11:15, 12 March 2007 (UTC)
Can i hide subject?
How can i hide page subject in one page? I mean like works. Is there tag for this? por favor no votar papeles en el piso de los baños ,bajar la palanca
Restart browser, lose session info, "Remember my login" fails (not FAQ)
In our wiki, when a user checks the checkbox "Remember my login on this computer", the login is not remembered when the browser is closed and reopened and the user visits the login page. I can't figure out why. The PHP session directory (session.save_path) exists, is writable, and session files are being created within it:
session.save_path="C:\temp\php\Session"
However, if I watch the browser's cookies and the session directory, I see the browser switch to a new session instead of preserving the information from the original session. A case study is below. Setup is: MediaWiki 1.9.3 on Windows 2003 server; Apache 2.2.4; PHP 5.2.1; mySQL 5. Case study: 1. I visit our MediaWiki site and log in, taking care to check the checkbox, "Remember my login on this computer". Note: Our wiki requires logins to edit a page:
# LocalSettings.php: $wgGroupPermissions['*']['edit'] = false;
2. Confirm that a PHP session file was created, its name is stored in a browser cookie (dbname_tablePrefix__session), and it contains this information:
kw_bread_crumbs: TechWiki (1.9.3.vp.2.e)|a:2:{i:0;s:17:"Special:Userlogin";i:1;s:16:"Name of page";}wsUserID|i:16;wsUserName|s:4:"Danb";wsToken|s:32:"f12a2d7154f0ea29190a5c0fb91a6e1a";
3. Close the browser. Confirm the session file still exists as above. 4. Launch the browser and visit the wiki's home page. The correct username is displayed at the top of the page, as if the user were still logged in. (I am probably seeing a cached page here.) 5. Now visit ANY OTHER page on the wiki. The username at the top of the page disappears, the IP address is shown instead, and a new session file gets associated with the browser (as verified in the session cookie above). The file contains no username information:
kw_bread_crumbs: TechWiki (1.9.3.vp.2.e)|a:1:{i:0;s:36:"Name of page";}
Now, if I repeat this experiment but use en.wikipedia.org instead of my wiki, the session information is remembered even after I close and reopen the browser. This problem exists in both IE 7 and Firefox 2.0. The problem also existed before I started using the "kw_bread_crumbs" extension that's showing up in our session data, so that extension is not the cause. Any help appreciated. Maiden taiwan 02:33, 12 March 2007 (UTC)
- I tried moving the session folder inside the PHP installation folder, as suggested here, but that did not change the problem. Frankly, I would have been surprised if it had helped. Maiden taiwan 02:39, 12 March 2007 (UTC)
- This won't help you, but I am experiencing the same issue on my private version of my wiki: MW 1.9.3, PHP 5.2.0, MySQL 5.0.27, Apache 2 under MacOs X. On the online wiki this never happens. I mostly use Safari, but Firefox or Seamonkey Mac make no difference. It happens on edit, it is not browser related. I don't have the kw_bread_crumbs extension. I'd also be interested to find a solution. --Orso B. Schmid 18:43, 12 March 2007 (UTC)
- I found the problem!! This was happening because I had secured the login page with SSL (https). The session cookie was being created as a secure cookie, which the http site could not access. Here is my complete solution which secures the login page. Maiden taiwan 04:50, 16 March 2007 (UTC)
- This won't help you, but I am experiencing the same issue on my private version of my wiki: MW 1.9.3, PHP 5.2.0, MySQL 5.0.27, Apache 2 under MacOs X. On the online wiki this never happens. I mostly use Safari, but Firefox or Seamonkey Mac make no difference. It happens on edit, it is not browser related. I don't have the kw_bread_crumbs extension. I'd also be interested to find a solution. --Orso B. Schmid 18:43, 12 March 2007 (UTC)
Infoboxes
The infoboxes in my personal local wiki don't seem to be displaying properly... For one thing, the thin borders of the infobox don't show up, and the infobox itself doesn't want to sit to the side of the article text. I tested the very same markup in Wikipedia, and it showed up as it normally should have. I've already brought this question up at the IRC Mediawiki support channel, but I was ignored. Any help with this would be appreciated. Thanks, --Knyght27 202.134.243.187 03:15, 12 March 2007 (UTC)
- You need to copy the CSS-styles from Wikipedia, as well.
Preventing interwiki-links from being urlencoded
Hi there, I'm currently using the interwiki table to link to a php project called abc. It works well with links like [[abc:index.php]], but when I want to use parameters like [[abc:index.php?first=true]] the url gets encoded and wants to open the page named index.php?first=true instead of opening the page index.php with the parameter first=true. Any suggestions? --Flominator 11:05, 12 March 2007 (UTC)
- interwiki-links are for linking to wiki pages, not for composing URLs with parameters. Characters like = must be URL-Encoded, so they work when they occur in page names. This means that the 1ドル in the URL-pattern in your interwiki-table can only act as one url-parameter, or as one part of the path in the URL. You have to use external link syntax (i.e. a full URL) if you want to compose URL parameters. You can wrap that in a template, to make this easier... and use the plainlinks class to make the link "look internal". -- Duesentrieb ⇌ 11:11, 12 March 2007 (UTC)
Error codes
- Does MediaWiki return a 404 error code for pages that don't exist?
- Does MediaWiki return a 410 error code for pages that at one time existed but don't anymore?
- Does MediaWiki return a 301 error code for pages that have been moved?
If they do, where would I find the request handling code that returns these codes? If not, why doesn't it? ZJH 01:34, 13 March 2007 (UTC)
- No. MediaWiki returns code 200 OK in all those cases. See bugzilla:2585 for some discussion. -- Duesentrieb ⇌ 10:46, 13 March 2007 (UTC)
How to change Default URL wiki/Main_Page
Is it possible to change the default url of the wiki. The DEFAULT url looks like http://www.domain.com/wiki/Main_Page and I want to change it to say http://www.domain.com/wiki/Travel see FAQ#How_do_I_change_the_main_page? -- Duesentrieb ⇌ 10:42, 13 March 2007 (UTC)
== cant find php_mysql.dll ==
cant find php_mysql.dll
cant find php_mysql.dll while installing Mediawiki php_mysql.dll cant found . Following message displayed
............. "PHP Warning: PHP Startup: Unable to load dynamic library 'c:\php\ext\php_mysql.dll' - The specified module could not be found. in Unknown on line 0 "
How to set isHTML
Hello I try to wirte a ParserFunction that returns text that returns HTML. But I dont know how to set the flag isHTML. Can somebody help?
about authority
I want various user authority. how? my wiki site here[6]
Installation problem.
I uploaded all the files to the host, and browsed to the /config/ page, and I get this:
Warning: set_time_limit() [function.set-time-limit]: Cannot set time limit in safe mode in /home/vhosts/modpedia.6te.net/install-utils.inc on line 21 * PHP 5.1.6 installed * Found database drivers for: MySQL * Warning: PHP's register_globals option is enabled. Disable it if you can. MediaWiki will work, but your server is more exposed to PHP-based security vulnerabilities. * Fatal: magic_quotes_runtime is active! This option corrupts data input unpredictably; you cannot install or use MediaWiki unless this option is disabled.
Cannot install MediaWiki. I don't know how to disable magic_quotes_runtime, does it involve .htaccess files? Because my host doesn't allow them.
- magic_quotes_runtime is a PHP configuration option which corrupts data. If you're unable to disable it yourself, contact your hosting provider for support. 164.11.204.56 23:22, 18 March 2007 (UTC)
Hard to customise?
Hi I really don't understand why customizing mediawiki is so cumbersome. We have the year 2007 after all. Why are there no wisiwig options for at least basic functions such as background colour and text changes? I am thinking of using something else or giving up all together. It totally hinders the flow of productivity. I really wonder how many weeks and months it could take to change the wiki to match the overall theme of the website. regards antonio
- If the software is not suitable for your needs, then please do use something else. We didn't force you to select MediaWiki. 164.11.204.56 23:22, 18 March 2007 (UTC)
Hiding Page titles
I can't seem to find the command to hide the page title on a specific or main page. Thanks in advance.
- This is achieved on the English Wikipedia using CSS; see http://en.wikipedia.org/wiki/MediaWiki:Common.css. 164.11.204.56 23:19, 18 March 2007 (UTC)
March 18th, 2007 on MONDAY.... a day that doesn't exist
Hi, I have just made a Japanese site that Mediawiki 1.9.3 is installed on the server which takes GST as Mediawiki recommend 9 hour adjustment. Though today is "Sunday, March 18th", it shows "MONDAY, March 18th". It used to show "Sunday, March 18th" till at least 14:44 JST as the picture on the right shows. The reason for it is probably that dates and days are differently programmed.
- on dates, it is precisely indicated.
- on days, they made it just add a day at least for GST-based servers to JST clients.
- as a result, if GST area is on Saturday, it makes JST area on Sunday, which is correct. However once GST area becomes on Sunday, JST area becomes Monday even though the date is precise at JST, just like "Monday, March 18th", 2007.
I think the solution is making days be calculated from the adjusted time not calculated from GST time.--Orcano 10:54, 18 March 2007 (UTC) Thanks for noticing, but please report bugs on Bugzilla. There it has a greater change of being fixed soon. -- Duesentrieb ⇌ 01:35, 19 March 2007 (UTC)
- Thanks. I have noticed Bugzilla and I could not find relatives for that, though there might be some. I put bugzilla:9325 there(no responce so far :)). Thanks for tell me information anyway.--Orcano 01:50, 19 March 2007 (UTC)
Version No. of current MediaWiki
Hi! Before a few months I installed MediaWiki on my server. But I have forgotten what version it is. Where can I find informations about on the running system which version of MediaWiki I am using? Thanks alot!--Cwahl 10:38, 20 March 2007 (UTC)
- Check Special:Version on your wiki.----24.20.69.240 02:42, 22 March 2007 (UTC)
Is it possible to create the functionality of the Forum on my own Wiki?
I want to have a Forum link in my Wiki navigation - just like this site has - and I want it to work just like it does here? Is there some sort of plug-in or upgrade I should know about? Or have MediaWiki built this specially for their own site?
- Hm? It's just a link to an ordinary wiki page... nothing magic about it. -- Duesentrieb ⇌ 10:43, 24 March 2007 (UTC)