Difference between revisions of "Backing Up Mediawiki"
From Wikicliki
Line 1: | Line 1: | ||
+ | == Mediawiki == | ||
+ | |||
+ | because i failed to update wiki earlier, when my host upgraded php to 5.3, there was an error because mediawiki's older versions uses the class Namespace which is a reserved word | ||
+ | |||
+ | <pre>Parse error: syntax error, unexpected T_NAMESPACE, expecting T_STRING in /usr/local/www/apache22/data/wiki/includes/Namespace.php on line 46</pre> | ||
+ | |||
+ | the solution is to open Namespace.php and change line 46 from | ||
+ | |||
+ | <pre>class Namespace {</pre> | ||
+ | |||
+ | to | ||
+ | |||
+ | <pre>class MWNamespace {</pre> | ||
+ | |||
+ | at this point the error message will change to this weird thing | ||
+ | |||
+ | <pre>PHP Parse error: syntax error, unexpected T_PAAMAYIM_NEKUDOTAYIM, expecting T_NS_SEPARATOR</pre> | ||
+ | |||
+ | next you have to open up these files inside includes | ||
+ | |||
+ | * Namespace.php | ||
+ | * Title.php | ||
+ | * ImageGallery.php | ||
+ | * SkinTemplate.php | ||
+ | * Parser.php | ||
+ | * RecentChange.php | ||
+ | |||
+ | you replace all instances of Namespace to MWNamespace | ||
+ | |||
+ | it should work as normal after that | ||
+ | |||
+ | == Backing up Mediawiki == | ||
+ | |||
* http://www.mediawiki.org/wiki/Manual:Backing_up_a_wiki | * http://www.mediawiki.org/wiki/Manual:Backing_up_a_wiki | ||
* http://code.google.com/p/wikiteam/wiki/NewTutorial | * http://code.google.com/p/wikiteam/wiki/NewTutorial |
Revision as of 09:50, 16 June 2013
Mediawiki
because i failed to update wiki earlier, when my host upgraded php to 5.3, there was an error because mediawiki's older versions uses the class Namespace which is a reserved word
Parse error: syntax error, unexpected T_NAMESPACE, expecting T_STRING in /usr/local/www/apache22/data/wiki/includes/Namespace.php on line 46
the solution is to open Namespace.php and change line 46 from
class Namespace {
to
class MWNamespace {
at this point the error message will change to this weird thing
PHP Parse error: syntax error, unexpected T_PAAMAYIM_NEKUDOTAYIM, expecting T_NS_SEPARATOR
next you have to open up these files inside includes
- Namespace.php
- Title.php
- ImageGallery.php
- SkinTemplate.php
- Parser.php
- RecentChange.php
you replace all instances of Namespace to MWNamespace
it should work as normal after that
Backing up Mediawiki
- http://www.mediawiki.org/wiki/Manual:Backing_up_a_wiki
- http://code.google.com/p/wikiteam/wiki/NewTutorial
python dumpgenerator.py --index=http://domain.com/wiki/index.php --xml --curonly --images --delay=5