Добавить счет
Warning:Attempt to read property "id" on null in /home/ard-apps-money/htdocs/money.ard-apps.ru/templates/default/routes/accounts/index.php on line 24 array:11 [
  0 => array:4 [
    "file" => "/home/ard-apps-money/htdocs/money.ard-apps.ru/templates/default/routes/accounts/index.php"
    "line" => 24
    "function" => "{closure:/home/ard-apps-money/htdocs/money.ard-apps.ru/config.php:30}"
    "args" => array:4 [
      0 => 2
      1 => "Attempt to read property "id" on null"
      2 => "/home/ard-apps-money/htdocs/money.ard-apps.ru/templates/default/routes/accounts/index.php"
      3 => 24
    ]
  ]
  1 => array:4 [
    "file" => "/home/ard-apps-money/htdocs/money.ard-apps.ru/core/View/View.php"
    "line" => 34
    "args" => array:1 [
      0 => "/home/ard-apps-money/htdocs/money.ard-apps.ru/templates/default/routes/accounts/index.php"
    ]
    "function" => "include"
  ]
  2 => array:7 [
    "file" => "/home/ard-apps-money/htdocs/money.ard-apps.ru/core/Controller/Controller.php"
    "line" => 53
    "function" => "__construct"
    "class" => "core\View\View"
    "object" => core\View\View {#12
      +content: ? ?string
      +isModal: false
    }
    "type" => "->"
    "args" => array:2 [
      0 => "routes/accounts/index"
      1 => []
    ]
  ]
  3 => array:7 [
    "file" => "/home/ard-apps-money/htdocs/money.ard-apps.ru/controllers/AccountsController.php"
    "line" => 20
    "function" => "renderView"
    "class" => "core\Controller\Controller"
    "object" => controllers\AccountsController {#11}
    "type" => "->"
    "args" => array:1 [
      0 => "routes/accounts/index"
    ]
  ]
  4 => array:5 [
    "function" => "index"
    "class" => "controllers\AccountsController"
    "object" => controllers\AccountsController {#11}
    "type" => "->"
    "args" => []
  ]
  5 => array:4 [
    "file" => "/home/ard-apps-money/htdocs/money.ard-apps.ru/core/Route/Route.php"
    "line" => 179
    "function" => "call_user_func_array"
    "args" => array:2 [
      0 => array:2 [
        0 => controllers\AccountsController {#11}
        1 => "index"
      ]
      1 => []
    ]
  ]
  6 => array:7 [
    "file" => "/home/ard-apps-money/htdocs/money.ard-apps.ru/core/Route/Route.php"
    "line" => 150
    "function" => "executeArrayAction"
    "class" => "core\Route\Route"
    "object" => core\Route\Route {#9
      -routes: array:8 [
        0 => array:3 [
          "route" => ""
          "method" => "GET"
          "action" => array:2 [
            0 => "controllers\IndexController"
            1 => "index"
          ]
        ]
        1 => array:3 [
          "route" => "accounts"
          "method" => "GET"
          "action" => array:2 [
            0 => "controllers\AccountsController"
            1 => "index"
          ]
        ]
        2 => array:3 [
          "route" => "accounts/add"
          "method" => "GET"
          "action" => array:2 [
            0 => "controllers\AccountsController"
            1 => "add"
          ]
        ]
        3 => array:3 [
          "route" => "accounts/add"
          "method" => "POST"
          "action" => array:2 [
            0 => "controllers\AccountsController"
            1 => "add"
          ]
        ]
        4 => array:3 [
          "route" => "accounts/{id}/edit"
          "method" => "GET"
          "action" => array:2 [
            0 => "controllers\AccountsController"
            1 => "edit"
          ]
        ]
        5 => array:3 [
          "route" => "accounts/{id}/edit"
          "method" => "POST"
          "action" => array:2 [
            0 => "controllers\AccountsController"
            1 => "edit"
          ]
        ]
        6 => array:3 [
          "route" => "credits"
          "method" => "GET"
          "action" => array:2 [
            0 => "controllers\CreditsController"
            1 => "index"
          ]
        ]
        7 => array:3 [
          "route" => "credits/{id}/view"
          "method" => "GET"
          "action" => array:2 [
            0 => "controllers\CreditsController"
            1 => "view"
          ]
        ]
      ]
      -currentGroup: ""
    }
    "type" => "->"
    "args" => array:2 [
      0 => array:2 [
        0 => "controllers\AccountsController"
        1 => "index"
      ]
      1 => []
    ]
  ]
  7 => array:7 [
    "file" => "/home/ard-apps-money/htdocs/money.ard-apps.ru/core/Route/Route.php"
    "line" => 141
    "function" => "executeAction"
    "class" => "core\Route\Route"
    "object" => core\Route\Route {#9}
    "type" => "->"
    "args" => array:2 [
      0 => array:2 [
        0 => "controllers\AccountsController"
        1 => "index"
      ]
      1 => []
    ]
  ]
  8 => array:7 [
    "file" => "/home/ard-apps-money/htdocs/money.ard-apps.ru/core/Route/Route.php"
    "line" => 59
    "function" => "execute"
    "class" => "core\Route\Route"
    "object" => core\Route\Route {#9}
    "type" => "->"
    "args" => array:1 [
      0 => array:4 [
        "route" => "accounts"
        "method" => "GET"
        "action" => array:2 [
          0 => "controllers\AccountsController"
          1 => "index"
        ]
        "parameters" => []
      ]
    ]
  ]
  9 => array:7 [
    "file" => "/home/ard-apps-money/htdocs/money.ard-apps.ru/core/App.php"
    "line" => 61
    "function" => "handleRequest"
    "class" => "core\Route\Route"
    "object" => core\Route\Route {#9}
    "type" => "->"
    "args" => []
  ]
  10 => array:7 [
    "file" => "/home/ard-apps-money/htdocs/money.ard-apps.ru/index.php"
    "line" => 8
    "function" => "run"
    "class" => "core\App"
    "object" => core\App {#6
      -authorizedUser: null
      -config: core\Config {#7
        -loadedConfig: array:1 [
          "app" => array:3 [
            "title" => "Money"
            "root" => "/home/ard-apps-money/htdocs/money.ard-apps.ru"
            "template" => "default"
          ]
        ]
      }
      -page: core\Page {#8
        -title: "qwe"
        -description: ? ?string
        -keywords: ? ?string
        +page_head: []
        +page_meta: []
        +page_js: array:2 [
          "head" => []
          "bottom" => []
        ]
        +page_js_code: array:2 [
          "head" => []
          "bottom" => []
        ]
        +page_css: array:2 [
          "head" => []
          "bottom" => []
        ]
      }
    }
    "type" => "->"
    "args" => []
  ]
]
 mysqli_sql_exception {#26
  #message: """
    You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'ORDER BY accounts.id DESC, id ASC\n
             LIMIT 0,15' at line 5
    """
  #code: 1064
  #file: "/home/ard-apps-money/htdocs/money.ard-apps.ru/core/DB.php"
  #line: 38
  #sqlstate: "42000"
  trace: {
    /home/ard-apps-money/htdocs/money.ard-apps.ru/core/DB.php:38 {
      core\DB::query($query, $result_mode = MYSQLI_STORE_RESULT): mysqli_result|bool …
      › {    return self::getInstance()->mysqli->query($query, $result_mode);}
    }
    /home/ard-apps-money/htdocs/money.ard-apps.ru/core/Components/TableView/TableView.php:388 {
      core\Components\TableView\TableView->getQueryResult() …
      ›     return $this->queryResult ? $this->queryResult :        DB::query($this->getQuery().$this->limit);}
    }
    /home/ard-apps-money/htdocs/money.ard-apps.ru/core/Components/TableView/TableView.php:802 {
      core\Components\TableView\TableView->setPagination() …
      › 
      › $result = $this->getQueryResult();$this->rows_count = $result?DB::query("SELECT FOUND_ROWS() as total")->fetch_assoc()['total']:0;
    }
    /home/ard-apps-money/htdocs/money.ard-apps.ru/core/Components/TableView/TableView.php:795 {
      core\Components\TableView\TableView->getCounter() …
      › public function getCounter() {    $this->setPagination();    return $this->counter;
    }
    /home/ard-apps-money/htdocs/money.ard-apps.ru/core/Components/TableView/TableView.php:401 {
      core\Components\TableView\TableView->get(): string …
      › '[clearLink]'=>$this->getClearLink(),'[counter]'=>$this->getCounter(),'[table]'=>$this->getTable(),
    }
    /home/ard-apps-money/htdocs/money.ard-apps.ru/core/Components/TableView/TableView.php:676 {
      core\Components\TableView\TableView->render() …
      › public function render() {    echo $this->get();}
    }
    /home/ard-apps-money/htdocs/money.ard-apps.ru/templates/default/routes/accounts/index.php:48 {
      include …
      ›     ->perPage(15)    ->render();?>
    }
    /home/ard-apps-money/htdocs/money.ard-apps.ru/core/View/View.php:34 {
      core\View\View->__construct($view, array $data = []) …
      › if (is_file($templatePath)) {    include $templatePath;} else {
      arguments: {
        "/home/ard-apps-money/htdocs/money.ard-apps.ru/templates/default/routes/accounts/index.php"
      }
    }
    /home/ard-apps-money/htdocs/money.ard-apps.ru/core/Controller/Controller.php:53 {
      core\Controller\Controller->renderView(string $view, array $data = []): View …
      › {    return new View($view, $data);}
    }
    /home/ard-apps-money/htdocs/money.ard-apps.ru/controllers/AccountsController.php:20 {
      controllers\AccountsController->index(): View …
      › {    return $this->renderView("routes/accounts/index");}
    }
    controllers\AccountsController->index() {}
    /home/ard-apps-money/htdocs/money.ard-apps.ru/core/Route/Route.php:179 {
      core\Route\Route->executeArrayAction(array $action, array $parameters = []): mixed …
      › 
      ›     return call_user_func_array([$instance, $method], $parameters);}
    }
    /home/ard-apps-money/htdocs/money.ard-apps.ru/core/Route/Route.php:150 {
      core\Route\Route->executeAction($action, array $parameters = []): mixed …
      › if (is_array($action)) {    return $this->executeArrayAction($action, $parameters);}
    }
    /home/ard-apps-money/htdocs/money.ard-apps.ru/core/Route/Route.php:141 {
      core\Route\Route->execute(array $route): mixed …
      › {    return $this->executeAction($route['action'], $route['parameters'] ?? []);}
    }
    /home/ard-apps-money/htdocs/money.ard-apps.ru/core/Route/Route.php:59 {
      core\Route\Route->handleRequest(): mixed …
      › 
      › return $this->execute(    $this->find()
    }
    /home/ard-apps-money/htdocs/money.ard-apps.ru/core/App.php:61 {
      core\App->run(): void …
      › {    $actionResult = new Route()->handleRequest();}
    /home/ard-apps-money/htdocs/money.ard-apps.ru/index.php:8 {
      › 
      › app()->run();}
  }
}