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 »
  • Upgrading CiviCRM (Moderator: Deepak Srivastava) »
  • Upgrading to 4.4.1 Broke CiviCase on WP 3.7.1
Pages: [1]

Author Topic: Upgrading to 4.4.1 Broke CiviCase on WP 3.7.1  (Read 1085 times)

loneprairie

  • I’m new here
  • *
  • Posts: 15
  • Karma: 0
  • CiviCRM version: 4.5.8
  • CMS version: WordPress 4.1.1
  • MySQL version: 5.5.40-cll
  • PHP version: 5.4.38
Upgrading to 4.4.1 Broke CiviCase on WP 3.7.1
November 08, 2013, 08:08:19 am
Hi,

All was well in CiviCRM 4.4.0 on WP 3.7.1 (once I inserted to patch to print case reports).  But when I upgraded to 4.4.1, CiviCase was disabled by the upgrade process.  After I enabled it and copied my Case Type xml files, I get these errors on the dashboard when I choose to display all cases (only the other user has created any cases):

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

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

Warning: Cannot modify header information - headers already sent by (output started at /home/neapplec/public_html/wp-content/plugins/civicrm/civicrm/CRM/Case/XMLProcessor/Process.php:148) in /home/neapplec/public_html/wp-includes/option.php on line 563

Warning: Cannot modify header information - headers already sent by (output started at /home/neapplec/public_html/wp-content/plugins/civicrm/civicrm/CRM/Case/XMLProcessor/Process.php:148) in /home/neapplec/public_html/wp-includes/option.php on line 564

And, when I attempt to create a new case, it hangs on a blank screen when I click Save.

Please Help!

Thanks,
e.

loneprairie

  • I’m new here
  • *
  • Posts: 15
  • Karma: 0
  • CiviCRM version: 4.5.8
  • CMS version: WordPress 4.1.1
  • MySQL version: 5.5.40-cll
  • PHP version: 5.4.38
Re: Upgrading to 4.4.1 Broke CiviCase on WP 3.7.1
November 08, 2013, 08:23:36 am
It also disabled CiviCampaign.  Fortunately, once enabled, CiviCampaign does not appear to be broken.

e.

Donald Lobo

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 15963
  • Karma: 470
    • CiviCRM site
  • CiviCRM version: 4.2+
  • CMS version: Drupal 7, Joomla 2.5+
  • MySQL version: 5.5.x
  • PHP version: 5.4.x
Re: Upgrading to 4.4.1 Broke CiviCase on WP 3.7.1
November 08, 2013, 08:37:48 am

hey e:

1. can u apply this patch:

https://github.com/dlobo/civicrm-core/commit/28c8781b81cf9ae0c37a67b9fb4b4986fa733c24.patch

this might give u more details regarding the white scren

2. Can you check your case xml and ensure that you have some caseRoles there. No caseRoles triggers the notice, which in turn triggers the php warning. Alternatively you can turn notices off in your php.ini

lobo
A new CiviCRM Q&A resource needs YOUR help to get started. Visit our StackExchange proposed site, sign up and vote on 5 questions

Donald Lobo

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 15963
  • Karma: 470
    • CiviCRM site
  • CiviCRM version: 4.2+
  • CMS version: Drupal 7, Joomla 2.5+
  • MySQL version: 5.5.x
  • PHP version: 5.4.x
Re: Upgrading to 4.4.1 Broke CiviCase on WP 3.7.1
November 08, 2013, 08:38:54 am

its wierd that the upgrade is disabling active components? Are u sure that happened? i've seen it mentioned in the forum, so most likely an upgrade bug that should be investigated and fixed

lobo
A new CiviCRM Q&A resource needs YOUR help to get started. Visit our StackExchange proposed site, sign up and vote on 5 questions

loneprairie

  • I’m new here
  • *
  • Posts: 15
  • Karma: 0
  • CiviCRM version: 4.5.8
  • CMS version: WordPress 4.1.1
  • MySQL version: 5.5.40-cll
  • PHP version: 5.4.38
Re: Upgrading to 4.4.1 Broke CiviCase on WP 3.7.1
November 08, 2013, 09:24:57 am
Thanks for the quick replies!

Found the problem: I had copied the case xml files out of their old 'configuration' directory directly into the new 'xml' directory.  Once I moved 'configuration' into new 'xml' and moved the case xml files, the errors disappeared and I could create new cases.  Your patch allowed me to see that - thank you!  I then restored the code in Error.php after I confirmed all this worked.  Was I correct in restoring that error code?

The disabling of components happened to me on two separate installations, one specifically set up for case management and using pretty much only CiviCase so I would not have disabled it.  The other is our fundraising db, so campaigns are a big deal and would not have been disabled.  That had not happened to me in the past - hopefully, you good folks can track it down.

Thanks again - a case management db is my big project to complete by the end of the year and you really saved my bacon!
e.

Donald Lobo

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 15963
  • Karma: 470
    • CiviCRM site
  • CiviCRM version: 4.2+
  • CMS version: Drupal 7, Joomla 2.5+
  • MySQL version: 5.5.x
  • PHP version: 5.4.x
Re: Upgrading to 4.4.1 Broke CiviCase on WP 3.7.1
November 08, 2013, 04:59:06 pm

i could not reproduce the disabling components stuff on  some trivial upgrades. I'll take a look and keep an eye out it

glad you got it sorted. Keep us updated on your progress and please pay it forward by helping others out and/or contributing / supporting the project

lobo
A new CiviCRM Q&A resource needs YOUR help to get started. Visit our StackExchange proposed site, sign up and vote on 5 questions

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Upgrading CiviCRM (Moderator: Deepak Srivastava) »
  • Upgrading to 4.4.1 Broke CiviCase on WP 3.7.1

This forum was archived on 2017-11-26.