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) »
  • Print Case Report Button is broken
Pages: [1]

Author Topic: Print Case Report Button is broken  (Read 1752 times)

theMusician

  • I post occasionally
  • **
  • Posts: 48
  • Karma: 3
  • CiviCRM version: 4.0 and 4.0.1
  • CMS version: Drupal 7.0
  • MySQL version: MySQL 5.x
  • PHP version: 5.2
Print Case Report Button is broken
May 05, 2011, 02:45:38 pm
Hi fellow CiviCase users,

I am working on a D7 Civi 4.0 project and it appears that the Print Case Report Button does not work properly. It outputs a nice backtrace error, reporting that the CaseId does not exist. But it does, I can do everything else in the case screen except use the print case report button.

Code: [Select]
backTrace

/vpfa-dev/fa-drupal7/drupal-7.0/sites/all/modules/civicrm/CRM/Core/Error.php, backtrace, 291
/vpfa-dev/fa-drupal7/drupal-7.0/sites/all/modules/civicrm/CRM/Utils/Request.php, fatal, 109
/vpfa-dev/fa-drupal7/drupal-7.0/sites/all/modules/civicrm/CRM/Case/Form/Report.php, retrieve, 69
/vpfa-dev/fa-drupal7/drupal-7.0/sites/all/modules/civicrm/CRM/Core/Form.php, preProcess, 314
/vpfa-dev/fa-drupal7/drupal-7.0/sites/all/modules/civicrm/CRM/Core/QuickForm/Action/Display.php, buildForm, 99
/vpfa-dev/fa-drupal7/drupal-7.0/sites/all/modules/civicrm/packages/HTML/QuickForm/Controller.php, perform, 203
/vpfa-dev/fa-drupal7/drupal-7.0/sites/all/modules/civicrm/packages/HTML/QuickForm/Page.php, handle, 103
/vpfa-dev/fa-drupal7/drupal-7.0/sites/all/modules/civicrm/CRM/Core/Controller.php, handle, 284
/vpfa-dev/fa-drupal7/drupal-7.0/sites/all/modules/civicrm/CRM/Utils/Wrapper.php, run, 115
/vpfa-dev/fa-drupal7/drupal-7.0/sites/all/modules/civicrm/CRM/Core/Invoke.php, run, 196
/vpfa-dev/fa-drupal7/drupal-7.0/sites/all/modules/civicrm/drupal/civicrm.module, invoke, 385
, civicrm_invoke,
/vpfa-dev/fa-drupal7/drupal-7.0/includes/menu.inc, call_user_func_array, 501
/vpfa-dev/fa-drupal7/drupal-7.0/index.php, menu_execute_active_handler, 22

Sorry. A non-recoverable error has occurred.
Could not find valid value for caseid

Return to home page.

Where should I start debugging this? I am sure it is a simple configuration error, that at least has solved all of my prior issues with CiviCase. I tried to do this on the demo site but the case configuration seems to be off there as well, so I was not able to test for the proper functionality.

Thanks for any tips or advice.

theMusician

  • I post occasionally
  • **
  • Posts: 48
  • Karma: 3
  • CiviCRM version: 4.0 and 4.0.1
  • CMS version: Drupal 7.0
  • MySQL version: MySQL 5.x
  • PHP version: 5.2
Re: Print Case Report Button is broken
May 09, 2011, 04:30:52 pm
I tried this on a fresh install of 4.0.1 and get the following.

Sorry. A non-recoverable error has occurred.
Could not find valid value for caseid

Return to home page.

Should I file this as a bug or am I the only case user experiencing this?

Thanks.

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: Print Case Report Button is broken
May 14, 2011, 12:17:19 pm
Haven't looked at a drupal 7 install yet but where I'd start debugging is what do you see in view-source for the manage case screen, down at function printCaseReport().  Is there a caseId parameter in the url?

If yes, then follow where that url goes and how the code processes the parameter (probably it's somewhere in here /vpfa-dev/fa-drupal7/drupal-7.0/sites/all/modules/civicrm/CRM/Case/Form/Report.php, retrieve, 69).

If not, then follow backwards to the code where that url came from.

theMusician

  • I post occasionally
  • **
  • Posts: 48
  • Karma: 3
  • CiviCRM version: 4.0 and 4.0.1
  • CMS version: Drupal 7.0
  • MySQL version: MySQL 5.x
  • PHP version: 5.2
Re: Print Case Report Button is broken
May 16, 2011, 10:24:56 am
Whops, I forgot to post on this thread that the civi team fixed the bug.

http://issues.civicrm.org/jira/browse/CRM-8072

Making the edits to my files solved the problem. Once again, wonderful case reports are accessible. Thanks for the thoughts demerit.

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Using CiviCase (Moderator: Dave Greenberg) »
  • Print Case Report Button is broken

This forum was archived on 2017-11-26.