Whoops! There was an error.
PDOException (42000)
SQLSTATE[42000]: Syntax error or access violation: 1064 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 '-8,8' at line 14 PDOException thrown with message "SQLSTATE[42000]: Syntax error or access violation: 1064 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 '-8,8' at line 14" Stacktrace: #3 PDOException in /home/e3mg/views/pages/actualite.php:50 #2 PDO:query in /home/e3mg/views/pages/actualite.php:50 #1 require_once in /home/e3mg/configs/route.php:65 #0 {closure} in /home/e3mg/public/index.php:25
Stack frames (4)
3
PDOException
/views/pages/actualite.php50
2
PDO query
/views/pages/actualite.php50
1
require_once
/configs/route.php65
0
{closure}
/public/index.php25
/home/e3mg/views/pages/actualite.php
article.articleImage
FROM article
WHERE brouillon = 1 ORDER BY article.publishDate DESC limit 3
";
 
$sql3 = "SELECT 
categories.categoriesName,
COUNT(article.article_id) AS total_articles
FROM 
categories
LEFT JOIN 
article ON article.category = categories.categories_id
GROUP BY 
categories.categories_id, categories.categoriesName
ORDER BY 
total_articles DESC;
";
$recents = $db ->query($sql2);
$categories = $db ->query($sql3);
$results = $db ->query($sql);
Database::disconnect(); 
 
?>
 
<section class="page-title-section overlay" data-background="public/images/backgrounds/batiment-e3mg.jpg">
  <div class="container">
    <div class="row">
      <div class="col-md-8">
        <ul class="list-inline custom-breadcrumb">
          <li class="list-inline-item"><a class="h2 text-primary font-secondary" href="@@page-link">Actualités</a></li>
          <li class="list-inline-item text-white h3 font-secondary @@nasted"></li>
        </ul>
        <!-- <p class="text-lighten">Our courses offer a good compromise between the continuous assessment favoured by some universities and the emphasis placed on final exams by others.</p> -->
      </div>
    </div>
  </div>
</section>
<!-- /page title -->
 
  <section class="main">
/home/e3mg/views/pages/actualite.php
article.articleImage
FROM article
WHERE brouillon = 1 ORDER BY article.publishDate DESC limit 3
";
 
$sql3 = "SELECT 
categories.categoriesName,
COUNT(article.article_id) AS total_articles
FROM 
categories
LEFT JOIN 
article ON article.category = categories.categories_id
GROUP BY 
categories.categories_id, categories.categoriesName
ORDER BY 
total_articles DESC;
";
$recents = $db ->query($sql2);
$categories = $db ->query($sql3);
$results = $db ->query($sql);
Database::disconnect(); 
 
?>
 
<section class="page-title-section overlay" data-background="public/images/backgrounds/batiment-e3mg.jpg">
  <div class="container">
    <div class="row">
      <div class="col-md-8">
        <ul class="list-inline custom-breadcrumb">
          <li class="list-inline-item"><a class="h2 text-primary font-secondary" href="@@page-link">Actualités</a></li>
          <li class="list-inline-item text-white h3 font-secondary @@nasted"></li>
        </ul>
        <!-- <p class="text-lighten">Our courses offer a good compromise between the continuous assessment favoured by some universities and the emphasis placed on final exams by others.</p> -->
      </div>
    </div>
  </div>
</section>
<!-- /page title -->
 
  <section class="main">
/home/e3mg/configs/route.php
},'formation-continue');

$router->map('GET','/lab-genie-procede',function(){
    require_once "../views/pages/buld.php";
},'lab-genie-procede');

$router->map('GET','/lab-geoscience',function(){
    require_once "../views/pages/buld.php";
},'lab-geoscience');

$router->map('GET','/event',function(){
    require_once "../views/pages/events.php";
},'event');

$router->map('GET','/event-single',function(){
    require_once "../views/pages/buld.php";
},'event.single');

$router->map('GET','/actualite',function(){
    require_once "../views/pages/actualite.php";
},'actualite');
$router->map('GET','/index.php?page=[i]',function(){
    require_once "../views/pages/actualite.php";
},'actualite.actualite');


$router->map('GET','/actualite-[i:id]',function($id){
    require_once "../views/pages/articles-single.php";
},'actualite.single');

$router->map('GET','/ressource',function(){
    require_once "../views/pages/buld.php";
},'notice');
$router->map('GET','/technicien-en-mines-et-metallurgie',function(){
    require_once "../views/pages/buld.php";
},'lmm');
$router->map('GET','/technicien-maitenaice-des-systemes-et-des-equipements',function(){
    require_once "../views/pages/buld.php";
},'lmse');
$router->map('GET','/ingenieur-en-extraction-miniere',function(){
/home/e3mg/public/index.php
 
 
// Register the Composer autoloader...
require __DIR__.'/../vendor/autoload.php';
//Register route
$whoops = new \Whoops\Run;
$whoops->pushHandler(new \Whoops\Handler\PrettyPageHandler);
$whoops->register();
 
$router = new AltoRouter();
require __DIR__.'/../configs/route.php';
 
 
 
$match = $router->match();
 
// call closure or throw 404 status
if(is_array($match)){
    if(is_callable( $match['target'] ) ) {
        call_user_func_array( $match['target'], $match['params'] );
    } else {
        // no route was matched
        // $params = $match['params'];
        // require "../templates/{$match['target']}.php";
        header( $_SERVER["SERVER_PROTOCOL"] . ' 404 Not Found');
    }
}else{
    include "../views/error/404.view.php";
}
 

Environment & details:

Key Value
path actualite
page 0
empty
empty
empty
empty
Key Value
REDIRECT_HTTPS on
REDIRECT_SSL_TLS_SNI www.e3mg.ga
REDIRECT_STATUS 200
HTTPS on
SSL_TLS_SNI www.e3mg.ga
SSL_SERVER_S_DN_CN e3mg.ga
SSL_SERVER_I_DN_C GB
SSL_SERVER_I_DN_ST Greater Manchester
SSL_SERVER_I_DN_L Salford
SSL_SERVER_I_DN_O Sectigo Limited
SSL_SERVER_I_DN_CN Sectigo RSA Domain Validation Secure Server CA
SSL_SERVER_SAN_DNS_0 e3mg.ga
SSL_SERVER_SAN_DNS_1 www.e3mg.ga
SSL_VERSION_INTERFACE mod_ssl/2.4.52
SSL_VERSION_LIBRARY OpenSSL/3.0.2
SSL_PROTOCOL TLSv1.3
SSL_SECURE_RENEG true
SSL_COMPRESS_METHOD NULL
SSL_CIPHER TLS_AES_256_GCM_SHA384
SSL_CIPHER_EXPORT false
SSL_CIPHER_USEKEYSIZE 256
SSL_CIPHER_ALGKEYSIZE 256
SSL_CLIENT_VERIFY NONE
SSL_SERVER_M_VERSION 3
SSL_SERVER_M_SERIAL 141ADB8646E86A40475937D54A037EA4
SSL_SERVER_V_START May 15 00:00:00 2024 GMT
SSL_SERVER_V_END May 15 23:59:59 2025 GMT
SSL_SERVER_S_DN CN=e3mg.ga
SSL_SERVER_I_DN CN=Sectigo RSA Domain Validation Secure Server CA,O=Sectigo Limited,L=Salford,ST=Greater Manchester,C=GB
SSL_SERVER_A_KEY rsaEncryption
SSL_SERVER_A_SIG sha256WithRSAEncryption
SSL_SESSION_ID ddeb3350027ad8dc5aecfdfdac5414720f52f0967336cddb5525b0d779e01d65
SSL_SESSION_RESUMED Initial
HTTP_ACCEPT */*
HTTP_USER_AGENT Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com)
HTTP_ACCEPT_ENCODING gzip, br, zstd, deflate
HTTP_HOST www.e3mg.ga
PATH /usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/snap/bin
SERVER_SIGNATURE <address>Apache/2.4.52 (Ubuntu) Server at www.e3mg.ga Port 443</address>
SERVER_SOFTWARE Apache/2.4.52 (Ubuntu)
SERVER_NAME www.e3mg.ga
SERVER_ADDR 172.23.1.1
SERVER_PORT 443
REMOTE_ADDR 18.222.188.103
DOCUMENT_ROOT /home/e3mg
REQUEST_SCHEME https
CONTEXT_PREFIX
CONTEXT_DOCUMENT_ROOT /home/e3mg
SERVER_ADMIN [no address given]
SCRIPT_FILENAME /home/e3mg/public/index.php
REMOTE_PORT 39114
REDIRECT_URL /actualite
REDIRECT_QUERY_STRING path=actualite&page=0
GATEWAY_INTERFACE CGI/1.1
SERVER_PROTOCOL HTTP/1.1
REQUEST_METHOD GET
QUERY_STRING path=actualite&page=0
REQUEST_URI /actualite?page=0
SCRIPT_NAME /public/index.php
PHP_SELF /public/index.php
REQUEST_TIME_FLOAT 1746725236.1102
REQUEST_TIME 1746725236
empty
0. Whoops\Handler\PrettyPageHandler