News

Beverage Packaging Deposit System in Latvia
 InvalidArgumentException {#1484
  #message: "Article should be an instance of `common\ActiveRecords\Article`"
  #code: 0
  #file: "/var/www/clients/client1/web78/web/frontend/classes/UrlRules/NewsUrlRule.php"
  #line: 40
  trace: {
    /var/www/clients/client1/web78/web/frontend/classes/UrlRules/NewsUrlRule.php:40 {
      frontend\classes\UrlRules\NewsUrlRule->createUrl(string $route, array $params = []): ?string …
      › if (!is_a($params['article'], Article::class)) {    throw new \InvalidArgumentException('Article should be an instance of `' . Article::class . '`');}
    }
    /var/www/clients/client1/web78/web/constructor/Url.php:85 {
      Constructor\Url::processUrlRules(string $route, array $params, ConfigInterface $config): string …
      › $rule = getInstance($entry);$result = $rule->createUrl($route, $params);if ($result) {
    }
    /var/www/clients/client1/web78/web/constructor/Url.php:28 {
      Constructor\Url::get(string $route, array $params = [], bool $scheme = false, ?string $namespace = null): string …
      › $config = $namespace ? AppConfigBuilder::buildForApp($namespace) : App::$app->config;$result = self::processUrlRules($route, $params, $config);}
    /var/www/clients/client1/web78/web/frontend/components/Dio/NewsList/views/index.php:24 {
      require …
      › <div class="button-text">    <a href="<?php echo Url::get('article', ['article' => $articles[0]]) ?>">        <?php echo $articles[0]->title ?>
    }
    /var/www/clients/client1/web78/web/common/classes/Component.php:66 {
      common\classes\Component->render($view, $data = []) …
      › extract($data);require $view_path;arguments: {
        "/var/www/clients/client1/web78/web/frontend/components/Dio/NewsList/views/index.php"
      }
    }
    /var/www/clients/client1/web78/web/frontend/components/Dio/NewsList/NewsList.php:60 {
      frontend\components\Dio\NewsList\NewsList->output() …
      › 
      › return $this->render('index', [    'articles' => $list,
    }
    /var/www/clients/client1/web78/web/frontend/templates/index/index.php:26 {
      require …
      › ?><?php echo NewsList::getInstance()->output(); ?>}
    /var/www/clients/client1/web78/web/constructor/Controller.php:171 {
      Constructor\Controller->renderView(string $view, $data) …
      › extract($data);require $viewPath;$html = ob_get_clean();
      arguments: {
        "/var/www/clients/client1/web78/web/frontend/templates/index/index.php"
      }
    }
    /var/www/clients/client1/web78/web/constructor/Controller.php:148 {
      Constructor\Controller->render($view, array $data = [], ?int $statusCode = null) …
      › {    $content = $this->renderView($view, $data);    $html = $this->template->render($content);
    }
    /var/www/clients/client1/web78/web/frontend/controllers/IndexController.php:34 {
      frontend\controllers\IndexController->actionIndex() …
      › 
      › $response = $this->render("index", []);}
    frontend\controllers\IndexController->actionIndex() {}
    /var/www/clients/client1/web78/web/vendor/php-di/invoker/src/Invoker.php:74 {
      Invoker\Invoker->call($callable, array $parameters = []) …
      › 
      ›     return call_user_func_array($callable, $args);}
    }
    /var/www/clients/client1/web78/web/vendor/php-di/php-di/src/Container.php:279 {
      DI\Container->call($callable, array $parameters = []) …
      › {    return $this->getInvoker()->call($callable, $parameters);}
    }
    /var/www/clients/client1/web78/web/constructor/Controller.php:107 {
      Constructor\Controller->callAction(ActionDefinition $definition): Response …
      › if ($beforeActionResponse === true) {    $response = WebApp::$app->getContainer()->call([$this, $action], $actionParams);    $this->afterAction();
    }
    /var/www/clients/client1/web78/web/constructor/WebAction.php:37 {
      Constructor\WebAction->process(ActionDefinition $definition): Response …
      › 
      ›     return $controller->callAction($definition);}
    }
    /var/www/clients/client1/web78/web/constructor/WebApp.php:57 {
      Constructor\WebApp->run() …
      ›     $this->actionDefinition = $router->route($this->request);    $response = $webAction->process($this->actionDefinition);} catch (Exception $exception) {
    }
    /var/www/clients/client1/web78/web/frontend/public/index.php:19 {
      › 
      › $app->run();}
  }
}