Answers.Body: <p>For us Kinsta hosting caching was the issue. Able to upgrade once they enabled opcache.save_comments in the Nginx server cache</p>
  
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2023-04-04T04:06:53.190Z
Answers.LastActivityDate: 2023-04-04T04:06:53.190Z
Answers.UserDisplayName: LesleyJill
Answers.Body: <p>I had the same problem. I had changed some of the php settings:</p>
  <ul>
  <li>expose_php = off</li>
  <li>magic_quotes_gpc = off</li>
  <li>register_globals = off</li>
  </ul>
  <p>When I commented these out everything worked. An after removing the comments it kept working.</p>
  <p>This returned when clearing caches. So it is not solved yet.</p>
  <p>It might be a PHP 8.1 incompatibility. Reverted to 7.4.</p>
  
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2023-02-04T14:41:24.010Z
Answers.LastActivityDate: 2023-02-07T20:57:56.473Z
Answers.LastEditDate: 2023-02-07T20:57:56.473Z
Answers.UserDisplayName: Webmaster COVS
Answers.Body: <p>I'm also getting the error about spec_gatherer while trying to upgrade from CiviCRM 5.35.1 to 5.58.1 on a Drupal7 + PHP 7.3 environment.</p>
  <blockquote>
  <p>Symfony\Component\DependencyInjection\Exception\ServiceNotFoundException: You have requested a non-existent service &quot;spec_gatherer&quot;. in Symfony\Component\DependencyInjection\ContainerBuilder-&gt;getDefinition() (line 1030  /var/www/XXX/sites/all/modules/civicrm/vendor/symfony/dependency-injection/ContainerBuilder.php).</p>
  </blockquote>
  <p>Disabling expose_php, magic_quotes_gpc, register_globals had no effect.</p>
  <p>Has anyone found a solution for this problem?</p>
  
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2023-10-06T12:27:00.487Z
Answers.Text: Clearing the opcode cache seems to solve the error. You can add: opcache_reset(); in your index.php file. Then refresh the page, and remove the code from index.php
Answers.UserDisplayName: AlainB
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2023-02-22T14:07:09.443Z
Answers.LastActivityDate: 2023-02-22T14:07:09.443Z
Answers.UserDisplayName: AlainB
Body: <p>with recent versions of CiviCRM (WordPress), I am getting fatal errors for all back-end/wp-admin requests, when hosting with Kinsta.com, related to an unhandled Service Not Found Exception within Civi.</p>
  <p>I have been running CiviCRM on this client's website (WordPress) for 6+ years, and have generally updated CiviCRM every 2 months. This site has been at Kinsta for 4+ years, so this isn't anything to do with changing hosts.</p>
  <p>Today I updated from Civi 5.54.2 to 5.57.2. It worked in my local dev (workstation) environment, and the staging environment at Kinsta. But when pulling the updates to production (via git - code is identical), I started getting fatal errors.</p>
  <p>Working with Kinsta support, we determined the difference between staging and production was that Kinsta's internal caching system was enabled in production but not staging.</p>
  <p>Further, in both environments, with Kinsta caching disabled, everything works. When it is enabled, we get the fatal errors.</p>
  <p>So this clearly has something to do with the Kinsta caching system, but not entirely. When I revert to Civi 5.54.2, everything works again. (I also tried 5.56.2 and 5.55.2 but they also had errors.)</p>
  <p>PHP error details are below.</p>
  <p>Can anyone think of what might have changed in Civi and the Services components (and maybe &quot;spec_gatherer&quot; in particular) between 5.54 and 5.55 which might cause conflicts with some nginx caching scheme?</p>
  <p>Thank you!</p>
  <pre><code>PHP Fatal error:  Uncaught Symfony\Component\DependencyInjection\Exception\ServiceNotFoundException: You have requested a non-existent service &quot;spec_gatherer&quot;. in /www/hajotuxu_393/public/wp-content/plugins/civicrm/civicrm/vendor/symfony/dependency-injection/ContainerBuilder.php:1030
  Stack trace:
  #0 /www/hajotuxu_393/public/wp-content/plugins/civicrm/civicrm/Civi/Core/Compiler/SpecProviderPass.php(16): Symfony\Component\DependencyInjection\ContainerBuilder-&gt;getDefinition('spec_gatherer')
  #1 /www/hajotuxu_393/public/wp-content/plugins/civicrm/civicrm/vendor/symfony/dependency-injection/Compiler/Compiler.php(94): Civi\Core\Compiler\SpecProviderPass-&gt;process(Object(Symfony\Component\DependencyInjection\ContainerBuilder))
  #2 /www/hajotuxu_393/public/wp-content/plugins/civicrm/civicrm/vendor/symfony/dependency-injection/ContainerBuilder.php(762): Symfony\Component\DependencyInjection\Compiler\Compiler-&gt;compile(Object(Symfony\Component\DependencyInjection\ContainerBuilder))
  #3 /www/hajotuxu_393/public/wp-content/plugins/civicrm/civicrm/Civi/Core/Container.php(79): Symfony\Component\DependencyInjection\ContainerBuilder-&gt;compile()
  #4 /www/hajotuxu_393/public/wp-content/plugins/civicrm/civicrm/Civi/Core/Container.php(640): Civi\Core\Container-&gt;loadContainer()
  #5 /www/hajotuxu_393/public/wp-content/plugins/civicrm/civicrm/CRM/Core/Config.php(87): Civi\Core\Container::boot(true)
  #6 /www/hajotuxu_393/public/wp-content/plugins/civicrm/includes/civicrm.admin.php(434): CRM_Core_Config::singleton()
  #7 /www/hajotuxu_393/public/wp-content/plugins/civicrm/civicrm.php(972): CiviCRM_For_WordPress_Admin-&gt;initialize()
  #8 /www/hajotuxu_393/public/wp-content/plugins/civicrm/civicrm.php(794): CiviCRM_For_WordPress-&gt;initialize()
  #9 /www/hajotuxu_393/public/wp-content/plugins/civicrm/civicrm.php(767): CiviCRM_For_WordPress-&gt;register_hooks_clean_urls()
  #10 /www/hajotuxu_393/public/wp-content/plugins/civicrm/civicrm.php(651): CiviCRM_For_WordPress-&gt;register_hooks_common()
  #11 /www/hajotuxu_393/public/wp-includes/class-wp-hook.php(308): CiviCRM_For_WordPress-&gt;register_hooks('')
  #12 /www/hajotuxu_393/public/wp-includes/class-wp-hook.php(332): WP_Hook-&gt;apply_filters(NULL, Array)
  #13 /www/hajotuxu_393/public/wp-includes/plugin.php(517): WP_Hook-&gt;do_action(Array)
  #14 /www/hajotuxu_393/public/wp-settings.php(617): do_action('init')
  #15 /www/hajotuxu_393/public/wp-config.php(121): require_once('/www/hajotuxu_3...')
  #16 /www/hajotuxu_393/public/wp-load.php(50): require_once('/www/hajotuxu_3...')
  #17 /www/hajotuxu_393/public/wp-admin/admin.php(34): require_once('/www/hajotuxu_3...')
  #18 /www/hajotuxu_393/public/wp-admin/index.php(10): require_once('/www/hajotuxu_3...')
  #19 {main}
    thrown in /www/hajotuxu_393/public/wp-content/plugins/civicrm/civicrm/vendor/symfony/dependency-injection/ContainerBuilder.php on line 1030
  </code></pre>
  
Comments.ContentLicense: CC BY-SA 4.0
Comments.CreationDate: 2023-03-09T01:35:18.920Z
Comments.Text: I have same issue on Kinsta upgrading from 5.51 to 5.59 WP6 PHP8
Comments.UserDisplayName: LesleyJill
Comments.ContentLicense: CC BY-SA 4.0
Comments.CreationDate: 2023-03-09T01:44:44.973Z
Comments.Text: This may be irrelevant but apparently something changed in 5.55 re container loading being changed to automatic from manual. Sorry cant find where I saw this and have no idea what it means anyway!
Comments.UserDisplayName: LesleyJill
Tags: <cache><webserver><symfony>
Title: ServiceNotFoundException for "spec_gatherer" on CiviCRM 5.55+ when hosting with Kinsta
ThreadText: # ServiceNotFoundException for "spec_gatherer" on CiviCRM 5.55+ when hosting with Kinsta
  
  (Asked by: username_0 on 2023-01-30)
  
  with recent versions of CiviCRM (WordPress), I am getting fatal errors for all back-end/wp-admin requests, when hosting with Kinsta.com, related to an unhandled Service Not Found Exception within Civi.
  I have been running CiviCRM on this client's website (WordPress) for 6+ years, and have generally updated CiviCRM every 2 months. This site has been at Kinsta for 4+ years, so this isn't anything to do with changing hosts.
  Today I updated from Civi 5.54.2 to 5.57.2. It worked in my local dev (workstation) environment, and the staging environment at Kinsta. But when pulling the updates to production (via git - code is identical), I started getting fatal errors.
  Working with Kinsta support, we determined the difference between staging and production was that Kinsta's internal caching system was enabled in production but not staging.
  Further, in both environments, with Kinsta caching disabled, everything works. When it is enabled, we get the fatal errors.
  So this clearly has something to do with the Kinsta caching system, but not entirely. When I revert to Civi 5.54.2, everything works again. (I also tried 5.56.2 and 5.55.2 but they also had errors.)
  PHP error details are below.
  Can anyone think of what might have changed in Civi and the Services components (and maybe "spec_gatherer" in particular) between 5.54 and 5.55 which might cause conflicts with some nginx caching scheme?
  Thank you!
  PHP Fatal error:  Uncaught Symfony\Component\DependencyInjection\Exception\ServiceNotFoundException: You have requested a non-existent service "spec_gatherer". in /www/hajotuxu_393/public/wp-content/plugins/civicrm/civicrm/vendor/symfony/dependency-injection/ContainerBuilder.php:1030
  Stack trace:
  #0 /www/hajotuxu_393/public/wp-content/plugins/civicrm/civicrm/Civi/Core/Compiler/SpecProviderPass.php(16): Symfony\Component\DependencyInjection\ContainerBuilder->getDefinition('spec_gatherer')
  #1 /www/hajotuxu_393/public/wp-content/plugins/civicrm/civicrm/vendor/symfony/dependency-injection/Compiler/Compiler.php(94): Civi\Core\Compiler\SpecProviderPass->process(Object(Symfony\Component\DependencyInjection\ContainerBuilder))
  #2 /www/hajotuxu_393/public/wp-content/plugins/civicrm/civicrm/vendor/symfony/dependency-injection/ContainerBuilder.php(762): Symfony\Component\DependencyInjection\Compiler\Compiler->compile(Object(Symfony\Component\DependencyInjection\ContainerBuilder))
  #3 /www/hajotuxu_393/public/wp-content/plugins/civicrm/civicrm/Civi/Core/Container.php(79): Symfony\Component\DependencyInjection\ContainerBuilder->compile()
  #4 /www/hajotuxu_393/public/wp-content/plugins/civicrm/civicrm/Civi/Core/Container.php(640): Civi\Core\Container->loadContainer()
  #5 /www/hajotuxu_393/public/wp-content/plugins/civicrm/civicrm/CRM/Core/Config.php(87): Civi\Core\Container::boot(true)
  #6 /www/hajotuxu_393/public/wp-content/plugins/civicrm/includes/civicrm.admin.php(434): CRM_Core_Config::singleton()
  #7 /www/hajotuxu_393/public/wp-content/plugins/civicrm/civicrm.php(972): CiviCRM_For_WordPress_Admin->initialize()
  #8 /www/hajotuxu_393/public/wp-content/plugins/civicrm/civicrm.php(794): CiviCRM_For_WordPress->initialize()
  #9 /www/hajotuxu_393/public/wp-content/plugins/civicrm/civicrm.php(767): CiviCRM_For_WordPress->register_hooks_clean_urls()
  #10 /www/hajotuxu_393/public/wp-content/plugins/civicrm/civicrm.php(651): CiviCRM_For_WordPress->register_hooks_common()
  #11 /www/hajotuxu_393/public/wp-includes/class-wp-hook.php(308): CiviCRM_For_WordPress->register_hooks('')
  #12 /www/hajotuxu_393/public/wp-includes/class-wp-hook.php(332): WP_Hook->apply_filters(NULL, Array)
  #13 /www/hajotuxu_393/public/wp-includes/plugin.php(517): WP_Hook->do_action(Array)
  #14 /www/hajotuxu_393/public/wp-settings.php(617): do_action('init')
  #15 /www/hajotuxu_393/public/wp-config.php(121): require_once('/www/hajotuxu_3...')
  #16 /www/hajotuxu_393/public/wp-load.php(50): require_once('/www/hajotuxu_3...')
  #17 /www/hajotuxu_393/public/wp-admin/admin.php(34): require_once('/www/hajotuxu_3...')
  #18 /www/hajotuxu_393/public/wp-admin/index.php(10): require_once('/www/hajotuxu_3...')
  #19 {main}
    thrown in /www/hajotuxu_393/public/wp-content/plugins/civicrm/civicrm/vendor/symfony/dependency-injection/ContainerBuilder.php on line 1030
  
  **Tags:** cache, webserver, symfony
  
  > **Comments:**
  > **username_1**: I have same issue on Kinsta upgrading from 5.51 to 5.59 WP6 PHP8  
  > **username_1**: This may be irrelevant but apparently something changed in 5.55 re container loading being changed to automatic from manual. Sorry cant find where I saw this and have no idea what it means anyway!  
  
  ---
  
  ## 3 answers
  
  ### Answer by username_1 on 2023-04-04. Score: 2 | Accepted answer
  
  For us Kinsta hosting caching was the issue. Able to upgrade once they enabled opcache.save\_comments in the Nginx server cache
  
  
  ---
  
  ### Answer by username_2 on 2023-02-04. Score: 1
  
  I had the same problem. I had changed some of the php settings:
  
  * expose\_php = off
  * magic\_quotes\_gpc = off
  * register\_globals = off
  
  When I commented these out everything worked. An after removing the comments it kept working.
  
  This returned when clearing caches. So it is not solved yet.
  
  It might be a PHP 8.1 incompatibility. Reverted to 7.4.
  
  
  ---
  
  ### Answer by username_3 on 2023-02-22. Score: 0
  
  I'm also getting the error about spec\_gatherer while trying to upgrade from CiviCRM 5.35.1 to 5.58.1 on a Drupal7 + PHP 7.3 environment.
  
  > Symfony\Component\DependencyInjection\Exception\ServiceNotFoundException: You have requested a non-existent service "spec\_gatherer". in Symfony\Component\DependencyInjection\ContainerBuilder->getDefinition() (line 1030 /var/www/XXX/sites/all/modules/civicrm/vendor/symfony/dependency-injection/ContainerBuilder.php).
  
  Disabling expose\_php, magic\_quotes\_gpc, register\_globals had no effect.
  
  Has anyone found a solution for this problem?
  
  > **Comments:**
  > **username_3**: Clearing the opcode cache seems to solve the error. You can add: opcache_reset(); in your index.php file. Then refresh the page, and remove the code from index.php  
  
  ---
  
  