Answers.Body: <p>==> I found the trouble : that was in the role setting : Multisite: view/edit/list all contacts in domain was not selected for this role… I my case, all the site share same user and roles along the sites. But the actual setting needs to be defined in each site. Therefore the warning was indeed accurate and indicating a wrong setting for the role.</p>
  
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2018-11-01T20:58:45.800Z
Answers.LastActivityDate: 2018-11-01T20:58:45.800Z
Answers.UserDisplayName: Ichi
Body: <p>After the update 5.6.1, for a user role with non-admin permission, I noticed a warning concerning Multisite that indicate an Undefined variable :</p>
  
  <pre><code>Notice: Undefined variable: type in multisite_civicrm_selectWhereClause() (line 229 of /var/data/sites/reveal/public_html/sites/default/files/civicrm/ext/org.civicrm.multisite/multisite.php).
  </code></pre>
  
  <p>This might be linked : any request for let's say the list of contact in a group gives a 500 <em>Internal Server Error</em>. The <em>Recent log messages</em> always indicate the Undefined variable Notice.</p>
  
  <p>As a non admin and to fully benefit of the Multisite setting, the permission for this role doesn't include <strong>view and edit all contacts</strong>.
  How can I dig in this ?</p>
  
Comments.ContentLicense: CC BY-SA 4.0
Comments.CreationDate: 2018-10-29T20:12:43.410Z
Comments.Text: Hi, thanks for adding the resolution.  It is clearer to everyone that the issue is resolved if you put your update as an answer rather than with the question.  You can then accept the answer.
Comments.UserDisplayName: Aidan
Tags: <multisite>
Title: Multisite warning Undefined variable
ThreadText: # Multisite warning Undefined variable
  
  (Asked by: username_0 on 2018-10-29)
  
  After the update 5.6.1, for a user role with non-admin permission, I noticed a warning concerning Multisite that indicate an Undefined variable :
  Notice: Undefined variable: type in multisite_civicrm_selectWhereClause() (line 229 of /var/data/sites/reveal/public_html/sites/default/files/civicrm/ext/org.civicrm.multisite/multisite.php).
  
  This might be linked : any request for let's say the list of contact in a group gives a 500 Internal Server Error. The Recent log messages always indicate the Undefined variable Notice.
  As a non admin and to fully benefit of the Multisite setting, the permission for this role doesn't include view and edit all contacts.
  How can I dig in this ?
  
  **Tags:** multisite
  
  > **Comments:**
  > **username_1**: Hi, thanks for adding the resolution.  It is clearer to everyone that the issue is resolved if you put your update as an answer rather than with the question.  You can then accept the answer.  
  
  ---
  
  ## 1 answers
  
  ### Answer by username_0 on 2018-11-01. Score: 2 | Accepted answer
  
  ==> I found the trouble : that was in the role setting : Multisite: view/edit/list all contacts in domain was not selected for this role… I my case, all the site share same user and roles along the sites. But the actual setting needs to be defined in each site. Therefore the warning was indeed accurate and indicating a wrong setting for the role.
  
  
  ---
  
  