Jaunumi

Mūsu risinājumi

Text

Sākums - TerraTech
InvalidArgumentException {#1056
  #message: "Page should be an instance of `common\ActiveRecords\Page`"
  #code: 0
  #file: "/var/www/clients/client1/web41/web/frontend/classes/UrlRules/PageUrlRule.php"
  #line: 48
  trace: {
    /var/www/clients/client1/web41/web/frontend/classes/UrlRules/PageUrlRule.php:48 {if (!is_a($params['page'], Page::class)) {    throw new \InvalidArgumentException('Page should be an instance of `' . Page::class . '`');}
    }
    /var/www/clients/client1/web41/web/constructor/Url.php:52 {$rule = getInstance($entry);$result = $rule->createUrl($route, $params);if ($result) {
      arguments: {
        $route: "page"
        $params: array:1 [ …1]
      }
    }
    /var/www/clients/client1/web41/web/constructor/Url.php:22 {{    $result = self::processUrlRules($route, $params);arguments: {
        $route: "page"
        $params: array:1 [ …1]
      }
    }
    /var/www/clients/client1/web41/web/frontend/templates/index/index.php:87 {<div class="text-center">    <a class="btn btn-filled" href="<?= Url::get('page', ['page' => Page::getByIdCached($solutions_link)]) ?>"><?=WebApp::l('Vairāk')?> &raquo;</a></div>
      arguments: {
        $route: "page"
        $params: array:1 [ …1]
      }
    }
    /var/www/clients/client1/web41/web/constructor/Controller.php:161 {extract($data);require $viewPath;$html = ob_get_clean();
      arguments: {
        "/var/www/clients/client1/web41/web/frontend/templates/index/index.php"
      }
    }
    /var/www/clients/client1/web41/web/constructor/Controller.php:138 {{    $content = $this->renderView($view, $data);    $html = $this->template->render($content);
      arguments: {
        $view: "index"
        $data: array:9 [ …9]
      }
    }
    /var/www/clients/client1/web41/web/frontend/controllers/IndexController.php:39 {'promise' => $promise,'promise_link' => $promise_link]);
      arguments: {
        $view: "index"
        $data: array:9 [ …9]
      }
    }
    frontend\controllers\IndexController->actionIndex() {}
    /var/www/clients/client1/web41/web/vendor/php-di/invoker/src/Invoker.php:82 {
      › 
      ›     return call_user_func_array($callable, $args);}
      arguments: {
        $function_name: array:2 [ …2]
        $parameters: []
      }
    }
    /var/www/clients/client1/web41/web/vendor/php-di/php-di/src/Container.php:269 {{    return $this->getInvoker()->call($callable, $parameters);}
      arguments: {
        $callable: array:2 [ …2]
        $parameters: []
      }
    }
    /var/www/clients/client1/web41/web/constructor/Controller.php:97 {if ($beforeActionResponse === true) {    $response = WebApp::$app->getContainer()->call([$this, $action], $actionParams);    $this->afterAction();
      arguments: {
        $callable: array:2 [ …2]
        $parameters: []
      }
    }
    /var/www/clients/client1/web41/web/constructor/WebAction.php:37 {
      › 
      ›     return $controller->callAction($definition);}
      arguments: {
        $definition: ActionDefinition {#949 …}
      }
    }
    /var/www/clients/client1/web41/web/constructor/WebApp.php:57 {    $this->actionDefinition = $router->route($this->request);    $response = $webAction->process($this->actionDefinition);} catch (Exception $exception) {
      arguments: {
        $definition: ActionDefinition {#949 …}
      }
    }
    /var/www/clients/client1/web41/web/frontend/public/index.php:25 {
      › 
      › $app->run();}
  }
}