Prestashop 8.1.3 Warning: Zend OPcache API is restricted by „restrict_api“ configuration directive
Zdravím, nedokážete mi prosím pomoci s tímto? Nainstaloval jsem Prestashop 8.1.3, vše rozchodil, ale potýkám se s problémem při mazání Cache z BO, to zřejmě souvisí i s ukládáním některých nastavení v BO, které chtějí vymazat cache také. V těchto případech naskakuje tato hláška níže. Mohu mazat Cache z FTP, ale není to úplně praktické. Nesouvisí to s nějakým nastavením na hostingu?
Zkoušel jsem i toto, ale nezabralo.
Zend OPcache API is restricted by „restrict_api“ configuration directive
Warning: Zend OPcache API is restricted by „restrict_api“ configuration directive
Exception
ErrorException
in src/Core/Cache/Clearer/CacheClearerChain.php (line 57)
foreach ($this->cacheClearers as $cacheClearer) {$cacheClearer->clear();}if (function_exists('opcache_reset')) {opcache_reset();}}}
CacheClearerChain->clear()in src/PrestaShopBundle/Controller/Admin/Configure/AdvancedParameters/PerformanceController.php (line 292)
** @return RedirectResponse*/public function clearCacheAction(){$this->get('prestashop.core.cache.clearer.cache_clearer_chain')->clear();$this->addFlash('success', $this->trans('All caches cleared successfully', 'Admin.Advparameters.Notification'));return $this->redirectToRoute('admin_performance');}
in vendor/symfony/symfony/src/Symfony/Component/HttpKernel/HttpKernel.php -> clearCacheAction (line 169)
$this->dispatcher->dispatch($event, KernelEvents::CONTROLLER_ARGUMENTS);$controller = $event->getController();$arguments = $event->getArguments();// call controller$response = $controller(...$arguments);// viewif (!$response instanceof Response) {$event = new ViewEvent($this, $request, $type, $response);$this->dispatcher->dispatch($event, KernelEvents::VIEW);
in vendor/symfony/symfony/src/Symfony/Component/HttpKernel/HttpKernel.php -> handleRaw (line 81)
{$request->headers->set('X-Php-Ob-Level', (string) ob_get_level());$this->requestStack->push($request);try {return $this->handleRaw($request, $type);} catch (\Exception $e) {if ($e instanceof RequestExceptionInterface) {$e = new BadRequestHttpException($e->getMessage(), $e);}if (false === $catch) {
in vendor/symfony/symfony/src/Symfony/Component/HttpKernel/Kernel.php -> handle (line 201)
$this->boot();++$this->requestStackSize;$this->resetServices = true;try {return $this->getHttpKernel()->handle($request, $type, $catch);} finally {--$this->requestStackSize;}}- ………..
6 Odpověď
Dobrý den,
zkuste řešení podle tohoto postu se stejnou chybovou hláškou Prestashopu.