1/1
Whoops \ Exception \ ErrorException
(E_WARNING)
PDOStatement::execute(): SQLSTATE[42S02]: Base table or view not found: 1146 Table 'camhe2071497.quartier_commune' doesn't exist
Whoops\Exception\ErrorException thrown with message "PDOStatement::execute(): SQLSTATE[42S02]: Base table or view not found: 1146 Table 'camhe2071497.quartier_commune' doesn't exist"
Stacktrace:
#3 Whoops\Exception\ErrorException in /htdocs/public/class/bd.php:29
#2 PDOStatement:execute in /htdocs/public/class/bd.php:29
#1 DB:query in /htdocs/templates/detail.php:396
#0 require in /htdocs/public/index.php:17
Stack frames (4)
3
Whoops\Exception\ErrorException
…/public/class/bd.php29
2
PDOStatement
execute
…/public/class/bd.php29
1
DB
query
…/templates/detail.php396
0
require
…/public/index.php17
/htdocs/public/class/bd.php
if($host != null){
$this->host=$host;
$this->username=$username;
$this->password=$password;
$this->database=$datababe;
}
try{
$this->bd=new PDO('mysql:host='.$this->host.';dbname='.$this->database,$this->username,$this->password,
array(
PDO::MYSQL_ATTR_INIT_COMMAND => 'SET NAMES utf8',
PDO::ATTR_ERRMODE=>PDO::ERRMODE_WARNING
));
}catch(PDOException $e){
die('Un problème est survenue lors de la connexion à la base de données! Contactez l\'équipe technique Dowhile ou redemarrer le serveur');
}
}
public function query($sql,$data=array()){
$article=$this->bd->prepare($sql);
$article->execute($data);
return $article->fetchAll(PDO::FETCH_OBJ);
$article->closeCursor();
}
public function insert($sql,$data=array()){
$article=$this->bd->prepare($sql);
$article->execute($data);
return $article;
$article->closeCursor();
}
public function row($sql,$data=array()){
$article=$this->bd->prepare($sql);
$article->execute($data);
$totale=$article->rowCount();
return $totale;
$article->closeCursor();
}
/htdocs/public/class/bd.php
if($host != null){
$this->host=$host;
$this->username=$username;
$this->password=$password;
$this->database=$datababe;
}
try{
$this->bd=new PDO('mysql:host='.$this->host.';dbname='.$this->database,$this->username,$this->password,
array(
PDO::MYSQL_ATTR_INIT_COMMAND => 'SET NAMES utf8',
PDO::ATTR_ERRMODE=>PDO::ERRMODE_WARNING
));
}catch(PDOException $e){
die('Un problème est survenue lors de la connexion à la base de données! Contactez l\'équipe technique Dowhile ou redemarrer le serveur');
}
}
public function query($sql,$data=array()){
$article=$this->bd->prepare($sql);
$article->execute($data);
return $article->fetchAll(PDO::FETCH_OBJ);
$article->closeCursor();
}
public function insert($sql,$data=array()){
$article=$this->bd->prepare($sql);
$article->execute($data);
return $article;
$article->closeCursor();
}
public function row($sql,$data=array()){
$article=$this->bd->prepare($sql);
$article->execute($data);
$totale=$article->rowCount();
return $totale;
$article->closeCursor();
}
/htdocs/templates/detail.php
</div>
<?php endif ?>
<?php endif ?>
<div class="course-info d-flex justify-content-between align-items-center">
<h5 class="text-dark">Quartier </h5>
<?php
$number=$DB->row('SELECT * FROM quartier WHERE id_quartier=:id',array('id'=>$selects->quartier));
if($number > 0):
$quartier=$DB->query('SELECT * FROM quartier WHERE id_quartier=:id',array('id'=>$selects->quartier));
foreach($quartier as $quartiers):
?>
<p class="text-dark"><?= $quartiers->nom ?></p>
<?php endforeach ?>
<?php endif ?>
<?php
if($number ==0):
$quartier=$DB->query('SELECT * FROM quartier_commune WHERE id_quartier=:id',array('id'=>$selects->quartier));
foreach($quartier as $quartiers):
?>
<p class="text-dark"><?= $quartiers->nom ?></p>
<?php endforeach ?>
<?php endif ?>
</div>
<div class="course-info d-flex justify-content-between align-items-center">
<h5 class="text-dark">lieu dit</h5>
<p class="text-dark"><?= $selects->lieu ?></p>
</div>
<?php if($selects->piscine == 'oui'): ?>
<div class="course-info d-flex justify-content-between align-items-center">
<h5 class="text-dark">Piscine</h5>
<p class="text-dark"><?= $selects->piscine ?></p>
</div>
<?php endif ?>
<div class="course-info d-flex justify-content-between align-items-center">
<h5 class="text-dark">Parking</h5>
<p class="text-dark"><?= $selects->parking ?></p>
</div>
/htdocs/public/index.php
<?php
require dirname(__DIR__).'/vendor/autoload.php';
$whoops= new \Whoops\Run;
$whoops->pushHandler(new \Whoops\Handler\PrettyPageHandler);
$whoops->register();
$uri = $_SERVER['REQUEST_URI'];
$router = new AltoRouter();
require dirname(__DIR__).'/config/routes.php';
// match des routes
$match = $router->match();
if(is_array($match)){
if(is_callable($match['target']))
{
call_user_func_array($match['target'],$match['params']);
}else{
$params=$match['params'];
require "../templates/{$match['target']}.php";
}
}else
// page 404 a affichers
{
require '../templates/404.php';
}
Environment & details:
empty
empty
empty
| Key | Value |
| PHPSESSID | 3ad779272f6994bbe60ecb2cae100e68 |
| ip | 3266916 |
empty
| Key | Value |
| lwscache | On |
| lwsapitoken | a96b0d59de9d75c3b1ebb962fbcec2ba |
| SCRIPT_NAME | /public/index.php |
| REQUEST_URI | /detail-488 |
| QUERY_STRING | |
| REQUEST_METHOD | GET |
| SERVER_PROTOCOL | HTTP/1.1 |
| GATEWAY_INTERFACE | CGI/1.1 |
| REDIRECT_URL | /public/detail-488 |
| REMOTE_PORT | 54410 |
| SCRIPT_FILENAME | //var/www/camhebergement.com/htdocs/public/index.php |
| SERVER_ADMIN | postmaster@camhebergement.com |
| CONTEXT_DOCUMENT_ROOT | /var/www/camhebergement.com/htdocs |
| CONTEXT_PREFIX | |
| REQUEST_SCHEME | https |
| DOCUMENT_ROOT | /var/www/camhebergement.com/htdocs |
| REMOTE_ADDR | 216.73.216.35 |
| SERVER_PORT | 443 |
| SERVER_ADDR | 127.0.0.1 |
| SERVER_NAME | camhebergement.com |
| SERVER_SOFTWARE | Apache/2.4.66 (Debian) |
| SERVER_SIGNATURE | <address>Apache/2.4.66 (Debian) Server at camhebergement.com Port 443</address> |
| PATH | /usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin |
| HTTP_X_VARNISH | 4718636 |
| HTTP_VIA | 1.1 webdb3212.lwspanel.com (Varnish/7.7) |
| HTTP_X_CACHE_GROUP | claudebot |
| HTTP_X_CACHE_USER | camhe2071497 |
| HTTP_X_CACHE_ENGINE_ENABLE | 1 |
| HTTP_COOKIE | PHPSESSID=3ad779272f6994bbe60ecb2cae100e68; ip=3266916 |
| HTTP_USER_AGENT | Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com) |
| HTTP_ACCEPT | */* |
| HTTP_X_L_ADMIN_AUTH | 0 |
| HTTP_X_REQUEST_ID | 24093c8b71dac93fb746fec856eda807 |
| HTTP_X_FORWARDED_PROTO | https |
| HTTP_X_REAL_IP | 216.73.216.35 |
| HTTP_HOST | camhebergement.com |
| MD_SH | webdb3212 |
| MD_SLAVES | camhe2071497.webdb3212.lwspanel.com |
| MD_MASTER | camhebergement.com |
| MD_HOST | camhebergement.com |
| SCRIPT_URI | https://camhebergement.com/detail-488 |
| SCRIPT_URL | /detail-488 |
| existing_anubis_status | |
| existing_anubis_rule | |
| existing_anubis_action | |
| existing_header_request_id | 24093c8b71dac93fb746fec856eda807 |
| HTTPS | on |
| UNIQUE_ID | aYP1Trvm238VjJ_kqyI-mwAAAdI |
| REDIRECT_STATUS | 200 |
| REDIRECT_MD_SH | webdb3212 |
| REDIRECT_MD_SLAVES | camhe2071497.webdb3212.lwspanel.com |
| REDIRECT_MD_MASTER | camhebergement.com |
| REDIRECT_MD_HOST | camhebergement.com |
| REDIRECT_SCRIPT_URI | https://camhebergement.com/detail-488 |
| REDIRECT_SCRIPT_URL | /detail-488 |
| REDIRECT_existing_anubis_status | |
| REDIRECT_existing_anubis_rule | |
| REDIRECT_existing_anubis_action | |
| REDIRECT_existing_header_request_id | 24093c8b71dac93fb746fec856eda807 |
| REDIRECT_HTTPS | on |
| REDIRECT_UNIQUE_ID | aYP1Trvm238VjJ_kqyI-mwAAAdI |
| REDIRECT_REDIRECT_STATUS | 200 |
| REDIRECT_REDIRECT_MD_SH | webdb3212 |
| REDIRECT_REDIRECT_MD_SLAVES | camhe2071497.webdb3212.lwspanel.com |
| REDIRECT_REDIRECT_MD_MASTER | camhebergement.com |
| REDIRECT_REDIRECT_MD_HOST | camhebergement.com |
| REDIRECT_REDIRECT_SCRIPT_URI | https://camhebergement.com/detail-488 |
| REDIRECT_REDIRECT_SCRIPT_URL | /detail-488 |
| REDIRECT_REDIRECT_existing_anubis_status | |
| REDIRECT_REDIRECT_existing_anubis_rule | |
| REDIRECT_REDIRECT_existing_anubis_action | |
| REDIRECT_REDIRECT_existing_header_request_id | 24093c8b71dac93fb746fec856eda807 |
| REDIRECT_REDIRECT_HTTPS | on |
| REDIRECT_REDIRECT_UNIQUE_ID | aYP1Trvm238VjJ_kqyI-mwAAAdI |
| FCGI_ROLE | RESPONDER |
| PHP_SELF | /public/index.php |
| REQUEST_TIME_FLOAT | 1770255694.5056 |
| REQUEST_TIME | 1770255694 |
| Key | Value |
| lwscache | On |
| lwsapitoken | a96b0d59de9d75c3b1ebb962fbcec2ba |
| SCRIPT_NAME | /public/index.php |
| REQUEST_URI | /detail-488 |
| QUERY_STRING | |
| REQUEST_METHOD | GET |
| SERVER_PROTOCOL | HTTP/1.1 |
| GATEWAY_INTERFACE | CGI/1.1 |
| REDIRECT_URL | /public/detail-488 |
| REMOTE_PORT | 54410 |
| SCRIPT_FILENAME | //var/www/camhebergement.com/htdocs/public/index.php |
| SERVER_ADMIN | postmaster@camhebergement.com |
| CONTEXT_DOCUMENT_ROOT | /var/www/camhebergement.com/htdocs |
| CONTEXT_PREFIX | |
| REQUEST_SCHEME | https |
| DOCUMENT_ROOT | /var/www/camhebergement.com/htdocs |
| REMOTE_ADDR | 216.73.216.35 |
| SERVER_PORT | 443 |
| SERVER_ADDR | 127.0.0.1 |
| SERVER_NAME | camhebergement.com |
| SERVER_SOFTWARE | Apache/2.4.66 (Debian) |
| SERVER_SIGNATURE | <address>Apache/2.4.66 (Debian) Server at camhebergement.com Port 443</address> |
| PATH | /usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin |
| HTTP_X_VARNISH | 4718636 |
| HTTP_VIA | 1.1 webdb3212.lwspanel.com (Varnish/7.7) |
| HTTP_X_CACHE_GROUP | claudebot |
| HTTP_X_CACHE_USER | camhe2071497 |
| HTTP_X_CACHE_ENGINE_ENABLE | 1 |
| HTTP_COOKIE | PHPSESSID=3ad779272f6994bbe60ecb2cae100e68; ip=3266916 |
| HTTP_USER_AGENT | Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com) |
| HTTP_ACCEPT | */* |
| HTTP_X_L_ADMIN_AUTH | 0 |
| HTTP_X_REQUEST_ID | 24093c8b71dac93fb746fec856eda807 |
| HTTP_X_FORWARDED_PROTO | https |
| HTTP_X_REAL_IP | 216.73.216.35 |
| HTTP_HOST | camhebergement.com |
| MD_SH | webdb3212 |
| MD_SLAVES | camhe2071497.webdb3212.lwspanel.com |
| MD_MASTER | camhebergement.com |
| MD_HOST | camhebergement.com |
| SCRIPT_URI | https://camhebergement.com/detail-488 |
| SCRIPT_URL | /detail-488 |
| existing_anubis_status | |
| existing_anubis_rule | |
| existing_anubis_action | |
| existing_header_request_id | 24093c8b71dac93fb746fec856eda807 |
| HTTPS | on |
| UNIQUE_ID | aYP1Trvm238VjJ_kqyI-mwAAAdI |
| REDIRECT_STATUS | 200 |
| REDIRECT_MD_SH | webdb3212 |
| REDIRECT_MD_SLAVES | camhe2071497.webdb3212.lwspanel.com |
| REDIRECT_MD_MASTER | camhebergement.com |
| REDIRECT_MD_HOST | camhebergement.com |
| REDIRECT_SCRIPT_URI | https://camhebergement.com/detail-488 |
| REDIRECT_SCRIPT_URL | /detail-488 |
| REDIRECT_existing_anubis_status | |
| REDIRECT_existing_anubis_rule | |
| REDIRECT_existing_anubis_action | |
| REDIRECT_existing_header_request_id | 24093c8b71dac93fb746fec856eda807 |
| REDIRECT_HTTPS | on |
| REDIRECT_UNIQUE_ID | aYP1Trvm238VjJ_kqyI-mwAAAdI |
| REDIRECT_REDIRECT_STATUS | 200 |
| REDIRECT_REDIRECT_MD_SH | webdb3212 |
| REDIRECT_REDIRECT_MD_SLAVES | camhe2071497.webdb3212.lwspanel.com |
| REDIRECT_REDIRECT_MD_MASTER | camhebergement.com |
| REDIRECT_REDIRECT_MD_HOST | camhebergement.com |
| REDIRECT_REDIRECT_SCRIPT_URI | https://camhebergement.com/detail-488 |
| REDIRECT_REDIRECT_SCRIPT_URL | /detail-488 |
| REDIRECT_REDIRECT_existing_anubis_status | |
| REDIRECT_REDIRECT_existing_anubis_rule | |
| REDIRECT_REDIRECT_existing_anubis_action | |
| REDIRECT_REDIRECT_existing_header_request_id | 24093c8b71dac93fb746fec856eda807 |
| REDIRECT_REDIRECT_HTTPS | on |
| REDIRECT_REDIRECT_UNIQUE_ID | aYP1Trvm238VjJ_kqyI-mwAAAdI |
| FCGI_ROLE | RESPONDER |
| PHP_SELF | /public/index.php |
| REQUEST_TIME_FLOAT | 1770255694.5056 |
| REQUEST_TIME | 1770255694 |
0. Whoops\Handler\PrettyPageHandler