Installing MediaWiki 1.7

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
User avatar
Benjamin
Site Administrator
Posts: 6935
Joined: Sun May 19, 2002 10:24 pm

Installing MediaWiki 1.7

Post 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?
User avatar
feyd
Neighborhood Spidermoddy
Posts: 31559
Joined: Mon Mar 29, 2004 3:24 pm
Location: Bothell, Washington, USA

Post 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.
User avatar
Benjamin
Site Administrator
Posts: 6935
Joined: Sun May 19, 2002 10:24 pm

Post 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.
User avatar
Benjamin
Site Administrator
Posts: 6935
Joined: Sun May 19, 2002 10:24 pm

Post 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.
User avatar
Oren
DevNet Resident
Posts: 1640
Joined: Fri Apr 07, 2006 5:13 am
Location: Israel

Post 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:
User avatar
Benjamin
Site Administrator
Posts: 6935
Joined: Sun May 19, 2002 10:24 pm

Post 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.
User avatar
Oren
DevNet Resident
Posts: 1640
Joined: Fri Apr 07, 2006 5:13 am
Location: Israel

Post 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:
User avatar
feyd
Neighborhood Spidermoddy
Posts: 31559
Joined: Mon Mar 29, 2004 3:24 pm
Location: Bothell, Washington, USA

Post by feyd »

Interesting... 5.1.6 wasn't announced on the internals list. Oh well.
User avatar
Benjamin
Site Administrator
Posts: 6935
Joined: Sun May 19, 2002 10:24 pm

Post by Benjamin »

It's a conspiracy.
Post Reply