I'm a bit confused when I try to match the update instructions for
v1.15.4 with the instructions that I followed for installing v1.14.0 and
wondered if someone might be able to help.
1) my installation instructions said to place v1.14.0 in a version- related
directory so it's in /var/www/mediawiki/mediawiki-1.14.0. The upgrade
instructions say to write v1.15.4 files over these but it would be confusing
to have v1.15.4 files in a v1.14.0 directory so I've currently placed them
in /var/www/mediawiki/mediawiki-1.15.4. But I'm guessing that I will need to
tell parts of mediawiki/apache2/php that mediawiki will be in a new
location. Where are these references to the mediawiki folder please? Or do I
not need to worry about this because the update proces will take account of
it all? (I thought I'd edited the mediawiki folder name into an apache alias
at one point for example rather than the installation scrtipt doing
everything for me).
2) the update instructions say I might not have an AdminSettings.php file
but later say I must have one and it's used in the update.php command line.
I don't have one for my v1.14.0 mediawiki so do I need this and if not what
is the command for running update without it please?
Thanks for any pointers you might have.
Kevin
Hi,
I am trying to write the simplest extension using a parser function
(to get the feel of it). My extension is supposed to greet anyone who
uses it. I am using this wikipage (
http://www.mediawiki.org/wiki/Manual:Parser_functions) as the
reference
However, I am unable to get even this simplest extension to work. Can
anyone help me fix this. I am quite lost.
Any help will be greatly appreciated.
Thanks,
Alok
This is what I have in my LocalSettings.php
#################### Say Hello Extensions ############################
require_once( "$IP/extensions/sayHello.php");
#################### End of exension ################################
And here is the file $IP/extensions/sayHello.php
<?php
// Is this the right entry point ?
if ( !defined( 'MEDIAWIKI' ) )
{
die( 'Not an entry point.' );
}
global $wgExtensionFunctions; // I dont know if this is needed. I
could not find a clear description about it.
global $wgExtensionCredits; // Same as above.... I am doing this
out of desperation to make this work
$wgExtensionFunctions[] = 'wfSayHello'
$wgExtensionCredits['SayHello'][] = array(
'name' => 'SayHello',
'author' => 'Alok',
'url' => '',
'description' => 'Extension that greets user',
'descriptionmsg' => 'This is a test extension',
'version' => '1.0.0',
);
global $wgHooks
$wgHooks['SayHello'][] = "wfSayHello";
global $wgParser;
$wgParser->setFunctionHook('SayHello', 'wfSayHello');
function wfSayHello($parser, $userNameInput)
{
return "Hello " . $userNameInput;
}
return true;
?>
G'day Alok,
Please keep messages on-list by replying to all, so that others may jump
in and help too.
>Thanks a lot for helping but that doesnt seem to solve the problem
>1) About page refresh : when I type
>"127.0.0.1/index.php?title=TestPageAlok?action=purge"
>It attempts to create a new page with title "TestPageAlok?action=purge"
>When I try "127.0.0.1/index.php?action=purge" it seems to refresh my home page.
I hadn't considered that you might be running without the short URLs
turned on. You need to add "&action=purge" instead of "?action=purge".
When building a URL query string, everything before the first "?" is the
path to the script and everything after the first "?" is part of the
query string. Individual query parameters are broken up by "&", so the
query "title=TestPageAlok&action=purge" means ask for pages with title
of "TestPageAlok", and ask for the special action "purge".
>2) I tried to run the modified script that you gave... but it still
>gives the same output. Do I have to type anything fancy in my test
>page to invoke the extension ? so far I am just using
>"{{#SayHello:John}}
>Now it is impossible for me to know whether this is because of caching
>or because my extension is still incorrect.
Try adding the "&action=purge" and see if that gives you the expected
output.
>The worst part is that mediawiki has been annoyingly silent about any
>errors it might have encountered (despite enabling
>error-message-display)
Check your server logs, e.g. on Apache/Linux check for errors in the
file /var/log/httpd/error_log
--
Ross McKay, Toronto, NSW Australia
"The chief cause of problems is solutions" -Eric Sevareid
I tried using a file on RationalWiki, which uses InstantCommons. The
file didn't exist (it was on en:wp, not Commons). I moved the file to
Commons, but RationalWiki still thinks it doesn't exist in the foreign
file repo. "?action=purge" does nothing. How long do I have to wait?
(The page is http://rationalwiki.org/wiki/Color_therapy .)
RW is using 1.14.1. (Yes, we should upgrade. I'm not a sysadmin, just a user.)
- d.
We would like to both cut down on the space used by the revisions table, and change the way we count user participation by compressing revision histories when users do multiple consecutive saves within a single short time.
In maintenance, I see that there are scripts to just delete specific revisions by id from the revisions table. So, we're thinking that we would run a script to delete revisions based on some criteria, and also make an extension that hooks at ArticleSave
or ArticleSaveComplete to delete prior revisions by the same user if they are within a specified time period.
Before trying this, I thought I'd ask to see if
- anyone sees potential problems.
- its been done already
Thanks!
Jim
=====================================
Jim Hu
Associate Professor
Dept. of Biochemistry and Biophysics
2128 TAMU
Texas A&M Univ.
College Station, TX 77843-2128
979-862-4054
I was in the process of upgrading my installation from 1.15.0 to 1.16.0
this morning and I made a backup copy of the database using phpMyAdmin.
I suspect that's not recommended and I can see why the instructions use
mysqldump instead. Believe me, I'll do it the "right" way from now on.
In any case, after upgrading the PHP and running update.php, the site
wasn't working. I figured I'd restore the database and start over.
It turns out phpMyAdmin didn't do a very good job of exporting my
database. I did manage to recreate my database from an older backup and
then went through the phpMyAdmin dump table by table, since most of them
seemed fine.
There were, it turns out, two problems, one more serious than the other.
First, in the categorylinks table, it didn't put single quotes around
the dates for some reason. I was able to add them easily enough (regex
replace is a godsend!).
The other problem was in the objectcache. For some reason, the contents
of that are mostly giberish. The 'value' field in that table is a
mediumblob but there are other tables with mediumblobs that didn't cause
any problems. Is the content of that table different in some way that
causes this problem?
Actually, while I'm interested in the above my real question is how
serious is it that this table is now out of sync with the rest of the
database? Obviously I've lost something but is it serious?
--
Henry
by Webmaster Casa das Ciências - Guilherme Monteiro
Hi,
it's possible that a user can edit only his own pages?
If yes, how?
Thanks!
--
Guilherme Monteiro
Webmaster
Casa das Ciências
Rua Campo Alegre 687 / 4169 - 007 PORTO
GAB./SALA 351
TEL.EXTERNO 220402543
webmaster(a)casadasciencias.org
Bonjour, je me permets d'envoyer ce mail car j'ai un petit souci.
J'ai installé mediawiki 1.16.0 sur mon hébergement ovh. Tout s'est bien
déroulé sauf que ma page locasettings.php ne s'est pas créée.
Pouvez-vous m'éclairer ?
Un grand merci
Frédéric Dewez
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
Hi,
I have been trying to create a maintainable way of grouping pages
together and allowing readers to page through them in sequence. Most
samples I've seen use templates that require you to supply the
'previous' and 'next' page. This however results in three page edits
to insert a new page between two existing pages and does not guarantee
that your prev-sequence is identical to the next-sequence...
Being a programmer, that is way too much duplicate and error-prone
work for me ;-) There must be a better way to do this and I was hoping
to solve it with a plain MW installation (with ParserFunctions and
DynamicPageList at the moment).
Given an 'index' page that holds a list of all page titles in the
preferred order, isn't it possible to create a template that selects
the correct previous and next page title given the current page title?
I get stuck in getting the correct lines from the index page. DPL can
select based on section name (= page title), but then the contents of
that index section must be the prev/next links themselves:
=First Page=
Prev [[Second Page|Next]]
=Second Page=
[[First Page|Prev]] [[Third Page|Next]]
=Third Page=
.. etc.
This works, except that it is still a lot of duplication of page names
(but the edits are contained in a single page, big plus).
I hoped to simplify the index page by creating a template that writes
the section header and prev/next links, but then DPL no longer
recognizes the sections :-( Apparently DPL 'sees' the page text before
the templates are called ({{Page|Prev page|Page title|Next page}}:
{{Page||First Page|Second Page}}
{{Page|First Page|Second Page|Third Page}}
{{Page|Second Page|Third Page|Fourth Page}}
Basically my questions are:
1. Am I completely off track here?
2. Can DPL be coerced to evaluate templates before looking at the page
3. Can DPL (or another extension) select the text from a section
before/after a matched section?
4. Is it possible to determine the section sequence number given the
section name (so 'Second Page' results in 2, allowing me to use DPL to
retrieve the name of section 2 -/- 1 and 2 + 1 to create the prev/next
links?
Apologies for the long post, hopefully someone can point me to some
good resources (I've been to Meta, Wikibooks, Medawiki.org but could
very well have overlooked something there as the amount of info is a
bit overwhelming and it is difficult to judge how up to date it is).
--
Regards,
Jean-Marc