Page 1 of 1

Installing MediaWiki 1.7

Posted: Sat Aug 26, 2006 4:51 pm
by Benjamin
Ok, I am trying to install it on my development server. I have php 5.0.1 installed. The requirements state that it requires php 5.

I installed it, and it doesn't work. These errors are in the error log..

PHP Strict Standards: var: Deprecated. Please use the public/private/protected modifiers in SiteStatsUpdate.php on line 14
I installed this same version on the astions server, which is also running php 5. What is up with this?

Posted: Sat Aug 26, 2006 4:53 pm
by feyd
The code is written using "var" instead of "public" for property declarations. Either change all instances of "var" to "public" or change error_reporting() such that E_STRICT is off.

Posted: Sat Aug 26, 2006 5:00 pm
by Benjamin
I'm just getting a blank page right now. I'll need to turn this off via .htaccess because I don't want to turn off strict standards for the whole server. If you know how to do that please let me know. In the mean time I am searching for blurb I need to type in there to do it. No luck so far though.

Posted: Sat Aug 26, 2006 5:19 pm
by Benjamin
Nevermind fixed it. I just had to disable error reporting. The blank page was throwing me off. I guess that is a bug in the Wiki script.

Posted: Sat Aug 26, 2006 5:38 pm
by Oren
astions, I've just installed it (version 1.7) on my local server.
My configuration/system specifications are as follow:

Apache_2.0.49-win32-x86-no_ssl
PHP 5.1.6
Win XP Pro
error_reporting = E_ALL
display_errors = On

It works great for me. If it's possible, try to upgrade to PHP 5.1.6.
I can try and install it on a *nix server too and see what happens if you want me to - just ask :wink:

Posted: Sat Aug 26, 2006 5:51 pm
by Benjamin
Well I dug around in the code and they are using var instead of public in a lot of places. If your strict standards are turned on, I don't see how PHP isn't throwing errors.

Posted: Sat Aug 26, 2006 5:56 pm
by Oren
Yep, as I thought... Just checked with the php.ini file - E_ALL doesn't include E_STRICT. If I remember right, this is a PHP 5 behavior :P

Edit: Yes, once I enable E_STRICT errors too, I get errors all around - just disable the E_STRICT errors I guess :wink:

Posted: Sat Aug 26, 2006 7:57 pm
by feyd
Interesting... 5.1.6 wasn't announced on the internals list. Oh well.

Posted: Sun Aug 27, 2006 12:04 pm
by Benjamin
It's a conspiracy.