27. ErrorException
…/­app/­storage/­views/­28e6c0a4c0df74c292486bcc7d74ddfb76
26. Illuminate\View\Engines\CompilerEngine handleViewException
…/­vendor/­laravel/­framework/­src/­Illuminate/­View/­Engines/­PhpEngine.php41
25. ErrorException
…/­app/­storage/­views/­28e6c0a4c0df74c292486bcc7d74ddfb76
24. Illuminate\Exception\Handler handleError
<#unknown>0
23. file_get_contents
…/­app/­storage/­views/­28e6c0a4c0df74c292486bcc7d74ddfb76
22. file_get_html
…/­app/­storage/­views/­197218459c1b98eeaeb72237ed15a03814
21. include
…/­vendor/­laravel/­framework/­src/­Illuminate/­View/­Engines/­PhpEngine.php37
20. Illuminate\View\Engines\PhpEngine evaluatePath
…/­vendor/­laravel/­framework/­src/­Illuminate/­View/­Engines/­CompilerEngine.php56
19. Illuminate\View\Engines\CompilerEngine get
…/­vendor/­laravel/­framework/­src/­Illuminate/­View/­View.php134
18. Illuminate\View\View getContents
…/­vendor/­laravel/­framework/­src/­Illuminate/­View/­View.php102
17. Illuminate\View\View renderContents
…/­vendor/­laravel/­framework/­src/­Illuminate/­View/­View.php76
16. Illuminate\View\View render
…/­vendor/­laravel/­framework/­src/­Illuminate/­View/­View.php150
15. Illuminate\View\View gatherData
…/­vendor/­laravel/­framework/­src/­Illuminate/­View/­View.php134
14. Illuminate\View\View getContents
…/­vendor/­laravel/­framework/­src/­Illuminate/­View/­View.php102
13. Illuminate\View\View renderContents
…/­vendor/­laravel/­framework/­src/­Illuminate/­View/­View.php76
12. Illuminate\View\View render
…/­vendor/­laravel/­framework/­src/­Illuminate/­Http/­Response.php43
11. Illuminate\Http\Response setContent
…/­vendor/­symfony/­http-foundation/­Symfony/­Component/­HttpFoundation/­Response.php202
10. Symfony\Component\HttpFoundation\Response __construct
…/­vendor/­laravel/­framework/­src/­Illuminate/­Routing/­Router.php1496
9. Illuminate\Routing\Router prepareResponse
…/­vendor/­laravel/­framework/­src/­Illuminate/­Routing/­Router.php1031
8. Illuminate\Routing\Router dispatchToRoute
…/­vendor/­laravel/­framework/­src/­Illuminate/­Routing/­Router.php996
7. Illuminate\Routing\Router dispatch
…/­vendor/­laravel/­framework/­src/­Illuminate/­Foundation/­Application.php775
6. Illuminate\Foundation\Application dispatch
…/­vendor/­laravel/­framework/­src/­Illuminate/­Foundation/­Application.php745
5. Illuminate\Foundation\Application handle
…/­vendor/­laravel/­framework/­src/­Illuminate/­Session/­Middleware.php72
4. Illuminate\Session\Middleware handle
…/­vendor/­laravel/­framework/­src/­Illuminate/­Cookie/­Queue.php47
3. Illuminate\Cookie\Queue handle
…/­vendor/­laravel/­framework/­src/­Illuminate/­Cookie/­Guard.php51
2. Illuminate\Cookie\Guard handle
…/­vendor/­stack/­builder/­src/­Stack/­StackedHttpKernel.php23
1. Stack\StackedHttpKernel handle
…/­vendor/­laravel/­framework/­src/­Illuminate/­Foundation/­Application.php641
0. Illuminate\Foundation\Application run
…/­public/­index.php49

ErrorException (E_UNKNOWN) ErrorException thrown with message "file_get_contents(https://czechconsulate.org.np/site/gallery/nepal-tourism): failed to open stream: HTTP request failed! HTTP/1.1 406 Not Acceptable (View: /home/czechconsulate/public_html/app/views/site/pages/page.blade.php)" Stacktrace: #27 ErrorException in /home/czechconsulate/public_html/app/storage/views/28e6c0a4c0df74c292486bcc7d74ddfb:76 #26 Illuminate\View\Engines\CompilerEngine:handleViewException in /home/czechconsulate/public_html/vendor/laravel/framework/src/Illuminate/View/Engines/PhpEngine.php:41 #25 ErrorException in /home/czechconsulate/public_html/app/storage/views/28e6c0a4c0df74c292486bcc7d74ddfb:76 #24 Illuminate\Exception\Handler:handleError in <#unknown>:0 #23 file_get_contents in /home/czechconsulate/public_html/app/storage/views/28e6c0a4c0df74c292486bcc7d74ddfb:76 #22 file_get_html in /home/czechconsulate/public_html/app/storage/views/197218459c1b98eeaeb72237ed15a038:14 #21 include in /home/czechconsulate/public_html/vendor/laravel/framework/src/Illuminate/View/Engines/PhpEngine.php:37 #20 Illuminate\View\Engines\PhpEngine:evaluatePath in /home/czechconsulate/public_html/vendor/laravel/framework/src/Illuminate/View/Engines/CompilerEngine.php:56 #19 Illuminate\View\Engines\CompilerEngine:get in /home/czechconsulate/public_html/vendor/laravel/framework/src/Illuminate/View/View.php:134 #18 Illuminate\View\View:getContents in /home/czechconsulate/public_html/vendor/laravel/framework/src/Illuminate/View/View.php:102 #17 Illuminate\View\View:renderContents in /home/czechconsulate/public_html/vendor/laravel/framework/src/Illuminate/View/View.php:76 #16 Illuminate\View\View:render in /home/czechconsulate/public_html/vendor/laravel/framework/src/Illuminate/View/View.php:150 #15 Illuminate\View\View:gatherData in /home/czechconsulate/public_html/vendor/laravel/framework/src/Illuminate/View/View.php:134 #14 Illuminate\View\View:getContents in /home/czechconsulate/public_html/vendor/laravel/framework/src/Illuminate/View/View.php:102 #13 Illuminate\View\View:renderContents in /home/czechconsulate/public_html/vendor/laravel/framework/src/Illuminate/View/View.php:76 #12 Illuminate\View\View:render in /home/czechconsulate/public_html/vendor/laravel/framework/src/Illuminate/Http/Response.php:43 #11 Illuminate\Http\Response:setContent in /home/czechconsulate/public_html/vendor/symfony/http-foundation/Symfony/Component/HttpFoundation/Response.php:202 #10 Symfony\Component\HttpFoundation\Response:__construct in /home/czechconsulate/public_html/vendor/laravel/framework/src/Illuminate/Routing/Router.php:1496 #9 Illuminate\Routing\Router:prepareResponse in /home/czechconsulate/public_html/vendor/laravel/framework/src/Illuminate/Routing/Router.php:1031 #8 Illuminate\Routing\Router:dispatchToRoute in /home/czechconsulate/public_html/vendor/laravel/framework/src/Illuminate/Routing/Router.php:996 #7 Illuminate\Routing\Router:dispatch in /home/czechconsulate/public_html/vendor/laravel/framework/src/Illuminate/Foundation/Application.php:775 #6 Illuminate\Foundation\Application:dispatch in /home/czechconsulate/public_html/vendor/laravel/framework/src/Illuminate/Foundation/Application.php:745 #5 Illuminate\Foundation\Application:handle in /home/czechconsulate/public_html/vendor/laravel/framework/src/Illuminate/Session/Middleware.php:72 #4 Illuminate\Session\Middleware:handle in /home/czechconsulate/public_html/vendor/laravel/framework/src/Illuminate/Cookie/Queue.php:47 #3 Illuminate\Cookie\Queue:handle in /home/czechconsulate/public_html/vendor/laravel/framework/src/Illuminate/Cookie/Guard.php:51 #2 Illuminate\Cookie\Guard:handle in /home/czechconsulate/public_html/vendor/stack/builder/src/Stack/StackedHttpKernel.php:23 #1 Stack\StackedHttpKernel:handle in /home/czechconsulate/public_html/vendor/laravel/framework/src/Illuminate/Foundation/Application.php:641 #0 Illuminate\Foundation\Application:run in /home/czechconsulate/public_html/public/index.php:49

file_get_contents(https://czechconsulate.org.np/site/gallery/nepal-tourism): failed to open stream: HTTP request failed! HTTP/1.1 406 Not Acceptable (View: /home/czechconsulate/public_html/app/views/site/pages/page.blade.php)

// get html dom from file
// $maxlen is defined in the code as PHP_STREAM_COPY_ALL which is defined as -1.
function file_get_html($url, $use_include_path = false, $context=null, $offset = -1, $maxLen=-1, $lowercase = true, $forceTagsClosed=true, $target_charset = DEFAULT_TARGET_CHARSET, $stripRN=true, $defaultBRText=DEFAULT_BR_TEXT, $defaultSpanText=DEFAULT_SPAN_TEXT)
{
	// We DO force the tags to be terminated.
	$dom = new simple_html_dom(null, $lowercase, $forceTagsClosed, $target_charset, $stripRN, $defaultBRText, $defaultSpanText);
	// For sourceforge users: uncomment the next line and comment the retreive_url_contents line 2 lines down if it is not already done.
	$contents = file_get_contents($url, $use_include_path, $context, $offset);
	// Paperg - use our own mechanism for getting the contents as we want to control the timeout.
	//$contents = retrieve_url_contents($url);
		// an exception is thrown. This prevents any partial views from leaking.
		try
		{
			include $__path;
		}
		catch (\Exception $e)
		{
			$this->handleViewException($e, $obLevel);
		}
 
// get html dom from file
// $maxlen is defined in the code as PHP_STREAM_COPY_ALL which is defined as -1.
function file_get_html($url, $use_include_path = false, $context=null, $offset = -1, $maxLen=-1, $lowercase = true, $forceTagsClosed=true, $target_charset = DEFAULT_TARGET_CHARSET, $stripRN=true, $defaultBRText=DEFAULT_BR_TEXT, $defaultSpanText=DEFAULT_SPAN_TEXT)
{
	// We DO force the tags to be terminated.
	$dom = new simple_html_dom(null, $lowercase, $forceTagsClosed, $target_charset, $stripRN, $defaultBRText, $defaultSpanText);
	// For sourceforge users: uncomment the next line and comment the retreive_url_contents line 2 lines down if it is not already done.
	$contents = file_get_contents($url, $use_include_path, $context, $offset);
	// Paperg - use our own mechanism for getting the contents as we want to control the timeout.
	//$contents = retrieve_url_contents($url);
Exception message: file_get_contents(https://czechconsulate.org.np/site/gallery/nepal-tourism): failed to open stream: HTTP request failed! HTTP/1.1 406 Not Acceptable
<#unknown>
// get html dom from file
// $maxlen is defined in the code as PHP_STREAM_COPY_ALL which is defined as -1.
function file_get_html($url, $use_include_path = false, $context=null, $offset = -1, $maxLen=-1, $lowercase = true, $forceTagsClosed=true, $target_charset = DEFAULT_TARGET_CHARSET, $stripRN=true, $defaultBRText=DEFAULT_BR_TEXT, $defaultSpanText=DEFAULT_SPAN_TEXT)
{
	// We DO force the tags to be terminated.
	$dom = new simple_html_dom(null, $lowercase, $forceTagsClosed, $target_charset, $stripRN, $defaultBRText, $defaultSpanText);
	// For sourceforge users: uncomment the next line and comment the retreive_url_contents line 2 lines down if it is not already done.
	$contents = file_get_contents($url, $use_include_path, $context, $offset);
	// Paperg - use our own mechanism for getting the contents as we want to control the timeout.
	//$contents = retrieve_url_contents($url);
			<?php echo $page->contents; ?>
 
 
			<?php if($page->category()->count()>0): ?>
				<?php echo $__env->make('site._partials.simple_html_dom', array_except(get_defined_vars(), array('__data', '__path')))->render(); ?>
				<?php
					$galurl = route('site.photos', $page->category->slug);
					$html = file_get_html($galurl);
					echo $html->find('div[class=getPhotos]', 0);
				?>
		extract($__data);
 
		// We'll evaluate the contents of the view inside a try/catch block so we can
		// flush out any stray output that might get out before an error occurs or
		// an exception is thrown. This prevents any partial views from leaking.
		try
		{
			include $__path;
		}
		catch (\Exception $e)
		}
 
		$compiled = $this->compiler->getCompiledPath($path);
 
		// Once we have the path to the compiled file, we will evaluate the paths with
		// typical PHP just like any other templates. We also keep a stack of views
		// which have been rendered for right exception messages to be generated.
		$results = $this->evaluatePath($compiled, $data);
 
		array_pop($this->lastCompiled);
	/**
	 * Get the evaluated contents of the view.
	 *
	 * @return string
	 */
	protected function getContents()
	{
		return $this->engine->get($this->path, $this->gatherData());
	}
 
		// We will keep track of the amount of views being rendered so we can flush
		// the section after the complete rendering operation is done. This will
		// clear out the sections for any separate views that may be rendered.
		$this->factory->incrementRender();
 
		$this->factory->callComposer($this);
 
		$contents = $this->getContents();
 
		// Once we've finished rendering the view, we'll decrement the render count
	 * Get the string contents of the view.
	 *
	 * @param  \Closure  $callback
	 * @return string
	 */
	public function render(Closure $callback = null)
	{
		$contents = $this->renderContents();
 
		$response = isset($callback) ? $callback($this, $contents) : null;
	{
		$data = array_merge($this->factory->getShared(), $this->data);
 
		foreach ($data as $key => $value)
		{
			if ($value instanceof Renderable)
			{
				$data[$key] = $value->render();
			}
		}
	/**
	 * Get the evaluated contents of the view.
	 *
	 * @return string
	 */
	protected function getContents()
	{
		return $this->engine->get($this->path, $this->gatherData());
	}
 
		// We will keep track of the amount of views being rendered so we can flush
		// the section after the complete rendering operation is done. This will
		// clear out the sections for any separate views that may be rendered.
		$this->factory->incrementRender();
 
		$this->factory->callComposer($this);
 
		$contents = $this->getContents();
 
		// Once we've finished rendering the view, we'll decrement the render count
	 * Get the string contents of the view.
	 *
	 * @param  \Closure  $callback
	 * @return string
	 */
	public function render(Closure $callback = null)
	{
		$contents = $this->renderContents();
 
		$response = isset($callback) ? $callback($this, $contents) : null;
		}
 
		// If this content implements the "RenderableInterface", then we will call the
		// render method on the object so we will avoid any "__toString" exceptions
		// that might be thrown and have their errors obscured by PHP's handling.
		elseif ($content instanceof RenderableInterface)
		{
			$content = $content->render();
		}
 
     * @throws \InvalidArgumentException When the HTTP status code is not valid
     *
     * @api
     */
    public function __construct($content = '', $status = 200, $headers = array())
    {
        $this->headers = new ResponseHeaderBag($headers);
        $this->setContent($content);
        $this->setStatusCode($status);
        $this->setProtocolVersion('1.0');
	 * @param  mixed  $response
	 * @return \Illuminate\Http\Response
	 */
	protected function prepareResponse($request, $response)
	{
		if ( ! $response instanceof SymfonyResponse)
		{
			$response = new Response($response);
		}
 
		$response = $this->callRouteBefore($route, $request);
 
		if (is_null($response))
		{
			$response = $route->run($request);
		}
 
		$response = $this->prepareResponse($request, $response);
 
		// After we have a prepared response from the route or filter we will call to
		// If no response was returned from the before filter, we will call the proper
		// route instance to get the response. If no route is found a response will
		// still get returned based on why no routes were found for this request.
		$response = $this->callFilter('before', $request);
 
		if (is_null($response))
		{
			$response = $this->dispatchToRoute($request);
		}
 
		}
 
		if ($this->runningUnitTests() && ! $this['session']->isStarted())
		{
			$this['session']->start();
		}
 
		return $this['router']->dispatch($this->prepareRequest($request));
	}
 
	{
		try
		{
			$this->refreshRequest($request = Request::createFromBase($request));
 
			$this->boot();
 
			return $this->dispatch($request);
		}
		catch (\Exception $e)
		if ($this->sessionConfigured())
		{
			$session = $this->startSession($request);
 
			$request->setSession($session);
		}
 
		$response = $this->app->handle($request, $type, $catch);
 
		// Again, if the session has been configured we will need to close out the session
	 * @param  \Symfony\Component\HttpFoundation\Request  $request
	 * @param  int   $type
	 * @param  bool  $catch
	 * @return \Symfony\Component\HttpFoundation\Response
	 */
	public function handle(Request $request, $type = HttpKernelInterface::MASTER_REQUEST, $catch = true)
	{
		$response = $this->app->handle($request, $type, $catch);
 
		foreach ($this->cookies->getQueuedCookies() as $cookie)
	 * @param  \Symfony\Component\HttpFoundation\Request  $request
	 * @param  int   $type
	 * @param  bool  $catch
	 * @return \Symfony\Component\HttpFoundation\Response
	 */
	public function handle(Request $request, $type = HttpKernelInterface::MASTER_REQUEST, $catch = true)
	{
		return $this->encrypt($this->app->handle($this->decrypt($request), $type, $catch));
	}
 
    {
        $this->app = $app;
        $this->middlewares = $middlewares;
    }
 
    public function handle(Request $request, $type = HttpKernelInterface::MASTER_REQUEST, $catch = true)
    {
        return $this->app->handle($request, $type, $catch);
    }
 
	 * @param  \Symfony\Component\HttpFoundation\Request  $request
	 * @return void
	 */
	public function run(SymfonyRequest $request = null)
	{
		$request = $request ?: $this['request'];
 
		$response = with($stack = $this->getStackedClient())->handle($request);
 
		$response->send();
| Once we have the application, we can simply call the run method,
| which will execute the request and send the response back to
| the client's browser allowing them to enjoy the creative
| and wonderful application we have whipped up for them.
|
*/
 
$app->run();
 
Key Value
CONTEXT_DOCUMENT_ROOT /home/czechconsulate/public_html
CONTEXT_PREFIX
DOCUMENT_ROOT /home/czechconsulate/public_html
GATEWAY_INTERFACE CGI/1.1
H2PUSH off
H2_PUSH off
H2_PUSHED
H2_PUSHED_ON
H2_STREAM_ID 3
H2_STREAM_TAG 1404871-92-3
HTTP2 on
HTTPS on
HTTP_ACCEPT */*
HTTP_HOST czechconsulate.org.np
HTTP_REFERER http://czechconsulate.org.np/site/pages/nepal-tourism
HTTP_USER_AGENT claudebot
HTTP_X_HTTPS 1
PATH /bin:/usr/bin
QUERY_STRING
REDIRECT_H2PUSH off
REDIRECT_H2_PUSH off
REDIRECT_H2_PUSHED
REDIRECT_H2_PUSHED_ON
REDIRECT_H2_STREAM_ID 3
REDIRECT_H2_STREAM_TAG 1404871-92-3
REDIRECT_HTTP2 on
REDIRECT_HTTPS on
REDIRECT_REDIRECT_H2PUSH off
REDIRECT_REDIRECT_H2_PUSH off
REDIRECT_REDIRECT_H2_PUSHED
REDIRECT_REDIRECT_H2_PUSHED_ON
REDIRECT_REDIRECT_H2_STREAM_ID 3
REDIRECT_REDIRECT_H2_STREAM_TAG 1404871-92-3
REDIRECT_REDIRECT_HTTP2 on
REDIRECT_REDIRECT_HTTPS on
REDIRECT_REDIRECT_SCRIPT_URI https://czechconsulate.org.np/site/pages/nepal-tourism
REDIRECT_REDIRECT_SCRIPT_URL /site/pages/nepal-tourism
REDIRECT_REDIRECT_SSL_TLS_SNI czechconsulate.org.np
REDIRECT_REDIRECT_STATUS 200
REDIRECT_REDIRECT_UNIQUE_ID Zfl2U7R4XuQPxPUAYXawugAFhBY
REDIRECT_SCRIPT_URI https://czechconsulate.org.np/site/pages/nepal-tourism
REDIRECT_SCRIPT_URL /site/pages/nepal-tourism
REDIRECT_SSL_TLS_SNI czechconsulate.org.np
REDIRECT_STATUS 200
REDIRECT_UNIQUE_ID Zfl2U7R4XuQPxPUAYXawugAFhBY
REDIRECT_URL /public/site/pages/nepal-tourism
REMOTE_ADDR 54.224.52.210
REMOTE_PORT 38350
REQUEST_METHOD GET
REQUEST_SCHEME https
REQUEST_URI /site/pages/nepal-tourism
SCRIPT_FILENAME /home/czechconsulate/public_html/public/index.php
SCRIPT_NAME /public/index.php
SCRIPT_URI https://czechconsulate.org.np/site/pages/nepal-tourism
SCRIPT_URL /site/pages/nepal-tourism
SERVER_ADDR 173.231.248.236
SERVER_ADMIN webmaster@czechconsulate.org.np
SERVER_NAME czechconsulate.org.np
SERVER_PORT 443
SERVER_PROTOCOL HTTP/2.0
SERVER_SIGNATURE
SERVER_SOFTWARE Apache
SSL_TLS_SNI czechconsulate.org.np
TZ America/New_York
UNIQUE_ID Zfl2U7R4XuQPxPUAYXawugAFhBY
PHP_SELF /public/index.php
REQUEST_TIME_FLOAT 1710847571.5235
REQUEST_TIME 1710847571
argv Array ( )
argc 0
empty
empty
empty
empty
empty
empty
0. Whoops\Handler\PrettyPageHandler