Hello everybody,

this is my first post and I am completely new to drupal. I have problems installing Drupal on a Windows 7 machine on Zend Server.

The installation process went well but after a while of browsing, I get:
Recoverable fatal error: Argument 1 passed to twig_init() must be an instance of Drupal\Core\Extension\Extension, array given in twig_init() (line 34 of core\themes\engines\twig\twig.engine).

Clearing the Cache (via Console or core/rebuild.php or just by truncating all cache tables) solves the problem for a short period, but it comes back very soon. Just, if a page was cached (as it seems).

I already applied the 2606772-187.patch, to solve windows based caching problems. Twig cache is disabled anyway.

Can anybody help me? Thank you very much!!!

Detailed error:
The website encountered an unexpected error. Please try again later.
Recoverable fatal error: Argument 1 passed to twig_init() must be an instance of Drupal\Core\Extension\Extension, array given in twig_init() (line 34 of core\themes\engines\twig\twig.engine).
twig_init(Array)
call_user_func('twig_init', Array) (Line: 137)
Drupal\Core\Theme\ThemeInitialization->loadActiveTheme(Object) (Line: 67)
Drupal\Core\Theme\ThemeInitialization->initTheme('bartik') (Line: 406)
Drupal\Core\Theme\ThemeManager->initTheme(NULL) (Line: 96)
Drupal\Core\Theme\ThemeManager->getActiveTheme() (Line: 43)
Drupal\Core\Cache\Context\ThemeCacheContext->getContext(NULL) (Line: 118)
Drupal\Core\Cache\Context\CacheContextsManager->convertTokensToKeys(Array) (Line: 307)
Drupal\Core\Render\RenderCache->createCacheID(Array) (Line: 66)
Drupal\Core\Render\RenderCache->get(Array) (Line: 109)
Drupal\Core\Render\PlaceholderingRenderCache->get(Array) (Line: 263)
Drupal\Core\Render\Renderer->doRender(Array, ) (Line: 195)
Drupal\Core\Render\Renderer->render(Array, ) (Line: 226)
Drupal\Core\Render\MainContent\HtmlRenderer->Drupal\Core\Render\MainContent\{closure}() (Line: 574)
Drupal\Core\Render\Renderer->executeInRenderContext(Object, Object) (Line: 227)
Drupal\Core\Render\MainContent\HtmlRenderer->prepare(Array, Object, Object) (Line: 117)
Drupal\Core\Render\MainContent\HtmlRenderer->renderResponse(Array, Object, Object) (Line: 90)
Drupal\Core\EventSubscriber\MainContentViewSubscriber->onViewRenderArray(Object, 'kernel.view', Object) (Line: 111)
Drupal\Component\EventDispatcher\ContainerAwareEventDispatcher->dispatch('kernel.view', Object) (Line: 144)
Symfony\Component\HttpKernel\HttpKernel->handleRaw(Object, 1) (Line: 62)
Symfony\Component\HttpKernel\HttpKernel->handle(Object, 1, 1) (Line: 57)
Drupal\Core\StackMiddleware\Session->handle(Object, 1, 1) (Line: 47)
Drupal\Core\StackMiddleware\KernelPreHandle->handle(Object, 1, 1) (Line: 47)
Drupal\Core\StackMiddleware\ReverseProxyMiddleware->handle(Object, 1, 1) (Line: 50)
Drupal\Core\StackMiddleware\NegotiationMiddleware->handle(Object, 1, 1) (Line: 23)
Stack\StackedHttpKernel->handle(Object, 1, 1) (Line: 652)
Drupal\Core\DrupalKernel->handle(Object) (Line: 19)

EDIT:

Found out, that it is a problem wirh APC Cache. The Objects (base themes in this case) are not loaded correctly. The first (classy) is loaded completely, the second one (stable) misses the extension. When I disable fast Cache (APC), no problem. Database Cache works.

Does anybody know, what could be the reason for the APC problem on Zend Server? Thank you very much!!!