Body: <p>As described in <a href="https://civicrm.stackexchange.com/questions/45996/relationships-not-being-displayed/45997#45997">other questions</a>, the tabs &quot;notes&quot; and &quot;relationships&quot; have disappeared from my contact summary page after they have been <a href="https://github.com/civicrm/civicrm-core/pull/27610" rel="nofollow noreferrer">updated to be based on SearchKit</a>. However I seem to have a more fundamental problem with SearchKit itself (so I cannot apply the usual fix to the problem): when I navigate to Search &gt; SearchKit, the only thing I get is an error message:</p>
  <p><code>CRM_Core_Exception: Entity not loaded: SearchSegment in /somepath/wp-content/plugins/civicrm/civicrm/Civi/Api4/Service/Spec/SpecGatherer.php on line 91</code></p>
  <p>Does anyone know how to fix this?</p>
  <p>System:</p>
  <ul>
  <li>CiviCRM 5.69.3</li>
  <li>Wordpress 6.4.2</li>
  <li>PHP 8.1</li>
  <li>Ubuntu 22.04.3</li>
  </ul>
  
Comments.ContentLicense: CC BY-SA 4.0
Comments.CreationDate: 2024-01-31T00:56:59.070Z
Comments.Text: Sounds like this may be the root cause of your tabs not working. Can you check your db for the presence of the `civicrm_search_segment` table?
Comments.UserDisplayName: Coleman
Comments.ContentLicense: CC BY-SA 4.0
Comments.CreationDate: 2024-01-31T07:02:11.267Z
Comments.Text: Thanks @Coleman, the table `civicrm_search_segment` is actually missing. Running the extension db updates via the admin site or by using `cv ext:db-upgrade-db` did not bring it back though. Is there any other way? Or do I have to recreate the table manually using the table definition in `search_kit/xml/schema/CRM/Search/SearchSegment.xml`?
Comments.UserDisplayName: Steve
Comments.ContentLicense: CC BY-SA 4.0
Comments.CreationDate: 2024-01-31T13:04:56.027Z
Comments.Text: I recommend you force the searchKit upgrader to re-run by doing: `UPDATE civicrm_extension SET schema_version = 1006 WHERE name = 'SearchKit';`
  
  Then run `cv ext:upgrade-db`.
Comments.UserDisplayName: Coleman
Comments.ContentLicense: CC BY-SA 4.0
Comments.CreationDate: 2024-01-31T17:28:49.030Z
Comments.Text: Thanks again, but no luck so far. The sql did not change any data until I added a blank between "Search" and "Kit". But even after that the `cv ext:upgrade-db`did not recreate the table `civicrm_search_segment`.
Comments.UserDisplayName: Steve
Comments.ContentLicense: CC BY-SA 4.0
Comments.CreationDate: 2024-02-05T09:42:03.010Z
Comments.Text: Ok, after trying a few more things unsuccessfully I solved the problem with brute force: I basically deleted everyting in the folder `wp-content/plugins/civicrm` and reinstalled the civicrm files from scratch. However I kept the database and the folder `wp-content/uploads/civicrm` unchanged. 
  After logging into CiviCRM and updating the database everything seems to be running well, including the relationship and notes tabs.
Comments.UserDisplayName: Steve
Comments.ContentLicense: CC BY-SA 4.0
Comments.CreationDate: 2024-02-05T11:58:31.987Z
Comments.Text: Glad that worked
Comments.UserDisplayName: Coleman
Tags: <relationships><searchkit><notes>
Title: SearchKit not working - Entity SearchSegment not loaded
ThreadText: # SearchKit not working - Entity SearchSegment not loaded
  
  (Asked by: username_0 on 2024-01-30)
  
  As described in [other questions](https://civicrm.stackexchange.com/questions/45996/relationships-not-being-displayed/45997#45997), the tabs "notes" and "relationships" have disappeared from my contact summary page after they have been [updated to be based on SearchKit](https://github.com/civicrm/civicrm-core/pull/27610). However I seem to have a more fundamental problem with SearchKit itself (so I cannot apply the usual fix to the problem): when I navigate to Search > SearchKit, the only thing I get is an error message:
  
  `CRM_Core_Exception: Entity not loaded: SearchSegment in /somepath/wp-content/plugins/civicrm/civicrm/Civi/Api4/Service/Spec/SpecGatherer.php on line 91`
  
  Does anyone know how to fix this?
  
  System:
  
  * CiviCRM 5.69.3
  * Wordpress 6.4.2
  * PHP 8.1
  * Ubuntu 22.04.3
  
  **Tags:** relationships, searchkit, notes
  
  > **Comments:**
  > **username_1**: Sounds like this may be the root cause of your tabs not working. Can you check your db for the presence of the `civicrm_search_segment` table?  
  > **username_0**: Thanks @username_1, the table `civicrm_search_segment` is actually missing. Running the extension db updates via the admin site or by using `cv ext:db-upgrade-db` did not bring it back though. Is there any other way? Or do I have to recreate the table manually using the table definition in `search_kit/xml/schema/CRM/Search/SearchSegment.xml`?  
  > **username_1**: I recommend you force the searchKit upgrader to re-run by doing: `UPDATE civicrm_extension SET schema_version = 1006 WHERE name = 'SearchKit';`  Then run `cv ext:upgrade-db`.  
  > **username_0**: Thanks again, but no luck so far. The sql did not change any data until I added a blank between "Search" and "Kit". But even after that the `cv ext:upgrade-db`did not recreate the table `civicrm_search_segment`.  
  > **username_0**: Ok, after trying a few more things unsuccessfully I solved the problem with brute force: I basically deleted everyting in the folder `wp-content/plugins/civicrm` and reinstalled the civicrm files from scratch. However I kept the database and the folder `wp-content/uploads/civicrm` unchanged.  After logging into CiviCRM and updating the database everything seems to be running well, including the relationship and notes tabs.  
  > **username_1**: Glad that worked  
  
  ---
  
  ## 0 answers
  
  