Answers.Body: <p>It should be that they need either &quot;access my cases and activities&quot; or &quot;access all cases and activities&quot;, but &quot;page not found&quot; isn't what I'd expect - I'd expect &quot;access denied&quot;.</p>
  <p>The undefined offset suggests one of the dropdown actions is missing, and &quot;5&quot; is &quot;Print&quot; (and Print is also the default when something is missing). Do you have some custom code (e.g. hook_civicrm_searchTasks) or core overrides that may be causing a problem?</p>
  
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2022-03-01T18:23:19.813Z
Answers.Text: You're right! That's so strange. After enabling "CiviCRM Export Permissions: access print menu" it worked. I wouldn't have think to consider the print menu to be tied to searching cases.
Answers.UserDisplayName: Kristine
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2022-03-01T18:24:42.433Z
Answers.Text: Ah interesting. So that's a 3rd party extension then - "export permissions".
Answers.UserDisplayName: Demerit
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2022-03-01T18:11:00.890Z
Answers.LastActivityDate: 2022-03-01T18:11:00.890Z
Answers.UserDisplayName: Demerit
Body: <p>It suddenly appears that my users get a &quot;Page Not Found&quot; when they click on the &quot;Find Cases&quot; link. It works for me as an admin, but I can't figure out what user permission is responsible for this. Any thoughts? I'm on CiviCRM 5.44.0 and Drupal 7.</p>
  <p>Drupal errors show:</p>
  <p>Notice: Undefined offset: 5 in CRM_Case_Task::getTask() (line 142 of /home/admin/domains/.../public_html/sites/all/modules/civicrm/CRM/Case/Task.php).</p>
  <p>Warning: require_once(.php): failed to open stream: No such file or directory in require_once() (line 452 of /home/admin/domains/.../public_html/sites/all/modules/civicrm/CRM/Core/Controller.php).</p>
  
Tags: <civicase>
Title: "Find Cases" Page Not Found
ThreadText: # "Find Cases" Page Not Found
  
  (Asked by: username_0 on 2022-03-01)
  
  It suddenly appears that my users get a "Page Not Found" when they click on the "Find Cases" link. It works for me as an admin, but I can't figure out what user permission is responsible for this. Any thoughts? I'm on CiviCRM 5.44.0 and Drupal 7.
  
  Drupal errors show:
  
  Notice: Undefined offset: 5 in CRM\_Case\_Task::getTask() (line 142 of /home/admin/domains/.../public\_html/sites/all/modules/civicrm/CRM/Case/Task.php).
  
  Warning: require\_once(.php): failed to open stream: No such file or directory in require\_once() (line 452 of /home/admin/domains/.../public\_html/sites/all/modules/civicrm/CRM/Core/Controller.php).
  
  **Tags:** civicase
  
  
  ---
  
  ## 1 answers
  
  ### Answer by username_1 on 2022-03-01. Score: 3 | Accepted answer
  
  It should be that they need either "access my cases and activities" or "access all cases and activities", but "page not found" isn't what I'd expect - I'd expect "access denied".
  
  The undefined offset suggests one of the dropdown actions is missing, and "5" is "Print" (and Print is also the default when something is missing). Do you have some custom code (e.g. hook\_civicrm\_searchTasks) or core overrides that may be causing a problem?
  
  > **Comments:**
  > **username_0**: You're right! That's so strange. After enabling "CiviCRM Export Permissions: access print menu" it worked. I wouldn't have think to consider the print menu to be tied to searching cases.  
  > **username_1**: Ah interesting. So that's a 3rd party extension then - "export permissions".  
  
  ---
  
  