Symfony Exception

ErrorException

HTTP 500 Internal Server Error

mb_convert_encoding(): Handling HTML entities via mbstring is deprecated; use htmlspecialchars, htmlentities, or mb_encode_numericentity/mb_decode_numericentity instead

Exception

ErrorException

  1.             // Replace is for BC
  2.             $this->line .= sprintf(str_replace('"%s"''%s'$this->dumpSuffix), implode(', '$args));
  3.         }
  4.         $this->lastDepth $depth;
  5.         $this->line mb_convert_encoding($this->line'HTML-ENTITIES''UTF-8');
  6.         if (-=== $depth) {
  7.             AbstractDumper::dumpLine(0);
  8.         }
  9.         AbstractDumper::dumpLine($depth);
HandleExceptions->handleError()
  1.             // Replace is for BC
  2.             $this->line .= sprintf(str_replace('"%s"''%s'$this->dumpSuffix), implode(', '$args));
  3.         }
  4.         $this->lastDepth $depth;
  5.         $this->line mb_convert_encoding($this->line'HTML-ENTITIES''UTF-8');
  6.         if (-=== $depth) {
  7.             AbstractDumper::dumpLine(0);
  8.         }
  9.         AbstractDumper::dumpLine($depth);
  1.                 $this->line .= 'b';
  2.             }
  3.             if ($m) {
  4.                 $this->line .= '"""';
  5.                 $this->dumpLine($cursor->depth);
  6.             } else {
  7.                 $this->line .= '"';
  8.             }
  9.             foreach ($str as $str) {
  1.             $this->endValue($cursor);
  2.             $this->line .= $this->indentPad;
  3.             $this->line .= sprintf('<img src="data:%s;base64,%s" /></samp>'$cursor->attr['content-type'], base64_encode($cursor->attr['img-data']));
  4.             $this->endValue($cursor);
  5.         } else {
  6.             parent::dumpString($cursor$str$bin$cut);
  7.         }
  8.     }
  9.     /**
  10.      * {@inheritdoc}
  1.             }
  2.         } elseif ('array' === $type) {
  3.             $dumper->enterHash($cursorCursor::HASH_INDEXED0false);
  4.             $dumper->leaveHash($cursorCursor::HASH_INDEXED0false0);
  5.         } elseif ('string' === $type) {
  6.             $dumper->dumpString($cursor$itemfalse0);
  7.         } else {
  8.             $dumper->dumpScalar($cursor$type$item);
  9.         }
  10.     }
  1.             $cursor->attr = ['if_links' => true];
  2.             $dumper->dumpScalar($cursor'default'' ');
  3.             $cursor->hashType 0;
  4.         }
  5.         $this->dumpItem($dumper$cursor$refs$this->data[$this->position][$this->key]);
  6.     }
  7.     /**
  8.      * Depth-first dumping of items.
  9.      *
  1.         }
  2.         if ($output) {
  3.             $prevOutput $this->setOutput($output);
  4.         }
  5.         try {
  6.             $data->dump($this);
  7.             $this->dumpLine(-1);
  8.             if ($returnDump) {
  9.                 $result stream_get_contents($output, -10);
  10.                 fclose($output);
  1.      * {@inheritdoc}
  2.      */
  3.     public function dump(Data $data$output null, array $extraDisplayOptions = [])
  4.     {
  5.         $this->extraDisplayOptions $extraDisplayOptions;
  6.         $result parent::dump($data$output);
  7.         $this->dumpId 'sf-dump-'.mt_rand();
  8.         return $result;
  9.     }
  1.                 // Symfony VarDumper 2.6 Caster class dont exist.
  2.             } else {
  3.                 $cloneVar $this->getCloner()->cloneVar($value);
  4.             }
  5.             $dumper->dump(
  6.                 $cloneVar,
  7.                 $this->htmlDumperOutput
  8.             );
  9.             $output $this->htmlDumperOutput->getOutput();
  1.         $numFrames count($frame->getArgs());
  2.         if ($numFrames 0) {
  3.             $html '<ol class="linenums">';
  4.             foreach ($frame->getArgs() as $j => $frameArg) {
  5.                 $html .= '<li>'$this->dump($frameArg) .'</li>';
  6.             }
  7.             $html .= '</ol>';
  8.         }
  9.         return $html;
  1.             ><code class="language-php"><?php echo $tpl->escape($code?></code></pre>
  2.           <?php endif ?>
  3.         <?php endif ?>
  4.         <?php $frameArgs $tpl->dumpArgs($frame); ?>
  5.         <?php if ($frameArgs): ?>
  6.           <div class="frame-file">
  7.               Arguments
  8.           </div>
  9.           <div id="frame-code-args-<?=$i?>" class="code-block frame-args">
  1.             $variables array_replace($variables$additionalVariables);
  2.         }
  3.         call_user_func(function () {
  4.             extract(func_get_arg(1));
  5.             require func_get_arg(0);
  6.         }, $template$variables);
  7.     }
  8.     /**
  9.      * Sets the variables to be passed to all templates rendered
TemplateHelper->Whoops\Util\{closure}()
  1.         if ($additionalVariables !== null) {
  2.             $variables array_replace($variables$additionalVariables);
  3.         }
  4.         call_user_func(function () {
  5.             extract(func_get_arg(1));
  6.             require func_get_arg(0);
  7.         }, $template$variables);
  8.     }
  1. <?php $tpl->render($frame_code?>
  2. <?php $tpl->render($env_details?>
  1.             $variables array_replace($variables$additionalVariables);
  2.         }
  3.         call_user_func(function () {
  4.             extract(func_get_arg(1));
  5.             require func_get_arg(0);
  6.         }, $template$variables);
  7.     }
  8.     /**
  9.      * Sets the variables to be passed to all templates rendered
TemplateHelper->Whoops\Util\{closure}()
  1.         if ($additionalVariables !== null) {
  2.             $variables array_replace($variables$additionalVariables);
  3.         }
  4.         call_user_func(function () {
  5.             extract(func_get_arg(1));
  6.             require func_get_arg(0);
  7.         }, $template$variables);
  8.     }
  1. <div class="panel details-container cf">
  2.   <?php $tpl->render($panel_details?>
  3. </div>
  1.             $variables array_replace($variables$additionalVariables);
  2.         }
  3.         call_user_func(function () {
  4.             extract(func_get_arg(1));
  5.             require func_get_arg(0);
  6.         }, $template$variables);
  7.     }
  8.     /**
  9.      * Sets the variables to be passed to all templates rendered
TemplateHelper->Whoops\Util\{closure}()
  1.         if ($additionalVariables !== null) {
  2.             $variables array_replace($variables$additionalVariables);
  3.         }
  4.         call_user_func(function () {
  5.             extract(func_get_arg(1));
  6.             require func_get_arg(0);
  7.         }, $template$variables);
  8.     }
  1.     <div class="Whoops container">
  2.       <div class="stack-container">
  3.         <?php $tpl->render($panel_left_outer?>
  4.         <?php $tpl->render($panel_details_outer?>
  5.       </div>
  6.     </div>
  7.     <script data-manual><?php echo $prismJs ?></script>
  1.             $variables array_replace($variables$additionalVariables);
  2.         }
  3.         call_user_func(function () {
  4.             extract(func_get_arg(1));
  5.             require func_get_arg(0);
  6.         }, $template$variables);
  7.     }
  8.     /**
  9.      * Sets the variables to be passed to all templates rendered
TemplateHelper->Whoops\Util\{closure}()
  1.         if ($additionalVariables !== null) {
  2.             $variables array_replace($variables$additionalVariables);
  3.         }
  4.         call_user_func(function () {
  5.             extract(func_get_arg(1));
  6.             require func_get_arg(0);
  7.         }, $template$variables);
  8.     }
  1.         $plainTextHandler->setException($this->getException());
  2.         $plainTextHandler->setInspector($this->getInspector());
  3.         $vars["preface"] = "<!--\n\n\n" .  $this->templateHelper->escape($plainTextHandler->generateResponse()) . "\n\n\n\n\n\n\n\n\n\n\n-->";
  4.         $this->templateHelper->setVariables($vars);
  5.         $this->templateHelper->render($templateFile);
  6.         return Handler::QUIT;
  7.     }
  8.     /**
  1.                 // The HandlerInterface does not require an Exception passed to handle()
  2.                 // and neither of our bundled handlers use it.
  3.                 // However, 3rd party handlers may have already relied on this parameter,
  4.                 // and removing it would be possibly breaking for users.
  5.                 $handlerResponse $handler->handle($exception);
  6.                 // Collect the content type for possible sending in the headers.
  7.                 $handlerContentType method_exists($handler'contentType') ? $handler->contentType() : null;
  8.                 if (in_array($handlerResponse, [Handler::LAST_HANDLERHandler::QUIT])) {
  1.             $whoops->appendHandler($this->whoopsHandler());
  2.             $whoops->writeToOutput(false);
  3.             $whoops->allowQuit(false);
  4.         })->handleException($e);
  5.     }
  6.     /**
  7.      * Get the Whoops handler for the application.
  8.      *
  1.      */
  2.     protected function renderExceptionContent(Throwable $e)
  3.     {
  4.         try {
  5.             return config('app.debug') && class_exists(Whoops::class)
  6.                         ? $this->renderExceptionWithWhoops($e)
  7.                         : $this->renderExceptionWithSymfony($econfig('app.debug'));
  8.         } catch (Exception $e) {
  9.             return $this->renderExceptionWithSymfony($econfig('app.debug'));
  10.         }
  11.     }
  1.      * @return \Symfony\Component\HttpFoundation\Response
  2.      */
  3.     protected function convertExceptionToResponse(Throwable $e)
  4.     {
  5.         return new SymfonyResponse(
  6.             $this->renderExceptionContent($e),
  7.             $this->isHttpException($e) ? $e->getStatusCode() : 500,
  8.             $this->isHttpException($e) ? $e->getHeaders() : []
  9.         );
  10.     }
  1.      * @return \Symfony\Component\HttpFoundation\Response
  2.      */
  3.     protected function prepareResponse($requestThrowable $e)
  4.     {
  5.         if (! $this->isHttpException($e) && config('app.debug')) {
  6.             return $this->toIlluminateResponse($this->convertExceptionToResponse($e), $e);
  7.         }
  8.         if (! $this->isHttpException($e)) {
  9.             $e = new HttpException(500$e->getMessage());
  10.         }
  1.             return $this->convertValidationExceptionToResponse($e$request);
  2.         }
  3.         return $request->expectsJson()
  4.                     ? $this->prepareJsonResponse($request$e)
  5.                     : $this->prepareResponse($request$e);
  6.     }
  7.     /**
  8.      * Prepare exception for rendering.
  9.      *
  1.      *
  2.      * @throws \Throwable
  3.      */
  4.     public function render($requestThrowable $exception)
  5.     {
  6.         return parent::render($request$exception);
  7.     }
  8.     protected function unauthenticated($requestAuthenticationException $exception)
  9.     {
  10.         if ($request->expectsJson()) {
  1.      * @param  \Throwable  $e
  2.      * @return void
  3.      */
  4.     protected function renderHttpResponse(Throwable $e)
  5.     {
  6.         $this->getExceptionHandler()->render($this->app['request'], $e)->send();
  7.     }
  8.     /**
  9.      * Handle the PHP shutdown event.
  10.      *
  1.         }
  2.         if ($this->app->runningInConsole()) {
  3.             $this->renderForConsole($e);
  4.         } else {
  5.             $this->renderHttpResponse($e);
  6.         }
  7.     }
  8.     /**
  9.      * Render an exception to the console.
  1.      * @return void
  2.      */
  3.     public function handleShutdown()
  4.     {
  5.         if (! is_null($error error_get_last()) && $this->isFatal($error['type'])) {
  6.             $this->handleException($this->fatalErrorFromPhpError($error0));
  7.         }
  8.     }
  9.     /**
  10.      * Create a new fatal error instance from an error array.
HandleExceptions->handleShutdown()

Stack Trace

ErrorException
ErrorException:
mb_convert_encoding(): Handling HTML entities via mbstring is deprecated; use htmlspecialchars, htmlentities, or mb_encode_numericentity/mb_decode_numericentity instead

  at /home/lelamic/public_html/project/vendor/symfony/var-dumper/Dumper/HtmlDumper.php:963
  at Illuminate\Foundation\Bootstrap\HandleExceptions->handleError()
  at mb_convert_encoding()
     (/home/lelamic/public_html/project/vendor/symfony/var-dumper/Dumper/HtmlDumper.php:963)
  at Symfony\Component\VarDumper\Dumper\HtmlDumper->dumpLine()
     (/home/lelamic/public_html/project/vendor/symfony/var-dumper/Dumper/CliDumper.php:224)
  at Symfony\Component\VarDumper\Dumper\CliDumper->dumpString()
     (/home/lelamic/public_html/project/vendor/symfony/var-dumper/Dumper/HtmlDumper.php:799)
  at Symfony\Component\VarDumper\Dumper\HtmlDumper->dumpString()
     (/home/lelamic/public_html/project/vendor/symfony/var-dumper/Cloner/Data.php:418)
  at Symfony\Component\VarDumper\Cloner\Data->dumpItem()
     (/home/lelamic/public_html/project/vendor/symfony/var-dumper/Cloner/Data.php:321)
  at Symfony\Component\VarDumper\Cloner\Data->dump()
     (/home/lelamic/public_html/project/vendor/symfony/var-dumper/Dumper/AbstractDumper.php:137)
  at Symfony\Component\VarDumper\Dumper\AbstractDumper->dump()
     (/home/lelamic/public_html/project/vendor/symfony/var-dumper/Dumper/HtmlDumper.php:140)
  at Symfony\Component\VarDumper\Dumper\HtmlDumper->dump()
     (/home/lelamic/public_html/project/vendor/filp/whoops/src/Whoops/Util/TemplateHelper.php:175)
  at Whoops\Util\TemplateHelper->dump()
     (/home/lelamic/public_html/project/vendor/filp/whoops/src/Whoops/Util/TemplateHelper.php:208)
  at Whoops\Util\TemplateHelper->dumpArgs()
     (/home/lelamic/public_html/project/vendor/filp/whoops/src/Whoops/Resources/views/frame_code.html.php:40)
  at require('/home/lelamic/public_html/project/vendor/filp/whoops/src/Whoops/Resources/views/frame_code.html.php')
     (/home/lelamic/public_html/project/vendor/filp/whoops/src/Whoops/Util/TemplateHelper.php:250)
  at Whoops\Util\TemplateHelper->Whoops\Util\{closure}()
  at call_user_func()
     (/home/lelamic/public_html/project/vendor/filp/whoops/src/Whoops/Util/TemplateHelper.php:248)
  at Whoops\Util\TemplateHelper->render()
     (/home/lelamic/public_html/project/vendor/filp/whoops/src/Whoops/Resources/views/panel_details.html.php:1)
  at require('/home/lelamic/public_html/project/vendor/filp/whoops/src/Whoops/Resources/views/panel_details.html.php')
     (/home/lelamic/public_html/project/vendor/filp/whoops/src/Whoops/Util/TemplateHelper.php:250)
  at Whoops\Util\TemplateHelper->Whoops\Util\{closure}()
  at call_user_func()
     (/home/lelamic/public_html/project/vendor/filp/whoops/src/Whoops/Util/TemplateHelper.php:248)
  at Whoops\Util\TemplateHelper->render()
     (/home/lelamic/public_html/project/vendor/filp/whoops/src/Whoops/Resources/views/panel_details_outer.html.php:2)
  at require('/home/lelamic/public_html/project/vendor/filp/whoops/src/Whoops/Resources/views/panel_details_outer.html.php')
     (/home/lelamic/public_html/project/vendor/filp/whoops/src/Whoops/Util/TemplateHelper.php:250)
  at Whoops\Util\TemplateHelper->Whoops\Util\{closure}()
  at call_user_func()
     (/home/lelamic/public_html/project/vendor/filp/whoops/src/Whoops/Util/TemplateHelper.php:248)
  at Whoops\Util\TemplateHelper->render()
     (/home/lelamic/public_html/project/vendor/filp/whoops/src/Whoops/Resources/views/layout.html.php:24)
  at require('/home/lelamic/public_html/project/vendor/filp/whoops/src/Whoops/Resources/views/layout.html.php')
     (/home/lelamic/public_html/project/vendor/filp/whoops/src/Whoops/Util/TemplateHelper.php:250)
  at Whoops\Util\TemplateHelper->Whoops\Util\{closure}()
  at call_user_func()
     (/home/lelamic/public_html/project/vendor/filp/whoops/src/Whoops/Util/TemplateHelper.php:248)
  at Whoops\Util\TemplateHelper->render()
     (/home/lelamic/public_html/project/vendor/filp/whoops/src/Whoops/Handler/PrettyPageHandler.php:295)
  at Whoops\Handler\PrettyPageHandler->handle()
     (/home/lelamic/public_html/project/vendor/filp/whoops/src/Whoops/Run.php:370)
  at Whoops\Run->handleException()
     (/home/lelamic/public_html/project/vendor/laravel/framework/src/Illuminate/Foundation/Exceptions/Handler.php:364)
  at Illuminate\Foundation\Exceptions\Handler->renderExceptionWithWhoops()
     (/home/lelamic/public_html/project/vendor/laravel/framework/src/Illuminate/Foundation/Exceptions/Handler.php:343)
  at Illuminate\Foundation\Exceptions\Handler->renderExceptionContent()
     (/home/lelamic/public_html/project/vendor/laravel/framework/src/Illuminate/Foundation/Exceptions/Handler.php:327)
  at Illuminate\Foundation\Exceptions\Handler->convertExceptionToResponse()
     (/home/lelamic/public_html/project/vendor/laravel/framework/src/Illuminate/Foundation/Exceptions/Handler.php:306)
  at Illuminate\Foundation\Exceptions\Handler->prepareResponse()
     (/home/lelamic/public_html/project/vendor/laravel/framework/src/Illuminate/Foundation/Exceptions/Handler.php:211)
  at Illuminate\Foundation\Exceptions\Handler->render()
     (/home/lelamic/public_html/project/app/Exceptions/Handler.php:56)
  at App\Exceptions\Handler->render()
     (/home/lelamic/public_html/project/vendor/laravel/framework/src/Illuminate/Foundation/Bootstrap/HandleExceptions.php:119)
  at Illuminate\Foundation\Bootstrap\HandleExceptions->renderHttpResponse()
     (/home/lelamic/public_html/project/vendor/laravel/framework/src/Illuminate/Foundation/Bootstrap/HandleExceptions.php:96)
  at Illuminate\Foundation\Bootstrap\HandleExceptions->handleException()
     (/home/lelamic/public_html/project/vendor/laravel/framework/src/Illuminate/Foundation/Bootstrap/HandleExceptions.php:130)
  at Illuminate\Foundation\Bootstrap\HandleExceptions->handleShutdown()