Broken Wiki after PHP upgrade


After upgrading to PHP 5.4 my Wiki on Dreamhost it doesn’t work:

First I got:
Parse error: syntax error, unexpected ‘Namespace’ (T_NAMESPACE), expecting identifier (T_STRING) in /home/arhat/ on line 46

So I upgraded Media Wiki.
And was told to follow these instructions:

and when I did the command: usr/local/php54/bin/php update.php --quick

I get this error:
Fatal error: Cannot redeclare wfProfileIn() (previously declared in /home/arhat/ in /home/arhat/ on line 12

I get the same error trying to view my wiki:

Any ideas?
Thanks for any help!




I did try renaming the startprofiler.php file

That results in this error when I try to see the site:
A database query error has occurred. This may indicate a bug in the software.

I also tried deleting the contents of the file and got the same result.
I did leave this in the file:

<?php ?>

Further ideas?

Wait… now that I renamed file, I tried running script thingy again. Seems to be doing things!
We shall see…
Working now!
Thanks so much!


Almost always, someone else has had the same or very similar issue you’re having. Searching (Bing, Google…) for a key phrase will usually come up with some results.

The error message actually tells you what went wrong… "Cannot redeclare wfProfileIn() " so I just did a search for that exact phrase :slight_smile: