CiviCRM Community Forums (archive)

*

News:

Have a question about CiviCRM?
Get it answered quickly at the new
CiviCRM Stack Exchange Q+A site

This forum was archived on 25 November 2017. Learn more.
How to get involved.
What to do if you think you've found a bug.



  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Using Drupal Modules (Moderator: Donald Lobo) »
  • How to debug civicrm_webform?
Pages: [1]

Author Topic: How to debug civicrm_webform?  (Read 780 times)

martasd

  • I’m new here
  • *
  • Posts: 5
  • Karma: 0
  • CiviCRM version: 4.2.4
  • CMS version: Drupal 6.28
  • MySQL version: 5.1
  • PHP version: 5.3.2t
How to debug civicrm_webform?
April 03, 2013, 10:16:23 am
Hi,

I have just installed civicrm_webform module in Drupal 6, but I get an error when trying to view a webform I have created. To install and enable the module with its dependencies, I followed instructions at https://drupal.org/node/1615380. I was able to create a webform without any difficulty and succesfully added a couple of contact fields to the form from the 'Civicrm' tab. When I click on 'View', however, I get to a page with URL  'site-name/node/1', which shows me the following error:

PEAR_Exception: DB Error: no such table in CRM_Core_Error::exceptionHandler() (line 682 of /var/www/drupal/sites/all/modules/civicrm/CRM/Core/Error.php).

To troubleshoot this problem, I tried enabling debugging and backtrace in Administer -> System Settings -> Debugging in civicrm. Unfortunately, I don't see any backtrace on the page even though debugging is enabled. Am I displaying the form correctly with a non-civicrm URL considering that i am getting a page with a Drupal URL? I do see the error in drupal's log entries, but that doesn't display any backtrace either. Any ideas about how to debug a webform? I would greatly appreciate any advice.

Thanks,
Martin

Coleman Watts

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 2346
  • Karma: 183
  • CiviCRM version: The Bleeding Edge
  • CMS version: Various
Re: How to debug civicrm_webform?
April 03, 2013, 10:24:07 am
General debugging tips for webform_civicrm:

1) Always check your drupal logs, as any api errors will be logged for you by webform_civicrm - filter messages by type "webform_civicrm"
2) If CiviCRM gives you a fatal error you won't see the backtrace on the screen b/c a webform is a drupal page, not a civi page. But you can retrieve it from the logs: sites/[yoursite|default]/files/civicrm/ConfigAndLog
check the bottom of the most recent log file.
Try asking your question on the new CiviCRM help site.

martasd

  • I’m new here
  • *
  • Posts: 5
  • Karma: 0
  • CiviCRM version: 4.2.4
  • CMS version: Drupal 6.28
  • MySQL version: 5.1
  • PHP version: 5.3.2t
Re: How to debug civicrm_webform?
April 03, 2013, 02:41:26 pm
Using print_r(debug_backtrace()) I found that that after importing a database dump from our production instance tables for custom fields don't exist.  That was the origin of 'no such table' error. After disabling those custom fields, I am able to view the webform now.

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Using Drupal Modules (Moderator: Donald Lobo) »
  • How to debug civicrm_webform?

This forum was archived on 2017-11-26.