object(PDOException)#11 (10) { ["message":protected]=> string(326) "SQLSTATE[42883]: Undefined function: 7 ERROR: function substring_index(character varying, unknown, integer) does not exist LINE 1: SELECT DISTINCT SUBSTRING_INDEX(source, '/', 1) AS path FROM... ^ HINT: No function matches the given name and argument types. You might need to add explicit type casts." ["string":"Exception":private]=> string(0) "" ["code":protected]=> string(5) "42883" ["file":protected]=> string(64) "/Applications/MAMP/htdocs/drupal7/includes/database/database.inc" ["line":protected]=> int(2039) ["trace":"Exception":private]=> array(10) { [0]=> array(6) { ["file"]=> string(64) "/Applications/MAMP/htdocs/drupal7/includes/database/database.inc" ["line"]=> int(2039) ["function"]=> string(7) "execute" ["class"]=> string(12) "PDOStatement" ["type"]=> string(2) "->" ["args"]=> array(1) { [0]=> array(0) { } } } [1]=> array(6) { ["file"]=> string(70) "/Applications/MAMP/htdocs/drupal7/includes/database/pgsql/database.inc" ["line"]=> int(83) ["function"]=> string(7) "execute" ["class"]=> string(21) "DatabaseStatementBase" ["type"]=> string(2) "->" ["args"]=> array(2) { [0]=> array(0) { } [1]=> array(4) { ["target"]=> string(7) "default" ["fetch"]=> int(5) ["return"]=> int(1) ["throw_exception"]=> bool(true) } } } [2]=> array(6) { ["file"]=> string(64) "/Applications/MAMP/htdocs/drupal7/includes/database/database.inc" ["line"]=> int(2218) ["function"]=> string(5) "query" ["class"]=> string(24) "DatabaseConnection_pgsql" ["type"]=> string(2) "->" ["args"]=> array(3) { [0]=> string(72) "SELECT DISTINCT SUBSTRING_INDEX(source, '/', 1) AS path FROM {url_alias}" [1]=> array(0) { } [2]=> array(1) { ["target"]=> string(7) "default" } } } [3]=> array(4) { ["file"]=> string(51) "/Applications/MAMP/htdocs/drupal7/includes/path.inc" ["line"]=> int(381) ["function"]=> string(8) "db_query" ["args"]=> array(1) { [0]=> string(72) "SELECT DISTINCT SUBSTRING_INDEX(source, '/', 1) AS path FROM {url_alias}" } } [4]=> array(4) { ["file"]=> string(51) "/Applications/MAMP/htdocs/drupal7/includes/path.inc" ["line"]=> int(70) ["function"]=> string(35) "drupal_path_alias_whitelist_rebuild" ["args"]=> array(0) { } } [5]=> array(4) { ["file"]=> string(51) "/Applications/MAMP/htdocs/drupal7/includes/path.inc" ["line"]=> int(264) ["function"]=> string(18) "drupal_lookup_path" ["args"]=> array(3) { [0]=> string(6) "source" [1]=> string(10) "update.php" [2]=> NULL } } [6]=> array(4) { ["file"]=> string(51) "/Applications/MAMP/htdocs/drupal7/includes/path.inc" ["line"]=> int(18) ["function"]=> string(22) "drupal_get_normal_path" ["args"]=> array(1) { [0]=> string(10) "update.php" } } [7]=> array(4) { ["file"]=> string(53) "/Applications/MAMP/htdocs/drupal7/includes/common.inc" ["line"]=> int(4918) ["function"]=> string(22) "drupal_path_initialize" ["args"]=> array(0) { } } [8]=> array(4) { ["file"]=> string(56) "/Applications/MAMP/htdocs/drupal7/includes/bootstrap.inc" ["line"]=> int(2056) ["function"]=> string(22) "_drupal_bootstrap_full" ["args"]=> array(0) { } } [9]=> array(4) { ["file"]=> string(44) "/Applications/MAMP/htdocs/drupal7/update.php" ["line"]=> int(385) ["function"]=> string(16) "drupal_bootstrap" ["args"]=> array(1) { [0]=> int(7) } } } ["previous":"Exception":private]=> NULL ["errorInfo"]=> array(3) { [0]=> string(5) "42883" [1]=> int(7) [2]=> string(287) "ERROR: function substring_index(character varying, unknown, integer) does not exist LINE 1: SELECT DISTINCT SUBSTRING_INDEX(source, '/', 1) AS path FROM... ^ HINT: No function matches the given name and argument types. You might need to add explicit type casts." } ["query_string"]=> string(72) "SELECT DISTINCT SUBSTRING_INDEX(source, '/', 1) AS path FROM {url_alias}" ["args"]=> array(0) { } }