Body: <p>I am volunteering on a project to help a small nonprofit move their CiviCRM database from WordPress to Drupal.  I think I am close but I am running into an issue after CiviCRM is installed.</p>
  <p>I have installed CiviCRM and switched the database to my database from WordPress. I cleared the civicrm_uf_match based on <a href="https://civicrm.stackexchange.com/questions/564/how-to-migrate-civicrm-from-wordpress-to-drupal">this post</a>. I also used <code>cv</code> to clear the cache.</p>
  <p>When trying to access CiviCRM I get the error &quot; CRM_Core_Exception: DB Error: unknown error in civicrm_api3() (line 135 of /home/user/public_html/folder/vendor/civicrm/civicrm-core/api/api.php).&quot;</p>
  <p>Based on a recommendation from @Coleman I enabled backtrace. I have not needed to do this in years so I very much appreciate the recommendation.</p>
  <p>If I look at the log files created it has hundreds if not thousands debug messages but does not appear to have any errors.</p>
  <p>I am not sure where to go from here and would appreciate any help.</p>
  <p>Thanks,</p>
  <p>Steve</p>
  
Comments.ContentLicense: CC BY-SA 4.0
Comments.CreationDate: 2024-04-09T01:33:32.340Z
Comments.Text: That error message isn't very specific. You might get a better one if you enable debug and backtrace settings.
Comments.UserDisplayName: Coleman
Comments.ContentLicense: CC BY-SA 4.0
Comments.CreationDate: 2024-04-14T00:04:05.797Z
Comments.Text: @Coleman, thank you for getting back to me. I turned on CIVICRM_DEBUG_LOG_QUERY in the civicrm.settings.php. I hope this was the right thing. I generally would turn on "debugging" and backtracking at /civicrm/admin/setting/debug but I do not have a working copy of this installation to get to this page. I did not get any errors the way I did.  If you have any further ideas I would appreciate it.
Comments.UserDisplayName: Steve
Tags: <drupal><installation><drupal-9><install>
Title: Trouble Migrating CiviCRM From WordPress to Drupal
ThreadText: # Trouble Migrating CiviCRM From WordPress to Drupal
  
  (Asked by: username_0 on 2024-04-08)
  
  I am volunteering on a project to help a small nonprofit move their CiviCRM database from WordPress to Drupal. I think I am close but I am running into an issue after CiviCRM is installed.
  
  I have installed CiviCRM and switched the database to my database from WordPress. I cleared the civicrm\_uf\_match based on [this post](https://civicrm.stackexchange.com/questions/564/how-to-migrate-civicrm-from-wordpress-to-drupal). I also used `cv` to clear the cache.
  
  When trying to access CiviCRM I get the error " CRM\_Core\_Exception: DB Error: unknown error in civicrm\_api3() (line 135 of /home/user/public\_html/folder/vendor/civicrm/civicrm-core/api/api.php)."
  
  Based on a recommendation from @username_1 I enabled backtrace. I have not needed to do this in years so I very much appreciate the recommendation.
  
  If I look at the log files created it has hundreds if not thousands debug messages but does not appear to have any errors.
  
  I am not sure where to go from here and would appreciate any help.
  
  Thanks,
  
  username_0
  
  **Tags:** drupal, installation, drupal-9, install
  
  > **Comments:**
  > **username_1**: That error message isn't very specific. You might get a better one if you enable debug and backtrace settings.  
  > **username_0**: @username_1, thank you for getting back to me. I turned on CIVICRM_DEBUG_LOG_QUERY in the civicrm.settings.php. I hope this was the right thing. I generally would turn on "debugging" and backtracking at /civicrm/admin/setting/debug but I do not have a working copy of this installation to get to this page. I did not get any errors the way I did.  If you have any further ideas I would appreciate it.  
  
  ---
  
  ## 0 answers
  
  