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) »
  • Case Type error
Pages: [1]

Author Topic: Case Type error  (Read 704 times)

Leslie

  • I’m new here
  • *
  • Posts: 16
  • Karma: 0
  • CiviCRM version: 4.4.6
  • CMS version: WordPress 4.1.1
  • MySQL version: 5.5
  • PHP version: 5.4.24
Case Type error
March 06, 2015, 03:28:52 pm
I am getting an error message when trying to access (through find cases or other searches) a particular case type (others work fine).
Here is the message for each case connected to this particular case type:

Warning: Invalid argument supplied for foreach() in /home/hillcrest/www/www/wp-content/plugins/civicrm/civicrm/CRM/Case/XMLProcessor/Process.php on line 148

After all these error messages for each case, I get the following:

Warning: Cannot modify header information - headers already sent by (output started at /home/hillcrest/www/www/wp-content/plugins/civicrm/civicrm/CRM/Case/XMLProcessor/Process.php:148) in /home/hillcrest/www/www/wp-content/plugins/civicrm/civicrm/CRM/Utils/System.php on line 361

Line 148:   header('Location: ' . $url);
Line 361:     foreach ($caseRolesXML as $caseRoleXML) {

I am only able to see a list of these case types through a Case Summary report when I deselect the Staff Member and Relationship check boxes. However if I click on any of the cases, I get the following message:

Sorry but we are not able to provide this at the moment.
Unable to load configuration file for the referenced case type: 'Referral Service' (learn more...).

Any help in resolving this would be appreciated.

Erik Hommel

  • Forum Godess / God
  • I live on this forum
  • *****
  • Posts: 1773
  • Karma: 59
    • EE-atWork
  • CiviCRM version: all sorts
  • CMS version: Drupal
  • MySQL version: Ubuntu's latest LTS version
  • PHP version: Ubuntu's latest LTS version
Re: Case Type error
March 07, 2015, 04:38:02 am
The first two are warnings that might not be too serious, the latter one definitely is. The problem is that the error message seems to suggest that the configuration file is not there, but I have dealt with a few bugs in Cases and that might be bullsh.. ;D The whole transaction of the CiviCase is processed, and whenever an error occurs it shows at the end of the process with that message, but the error might be totally unrelated.

That would mean debugging your specific install, which might be a bit involved. First step I would take on a test environment is check an individual case of each type to see if I can establish which case type is throwing up problems? And check the configuration of that case type carefully? Or is it a problem with any case type?
Consultant/project manager at EEatWork and CiviCooP (http://www.civicoop.org/)

demeritcowboy

  • Ask me questions
  • ****
  • Posts: 570
  • Karma: 42
  • CiviCRM version: Always the latest!
  • CMS version: Drupal 6 mostly, still evaluating 7.
  • MySQL version: Mix of 5.0 / 5.1 / 5.5
  • PHP version: 5.3, usually on Windows
Re: Case Type error
March 07, 2015, 06:43:55 am
This is almost always a mismatch between the name column in the database in civicrm_option_value and the <name> field in the xml file. Find the row in the database that has your case type and compare the "name"s.

Leslie

  • I’m new here
  • *
  • Posts: 16
  • Karma: 0
  • CiviCRM version: 4.4.6
  • CMS version: WordPress 4.1.1
  • MySQL version: 5.5
  • PHP version: 5.4.24
Re: Case Type error
March 07, 2015, 07:50:20 am
Many thanks to both of my repliers!

First, to clarify the problem, this was only happening with one case type and it was clear which one it was.

Second, the solution. I had been searching around the database before posting the problem as I had already checked out the xml file several times and it was identical (except in name of course) to the other case types that were working. However, I did not know where to look in the database.
When I pulled up all the records under civicrm_option_value for case types, I did find the problem as mentioned by demeritcowboy, that is, a mismatch between the name field and the xml file. I found "Referral Service" which was given in the last error message on my post. After I changed it back to the name of the xml file, everything worked fine.

So this problem is resolved. Thanks.


Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Using CiviCase (Moderator: Dave Greenberg) »
  • Case Type error

This forum was archived on 2017-11-26.