Details
-
Type: Bug
-
Status: Done/Fixed
-
Priority: Minor
-
Resolution: Fixed/Completed
-
Affects Version/s: 4.5
-
Fix Version/s: 4.6
-
Component/s: Core CiviCRM
-
Labels:None
-
Documentation Required?:None
Description
{"is_error":1,"is_continue":0,"exception":"Error 1: Call to undefined function mysql_escape_string() in \/home\/rkscrm\/crmv1.rochesterkinksociety.com\/sites\/all\/modules\/civicrm\/CRM\/Core\/I18n.php, line 325","last_task_title":"Upgrade DB to 4.5.alpha1: SQL"}
Call to undefined mysql_escape_string because mysql extension is not compiled in this version of PHP. I use mysqli instead which CiviCRM and Drupal both support. However in the script above (CRM/Core/I18n) there is a hardcoded call to mysql_escape_string which would fail for mysqli, Postgres or other backends.
Attachments
Issue Links
- is duplicated by
-
CRM-10846 Replace deprecated mysql_escape_string() with addslashes()
- Done/Fixed