Exception
Unable to prepare statement: 1, no such table: config
in .../include/lib/KD2/DB/SQLite3.php:375
371
372 $this->connect();
373
374 $query = $this->applyTablePrefix($query);
375 $statement = $this->db->prepare($query);
376
377 $nb = $statement->paramCount();
378
379 if (!empty($args))
in .../include/lib/KD2/DB/SQLite3.php:375
→ SQLite3->prepare (1 arg.)
| $query | string(44) "SELECT cle, valeur FROM config ORDER BY cle;" |
|---|
371
372 $this->connect();
373
374 $query = $this->applyTablePrefix($query);
375 $statement = $this->db->prepare($query);
376
377 $nb = $statement->paramCount();
378
379 if (!empty($args))
in .../include/lib/KD2/DB/SQLite3.php:471
→ KD2\DB\SQLite3->preparedQuery (1 arg.)
| $query | string(44) "SELECT cle, valeur FROM config ORDER BY cle;" |
|---|
467 }
468
469 public function getAssoc(string $statement, ...$args): array
470 {
471 $res = $this->preparedQuery($statement, ...$args);
472 $out = [];
473
474 while ($row = $res->fetchArray(\SQLITE3_NUM))
475 {
in .../include/lib/Garradin/Config.php:82
→ KD2\DB\SQLite3->getAssoc (1 arg.)
| $statement | string(44) "SELECT cle, valeur FROM config ORDER BY cle;" |
|---|
78 ];
79
80 $db = DB::getInstance();
81
82 $this->config = $db->getAssoc('SELECT cle, valeur FROM config ORDER BY cle;');
83
84 foreach ($this->config as $key=>&$value)
85 {
86 if (!array_key_exists($key, $this->fields_types))
in .../include/lib/Garradin/Config.php:21
→ Garradin\Config->__construct (0 arg.)
17 * @return Config
18 */
19 static public function getInstance()
20 {
21 return self::$_instance ?: self::$_instance = new Config;
22 }
23
24 static public function deleteInstance()
25 {
in .../include/init.php:324
→ Garradin\Config::getInstance (0 arg.)
320 {
321 Utils::redirect(ADMIN_URL . 'install.php');
322 }
323
324 $config = Config::getInstance();
325
326 if (version_compare($config->getVersion(), garradin_version(), '<'))
327 {
328 Utils::redirect(ADMIN_URL . 'upgrade.php');
in .../www/_inc.php:5
→ require_once (1 arg.)
| 0 | string(20) ".../include/init.php" |
|---|
1<?php
2
3namespace Garradin;
4
5require_once __DIR__ . '/../include/init.php';
6
in .../www/index.php:9
→ require (1 arg.)
| 0 | string(16) ".../www/_inc.php" |
|---|
5if (PHP_VERSION_ID < 70200) {
6 die("PHP 7.2 ou supérieur est requis.");
7}
8
9require __DIR__ . '/_inc.php';
10
11if (Config::getInstance()->get('desactiver_site'))
12{
13 Utils::redirect(ADMIN_URL);
in .../www/_route.php:58
→ require (1 arg.)
| 0 | string(17) ".../www/index.php" |
|---|
54 throw new UserException('Cette page n\'existe pas.');
55}
56else
57{
58 require __DIR__ . '/index.php';
59}