Backing Up Mediawiki

From Wikicliki
Jump to: navigation, search


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 {


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



python --index= --xml --curonly --images --delay=5