That only works if you're writing a maintenance script
of course. commandLine.inc (and its parent) bail out if
the sapi != cli.
-Chad
On Jun 29, 2010 10:21 AM, "Daniel Barrett" <danb(a)vistaprint.com> wrote:
What about including "maintenance/commandLine.inc"? That gives scripts
access to lots of MediaWiki functionality.
DanB
_______________________________________________
MediaWiki-l mailing list
MediaWiki-l(a)lists.wikimed...
Is it possible to include LocalSettings.php in an external PHP script
without just getting as output:
"This file is part of MediaWiki and is not a valid entry point"
(I would like to avoid duplication of some configurations, like database
settings)
Best Regards
Samuel
--
Samuel Lampa
---------------------------------------
Biotech Student @ Uppsala University
GSoC Student @ Semantic MediaWiki
---------------------------------------
E-mail: samuel.lampa[at]gmail.com
Mobile: +46 (0)70-2073732
Blog: http://saml.rilspace.org
Twitter: http://twitter.com/samuellampa
---------------------------------------
Dear All,
There is a common workflow to file uploads: type in the name of the file
[[File:Filename.ext]] in the wikipage, save it, click on the link, select
the file for upload and hit upload, then go back to the original page.
With 1.16b3, for some reason, when you select the file, it renames the
destination filename! What a pain! So to add to my misery: I now have to
select the file name and copy to clipboard, select the file, and then paste
the original destination filename.
Anyone else observed this? Any solutions? How did a broken system just
get... brokener?
Douglas
Hi Everybody,
I have been trying to use the pre-packaged installs for mediawiki on my new
ubuntu server and I wanted to abstract away my URL and make it something
more along the lines of /something_descriptive/page rather than
/mediawiki/page. In my previous uses of mediawiki I could do this with a
simple alias; however, the new packages for lucid do not seem to play well
with this. I installed the lamp-server^ and mediawiki packages via apt-get
and have standard configurations. The server without modifiction works fine.
But if I change the Alias statement in /etc/mediawiki/apache.conf it breaks
terribly. For some reason, adding a second Alias statement at the end of my
/etc/apcahe2/apache.conf file will work; however, once the page loads the
displayed URL is still the old style, that is
"/mediawiki/index.php/Main_Page". I suspect the spaghetti mess of symbolic
links in this package is making something go awry. I have tried modifying
the following settings in /etc/mediawiki/LocalSettings.php:
$wqArticlePath
$wgScriptPath
$wgUsePathInfo
The results of various modifications of these have either been a seemingly
working redirect from apache to a blank page with now source. Or a redirect
loop warning. If anybody could help me get these URLs cleaned up I would
really appreciate it. Also, I have been trying to find this for some time,
but is there any place where the ubuntu packages are ACTUALLY documented?
They rarely follow the standard configuration of what they contain (apache,
mysql, etc) and the absurd number of symbolic links in many of them makes
their folder structure almost impossible to navigate around and determine
which files correspond to the original configuration files of the software.
Some package specific documentation resources would really help.
Thanks guys.
Hi,
I am trying to create a template which redirects a page with the initials of
a user as its title to the corresponding user page like so:
Page [[FR]] contains the template {{Initials of|Frank}}.
The template should look like this, but this doesn't work because of the
pound sign.
#REDIRECT [[User:{{{1}}}]]
<nowiki>#</nowiki>REDIRECT [[User:{{{1}}}]] doesn't work either.
I suppose this is too fancy for the wiki engine's parser?
Frank
--
View this message in context: http://old.nabble.com/Creating--REDIRECT-in-a-template-tp28994203p28994203.…
Sent from the WikiMedia General mailing list archive at Nabble.com.
I'm attempting to upload files to my wiki by way of the API. I'm using
version 1.16 beta 3 installed on a CentOS VPS. I am using the API on my mac
using OS X. Here is my command:
curl -b cookies.txt -F token="359d6add9d7d2d7f61c0e47e872d932b+\\" -F
filename="Test.txt" -F "file=whatever" "
http://www.domain.com/w/api.php?action=upload"
If the token is incorrect, I get the appropriate bad token message. But when
it's correct, I get this bizarre response:
<span style="color:blue;"><error code="missingparam"
info="One of the parameters sessionkey, file, url is required"
xml:space="preserve"></span>
Moreover, if I use this command:
curl -b cookies.txt -F token="359d6add9d7d2d7f61c0e47e872d932b+\\" -F
filename="Test.txt" -F file="@filename" "
http://www.domain.com/w/api.php?action=upload"
I get this even more bizarre response:
<span style="color:blue;"><error
code="internal_api_error_MWException" info="Exception Caught:
Internal error in ApiResult::setIndexedTagName: Bad parameter"
xml:space="preserve"></span>
Does anyone have any suggestions?
Thanks,
Douglas
I'd like to be able to run my entire MediaWiki site under SSL.
I can log in via HTTPS but I am redirected to HTTP.
Here's what I'm seeing:
1. Open the site
https://wiki.mysite.com/
2. Click "log in"
https://wiki.mysite.com/index.php?title=Special:UserLogin&returnto=Main_Page
Note: the form submit in the HTML looks like the following:
/index.php?title=Special:UserLogin&action=submitlogin&type=login&returnto=Main_Page
3. I am directed to this page
http://wiki.mysite.com/index.php/Main_Page
I'd like to be directed to
https://wiki.mysite.com/index.php/Main_Page
I was hoping that setting wgProto in my LocalSettings.php would do it, but
that doesn't seem to have any effect.
I am using MediaWiki 1.15.2 on a Linux box with Apache HTTPD and MySQL.
Thanks,
Jeff
Hello,
Rather than uploading images to the wiki, I'd like to link directly to
images on our intranet. How do I do that?
I tried appending LocalSettings.php with $wgAllowExternalImages=true; and
inserting file:///s:\test.gif into a page. This results in an internal link
to the image.
Thanks,
James Streeter
Optiwind
Sorry my first question was in German :)
So here my Problem again.
I have Problems with files wich contains special signs like ä ö etc.
We switched our server and also we updated our wiki software. The Database is still on the same MySQL Server. We didn`t changed anything there. Just updating via the wiki upgrade script.
First we have problems with presenting the data. All special signs was broken. After we changed some settings everything is fine. But still some strange problems occur.
In the List of uploaded files all files are there. But if i click on some of them the wiki is telling me it is not there but i can upload it. But if I click on the directlink on the list of uploaded files i can download it.
This is so strange. I don`t know how to solve. It would be very nice to know why he thinks the file is not there.
Any Idea?
Welcome to mediawiki-l. This mailing list exists for discussion and questions
about the MediaWiki software[0]. Important MediaWiki-related announcements
(such as new versions) are also posted to this list.
Other resources.
If you only wish to receive announcements, you should subscribe to
mediawiki-announce[1] instead.
MediaWiki development discussion, and all Wikimedia technical questions, should
be directed to the wikitech-l[2] mailing list.
Several other MediaWiki-related lists exist:
- mediawiki-api[5] for API discussions,
- mediawiki-enterprise[6] for discussion of MediaWiki in the enterprise,
- mediawiki-cvs[7] for notification of commits to the Subversion repository,
- mediawiki-i18n[8] for discussion of MediaWiki internationalisation support,
- wikibugs-l[9] for notification of changes to the bug tracker.
List administrivia (unsubscribing, list archives).
To unsubscribe from this mailing list, visit [12]. Archives of previous postings
can be found at [3].
This list is also gatewayed to the Gmane NNTP server[4], which you can use to
read and post to the list.
Posting to the list.
Before posting to this list, please read the MediaWiki FAQ[10]. Many common
questions are answered here. You may also search the list archives to see if
your question has been asked before.
Please try to ask your question in a way that enables people to answer you.
Provide all relevant details, explain your problem clearly, etc. You may
wish to read [13], which explains how to ask questions well.
To post to the list, send mail to <mediawiki-l(a)lists.wikimedia.org>. This is a
public list, so you should not include confidential information in mails you
send.
When replying to an existing thread, use the "Reply" or "Followup" feature of
your mail client, so that clients that understand threading can sort your
message properly. When quoting other messages, please use the "inline" quoting
style[11], for clarity.
When creating a new thread, do not reply to an existing message and change the
subject. This will confuse peoples' mail readers, and will result in fewer
people reading your mail. Instead, compose a new message for your post.
Messages posted to the list have the "Reply-To" header set to the mailing list,
which means that by default, replies will go to the entire list. If you are
posting a reply which is only interesting to the original poster, and not the
list in general, you should change the reply to only go to that person. This
avoids cluttering the list with irrelevant traffic.
About this message.
This message is posted to the list once per week by <river(a)wikimedia.org>.
Please contact me if you have any questions or concerns about this mailing.
References.
[0] http://www.mediawiki.org/
[1] http://lists.wikimedia.org/mailman/listinfo/mediawiki-announce
[2] http://lists.wikimedia.org/mailman/listinfo/wikitech-l
[3] http://lists.wikimedia.org/pipermail/mediawiki-l/
[4] http://dir.gmane.org/gmane.org.wikimedia.mediawiki
[5] http://lists.wikimedia.org/mailman/listinfo/mediawiki-api
[6] http://lists.wikimedia.org/mailman/listinfo/mediawiki-enterprise
[7] http://lists.wikimedia.org/mailman/listinfo/mediawiki-cvs
[8] http://lists.wikimedia.org/mailman/listinfo/mediawiki-i18n
[9] http://lists.wikimedia.org/mailman/listinfo/wikibugs-l
[10] http://www.mediawiki.org/wiki/FAQ
[11] http://en.wikipedia.org/wiki/Posting_style#Inline_replying
[12] http://lists.wikimedia.org/mailman/listinfo/mediawiki-l
[13] http://www.catb.org/~esr/faqs/smart-questions.html