Daniel,
Daniel Friesen schrieb (02.02.2015 12:02 Uhr):
On 2015-02-02 2:01 AM, Marc Patermann wrote:
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
This is typically due to two things in combination:
- You have an old StartProfiler.php you added that does a a require_once
to a path of a file that no longer exists.
- You extracted the tarball over top of your install instead of
extracting it somewhere then moving stuff into that folder, meaning you have old files from your previous version of MediaWiki mixed in with the new files.
The result is that StartProfiler.php requires an old MediaWiki file that redefines things that are defined elsewhere in the current MediaWiki and gives you a cryptic error instead of telling you it's trying to require a file that shouldn't exist.
So what is your advice then? What file should be copied to the new system?
Marc