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 »
  • Installing CiviCRM »
  • Drupal Installations (Moderator: Piotr Szotkowski) »
  • How to use debug / backtrace? problems after installation
Pages: [1]

Author Topic: How to use debug / backtrace? problems after installation  (Read 2181 times)

m.e.

  • I post frequently
  • ***
  • Posts: 157
  • Karma: 5
  • CiviCRM version: 4.0.9
  • CMS version: Drupal 7.9
How to use debug / backtrace? problems after installation
June 02, 2011, 08:40:36 am
Can someone explain to me the steps I need to take to enable debug and backtrace? The documentation on this is a bit spotty.

We're using Drupal 7.2, CiviCRM 4.0.0. (I downgraded from 4.0.1 because of some problems, but they've persisted.) Things were working fine on a Drupal 6 / CiviCRM 3 sandbox. Problems began when I imported the CiviCRM database to a fresh Drupal 7 / CiviCRM 4 install (different domain name, different server, brand new Drupal database) and imported the CiviCRM 3 data. I ran into some issues but was able to eventually run the upgrade script for CiviCRM.

My site has a lot of custom data. Under certain circumstances that seem to involve how many custom datasets are enabled, I get this error when I try to edit a contact:

Sorry. A non-recoverable error has occurred.
QuickForm Error: element already exists
> Error Details [this should expand, but doesn't]

A couple times, instead of Error Details it has displayed "unable to determine value for ct".

I'm also getting this error message at the top of most pages: Undefined variable: return in _civicrm_api3_dao_to_array() (line 351 of [path]/sites/all/modules/civicrm/api/v3/utils.php).

It's been suggested to me that I try to run debug and backtrace, but I'm a bit unclear how to get started. Thanks in advance!

m.e.


Hershel

  • Forum Godess / God
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4640
  • Karma: 176
    • CiviHosting
  • CiviCRM version: Latest
  • CMS version: Mostly WordPress and Drupal
Re: How to use debug / backtrace? problems after installation
June 02, 2011, 08:43:41 am
http://wiki.civicrm.org/confluence/display/CRMDOC40/Debugging
CiviHosting and CiviOnline -- The CiviCRM hosting experts, since 2007

See here for the official: What to do if you think you've found a bug.

m.e.

  • I post frequently
  • ***
  • Posts: 157
  • Karma: 5
  • CiviCRM version: 4.0.9
  • CMS version: Drupal 7.9
Re: How to use debug / backtrace? problems after installation
June 02, 2011, 11:41:51 am
Thanks.  The output is

[path]/sites/all/modules/civicrm/CRM/Core/Error.php, backtrace, 159
, handle,
[path]/sites/all/modules/civicrm/packages/PEAR.php, call_user_func, 931
[path]/sites/all/modules/civicrm/packages/HTML/QuickForm.php, PEAR_Error, 2152
[path]/sites/all/modules/civicrm/packages/PEAR.php, HTML_QuickForm_Error, 564
[path]/sites/all/modules/civicrm/packages/HTML/QuickForm.php, raiseError, 653
[path]/sites/all/modules/civicrm/packages/HTML/QuickForm.php, addElement, 769
[path]/sites/all/modules/civicrm/CRM/Contact/Form/Edit/TagsAndGroups.php, addGroup, 122
[path]/sites/all/modules/civicrm/CRM/Contact/Form/Contact.php(767) : eval()'d code, buildQuickForm, 1
[path]/sites/all/modules/civicrm/CRM/Contact/Form/Contact.php, eval, 767
[path]/sites/all/modules/civicrm/CRM/Core/Form.php, buildQuickForm, 326
[path]/sites/all/modules/civicrm/CRM/Core/QuickForm/Action/Display.php, buildForm, 99
[path]/sites/all/modules/civicrm/packages/HTML/QuickForm/Controller.php, perform, 203
[path]/sites/all/modules/civicrm/packages/HTML/QuickForm/Page.php, handle, 103
[path]/sites/all/modules/civicrm/CRM/Core/Controller.php, handle, 284
[path]/sites/all/modules/civicrm/CRM/Utils/Wrapper.php, run, 115
[path]/sites/all/modules/civicrm/CRM/Core/Invoke.php, run, 196
[path]/sites/all/modules/civicrm/drupal/civicrm.module, invoke, 385
, civicrm_invoke,
[path]/includes/menu.inc, call_user_func_array, 503
[path]/index.php, menu_execute_active_handler, 21

...suggesting a problem on the Drupal side, or perhaps how CiviCRM communicates with it?   This occurred when I clicked "Edit" for a contact.

m.e.

  • I post frequently
  • ***
  • Posts: 157
  • Karma: 5
  • CiviCRM version: 4.0.9
  • CMS version: Drupal 7.9
Re: How to use debug / backtrace? problems after installation
June 02, 2011, 08:15:50 pm
UPDATE: I've just upgraded to 4.0.2. The "edit" problem remains, with the same trace. The other error message (undefined variable etc.) has disappeared in most cases.

LATER UPDATE: I've changed all my enabled custom datasets to "tab" display for the contact summary and now - so far - have not seen the "edit" problem at all. However, after I edit a contact and save, I see

    Notice: Undefined index: entity in civicrm_api3_create_success() (line 234 of [path]/sites/all/modules/civicrm/api/v3/utils.php).
    Notice: Undefined index: in _civicrm_api3_get_DAO() (line 104 of [path]/sites/all/modules/civicrm/api/v3/utils.php).


EVEN LATER QUESTION: Is this something I need to file as some kind of bug or issue? Where?
« Last Edit: June 03, 2011, 10:11:14 pm by m.e. »

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Installing CiviCRM »
  • Drupal Installations (Moderator: Piotr Szotkowski) »
  • How to use debug / backtrace? problems after installation

This forum was archived on 2017-11-26.