Project:Support desk/Flow/2010/12
This page is an archive. |
Please ask questions on the current support desk. |
This page used the LiquidThreads extension to give structured discussions. It has since been converted to wikitext, so the content and history here are only an approximation of what was actually displayed at the time these comments were made. |
Old questions
- These questions were posted before the switch to the new discussion system. Click here to view.
Current questions
Port number in URL is removed after first redirect
Hi,
I discovered small problem with mediawiki url with port number. When I access url like http://newwiki:88/ I got redirected to http://newwiki/.
Problem is in DefaultSettings.php where I have this server variables:
HTTP_HOST => newwiki:88, SERVER_NAME => newwiki, SERVER_PORT => 80,
Server is Apache 2.2 running on windows. 193.179.128.70 (talk) 07:35, 1 December 2010 (UTC)
- Your Apache is not listening to the right port. Frozen Wind 13:12, 5 December 2010 (UTC)
Tracking Code
I am new to mediawiki and so far I am really enjoying creating the pages and learning. This question maybe a simple one for some, but I have tried various ways of doing this and searched and all has failed. I own a Hosting and Gaming company and I use whmcs for my billing. With this, I also use an addon called Live Chat and it also tacks all visitors to my site. "Similar to Google tracking" it is a very simple script line <script language="JavaScript" type="text/JavaScript" src="http://www.recongaming.net/billing /modules/livehelp/include/javascript.php"></script> . I would like to use this to see where people are visiting from and how they found the page. I am currently using monobook skin and tried adding it to the monobook.php before the </body></html> tag and gives me errors. Usually this is something I would add to a header or footer to be able to see every page viewed. MediaWiki 1.16.0, PHP 5.2.9 (cgi), MySQL 5.0.91-community are my versions and you may view my wiki at http://reconhosting.com/wiki. 184.56.169.13 (talk) 15:56, 1 December 2010 (UTC)
- Anyone? Im sure someone has an answer to this. 184.56.169.13 18:32, 2 December 2010 (UTC)
Is it possible to get a Recent Changes list that's human readable?
Is it possible to get a Recent Changes list that's human readable?
By that I mean instead of the string of text such as...
"(diff | hist) . . FranklinLaw:CommercialPolicies; 04:15 . . (+38) . . Robbiel (Talk | contribs)"
you get
"The article XYZ was modified on DD/MM/YYYY at HH:MM, AM/PM.
I'm using MediaWiki to make an Intranet as Sharepoint just plain pissed people off. MorphingDragon (talk) 21:54, 1 December 2010 (UTC)
PdfExport malforms permanent links and external links to internal pages
Version information: mediawiki 1.14.0 php 5.2.5 mysql 5.0.26 pdfexport extension 2.0
Url is not available.
I created a working permanent link on a page. When I converted the page to pdf using the pdfexport extension, the link in the pdf document did not work because the url was malformed. For example: the link in the page = http://<server>/wiki/index.php?title=<title>&oldid=00001 the link in the pdf = http://<server>http://<server>/wiki/index.php?title=<title>&oldid=00001
I tried using {{fullurl:<title>|oldid=00001}}, but the same problem occurred.
I noticed that the extra http://<server> is added to the start of the link in the pdf document whenever there is a /wiki/ portion in the link. As a result, this problem also occurred when I tried to create an external link to an internal page.
Does anyone know how to fix this problem?
Thank you, M 198.103.153.7 (talk) 16:25, 2 December 2010 (UTC)
Image acoording to category of the page
Hi,
In my wiki, some pages work like indexes and the other always belong to one specific category among 4 possibilities. I want to, according to the category, insert a image at the corner of the page (location and position of the image is not a problem), but i dont know how to get the category of a loaded page.
Is there some extension or script that does it? Is there some other easier way to do it?
thanks 201.82.129.113 (talk) 19:26, 2 December 2010 (UTC)
- One way would be to do all that beforehand, rather than afterwards when the page is loaded. Use four different templates. Each template displays the image and categorises the page in a specific category. For example, Template:A would display image A.png and categorise the page in category A, as follows:
[[File:A.png]] <includeonly> [[Category:A]] </includeonly>
- You then place the template in all pages to be categorised in category A, rather than categorising them explicitly. Hamilton Abreu 23:53, 2 December 2010 (UTC)
error when update the images
hi, i have one media wiki site, and sudenly apear a mensage in the thum place, when i upload a image. with this error:
Erro ao criar miniatura (eeror create thumbail): sh: /usr/bin/convert: No such file or directory
this never hapens, and i dont change anything in the site.
how i solve this?
tks alot 85.247.56.224 (talk) 22:34, 2 December 2010 (UTC)
- I had this problem once too. For me it was a huge image, so that might be the problem. If i were you, i'd upload it again, but not as reupload on the same file. Just delete the current file and then upload it again. For me it was fixed. I don't know what caused it however. If this didn't help, i'm sorry, but i don't know anything more about this than what i said. Joeytje50 09:53, 3 December 2010 (UTC)
- If this persists, you will need to set
$wgUseImageMagick = false;
in LocalSettings.php. âEmufarmers(T|C) 09:28, 4 December 2010 (UTC)
MediaWiki Session idle time
in one mediaWiki project it happens to me that after a user has been idle for some period (like 20 minutes) he gets automatically logged out.
I have already tried to set in LocalSettings.php $wgCookieExpiration = 60*60*24*365; and $wgCookieExpiration = 0; but it does not seem to work, I still get logged out.
I have tested this in Chrome and Firefox.
Any ideas ? 85.31.0.85 (talk) 11:55, 3 December 2010 (UTC)
- Are you storing session in Memcached? -- Bryan (talk|commons) 12:24, 10 December 2010 (UTC)
- Bryan, I'm having the same problem; setting $wgCookieExpiration=2592000 as recommended, which is 30 days, didn't help either
- even it looks like there is an impact on sessions duration time, which is a bit longer now. I thought sessions are automatically stored in the cache; or how can you prevent sessions from being stored? Do you think this would solve the problem? -- Danke! Heinrich 11 Dec 2010 09:26, 11 December 2010 (UTC)
- Same question to you, are you using memcached? If not, check your PHP configuration, as sessions are handled by PHP. -- Bryan (talk|commons) 13:55, 12 December 2010 (UTC)
Execute a stored procedure
Hi
How I can execute a stored procedure from my Wiki?
I had: MediaWiki 1.15.1 PHP 5.2.12 (apache2handler) MySQL 5.1.44-community-log
My example did nothing:
function doSP($userid) { $dbr = wfGetDB( DB_SLAVE ); $res = $dbr->execute( "SP_WIKI_001_USER(" . $userid. ")" ); } 148.244.43.170 (talk) 16:30, 3 December 2010 (UTC)
Configuring MediaWiki with Exim vs Sendmail
Hello All,
My MediaWiki install is the following: MediaWiki: 1.16.0 PHP: 5.2.6-1+lenny9 (apache2handler) Database: 5.0.51a-24+lenny4 System: Debian Lenny 5.06 IP: Non-accessible intranet installation
I searched far and wide including the MWUsers forums but no answer...I think it should be straight forward though.
1. Debian Lenny 5.06 comes with Exim as the MTA not SendMail. There is no mention in the MW documentation if Exim is supported. Can anyone provide advice as to how to proceed? Remove Exim and install SendMail? 2. As an intranet installation, will I need to configure corresponding MX records to communicate with internal users? 3. Given the private nature of this install, would it be wise to keep things simple by using PEAR_MAIL, edit LocalSettings.php and relay through our existing Exchange environment?
Any additional advice is very appreciated.
Fidel 65.79.238.74 (talk) 18:20, 3 December 2010 (UTC)
MediWiki with Oracle
Hello everybody,
I have intalled mediawiki on my computer a few time ago. Using Easy PHP and the documentation, all works fine. Now my compagny says : "yeah this is good, we want to implement it but... we only have oracle server available"
So is it possible to put mediawiki using an oracle database (10g) on windows server 2008r2 or 2003 Balbitus (talk) 09:05, 6 December 2010 (UTC)
- Yes, Oracle is supported. However, if the problem is about sysadmins not wanting to install another database server, or bureacuracy prohibiting them from doing that, you can use MediaWiki with SQLite - which requires no extra installation and is better supported. Max Semenik 09:15, 6 December 2010 (UTC)
- Yeah it's the bureacuracy. In the end, they will give me a server with Windows Server 2008r2 and oracle 10g installed and then tell me : "ok now install mediawiki, customise it and full it". It's easy on my computer but I hope not make some mystakes on a running server (they are a lot of possibility that the server will have other databases on it for production)... Balbitus 12:27, 6 December 2010 (UTC)
- Dear friend,
- Here same i have installed mediawiki1.17 with oracle database.it working fine but whenever i add extension like sementic mediawiki,external data, give some error. how can i remove the error. and search option also not working.
- please give some suggestion..
- error: databaseOracle:doQuery" database returned error "942:ORA-00942 table or view does not exist... Csebits 10:24, 23 May 2011 (UTC)
- Hi,
- I've the same exact problem, have you known the resolution?
- Thank you. Raymond.herrera24 (talk) 05:43, 10 May 2012 (UTC)
- Both of you probably did not run update.php:
- cd "C:/<path to MediaWiki>/maintenance"
- "C:/<path to your PHP executable>/php.exe" update.php
- Ignore the DLL-related errors you may receive when doing this on Windows. Jasper Deng (talk) 05:47, 10 May 2012 (UTC)
- I've ran it a couple of times but still i get the ora error when uploading files and the search feature just displays exact title queries Raymond.herrera24 (talk) 05:58, 10 May 2012 (UTC)
- Sounds like you find a legitimate bug, since most people don't use Oracle for MediaWiki. A bug report can be filed at Bugzilla. Jasper Deng (talk) 06:00, 10 May 2012 (UTC)
- is there an immediate fix for this? Raymond.herrera24 (talk) 06:04, 10 May 2012 (UTC)
- Hi, maybe you have to change some query tables ... For example on oracle, table text does not exist, its replaced by pagecontent table.
- Ive installed mediawiki 1.19 with oracle 11gr2 instant client and sphinx search extension with unixodbc.
- All the queries in sphinx.conf are written for mysql db. It's not difficult to replace them with oracle db compliant queries 85.170.65.189 01:13, 30 September 2012 (UTC)
- is there an immediate fix for this? Raymond.herrera24 (talk) 06:04, 10 May 2012 (UTC)
- Sounds like you find a legitimate bug, since most people don't use Oracle for MediaWiki. A bug report can be filed at Bugzilla. Jasper Deng (talk) 06:00, 10 May 2012 (UTC)
- I've ran it a couple of times but still i get the ora error when uploading files and the search feature just displays exact title queries Raymond.herrera24 (talk) 05:58, 10 May 2012 (UTC)
- Hey guys, I had exactly the same problem, but found a first step to solve it:
- The search relys on Oracle Text. This is why the wiki db user needs to have CTXAPP rights (can also be seen in file maintenance/oracle/user.sql):
SQL> grant CTXAPP to ...;
- I ran into this problem, because I didn't use the wizard to create my user (which didn't work and I was too lazy to step into the reasons), but created it myself. After granting the above role, I had to manually rebuild the indexes - I hope this will work from scratch, if you add the role at the beginning.
- Unfortunately I'm still unsatisfied, because the search only finds terms in lower case. Meaning you have to enter the search term in lower case, the results are case insensitive then...
- Again to workaround this, I modified the line containg CONTAINS in includes/search/SearchOracle.php to surround $$searchon with LOWER:
return " CONTAINS($field, LOWER($searchon), 1) > 0 ";
- Now it seems to find any search string, but I'll have to keep an eye on index rebuilding... 212.90.146.116 14:33, 23 September 2014 (UTC)
- I also have problem with Oracle 11, and mediawiki 1.20
- When it tries to install the database and create the table some error appear
- ORA-02291: integrity, parent key problem.... (doesn't to copy the full message as the server is in hungarian)
- Anyone experimented this type of problem? THOMALEXANDRE (talk) 15:38, 2 January 2013 (UTC)
- ORA-02291 is a foreign key constraint violation [1]. This probably shouldn't happen on a fresh install but most likely on an upgrade from an old version. Is this the case? The name of the foreign key would be very useful to know where it happens.
- bugzilla:38916 lists all currently known issues with Oracle (see the Depends on field). If this bug is not there you should create a new one and mark it as blocker of bug 38916. Ciencia Al Poder (talk) 10:26, 3 January 2013 (UTC)
- Yes it happen with a brand new version (1.20),
- I think this is the foreign key id: WIKI_REVISION_FK2
- (coming from C:\Inetpub\wwwroot\Mediawiki\includes\db\DatabaseOracle.php on line 965) THOMALEXANDRE (talk) 08:25, 7 January 2013 (UTC)
- THOMALEXANDRE, this issue seems to be the one reported at bugzilla:38411, but that bug was closed as "The actual problem reported by this bug was obviously a problem with DB", since the user said "Now its working fine". You may want to comment on that bug about your problem, or reopening it again. Ciencia Al Poder (talk) 20:02, 7 January 2013 (UTC)
Fatal error: Maximum execution time of 30 seconds exceeded in Parser.php on line 2098
I'm getting this error on a large page. What can i do? 84.53.68.26 (talk) 10:47, 6 December 2010 (UTC)
- Add caching, get a better host, or make the page smaller. If you can't do any of those, you might be able to increase PHP's maximum execution time by adding
set_time_limit(60);
to LocalSettings.php. âEmufarmers(T|C) 21:37, 6 December 2010 (UTC)- Thanks it works Erwin van der Ploeg 14:54, 16 December 2010 (UTC)
problem with add another button in multiple template
Hi, I've got a problem with add another button in Semantic Forms 2.0.6 with multiple template. I can see this button but when I click on it there is nothing happening. As far I know there should be created new controls according my form definition. Maybe I should do some settings in configuration of MediaWiki but I don't know what it should be. Can you help me? Here is some extract from my code:
{{{for template|Template1|multiple|label=Templat1|add button text=Add template1}}} {| class="formtable" |- !align="right" valign=top | Field1*: | {{{field|Field1|input type=combobox|values of category=Field1|mandatory}}} |- !align="right" valign=top | Field2: | {{{field|Field2|input type=textarea}}} |} {{{end template}}}
Best regards
Mark 212.180.156.34 (talk) 10:49, 6 December 2010 (UTC)
- Hi,
- I have the same problem.
- When we create a class, the system allows us to input only 10 Property Name and Field Name. Try to click Add Another. Nothing happens.
- We installed MediaWiki on Ubuntu. If anyone can help, we appreciate it very much.
- Thank you. 147.174.47.111 17:19, 5 April 2011 (UTC)
Interwiki
[MEDIAWIKI]: I don't know how to link different languages of Communpedia. I have read the interwiki manual, but i don't know where to find LocalSettings.php. Could you help me? For example, I want [[es:]] to link to Comunpedia (in Spanish) Thank you. --XXPowerMexicoXx (talk) 14:44, 6 December 2010 (UTC)
- This is a Wikia-specific question, ask on WIkia Central for interwikis to be set up (you can't do this yourself). Max Semenik 16:36, 6 December 2010 (UTC)
- Thank you. Where can I contact Wikia Central? 189.144.250.165 17:53, 6 December 2010 (UTC)
Bad Admin username
I have a problem installing the Wiki software on my website. The installationscript has a problem with the admin username
Admin username: Bad username
Please include all of the lines below when reporting installation problems. ď§ PHP 5.2.4 installed ď§ Found database drivers for: MySQL PostgreSQL SQLite ď§ PHP server API is cgi; using ugly URLs (index.php?title=Page_Title) ď§ Have XML / Latin1-UTF-8 conversion support. ď§ Session save path (/var/lib/php/session) appears to be valid. ď§ PHP's memory_limit is 128M bytes. ď§ Couldn't find eAccelerator, APC or XCache; cannot use these for object caching. ď§ Found GNU diff3: /usr/bin/diff3. ď§ Found ImageMagick: /usr/bin/convert; image thumbnailing will be enabled if you enable uploads. ď§ Found GD graphics library built-in. ď§ Installation directory: /home/vhosts/antwerpenbanjul.com/httpdocs/wiki ď§ Script URI path: /wiki ď§ Installing MediaWiki with php file extensions ď§ Environment checked. You can install MediaWiki.
Warning: preg_replace() [function.preg-replace]: Compilation failed: this version of PCRE is not compiled with PCRE_UTF8 support at offset 0 in/home/vhosts/antwerpenbanjul.com/httpdocs/wiki/includes/Title.php on line 2285
Help anyone? Thanks in advance, Frits 88.159.220.9 (talk) 00:12, 7 December 2010 (UTC)
- The PCRE extension for PHP is configured or compiled without UTF8 support required for MediaWiki. -- Bryan (talk|commons) 12:18, 10 December 2010 (UTC)
- Hi Brian. PHP 5.2.x is the problem? What can i do to make it work.
- Title.php on line 2285
- $dbkey = preg_replace( '/[ _\xA0\x{1680}\x{180E}\x{2000}-\x{200A}\x{2028}\x{2029}\x{202F}\x{205F}\x{3000}]+/u', '_', $dbkey ); 88.159.220.9 15:59, 10 December 2010 (UTC)
- You need to install PCRE with UTF8 support. How, I have no idea, it depends on how you installed and compiled PHP. -- Bryan (talk|commons) 19:06, 10 December 2010 (UTC)
Become administrator of an own project built on MediaWiki software
Hi, I'm developing with my father a database with the WikiMedia software, but seems that nobody has the right of deleting pages, with the result that the project is polluted by wrong pages, tryings, old versions... these unuseful pages make the research inside the project really confuse... How can we become administrators of our own project? Thanks a lot!! Vitriam2 Vitriam2 (talk) 12:05, 7 December 2010 (UTC)
Problem with redirection
Hello All We are using the media wiki to our database. This one contains photos and articles. The problem we face is that since the update we have different redirection pages are displayed. We see the redirects in the picture. Before the update, and we clic on the image or title of the image and we access to content and not to this page with redirects (basically it adds a lot of clicking before accessing the information) Please help us. Crystalnix (talk) 15:33, 7 December 2010 (UTC)
Insert Image on mediawiki 1.16
Hi,
I use mediawiki 1.16 with wamp 2.0.
How can I add picture on mediawiki ...??
I need special extension..???
Thanks
AurĂŠlien :-) 194.98.196.2 (talk) 16:50, 7 December 2010 (UTC)
- See Manual:Configuring file uploads and Help:Images -- Bryan (talk|commons) 13:39, 13 December 2010 (UTC)
Setting/Limiting New User Access
Hi there,
I am new to mediawiki, but hadn't seen this question answered in forums yet. Basically, I've just installed mediawiki to my server and I am trying to adjust the settings for new users access on the wiki. Ideally, i would like anyone to be able to submit a request that the admins of the wiki would receive. Then the admins could determine how much access the new user will be granted.
Is there a way to edit settings to get to that point?
Thanks a lot and sorry if this has already been answered a hundred times. 67.185.62.9 (talk) 22:27, 7 December 2010 (UTC)
- Extension:ConfirmAccount seems to do what you want. -- Bryan (talk|commons) 12:16, 10 December 2010 (UTC)
Incorporating FindSpam to Wikicars
I want to incorporate the FindSpam extension to the wikisite I am bureaucrat on (Wikicars) and I was wondering how to do it. I'd also like to add that the version it is currently running on is 1.6.5 and I'm not sure if it is compatible. Thanks.
-Red marquis 22:29, 8 December 2010 (UTC)
ps. I'd also like to know how to make an anti-vandal bot. Is that just like a code that already exist that you copy into a user account? If so, where can I find said code and how do I incorporate it to wikicars? Thanks. Red marquis (talk) 22:29, 8 December 2010 (UTC)
- I'm quite sure that it won't be compatible, as 1.6 is 10 versions behind the latest release. Also you need to be a system administrator to install extensions; you won't be able to as a regular bureaucrat.
- An anti-vandal bot is a separate program that analyses recent changes and reverts edits based on that analysis. You're probably best helped by asking a anti-vandal-bot operator at the English Wikipedia. -- Bryan (talk|commons) 12:15, 10 December 2010 (UTC)
unable to uload excel xls, ods, powerpoint ppt files on our site developed on mediawiki
Hello, We are unable to uload excel xls, ods, powerpoint ppt files on our site developed on mediawiki In localsettings.php we added the xls,ods,ppt files. the file gets uploaded but the structure of the files zigzag. It is not proper. the ip is 219.64.34.54 thank you sudhir borade 219.64.34.54 (talk) 07:24, 9 December 2010 (UTC)
- "but the structure of the files zigzag" - What does that mean? Please be specific about what exactly goes wrong. Bawolff 16:39, 9 December 2010 (UTC)
Uploading Permissions
Running version MediaWiki 1.16.0 PHP Version 5.2.9-0 Running SUPHP OS: CentOS 5.5
Mediawiki is uploading files just fine, though when directories are being created they are created with permissions of 700 and when files are being created as 600.
Is there any way to specify that directories get created as 755 and files as 644? 141.218.24.202 (talk) 16:28, 9 December 2010 (UTC)
- Set the umask of the webserver. You could add a line to the bottom of LocalSettings.php to call umask. -- Bryan (talk|commons) 13:38, 13 December 2010 (UTC)
I have installed imagemagick and tested it and all I ever get is this file icon image
Product Version MediaWiki 1.14.0 PHP 5.1.6 (apache2handler) MySQL 5.0.77
So I stole this code from someone else testing their imagemagick
<?php
$canvas = new Imagick();
$draw = new ImagickDraw(); $draw->circle(0,200,10,10);
$canvas->newImage(200,200,"#ff0000"); $canvas->drawImage($draw); $canvas->setImageFormat('png');
header("Content-Type: image/png"); echo $canvas;
?>
and it draws the nice quarter circle for me.
All other tests seem to work.
From LocalSettings.php I have tried this:
$wgEnableUploads = true; $wgUseImageMagick = true; $wgImageMagickConvertCommand = "/usr/bin/convert"; $wgImageMagickTempDir = "/home/www/wiki/temp";
. . . and
$wgEnableUploads = false;
. . . check the phpinfo to make sure I had the right LocalSettings.php but no matter what I do, this is what I get for my images:
<a href="/wiki/index.php/File:3.jpg" title="File:3.jpg">File:3.jpg</a>
and if I click on that, I get:
<img alt="" src="/wiki/skins/common/images/icons/fileicon.png" width="120" height="120" border="0" />
If I actually click right on 3.jpg I get the right image, it shows up.
but I never see images. What am I missing? What diagnostic should I run next? Thanks. wiki/skins/common/images/icons/fileicon.png 141.214.17.5 (talk) 19:52, 9 December 2010 (UTC)
- You are using the Imagemagick PHP library. MediaWiki however requires the ImageMagick command line client. -- Bryan (talk|commons) 11:08, 10 December 2010 (UTC)
- I tested the command line client and it works fine.
- I get this result:
- Bryan do you have any other dieas? Thanks.
- Version return code is 0
* Version: ImageMagick 6.2.8 10/06/10 Q16 file:/usr/share/ImageMagick-6.2.8/doc/index.html
* Copyright: Copyright (C) 1999-2006 ImageMagick Studio LLC
- from the following code:
- 141.214.17.5 18:45, 13 December 2010 (UTC)
<html> <head> <title>Test for ImageMagick</title> </head> <body> <? function alist ($array) { //This function prints a text array as an html list. $alist = "<ul>"; for ($i = 0; $i < sizeof($array); $i++) { $alist .= "<li>$array[$i]"; } $alist .= "</ul>"; return $alist; } exec("/usr/bin/convert --version", $out, $rcode); //Try to get ImageMagick "conv ert" program version number. echo "<br>"; echo "Version return code is $rcode <br>"; //Print the return code: 0 if OK, non zero if error. echo alist($out); //Print the output of "convert -version" //Additional code discussed below goes here. ?> </body> </html>
- So if I understand correctly, the problem is that you add on a page [[File:3.jpg]], but MediaWiki makes it a link instead of an image. Try replacing File: by Image: -- Bryan (talk|commons) 21:13, 13 December 2010 (UTC)
- I tried that already, but thanks for the suggestion.
- shows this:
<a href="/wiki/index.php/File:3.jpg" title="File:3.jpg">File:3.jpg</a>
- I tested the mime_content_type with this php file
- <?php
- echo mime_content_type('image.jpg');
- echo '
';
- ?>
- and it says:
- image/jpeg
- Not sure what I should test next. 141.214.17.5 22:01, 13 December 2010 (UTC)
- sorry I mean to type in
[[Image:3.jpg]]
- but it got interpreted 141.214.17.5 22:04, 13 December 2010 (UTC)
- And 3.jpg is a file you uploaded via Special:Upload? -- Bryan (talk|commons) 21:35, 15 December 2010 (UTC)
- i also tried
- php maintenance/rebuildImages.php
- but that didnt help either. 141.214.17.5 19:41, 14 December 2010 (UTC)
- So if I understand correctly, the problem is that you add on a page [[File:3.jpg]], but MediaWiki makes it a link instead of an image. Try replacing File: by Image: -- Bryan (talk|commons) 21:13, 13 December 2010 (UTC)
- SOLVED!!!!!
- I noticed that my groups were weird, for instance, bureaucrat was listed as bureaucrat\0\0\0\0 and eventually (after a long time) I suddenly figured out my table was bad and so I did a 'table repair user_group', and then re-entered all my group information. After that I realized all the mysql tables in my database needed to be repaired so I repaired all the tables, then I re-uploaded all the pictures and now everything works fine.
- So the answer is . . . the mysql tables were corrupt and had to be repaired, that's why I kept getting this fileicon.png black picture. 141.214.17.5 20:23, 11 January 2011 (UTC)
Help with valign and cellpadding
Hello
I would like to put this
Test |
on the upper right ( corner eventually ) of my website but i'm novice and i don't know how to do that. Can you help me ? Crystalnix (talk) 13:57, 10 December 2010 (UTC)
- On all pages, on a specific page? -- Bryan (talk|commons) 13:34, 13 December 2010 (UTC)
- Thanks for your answer.
- I would like to put this in a specific page.
- I found how to put it close to my text but i would like to seperate more the both things
- Do you see what i mean ? lol
- Thanks Crystalnix 11:58, 15 December 2010 (UTC)
- I'm not sure if I get it, but with the CSS "position: absolute; left: 0; top: 0;" you can place any element in the corner. -- Bryan (talk|commons) 21:33, 15 December 2010 (UTC)
- Ok thanks i will try this and i'll tell you Crystalnix 15:21, 16 December 2010 (UTC)
- U can see my work
- |width="60%" valign="top" style="border:3px ; background-color:#CCCCFF; -moz-border-radius:40px;" valign="top"|
- |}
- And this thing i would like to put it on the upper right corner
- If u have an idea.. Crystalnix 15:22, 16 December 2010 (UTC)
- Hmm I see that #bodyContent is positioned relative. This is unfortunate, because that means that position absolute will be relative to it. You could try negative positioning
- -- Bryan (talk|commons) 09:35, 17 December 2010 (UTC)
{| width="20%" border="0" cellspacing="10" cellpadding="10" style="margin:1em 10 1em 0;background:transparent; position: absolute; left: -135px; top: -240px; z-index: 255;" |- |width="50%" valign="top" style="border:3px ; background-color:#CCCCFF; -moz-border-radius:10px;" valign="top"| Test |}
- I'm not sure if I get it, but with the CSS "position: absolute; left: 0; top: 0;" you can place any element in the corner. -- Bryan (talk|commons) 21:33, 15 December 2010 (UTC)
Deleting departed users' watchlists
We have a number of wikis in our School where we want to keep track of which pages are unwatched but this is undermined when users leave. I'm not sure what is the best way round this. It seems that users can't be safely deleted using Extension:DeleteUser or edited using Extension:EditUser.
I guess Extension:Merge and Delete could merge the user with a known user whose login details are known. I also wonder if Extension:Password Reset would give access to the departed user's watchlist. I also wonder if the Watchlist table could just have a SQL DELETE statement run against it.
Yes, they guy who set up our wikis has left and I've been left with trying to figure this out. --Dmontford 15:14, 10 December 2010 (UTC)
- I should have added this:
- MediaWiki: 1.15.1
- PHP: 5.2.4-2ubuntu5.12 (cgi-fcgi)
- MySQL: 5.0.51a-3ubuntu5.8 Dmontford 15:24, 10 December 2010 (UTC)
- The easiest thing would be to run a raw DELETE query against the watchlist table; I'm not aware of any problems that may cause. Extension:Password Reset would give you access to the watchlists indeed. -- Bryan (talk|commons) 13:33, 13 December 2010 (UTC)
- Thanks. Much appreciated. Dmontford 10:39, 14 December 2010 (UTC)
Content not indexed by search engines
Hi, is it possible in MediaWiki to create content that is not indexed by search engines? 83.6.191.178 21:22, 11 December 2010 (UTC)
- Use the __NOINDEX__ magic word. Max Semenik 21:53, 11 December 2010 (UTC)
- Is it going to work in this wiki? [2] 83.6.191.178 22:17, 11 December 2010 (UTC)
- Yes -- Bryan (talk|commons) 13:32, 13 December 2010 (UTC)
- Is it going to work in this wiki? [2] 83.6.191.178 22:17, 11 December 2010 (UTC)
Restricting view/edit privileges on a custom namespace to Administrators & LDAP help
Hello,
I administrate a small wiki for a non-for-profit organization. We have a wiki which is viewable by all of our staff members who can bypass our simple HTTP auth.
I actually have a couple of questions relating to the sign on of MediaWiki.
1) Is there anyway I can use an LDAP database to sign users on to the wiki. For example, I have john.doe@website.org in my LDAP database. Can I use john.doe to sign users onto the wiki, using their LDAP password?
2) Along the same lines, can I use the HTTP auth that is already worked into LDAP to sign people into the wiki, so when they enter their LDAP details in the HTTP auth they are logged into the wiki without having to enter their information twice.
2.5) If #2 is not possible, I can remove the HTTP auth. I pretty much then need to sign people into the wiki using my LDAP database.
3) What schemas would I need in my LDAP database to match the groups of the wiki (Beaurcrats, Admins, Mods, users)?
4) Is there anyway I can restrict the viewing and editing of a certain custom namespace to only a specific set of staff members?
Thanks for any answers to my questions. I apologize if the scope of the topic is too large for the topic at hand.
I am using Mediawiki 1.16.0 on PHP 5.3.2-1ubuntu4.5 (apache2handler) with MySQL 5.1.41-3ubuntu12
Thanks again for any help you can provide me. Jguy 02:23, 13 December 2010 (UTC)
- All of this should be supported by the LDAP extension. Ryan lane 02:51, 13 December 2010 (UTC)
Working with data returned in JSON using PHP is hard
I'm working on a thing where I use PHP and mediawiki API to get all the categories a certain searchword belongs to in Wikipedia. The result is returned in JSON format. There is only one problem. When Mediawiki return its result in XML, the first, and only, child of the "pages"-element is the "page" element. Working with JSON instead, the first and only child of the pages object is the unique pageid! For example 5200013 for "C", or 4269567 for "Dog".
In PHP, using json_decode(returned_json, true) will return an array, where every property is converted to an element(or a inner array) in an associative array. So the "query"object is reached by "['query']" and the "pages" object by "['query']['pages']", but when PHP reaches the "5200013" object, it does create an unnamed element and sets its index to 5200013, which makes it very hard to reach dynamicly. If that object was renamed "page", like in XML, it would be a hundred times easier to work with.
(I hope you get me, as you might understand, english is not my native language:) ) 83.253.110.164 (talk) 12:33, 13 December 2010 (UTC)
- Almost all languages that support JSON allow iterating over values of a hash table (in PHP array_values(), in Python .itervalues()), so I don't think it is very hard to access the page data.
- Also note that changing the output would break all other clients that are using the API, so we're not gonna do this. -- Bryan (talk|commons) 13:31, 13 December 2010 (UTC)
- Thank you for your reply Bryan, I'll try using array_values in the future :) 83.253.110.164 14:36, 13 December 2010 (UTC)
Cannot access pages
Hello,
I experienced a problem with our MySQL database and I am trying to restore our wiki from backups. The html files are in the correct directory and I have restored the database from a backup SQL dump file. I had to create the revision table manually as this was not included. After performing the restore, I cannot access and pages on our wiki. I see the following error when trying to access a page:
This page has been deleted. The deletion log for the page is provided below for reference.
Product Version
MediaWiki 1.15.1
PHP 5.2.9 (apache2handler)
MySQL 5.0.88
I have run the following maintenance commands as per the FAQ's and help pages I have found.
php /usr/share/mediawiki/maintenance/rebuildall.php
php /usr/share/mediawiki/maintenance/refreshLinks.php
php /usr/share/mediawiki/maintenance/rebuildImages.php
Any ideas/help would be appreciated 65.198.103.51 (talk) 19:39, 13 December 2010 (UTC)
- the other error message that I am seeing is
- there is currently no text in this page. 65.198.103.51 19:47, 13 December 2010 (UTC)
- Without your revision table your wiki is essentially lost. The text still resides in the text table, but it will have no associated revision, and as such no page. You will need to copy-paste the contents of that table into new pages yourself.
- Good luck! -- Bryan (talk|commons) 21:07, 13 December 2010 (UTC)
- Thanks for the input. Will using the wiki_import script help me? 65.198.103.51 21:19, 13 December 2010 (UTC)
- My suggested approach would be:
- Extract text from the text table
- Determine from which page the text is. Save the text into a text file with the name of the article
- Use maintenance/importText.php to import the text into your wiki.
- Make a new backup when you're finished and test on a new installation if your backup is working as expected. -- Bryan (talk|commons) 21:48, 13 December 2010 (UTC)
- I will give that a try - thank you for the assistance 65.198.103.51 21:59, 13 December 2010 (UTC)
- My suggested approach would be:
- Thanks for the input. Will using the wiki_import script help me? 65.198.103.51 21:19, 13 December 2010 (UTC)
Mediawiki authentication with Win 2008 AD 2008
Hello,
I´m try to auth mediawiki with my Windows Server 2008. I know that AD 2008 doesn´t use ntlm authentication. I have working my squid and my apaches with AD 2008 Ldap authentication...
Well, anyone knows how can I do this authentication? In the squid and apache, I need to set a user and pass, that exist in AD to read the base and, after this, give access to end-user, if this end-user is a valid user...
Thanks anyway,
Diego Dimago~mediawikiwiki (talk) 20:02, 13 December 2010 (UTC)
- So you want users to login to MediaWiki with their LDAP accounts? Install Extension:LDAP Authentication -- Bryan (talk|commons) 21:14, 13 December 2010 (UTC)
- Bryan, thanks...
- I have this Extension to authenticate my users in OpenLDAP, but now, we are changing to AD 2008.
- I have this lines...
- require_once( "$IP/extensions/LdapAuthentication.php" );
- $wgAuth = new LdapAuthenticationPlugin();
- $wgLDAPDomainNames = array( "domain.com" );
- $wgLDAPServerNames =array( "domain.com.br"=>"server1.domain.com server2.domain.com" );
- $wgLDAPSearchStrings = array("domain.com"=>"uid=USER-NAME,ou=Users,dc=domain,dc=com");
- $wgLDAPEncryptionType = array("domain.com"=>"clear");
- $wgMinimalPasswordLength = 1;
- I guess that it´s not OK, because I know that I need to set a user and pass to read the AD...
- Any idea? 200.186.44.156 10:24, 14 December 2010 (UTC)
- I found a new configuration, look...
- require_once( "$IP/extensions/LdapAuthentication.php" );
- $wgAuth = new LdapAuthenticationPlugin();
- $wgLDAPDomainNames = array("domain.com");
- $wgLDAPServerNames =array("domain.com" => "server1.domain.com server2.domain.com");
- $wgLDAPSearchStrings = array("domain.com" => "uid=sAMAccountName,ou=Users,dc=domain,dc=com"); it´s OK???
- $wgLDAPSearchStrings = array("domain.com" => "uid=USER-NAME,ou=Users,dc=domain,dc=com"); and here???
- $wgLDAPEncryptionType = array("domain.com" => "ssl"); ????
- $wgLDAPEncryptionType = array("domain.com" => "clear"); ?????
- $wgMinimalPasswordLength = 1;
- $wgLDAPProxyAgent = array('domain.com' => 'cn=agent,ou=Users,dc=domain,dc=com');
- $wgLDAPProxyAgentPassword = array('domain.com' => '$$pass8#.,');
- it´s doesn´t work still.. 200.186.44.156 10:57, 14 December 2010 (UTC)
- I don't know how extension LDAP works, sorry. -- Bryan (talk|commons) 21:37, 15 December 2010 (UTC)
Database error after updating MediaWiki from 1.5.2 to 1.6
I was in the process of updating MediaWiki when my database crashed.
I downloaded the tar of the latest release, copied the files into /var/www over the existing ones there, and ran /var/www/maintenance/update.php from the command line. The update script crashed with the error:
Database returned error "1142: CREATE command denied to user 'wikiuser'@'localhost' for table 'user_properties' (localhost)"
Opening the wiki in my browser gives the following error:
Database error
A database error has occurred Query: SELECT lc_value FROM `l10n_cache` WHERE lc_lang = 'en' AND lc_key = 'deps' LIMIT 1 Function: LCStore_DB::get Error: 1146 Table 'wikidb.l10n_cache' doesn't exist (localhost)
Any idea how I can fix this? My wiki is currently completely unusable. 75.159.252.105 (talk) 04:17, 14 December 2010 (UTC)
- Fixed my own issue. I'll post the fix in case anyone else is having similar problems. I'm on Ubuntu, BTW.
- I entered admin mode on the console with "sudo su", which logged me in as the user "root". In LocalSettings.php, $wgDBuser and $wgDBadminuser were set to "wikiuser". By changing them to "root" and running "sudo php5 update.php" I was able to complete the update and fix the database error.
- The update manual should really include this! 75.159.252.105 04:26, 14 December 2010 (UTC)
- I added a note on Manual:Upgrading#Run_the_update_script that the update script needs CREATE TABLE and ALTER TABLE permissions. -- Bryan (talk|commons) 21:40, 15 December 2010 (UTC)
- Thanks to hexmode @ #mediawiki@freenode.net i learned that the error:
Database returned error "1142: CREATE command denied to user 'wikiuser'@'localhost' for table 'user_properties' (localhost)"
- Could be resolved by editing LocalSettings.php to change the wikiuser to the sql administrator, then change it back after update. Eckirchn 01:54, 28 April 2011 (UTC)
- Hey there.
- I have the same problem, but changing the Usernames does not help in any way. Also it's not possible for me to track, if update.php does anything at all, due to the lack of a console.
- So what can I do now? Every attempt to update from 1.9 to 1.16 failed till now. 217.227.72.75 20:28, 30 April 2011 (UTC)
- Hi,
- I'm updating from 1.15 to 1.16 and I have the same problem. It seems that the entrie in LocalSettings.php are not used at all. The error message point always to "wikiuser" however I replaced "wikiuser" with "root" for $wgDBadminuser and $wgDBuser. BTW I'm using Ubuntu. Has anybody an idea how to get this update done? 77.3.134.45 00:39, 1 May 2011 (UTC)
- I could solve the problem:
- Version 1.15 uses AdminSettings.php. 1.16 does not use this file. The parameters should go instead into LocalSettings.php. BUT: If AdminSettings.php is still present it will be used.
- I just renamed AdminSettings.php and put all parameters into LocalSettings.php. Then I was able to use "root" as $wgDBadminuser and $wgDBuser. 95.112.249.171 01:00, 1 May 2011 (UTC)
- I added a note on Manual:Upgrading#Run_the_update_script that the update script needs CREATE TABLE and ALTER TABLE permissions. -- Bryan (talk|commons) 21:40, 15 December 2010 (UTC)
showing Arabic and Hebrew
I have a website that uses the Wikipedia software and I would like to know what software does Wikipedia use to keep the languages like Arabic and Hebrew to show their page from right to left. I don't want to put tags on every page of the above languages. I want it to be like Wikipedia. My software shows it from left to right.
I would like to know how Wikipedia is dealing with this issue. I invested a lot of thime and efforts and so far no luck. 173.34.149.142 (talk) 17:32, 14 December 2010 (UTC)
- If you set the content language to a RTL language the interface will automatically be RTL. -- Bryan (talk|commons) 21:36, 15 December 2010 (UTC)
Linking a Wiki Page to the "Mother" in the Hierarchy in order to "Move up a level"
Installed software Product Version MediaWiki 1.16wmf4 (r77622) PHP 5.2.4-2ubuntu5.12wm1 (apache2handler) MySQL 5.1.47-facebook-r3550-log
Our wiki is for internal use only, but I am (for the purposes of improving search-ability) trying to find a way to place a link on a Wiki page that would allow users to navigate up one level on the hierarchy to the "Mother Page."
For example, if a user searches for "Tyrannosaurus Rex", I want to place an Internal Link on the Tyrannosaurus Rex page which would give the user the option to navigate up to the "Dinosaur" menu (up one level) to view other possible types of Dinosaurs that they may be looking for also.
P.S. I apologize if this has been previously addressed, but I didn't find it when I searched around the site 199.176.235.98 (talk) 20:02, 14 December 2010 (UTC)
Editing Left Navigation - adding drop downs and new sections
Hello,
I'm not able to find anywhere on this site that talks about how to change the links in the left navigation or how to add drop down links like are shown on the mediawiki page.
I've seen the TreeandMenu extension and that's not what I'm looking for. I'd like navigation just like how MediaWiki has...is there an extension for that?
Thank you 98.189.165.213 (talk) 21:55, 14 December 2010 (UTC)
- I found this earlier...but do not know where to find this "sidebar" file.
- http://www.mediawiki.org/wiki/Manual:Interface/Sidebar
- Is there supposed to be an admin section? How do I know if my account has administration privileges?
- Thanks 98.189.165.213 23:56, 14 December 2010 (UTC)
- It's part of the Extension:UsabilityInitiative, but I'm not sure what part exactly. -- Bryan (talk|commons) 21:34, 15 December 2010 (UTC)
- Great! Thank you for pointing me in that direction...I'll see what I can find.
- Any other helps that makes my hunting any easier is, of course, welcome :-) 98.189.165.213 02:10, 16 December 2010 (UTC)
- CollapsableLeftNav from sub-extension Extension:Vector -- Bryan (talk|commons) 08:07, 16 December 2010 (UTC)
- Excellent!
- Okay, I figured out how after reading the sidebar thing what I should do to add to the navigation...but now I'm not sure how to make the sub-menus collapse-able.
- Anyone know how to do that?
- Thanks! 98.189.165.213 23:51, 16 December 2010 (UTC)
- Well, I added the extension and read the readme...but the collapsable navigation still isn't working.
- Any tips would be greatly appreciated.
- Thanks much! 98.189.165.213 17:51, 22 December 2010 (UTC)
- CollapsableLeftNav from sub-extension Extension:Vector -- Bryan (talk|commons) 08:07, 16 December 2010 (UTC)
Short URLs on subdomains
I've just installed MediaWiki 1.16 on my domain http://www.gondolin.co.uk, in the directory http://en.gondolin.co.uk/w/... What I would like is to have the nice short URLs as http://en.gondolin.co.uk/wiki/... in preparation for having future other languages. I couldn't find anything that worked!
Thank you! --109.157.139.195 21:35, 15 December 2010 (UTC)
- So does your host have mod_rewrite enabled and does it allow you to set rewrite rules via .htaccess? -- Bryan (talk|commons) 21:42, 15 December 2010 (UTC)
- I'm running PHP version 5.2.11, and MySQL version 5.0.91 if that makes any difference. (I just noticed that without this information threads could get deleted).
- In a sense I'm asking how to do short URLs for a multi-lingual site with multiple wikis.
- Thanks again! --109.157.139.195 15:41, 18 December 2010 (UTC)
- The instructions on Manual:Short URL should be fine; it doesn't really matter whether you have one wiki or ten (but if you have several, you might want to set up a wiki family). âEmufarmers(T|C) 05:21, 19 December 2010 (UTC)
- There are no instructions for "subdomain.example.com/wiki/Page_Title", and I've tried tinkering myself and it's been unsuccessful. 109.157.46.136 20:10, 11 January 2011 (UTC)
- The instructions are the same whether it's subdomain.example.com or example.com. (In the case of en.gondolin.co.uk, it looks like you haven't actually created the subdomain.) âEmufarmers(T|C) 03:27, 12 January 2011 (UTC)
- There are no instructions for "subdomain.example.com/wiki/Page_Title", and I've tried tinkering myself and it's been unsuccessful. 109.157.46.136 20:10, 11 January 2011 (UTC)
- The instructions on Manual:Short URL should be fine; it doesn't really matter whether you have one wiki or ten (but if you have several, you might want to set up a wiki family). âEmufarmers(T|C) 05:21, 19 December 2010 (UTC)
Updating everything from dump, except one article
I'm using importDump.php on MediaWiki 1.12.0, PHP 5.2.6-1+lenny9 (apache2handler), MySQL 5.0.51a-24+lenny4.
I changed a certain template and I want it to stay as is - is there any way to do that? I know I can see the template's history and revert it, but I want it to not update in the first place.
Thanks. 79.181.13.11 (talk) 07:49, 16 December 2010 (UTC)
- Create another template with the former template's content and use it in that article. The very point of templates is reusing wikitext, selective updates of dependent pages on template change are not supported. Max Semenik 08:28, 16 December 2010 (UTC)
links to sections (on same page)
I can link something to a section on the same page using [[something#sectionheader|something]], but this produces a blue link regardless of whether the section actually exists of not. Is there a way to make it a red link when the section is missing. Or a function like #ifexist that determines whether the section exisits?
nl:wikt:Gebruiker:Jcwf Jcwf (talk) 19:27, 16 December 2010 (UTC)
- No, that is unfortunately not possible. -- Bryan (talk|commons) 09:36, 17 December 2010 (UTC)
How do I become an administrator of my own wiki?
RESOLVED | |
Problem resolved. |
The following discussion is closed. Please do not modify it. Subsequent comments should be made on the appropriate discussion page. No further edits should be made to this discussion.
- I see that I have to be an administrator to do everything I need to do...but I can't find anywhere how to become an administrator.
- I would assume that the first registered account would have admin rights...but I don't seem to have those rights.
- Please help!
- Thanks much 98.189.165.213 (talk) 02:04, 17 December 2010 (UTC)
- FAQ#Initial user was not created by installer or it is not an administrator. Max Semenik 05:46, 17 December 2010 (UTC)
- Thank you!
- I'm running the latest version, so the part I'm getting hung up on is how to do the following
- Execute the following SQL statement against the database:
* INSERT INTO user_groups ( ug_user, ug_group ) VALUES ( <id>, 'bureaucrat' ), ( <id>, 'sysop' );
- What does it mean to execute that statement...where would I do that?
- Thanks much! 98.189.165.213 22:30, 17 December 2010 (UTC)
- You'd do that from a mysql command line client (or phpmyadmin). Its probably easier to use one of the other methods listed in the FAQ if you're not sure about how to edit your database. Bawolff 22:15, 18 December 2010 (UTC)
- Thank you! I think I've got it now :-) 98.189.165.213 01:42, 22 December 2010 (UTC)
- Hi ! How did you solved your last problem ? I am also getting hung up on how to do the following
- Execute the following SQL statement against the database:
* INSERT INTO user_groups ( ug_user, ug_group ) VALUES ( <id>, 'bureaucrat' ), ( <id>, 'sysop' );
- Where you did it ?
- Thanks in advance
- REduardo (I have a ticket above, but waiting for answer...! 79.178.4.152 13:19, 1 January 2011 (UTC)
- Thank you! I think I've got it now :-) 98.189.165.213 01:42, 22 December 2010 (UTC)
- You'd do that from a mysql command line client (or phpmyadmin). Its probably easier to use one of the other methods listed in the FAQ if you're not sure about how to edit your database. Bawolff 22:15, 18 December 2010 (UTC)
- FAQ#Initial user was not created by installer or it is not an administrator. Max Semenik 05:46, 17 December 2010 (UTC)
- Please mention complete with all filled names. SQL query so that i can use the same to change . 220.225.22.158 (talk) 09:05, 28 September 2018 (UTC)
- If you just want to give admin rights to a user, instead of SQL queries, see Manual:CreateAndPromote.php. AhmadF.Cheema (talk) 09:32, 28 September 2018 (UTC)
- Where can i runn this code ? 87.77.101.142 (talk) 09:35, 13 May 2019 (UTC)
- The SQL query through phpMyAdmin, the PHP code through SSH. AhmadF.Cheema (talk) 10:34, 13 May 2019 (UTC)
Enable -did you mean- on search results page
I've been unable to enable a "Did you mean" function when one searches. I've tried to find out how but have not been able to.
It's the same one on the main wikipedia site that I'd like to use.
Any suggestions? 81.170.208.35 (talk) 13:08, 17 December 2010 (UTC)
- DYM requires Extension:Lucene-search -- Bryan (talk|commons) 23:14, 17 December 2010 (UTC)
Linking to common.css
Hi, I am trying out the Cavendish layout at my new website at johor-bahru-insurance.com. Apparently, this skin does not link to MediaWiki:common.css, as well as MediaWiki:cavendish.css. It has a cavendish.css in its skin folder, though.
How do I link the two MediaWiki:common.css and MediaWiki:cavendish.css files to the cavendish skin so that I can do modifications without going to the backend, which is quite a hassle. Are there any codes that can do that and if so, which file should I access? Thanking you in advance.
(P/S: I am using MediaWiki 1.16.0, and PHP 5.) â PM Poon 16:53, 18 December 2010 (UTC)
- Both Mediawiki:Common.css and Mediawiki:Cavendish.css appear to be loaded on your site (to be specific, [3] and [4] are the urls its loading, which seem to correspond to the apropriate files). Did you do a hard refresh after putting content in them? Some third party skins are of low quality and don't load them, but cavendish does not seem to be one of those. Bawolff 22:13, 18 December 2010 (UTC)
- Both Mediawiki:Common.css and Mediawiki:Cavendish.css appear to be loaded on your site (to be specific, [5] and [6] are the urls its loading, which seem to correspond to the apropriate files). Did you do a hard refresh after putting content in them? Some third party skins are of low quality and don't load them, but cavendish does not seem to be one of those. Bawolff 22:13, 18 December 2010 (UTC)
- Hi Bawolff, yes, I loaded both Mediawiki:Common.css and Mediawiki:Cavendish.css into the website but they don't seem to be functioning. For example:
- body.page-Why_people_resist_buying_life_insurance h1.firstHeading { display: none; }
- at Mediawiki:Cavendish.css doesn't seem to function, as can be seen on this page.
- Cavendish.css, however, appears inside the cavendish folder, something that is not similarly found inside the Monobook folder . Could this be a possible reason that since Cavendish.css already appears at the back-end, it should not appear again at the front-end? I also understand that some skins do not interact with Mediawiki:Common.css. PM Poon 16:25, 19 December 2010 (UTC)
- The cavendish skin doesn't support page names in the body's class. Thus
body.page-Why_people_resist_buying_life_insurance h1.firstHeading { display: none; }
gets loaded, but does nothing. If you for example wrote something like* {border:red medium solid}
would work fine (but not be very useful) - Consider hiding the title using code like:
{{DISPLAYTITLE:<span style="display:none">Why people resist buying life insurance</span>}}
(Put that on the page itself, not in the css file) - >Cavendish.css, however, appears inside the cavendish folder, something that is not similarly found inside the
- >Monobook folder . Could this be a possible reason that since Cavendish.css already appears at the back-end
- Both are loaded. Bawolff 00:13, 21 December 2010 (UTC)
- The cavendish skin doesn't support page names in the body's class. Thus
- Hi Bawolff, yes, I loaded both Mediawiki:Common.css and Mediawiki:Cavendish.css into the website but they don't seem to be functioning. For example:
Tabs Background Colors
I am new to this so please bear with me.....I am customizing a theme, is there a way to make the tabs transparent so they blend it. I manage to edit the .css and change everything but those tab backgrounds are still white. Thanks 99.3.149.100 (talk) 18:48, 18 December 2010 (UTC)
Fatal error: Class 'ParserOptions' not found
Hello,
I installed the MediaWiki software to a database on my personal website and got to the step where I needed to move the LocalSettings.php to the parent directory. I did this, and now have the following error when I try to go to the directory where I installed the program:
Fatal error: Class 'ParserOptions' not found in /home/content/s/a/b/sabin22/html/mediawiki-1.16.0/includes/Article.php on line 4049
You can see for yourself at: http://funatronics.com/mediawiki-1.16.0/index.php5?title=Main_Page
I have very limited knowledge on installing Wikis, so any nudge in the right direction would be greatly appreciated. 76.94.120.143 (talk) 08:01, 21 December 2010 (UTC)
- Double check that the file /home/content/s/a/b/sabin22/html/mediawiki-1.16.0/includes/parser/ParserOptions.php exists (and actually contains text). Bawolff 03:08, 23 December 2010 (UTC)
Subcategory search in category
I'm trying to make search for composer in International Music Score Library Project (IMSLP.org).
IMSLP's wiki have a category Composers (http://imslp.org/index.php?title=Category:Composers) with about 4665 sub-categories. One sub-category - one composer.
Is it possible to make search for a sub-category in category (case-insencetive!)
I'd read about mediawiki's api and make list-request: http://imslp.org/api.php?action=query&list=categorymembers&cmtitle=Category:Composers&cmlimit=100 It is exactly what i want, but how to implement server-side search on this result (or make other conditions in request). Maxim Korobov (talk) 11:19, 21 December 2010 (UTC)
Where on earth is LocalSettings.php gone?
I just attempted installing MediaWiki 1.16.0 on my server. The server details are irrelevant, but it uses some sort of PHP 5 and MySQL 5, but the main issue is: Why is there no LocalSettings.php anywhere? It's supposed to be in the root file but nowhere in the tar.gz I downloaded I can find a LocalSettings.php file - and I assume that is why it won't install. It constantly tells me to check username and password although I now quadruple checked it and all is fine - there is just no LocalSettings.php anywhere. Why not?--195.14.222.186 13:45, 21 December 2010 (UTC)
- LocalSettings.php is created by the installer. It will be in the config directory once you get the installer to run. âEmufarmers(T|C) 20:42, 21 December 2010 (UTC)
Citation error
MediaWiki = 1.16.0 PHP = 5.2.14 MySQL = 5.1.50
I noticed in my intranet wiki that since upgrading to mediawiki 1.16, I get the error message "Expression error: Missing operand for >" in the tile field of the citation, e.g. Barrow, G. W. S. (2003), [Expression error: Missing operand for > The Kingdom of the Scots], Edinburgh: Edinburgh University Press, ISBN 0 7486 1802 3. I notice in google that lots of other wikis have the same problem. Any ideas what's going wrong here?. Thanks, --89.242.64.11 17:44, 21 December 2010 (UTC)
- A random guess (that might be totally wrong), make sure that you version of the parserFunction extension is the right version for your version of mediawiki. The parserFunction extension is very picky, and each version of mediawiki needs a different version of that extension.
- Otherwise, double check your templates don't have any errors in them. Bawolff 08:28, 26 December 2010 (UTC)
- I've got the same problem, with exactly the same versions of PHP, MySQL and Mediawiki. I've installed ParserFunctions and Cite extensions as recommended for Mediawiki 1.16.x, but the problem still remains..
- Any hint would be highly appreciated. Sal9000 16:24, 10 January 2011 (UTC)
Help - Captcha using in MediaWiki
Can someone tell me the captcha used in mediawiki?
Sorry my english. Leny~mediawikiwiki (talk) 23:28, 22 December 2010 (UTC)
- Extension:ConfirmEdit is the captcha engine for MediaWiki. Wikimedia projects use the FancyCaptcha addon, but some sites use ReCAPTCHA. âEmufarmers(T|C) 23:38, 22 December 2010 (UTC)
- I can not install on my wiki. Anyway, thanks for the reply. Resolved. Leny 23:47, 22 December 2010 (UTC)
Only index works - no other pages
Hello,
All of a sudden, my fraternity's wiki stopped working. The index page works just fine, but whenever a user clicks anything, whether it's a special page or a "regular" page, it doesn't work. Nothing was changed to my settings or filesystem at first sight.
I already tried disabling caching, but that did not prove to change anything. To be honest I'm not sure what else I could try at the moment... any tips? It's a wiki full of examn information, so the members of my fraternity are pretty anxious as there's an examination period coming up in three weeks. Help! ;-)
- URL: <snip> URL removed.
- Mediawiki v 1.12
- MySQL and PHP both at their latest network 91.176.70.53 (talk) 18:00, 23 December 2010 (UTC)
- Works fine for me. Bawolff 08:19, 26 December 2010 (UTC)
- I figured it out by now. Seems someone exploited our server. Wasn't Mediawiki's fault :-) 91.176.225.172 16:58, 28 December 2010 (UTC)
Not working: Prevent users from editing : $wgGroupPermissions['*']['edit'] = false;
MY localsettings.php has this line: $wgGroupPermissions['*']['edit'] = false; But my wiki continues to allow non-registered users to edit.
Does this have anything to do with the .htaccess file? My wiki version is 1.6 url: zamboanga.com/z
Probably not. Try asking at the support desk. --HappyDog 19:45, 23 December 2010 (UTC)
- Your MediaWiki is seriously outdated. These configuration settings definitely work on 1.16. Max Semenik 05:02, 24 December 2010 (UTC)
- Saw the answer awhile back from an old support file:
- Put the: $wgGroupPermissions['*']['edit'] = false;
- at the very bottom of your localsettings.php it really works. Kuhitkuhit 16:51, 24 December 2010 (UTC)
Image files over 1200x1600 or 1600x1200 uploads but fails to create the Image:xxxx.jpg file
- MediaWiki: 1.6.12
- PHP: 4.3.11 (cgi-fcgi)
- MySQL: 4.1.14
When any user uploads an image file that is larger in dimension (not file size) of 1200x1600 or 1600x1200, The wiki prompts this message:
Upload warning
- It is recommended that images not exceed 153600 bytes in size, this file is 1902181 bytes
The user then Ignores warning and saves file anyway.
Then This message shows:
- The server encountered an internal error or misconfiguration and was unable to complete your request
Now here is the interesting part.
Now the user thinks that the file did not upload. But that is not so. The file did upload. When I go to the wiki page of "title=Special:Imagelist", the file is there. When clicked on the image shows up in its full URL. But when you click on the (Desc) which points to the image description file you get the error message.
This is a big problem for our wiki. Anyone's help will be greatly appreciated. 71.135.109.228 (talk) 17:40, 24 December 2010 (UTC)
- Note, your wiki is seriously outdated. The current version is 1.16. 1.6 is ten versions ago.
- The warning is controlled by $wgUploadSizeWarning, which you can set in LocalSettings.php
- As for the error message, could you do the steps at Debugging to try to get the actual error that occured?
- Thanks, Bawolff 08:26, 26 December 2010 (UTC)
- The warning is not a problem. The user can ignore the warning and the file is uploaded. After the image is uploaded and if it is over the limit, the description page of the image file in the wiki will not appear. However, the image file is in the wiki. 71.135.105.207 20:17, 27 December 2010 (UTC)
Review log action
Is there a log_action named 'review' on logging table ? and what is log_params value for autoreview actions? Mjbmr (talk) 14:34, 25 December 2010 (UTC)
Special:Upload not found
Mediawiki - 1.16 PHP - 5.2 MySQL - 5.1
I just installed mediawiki onto my forum using my host's one-click install feature. Everything seems to be working great and I was looking into how to do uploads. However, there is no "Upload File" option in the toolbox. I tried to go directly to Special:Upload, but I'm getting a Not Found Error. It's also not listed in the special pages. I activated file uploads in the LocalSettings.php.
URL: http://markedrp.com/w/Special:Upload
Error: Not Found
The requested URL /w/Special:Upload was not found on this server.
Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request. Ranimara (talk) 17:41, 26 December 2010 (UTC)
Automatic content import of .txt Files into a Wiki System. (Bot?)
Hello guys,
does anyone know, if it is possible to import .txt Files in a Folder to a Wiki System? We got a Directory e.g. C:\Test\ where we save a lot of .txt Files day by day, and i am searching for a way, to import the content of this txt Files into our wiki system.
example: helloworld.txt -> - new database entry (helloworld) - and the content of the file, have to be the text in the database.
so i dont want to attach the file. I want to import it text based
thank you BennyBurton (talk) 09:54, 27 December 2010 (UTC)
- You could use a short shell script (or batch file since you're on windows) combined with the edit.php maintenance script to easily go through the directory and import all the text files
- You could also probably create a bot to do that. You may want to check out w:Wikipedia:Creating a bot (Some of that is wikipedia specific, but much of it is general). Bawolff 12:03, 27 December 2010 (UTC)
Wiki and WordPress
Does anyone have experience adding a Wiki to their WordPress website? If so, can you recommend a good WordPress plugin to use? I want to create my Wiki page the same way as it is for Wikipedia: allow visitors to edit specific paragraphs of content. Can anyone out there help? 70.26.52.192 (talk) 02:03, 28 December 2010 (UTC)
- I integrated the two of them using a few projects I found. You can see the explanation and download the code from my site.
- Basically, it centers all user creation and logins though WP, creating them as needed in MW. Unfortunately, the assignment of roles hasn't yet been cross linked, though that could be a cool project. So if you make someone an editor in WP, you then have to upgrade their permission in MW.
- Hope this helps. Unifiedrepublic 21:50, 20 January 2011 (UTC)
Uploading files: no effect
Hi, we've just migrated our wiki onto a new server. The new wiki is up and running, but we can't manage Special:Upload to work. The fact is that the uploading page loads OK, but clicking on "Upload" makes no effect: the page reloads itself without showing no errors nor messages.
The page is http://www.ferropedia.es/wiki/Especial:SubirArchivo
-We're using: MediaWiki 1.16.0 PHP 5.2.14 (cgi-fcgi) MySQL 5.0.67-log
-"mediawiki/images" and subfolders permissions' are set at 755. -using a shared server (no shell acces, no httpd.conf access) -I've checked almost a dozen times the parameters on the flies below, but I can't find nothing wrong. Can any one plese give us a hint? (Thanks in advance)
if( defined( 'MW_INSTALL_PATH' ) ) { $IP = MW_INSTALL_PATH; } else { $IP = dirname( __FILE__ ); }
$path = array( $IP, "$IP/includes", "$IP/languages" ); set_include_path( implode( PATH_SEPARATOR, $path ) . PATH_SEPARATOR . get_include_path() );
require_once( "$IP/includes/DefaultSettings.php" );
if ( $wgCommandLineMode ) { if ( isset( $_SERVER ) && array_key_exists( 'REQUEST_METHOD', $_SERVER ) ) { die( "This script must be run from the command line\n" ); } }
$wgScriptPath = "/mediawiki"; $wgArticlePath = "/wiki/$1"; $wgScriptExtension = ".php";
$wgStylePath = "$wgScriptPath/skins";
require_once("$IP/extensions/Cite/Cite.php"); require( "extensions/ParserFunctions/ParserFunctions.php");
$wgLogo = "$wgStylePath/images/wiki.png";
- MySQL specific settings
$wgDBprefix = "";
- MySQL table options to use during installation or update
$wgDBTableOptions = "ENGINE=InnoDB, DEFAULT CHARSET=utf8";
- Experimental charset support for MySQL 4.1/5.0.
$wgDBmysql5 = true;
- Shared memory settings
$wgMainCacheType = CACHE_NONE; $wgMemCachedServers = array();
- To enable image uploads, make sure the 'images' directory
- is writable, then set this to true:
$wgEnableUploads = true;
- To allow autoconfirmed (non-newbie) users to upload files
$wgGroupPermissions['autoconfirmed']['upload'] = true;
- To allow autoconfirmed (non-newbie) users to replace existing files
$wgGroupPermissions['autoconfirmed']['reupload'] = true;
- To allow uploads of other desired file types
$wgFileExtensions = array('png', 'gif', 'jpg', 'jpeg', 'doc', 'xls', 'mpp', 'pdf', 'ppt', 'tiff', 'bmp', 'docx', 'xlsx', 'pptx', 'ps');
$wgUploadPath = "$wgScriptPath/images"; $wgUseImageMagick = true; $wgImageMagickConvertCommand = "/usr/bin/convert";
- AĂąadido por mĂ, probando si funciona para subida de archivos
$wgUploadDirectory = "$wgScriptPath/images";
- If you use ImageMagick (or any other shell command) on a
- Linux server, this will need to be set to the name of an
- available UTF-8 locale
$wgShellLocale = "en_US.utf8";
- If you want to use image uploads under safe mode,
- create the directories images/archive, images/thumb and
- images/temp, and make them all writable. Then uncomment
- this, if it's not already uncommented:
$wgHashedUploadDirectory = false;
- If you have the appropriate support software installed
- you can enable inline LaTeX equations:
$wgUseTeX = false;
- Set $wgCacheDirectory to a writable directory on the web server
- to make your wiki go slightly faster. The directory should not
- be publically accessible from the web.
- $wgCacheDirectory = "$IP/cache";
$wgLocalInterwiki = strtolower( $wgSitename );
$wgLanguageCode = "es";
$wgDefaultSkin = 'monobook';
$wgEnableCreativeCommonsRdf = true; $wgRightsPage = ""; # Set to the title of a wiki page that describes your license/copyright $wgRightsUrl = "http://creativecommons.org/licenses/by-sa/3.0/"; $wgRightsText = "Attribution-ShareAlike 3.0 Unported"; $wgRightsIcon = "http://i.creativecommons.org/l/by-sa/3.0/88x31.png";
$wgDiff3 = "/usr/bin/diff3";
- When you make changes to this configuration file, this will make
- sure that cached pages are cleared.
$wgCacheEpoch = max( $wgCacheEpoch, gmdate( 'YmdHis', @filemtime( __FILE__ ) ) );
And PHP.ini reads:
- |PIG v0.2.1|
[PHP]
engine = 1 zend.ze1_compatibility_mode = short_open_tag = 1 asp_tags = precision = 14 y2k_compliance = 1 output_buffering = 4096 zlib.output_compression = implicit_flush = unserialize_callback_func = serialize_precision = 100 allow_call_time_pass_reference = safe_mode = safe_mode_gid = 1 safe_mode_include_dir = safe_mode_exec_dir = safe_mode_allowed_env_vars = "PHP_" safe_mode_protected_env_vars = "LD_LIBRARY_PATH" disable_functions = disable_classes = highlight.string = "#DD0000" highlight.comment = "#FF9900" highlight.keyword = "#007700" highlight.bg = "#FFFFFF" highlight.default = "#0000BB" highlight.html = "#000000" expose_php = 1 max_execution_time = 30 max_input_time = 60 memory_limit = 24M error_reporting = 6135 display_errors = 0 display_startup_errors = log_errors = 1 log_errors_max_len = 1024 ignore_repeated_errors = ignore_repeated_source = report_memleaks = 1 track_errors = html_errors = error_log = "/hsphere/local/var/httpd/logs/php_error.log" variables_order = EGPCS register_globals = 0 register_long_arrays = 1 register_argc_argv = 1 auto_globals_jit = 1 post_max_size = 8M magic_quotes_gpc = 1 magic_quotes_runtime = magic_quotes_sybase = auto_prepend_file = auto_append_file = default_mimetype = "text/html" always_populate_raw_post_data = 1 include_path = ".:/hsphere/shared/apache/libexec/php5ext/php/" doc_root = user_dir = extension_dir = "/hsphere/shared/apache/libexec/php5ext/" cgi.fix_pathinfo = 1 file_uploads = On upload_tmp_dir = upload_max_filesize = 16M allow_url_fopen = 1 allow_url_include = default_socket_timeout = 60 auto_detect_line_endings = 1
[Syslog]
define_syslog_variables =
[mail function]
sendmail_path = "/usr/sbin/sendmail -t -i" mail.force_extra_parameters =
[SQL]
sql.safe_mode =
[ODBC]
odbc.allow_persistent = odbc.check_persistent = 1 odbc.max_persistent = "-1" odbc.max_links = "-1" odbc.defaultlrl = 4096 odbc.defaultbinmode = 1
[MySQL]
mysql.allow_persistent = mysql.max_persistent = "-1" mysql.max_links = "-1" mysql.default_port = 3306 mysql.default_socket = "/var/lib/mysql/mysql.sock" mysql.default_host = localhost mysql.default_user = mysql.default_password = mysql.connect_timeout = 60 mysql.trace_mode =
[MySQLi]
mysqli.max_links = "-1" mysqli.default_port = 3306 mysqli.default_socket = "/var/lib/mysql/mysql.sock" mysqli.default_host = localhost mysqli.default_user = mysqli.default_pw = mysqli.reconnect =
[PostgresSQL]
pgsql.allow_persistent = pgsql.auto_reset_persistent = pgsql.max_persistent = "-1" pgsql.max_links = "-1" pgsql.ignore_notice = 0 pgsql.log_notice = 0
[dbx]
dbx.colnames_case = lowercase
[bcmath]
bcmath.scale = 0
[Session]
session.save_handler = files session.use_cookies = 1 session.name = PHPSESSID session.auto_start = 0 session.cookie_lifetime = 0 session.cookie_path = "/" session.cookie_domain = session.cookie_httponly = session.serialize_handler = php session.gc_probability = 1 session.gc_divisor = 1000 session.gc_maxlifetime = 1440 session.bug_compat_42 = 0 session.bug_compat_warn = 1 session.referer_check = session.entropy_length = 0 session.entropy_file = session.cache_limiter = nocache session.cache_expire = 180 session.use_trans_sid = 0 session.hash_function = 0 session.hash_bits_per_character = 5 url_rewriter.tags = "a=href,area=href,frame=src,input=src,form=fakeentry"
[Assertion]
assert.active = 1 assert.warning = 1 assert.bail = assert.callback = 0 assert.quiet_eval = 0
[Sockets]
sockets.use_system_read = 1
[mbstring]
mbstring.language = Neutral mbstring.internal_encoding = "EUC-JP" mbstring.http_input = pass mbstring.http_output = pass mbstring.encoding_translation = mbstring.detect_order = auto mbstring.substitute_character = mbstring.func_overload = 0
[exif]
exif.encode_unicode = "ISO-8859-15" exif.decode_unicode_motorola = "UCS-2BE" exif.decode_unicode_intel = "UCS-2LE" exif.encode_jis = exif.decode_jis_motorola = JIS exif.decode_jis_intel = JIS
[soap]
soap.wsdl_cache_enabled = 1 soap.wsdl_cache_dir = "/tmp" soap.wsdl_cache_ttl = 86400
[Zend]
zend_extension_manager.optimizer = "/usr/local/Zend/lib/Optimizer-3.3.3" zend_extension_manager.optimizer_ts = "/usr/local/Zend/lib/Optimizer_TS-3.3.3" zend_optimizer.version = "3.3.3" zend_extension = "/usr/local/Zend/lib/ZendExtensionManager.so" zend_extension_ts = "/usr/local/Zend/lib/ZendExtensionManager_TS.so" 195.76.37.40 (talk) 18:44, 28 December 2010 (UTC)
- See Manual:How to debug. âEmufarmers(T|C) 21:56, 28 December 2010 (UTC)
- Thanks for the info.
- We tried to debug PHP on page, with no results (nothing happens, no errors shown). Server log shows many errors when trying to upload (thanks again in advance for your kind answer):
- 195.76.37.40 - - [29/Dec/2010:04:19:46 -0500] "OPTIONS /mediawiki/index.php?action=ajax&rs=SpecialUpload::ajaxGetExistsWarning&rsargs[]=Mzcroda999ez.jpg HTTP/1.1" 301 357 "http://www.ferropedia.es/wiki/Especial:SubirArchivo" "Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US) AppleWebKit/533.4 (KHTML, like Gecko) Chrome/5.0.375.70 Safari/533.4"
- 195.76.37.40 - - [29/Dec/2010:04:20:03 -0500] "POST /wiki/Especial:SubirArchivo HTTP/1.1" 301 267 "http://www.ferropedia.es/wiki/Especial:SubirArchivo" "Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US) AppleWebKit/533.4 (KHTML, like Gecko) Chrome/5.0.375.70 Safari/533.4"
- 195.76.37.40 - - [29/Dec/2010:04:20:06 -0500] "GET /wiki/Especial:SubirArchivo HTTP/1.1" 200 21328 "http://www.ferropedia.es/wiki/Especial:SubirArchivo" "Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US) AppleWebKit/533.4 (KHTML, like Gecko) Chrome/5.0.375.70 Safari/533.4"
- 195.76.37.40 - - [29/Dec/2010:04:20:06 -0500] "GET /mediawiki/skins/common/edit.js?270 HTTP/1.1" 304 - "http://www.ferropedia.es/wiki/Especial:SubirArchivo" "Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US) AppleWebKit/533.4 (KHTML, like Gecko) Chrome/5.0.375.70 Safari/533.4"
- 195.76.37.40 - - [29/Dec/2010:04:20:06 -0500] "GET /mediawiki/skins/common/commonPrint.css?270 HTTP/1.1" 304 - "http://www.ferropedia.es/wiki/Especial:SubirArchivo" "Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US) AppleWebKit/533.4 (KHTML, like Gecko) Chrome/5.0.375.70 Safari/533.4"
- 195.76.37.40 - - [29/Dec/2010:04:20:06 -0500] "GET /mediawiki/skins/common/wikibits.js?270 HTTP/1.1" 304 - "http://www.ferropedia.es/wiki/Especial:SubirArchivo" "Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US) AppleWebKit/533.4 (KHTML, like Gecko) Chrome/5.0.375.70 Safari/533.4"
- 195.76.37.40 - - [29/Dec/2010:04:20:06 -0500] "GET /mediawiki/skins/monobook/main.css?270 HTTP/1.1" 304 - "http://www.ferropedia.es/wiki/Especial:SubirArchivo" "Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US) AppleWebKit/533.4 (KHTML, like Gecko) Chrome/5.0.375.70 Safari/533.4"
- 195.76.37.40 - - [29/Dec/2010:04:20:06 -0500] "GET /mediawiki/skins/common/shared.css?270 HTTP/1.1" 304 - "http://www.ferropedia.es/wiki/Especial:SubirArchivo" "Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US) AppleWebKit/533.4 (KHTML, like Gecko) Chrome/5.0.375.70 Safari/533.4"
- 195.76.37.40 - - [29/Dec/2010:04:20:06 -0500] "GET /mediawiki/skins/common/htmlform.js?270 HTTP/1.1" 304 - "http://www.ferropedia.es/wiki/Especial:SubirArchivo" "Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US) AppleWebKit/533.4 (KHTML, like Gecko) Chrome/5.0.375.70 Safari/533.4"
- 195.76.37.40 - - [29/Dec/2010:04:20:06 -0500] "GET /mediawiki/skins/common/ajaxwatch.js?270 HTTP/1.1" 304 - "http://www.ferropedia.es/wiki/Especial:SubirArchivo" "Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US) AppleWebKit/533.4 (KHTML, like Gecko) Chrome/5.0.375.70 Safari/533.4"
- 195.76.37.40 - - [29/Dec/2010:04:20:06 -0500] "GET /mediawiki/skins/common/upload.js?270 HTTP/1.1" 304 - "http://www.ferropedia.es/wiki/Especial:SubirArchivo" "Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US) AppleWebKit/533.4 (KHTML, like Gecko) Chrome/5.0.375.70 Safari/533.4"
- 195.76.37.40 - - [29/Dec/2010:04:20:06 -0500] "GET /mediawiki/skins/common/ajax.js?270 HTTP/1.1" 304 - "http://www.ferropedia.es/wiki/Especial:SubirArchivo" "Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US) AppleWebKit/533.4 (KHTML, like Gecko) Chrome/5.0.375.70 Safari/533.4" 195.76.37.40 10:06, 29 December 2010 (UTC)
- Hi again, hoping to get some help. Finally we activated php logs, but being not an expert, the only lines which sounds strange to me are the following (I hide the DB name for security reasons; "Maquinista" is a SysOp):
- Connecting to (xxxx)
- SQL: SET /* DatabaseMysql::open Maquinista */ NAMES utf8
- SQL: SET /* DatabaseMysql::open Maquinista */ sql_mode =
- Connected
- SQL: SELECT /* SqlBagOStuff::get Maquinista */ value,exptime FROM `objectcache` WHERE keyname = 'XXXX:messages:es' LIMIT 1
- MessageCache::load: Loading es... got from global cache
- Zend Optimizer detected; skipping debug_backtrace for safety.
- Unstubbing $wgParser on call of $wgParser::firstCallInit from unknown
- SQL: SELECT /* LCStore_DB::get Maquinista */ lc_value FROM `l10n_cache` WHERE lc_lang = 'es' AND lc_key = 'magicWords' LIMIT 1
- SQL: SELECT /* LCStore_DB::get Maquinista */ lc_value FROM `l10n_cache` WHERE lc_lang = 'es' AND lc_key = 'messages:upload-summary' LIMIT 1
- User::isBlocked: enter
- User::getBlockedStatus: checking...
- IP: 195.76.37.40
- Block::load: , '1', 1
- SQL: SELECT /* Block::load Maquinista */ * FROM `ipblocks` WHERE ipb_user = '1'
- SQL: SELECT /* LCStore_DB::get Maquinista */ lc_value FROM `l10n_cache` WHERE lc_lang = 'es' AND lc_key = 'messages:size-megabytes' LIMIT 1
- SQL: SELECT /* LCStore_DB::get Maquinista */ lc_value FROM `l10n_cache` WHERE lc_lang = 'es' AND lc_key = 'separatorTransformTable' LIMIT 1
- SQL: SELECT /* LCStore_DB::get Maquinista */ lc_value FROM `l10n_cache` WHERE lc_lang = 'es' AND lc_key = 'digitTransformTable' LIMIT 1
- SQL: SELECT /* LCStore_DB::get Maquinista */ lc_value FROM `l10n_cache` WHERE lc_lang = 'es' AND lc_key = 'messages:upload-maxfilesize' LIMIT 1
- Zend Optimizer detected; skipping debug_backtrace for safety.
- Class SkinMonobook not found; skipped loading
- SQL: SELECT /* LCStore_DB::get Maquinista */ lc_value FROM `l10n_cache` WHERE lc_lang = 'es' AND lc_key = 'linkPrefixExtension' LIMIT 1
- SQL: SELECT /* LCStore_DB::get Maquinista */ lc_value FROM `l10n_cache` WHERE lc_lang = 'es' AND lc_key = 'messages:upload_source_file' LIMIT 1
- SQL: SELECT /* LCStore_DB::get Maquinista */ lc_value FROM `l10n_cache` WHERE lc_lang = 'es' AND lc_key = 'messages:comma-separator' LIMIT 1
- SQL: SELECT /* LCStore_DB::get Maquinista */ lc_value FROM `l10n_cache` WHERE lc_lang = 'es' AND lc_key = 'messages:upload-permitted' LIMIT 1
- Zend Optimizer detected; skipping debug_backtrace for safety.
- Thanks in advance- 195.76.37.40 19:08, 29 December 2010 (UTC)
- That looks like the access log, not the error log. âEmufarmers(T|C) 19:10, 29 December 2010 (UTC)
- It is the one stored at /mediawiki/temp/debug.log
- I'm wrong? 195.76.37.40 19:34, 29 December 2010 (UTC)
(RESOLVED) Error after "successfull" install
Hi! After installing 1.16.0 with MySQL 5.0.91 and php 5.2.9 at http://eba-stats.com/mediawiki after receiving the announce "Installation successful!" and moved the config/LocalSettings.php file to the parent directory ( public_html/mediawiki/ ) and deleted the config directory and changed LocalSettings.php permission to 600, click on "then follow this link to your wiki." I receive this warning:
Warning: require_once(/home/ebaxst03/public_html/mediawiki/LocalSettings.php) [function.require-once]: failed to open stream: Permission denied in /home/ebaxst03/public_html/mediawiki/includes/WebStart.php on line 116
Fatal error: require_once() [function.require]: Failed opening required '/home/ebaxst03/public_html/mediawiki/LocalSettings.php' (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/ebaxst03/public_html/mediawiki/includes/WebStart.php on line 116
I did not found this errors in the docs.
Thanks in advance for your help !
R.Eduardo [7] 79.177.35.109 (talk) 22:16, 28 December 2010 (UTC)
- LocalSettings.php needs to be readable by the web server. If you can change its group to that of the web server, you should be able to get away with setting its permissions to 640. Otherwise, you'll need 644. âEmufarmers(T|C) 22:26, 28 December 2010 (UTC)
- Hi Emufarmers... 644 was the right option ! Thanks a lot for your HELP ! ...and now TO STUDY ! 79.177.35.109 12:48, 29 December 2010 (UTC)
Ignore translated tags
Hello, how can I change the localization of my wiki, but without changing the tags for editing, I hate excel for doing it, is there a way to remove it from mediawiki???
Thanks all 189.2.160.146 (talk) 11:49, 29 December 2010 (UTC)
(SOLVED) Error creating thumbnail: convert.exe: unable to open image (picture location) Permission denied @ blob.c/OpenBlob/2480.
Same problem as listed here: Project:Support desk/Archives/Images/002#Error creating thumbnail: convert.exe: unable to open image :Permission denied .40 blob.c.2FOpenBlob.2F2439
The solution was to turn off Imagemagick. I did that, and the problem went away, but the images, particularly small icons, were pixelated and ugly. So turning back on Imagemagick, and the problem returns.
the (nearly) complete error looks like this:
- Error creating thumbnail: convert.exe: unable to open image (folders)/public_html/deadrisingwiki.com/public/w/images/thumb/d/d8/CaseWest_04.jpg/120px-CaseWest_04.jpg Permission denied @ blob.c/OpenBlob/2480.
Update:
Searching the web I found this solution:
"the directory had the wrong owner and couldn't be written to."[8]
How do I go about doing this?
i posted a question on this editors talk page also.
Update 2:
Response from User_talk:Porplemontage at halopedian.com:
- Well, after the move some of the thumb directories had the owner of root instead of nobody. I just go log into the server using WinSCP and change the owner on the problematic directory to nobody.
I am not sure how this is done. But I will update this thread when I find out.
SOLUTION
Problem: The directories were owned by root.
Solved by User:Emufarmers. This is my own summary:
Use chown to make the directories owned by the correct user. (The correct user varies) Adamtheclown (talk) 15:04, 29 December 2010 (UTC)
[SOLVED] Do NOT Succeed to enter as ADMIN
Hi! Some problems configuring a fresh Mediawiki 1.16...
It seem the installer failed to create the default user or I don't find him !
As said in the docs no more AdminSettings.php, but in LocalSettings.php I don't succeed to find...
- $wgDBadminuser -
- $wgDBadminpassword - the password for the wgDBadminuser account.
- $wgEnableProfileInfo
I use the data of the database as said in the docs, and I don't reach to any place... only proposes to me to create a new user...
and if I run maintenance/createAndPromote.php I reach to....
URL: http://sites.google.com/site/blockacountry/blocked Message: The page you are requesting is blocked web banner design Access to this website has been denied by the service of http://www.blockacountry.com
Created a user "admin", as with another programs... but is a regular user... how to change his name now, he is NOT the admin ?
Thanks in advance !
REduardo http://eba-stats.com/mediawiki 79.177.35.109 (talk) 20:59, 29 December 2010 (UTC)
- You can't run maintenance scripts from browser, see other alternatives at FAQ#Initial user was not created by installer or it is not an administrator. Max Semenik 17:58, 30 December 2010 (UTC)
- Hi!
- My tech in my hosting server run for me the script... BUT NOW I reach to the regular user page... HOW to admin ?
- They say they run the scrip as written here:
- Execute maintenance/createAndPromote.php --username <new user name> --password <password for that user> from the shell. Append --bureaucrat to command line if you want that user to become a bureaucrat, in addition to becoming an administrator.
- and added bureaucrat to command line .... ! 79.178.4.152 09:07, 1 January 2011 (UTC)
- I am really LOST !
- I deleted both regular users, and my tech from the server indicated how to use the "SHELL" and did:
- root@vps [/home/xxxxxx/public_html/mediawiki/maintenance]#
- root@vps [/home/xxxxxx/public_html/mediawiki/maintenance]#
- php createAndPromote.php --username nnnnnn --password 123456 --bureaucrat
- xxxxxxxxx_wiki: Creating and promoting User:nnnnnn...done.
- and again I enter as a regular user, where can I admin ?
- WHERE EXACTLY to do this:
* Execute the following SQL statement against the database:
o INSERT INTO user_groups ( ug_user, ug_group ) VALUES ( <id>, 'bureaucrat' ), ( <id>, 'sysop' );
- <id> above should be replaced with the appropriate user ID which you can see on the user's preference page 79.178.4.152 13:01, 1 January 2011 (UTC)
- Are you sure that you do not have admin rights? If you go to Special:ListUsers does it show up in the sysop and bureaucrat group? -- Bryan (talk|commons) 08:21, 3 January 2011 (UTC)
- That's the problem, I have no
- Special:ListUsers
- option in myleft menu nor other admin options when I am logued with my and unique account.. 79.179.40.244 15:26, 8 January 2011 (UTC)
- Special:ListUsers is available to all users. Type it into your wiki's search box to get there. From there, you will be able to see what groups each user is a member of. Reach Out to the Truth 02:59, 9 January 2011 (UTC)
- Note that the admin options are on the top menu and not on the left menu. If you are using the vector skin they are hidden under the arrow. -- Bryan (talk|commons) 20:10, 9 January 2011 (UTC)
- Ok! Found the Special:ListUsers but by means of the search box... no by means any admin menu. I am in the list as â(bureaucrat, administrator) but where is my menu ? Using the skin originally downloaded and whre is tha "arrow" ? 79.179.19.134 20:33, 18 January 2011 (UTC)
- What kind of "admin menu" are looking for? By default, the only menu that points to Special:ListUsers is Special:SpecialPages. You can get to that page from the menu on the left, and the link to the user list is in the "Users and rights" section.
- The Admin Links extension provides an easily accessible "admin links" page, and one of those links is the user list. Is that what you're looking for? Reach Out to the Truth 21:11, 18 January 2011 (UTC)
- I have no any Special:ListUsers nor Special:SpecialPages on any menu on the left.... and logically no "Users and rights" section nowhere... azarober 23:20, 19 January 2011 (UTC)
- Special:SpecialPages is listed as "Special pages" in the "Toolbox" section of the left bar on every page. Reach Out to the Truth 00:40, 20 January 2011 (UTC)
- Cheers ! Finally FOUND... but I entred to special pages, without being logged in and at the botom of the Special Pages there is the section Othre Pages and appear the Admin Links... is it not to be private ONLY to the sysop or administrator of the wiki ? Everyone can admin the mediawiki ? azarober 08:51, 20 January 2011 (UTC)
- Admin Links merely provides links to existing functions; it performs no actions of its own. If you try to perform an admin-only action like editing system messages without having the required rights, MediaWiki will still prevent you from doing it. Admin Links is simply a convenience tool to make things easier for the wiki's administrators.
- For normal users, Special:SpecialPages is the only place they'll find a link to the page; not because it's too powerful, but simply because it's not very useful for normal users. The restricted functionality is already restricted. Reach Out to the Truth 14:24, 20 January 2011 (UTC)
- Thanks a lot for your amability ! This issue was solved with your help !
- Roberto 79.183.20.241 23:00, 20 January 2011 (UTC)
- Cheers ! Finally FOUND... but I entred to special pages, without being logged in and at the botom of the Special Pages there is the section Othre Pages and appear the Admin Links... is it not to be private ONLY to the sysop or administrator of the wiki ? Everyone can admin the mediawiki ? azarober 08:51, 20 January 2011 (UTC)
- Special:SpecialPages is listed as "Special pages" in the "Toolbox" section of the left bar on every page. Reach Out to the Truth 00:40, 20 January 2011 (UTC)
- I have no any Special:ListUsers nor Special:SpecialPages on any menu on the left.... and logically no "Users and rights" section nowhere... azarober 23:20, 19 January 2011 (UTC)
- sorry for the double post... 79.179.19.134 20:39, 18 January 2011 (UTC)
- Ok! Found the Special:ListUsers but by means of the search box... no by means any admin menu. I am in the list as â(bureaucrat, administrator) but where is my menu ? Using the skin originally downloaded and whre is tha "arrow" ? 79.179.19.134 20:33, 18 January 2011 (UTC)
- Are you sure that you do not have admin rights? If you go to Special:ListUsers does it show up in the sysop and bureaucrat group? -- Bryan (talk|commons) 08:21, 3 January 2011 (UTC)
- I had this problem. See here for solution:
- http://www.mediawiki.org/wiki/Manual:Setting_user_rights_in_MediaWiki Using phpMyAdmin Ron Barker 08:35, 10 January 2011 (UTC)
- I have no any Special:ListUsers nor Special:SpecialPages on any menu on the left.... and logically no "Users and rights" section nowhere... azarober 23:22, 19 January 2011 (UTC)
Redirect to an external webpage script.
Hi all,
I was wondering if anyone could give me a quick fix? I would like to redirect users upon clicking on a username to an external webpage
eg. Clicking on the user 'Admin' does not redirect to /index.php/User:Admin but instead redirects to http://otherwebsite.com/Admin
Is this possible? If so, how?
Thanks in advance,
Mark Mhahnel (talk) 19:01, 30 December 2010 (UTC)
No Image: or File: required for gallery tag like wikia
Our wiki just transferred from wikia. In the <gallery> tags on wikia, you don't need image: or file: how can I do this on my wiki?
For example on wikia this works, on regular mediawiki it does not:
<gallery>
thequickfox.png
overthemoon.png
elephant.gif
</gallery>
Update
According to Wikia editors, Wikia uses an extension called Photo Gallery, Version 4.0 to not require file and image. http://community.wikia.com/wiki/Special:Version Now to find this extension....
Update
Possible solution found here: [9]
UPDATE: SOLUTION!!!!
SOLUTION which works!:
In: \includes\parser\Parser.php
Change: $tp = Title::newFromText( $matches[1]/*, NS_FILE*/ );
To: $tp = Title::newFromText( $matches[1], NS_FILE );
Where this line is found in Parser.php. with revised line shown: |
---|
function renderImageGallery( $text, $params ) { $ig = new ImageGallery(); $ig->setContextTitle( $this->mTitle ); $ig->setShowBytes( false ); $ig->setShowFilename( false ); $ig->setParser( $this ); $ig->setHideBadImages(); $ig->setAttributes( Sanitizer::validateTagAttributes( $params, 'table' ) ); $ig->useSkin( $this->mOptions->getSkin() ); $ig->mRevisionId = $this->mRevisionId; if( isset( $params['caption'] ) ) { $caption = $params['caption']; $caption = htmlspecialchars( $caption ); $caption = $this->replaceInternalLinks( $caption ); $ig->setCaptionHtml( $caption ); } if( isset( $params['perrow'] ) ) { $ig->setPerRow( $params['perrow'] ); } if( isset( $params['widths'] ) ) { $ig->setWidths( $params['widths'] ); } if( isset( $params['heights'] ) ) { $ig->setHeights( $params['heights'] ); } wfRunHooks( 'BeforeParserrenderImageGallery', array( &$this, &$ig ) ); $lines = StringUtils::explode( "\n", $text ); foreach ( $lines as $line ) { # match lines like these: # Image:someimage.jpg|This is some image $matches = array(); preg_match( "/^([^|]+)(\\|(.*))?$/", $line, $matches ); # Skip empty lines if ( count( $matches ) == 0 ) { continue; } if ( strpos( $matches[0], '%' ) !== false ) $matches[1] = urldecode( $matches[1] ); $tp = Title::newFromText( $matches[1]/*, NS_FILE*/ ); $nt =& $tp; if( is_null( $nt ) ) { # Bogus title. Ignore these so we don't bomb out later. continue; } if ( isset( $matches[3] ) ) { $label = $matches[3]; } else { $label = ''; } $html = $this->recursiveTagParse( trim( $label ) ); $ig->add( $nt, $html ); # Only add real images (bug #5586) if ( $nt->getNamespace() == NS_FILE ) { $this->mOutput->addImage( $nt->getDBkey() ); } } return $ig->toHTML(); } |
Original post: [10] Adamtheclown (talk) 09:06, 31 December 2010 (UTC)