Answers.Body: <p>We isolated the problem. There was a Mod Security rule in place on the new server that was blocking the action that loads the search lists. We adjusted that rule and it works correctly now.</p>
  
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2024-08-13T19:01:15.373Z
Answers.LastActivityDate: 2024-08-13T19:01:15.373Z
Answers.UserDisplayName: KilakwaBT
Body: <p>We recently moved all our sites to a new server. When we go to Serach&gt;Searchkit the list headers show but none of the searches under any of the tabs show. Other displays using SearchKit such as Find Contacts, Custom Fields Groups, etc. are working fine. This seems to be the case for all sites we moved. Most are running CiviCRM 5.74.4 but we have a couple still on 5.64.4 with the same issue. All are under WordPress.</p>
  <p>I have cleared the cache and emptied the templates_c folder but the issue persists. There searches are fine. I can access them via Form builder and I can create new searches without an issue. Just can't see the list.</p>
  <p>Seeing two errors in the console:</p>
  <p><code>crm.ajax.js?r=tHmvLen_US:85  POST https://yoo.kilakwa.com/wp-admin/admin.php?page=CiviCRM&amp;q=civicrm%2Fajax%2Fapi4 404 (Not Found)</code></p>
  <p><code>TypeError: Cannot read properties of undefined (reading 'run') at controller.&lt;anonymous&gt; (crmSearchAdminSearchListing.component.js?r=tHmvLen_US:103:27) at searchDisplayBaseTrait.service.js?r=tHmvLen_US:192:22 at qt (lodash.min.js:9:507) at Function.Re (lodash.min.js:37:336) at searchDisplayBaseTrait.service.js?r=tHmvLen_US:191:13 at processQueue (angular.js?r=tHmvLen_US:18075:37) at angular.js?r=tHmvLen_US:18123:27 at Scope.$digest (angular.js?r=tHmvLen_US:19242:15) at angular.js?r=tHmvLen_US:19562:26 at TaskTracker.completeTask (angular.js?r=tHmvLen_US:21403:7) 'Possibly unhandled rejection: {}' (anonymous) @ angular.js?r=tHmvLen_US:15697 Show 1 more frame Show lessUnderstand this error</code></p>
  
Comments.ContentLicense: CC BY-SA 4.0
Comments.CreationDate: 2024-08-07T16:32:22.457Z
Comments.Text: Did you move the 'ANG' folder to the new server?  That's where the Search Kits are
Comments.UserDisplayName: Andy Clark
Comments.ContentLicense: CC BY-SA 4.0
Comments.CreationDate: 2024-08-07T17:14:12.280Z
Comments.Text: Yes, the ANG folder was moved. The files are there. The searches are all working and available they just do not appear on the list when I bring it up. Also, this was a complete migration so all the files moved and the paths, etc. did not change.
Comments.UserDisplayName: KilakwaBT
Comments.ContentLicense: CC BY-SA 4.0
Comments.CreationDate: 2024-08-07T18:00:51.827Z
Comments.Text: Sounds like the searchKit listing screen is crashing for some reason. When you load that page please look in your browser console for any error messages.
Comments.UserDisplayName: Coleman
Comments.ContentLicense: CC BY-SA 4.0
Comments.CreationDate: 2024-08-07T19:52:43.067Z
Comments.Text: @Coleman I am seeing two errors. I edited the question and added the errors.
Comments.UserDisplayName: KilakwaBT
Comments.ContentLicense: CC BY-SA 4.0
Comments.CreationDate: 2024-08-07T22:42:50.283Z
Comments.Text: Is `https://yoo.kilakwa.com/wp-admin/admin.php` a correct and valid url? Does the site you moved to support https?
Comments.UserDisplayName: Coleman
Comments.ContentLicense: CC BY-SA 4.0
Comments.CreationDate: 2024-08-08T12:34:01.467Z
Comments.Text: Yes, that is a valid url and supports SSL. This is a occurring on all Civi sites on the server. I checked a few others and receive similar errors.
Comments.UserDisplayName: KilakwaBT
Comments.ContentLicense: CC BY-SA 4.0
Comments.CreationDate: 2024-08-08T12:50:58.300Z
Comments.Text: Yes, the site support https: and that is a valid url. I checked other sites on the server running Civi and they also get the same error.
Comments.UserDisplayName: KilakwaBT
Comments.ContentLicense: CC BY-SA 4.0
Comments.CreationDate: 2024-08-12T19:56:22.360Z
Comments.Text: Have you checked you have all the [PHP requirements](https://docs.civicrm.org/installation/en/latest/general/requirements/#php-extensions) ?
Comments.UserDisplayName: Aidan
Tags: <searchkit><webserver>
Title: SearchKit searches not displaying after server move
ThreadText: # SearchKit searches not displaying after server move
  
  (Asked by: username_0 on 2024-08-07)
  
  We recently moved all our sites to a new server. When we go to Serach>Searchkit the list headers show but none of the searches under any of the tabs show. Other displays using SearchKit such as Find Contacts, Custom Fields Groups, etc. are working fine. This seems to be the case for all sites we moved. Most are running CiviCRM 5.74.4 but we have a couple still on 5.64.4 with the same issue. All are under WordPress.
  
  I have cleared the cache and emptied the templates\_c folder but the issue persists. There searches are fine. I can access them via Form builder and I can create new searches without an issue. Just can't see the list.
  
  Seeing two errors in the console:
  
  `crm.ajax.js?r=tHmvLen_US:85 POST https://yoo.kilakwa.com/wp-admin/admin.php?page=CiviCRM&q=civicrm%2Fajax%2Fapi4 404 (Not Found)`
  
  `TypeError: Cannot read properties of undefined (reading 'run') at controller.<anonymous> (crmSearchAdminSearchListing.component.js?r=tHmvLen_US:103:27) at searchDisplayBaseTrait.service.js?r=tHmvLen_US:192:22 at qt (lodash.min.js:9:507) at Function.Re (lodash.min.js:37:336) at searchDisplayBaseTrait.service.js?r=tHmvLen_US:191:13 at processQueue (angular.js?r=tHmvLen_US:18075:37) at angular.js?r=tHmvLen_US:18123:27 at Scope.$digest (angular.js?r=tHmvLen_US:19242:15) at angular.js?r=tHmvLen_US:19562:26 at TaskTracker.completeTask (angular.js?r=tHmvLen_US:21403:7) 'Possibly unhandled rejection: {}' (anonymous) @ angular.js?r=tHmvLen_US:15697 Show 1 more frame Show lessUnderstand this error`
  
  **Tags:** searchkit, webserver
  
  > **Comments:**
  > **username_1**: Did you move the 'ANG' folder to the new server?  That's where the Search Kits are  
  > **username_0**: Yes, the ANG folder was moved. The files are there. The searches are all working and available they just do not appear on the list when I bring it up. Also, this was a complete migration so all the files moved and the paths, etc. did not change.  
  > **username_2**: Sounds like the searchKit listing screen is crashing for some reason. When you load that page please look in your browser console for any error messages.  
  > **username_0**: @username_2 I am seeing two errors. I edited the question and added the errors.  
  > **username_2**: Is `https://yoo.kilakwa.com/wp-admin/admin.php` a correct and valid url? Does the site you moved to support https?  
  > **username_0**: Yes, that is a valid url and supports SSL. This is a occurring on all Civi sites on the server. I checked a few others and receive similar errors.  
  > **username_0**: Yes, the site support https: and that is a valid url. I checked other sites on the server running Civi and they also get the same error.  
  > **username_3**: Have you checked you have all the [PHP requirements](https://docs.civicrm.org/installation/en/latest/general/requirements/#php-extensions) ?  
  
  ---
  
  ## 1 answers
  
  ### Answer by username_0 on 2024-08-13. Score: 2 | Accepted answer
  
  We isolated the problem. There was a Mod Security rule in place on the new server that was blocking the action that loads the search lists. We adjusted that rule and it works correctly now.
  
  
  ---
  
  