Answers.Body: <p>Remove all file start with <code>CachedCiviContainer</code> in <code>files/civicrm/templates_c</code></p>
  <p>Example:
  <code>files/civicrm/templates_c$ rm -rf Cached*</code></p>
  <p>There after civicrm will add <code>Civi_Api4_Service_Spec_Provider_SearchDisplayCreationSpecProvider</code> service to <code>CachedCiviContainer...</code> file.</p>
  <p>Example:</p>
  <blockquote>
  <p>grep -inr 'SearchDisplayCreationSpecProvider' .</p>
  <p>./CachedCiviContainer.4b01fcc15bfea5d03c88a31ab3b56016.php:1891:<br />
  $instance-&gt;addSpecProvider(($this-&gt;services['Civi_Api4_Service_Spec_Provider_SearchDisplayCreationSpecProvider']
  ??
  ($this-&gt;services['Civi_Api4_Service_Spec_Provider_SearchDisplayCreationSpecProvider']
  = new \Civi\Api4\Service\Spec\Provider\SearchDisplayCreationSpecProvider())));</p>
  </blockquote>
  
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2022-12-29T11:01:06.420Z
Answers.LastActivityDate: 2022-12-29T11:01:06.420Z
Answers.UserDisplayName: Sunil Pawar
Body: <p>WP 6.0  Civi 5.50
  error is
  Fatal error: Uncaught ReflectionException: Class Civi\Api4\Service\Spec\Provider\SearchDisplayCreationSpecProvider does not exist in /home/lesley/public_html/wp-content/plugins/civicrm/civicrm/CRM/Api4/Services.php line 86</p>
  
Tags: <upgrade>
Title: fatal error "Uncaught ReflectionException" after upgrade to 5.50
ThreadText: # fatal error "Uncaught ReflectionException" after upgrade to 5.50
  
  (Asked by: username_0 on 2022-06-05)
  
  WP 6.0 Civi 5.50
  error is
  Fatal error: Uncaught ReflectionException: Class Civi\Api4\Service\Spec\Provider\SearchDisplayCreationSpecProvider does not exist in /home/lesley/public\_html/wp-content/plugins/civicrm/civicrm/CRM/Api4/Services.php line 86
  
  **Tags:** upgrade
  
  
  ---
  
  ## 1 answers
  
  ### Answer by username_1 on 2022-12-29. Score: 0
  
  Remove all file start with `CachedCiviContainer` in `files/civicrm/templates_c`
  
  Example:
  `files/civicrm/templates_c$ rm -rf Cached*`
  
  There after civicrm will add `Civi_Api4_Service_Spec_Provider_SearchDisplayCreationSpecProvider` service to `CachedCiviContainer...` file.
  
  Example:
  
  > grep -inr 'SearchDisplayCreationSpecProvider' .
  >
  > ./CachedCiviContainer.4b01fcc15bfea5d03c88a31ab3b56016.php:1891:  
  > $instance->addSpecProvider(($this->services['Civi\_Api4\_Service\_Spec\_Provider\_SearchDisplayCreationSpecProvider']
  > ??
  > ($this->services['Civi\_Api4\_Service\_Spec\_Provider\_SearchDisplayCreationSpecProvider']
  > = new \Civi\Api4\Service\Spec\Provider\SearchDisplayCreationSpecProvider())));
  
  
  ---
  
  