Timwi | 1 Feb 2004 15:37
Picon
Gravatar

Re: Troubles with MediaWiki namespace

Timwi wrote:

> Unfortunately, {{msg:Blah}} is being replaced by nothing (i.e. it is 
> just being removed) even though [[MediaWiki:Blah]] does contain text.

After two days of tweaking, I found out that the solution was to put

     $wgUseDatabaseMessages = true;

into LocalSettings.php.

Why is this off by default?

Timwi
Chris Croome | 1 Feb 2004 23:29
Picon
Favicon

Re: Re: Troubles with MediaWiki namespace

Hi

On Sun 01-Feb-2004 at 02:37:04PM +0000, Timwi wrote:
> 
> After two days of tweaking, I found out that the solution was to put
> 
>     $wgUseDatabaseMessages = true;
> 
> into LocalSettings.php.
> 
> Why is this off by default?

I asked about this on the #mediawiki irc channel and Tim explained
why it is off by default and how to turn it on and why one should
only have it on if memcached is running
(http://www.danga.com/memcached).

I'd suggest that it is added to LocalSettings.php, set to false and
has a comment explaining why it is turned off...

In my experience there is not an issue on a not-very-busy web
site with having it on... YMMV

Chris

--

-- 
Chris Croome                               <chris@...>
web design                             http://www.webarchitects.co.uk/ 
web content management                               http://mkdoc.com/   
(Continue reading)

Timwi | 2 Feb 2004 01:27
Picon
Gravatar

Re: Troubles with MediaWiki namespace

Chris Croome wrote:

> On Sun 01-Feb-2004 at 02:37:04PM +0000, Timwi wrote:
> 
>>After two days of tweaking, I found out that the solution was to put
>>
>>    $wgUseDatabaseMessages = true;
>>
>>into LocalSettings.php.
>>
>>Why is this off by default?
> 
> I asked about this on the #mediawiki irc channel and Tim explained
> why it is off by default and how to turn it on and why one should
> only have it on if memcached is running
> (http://www.danga.com/memcached).

I've investigated a bit more and found out that if you turn this option 
on, then it uses the MediaWiki namespace for all messages all over the 
user interface. That, of course, should be off by default because it is 
very database-intensive without memcached.

Honestly, that option should be entirely separate from the {{msg:}} and 
{{subst:}} functionality. Combining them into one seems rather silly. 
Unfortunately, I don't have enough time to try and understand the code 
enough to do this myself :( Anyone wanna do this? I want to use the 
Language.php file to customise the messages, but I still want to be able 
to use the MediaWiki namespace for {{msg:}} and {{subst:}}.

Greetings,
(Continue reading)

Favicon

mediawiki on freebsd?


Hey all,

I am thinking about adding mediawiki to the freebsd ports. Does anybody
on the list have experience installing mediawiki on freebsd "by hand"?
I'd like to get your input on things to watch out for.

--

-- 
Jim Vanderveen (CSUS Water Programs) <jim.vanderveen@...>
IT Administrator, Water Programs, Cal State Univ Sacramento
PGP/GPG key id: 4F449230 <http://www.owp.csus.edu/~vanderveenj/pgp/>
Fingerprint: 01D3 F3A7 CA0D 75A3 887B  B787 8A15 EBE2 4F44 9230
Brion Vibber | 2 Feb 2004 05:14
Picon
Favicon
Gravatar

Re: mediawiki on freebsd?

On Feb 1, 2004, at 19:54, Jim Vanderveen, IT Administrator wrote:
> I am thinking about adding mediawiki to the freebsd ports. Does anybody
> on the list have experience installing mediawiki on freebsd "by hand"?
> I'd like to get your input on things to watch out for.

I run MediaWiki on my test box running FreeBSD 5.2. Some pointers:
http://meta.wikipedia.org/wiki/Running_MediaWiki_on_FreeBSD

-- brion vibber (brion  <at>  pobox.com)
_______________________________________________
MediaWiki-l mailing list
MediaWiki-l@...
http://mail.wikipedia.org/mailman/listinfo/mediawiki-l
Andreas Schwarz | 3 Feb 2004 18:35

Math Problems

Hello,

I installed Mediawiki 1.1.0, but there are no PNG images generated for
math formulas.

latex, dvips and convert are in the path and executable by the
webserver, and the following paths are writable:

$wgMathDirectory    = "/var/www/wiki.mikrocontroller.net/upload/math";
$wgTmpDirectory     = "/var/www/wiki.mikrocontroller.net/upload/tmp";

HTML formulas are displayed correctly, but no PNG image is created, both
$wgMathDirectory and $wgTmpDirectory are empty. The following message
appears in the Apache error log every time a formula is changed:

This is dvips(k) 5.86e Copyright 2001 Radical Eye Software (www.radicaleye.com)
' TeX output 2004.02.03:1832' -> 
<texc.pro>. [1]

Any hints?

Andreas
Brion Vibber | 3 Feb 2004 20:54
Picon
Favicon
Gravatar

Re: Math Problems

On Feb 3, 2004, at 09:35, Andreas Schwarz wrote:
> HTML formulas are displayed correctly, but no PNG image is created,  
> both
> $wgMathDirectory and $wgTmpDirectory are empty. The following message
> appears in the Apache error log every time a formula is changed:

Please see the updated README file:
http://cvs.sourceforge.net/viewcvs.py/*checkout*/wikipedia/phase3/math/ 
README?content-type=text%2Fplain&rev=1.4

First, stop texvc from deleting its temporary files. Edit render.ml and  
add (* and *) around the 'Sys.remove' calls in unlink_all() to comment  
them out. (Or just delete the lines.) Recompile texvc. This should  
leave some fun looking files in the tmp directory on the next run. Try  
manually converting the DVI file:

   dvips -R -E longtempfilename.dvi -f >output.eps

See if that looks ok.

Now convert that to PNG:

   convert -quality 100 -density 120 ps:- output.png <output.eps

Error messages from this last step are for some reason suppressed...  
Note that convert shells out to Ghostscript (gs) among other things.

If you're lucky you'll see some obvious problem that can be corrected.  
:) The Internet-Encyclopedia folks had a terrible time getting this  
working because their login environment was, it turned out, on a  
(Continue reading)

Chris Croome | 5 Feb 2004 14:10
Picon
Favicon

Re: Changing the $wgSitename with the MediaWiki namespace enabled

Hi

On Thu 05-Feb-2004 at 11:22:14AM +0000, Chris Croome wrote:
> 
> If the MediaWiki namespace stuff is not enabled than changing the
> site name is simply a metter of editing LocalSettings.php and
> changing $wgSitename.
> 
> However if $wgUseDatabaseMessages is set to true then I can't see
> how to change $wgSitename -- several people tried to help with
> this on the IRC channel yesterday we didn't get anywhere.

OK, the problem seems to be mostly my confustion :-)

If $wgUseDatabaseMessages is set to true and you need to change the
$wgSitename after an install you need to edit quite a lot of the
strings listed here in order to get rid of the old title:

  http://meta.wikipedia.org/wiki/Meta:MediaWiki_namespace_text

I think that is the answer :-)

Chris

--

-- 
Chris Croome                               <chris@...>
web design                             http://www.webarchitects.co.uk/ 
web content management                               http://mkdoc.com/   
Andreas Schwarz | 5 Feb 2004 19:05

Re: Math Problems

Brion Vibber wrote:
> 
> On Feb 3, 2004, at 09:35, Andreas Schwarz wrote:
>> HTML formulas are displayed correctly, but no PNG image is created,  
>> both
>> $wgMathDirectory and $wgTmpDirectory are empty. The following message
>> appears in the Apache error log every time a formula is changed:
> 
> Please see the updated README file:
> http://cvs.sourceforge.net/viewcvs.py/*checkout*/wikipedia/phase3/math/ 
> README?content-type=text%2Fplain&rev=1.4
> 
> First, stop texvc from deleting its temporary files. Edit render.ml and  
> add (* and *) around the 'Sys.remove' calls in unlink_all() to comment  
> them out. (Or just delete the lines.) Recompile texvc. This should  
> leave some fun looking files in the tmp directory on the next run. Try  
> manually converting the DVI file:

Thanks, I didn't have ghostscript installed... everything OK now!
Timwi | 6 Feb 2004 23:25
Picon
Gravatar

Re: Changing the $wgSitename with the MediaWiki namespace enabled

Chris Croome wrote:

> If $wgUseDatabaseMessages is set to true and you need to change the
> $wgSitename after an install you need to edit quite a lot of the
> strings listed here in order to get rid of the old title:
> 
>   http://meta.wikipedia.org/wiki/Meta:MediaWiki_namespace_text

Yes, I had that same "problem" and I had to change them all manually.

I wonder if there is an SQL query that can do this sort of thing.

Timwi

Gmane