Answers.Body: <p>If you right-click on the pencil icon and then "copy shortcut" or "link location" or something like that, what does it look like? Specifically is there anything that has an = but with no value after it?
  e.g. it should look something like this
  <a href="http://joomla.demo.civicrm.org/administrator/?option=com_civicrm&amp;task=civicrm/case/activity&amp;action=add&amp;reset=1&amp;cid=8&amp;caseid=1&amp;selectedChild=activity&amp;atype=16" rel="nofollow">http://joomla.demo.civicrm.org/administrator/?option=com_civicrm&amp;task=civicrm/case/activity&amp;action=add&amp;reset=1&amp;cid=8&amp;caseid=1&amp;selectedChild=activity&amp;atype=16</a></p>
  
  <p>If that doesn't help then could narrow it down by editing that line 108 you mention. Change the CRM_Core_Error::fatal to something like this:</p>
  
  <pre><code>CRM_Core_Error::fatal("CaseId: {$this-&gt;_caseId}, Activity Type: {$this-&gt;_activityTypeId}, Activity Id: {$this-&gt;_activityId}");
  </code></pre>
  
  <p>It's unlikely to be case id, and the activity id is going to be blank if it's a new activity, so it might be the activity type. Make sure your database contains the proper values in the "name" column in civicrm_option_value, e.g.</p>
  
  <pre><code>SELECT * FROM civicrm_option_value WHERE name='Change Case Status';
  </code></pre>
  
  <p>If that comes up empty then the activity type is missing or misconfigured. You said you deleted entries in civicrm_option_value, so it may be hard to tell if it was there before or not.</p>
  
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2015-12-03T02:01:20.617Z
Answers.Text: Demerit's is right, using edit link you will know which I'd value is missing because all the id values is mention edit link URL
Answers.UserDisplayName: Prem Patel
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2015-12-03T18:09:39.250Z
Answers.Text: Thanks Demerit and Prem! That sorted it. I had basically messed up the option_value table by deleting too much, so I had to reconstitute the table by importing the CiviCase rows from a clean version of the table. A bit fiddly, but got there in the end. Thanks for your help!
Answers.UserDisplayName: Jern
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2015-12-03T00:38:40.823Z
Answers.LastActivityDate: 2015-12-03T00:38:40.823Z
Answers.UserDisplayName: Demerit
Answers.Body: <p>Open the link in new tab instead of pop-up. You will get error in detail. Also check the browser console. </p>
  
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2015-12-02T16:51:53.507Z
Answers.Text: Thanks. I tried those- There was nothing in the browser console, and the error detail in the new tab did not tell me much. It was as follows:, . The result is below
Answers.UserDisplayName: Jern
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2015-12-02T16:57:08.747Z
Answers.Text: Can you please cheek after deleting the temporary folder of civicrm.
Answers.UserDisplayName: Prem Patel
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2015-12-02T17:07:02.780Z
Answers.Text: Do you mean the folders under templates_c ?
Answers.UserDisplayName: Jern
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2015-12-02T17:12:28.407Z
Answers.Text: Yes ... Template_c
Answers.UserDisplayName: Prem Patel
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2015-12-02T17:16:15.553Z
Answers.Text: No change - same error. In fact I think that was one of the first things I tried.
  
  Is there a way of reinstalling a clean version of CiviCase without disturbing the rest of CiviCRM ?
Answers.UserDisplayName: Jern
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2015-12-02T17:39:25.087Z
Answers.Text: Currently there is no option to install civicase desperately. But you can do one thing disable the civicase and then  empty the table related to civicase and activity. Clear the civicrm cache and enable the civicase. Don't forget take database back before doing this.
Answers.UserDisplayName: Prem Patel
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2015-12-02T15:56:24.497Z
Answers.LastActivityDate: 2015-12-02T15:56:24.497Z
Answers.UserDisplayName: Prem Patel
Answers.Body: <p>I was also stumbling on this issue, but it was happening only 1 or 2 times per day (on a rather active CiviCRM instance). Users were complaining that it happened when they left the tab open for an hour or more. There wasn't any other pattern.</p>
  
  <p>Turns out it was the "cleanup" scheduled job that happens every hour. For now, I changed the job to "daily", but I will try to debug and file a bug report, if necessary (I'll update this post if I do).</p>
  
  <p>Edit: I changed the Scheduled Job parameters to add: <code>session=0</code>.</p>
  
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2017-07-04T14:48:02.527Z
Answers.LastActivityDate: 2017-07-04T16:06:34.593Z
Answers.LastEditDate: 2017-07-04T16:06:34.593Z
Answers.UserDisplayName: bgm
Body: <p>I'm getting a fatal error in the popup when trying to edit Case details (eg Type, Status) by clicking on the grey pencil in the contact summary. This has only happened since I moved the installation to a new server, with a more up-to-date version of MySQL and php (5.5.46 and 5.4.45). I have added all the db user privileges necessary for triggers.</p>
  
  <p>Javascript console shows nothing, but the Civi log shows a fatal error ("required params missing") from CRM/Form/Activity.php, line 108. The full log is below.</p>
  
  <p>That line 108 is the result of this test:</p>
  
  <pre><code>if (!$this-&gt;_caseId ||
        (!$this-&gt;_activityId &amp;&amp; !$this-&gt;_activityTypeId)
      ) {
        CRM_Core_Error::fatal('required params missing.');
      }
  </code></pre>
  
  <p>Any ideas where I could look for a solution? I've spent a few hours on this so far - tried all Coleman's suggestions on <a href="https://forum.civicrm.org/index.php/topic,35850" rel="nofollow noreferrer">this page</a>, but nothing has made any difference at all - exactly the same error message. I even deleted all the cases, case types, activities and activiy types, as well as the corresponding entries in the option value table, but when I created a new case with new case type etc, still exactly the same error.</p>
  
  <p>Thanks for any suggestions!</p>
  
  <p>Jeremy.</p>
  
  <p>Civi 4.6.10, Joomla 3.4.5</p>
  
  <p>Backtrace of error in Civi log:</p>
  
  <pre><code>Dec 02 14:14:43  [info] $backTrace = #0 ...path.../administrator/components/com_civicrm/civicrm/CRM/Core/Error.php(364): CRM_Core_Error::backtrace("backTrace", TRUE)
  #1 ...path.../administrator/components/com_civicrm/civicrm/CRM/Case/Form/Activity.php(108): CRM_Core_Error::fatal("required params missing.")
  #2 ...path.../administrator/components/com_civicrm/civicrm/CRM/Core/Form.php(455): CRM_Case_Form_Activity-&gt;preProcess()
  #3 ...path.../administrator/components/com_civicrm/civicrm/CRM/Core/QuickForm/Action/Display.php(94): CRM_Core_Form-&gt;buildForm()
  #4 ...path.../administrator/components/com_civicrm/civicrm/packages/HTML/QuickForm/Controller.php(203): CRM_Core_QuickForm_Action_Display-&gt;perform(Object(CRM_Case_Form_Activity), "display")
  #5 ...path.../administrator/components/com_civicrm/civicrm/packages/HTML/QuickForm/Page.php(103): HTML_QuickForm_Controller-&gt;handle(Object(CRM_Case_Form_Activity), "display")
  #6 ...path.../administrator/components/com_civicrm/civicrm/CRM/Core/Controller.php(353): HTML_QuickForm_Page-&gt;handle("display")
  #7 ...path.../administrator/components/com_civicrm/civicrm/CRM/Utils/Wrapper.php(115): CRM_Core_Controller-&gt;run()
  #8 ...path.../administrator/components/com_civicrm/civicrm/CRM/Core/Invoke.php(286): CRM_Utils_Wrapper-&gt;run("CRM_Case_Form_Activity", "Case Activity", NULL)
  #9 ...path.../administrator/components/com_civicrm/civicrm/CRM/Core/Invoke.php(86): CRM_Core_Invoke::runItem((Array:14))
  #10 ...path.../administrator/components/com_civicrm/civicrm/CRM/Core/Invoke.php(54): CRM_Core_Invoke::_invoke((Array:3))
  #11 ...path.../administrator/components/com_civicrm/civicrm.php(116): CRM_Core_Invoke::invoke((Array:3))
  #12 ...path.../administrator/components/com_civicrm/civicrm.php(40): civicrm_invoke()
  #13 ...path.../libraries/cms/component/helper.php(392): require_once("...path.../httpdocs/administrator/components/com_civicrm/civicrm...")
  #14 ...path.../libraries/cms/component/helper.php(372): JComponentHelper::executeComponent("...path.../administrator/components/com_civicrm/civicrm...")
  #15 ...path.../libraries/cms/application/administrator.php(98): JComponentHelper::renderComponent("com_civicrm")
  #16 ...path...s/libraries/cms/application/administrator.php(152): JApplicationAdministrator-&gt;dispatch()
  #17 ...path.../libraries/cms/application/cms.php(252): JApplicationAdministrator-&gt;doExecute()
  #18 ...path.../administrator/index.php(47): JApplicationCms-&gt;execute()
  #19 {main}
  </code></pre>
  
  <p>Result of calling a new tab:</p>
  
  <p>An error has occurred</p>
  
  <p><code>0 &lt;div id="crm-container" class="crm-container" lang="en" xml:lang="en"&gt; &lt;style type="text/css" media="screen"&gt; @import url(/administrator/components/com_civicrm/civicrm/css/civicrm.css); @import url(/administrator/components/com_civicrm/civicrm/bower_components/jquery-ui/themes/smoothness/jquery-ui.min.css); &lt;/style&gt; &lt;div class="messages status no-popup"&gt; &lt;div class="icon red-icon ui-icon-alert"&gt;&lt;/div&gt; &lt;span class="status-fatal"&gt;Sorry but we are not able to provide this at the moment.&lt;/span&gt; &lt;div class="crm-section crm-error-message"&gt;required params missing.&lt;/div&gt; &lt;p&gt;&lt;a href="...mydomain.../administrator/" title="Main Menu"&gt;Return to home page.&lt;/a&gt;&lt;/p&gt; &lt;/div&gt; &lt;/div&gt; &lt;script language="JavaScript"&gt; function toggle( element ) { var className = element.className; if ( className == 'crm-accordion-wrapper collapsed crm-fatal-error-details-block') { element.className = 'crm-accordion-wrapper crm-fatal-error-details-block'; } else { element.className = 'crm-accordion-wrapper collapsed crm-fatal-error-details-block'; } } &lt;/script&gt;</code></p>
  
Tags: <civicase><error><javascript>
Title: CiviCase error "required params missing"
ThreadText: # CiviCase error "required params missing"
  
  (Asked by: username_0 on 2015-12-02)
  
  I'm getting a fatal error in the popup when trying to edit Case details (eg Type, Status) by clicking on the grey pencil in the contact summary. This has only happened since I moved the installation to a new server, with a more up-to-date version of MySQL and php (5.5.46 and 5.4.45). I have added all the db user privileges necessary for triggers.
  Javascript console shows nothing, but the Civi log shows a fatal error ("required params missing") from CRM/Form/Activity.php, line 108. The full log is below.
  That line 108 is the result of this test:
  if (!$this->_caseId ||
        (!$this->_activityId && !$this->_activityTypeId)
      ) {
        CRM_Core_Error::fatal('required params missing.');
      }
  
  Any ideas where I could look for a solution? I've spent a few hours on this so far - tried all Coleman's suggestions on this page, but nothing has made any difference at all - exactly the same error message. I even deleted all the cases, case types, activities and activiy types, as well as the corresponding entries in the option value table, but when I created a new case with new case type etc, still exactly the same error.
  Thanks for any suggestions!
  Jeremy.
  Civi 4.6.10, Joomla 3.4.5
  Backtrace of error in Civi log:
  Dec 02 14:14:43  [info] $backTrace = #0 ...path.../administrator/components/com_civicrm/civicrm/CRM/Core/Error.php(364): CRM_Core_Error::backtrace("backTrace", TRUE)
  #1 ...path.../administrator/components/com_civicrm/civicrm/CRM/Case/Form/Activity.php(108): CRM_Core_Error::fatal("required params missing.")
  #2 ...path.../administrator/components/com_civicrm/civicrm/CRM/Core/Form.php(455): CRM_Case_Form_Activity->preProcess()
  #3 ...path.../administrator/components/com_civicrm/civicrm/CRM/Core/QuickForm/Action/Display.php(94): CRM_Core_Form->buildForm()
  #4 ...path.../administrator/components/com_civicrm/civicrm/packages/HTML/QuickForm/Controller.php(203): CRM_Core_QuickForm_Action_Display->perform(Object(CRM_Case_Form_Activity), "display")
  #5 ...path.../administrator/components/com_civicrm/civicrm/packages/HTML/QuickForm/Page.php(103): HTML_QuickForm_Controller->handle(Object(CRM_Case_Form_Activity), "display")
  #6 ...path.../administrator/components/com_civicrm/civicrm/CRM/Core/Controller.php(353): HTML_QuickForm_Page->handle("display")
  #7 ...path.../administrator/components/com_civicrm/civicrm/CRM/Utils/Wrapper.php(115): CRM_Core_Controller->run()
  #8 ...path.../administrator/components/com_civicrm/civicrm/CRM/Core/Invoke.php(286): CRM_Utils_Wrapper->run("CRM_Case_Form_Activity", "Case Activity", NULL)
  #9 ...path.../administrator/components/com_civicrm/civicrm/CRM/Core/Invoke.php(86): CRM_Core_Invoke::runItem((Array:14))
  #10 ...path.../administrator/components/com_civicrm/civicrm/CRM/Core/Invoke.php(54): CRM_Core_Invoke::_invoke((Array:3))
  #11 ...path.../administrator/components/com_civicrm/civicrm.php(116): CRM_Core_Invoke::invoke((Array:3))
  #12 ...path.../administrator/components/com_civicrm/civicrm.php(40): civicrm_invoke()
  #13 ...path.../libraries/cms/component/helper.php(392): require_once("...path.../httpdocs/administrator/components/com_civicrm/civicrm...")
  #14 ...path.../libraries/cms/component/helper.php(372): JComponentHelper::executeComponent("...path.../administrator/components/com_civicrm/civicrm...")
  #15 ...path.../libraries/cms/application/administrator.php(98): JComponentHelper::renderComponent("com_civicrm")
  #16 ...path...s/libraries/cms/application/administrator.php(152): JApplicationAdministrator->dispatch()
  #17 ...path.../libraries/cms/application/cms.php(252): JApplicationAdministrator->doExecute()
  #18 ...path.../administrator/index.php(47): JApplicationCms->execute()
  #19 {main}
  
  Result of calling a new tab:
  An error has occurred
  0     Sorry but we are not able to provide this at the moment. required params missing. Return to home page.
  
  **Tags:** civicase, error, javascript
  
  
  ---
  
  ## 3 answers
  
  ### Answer by username_1 on 2015-12-03. Score: 0 | Accepted answer
  
  If you right-click on the pencil icon and then "copy shortcut" or "link location" or something like that, what does it look like? Specifically is there anything that has an = but with no value after it?
  e.g. it should look something like this
  http://joomla.demo.civicrm.org/administrator/?option=com_civicrm&task=civicrm/case/activity&action=add&reset=1&cid=8&caseid=1&selectedChild=activity&atype=16
  If that doesn't help then could narrow it down by editing that line 108 you mention. Change the CRM_Core_Error::fatal to something like this:
  CRM_Core_Error::fatal("CaseId: {$this->_caseId}, Activity Type: {$this->_activityTypeId}, Activity Id: {$this->_activityId}");
  
  It's unlikely to be case id, and the activity id is going to be blank if it's a new activity, so it might be the activity type. Make sure your database contains the proper values in the "name" column in civicrm_option_value, e.g.
  SELECT * FROM civicrm_option_value WHERE name='Change Case Status';
  
  If that comes up empty then the activity type is missing or misconfigured. You said you deleted entries in civicrm_option_value, so it may be hard to tell if it was there before or not.
  
  > **Comments:**
  > **username_2**: username_1's is right, using edit link you will know which I'd value is missing because all the id values is mention edit link URL  
  > **username_0**: Thanks username_1 and Prem! That sorted it. I had basically messed up the option_value table by deleting too much, so I had to reconstitute the table by importing the CiviCase rows from a clean version of the table. A bit fiddly, but got there in the end. Thanks for your help!  
  
  ---
  
  ### Answer by username_2 on 2015-12-02. Score: 0
  
  Open the link in new tab instead of pop-up. You will get error in detail. Also check the browser console.
  
  > **Comments:**
  > **username_0**: Thanks. I tried those- There was nothing in the browser console, and the error detail in the new tab did not tell me much. It was as follows:, . The result is below  
  > **username_2**: Can you please cheek after deleting the temporary folder of civicrm.  
  > **username_0**: Do you mean the folders under templates_c ?  
  > **username_2**: Yes ... Template_c  
  > **username_0**: No change - same error. In fact I think that was one of the first things I tried.  Is there a way of reinstalling a clean version of CiviCase without disturbing the rest of CiviCRM ?  
  > **username_2**: Currently there is no option to install civicase desperately. But you can do one thing disable the civicase and then  empty the table related to civicase and activity. Clear the civicrm cache and enable the civicase. Don't forget take database back before doing this.  
  
  ---
  
  ### Answer by username_3 on 2017-07-04. Score: 0
  
  I was also stumbling on this issue, but it was happening only 1 or 2 times per day (on a rather active CiviCRM instance). Users were complaining that it happened when they left the tab open for an hour or more. There wasn't any other pattern.
  
  Turns out it was the "cleanup" scheduled job that happens every hour. For now, I changed the job to "daily", but I will try to debug and file a bug report, if necessary (I'll update this post if I do).
  
  Edit: I changed the Scheduled Job parameters to add: `session=0`.
  
  
  ---
  
  