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 CiviCase (Moderator: Dave Greenberg) »
  • Can't add case - new install 3.2beta
Pages: [1]

Author Topic: Can't add case - new install 3.2beta  (Read 1729 times)

sraisz

  • I post occasionally
  • **
  • Posts: 52
  • Karma: 0
    • sambandha.net
  • CiviCRM version: 3.3.5
  • CMS version: Drupal 6
Can't add case - new install 3.2beta
July 16, 2010, 12:35:49 pm
I just installed fresh CiviCRM 3.2.beta

I enabled CiviCase and put in some case config files I had been using previously.

I'm getting a non-recoverable error ??? when I try to add a new case to a contact. However, the new case is actually created.

Then when I go into the case and try to add a timeline, i get the same error. But this time only the first two activities are entered.

This happens also with the sample xml config cases

Any help appreciated.

Here is the backtrace:

/home/krishna/domains/fobtestsite.com/public_html/sites/all/modules/civicrm/CRM/Core/Error.php, backtrace, 253
/home/krishna/domains/fobtestsite.com/public_html/sites/all/modules/civicrm/CRM/Case/XMLProcessor/Process.php, fatal, 184
/home/krishna/domains/fobtestsite.com/public_html/sites/all/modules/civicrm/CRM/Case/XMLProcessor/Process.php, createRelationships, 96
/home/krishna/domains/fobtestsite.com/public_html/sites/all/modules/civicrm/CRM/Case/XMLProcessor/Process.php, process, 58
/home/krishna/domains/fobtestsite.com/public_html/sites/all/modules/civicrm/CRM/Case/Form/Activity/OpenCase.php, run, 292
/home/krishna/domains/fobtestsite.com/public_html/sites/all/modules/civicrm/CRM/Case/Form/Case.php(366) : eval()'d code, endPostProcess, 1
/home/krishna/domains/fobtestsite.com/public_html/sites/all/modules/civicrm/CRM/Case/Form/Case.php, eval, 366
/home/krishna/domains/fobtestsite.com/public_html/sites/all/modules/civicrm/CRM/Core/Form.php, postProcess, 250
/home/krishna/domains/fobtestsite.com/public_html/sites/all/modules/civicrm/CRM/Core/QuickForm/Action/Upload.php, mainProcess, 153
/home/krishna/domains/fobtestsite.com/public_html/sites/all/modules/civicrm/CRM/Core/QuickForm/Action/Upload.php, realPerform, 130
/home/krishna/domains/fobtestsite.com/public_html/sites/all/modules/civicrm/packages/HTML/QuickForm/Controller.php, perform, 203
/home/krishna/domains/fobtestsite.com/public_html/sites/all/modules/civicrm/packages/HTML/QuickForm/Page.php, handle, 103
/home/krishna/domains/fobtestsite.com/public_html/sites/all/modules/civicrm/CRM/Core/Controller.php, handle, 279
/home/krishna/domains/fobtestsite.com/public_html/sites/all/modules/civicrm/CRM/Case/Page/Tab.php, run, 166
/home/krishna/domains/fobtestsite.com/public_html/sites/all/modules/civicrm/CRM/Case/Page/Tab.php, edit, 198
/home/krishna/domains/fobtestsite.com/public_html/sites/all/modules/civicrm/CRM/Core/Invoke.php, run, 219
/home/krishna/domains/fobtestsite.com/public_html/sites/all/modules/civicrm/drupal/civicrm.module, invoke, 350
, civicrm_invoke,
/home/krishna/domains/fobtestsite.com/public_html/includes/menu.inc, call_user_func_array, 348
/home/krishna/domains/fobtestsite.com/public_html/index.php, menu_execute_active_handler, 18


« Last Edit: July 16, 2010, 01:09:26 pm by sraisz »

Kurund Jalmi

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4169
  • Karma: 128
    • CiviCRM
  • CiviCRM version: 4.x, future
  • CMS version: Drupal 7, Joomla 3.x
  • MySQL version: 5.5.x
  • PHP version: 5.4.x
Re: Can't add case - new install 3.2beta
July 19, 2010, 03:03:49 am
There might be some problem with your install, I would advice to re-install CiviCRM. I was enable to replicate this on my local or demo.

Thanks
Kurund
Found this reply helpful? Support CiviCRM

Michał Mach

  • Ask me questions
  • ****
  • Posts: 748
  • Karma: 59
    • CiviCRM site
  • CiviCRM version: latest
  • CMS version: Drupal and Joomla latest
  • MySQL version: numerous
  • PHP version: 5.3 and 5.2
Re: Can't add case - new install 3.2beta
July 19, 2010, 08:02:13 am
Judging from your traceback, you don't have proper relationships defined - check if the names of roles that you used in your XML files are correct.

Thx,
m
Found this reply helpful? Contribute NOW and help us improve CiviCRM with the Make it Happen! initiative.

My absolute favourite: Wordpress Integration!.

Donate Now!

sraisz

  • I post occasionally
  • **
  • Posts: 52
  • Karma: 0
    • sambandha.net
  • CiviCRM version: 3.3.5
  • CMS version: Drupal 6
Re: Can't add case - new install 3.2beta
July 23, 2010, 12:49:01 pm
Still having problems.

First I looked at the relationships and found some errors. I fixed these but then got an error:

Quote
Activity type Email, found in case configuration file, is not present in the database.

I couldn't understand the problem as Email is in the database, so I went back to do a reinstall and start from scratch.

I created the attached xml case config and added the additional activity types, relationships and case type.

Now, when I try to create a case I get:

Quote
Fatal error: Call to a member function xinclude() on a non-object in /home/krishna/domains/fobtestsite.com/public_html/sites/all/modules/civicrm/CRM/Case/XMLProcessor.php on line 67

There is no backtrace displayed.

Any suggestions?

sraisz

  • I post occasionally
  • **
  • Posts: 52
  • Karma: 0
    • sambandha.net
  • CiviCRM version: 3.3.5
  • CMS version: Drupal 6
Re: Can't add case - new install 3.2beta
July 23, 2010, 04:31:28 pm
I redid the xml file from one of the sample files and got rid of the fatal error. NOt sure what I did wrong as I haven't had time to compare fully.

I got the Email missing error again.

It seems I can't use Contact Activity types in the timeline section of the xml only CiviCase activity types.

If I use only civicase activity types in the timeline section I get no error. In the first section of the xml file it appears I can mix activity types.

Is this the fact or  am I still doing something wrong?






Dave Greenberg

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 5760
  • Karma: 226
    • My CiviCRM Blog
Re: Can't add case - new install 3.2beta
July 24, 2010, 04:10:59 pm
Not being able to use non-case activity types (like Email) in the case timeline is a bug / oversight which we missed when we allowed them to be part of the ActivityTypes set. :-(

I've filed and fixed an issue for this (fix will be part of next 3.2 release):
http://issues.civicrm.org/jira/browse/CRM-6535

If you want to patch your install - it's a single line change. Line 309 in CRM/Case/XMLProcessor/Process.php should be:
Code: [Select]
        $activityTypes    =& $this->allActivityTypes( true, true );

BTW - there's a small typo (extra space between < and /) in your attached xml file. Not sure if that's causing any issues - but fyi.

Code: [Select]
    <ActivityType>
      <name>Packet Sent</name>
    <  /ActivityType>
Protect your investment in CiviCRM by  becoming a Member!

sraisz

  • I post occasionally
  • **
  • Posts: 52
  • Karma: 0
    • sambandha.net
  • CiviCRM version: 3.3.5
  • CMS version: Drupal 6
Re: Can't add case - new install 3.2beta
July 25, 2010, 04:37:03 am
Thank you so much  for clarifying this and for the patch. I really appreciate your help.

Dave Greenberg

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 5760
  • Karma: 226
    • My CiviCRM Blog
Re: Can't add case - new install 3.2beta
July 25, 2010, 01:43:19 pm
... and thanks for working with / testing the 3.2 beta and helping flush out bugs.

Since CiviCase is the newest component of CiviCRM, we are very interested in folks posting "case studies" (pun not intended) about the organization(s) using it, how they are using it, what additional functionality they might be interested in helping to build to make the software more useful, etc. Would be great if you could post something along these lines here (or if you're able to write up a more detailed "blog post" - let me know and I'll make sure you have the right permissions to post to the CiviCRM blog.
Protect your investment in CiviCRM by  becoming a Member!

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Using CiviCase (Moderator: Dave Greenberg) »
  • Can't add case - new install 3.2beta

This forum was archived on 2017-11-26.