Deprecated: Creation of dynamic property ADORecordSet_mysqli::$adodbFetchMode is deprecated in /home/www/DZIR/dev.dzir.org/vendor/adodb/adodb-php/drivers/adodb-mysqli.inc.php on line 1248 Deprecated: Creation of dynamic property ADORecordSet_mysqli::$adodbFetchMode is deprecated in /home/www/DZIR/dev.dzir.org/vendor/adodb/adodb-php/drivers/adodb-mysqli.inc.php on line 1248 Deprecated: Creation of dynamic property ADORecordSet_mysqli::$adodbFetchMode is deprecated in /home/www/DZIR/dev.dzir.org/vendor/adodb/adodb-php/drivers/adodb-mysqli.inc.php on line 1248 Deprecated: Creation of dynamic property ADORecordSet_mysqli::$adodbFetchMode is deprecated in /home/www/DZIR/dev.dzir.org/vendor/adodb/adodb-php/drivers/adodb-mysqli.inc.php on line 1248 Deprecated: Creation of dynamic property ADORecordSet_mysqli::$adodbFetchMode is deprecated in /home/www/DZIR/dev.dzir.org/vendor/adodb/adodb-php/drivers/adodb-mysqli.inc.php on line 1248 Deprecated: Creation of dynamic property ADORecordSet_mysqli::$adodbFetchMode is deprecated in /home/www/DZIR/dev.dzir.org/vendor/adodb/adodb-php/drivers/adodb-mysqli.inc.php on line 1248 Deprecated: Creation of dynamic property ADORecordSet_mysqli::$adodbFetchMode is deprecated in /home/www/DZIR/dev.dzir.org/vendor/adodb/adodb-php/drivers/adodb-mysqli.inc.php on line 1248 Deprecated: Creation of dynamic property ADORecordSet_mysqli::$adodbFetchMode is deprecated in /home/www/DZIR/dev.dzir.org/vendor/adodb/adodb-php/drivers/adodb-mysqli.inc.php on line 1248 FS#14 : Problems while connected to a second database

DZIRCMS

  • Status Closed
  • Percent Complete
    100%
  • Task Type Bug Report
  • Category Backend
  • Assigned To No-one
  • Operating System All
  • Severity Low
  • Priority Very Low
  • Reported Version CL 2.0 PR
  • Due in Version 3.0.0
  • Due Date Undecided
  • Votes
  • Private
Attached to Project: DZIRCMS
Opened by Deprecated: Creation of dynamic property ADORecordSet_mysqli::$adodbFetchMode is deprecated in /home/www/DZIR/dev.dzir.org/vendor/adodb/adodb-php/drivers/adodb-mysqli.inc.php on line 1248 Spider IT - Deprecated: Function strftime() is deprecated in /home/www/DZIR/dev.dzir.org/includes/class.tpl.php on line 1160 2013-08-05
Last edited by Spider IT - Deprecated: Function strftime() is deprecated in /home/www/DZIR/dev.dzir.org/includes/class.tpl.php on line 1160 2022-11-23

FS#14 - Problems while connected to a second database

<p>If, in a module, you connect to an external database, all modules after that one in the template won’t work.<br/>The configuration for those following modules says “-unnamed module-”.<br/>If you close the connection to the external database in the module, the following modules work as they should.</p><p>If you have the module with the external database connection more than once in the template, directly following eachother, then each second one won’t connect to that database even if you use different variables for the connection, but only in the backend (configuration).<br/>In the frontend everything works as it should even with the same variable for the external database connection, but only while closing the connection in the module (every instance).</p><p>Question/Problem:<br/>Why does drugCMS try to get the module information over the last opened database connection instead of using it’s own connection $db? </p>

Deprecated: Creation of dynamic property ADORecordSet_mysqli::$adodbFetchMode is deprecated in /home/www/DZIR/dev.dzir.org/vendor/adodb/adodb-php/drivers/adodb-mysqli.inc.php on line 1248 Deprecated: Creation of dynamic property ADORecordSet_mysqli::$adodbFetchMode is deprecated in /home/www/DZIR/dev.dzir.org/vendor/adodb/adodb-php/drivers/adodb-mysqli.inc.php on line 1248
Closed by  Spider IT
Deprecated: Function strftime() is deprecated in /home/www/DZIR/dev.dzir.org/includes/class.tpl.php on line 1160 2022-11-23 02:24 PM
Reason for closing:  Fixed
Deprecated: Creation of dynamic property ADORecordSet_mysqli::$adodbFetchMode is deprecated in /home/www/DZIR/dev.dzir.org/vendor/adodb/adodb-php/drivers/adodb-mysqli.inc.php on line 1248
Deprecated: Creation of dynamic property ADORecordSet_mysqli::$adodbFetchMode is deprecated in /home/www/DZIR/dev.dzir.org/vendor/adodb/adodb-php/drivers/adodb-mysqli.inc.php on line 1248 Deprecated: Creation of dynamic property ADORecordSet_mysqli::$adodbFetchMode is deprecated in /home/www/DZIR/dev.dzir.org/vendor/adodb/adodb-php/drivers/adodb-mysqli.inc.php on line 1248 Deprecated: Creation of dynamic property ADORecordSet_mysqli::$adodbFetchMode is deprecated in /home/www/DZIR/dev.dzir.org/vendor/adodb/adodb-php/drivers/adodb-mysqli.inc.php on line 1248 Admin

Main DB instance: $db = DB::getInstance();
Additional DB instance: $db2 = DB::addInstance(array $options = []);

$options = array(
               'host' => 'localhost',
               'user' => 'username',
               'password' => 'password',
               'database' => 'database',
               'port' => 3306,
               'charset' => 'utf8mb4'
           );

Each instance keeps its own connection.
To close a connection: $db2→disconnect();

Loading...

Available keyboard shortcuts

Tasklist

Task Details

Task Editing