Answers.Body: <p>Welcome to SE!</p>
  <p>You might get that if you have a mix of http / https and www / no www</p>
  <p>Use your browser's developer tools to check what URL's are being accessed under the Network tab. (Ctrl-Shift-E on firefox)</p>
  <p>They should all be the same - eg <a href="https://example.org/.." rel="nofollow noreferrer">https://example.org/..</a>. not a mix of <a href="http://example.org" rel="nofollow noreferrer">http://example.org</a>, <a href="https://www.example.org" rel="nofollow noreferrer">https://www.example.org</a>, <a href="http://www.example.org" rel="nofollow noreferrer">http://www.example.org</a></p>
  <p>If that is the problem, check your settings in civicrm.settings.php and at <code>Administer &gt; System Settings &gt; Resource URLs</code> and make sure they are consistent.</p>
  
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2022-03-24T09:50:15.553Z
Answers.Text: Good thought, but no - I've checked and all requests are coming from https:// with no www. Wouldn't that problem affect all users/sessions? This problem is that occasional sessions are getting an error. Other user sessions are not. A user session which has the problem gets it every time. Where I get the error, the query string remains as this once the form is submitted: civicrm/contact/search/advanced?reset=1
Answers.UserDisplayName: Jon P
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2022-03-23T17:41:40.993Z
Answers.LastActivityDate: 2022-03-24T07:20:44.850Z
Answers.LastEditDate: 2022-03-24T07:20:44.850Z
Answers.UserDisplayName: Aidan
Body: <p>I have an intermittent issue with advanced search giving no results. This seems to only happen in Chrome and looks like it might be something to do with PHP sessions.</p>
  <p>On submitting the form, there are no results and the form has the focus on the Complete OR Partial Name field - now empty. No error is logged. It is as though the name field isn't being submitted somehow and the user is being urged to put in a correct name.</p>
  <p>If the user logs out and logs in again, it works OK.</p>
  <p>Is anybody else getting a similar issue? It's very hard to reproduce, but my user is getting it a lot!</p>
  
Tags: <advanced-search>
Title: Advanced Search - no results
ThreadText: # Advanced Search - no results
  
  (Asked by: username_0 on 2022-03-23)
  
  I have an intermittent issue with advanced search giving no results. This seems to only happen in Chrome and looks like it might be something to do with PHP sessions.
  
  On submitting the form, there are no results and the form has the focus on the Complete OR Partial Name field - now empty. No error is logged. It is as though the name field isn't being submitted somehow and the user is being urged to put in a correct name.
  
  If the user logs out and logs in again, it works OK.
  
  Is anybody else getting a similar issue? It's very hard to reproduce, but my user is getting it a lot!
  
  **Tags:** advanced-search
  
  
  ---
  
  ## 1 answers
  
  ### Answer by username_1 on 2022-03-23. Score: 2
  
  Welcome to SE!
  
  You might get that if you have a mix of http / https and www / no www
  
  Use your browser's developer tools to check what URL's are being accessed under the Network tab. (Ctrl-Shift-E on firefox)
  
  They should all be the same - eg <https://example.org/..>. not a mix of <http://example.org>, <https://www.example.org>, <http://www.example.org>
  
  If that is the problem, check your settings in civicrm.settings.php and at `Administer > System Settings > Resource URLs` and make sure they are consistent.
  
  > **Comments:**
  > **username_2**: Good thought, but no - I've checked and all requests are coming from https:// with no www. Wouldn't that problem affect all users/sessions? This problem is that occasional sessions are getting an error. Other user sessions are not. A user session which has the problem gets it every time. Where I get the error, the query string remains as this once the form is submitted: civicrm/contact/search/advanced?reset=1  
  
  ---
  
  