https://deamonerp.fr/cpi2/public/genererpdfjobs/5?p=genererpdfjobs%2F5

Exceptions

Unable to get the size of the image [https://deamonerp.fr/cpi2/public/uploads/jobs/BU Indus-Programme_CN.jpeg]

  • Exception
  • Logs
  • Stack Trace

Spipu\Html2Pdf\Exception\ ImageException

  1.         }
  2.         // if the image does not exist, or can not be loaded
  3.         if (!is_array($infos) || count($infos)<2) {
  4.             if ($this->_testIsImage) {
  5.                 $e = new ImageException('Unable to get the size of the image ['.$src.']');
  6.                 $e->setImage($src);
  7.                 throw $e;
  8.             }
  9.             // display a gray rectangle
in vendor/spipu/html2pdf/src/Html2Pdf.php -> _drawImage (line 5782)
  1.         $this->parsingCss->value['background'] = array('color' => null'image' => null'position' => null'repeat' => null);
  2.         $this->parsingCss->analyse('img'$param);
  3.         $this->parsingCss->setPosition();
  4.         $this->parsingCss->fontSet();
  5.         $res $this->_drawImage($src, isset($param['sub_li']));
  6.         if (!$res) {
  7.             return $res;
  8.         }
  9.         $this->parsingCss->load();
in vendor/spipu/html2pdf/src/Html2Pdf.php -> _tag_open_IMG (line 1444)
  1.                 $res $tagObject->close($properties);
  2.             } else {
  3.                 $res $tagObject->open($properties);
  4.             }
  5.         } elseif (is_callable(array($this$fnc))) {
  6.             $res $this->{$fnc}($properties);
  7.         } else {
  8.             $e = new HtmlParsingException(
  9.                 'The html tag ['.$action->getName().'] is not known by Html2Pdf. '.
  10.                 'You can create it and push it on the Html2Pdf GitHub project.'
  11.             );
in vendor/spipu/html2pdf/src/Html2Pdf.php -> _executeAction (line 1412)
  1.                 // end of the sub part
  2.                 $this->_subPart false;
  3.             }
  4.             // execute the action
  5.             $this->_executeAction($action);
  6.         }
  7.     }
  8.     /**
  9.      * execute the action from the parsing
in vendor/spipu/html2pdf/src/Html2Pdf.php -> _makeHTMLcode (line 5602)
  1.             // extract the content of the TD, and calculate his size
  2.             $level $this->parsingHtml->getLevel($this->_tempPos);
  3.             $this->_subHtml $this->createSubHTML();
  4.             $this->_subHtml->parsingHtml->code $level;
  5.             $this->_subHtml->_makeHTMLcode();
  6.             $this->_tempPos+= count($level);
  7.         } else {
  8.             // new position in the table
  9.             self::$_tables[$param['num']]['td_curr']++;
  10.             self::$_tables[$param['num']]['td_x']+= self::$_tables[$param['num']]['cases'][$y][$x]['dw'];
in vendor/spipu/html2pdf/src/Html2Pdf.php -> _tag_open_TD (line 1444)
  1.                 $res $tagObject->close($properties);
  2.             } else {
  3.                 $res $tagObject->open($properties);
  4.             }
  5.         } elseif (is_callable(array($this$fnc))) {
  6.             $res $this->{$fnc}($properties);
  7.         } else {
  8.             $e = new HtmlParsingException(
  9.                 'The html tag ['.$action->getName().'] is not known by Html2Pdf. '.
  10.                 'You can create it and push it on the Html2Pdf GitHub project.'
  11.             );
in vendor/spipu/html2pdf/src/Html2Pdf.php -> _executeAction (line 1398)
  1.                 $this->_tempPos $this->_parsePos;
  2.                 // foreach elements, while we are in the opened tag
  3.                 while (isset($this->parsingHtml->code[$this->_tempPos]) && !($this->parsingHtml->code[$this->_tempPos]->getName() == $tagOpen && $this->parsingHtml->code[$this->_tempPos]->isClose())) {
  4.                     // make the action
  5.                     $this->_executeAction($this->parsingHtml->code[$this->_tempPos]);
  6.                     $this->_tempPos++;
  7.                 }
  8.                 // execute the closure of the tag
  9.                 if (isset($this->parsingHtml->code[$this->_tempPos])) {
in vendor/spipu/html2pdf/src/Html2Pdf.php -> _makeHTMLcode (line 5602)
  1.             // extract the content of the TD, and calculate his size
  2.             $level $this->parsingHtml->getLevel($this->_tempPos);
  3.             $this->_subHtml $this->createSubHTML();
  4.             $this->_subHtml->parsingHtml->code $level;
  5.             $this->_subHtml->_makeHTMLcode();
  6.             $this->_tempPos+= count($level);
  7.         } else {
  8.             // new position in the table
  9.             self::$_tables[$param['num']]['td_curr']++;
  10.             self::$_tables[$param['num']]['td_x']+= self::$_tables[$param['num']]['cases'][$y][$x]['dw'];
in vendor/spipu/html2pdf/src/Html2Pdf.php -> _tag_open_TD (line 1444)
  1.                 $res $tagObject->close($properties);
  2.             } else {
  3.                 $res $tagObject->open($properties);
  4.             }
  5.         } elseif (is_callable(array($this$fnc))) {
  6.             $res $this->{$fnc}($properties);
  7.         } else {
  8.             $e = new HtmlParsingException(
  9.                 'The html tag ['.$action->getName().'] is not known by Html2Pdf. '.
  10.                 'You can create it and push it on the Html2Pdf GitHub project.'
  11.             );
in vendor/spipu/html2pdf/src/Html2Pdf.php -> _executeAction (line 1398)
  1.                 $this->_tempPos $this->_parsePos;
  2.                 // foreach elements, while we are in the opened tag
  3.                 while (isset($this->parsingHtml->code[$this->_tempPos]) && !($this->parsingHtml->code[$this->_tempPos]->getName() == $tagOpen && $this->parsingHtml->code[$this->_tempPos]->isClose())) {
  4.                     // make the action
  5.                     $this->_executeAction($this->parsingHtml->code[$this->_tempPos]);
  6.                     $this->_tempPos++;
  7.                 }
  8.                 // execute the closure of the tag
  9.                 if (isset($this->parsingHtml->code[$this->_tempPos])) {
in vendor/spipu/html2pdf/src/Html2Pdf.php -> _makeHTMLcode (line 3136)
  1.         $w 0;
  2.         $h 0;
  3.         if (count($level)) {
  4.             $sub $this->createSubHTML();
  5.             $sub->parsingHtml->code $level;
  6.             $sub->_makeHTMLcode();
  7.             $w $sub->_maxX;
  8.             $h $sub->_maxY;
  9.             $this->_destroySubHTML($sub);
  10.         }
  11.         $wReel $w;
in vendor/spipu/html2pdf/src/Html2Pdf.php -> _tag_open_DIV (line 1444)
  1.                 $res $tagObject->close($properties);
  2.             } else {
  3.                 $res $tagObject->open($properties);
  4.             }
  5.         } elseif (is_callable(array($this$fnc))) {
  6.             $res $this->{$fnc}($properties);
  7.         } else {
  8.             $e = new HtmlParsingException(
  9.                 'The html tag ['.$action->getName().'] is not known by Html2Pdf. '.
  10.                 'You can create it and push it on the Html2Pdf GitHub project.'
  11.             );
in vendor/spipu/html2pdf/src/Html2Pdf.php -> _executeAction (line 1412)
  1.                 // end of the sub part
  2.                 $this->_subPart false;
  3.             }
  4.             // execute the action
  5.             $this->_executeAction($action);
  6.         }
  7.     }
  8.     /**
  9.      * execute the action from the parsing
in vendor/spipu/html2pdf/src/Html2Pdf.php -> _makeHTMLcode (line 600)
  1.     public function writeHTML($html)
  2.     {
  3.         $html $this->parsingHtml->prepareHtml($html);
  4.         $html $this->parsingCss->extractStyle($html);
  5.         $this->parsingHtml->parse($this->lexer->tokenize($html));
  6.         $this->_makeHTMLcode();
  7.         return $this;
  8.     }
Html2Pdf->writeHTML() in src/Controller/DefaultController.php (line 1374)
  1.         $template $this->renderView('jobsPdf.html.twig', [
  2.             'jobs' => $jobsRepository->findOneById($id)
  3.        ]);
  4.        $html2pdf = new Html2Pdf();
  5.         $html2pdf->writeHTML($template);
  6.         $html2pdf->output();
  7.         
in vendor/symfony/http-kernel/HttpKernel.php -> genererpdfjobs (line 163)
  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);
  9.             $this->dispatcher->dispatch($eventKernelEvents::VIEW);
  1.     {
  2.         $request->headers->set('X-Php-Ob-Level', (string) ob_get_level());
  3.         $this->requestStack->push($request);
  4.         try {
  5.             return $this->handleRaw($request$type);
  6.         } catch (\Exception $e) {
  7.             if ($e instanceof RequestExceptionInterface) {
  8.                 $e = new BadRequestHttpException($e->getMessage(), $e);
  9.             }
  10.             if (false === $catch) {
  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 35)
  1. $app $app(...$args);
  2. exit(
  3.     $runtime
  4.         ->getRunner($app)
  5.         ->run()
  6. );
require_once('/var/www/vhosts/deamonerp.fr/httpdocs/cpi2/vendor/autoload_runtime.php') in public/index.php (line 5)
  1. <?php
  2. use App\Kernel;
  3. require_once dirname(__DIR__).'/vendor/autoload_runtime.php';
  4. if($_SERVER['REMOTE_ADDR'] == '90.63.222.84')
  5. {
  6.     return function (array $context) {
  7.         return new Kernel($context['APP_DEV'], (bool) $context['APP_DEBUG']);
  8.     };