Hello once again,
After receiving a few pointers to the ImageMagic problem (see:
MediaWiki-I Digest, Vol 16, Issue 21 (&22) it looks like it that I have
solved the problem. This is what I did:
Brion and Ashar suggested that the appearance of both / and \ in the
image path might cause the problem. It turned out not to be so. After
digging into the Image.php file (in /includes) I found out that the
escapeshellarg() command in line 450/451 in the renderThumb() function
was the culprit. After outputing the $cmd to the debug log I noticed the
pathname of the source and destination file of the image was enclosed
in single quotes: i.e.
<snip>
C:/convert.exe -quality 85 -background white -geometry 800
'c:\easyphp\www\mediawiki/images/b/b0/IMG_4028.JPG'
'c:\easyphp\www\mediawiki/images/thumb/c/c7/800px-IMG_4028.JPG'
</snip>
Cutting and pasting this command in a dos-shell returned the "invalid
input error" I noticed earlier in the Apache error-log. After manually
removing the quotes the command executed as it should.
I now have removed the escapeshellarg() command from the syntax leaving
the following code:
<snip>
$cmd = $wgImageMagickConvertCommand .
" -quality 85 -background white -geometry {$width} ".
$this->imagePath . " " .
$thumbPath;
</snip>
instead of:
<snip>
$cmd = $wgImageMagickConvertCommand .
" -quality 85 -background white -geometry {$width} ".
escapeshellarg($this->imagePath) . " " .
escapeshellarg($thumbPath);
</snip>
I realize that this is a sort of a hack, because the escapeshellarg()
was put there on purpose (I think...), so it leaves me with a couple of
questions:
1) why does escapeshellarg(string arg) add quotes around arg? (the
PHP.net manual didn't make me wiser), is it a *nix thingy? (alas, I'm
still using Windows)
2) What is (might be) the penalty for removing escapeshellarg() from the
code, what is the rational behind it?
3) Is there a more cleaner way to fix this?
thanks for your time
Diederik Oudshoorn
I've tried to change the navigation links using solution 2 on
http://meta.wikimedia.org/wiki/Quickbar, but no luck so far..
After completing step 2 I managed to change the name of the link, but
the link itself still shows up as "--error:_link_target_missing--". Am
I missing something, or is this functionality broken?
I am using the Special:Categories to get a list of categories.
this generates a list. however, some of the links go to pages, and
some to categories.
eg I get a mix of links like this:
http://wiki.pikkle.com/index.php/Category:Community
which works fine, but also this:
http://wiki.pikkle.com/index.php?title=Category:Customization&action=edit
which just gives a normal page with the name of the category. (and
therefore no way of finding pages which exist within that cat).
Any ideas?
Is there also a way to generate inline a list of pages that ref a
category? So i could for exmaple write an intro the category, and then
have the auto-generated links underneath?
Thanks!
/dc
_______________________________________________
David "DC" Collier
mobile business creator |モバイル・ビジネス・クリエーター
dc(a)pikkle.com
http://www.pikkle.com
+81 (0)90-7414-6107
I want to run ads on a programming wiki I'm setting up. The wiki will
cater to a fairly obscure statistics package that has a devoted cult
following. Any advice and comments about good ad companies to work
with and issues connected to running ads with mediawiki (I'm using
1.3.9, BTW) are welcome.
TIA
I had been running it under php5, but to get access to some templates
I moved back to run under php4.
The first time it ran it gave this error:
[pear_error: message="failed to open stream: Operation not permitted"
code=0 mode=return level=notice prefix="" info=""]
Now, when i go back to PHP5 as the engine (running as CGI) the same
error comes up every time.. seems my wiki is buggered!
Is there a way to fix this and recover the wiki? I imagine it is
unusual to go *backwards* on php version, but maybe someone can
suggest where to look for the above Pear problem. Probably my php4
(provided by ISP) and PHP5 (compiled by me) had some different library
setup that was hard-wired into a settings file. But going back to the
previous environment I am concerned that the error still persists.
By chance does anyone have intuition that If I upgrade the wiki
software (to the current beta CVS version) is there a chance this
problem would go away, or would i just be getting deeper into
confusion?
Thanks,
/dc (who didnt back up the wiki before changing PHP)
_______________________________________________
David "DC" Collier
mobile business creator |モバイル・ビジネス・クリエーター
dc(a)pikkle.com
http://www.pikkle.com
+81 (0)90-7414-6107
We're having a lot of issues with pages (especially re-uploaded images)
not being displayed properly on end-user workstations because the local
browser is caching the pages even though they have been updated.
Obviously manually clearing the cache (globally or with CTRL-F5) fixes
the problem), but this simply doesn't scale well to end users.
We're running MediaWiki on MS IIS 6.0 (Windows 2003) and all users are
using IE 6 to view the site.
Has anyone had experience fixing these types of issues?
I've got "Easy Simple Calendar" (http://www.easilysimplecalendar.com/) up
and running under Mediawiki. The details of what I needed to do to get it
working are here:
http://www.easilysimplecalendar.com/forums/showthread.php?t=2765&highlight=m
ediawiki
Cheers,
al.
-----Original Message-----
From: Mark Rakhmilevich [mailto:Mark.Rakhmilevich@chordiant.com]
Sent: Tuesday, 25 January 2005 1:10 p.m.
To: mediawiki-l(a)Wikimedia.org
Subject: [Mediawiki-l] Looking for a calendar plugin for Mediawiki
Does anyone know of a plugin or similar solution to maintain and update
a calendar on MediaWiki page? I need something that displays one to
three months at a time, allows for navigation to past and future months,
and uses each unique date as a link to a date's page to let my group
maintain some relevant info. I've seen a Calendar plugin mentioned for
Twiki, but don't know if it would work on my MediaWiki site. Thanks for
any ideas or pointers.
-- Mark
_______________________________________________
MediaWiki-l mailing list
MediaWiki-l(a)Wikimedia.org
http://mail.wikipedia.org/mailman/listinfo/mediawiki-l
Hello once again,
After receiving a few pointers to the ImageMagic problem (see:
MediaWiki-I Digest, Vol 16, Issue 21 (&22) it looks like it that I have
solved the problem. This is what I did:
Brion and Ashar suggested that the appearance of both / and \ in the
image path might cause the problem. It turned out not to be so. After
digging into the Image.php file (in /includes) I found out that the
escapeshellarg() command in line 450/451 in the renderThumb() function
was the culprit. After outputing the $cmd to the debug log I noticed the
pathname of the source and destination file of the image was enclosed
in single quotes: i.e.
<snip>
C:/convert.exe -quality 85 -background white -geometry 800
'c:\easyphp\www\mediawiki/images/b/b0/IMG_4028.JPG'
'c:\easyphp\www\mediawiki/images/thumb/c/c7/800px-IMG_4028.JPG'
</snip>
Cutting and pasting this command in a dos-shell returned the "invalid
input error" I noticed earlier in the Apache error-log. After manually
removing the quotes the command executed as it should.
I now have removed the escapeshellarg() command from the syntax leaving
the following code:
<snip>
$cmd = $wgImageMagickConvertCommand .
" -quality 85 -background white -geometry {$width} ".
$this->imagePath . " " .
$thumbPath;
</snip>
instead of:
<snip>
$cmd = $wgImageMagickConvertCommand .
" -quality 85 -background white -geometry {$width} ".
escapeshellarg($this->imagePath) . " " .
escapeshellarg($thumbPath);
</snip>
I realize that this is a sort of a hack, because the escapeshellarg()
was put there on purpose (I think...), so it leaves me with a couple of
questions:
1) why does escapeshellarg(string arg) add quotes around arg? (the
PHP.net manual didn't make me wiser), is it a *nix thingy? (alas, I'm
still using Windows)
2) What is (might be) the penalty for removing escapeshellarg() from the
code, what is the rational behind it?
3) Is there a more cleaner way to fix this?
thanks for your time
Diederik Oudshoorn
I am new to mediawiki, so a couple of questions:
I really want to encourage people to contribute, but out-of-the box
mediawiki seems a bit daunting to users. Maybe the below questions are
just UI tweaks, so I would appreciate any guidance:
* "Guestbook"
is there a way that a familiar "comment" box, or "add stuff here" box
can be added to a page? A little like a very user-friendly guestbook,
or a "comments" box on a blog.
Currently people have to "edit this page" and then users get scared
they might mess up the site.
* Discussion Tab - template?
I notice wikipedia (and many other wikis) have a tab for the
discussion area- is this simply a template within mediawiki, or a
whole different thing? I couldnt find it in out of the box "skins"
setting...
* discussion inline?
Also, can this discussion content be "inline" - eg after the meat of
the page? the items they are discussing? Or always on another tab...
it is hidden and doesnt motivate users to contribute "like others"
* "new page" button
afaik, currently users have to edit a page, add an undefined link,
save page, click link, edit new page.... very lengthy. Is there not
just an "add new page" way to add stuff?
Granted, this would not be obviously linked to anything, but seems
more familiar to people...and new pages would show up in a "whats
new".
Sorry if these seem like basic questions and any help appreciated.
wiki >> http://www.pikkle.com/notes
_______________________________________________
David "DC" Collier
mobile business creator |モバイル・ビジネス・クリエーター
dc(a)pikkle.com
http://www.pikkle.com
+81 (0)90-7414-6107