Topic on Extension talk:SQL2Wiki

How to make this running again

2
FrankAltpeter (talkcontribs)

Hi,I recently had to update to mediawiki-1.25 and (obviously) the SQL2Wiki extension refuses to work anymore. I can't get away this error:

fatal] [5d2c6e93] /wiki/index.php/Domains   ErrorException from line 264 of /srv/www/htdocs/mediawiki-1.25.1/includes/exception/MWExceptionHandler.php: Fatal Error: Class 'Database' not found

I assume this has to do with the deprecated Database::newFromType() function but I'm unable to fix this for myself. Any help appreciated, since AFAIK this is the only way to dynamically put sql data directly into wiki pages.

FrankAltpeter (talkcontribs)

Ok, found the problem for myself... the undocumented setting "type" within the wgExSql2WikiDatabases() array was the problem. It is nowhere defined how this is to be set, just a reference to "oracle" is found on this page.

So, setting it to "sql" or "mysql" didn't work until I had a lucky guess and tried "mysqli" and now it works.

Reply to "How to make this running again"