View Issue Details
| ID | Project | Category | View Status | Date Submitted | Last Update |
|---|---|---|---|---|---|
| 0020367 | mantisbt | plug-ins | public | 2015-12-08 17:56 | 2015-12-21 13:53 |
| Reporter | lbayle | Assigned To | dregad | ||
| Priority | normal | Severity | minor | Reproducibility | always |
| Status | closed | Resolution | no change required | ||
| Platform | Linux Fedora | ||||
| Product Version | 1.3.0-rc.1 | ||||
| Summary | 0020367: adodb : deprecated mysql_connect() | ||||
| Description | DEPRECATED: 'mysql_connect(): The mysql extension is deprecated and will be removed in the future: use mysqli or PDO instead' in '/var/www/html/mantis_dev/library/adodb/drivers/adodb-mysql.inc.php' line 462 some related JS errors : | ||||
| Steps To Reproduce | mantis (master) library/adodb (mantis-1.3) | ||||
| Tags | No tags attached. | ||||
| Attached Files | |||||
|
You need to change your configuration to use the 'mysqli' driver instead of the deprecated 'mysql' one. I'm not sure about those JS errors you report, they seem related to the PHP error you reported. Don't have time to test right now. |
|
|
The JS errors are triggered in dynamically-generated files(javascript_config.php and javascript_translations.php). This is due to the presence of HTML in what should effectively be pure javascript code. The errors go away if you stop using inline printing of E_DEPRECATED error messages in $g_display_errors, either hiding them (DISPLAY_ERROR_NONE) or treating them as error messages (DISPLAY_ERROR_HALT). That being said, I don't think we should print HTML in non-HTML output, I'll track this separately (see 0020372). |
|
|
Since the issue you reported is triggered by using non-prod settings for error messages, I'm resolving this as no change required. To make the message go away, either switch to 'mysqli' driver (recommended), or change your error display settings not to show deprecated warnings in-line. |
|
|
Thank you for your quick answer, I'll change the mysql settings. |
|