Forwarded to ErrorController (12f6c4)

Exceptions

Warning: file_put_contents(/var/www/html/public/ds/custom/914e84227b_crop-best_990_350.jpg): Failed to open stream: Permission denied

ErrorException

Show exception properties
0 of 0
ErrorException {#537 â–¼ #severity: E_WARNING }
  1.                 $orig_image $this->getOrigImage($imageid);
  2.                 $this->mime $orig_image['image'];
  3.                 $imagedata $this->getResize($w,$h,$method);
  4.                 file_put_contents($file_path,$imagedata);
  5.                 return array(
  6.                     'header_type' => $this->type['type'],
  7.                     'image' => $imagedata
  8.                 );
Image->getCutImage() in src/Controller/Kiwi/Image/DefaultController.php (line 84)
  1.     #[Route('/cut-image-strict/{w}/{h}/{image_name}.{extension}'name'cut_image_strict')]
  2.     public function cutImageStrictAction($image_name,$extension,$w,$h)
  3.     {
  4.         $imageObj = new Image();
  5.         $imageObj->setType($extension);
  6.         $image $imageObj->getCutImage($image_name,$w,$h,'crop-best');
  7.         if(!$image) {
  8.             $image $imageObj->getMissingImage($image_name);
  9.         }
in vendor/symfony/http-kernel/HttpKernel.php -> cutImageStrictAction (line 181)
  1.         $this->dispatcher->dispatch($eventKernelEvents::CONTROLLER_ARGUMENTS);
  2.         $controller $event->getController();
  3.         $arguments $event->getArguments();
  4.         // call controller
  5.         $response $controller(...$arguments);
  6.         // view
  7.         if (!$response instanceof Response) {
  8.             $event = new ViewEvent($this$request$type$response$event);
  9.             $this->dispatcher->dispatch($eventKernelEvents::VIEW);
  1.         $request->headers->set('X-Php-Ob-Level', (string) ob_get_level());
  2.         $this->requestStack->push($request);
  3.         $response null;
  4.         try {
  5.             return $response $this->handleRaw($request$type);
  6.         } catch (\Throwable $e) {
  7.             if ($e instanceof \Error && !$this->handleAllThrowables) {
  8.                 throw $e;
  9.             }
  1.         $this->boot();
  2.         ++$this->requestStackSize;
  3.         $this->resetServices true;
  4.         try {
  5.             return $this->getHttpKernel()->handle($request$type$catch);
  6.         } finally {
  7.             --$this->requestStackSize;
  8.         }
  9.     }
  1.         $this->request $request;
  2.     }
  3.     public function run(): int
  4.     {
  5.         $response $this->kernel->handle($this->request);
  6.         $response->send();
  7.         if ($this->kernel instanceof TerminableInterface) {
  8.             $this->kernel->terminate($this->request$response);
  9.         }
in vendor/autoload_runtime.php -> run (line 29)
  1. $app $app(...$args);
  2. exit(
  3.     $runtime
  4.         ->getRunner($app)
  5.         ->run()
  6. );
require_once('/var/www/html/vendor/autoload_runtime.php') in public/index.php (line 7)
  1. use App\Kernel;
  2. require_once 'redirects.php';
  3. require_once dirname(__DIR__).'/vendor/autoload_runtime.php';
  4. return function (array $context) {
  5.     return new Kernel($context['APP_ENV'], (bool) $context['APP_DEBUG']);
  6. };