Par mums

Kurzemes granulas
InvalidArgumentException {#638
  #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 {if (!is_a($params['page'], Page::class)) {\r    throw new \InvalidArgumentException('Page should be an instance of `' . Page::class . '`');\r}\r
    }
    /var/www/vhosts/granulas.lv/httpdocs/constructor/Url.php:52 {$rule = getInstance($entry);\r$result = $rule->createUrl($route, $params);\rif ($result) {\r
      arguments: {
        $route: "page"
        $params: array:1 [ …1]
      }
    }
    /var/www/vhosts/granulas.lv/httpdocs/constructor/Url.php:22 {{\r    $result = self::processUrlRules($route, $params);\r\r
      arguments: {
        $route: "page"
        $params: array:1 [ …1]
      }
    }
    /var/www/vhosts/granulas.lv/httpdocs/frontend/templates/index/index.php:56 {<?php echo getOptionValue(\common\services\OptionService::OPTION_INDEX_FIFTH_TEXT_EN); ?>\r<a href="<?php echo Url::get('page', ['page' => \common\ActiveRecords\Page::findByPk(getOptionValue(\common\services\OptionService::OPTION_INDEX_SIXTH_TEXT_EN))]); ?>"\r   class="button button-primary"><?php echo \Constructor\WebApp::l('Lasīt vairāk »', []); ?></a>\r
      arguments: {
        $route: "page"
        $params: array:1 [ …1]
      }
    }
    /var/www/vhosts/granulas.lv/httpdocs/constructor/Controller.php:161 {extract($data);\rrequire $viewPath;\r$html = ob_get_clean();\r
      arguments: {
        "/var/www/vhosts/granulas.lv/httpdocs/frontend/templates/index/index.php"
      }
    }
    /var/www/vhosts/granulas.lv/httpdocs/constructor/Controller.php:138 {{\r    $content = $this->renderView($view, $data);\r    $html = $this->template->render($content);\r
      arguments: {
        $view: "index"
        $data: []
      }
    }
    /var/www/vhosts/granulas.lv/httpdocs/frontend/controllers/IndexController.php:18 {\r$response = $this->render("index", []);\rreturn $response;\r
      arguments: {
        $view: "index"
        $data: []
      }
    }
    frontend\controllers\IndexController->actionIndex() {}
    /var/www/vhosts/granulas.lv/httpdocs/vendor/php-di/invoker/src/Invoker.php:82 {
      › 
      ›     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:268 {{    return $this->getInvoker()->call($callable, $parameters);}
      arguments: {
        $callable: array:2 [ …2]
        $parameters: []
      }
    }
    /var/www/vhosts/granulas.lv/httpdocs/constructor/Controller.php:97 {if ($beforeActionResponse === true) {\r    $response = WebApp::$app->getContainer()->call([$this, $action], $actionParams);\r    $this->afterAction();\r
      arguments: {
        $callable: array:2 [ …2]
        $parameters: []
      }
    }
    /var/www/vhosts/granulas.lv/httpdocs/constructor/WebAction.php:37 {\r    return $controller->callAction($definition);\r}\r
      arguments: {
        $definition: ActionDefinition {#625 …}
      }
    }
    /var/www/vhosts/granulas.lv/httpdocs/constructor/WebApp.php:57 {    $this->actionDefinition = $router->route($this->request);\r    $response = $webAction->process($this->actionDefinition);\r} catch (Exception $exception) {\r
      arguments: {
        $definition: ActionDefinition {#625 …}
      }
    }
    /var/www/vhosts/granulas.lv/httpdocs/frontend/public/index.php:25 {\r$app->run();\r}
  }
}