At my company, we are thinking about replacing MediaWiki's uploaded file
tree (/w/images) with a third-party content management system (CMS), as
transparently as possible. An example might be a subversion repository,
WebDAV system, or Microsoft SharePoint. What would people recommend as
the most MW-compatible way to do this, using extensions when possible,
likely to survive MW updates, and without making big changes to the core
MediaWiki source code?
I think the major integration points are:
- Image pages (e.g., Image:Foobar.jpg), which must retrieve the uploaded
file and the revision history from the CMS
- Image links, e.g., [[Image:Foobar.jpg]], which must retrieve the
uploaded file from the CMS
- Media links, which must access the uploaded file within the CMS and
render a useful link
- Special:Upload, which must add new revisions to the CMS
- The various other File-related special pages like Special:Imagelist,
Special:Newimages, etc.
I see a few helpful hooks: ImageOpenShowImageInlineBefore in
ImagePage.php, BadImage in ImageFunctions.php,
BeforeParserrenderImageGallery and BeforeParserMakeImageLinkObj in
Parser.php, etc. I am comfortable adding new hooks, but if possible
would like not to make any other core code modifications.
Thanks for any tips.
DanB
Hello All,
To automatize mediawiki installation I need command line script, with
functionality like config/index.php script(i.e. creation databases etc). But
without any interaction with user and access from command line - not web
server. I've already have LocalSettings.php with configured database access.
It should be similar to SMW_setup.php script for SemanticMedia wiki
extension or SemanticMediaWiki Halo extension.
May be such script already exists, or installation action can be performed
with some combination of scripts in maintance folder?
Thanks,
Egor
Hi all,
I'm trying to add an edit link in the returnto message, after
logging in, but until now I've found no solution without patching
OutputPage. I've tried tags and magic words out, but they get
expanded before $1 is replaced by its value. Is it possible to
add it without hacking a MadiaWiki file?
Javier
PS. BTW, the code is the following:
public function addReturnTo( $title ) {
global $wgUser; // Wikilengua: añadido parámetro con edit.
if ( $title != 'Portada' and $wgUser->isLoggedIn() ) { // O
isAllowed('edit')?
$elink = ' (' . $wgUser->getSkin()->makeLinkObj( $title, 'editar',
'action=edit' ) . ')';
} else {
$elink = '';
}
$link = wfMsg( 'returnto', $wgUser->getSkin()->makeLinkObj( $title ) .
$elink );
$this->addHtml( "<p>{$link}</p>\n" );
}
>>Does the server have mod_security enabled? It is known to block some
words, paranoically thinking it's an injection attack.
How check that? I checked the phpinfo output and mod_security was not
there. Mine is LAMPP default installation.
Regards,
Jack
----------------------------------------------------------------
"May He protect us both. May He cause us both to enjoy.May we exert
together. May our studies become brilliant. May we not hate each other"
-----Original Message-----
From: mediawiki-l-bounces(a)lists.wikimedia.org
[mailto:mediawiki-l-bounces@lists.wikimedia.org] On Behalf Of Platonides
Sent: Monday, March 17, 2008 7:32 PM
To: mediawiki-l(a)lists.wikimedia.org
Subject: Re: [Mediawiki-l] Strange problem with search
Jack Eapen C wrote:
> Hi All,
>
> I'hv a strange problem with my MW 1.11. I have a test version on my
> local Windows machine and the live one on a linux server (intranet). I
> don't know when this problem started coming-not sure whether it has
> been there since beginning or it started after some changes.
>
> When I search with SOME keywords, my production wiki returns a "blank"
> page. If I use the same words on the test wiki, no probs-results are
> returned (content in both wikis are same). Some of the problematic
> words are "transaction" (transaction backout has no problem),
> function, cards (plastic cards is fine), account etc. I tried to
> reproduce the problem in the test wiki by copying SearchEngine.php,
> SearchMySQL.php,SearchMySQL4.php,SpecialSearch.php files from live
> wiki to my test wiki- but the test wiki still runs fine.
>
> Any idea for the possible cause and solutions?
>
> Regards,
>
> Jack Eapen C
> SunTec Knowledge Centre
Does the server have mod_security enabled? It is known to block some
words, paranoically thinking it's an injection attack.
_______________________________________________
MediaWiki-l mailing list
MediaWiki-l(a)lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/mediawiki-l
This electronic mail (including any attachment thereto) may be confidential and privileged and is intended only for the individual or entity named above. Any unauthorized use, printing, copying, disclosure or dissemination of this communication may be subject to legal restriction or sanction. Accordingly, if you are not the intended recipient, please notify the sender by replying to this email immediately and delete this email (and any attachment thereto) from your computer system...Thank You
I'm trying to use "curl" to perform article edits and saves so I can
reproduce an intermittent problem. (PHP is producing hanging processes
when invoking external programs via "cmd", on Windows 2003 Server.)
Each time I try, I get the mediawiki error:
"Sorry! We could not process your edit due to a loss of session data.
Please try again. If it still doesn't work, try logging out and logging
back in."
Here's what I'm trying, based on the current cookies in my browser and
the form fields on the edit page. Any tips? Any better way to do this?
curl \
-c 'wikidb_vpw_UserName=Jsmith' \
-c 'wikidb_vpw_UserID=5' \
-c 'wikidb_vpw_LoggedOut=20080317144239' \
-c 'wikidb_vpw_Token=<my current token goes here>' \
-c 'wikidb_vpw__session=<my current session goes here>' \
-F 'wpTextbox1=(a)debug-php-hangs.txt' \
-F 'wpSection=' \
-F 'wpStarttime=20080317162446' \
-F 'wpEdittime=20080317162432' \
-F 'wpScrolltop=' \
-F 'wpSummary=bughunt' \
http://mywiki.com/w/index.php?title=mypage&action=submit
Thanks,
DanB
Dear all,
It seems that the default behavior for special pages's HTML text in terms of
meta name "keywords" and "robots" is that there is no meta name for
keywords, and the meta name for robots is <meta name="robots"
content="noindex,nofollow" /> for meta name robots. This makes a lot of
sense. However, in my case, I have some special pages (
http://ChinaTravelGuide.com/ctgwiki/Special:CNExchangeSearch,
http://ChinaTravelGuide.com/ctgwiki/Special:CNWeatherSearch, etc.) that I
prefer to have them indexed with following links, as well as with meta name
keywords.
It looks like I can overwrite the robot policy in a specific special page by
doing $wgOut->setRobotPolicy( "index,follow" ); but I was wondering if folks
here know how to turn on "keywords" meta name before I dig deeper into the
source code. I'd perfer not to touch Mediawiki source code for future
upgrade reasons.
Thanks for the advice.
Jay Fang
ChinaTravelGuide.com
Hi,
are there automatic tasks like creating the index?
Thanks, Helmut
--
No Swen today, my love has gone away
My mailbox stands for lorn, a symbol of the dawn
Hello,
We moved our site to a new server. The previous MediaWiki install was
from the 1.4.x series. On the new server I installed 1.12.x.
I am trying to log into the old server's Wiki, but I keep getting
redirected to our domain name. I would like to stay on the old server
(which is not under our domain name anymore).
What I mean, is that I am typing our old server's IP address in the
web browser "http://XX.XX.XX.XX/MediaWiki/", but I am getting
forwarded to "http://www.ourwebsite.com/MediaWiki/index.php"
Is there a way to force MediaWiki to stay on the server and forward me
to "http://XX.XX.XX.XX/MediaWiki/index.php")?
After reading the documentation I tried using $wgServer and
$wgServerName variables and setting those both to XX.XX.XX.XX
$wgServer = 'http://66.29.53.175';
$wgServerName = 'http://66.29.53.175';
Unfortunately it did not work. I am still getting forwarded to our
domain name.
How could I access our old MW install on the old server?
Thank you,
Andras
Hi All,
I'hv a strange problem with my MW 1.11. I have a test version on my
local Windows machine and the live one on a linux server (intranet). I
don't know when this problem started coming-not sure whether it has been
there since beginning or it started after some changes.
When I search with SOME keywords, my production wiki returns a "blank"
page. If I use the same words on the test wiki, no probs-results are
returned (content in both wikis are same). Some of the problematic words
are "transaction" (transaction backout has no problem), function, cards
(plastic cards is fine), account etc. I tried to reproduce the problem
in the test wiki by copying SearchEngine.php,
SearchMySQL.php,SearchMySQL4.php,SpecialSearch.php files from live wiki
to my test wiki- but the test wiki still runs fine.
Any idea for the possible cause and solutions?
Regards,
Jack Eapen C
SunTec Knowledge Centre
------------------------------------------------------------------------
------------
"Management is doing things right; leadership is doing the right things"
This electronic mail (including any attachment thereto) may be confidential and privileged and is intended only for the individual or entity named above. Any unauthorized use, printing, copying, disclosure or dissemination of this communication may be subject to legal restriction or sanction. Accordingly, if you are not the intended recipient, please notify the sender by replying to this email immediately and delete this email (and any attachment thereto) from your computer system...Thank You