Broken Wiki after PHP upgrade


#1

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/jobutsu.com/b/includes/Namespace.php 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/jobutsu.com/b/includes/profiler/Profiler.php:33) in /home/arhat/jobutsu.com/b/includes/ProfilerStub.php on line 12

I get the same error trying to view my wiki:
http://jobutsu.com/b/

Any ideas?
Thanks for any help!

-Brian


#2

http://www.mediawiki.org/wiki/Thread:Project:Support_desk/Profiler.php_Fatal_Error_Cannot_redeclare_wfprofilein()


#3

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?

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


#4


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: