When I set up my first MediaWiki (nice work, btw!), I got "Turck MMCache
not installed", even though I had just installed it. (I assume some app
or daemon needed to be reloaded to detect it -- which one?)
Later, when I installed a second wiki, Turck MMCache was detected, and I
activated it. Seeing the result of the activation in LocalSettings.php,
I uncommented the same line for the other wiki --
$wgUseTurckShm = function_exists( 'mmcache_get' ) && php_sapi_name()
== 'apache';
The effect was a messed up cache function -- the second wiki's Main_Page
would consistently display in the first wiki. If I selected [Edit] and
Preview, I would see the first wiki's real Main_Page intact, but saving
it would revert the display to the second wiki's front page.
Nikerabbit on #mediawiki irc diagnosed it and I fixed the problem easily
-- whew. But how do I properly activate Turck MMCache for a wiki that is
already installed?
Dave
I recently migrated a MediaWiki installation (1.4.0) from one server to another (1.4.5).
The database migrated fine; images appear to have migrated fine as well,
but thumbnails are not working.
If I have markup such as:
[[Image:analysis_studio_metadata.png|thumb]]
[[Image:analysis_studio_metadata.png|thumb|180px]]
[[Image:analysis_studio_metadata.png|thumb|120px]]
this renders as HTML:
</p><p><a href="/saspedia/Image:Analysis_studio_metadata.png" class="image" title="thumb"><img src="/saspediawiki/images/0/05/Analysis_studio_metadata.png" alt="thumb" longdesc="/saspedia/Image:Analysis_studio_metadata.png" /></a>
</p><p><a href="/saspedia/Image:Analysis_studio_metadata.png" class="image" title="180px"><img src="/saspediawiki/images/0/05/Analysis_studio_metadata.png" alt="180px" longdesc="/saspedia/Image:Analysis_studio_metadata.png" /></a>
</p><p><a href="/saspedia/Image:Analysis_studio_metadata.png" class="image" title="120px"><img src="/saspediawiki/images/0/05/Analysis_studio_metadata.png" alt="120px" longdesc="/saspedia/Image:Analysis_studio_metadata.png" /></a>
and the page shows full size images and not thumbnails. Clicking on them takes me to the normal image page for the image.
The "thumb" and "180px" and "120px" options are being interpreted as text titles.
On both servers, I have the same set of files & thumbs for this image:
# find . -name "*Analysis_studio_metadata.png"
./thumb/b/b9/800px-Analysis_studio_metadata.png
./thumb/7/7d/180px-Analysis_studio_metadata.png
./thumb/7/7c/120px-Analysis_studio_metadata.png
./0/05/Analysis_studio_metadata.png
I'm not sure how MediaWiki processes thumbnail images... could it be a permission problem, for example? What maps an image name to the "default" thumbnail if no size is given? If it cannot find a thumbnail, will MediaWiki not render a thumbnail?
I have not changed DefaultSettings.php:
$wgUseImageResize = false;
$wgUseSharedUploads = false;
--
David J. Biesack SAS Institute Inc.
(919) 531-7771 SAS Campus Drive
http://www.sas.com Cary, NC 27513
Yeah I'm aware that special pages are php (I made one that's working
beautifully).
I'm just trying to figure out a way to give a new special page a title
without hard-coding it in PHP. I'm pretty sure there is a way to do it
(I looked through my old custom-made special page, and there isn't a
title in there - yet it still has the right title when I browse to it).
I recollect it being something like this, but not quite like this:
http://meta.wikimedia.org/wiki/MediaWiki:Pagetitle
Maybe I'm losing it :).
-----Original Message-----
From: mediawiki-l-bounces(a)Wikimedia.org
[mailto:mediawiki-l-bounces@Wikimedia.org] On Behalf Of Brion Vibber
Sent: Tuesday, June 21, 2005 4:47 PM
To: MediaWiki announcements and site admin list
Subject: Re: [Mediawiki-l] Re: How to create a new Special page
Bart Q. Simon wrote:
> I distinctly remember there was a way to add a title to a special page
> simply by entering in a URL, then adding the title to the wiki edit
> field, and then saving. The new "writing a new special page" how-to is
> very confusing - and it wants me to write PHP to get the title to show
> up. There was an easier way...
>
> I can't find this how-to anywhere- though I'm sure it used to exist.
FX
> can you walk me through how you've added a wiki page title to a
special
> page?
No such thing could possibly exist, because MediaWiki does not contain
any capability to 'create' special pages by editing wiki pages. Special
pages are code modules, defined by hook functions in the code. (Most of
the built-ins are defined in SpecialPage.php; extensions can add their
special pages from the extension initialization function.)
You might be thinking of the ability to customize the user interface
strings; go to Special:Allmessages for a complete list of editable
messages.
-- brion vibber (brion @ pobox.com)
I noticed the other day that wiki commons used index.php when you edit pages
and then didn't use it when you were browsing the site.
How do you set up wikimedia to use index.php only when you are editing
pages?
I know you can remove the extension from the local settings file but how do
you tell it to use the extension when you are editing pages, is there
something in defaultsettings file?
Thanks
Arthur Guy
a star solutions
<mailto:arthur@astarsolutions.co.uk> arthur(a)astarsolutions.co.uk
<http://www.astarsolutions.co.uk> www.astarsolutions.co.uk
audio / video leads adapters and accessories
'a star solutions' disclaimer
The information transmitted is intended only for the person or entity to which it is addressed and may contain confidential and/or privileged material.
If you are not the intended recipient of this message you are hereby notified that any use, review, retransmission, dissemination, distribution, reproduction or any action taken in reliance upon this message is prohibited.
If you received this in error, please contact the sender and delete the material from any computer.
Any views expressed in this message are those of the individual sender and may not necessarily reflect the views of the company.
We believe that this communication is free from viruses and other potentially dangerous programmes, but the recipient opens this communication at their own risk.
We assume no responsibility for any loss or damage arising from the receipt or use of this communication
I distinctly remember there was a way to add a title to a special page
simply by entering in a URL, then adding the title to the wiki edit
field, and then saving. The new "writing a new special page" how-to is
very confusing - and it wants me to write PHP to get the title to show
up. There was an easier way...
I can't find this how-to anywhere- though I'm sure it used to exist. FX
can you walk me through how you've added a wiki page title to a special
page?
Thanks!
-----Original Message-----
From: mediawiki-l-bounces(a)Wikimedia.org
[mailto:mediawiki-l-bounces@Wikimedia.org] On Behalf Of Rick DeNatale
Sent: Thursday, May 19, 2005 2:33 PM
To: MediaWiki announcements and site admin list
Subject: Re: [Mediawiki-l] Re: How to create a new Special page
On 5/13/05, FxParlant <f-x.p(a)laposte.net> wrote:
> Hello;
> There is a paragraph on how to create a special page in the FAQ
>
>
>
http://meta.wikimedia.org/wiki/Meta:FAQ#How_do_I_add_my_own_dynamic_cont
ent_to_MediaWiki.3F
>
> It's not so difficult. At the end,it says you have to create a simple
> page and write the name of your special page in it. If you forget this
> the title of your special page will have < and > around. I
haven't
> got a clue why creating a page with the name in it solves this, but it
works
That page seems to have changed, it now just has a pointer to an
article about writing an extension which really doesn't seem to build
a special page.
I just figured out how to build a new special page which is like the
Uncategorized pages page, but looks at the Image namespace. I wrote it
up at http://meta.wikimedia.org/wiki/Writing_a_new_special_page
_______________________________________________
MediaWiki-l mailing list
MediaWiki-l(a)Wikimedia.org
http://mail.wikipedia.org/mailman/listinfo/mediawiki-l
Hello,
I've been working on a small visual improvement on the
login/registration form of MediaWiki (MediaWiki 1.5 CVS). I wrote a
small JS script, which disables/enables the "Login" and "Create new
account" buttons accordingly; for example, you are not allowed to
click on "Create new account" if you haven't filled in the "retype
password" field. What's more, the code checks if the two passwords
match before the form is sent to the server, and displays a message if
they don't (and also cancels the navigation process and clears the
password fields). If javascript is disabled, the pages will work
normally, as they would without my code.
The only file I modified is /include/templates/Userlogin.php. Since I
don't have CVS write access, I am submitting the modified file here.
If it is possible, I would appreciate it if one of you developers with
read/write CVS access can take a few minutes to check my code and CVS
commit the file. I am attaching the file in this e-mail. Please let me
know if there's something you don't like, or something you'd like me
to add, and please let me know if and when you include my changes to
the CVS (or if you don't, the reasons why you won't)
Thank you in advance :-)
Dionysis Zindros.
Hello.
I'm moving from 1.4.0 to 1.4.5...
It's all Ok until now, except for 2 pages!!!
I have 2 pages that:
* When I use the old version I can see them.
* When I use the new version (against the same
database in mysql) I can's see them !!!
In the second case, the link provides is an edition
link and if I put the url in then browser, the
response is "there's no text...." (in spanish... :-) )
Somebody has a little trick for this?
Thanks.
FDO.
____________________________________________________
Yahoo! Sports
Rekindle the Rivalries. Sign up for Fantasy Football
http://football.fantasysports.yahoo.com
We're using MediaWiki on our corporate Intranet with great results. It's
perfect even for a smaller company.
The configuration is as follows:
MediaWiki (http://wikipedia.sf.net/): 1.4.4
PHP (http://www.php.net/): 4.3.10 (apache2handler)
MySQL (http://www.mysql.com/): 4.0.18-max-debug-log
IIS 5.x
Windows 2000 Server on 2Ghz Pentium 4, 512MB RAM, SCSI RAID array
Also: Apache 2.0.52 for testing
This rather non-trivial server gets a 100% CPU spike for 2 to 5 seconds on
each page view in the wiki. Ugh!
Apache on that same server didn't give any noticable speed improvements.
Just on a whim, I installed the same MediaWiki code on a Linux laptop,
running PHP 4.3.10 and the same Apache version. It's querying the MySQL
database on the main server.
The Linux/PHP/Apache on the Pentium 3 850Mhz laptop with half the RAM is
nearly FOUR times faster! That's half the RAM, a third the CPU speed...
but it dusts Windows 2000.
I can bring up two browser windows, with the Windows wiki in one and the
Linux wiki in the other, and click "Random page" in both windows. I can
click thru 4 or 5 random pages in the Linux instance in the time the
Windows instance brings back one.
To get Windows performance like that, I had to run the PHP code on a dual
CPU P4 with 1GB RAM under Windows 2003 Server.
Are there any optimization options I could be missing? I've already
enabled page caching on the server (works well), installed the Zend
Optimizer (free version), and ensured that I'm not dealing with the
dreaded multi-redirect bug. The CPU hit on the Windows server is huge.
MySQL isn't breaking a sweat at all.