Hi,
I have a little old and well used Mediawiki installation, which has to be migrated. The old installation is version 1.12.0 with php 5.1 and mysql 5.0. The new one is php 5.3.17 and mysql 5.5.31, I tried Mediawiki 1.24.1.
I dumped the database and copied the webserver directory of the wiki. The manual upgrade does not work for me. I got the following error:
# ./update.php PHP Fatal error: Cannot redeclare wfProfileIn() (previously declared in /srv/www/htdocs/wiki/includes/profiler/Profiler.php:47) in /srv/www/htdocs/wiki/includes/ProfilerStub.php on line 12
Even after I commented out any used extension in LocalSettings.php and deleting the extensions files.
After that I deleted the wiki dir on the new server in whole and extracted the tar again on the fresh dir. The installation assistant is starting and I connect to the database. Then this happens: The existing database is found.
#9 /srv/www/htdocs/wiki/includes/installer/WebInstaller.php(280): WebInstallerUpgrade->execute() #10 /srv/www/htdocs/wiki/mw-config/index.php(79): WebInstaller->execute(Array) #11 /srv/www/htdocs/wiki/mw-config/index.php(38): wfInstallerMain() #12 /srv/www/htdocs/wiki/mw-config/index.php5(26): require('/srv/www/htdocs...') #13 {main} Purging caches...done.
I can hit "next" as often as I want, the assistant is stuck. In error_log I find this:
PHP Notice: Uncommitted DB writes (transaction from DatabaseUpdater::doUpdates). in /srv/www/htdocs/wiki/includes/db/Database.php on line 4266, referer: http://rzhs165-neu/wiki/mw-config/index.php5?page=Upgrade
I really like to update/migrate the wiki installation. How to get over the occurred error?
Marc