Hi, I"ve finally decided to take the bold step of upgrading ( I'm not too comfortable with change :-) ) from 1.6.5 to 1.9.2 . Now for all you folks who've made the transition a couple of questions.
Can I just unzip the new files into the same folder of my 1.6.5 keeping the same extenstions , skins and images folders? And modifying the new localsettings file to incorporate the same modifications to the previous one??
Thanks in advance, AJ
On 02/07/2007 08:36 AM, Thomas, Arjun wrote:
Hi, I"ve finally decided to take the bold step of upgrading ( I'm not too comfortable with change :-) ) from 1.6.5 to 1.9.2 . Now for all you folks who've made the transition a couple of questions.
Can I just unzip the new files into the same folder of my 1.6.5 keeping the same extenstions , skins and images folders? And modifying the new localsettings file to incorporate the same modifications to the previous one??
Basically, yes.
What I did when I recently updated from 1.5.x to 1.9.1 (yeah, I know; long overdue) was this:
- Backup everything - Unpack new files over the existing ones - Check the release notes to see if any changes were needed in LocalSettings. - Run maintenance/update.php - Check all vital parts of the wiki to make sure that everything was working properly.
Regards, Arne
This was useful... thanks much!!
-----Original Message----- From: mediawiki-l-bounces@lists.wikimedia.org [mailto:mediawiki-l-bounces@lists.wikimedia.org] On Behalf Of Arne Meyer Vedø-Hansen Sent: Wednesday, February 07, 2007 1:28 PM To: MediaWiki announcements and site admin list Subject: Re: [Mediawiki-l] Upgrading from
On 02/07/2007 08:36 AM, Thomas, Arjun wrote:
Hi, I"ve finally decided to take the bold step of upgrading ( I'm not too comfortable with change :-) ) from 1.6.5 to 1.9.2 . Now for all you folks who've made the transition a couple of questions.
Can I just unzip the new files into the same folder of my 1.6.5 keeping the same extenstions , skins and images folders? And modifying the new localsettings file to incorporate the same modifications to the previous one??
Basically, yes.
What I did when I recently updated from 1.5.x to 1.9.1 (yeah, I know; long overdue) was this:
- Backup everything - Unpack new files over the existing ones - Check the release notes to see if any changes were needed in LocalSettings. - Run maintenance/update.php - Check all vital parts of the wiki to make sure that everything was working properly.
Regards, Arne
_______________________________________________ MediaWiki-l mailing list MediaWiki-l@lists.wikimedia.org http://lists.wikimedia.org/mailman/listinfo/mediawiki-l
Hi, Has anyone implemented a breadcrumbs feature in the new version of mediawiki??
-AJ
Thomas, Arjun a écrit :
Has anyone implemented a breadcrumbs feature in the new version of mediawiki??
GIYF :
http://www.google.com/search?hl=en&q=mediawiki+breadcrumbs&btnG=Goog...
Thomas, Arjun a écrit :
Has anyone implemented a breadcrumbs feature in the new version of mediawiki??
one possibility :
download the php and css code at http://wiki.ljackson.us/MediaWiki_BreadCrumbs
put the css code in skins/monobook/main.css put the php code in extensions/kwBreadCrumbs.php
open skins/monobook.php and add (just after <div id="content">) <div><?php echo kwBreadCrumbs() ?></div> open LocalSettings.php and add : include("extensions/kwBreadCrumbs.php"); open kwBreadCrumbs.php and change :
$ts = mktime(); $now = gmdate("YmdHis", $ts + 120); $ns = $wgTitle->getNamespace(); $ti = wfStrencode($wgTitle->getDBkey()); $sql = "UPDATE page SET page_touched='$now' WHERE page_namespace=$ns AND page_title='$ti'"; wfQuery($sql, DB_WRITE, "kwBreadCrumbsNoCache");
to
$dbr =& wfGetDB( DB_SLAVE ); $ts = mktime(); $now = gmdate("YmdHis", $ts + 120); $ns = $wgTitle->getNamespace(); $ti = $dbr->addQuotes($wgTitle->getDBkey()); $sql = "UPDATE page SET page_touched='$now' WHERE page_namespace=$ns AND page_title='$ti'"; $res = $dbr->doQuery( $sql );
don't know if it's "correct" (clean and safe), but it works with 1.9
Alexis
One thing to watch is that in the line
$sql = "UPDATE page SET page_touched='$now' WHERE page_namespace=$ns AND page_title='$ti'";
you may need to change the UPDATE page SET to UPDATE prefix_page SET if you have a used a prefix on your tables when you installed the wiki
I do have the code that makes the system 'generic' and will post it tomorrow from work.
Ta
John
open kwBreadCrumbs.php and change :
$ts = mktime(); $now = gmdate("YmdHis", $ts + 120); $ns = $wgTitle->getNamespace(); $ti = wfStrencode($wgTitle->getDBkey()); $sql = "UPDATE page SET page_touched='$now' WHERE page_namespace=$ns AND page_title='$ti'"; wfQuery($sql, DB_WRITE, "kwBreadCrumbsNoCache");
to
$dbr =& wfGetDB( DB_SLAVE ); $ts = mktime(); $now = gmdate("YmdHis", $ts + 120); $ns = $wgTitle->getNamespace(); $ti = $dbr->addQuotes($wgTitle->getDBkey()); $sql = "UPDATE page SET page_touched='$now' WHERE page_namespace=$ns AND page_title='$ti'"; $res = $dbr->doQuery( $sql );
don't know if it's "correct" (clean and safe), but it works with 1.9
Alexis
MediaWiki-l mailing list MediaWiki-l@lists.wikimedia.org http://lists.wikimedia.org/mailman/listinfo/mediawiki-l
On 07/02/07, John Moorhouse john.moorhouse@3jays.me.uk wrote:
$dbr =& wfGetDB( DB_SLAVE ); $ts = mktime(); $now = gmdate("YmdHis", $ts + 120); $ns = $wgTitle->getNamespace(); $ti = $dbr->addQuotes($wgTitle->getDBkey()); $sql = "UPDATE page SET page_touched='$now' WHERE page_namespace=$ns AND page_title='$ti'"; $res = $dbr->doQuery( $sql );
You shouldn't need to do a manual touch like this in newer versions of MediaWiki; calling $parser->disableCache() ought to do the trick, where $parser is an instance of the Parser object.
If, however, such an operation *is* needed, use something like:
$dbw = wfGetDB( DB_MASTER ); $dbw->update( 'page', array( 'page_touched' => gmdate( 'YmdHis', gmtime() + 120 ) ), array( 'page_namespace' => $wgTitle->getNamespace(), 'page_title' => $wgTitle->getDBkey() ), __METHOD__ );
Note that it is *not* a good idea to attempt to send write operations to a slave database server in a true replication environment, and all code should be written with this in mind; it doesn't make much difference for single-server environments, but sticking to that makes the code safer and more portable, and coupled with the convention of using $dbr for slaves and $dbw for masters, makes it much more readable and maintainable.
Rob Church
On 07/02/07, Thomas, Arjun Arjun.Thomas@ps.net wrote:
Can I just unzip the new files into the same folder of my 1.6.5 keeping the same extenstions , skins and images folders? And modifying the new localsettings file to incorporate the same modifications to the previous one??]
Please read http://www.mediawiki.org/wiki/Manual:Upgrading_to_1.9.
Rob Church
mediawiki-l@lists.wikimedia.org