27. ErrorException
…/­vendor/­geoip2/­geoip2/­src/­GeoIp2/­Database/­Reader.php171
26. Illuminate\View\Engines\CompilerEngine handleViewException
…/­vendor/­laravel/­framework/­src/­Illuminate/­View/­Engines/­PhpEngine.php39
25. GeoIp2\Exception\AddressNotFoundException
…/­vendor/­geoip2/­geoip2/­src/­GeoIp2/­Database/­Reader.php171
24. GeoIp2\Database\Reader getRecord
…/­vendor/­geoip2/­geoip2/­src/­GeoIp2/­Database/­Reader.php149
23. GeoIp2\Database\Reader modelFor
…/­vendor/­geoip2/­geoip2/­src/­GeoIp2/­Database/­Reader.php74
22. GeoIp2\Database\Reader city
…/­app/­storage/­views/­645a992fd47abe1bebf4bfd28975997a698
21. include
…/­vendor/­laravel/­framework/­src/­Illuminate/­View/­Engines/­PhpEngine.php35
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/­Http/­Response.php43
15. Illuminate\Http\Response setContent
…/­vendor/­symfony/­http-foundation/­Symfony/­Component/­HttpFoundation/­Response.php202
14. Symfony\Component\HttpFoundation\Response __construct
…/­vendor/­laravel/­framework/­src/­Illuminate/­Routing/­Router.php1498
13. Illuminate\Routing\Router prepareResponse
…/­vendor/­laravel/­framework/­src/­Illuminate/­Routing/­Router.php1031
12. Illuminate\Routing\Router dispatchToRoute
…/­vendor/­laravel/­framework/­src/­Illuminate/­Routing/­Router.php996
11. Illuminate\Routing\Router dispatch
…/­vendor/­laravel/­framework/­src/­Illuminate/­Foundation/­Application.php776
10. Illuminate\Foundation\Application dispatch
…/­vendor/­laravel/­framework/­src/­Illuminate/­Foundation/­Application.php746
9. Illuminate\Foundation\Application handle
…/­vendor/­symfony/­http-kernel/­Symfony/­Component/­HttpKernel/­HttpCache/­HttpCache.php466
8. Symfony\Component\HttpKernel\HttpCache\HttpCache forward
…/­vendor/­symfony/­http-kernel/­Symfony/­Component/­HttpKernel/­HttpCache/­HttpCache.php429
7. Symfony\Component\HttpKernel\HttpCache\HttpCache fetch
…/­vendor/­symfony/­http-kernel/­Symfony/­Component/­HttpKernel/­HttpCache/­HttpCache.php329
6. Symfony\Component\HttpKernel\HttpCache\HttpCache lookup
…/­vendor/­symfony/­http-kernel/­Symfony/­Component/­HttpKernel/­HttpCache/­HttpCache.php193
5. Symfony\Component\HttpKernel\HttpCache\HttpCache 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.php642
0. Illuminate\Foundation\Application run
…/­public/­index.php49

ErrorException (E_UNKNOWN) ErrorException thrown with message "The address 185.189.199.88 is not in the database. (View: /home/travel2macedonia/app/views/hotels/location.blade.php)" Stacktrace: #27 ErrorException in /home/travel2macedonia/vendor/geoip2/geoip2/src/GeoIp2/Database/Reader.php:171 #26 Illuminate\View\Engines\CompilerEngine:handleViewException in /home/travel2macedonia/vendor/laravel/framework/src/Illuminate/View/Engines/PhpEngine.php:39 #25 GeoIp2\Exception\AddressNotFoundException in /home/travel2macedonia/vendor/geoip2/geoip2/src/GeoIp2/Database/Reader.php:171 #24 GeoIp2\Database\Reader:getRecord in /home/travel2macedonia/vendor/geoip2/geoip2/src/GeoIp2/Database/Reader.php:149 #23 GeoIp2\Database\Reader:modelFor in /home/travel2macedonia/vendor/geoip2/geoip2/src/GeoIp2/Database/Reader.php:74 #22 GeoIp2\Database\Reader:city in /home/travel2macedonia/app/storage/views/645a992fd47abe1bebf4bfd28975997a:698 #21 include in /home/travel2macedonia/vendor/laravel/framework/src/Illuminate/View/Engines/PhpEngine.php:35 #20 Illuminate\View\Engines\PhpEngine:evaluatePath in /home/travel2macedonia/vendor/laravel/framework/src/Illuminate/View/Engines/CompilerEngine.php:56 #19 Illuminate\View\Engines\CompilerEngine:get in /home/travel2macedonia/vendor/laravel/framework/src/Illuminate/View/View.php:134 #18 Illuminate\View\View:getContents in /home/travel2macedonia/vendor/laravel/framework/src/Illuminate/View/View.php:102 #17 Illuminate\View\View:renderContents in /home/travel2macedonia/vendor/laravel/framework/src/Illuminate/View/View.php:76 #16 Illuminate\View\View:render in /home/travel2macedonia/vendor/laravel/framework/src/Illuminate/Http/Response.php:43 #15 Illuminate\Http\Response:setContent in /home/travel2macedonia/vendor/symfony/http-foundation/Symfony/Component/HttpFoundation/Response.php:202 #14 Symfony\Component\HttpFoundation\Response:__construct in /home/travel2macedonia/vendor/laravel/framework/src/Illuminate/Routing/Router.php:1498 #13 Illuminate\Routing\Router:prepareResponse in /home/travel2macedonia/vendor/laravel/framework/src/Illuminate/Routing/Router.php:1031 #12 Illuminate\Routing\Router:dispatchToRoute in /home/travel2macedonia/vendor/laravel/framework/src/Illuminate/Routing/Router.php:996 #11 Illuminate\Routing\Router:dispatch in /home/travel2macedonia/vendor/laravel/framework/src/Illuminate/Foundation/Application.php:776 #10 Illuminate\Foundation\Application:dispatch in /home/travel2macedonia/vendor/laravel/framework/src/Illuminate/Foundation/Application.php:746 #9 Illuminate\Foundation\Application:handle in /home/travel2macedonia/vendor/symfony/http-kernel/Symfony/Component/HttpKernel/HttpCache/HttpCache.php:466 #8 Symfony\Component\HttpKernel\HttpCache\HttpCache:forward in /home/travel2macedonia/vendor/symfony/http-kernel/Symfony/Component/HttpKernel/HttpCache/HttpCache.php:429 #7 Symfony\Component\HttpKernel\HttpCache\HttpCache:fetch in /home/travel2macedonia/vendor/symfony/http-kernel/Symfony/Component/HttpKernel/HttpCache/HttpCache.php:329 #6 Symfony\Component\HttpKernel\HttpCache\HttpCache:lookup in /home/travel2macedonia/vendor/symfony/http-kernel/Symfony/Component/HttpKernel/HttpCache/HttpCache.php:193 #5 Symfony\Component\HttpKernel\HttpCache\HttpCache:handle in /home/travel2macedonia/vendor/laravel/framework/src/Illuminate/Session/Middleware.php:72 #4 Illuminate\Session\Middleware:handle in /home/travel2macedonia/vendor/laravel/framework/src/Illuminate/Cookie/Queue.php:47 #3 Illuminate\Cookie\Queue:handle in /home/travel2macedonia/vendor/laravel/framework/src/Illuminate/Cookie/Guard.php:51 #2 Illuminate\Cookie\Guard:handle in /home/travel2macedonia/vendor/stack/builder/src/Stack/StackedHttpKernel.php:23 #1 Stack\StackedHttpKernel:handle in /home/travel2macedonia/vendor/laravel/framework/src/Illuminate/Foundation/Application.php:642 #0 Illuminate\Foundation\Application:run in /home/travel2macedonia/public/index.php:49

The address 185.189.199.88 is not in the database. (View: /home/travel2macedonia/app/views/hotels/location.blade.php)

        return new $class($record);
    }
 
    private function getRecord($ipAddress)
    {
        $record = $this->dbReader->get($ipAddress);
        if ($record === null) {
            throw new AddressNotFoundException(
                "The address $ipAddress is not in the database."
            );
		// an exception is thrown. This prevents any partial views from leaking.
		try
		{
			include $__path;
		}
		catch (\Exception $e)
		{
			$this->handleViewException($e);
		}
 
        return new $class($record);
    }
 
    private function getRecord($ipAddress)
    {
        $record = $this->dbReader->get($ipAddress);
        if ($record === null) {
            throw new AddressNotFoundException(
                "The address $ipAddress is not in the database."
            );
Exception message: The address 185.189.199.88 is not in the database.
    public function isp($ipAddress)
    {
        return $this->flatModelFor('Isp', $ipAddress);
    }
 
    private function modelFor($class, $ipAddress)
    {
        $record = $this->getRecord($ipAddress);
 
        $record['traits']['ip_address'] = $ipAddress;
     * @throws \GeoIp2\Exception\AddressNotFoundException if the address is
     *         not in the database.
     * @throws \MaxMind\Db\Reader\InvalidDatabaseException if the database
     *         is corrupt or invalid
     */
    public function city($ipAddress)
    {
        return $this->modelFor('City', $ipAddress);
    }
 
							$zemjaIme = Lang::get('hotels/index.unknown');
						}
						else {
							//echo "IP is valid";
							
							$reader = new Reader('../app/database/maxmind/GeoLite2-City.mmdb');
							
							$record = $reader->city($recently->hbIP);
							
							if (isset($record->country->isoCode)) {
		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;
		}
 
		// 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)
        }
 
        // fix the client IP address by setting it to 127.0.0.1 as HttpCache
        // is always called from the same process as the backend.
        $request->server->set('REMOTE_ADDR', '127.0.0.1');
 
        // always a "master" request (as the real master request can be in cache)
        $response = $this->kernel->handle($request, HttpKernelInterface::MASTER_REQUEST, $catch);
        // FIXME: we probably need to also catch exceptions if raw === true
 
        // send no head requests because we want content
        $subRequest->setMethod('GET');
 
        // avoid that the backend sends no content
        $subRequest->headers->remove('if_modified_since');
        $subRequest->headers->remove('if_none_match');
 
        $response = $this->forward($subRequest, $catch);
 
        if ($response->isCacheable()) {
 
            return $this->pass($request, $catch);
        }
 
        if (null === $entry) {
            $this->record($request, 'miss');
 
            return $this->fetch($request, $catch);
        }
 
        $this->traces[$request->getMethod().' '.$path] = array();
 
        if (!$request->isMethodSafe()) {
            $response = $this->invalidate($request, $catch);
        } elseif ($request->headers->has('expect')) {
            $response = $this->pass($request, $catch);
        } else {
            $response = $this->lookup($request, $catch);
        }
 
		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
REDIRECT_STATUS 200
HTTP_HOST travel2macedonia.com.mk
HTTP_CONNECTION Keep-Alive
HTTP_ACCEPT_ENCODING gzip
HTTP_CF_IPCOUNTRY US
HTTP_X_FORWARDED_FOR 54.166.199.178
HTTP_CF_RAY 3b0c9ffa95652210-EWR
HTTP_X_FORWARDED_PROTO http
HTTP_CF_VISITOR {"scheme":"http"}
HTTP_USER_AGENT CCBot/2.0 (http://commoncrawl.org/faq/)
HTTP_ACCEPT text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
HTTP_IF_MODIFIED_SINCE Sun, 20 Aug 2017 15:29:36 GMT
HTTP_CF_CONNECTING_IP 54.166.199.178
PATH /sbin:/usr/sbin:/bin:/usr/bin
SERVER_SIGNATURE
SERVER_SOFTWARE Apache
SERVER_NAME travel2macedonia.com.mk
SERVER_ADDR 212.18.230.78
SERVER_PORT 80
REMOTE_ADDR 54.166.199.178
DOCUMENT_ROOT /home/travel2macedonia/public
SERVER_ADMIN [email protected]
SCRIPT_FILENAME /home/travel2macedonia/public/index.php
REMOTE_PORT 24611
REDIRECT_URL /accommodation-hotels/popova-sapka
GATEWAY_INTERFACE CGI/1.1
SERVER_PROTOCOL HTTP/1.1
REQUEST_METHOD GET
QUERY_STRING
REQUEST_URI /accommodation-hotels/popova-sapka
SCRIPT_NAME /index.php
PHP_SELF /index.php
REQUEST_TIME_FLOAT 1508509290.964
REQUEST_TIME 1508509290
empty
empty
empty
empty
empty
empty
0. Whoops\Handler\PrettyPageHandler