Kasimir Gabert | 1 Sep 2006 01:39
Picon

Loading Recent Changes brings CPU to 100% on server

Hello,

I am still having this problem, although I believe that it is specific
to the settings of MediaWiki, seeing that I have other MediaWiki
installations (also 1.7.1) on the same server, and they do not have
this problem.

When a user loads the recent changes page on my wiki, the CPU
utilization on my server goes up to 99 to 100% for a single Apache
process, and that process stays alive for *exactly* 60 seconds (which
also happens to be the cutoff time for PHP scripts on my server).
This only happens *after* the recent changes page has been sent to the
browser, and the connection has been closed (I have KeepAlive off).

I have no idea what is going on, and any help would be greatly appreciated.

Thanks,
Kasimir Gabert

--

-- 
Kasimir Gabert
Birger | 1 Sep 2006 10:00
Picon

Ifeq parserfunction not interpreting MAGIC WORDS?

Hello there, this is the second time i post this question on this
mailinglist, because i haven't had any reactions the previous time and
in the meanwhile i still could not find a solution myself, so here we
go again (for a last attempt, don't worry ;-):

I am trying to show different images, dependent on some conditions:

Scenario 1: if the current page(name) is the same as a given pagename,
image_1.gif is shown.
Scenario 2: if the current page(name) is not the same as the given pagename, the
existence of the given pagename is checked:
       Scenario 2a: if the given pagename exists, image_2a.gif is shown.
       Scenario 2b: if the given pagename does not exist, image_2b.gif is shown.

So i wrote:
 {{if:
     {{ifeq:
{{NAMESPACE}}:{{PAGENAME}} | {{NAMESPACE}}:{{BASEPAGENAME}}/subpage | true
     }}
 | [[Image = image_1.gif]]
 | {{ifexist:{{NAMESPACE}}:{{BASEPAGENAME}}/subpage
              | [[Image = image_2a.gif]]
              | [[Image = image_2b.gif]]
    }}
 }}

The problem is that image_1.gif does not appear, even if
{{NAMESPACE}}:{{PAGENAME}} has the same value as
{{NAMESPACE}}:{{BASEPAGENAME}}/subpage (e.g. image_2a.gif appears then
instead, because the given pagename
(Continue reading)

Brion Vibber | 1 Sep 2006 10:53
Picon
Favicon
Gravatar

Re: Loading Recent Changes brings CPU to 100% on server

Kasimir Gabert wrote:
> Hello,
> 
> I am still having this problem, although I believe that it is specific
> to the settings of MediaWiki, seeing that I have other MediaWiki
> installations (also 1.7.1) on the same server, and they do not have
> this problem.
> 
> When a user loads the recent changes page on my wiki, the CPU
> utilization on my server goes up to 99 to 100% for a single Apache
> process, and that process stays alive for *exactly* 60 seconds (which
> also happens to be the cutoff time for PHP scripts on my server).
> This only happens *after* the recent changes page has been sent to the
> browser, and the connection has been closed (I have KeepAlive off).
> 
> I have no idea what is going on, and any help would be greatly appreciated.

Connect to the process with gdb and see what it's doing.

-- brion vibber (brion  <at>  pobox.com)

_______________________________________________
MediaWiki-l mailing list
MediaWiki-l@...
http://mail.wikipedia.org/mailman/listinfo/mediawiki-l
Henrik Lindberg | 1 Sep 2006 17:11
Picon
Favicon

Excerpts - how to do them?

Hi, I would like to be able to include/transclude an excerpt from a page.
Can anyone suggest how to do this with MediaWiki?

I have been thinking about several things:
- set up a separate name space like Talk, and associate and place each
  excerpt as a subpage to a page's excerpt page
 - transclude a section, sort of like how Edit of a section works
 - add new tags and hooks
 - use noinclude and includeonly in a clever way using macros

 Has anyone done something like this, and care to share some experiences?

 Thanks
 - henrik
Bekki Janssen | 1 Sep 2006 18:10

Makesysop.php help

Hi,
I got my MediaWiki installation working (1.71)... now I just need to add
the extension Makesysop.php

How do I set it so that the following happens:
http://meta.wikimedia.org/w/index.php?title=Special%3ALog&type=rights&user=
&page=

What I wanted to happen is for user rights to be displayed as:
Testuser changed group membership for Testuser1 <at> testwiki1 from (none) to
sysop, bureaucrat, checkuser, developer
Testuser changed group membership for Anewuser from sysop to sysop,
bureaucrat

I assume I need to install MediaWiki several times... this correct??

Thanks
Bekki

--------------------------------------------------------------------
Get your free email address at http://www.merseymail.com/
Henrik Lindberg | 1 Sep 2006 20:16
Picon
Favicon

Re: Excerpts - how to do them?

Well, I solved it myself - wasn't that difficult using the ParserExtensions 
like if, ifeq.
Here is an example that allows inclusion using different tags.

On a page called Test
<includeonly>
When including this page, this text is always included.
{{#ifeq:{{{tag}}}|foo| FOOTEXT HERE This text is included if this page is 
included with the tag set to foo}}
{{#ifeq:{{{tag}}}|bar| BARTEXT HERE If tag is set to bar, then this text is 
included}}
{{#if:{{{tag}}}| ALL TAGS This text is included if the tag is set to any 
value except being blank | If not tagged, this text is shown.}}
<br>
This text is always included.
</includeonly>
<noinclude>
This is the normal text that is shown on the regular page. It is not 
included anywhere.
</noinclude>
*EOF*

To include/trigger all the different variations on another page :
{{:Test|tag=foo}}
or
{{Test|tag=bar}}
or
{{Test|nonexistant}}
or just
{{Test}}
(Continue reading)

News Assi | 1 Sep 2006 20:30
Picon

Re: Install problem / still get setup page

	Hi,

thanks a lot for your response...

I've donloaded MediaWiki 1.7.1 and extract all files.
Than I've uploaded via FTP all extracted files...
Changed both direcories access rights:
  wiki 777
  wiki/config 777

Than I've opened http://xxx/wiki and get this message
	--- SNIP ---
The MediaWiki logo
MediaWiki 1.7.1
Please setup the wiki first.
	--- SNAP ---

Following link http://xxx/wiki/config/index.php and enter all information:
	--- SNIP ---
application/andrew-inset ez application/mac-binhex40 hqx
application/mac-compactpro cpt application/mathml+xml mathml
application/msword doc application/octet-stream bin dms lha lzh exe
class so dll application/oda oda application/ogg ogg ogm application/pdf
pdf application/postscript ai eps ps application/rdf+xml rdf
application/smil smi smil application/srgs gram application/srgs+xml
grxml application/vnd.mif mif application/vnd.ms-excel xls
application/vnd.ms-powerpoint ppt application/vnd.wap.wbxml wbxml
application/vnd.wap.wmlc wmlc application/vnd.wap.wmlscriptc wmlsc
application/voicexml+xml vxml application/x-bcpio bcpio
application/x-bzip gz bz2 application/x-cdlink vcd
(Continue reading)

Arthur Guy | 1 Sep 2006 21:17

Re: Install problem / still get setup page


Have you copied the automatically generated localsettings.php file from
the config directory to the wiki root?

Arthur
arthur@...
-----Original Message-----

After this, I tried http://xxx/wiki/ and got again that:
	--- SNIP ---
The MediaWiki logo
MediaWiki 1.7.1
Please setup the wiki first.
Tom Purl | 1 Sep 2006 22:07
Gravatar

MediaWiki-Based Issue Tracker

Hi, I've used quite a few wikis in the past but am new to MediaWiki. Any help
you can give me with my question would be greatly appreciated.

I am migrating my MoinMoin wiki to MediaWiki.  The main reason that I use the
MoinMoin wiki is because I have thrown together a rudimentary issue tracker
within it.  Here's basically how it works:

* Each "ticket" is represented by a single wiki page that uses a
particular prefix in its name
* Each ticket contains tags that denote its status, which is something like
this:
    * StatusOpen
    * StatusClosed
    * StatusPendingDefect
* The main page for this issue tracker, which is itself a wiki page, contains
macros that allow me to display a "dashboard" of every single ticket based on
its status.  Here's basically what it looks like:

    Browse Issues
    =============

    Open Issues
    -----------
    1. IssueTracker/This Is Issue A
    2. IssueTracker/This Is Issue B

    Pending Defect
    --------------
    1. IssueTracker/This is yet another issue

(Continue reading)

Max Völkel | 1 Sep 2006 23:37
Picon

Re: MediaWiki-Based Issue Tracker

Hi Tom,

  I  guess  the Semantic MediaWiki extensions might be able to realise
  what  you  have  in mind. You would add a [[Category:Issue]] to each
  page    and   a   [[status:=open]]   or   [[status:=pending]]   or
  [[status:=closed]]. On the main page you can
    <ask>[[Category:Issue]][[status:=open]]</ask>
  to get a list of open issues.

  Come  to  http://www.ontoworld.org  and  take  a  look  a  a running
  MediaWiki with Semantic MediaWiki installed.

Kind regards,

  Max Völkel
--
Dipl.-Inform. Max Völkel, Universität Karlsruhe / FZI
            nepomuk.semanticdesktop.org
voelkel@...   +49 721 9654-854   www.xam.de

Friday, September 1, 2006, 10:07:25 PM, you wrote:

> Hi, I've used quite a few wikis in the past but am new to MediaWiki. Any help
> you can give me with my question would be greatly appreciated.

> I am migrating my MoinMoin wiki to MediaWiki.  The main reason that I use the
> MoinMoin wiki is because I have thrown together a rudimentary issue tracker
> within it.  Here's basically how it works:

> * Each "ticket" is represented by a single wiki page that uses a
(Continue reading)


Gmane