- Status Closed
- Percent Complete
- 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
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: 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
Loading...
Available keyboard shortcuts
- Alt + ⇧ Shift + l Login Dialog / Logout
- Alt + ⇧ Shift + a Add new task
- Alt + ⇧ Shift + m My searches
- Alt + ⇧ Shift + t focus taskid search
Tasklist
- o open selected task
- j move cursor down
- k move cursor up
Task Details
- n Next task
- p Previous task
- Alt + ⇧ Shift + e ↵ Enter Edit this task
- Alt + ⇧ Shift + w watch task
- Alt + ⇧ Shift + y Close Task
Task Editing
- Alt + ⇧ Shift + s save task
Main DB instance: $db = DB::getInstance();
Additional DB instance: $db2 = DB::addInstance(array $options = []);
Each instance keeps its own connection.
To close a connection: $db2→disconnect();