[solved] mediawiki 1.12.0 required php4?

6 posts / 0 new
Last post
#1 Tue, 08/05/2008 - 11:37
kato

[solved] mediawiki 1.12.0 required php4?

Boy aren't I just a popular topic today :(

Hi, when trying to install MediaWiki version 1.12.0, I get this error: [code:1]This script cannot be installed, as it requires PHP version 4.[/code:1]

Naturally, PHP4 isn't installed. We're running everything on PHP5 on this server.

However, I installed multiple instances of Mediawiki a week ago without any errors. There was an update to the MediaWiki installer since then, so that could be the culprit.

This isn't a domain specific problem. It happens for all my virtualhosts.<br><br>Post edited by: kato, at: 2008/08/06 05:01

Sun, 06/07/2009 - 07:27
Joe
Joe's picture

That seems buglike. Yep, I see the problem...File a ticket, and Jamie will correct it.

In the meantime, you can fake it by editing mediawiki.pl and changing the script_mediawiki_php_vers to this:

sub script_mediawiki_php_vers
{
local ($d, $ver) = @_;
return 5;
}

--

Check out the forum guidelines!

Sun, 06/07/2009 - 07:27
Joe
Joe's picture

That seems buglike. Yep, I see the problem...File a ticket, and Jamie will correct it.

In the meantime, you can fake it by editing mediawiki.pl and changing the script_mediawiki_php_vers to this:

sub script_mediawiki_php_vers
{
local ($d, $ver) = @_;
return 5;
}

--

Check out the forum guidelines!

Tue, 08/05/2008 - 15:01
Joe
Joe's picture

BTW-Just for giggles, I'll point out the bug:

return $ver &gt;= 1.7 ? ( 5 ) : ( 4 );

The test evaluates to false, because 1.12 is &quot;smaller&quot; than 1.7, because it looks like we're doing a decimal number comparison, rather than a &quot;version&quot;.&quot;point release&quot; comparison. Tricky one.

--

Check out the forum guidelines!

Tue, 08/05/2008 - 20:43 (Reply to #4)
Joe
Joe's picture

Definately a bug, which will be fixed in the next release.

I just wish all software used strict numerical version numbers like Webmin does :-)

--

Check out the forum guidelines!

Wed, 08/06/2008 - 05:01
kato

Awesome, and thanks.

Ironically, I wrote a bug just like that a couple years back :)

Topic locked