Difference between revisions of "Backing Up Mediawiki"
From Wikicliki
Line 29: | Line 29: | ||
it should work as normal after that | it should work as normal after that | ||
+ | |||
+ | the alternative would be to run a shell script such as in this example but alas i did not pay for shell access... | ||
== Backing up Mediawiki == | == Backing up Mediawiki == |
Latest revision as of 12:07, 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
the alternative would be to run a shell script such as in this example but alas i did not pay for shell access...
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