Uploaded image for project: 'CiviCRM'
  1. CiviCRM
  2. CRM-17360

report full mysql error messages in logs

    Details

    • Type: Improvement
    • Status: Done/Fixed
    • Priority: Trivial
    • Resolution: Fixed/Completed
    • Affects Version/s: 4.6.3
    • Fix Version/s: 4.7.5
    • Component/s: None
    • Labels:
    • Documentation Required?:
      None
    • Funding Source:
      Core Team Funds

      Description

      Would it be possible to get the full mysql error messages in cases like the following? (I figure the problem is likely a duplicate table name from user going back and forth, but this report is about the issue of getting the complete message.)

      Oct 09 11:56:30 [info] $backTrace = #0 /home/mysite/www/www/sites/mysite2016.com/modules/civicrm/CRM/Core/Error.php(235): CRM_Core_Error::backtrace("backTrace", TRUE)
      #1 [internal function](): CRM_Core_Error::handle(Object(DB_Error))
      #2 /home/mysite/www/www/sites/mysite2016.com/modules/civicrm/packages/PEAR.php(931): call_user_func((Array:2), Object(DB_Error))
      #3 /home/mysite/www/www/sites/mysite2016.com/modules/civicrm/packages/DB.php(976): PEAR_Error->PEAR_Error("DB Error: syntax error", -2, 16, (Array:2), "CREATE TABLE civicrm_import_job_07af6dfb0815f0d905ac1e10692c51cd ENGINE=InnoD...")
      #4 /home/mysite/www/www/sites/mysite2016.com/modules/civicrm/packages/PEAR.php(564): DB_Error->DB_Error(-2, 16, (Array:2), "CREATE TABLE civicrm_import_job_07af6dfb0815f0d905ac1e10692c51cd ENGINE=InnoD...")
      #5 /home/mysite/www/www/sites/mysite2016.com/modules/civicrm/packages/DB/common.php(1905): PEAR->raiseError(NULL, -2, NULL, NULL, "CREATE TABLE civicrm_import_job_07af6dfb0815f0d905ac1e10692c51cd ENGINE=InnoD...", "DB_Error", TRUE)
      #6 /home/mysite/www/www/sites/mysite2016.com/modules/civicrm/packages/DB/mysql.php(899): DB_common->raiseError(-2, NULL, NULL, NULL, "1064 ** You have an error in your SQL syntax; check the manual that correspon...")
      #7 /home/mysite/www/www/sites/mysite2016.com/modules/civicrm/packages/DB/mysql.php(328): DB_mysql->mysqlRaiseError()
      #8 /home/mysite/www/www/sites/mysite2016.com/modules/civicrm/packages/DB/common.php(1216): DB_mysql->simpleQuery("CREATE TABLE civicrm_import_job_07af6dfb0815f0d905ac1e10692c51cd ENGINE=InnoD...")
      #9 /home/mysite/www/www/sites/mysite2016.com/modules/civicrm/CRM/Contact/Import/ImportJob.php(97): DB_common->query("CREATE TABLE civicrm_import_job_07af6dfb0815f0d905ac1e10692c51cd ENGINE=InnoD...")
      #10 /home/mysite/www/www/sites/mysite2016.com/modules/civicrm/CRM/Import/DataSource/SQL.php(99): CRM_Contact_Import_ImportJob->__construct("civicrm_import_job_07af6dfb0815f0d905ac1e10692c51cd", "mysite_2016civicrm4.f16_cuvd_1_db_update_20161018_import", TRUE)
      #11 /home/mysite/www/www/sites/mysite2016.com/modules/civicrm/CRM/Contact/Import/Form/DataSource.php(340): CRM_Import_DataSource_SQL->postProcess((Array:14), Object(DB_mysql), Object(CRM_Contact_Import_Form_DataSource))
      #12 /home/mysite/www/www/sites/mysite2016.com/modules/civicrm/CRM/Core/Form.php(345): CRM_Contact_Import_Form_DataSource->postProcess()
      #13 /home/mysite/www/www/sites/mysite2016.com/modules/civicrm/CRM/Core/QuickForm/Action/Upload.php(166): CRM_Core_Form->mainProcess()
      #14 /home/mysite/www/www/sites/mysite2016.com/modules/civicrm/CRM/Core/QuickForm/Action/Upload.php(133): CRM_Core_QuickForm_Action_Upload->realPerform(Object(CRM_Contact_Import_Form_DataSource), "upload")
      #15 /home/mysite/www/www/sites/mysite2016.com/modules/civicrm/packages/HTML/QuickForm/Controller.php(203): CRM_Core_QuickForm_Action_Upload->perform(Object(CRM_Contact_Import_Form_DataSource), "upload")
      #16 /home/mysite/www/www/sites/mysite2016.com/modules/civicrm/packages/HTML/QuickForm/Page.php(103): HTML_QuickForm_Controller->handle(Object(CRM_Contact_Import_Form_DataSource), "upload")
      #17 /home/mysite/www/www/sites/mysite2016.com/modules/civicrm/CRM/Core/Controller.php(353): HTML_QuickForm_Page->handle("upload")
      #18 /home/mysite/www/www/sites/mysite2016.com/modules/civicrm/CRM/Core/Invoke.php(312): CRM_Core_Controller->run((Array:3), NULL)
      #19 /home/mysite/www/www/sites/mysite2016.com/modules/civicrm/CRM/Core/Invoke.php(86): CRM_Core_Invoke::runItem((Array:13))
      #20 /home/mysite/www/www/sites/mysite2016.com/modules/civicrm/CRM/Core/Invoke.php(54): CRM_Core_Invoke::_invoke((Array:3))
      #21 /home/mysite/www/www/sites/mysite2016.com/modules/civicrm/drupal/civicrm.module(489): CRM_Core_Invoke::invoke((Array:3))
      #22 [internal function](): civicrm_invoke("import", "contact")
      #23 /home/mysite/www/www/includes/menu.inc(519): call_user_func_array("civicrm_invoke", (Array:2))
      #24 /home/mysite/www/www/index.php(21): menu_execute_active_handler()
      #25

      {main}

        Attachments

          Activity

            People

            • Assignee:
              jitendra.purohit Jitendra Purohit
              Reporter:
              joemurray Joe Murray
            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Time Tracking

                Estimated:
                Original Estimate - Not Specified
                Not Specified
                Remaining:
                Remaining Estimate - 0 minutes
                0m
                Logged:
                Time Spent - 1 hour, 30 minutes
                1h 30m