Topic on Project:Support desk

Cotters07 (talkcontribs)

Hi, I have installed Media Wiki, latest version from the download section, along with PHP 7.1.3. The VC14 package is installed along with the ODBC 11 PHP drivers and the pdo_sqlsrv drivers extension. I have created a small PHP DB test script that connects and authenticates against the database server and runs a small query so I have confirmed that the database access is working. However when I run the Media Wiki setup, selecting MS SQL server as the database with the working details I get the following error:

PHP Warning: Declaration of DatabaseMssql::ignoreErrors(?array $value = NULL) should be compatible with Database::ignoreErrors($ignoreErrors = NULL) in C:\inetpub\wwwroot\includes\db\DatabaseMssql.php on line 1384

Line 1384 is essentially the end of the file. I have no experience with either PHP or Media Wiki and don't know where to start looking to resolve this, I am sure that as soon as I connect the Media Wiki installation to the database server the schema will create.

Can you advise me as to what the issue may be and where else I can look to resolve this error

Many Thanks

Ciencia Al Poder (talkcontribs)

I've reported task T162781.

MediaWiki has poor support to MS SQL Server. You should use mysql, or use MediaWiki 1.27 which will be supported for longer time.

Cotters07 (talkcontribs)

Hi - I used MediaWiki 1.28 so I will try 1.27 as you suggest before trying MySQL - can you confirm that aside from the MySQL driver installation that my configuration is good in terms of the components that I have used for a MySQL integration?

2A05:3E00:C:5:0:0:0:101B (talkcontribs)

I can't tell for the components, but what I can tell you is that MediaWiki does not support downgrades. So if you already have an installation with version 1.28, there actually is no supported way of using that installation with version 1.27.

Btw. I am not really sure that version 1.27 works with MSSQL. MediaWiki always had only some few versions, which somehow more or less supported MSSQL. But generally it is save to say there is no real support. If it works for you, I would call it luck.

Mainframe98 (talkcontribs)

This has been fixed in this commit, which is available with 1.29.0 and up.