php - Roundcube install, getting MYSQL_ATTR_FOUND_ROWS fatal error -


i'm installing roundcube 0.9.0 on shared host server.

i have php 5.3.8 pdo activated when i'm installing roundcube, response get:

check db config fatal error: undefined class constant 'mysql_attr_found_rows' in /home/neuas/domains/anthonysalvador.info/public_html/webmail/program/lib/roundcube/rcube_db_mysql.php on line 127 

i have contacted host, turned me away. contacted roundcube, turned me away. there overlooking?

here pdo section of code including faulty line:

102    protected function dsn_options($dsn) 103    { 104    $result = array(); 105 106    if (!empty($dsn['key'])) { 107        $result[pdo::mysql_attr_key] = $dsn['key']; 108    } 109 110    if (!empty($dsn['cipher'])) { 111        $result[pdo::mysql_attr_cipher] = $dsn['cipher']; 112    } 113 114    if (!empty($dsn['cert'])) { 115        $result[pdo::mysql_attr_ssl_cert] = $dsn['cert']; 116    } 117 118    if (!empty($dsn['capath'])) { 119        $result[pdo::mysql_attr_ssl_capath] = $dsn['capath']; 120    } 121 122    if (!empty($dsn['ca'])) { 123        $result[pdo::mysql_attr_ssl_ca] = $dsn['ca']; 124    } 125 126    // return matching (not affected only) rows count 127    $result[pdo::mysql_attr_found_rows] = true; 

i know older topic, found while searching solution same issue. here worked me. opened db.inc.php text editor , looked @ lines 25-28, uncommented , edited line applied installation. removed error message , install completed.

//$rcmail_config['db_dsnw'] = 'mysql://roundcube:pass@localhost/roundcubemail'; // postgres example: 'pgsql://roundcube:pass@localhost/roundcubemail'; // warning: sqlite use absolute path in dsn: // sqlite example: 'sqlite:////full/path/to/sqlite.db?mode=0646'; 

Comments

Popular posts from this blog

jquery - How can I dynamically add a browser tab? -

node.js - Getting the socket id,user id pair of a logged in user(s) -

keyboard - C++ GetAsyncKeyState alternative -