Par mums

Kurzemes granulas
^ InvalidArgumentException {#1208
  #message: "Page should be an instance of `common\ActiveRecords\Page`"
  #code: 0
  #file: "/var/www/vhosts/granulas.lv/httpdocs/frontend/classes/UrlRules/PageUrlRule.php"
  #line: 44
  trace: {
    /var/www/vhosts/granulas.lv/httpdocs/frontend/classes/UrlRules/PageUrlRule.php:44 {
      frontend\classes\UrlRules\PageUrlRule->createUrl(string $route, array $params = []): ?string …
      › if (!is_a($params['page'], Page::class)) {    throw new \InvalidArgumentException('Page should be an instance of `' . Page::class . '`');}
    }
    /var/www/vhosts/granulas.lv/httpdocs/constructor/Url.php:52 {
      Constructor\Url::processUrlRules($route, $params) …
      › $rule = getInstance($entry);$result = $rule->createUrl($route, $params);if ($result) {
      arguments: {
        $route: "page"
        $params: array:1 [ …1]
      }
    }
    /var/www/vhosts/granulas.lv/httpdocs/constructor/Url.php:22 {
      Constructor\Url::get($route, $params = [], $scheme = false) …
      › {    $result = self::processUrlRules($route, $params);arguments: {
        $route: "page"
        $params: array:1 [ …1]
      }
    }
    /var/www/vhosts/granulas.lv/httpdocs/frontend/templates/index/index.php:31 {
      require …
      › <?php echo getOptionValue(OptionService::OPTION_INDEX_FIFTH_TEXT_EN); ?><a href="<?php echo Url::get('page', ['page' => Page::findByPk(getOptionValue(OptionService::OPTION_INDEX_SIXTH_TEXT_EN))]); ?>"   class="button button-primary"><?php echo WebApp::l('Lasīt vairāk »', []); ?></a>
      arguments: {
        $route: "page"
        $params: array:1 [ …1]
      }
    }
    /var/www/vhosts/granulas.lv/httpdocs/constructor/Controller.php:161 {
      Constructor\Controller->renderView(string $view, $data) …
      › extract($data);require $viewPath;$html = ob_get_clean();
      arguments: {
        "/var/www/vhosts/granulas.lv/httpdocs/frontend/templates/index/index.php"
      }
    }
    /var/www/vhosts/granulas.lv/httpdocs/constructor/Controller.php:138 {
      Constructor\Controller->render($view, array $data = [], int $statusCode = null) …
      › {    $content = $this->renderView($view, $data);    $html = $this->template->render($content);
      arguments: {
        $view: "index"
        $data: []
      }
    }
    /var/www/vhosts/granulas.lv/httpdocs/frontend/controllers/IndexController.php:18 {
      frontend\controllers\IndexController->actionIndex() …
      › 
      › $response = $this->render("index", []);return $response;
      arguments: {
        $view: "index"
        $data: []
      }
    }
    frontend\controllers\IndexController->actionIndex() {}
    /var/www/vhosts/granulas.lv/httpdocs/vendor/php-di/invoker/src/Invoker.php:74 {
      Invoker\Invoker->call($callable, array $parameters = []) …
      › 
      ›     return call_user_func_array($callable, $args);}
      arguments: {
        $function_name: array:2 [ …2]
        $parameters: []
      }
    }
    /var/www/vhosts/granulas.lv/httpdocs/vendor/php-di/php-di/src/Container.php:276 {
      DI\Container->call($callable, array $parameters = []) …
      › {    return $this->getInvoker()->call($callable, $parameters);}
      arguments: {
        $callable: array:2 [ …2]
        $parameters: []
      }
    }
    /var/www/vhosts/granulas.lv/httpdocs/constructor/Controller.php:97 {
      Constructor\Controller->callAction(ActionDefinition $definition): Response …
      › if ($beforeActionResponse === true) {    $response = WebApp::$app->getContainer()->call([$this, $action], $actionParams);    $this->afterAction();
      arguments: {
        $callable: array:2 [ …2]
        $parameters: []
      }
    }
    /var/www/vhosts/granulas.lv/httpdocs/constructor/WebAction.php:37 {
      Constructor\WebAction->process(ActionDefinition $definition): Response …
      › 
      ›     return $controller->callAction($definition);}
      arguments: {
        $definition: Constructor\structures\ActionDefinition {#1096 …}
      }
    }
    /var/www/vhosts/granulas.lv/httpdocs/constructor/WebApp.php:57 {
      Constructor\WebApp->run() …
      ›     $this->actionDefinition = $router->route($this->request);    $response = $webAction->process($this->actionDefinition);} catch (Exception $exception) {
      arguments: {
        $definition: Constructor\structures\ActionDefinition {#1096 …}
      }
    }
    /var/www/vhosts/granulas.lv/httpdocs/frontend/public/index.php:25 {
      › 
      › $app->run();}
  }
}