Chiefgeek157
Notice: Undefined index: odbc in D:\xampp\htdocs\SNWiki\includes\db\Database.php on line 915
editI am Using MediaWiki 1.24.1
for getting sql server am data adding
require_once "$IP/extensions/OdbcDatabase/OdbcDatabase.php"; include_once "$IP/extensions/ExternalData/ExternalData.php";
$edgDBServerType ['mydb'] = "odbc"; $edgDBServer ['mydb'] = "my_dsn"; $edgDBName ['mydb'] = "UNUSED"; $edgDBUser ['mydb'] = "sa"; $edgDBPass ['mydb'] = "sa@123"; $edgDBTablePrefix ['mydb'] = "dbo";
and i created my_dsn odbc in my windows wiki server in wiki page
{{#get_db_data: db=mydb |from=Testtable |data=test1=test1,test2=test2}}
now submit the page i got a below error message on top of the page
Undefined index: odbc in D:\xampp\htdocs\SNWiki\includes\db\Database.php on line 915
In Database.php the line 915 is below bold line
if ( class_exists( $class ) && is_subclass_of( $class, 'DatabaseBase' ) ) {
$params = array(
'host' => isset( $p['host'] ) ? $p['host'] : false,
'user' => isset( $p['user'] ) ? $p['user'] : false,
'password' => isset( $p['password'] ) ? $p['password'] : false,
'dbname' => isset( $p['dbname'] ) ? $p['dbname'] : false,
'flags' => isset( $p['flags'] ) ? $p['flags'] : 0,
'tablePrefix' => isset( $p['tablePrefix'] ) ? $p['tablePrefix'] : 'get from global',
'schema' => isset( $p['schema'] ) ? $p['schema'] : $defaultSchemas[$dbType],
'foreign' => isset( $p['foreign'] ) ? $p['foreign'] : false
);
If i type wrong table name in wiki page it showing Below Errors
Notice: Undefined index: odbc in D:\xampp\htdocs\SNWiki\includes\db\Database.php on line 915
Warning: odbc_exec(): SQL error: [Microsoft][SQL Server Native Client 10.0][SQL Server]Invalid object name 'Testtable1'., SQL state S0002 in SQLExecDirect in D:\xampp\htdocs\SNWiki\extensions\OdbcDatabase\OdbcDatabase.body.php on line 26
so i think connectivity is not a problem.
Kindly Help me
-- Ragu
A barnstar for you!
editThe Original Barnstar | |
do the needful Ragusathis (talk) 09:53, 17 February 2015 (UTC) |
A barnstar for you!
editThe Original Barnstar | |
do the needful Ragusathis (talk) 09:53, 17 February 2015 (UTC) |