Relationship Graph

Relationship Graph
related to related to child of child of duplicate of duplicate of

View Issue Details

IDProjectCategoryView StatusLast Update
0020367mantisbtplug-inspublic2015-12-21 13:53
Reporterlbayle Assigned Todregad  
PrioritynormalSeverityminorReproducibilityalways
Status closedResolutionno change required 
PlatformLinux Fedora 
Product Version1.3.0-rc.1 
Summary0020367: 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 :
SyntaxError: expected expression, got '<'
<div class="error-inline">DEPRECATED: 'mysql_connect(): The

Steps To Reproduce

mantis (master)
47c512fc2f - Revert "Problems if the json-message contains special characters

library/adodb (mantis-1.3)
9917495f23 - Merge tag 'v5.20.0' into mantis-1.3

TagsNo tags attached.
Attached Files
mantis_1.3_rc1_errors.jpg (165,937 bytes)   
mantis_1.3_rc1_errors.jpg (165,937 bytes)   

Relationships

related to 0020372 closeddregad Inline error reports should not mess up non-HTML output 

Activities

dregad

dregad

2015-12-09 03:08

developer   ~0052082

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.

dregad

dregad

2015-12-10 08:11

developer   ~0052091

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).

dregad

dregad

2015-12-10 18:04

developer   ~0052098

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.

lbayle

lbayle

2015-12-11 08:18

reporter   ~0052106

Thank you for your quick answer, I'll change the mysql settings.